{"version":3,"sources":["vendor/ember-cli/vendor-prefix.js","vendor/loader/loader.js","vendor/jquery/jquery.js","license.js","loader.js","@ember/-internals/bootstrap/index.js","@ember/-internals/browser-environment/index.js","@ember/-internals/console/index.js","@ember/-internals/container/index.js","@ember/-internals/environment/index.js","@ember/-internals/error-handling/index.js","@ember/-internals/extension-support/index.js","@ember/-internals/extension-support/lib/container_debug_adapter.js","@ember/-internals/extension-support/lib/data_adapter.js","@ember/-internals/glimmer/index.js","@ember/-internals/meta/index.js","@ember/-internals/meta/lib/meta.js","@ember/-internals/metal/index.js","@ember/-internals/overrides/index.js","@ember/-internals/owner/index.js","@ember/-internals/routing/index.js","@ember/-internals/routing/lib/ext/controller.js","@ember/-internals/routing/lib/location/api.js","@ember/-internals/routing/lib/location/auto_location.js","@ember/-internals/routing/lib/location/hash_location.js","@ember/-internals/routing/lib/location/history_location.js","@ember/-internals/routing/lib/location/none_location.js","@ember/-internals/routing/lib/location/util.js","@ember/-internals/routing/lib/services/router.js","@ember/-internals/routing/lib/services/routing.js","@ember/-internals/routing/lib/system/cache.js","@ember/-internals/routing/lib/system/controller_for.js","@ember/-internals/routing/lib/system/dsl.js","@ember/-internals/routing/lib/system/engines.js","@ember/-internals/routing/lib/system/generate_controller.js","@ember/-internals/routing/lib/system/query_params.js","@ember/-internals/routing/lib/system/route-info.js","@ember/-internals/routing/lib/system/route.js","@ember/-internals/routing/lib/system/router.js","@ember/-internals/routing/lib/system/router_state.js","@ember/-internals/routing/lib/system/transition.js","@ember/-internals/routing/lib/utils.js","@ember/-internals/runtime/index.js","@ember/-internals/runtime/lib/compare.js","@ember/-internals/runtime/lib/copy.js","@ember/-internals/runtime/lib/ext/function.js","@ember/-internals/runtime/lib/ext/rsvp.js","@ember/-internals/runtime/lib/is-equal.js","@ember/-internals/runtime/lib/mixins/-proxy.js","@ember/-internals/runtime/lib/mixins/action_handler.js","@ember/-internals/runtime/lib/mixins/array.js","@ember/-internals/runtime/lib/mixins/comparable.js","@ember/-internals/runtime/lib/mixins/container_proxy.js","@ember/-internals/runtime/lib/mixins/copyable.js","@ember/-internals/runtime/lib/mixins/enumerable.js","@ember/-internals/runtime/lib/mixins/evented.js","@ember/-internals/runtime/lib/mixins/mutable_enumerable.js","@ember/-internals/runtime/lib/mixins/observable.js","@ember/-internals/runtime/lib/mixins/promise_proxy.js","@ember/-internals/runtime/lib/mixins/registry_proxy.js","@ember/-internals/runtime/lib/mixins/target_action_support.js","@ember/-internals/runtime/lib/system/array_proxy.js","@ember/-internals/runtime/lib/system/core_object.js","@ember/-internals/runtime/lib/system/namespace.js","@ember/-internals/runtime/lib/system/object.js","@ember/-internals/runtime/lib/system/object_proxy.js","@ember/-internals/runtime/lib/type-of.js","@ember/-internals/utils/index.js","@ember/-internals/views/index.js","@ember/-internals/views/lib/compat/attrs.js","@ember/-internals/views/lib/compat/fallback-view-registry.js","@ember/-internals/views/lib/component_lookup.js","@ember/-internals/views/lib/mixins/action_support.js","@ember/-internals/views/lib/mixins/child_views_support.js","@ember/-internals/views/lib/mixins/class_names_support.js","@ember/-internals/views/lib/mixins/text_support.js","@ember/-internals/views/lib/mixins/view_state_support.js","@ember/-internals/views/lib/mixins/view_support.js","@ember/-internals/views/lib/system/action_manager.js","@ember/-internals/views/lib/system/event_dispatcher.js","@ember/-internals/views/lib/system/jquery.js","@ember/-internals/views/lib/system/jquery_event_deprecation.js","@ember/-internals/views/lib/system/utils.js","@ember/-internals/views/lib/views/core_view.js","@ember/-internals/views/lib/views/states.js","@ember/-internals/views/lib/views/states/default.js","@ember/-internals/views/lib/views/states/destroying.js","@ember/-internals/views/lib/views/states/has_element.js","@ember/-internals/views/lib/views/states/in_dom.js","@ember/-internals/views/lib/views/states/pre_render.js","@ember/application/deprecations.js","@ember/application/globals-resolver.js","@ember/application/index.js","@ember/application/instance.js","@ember/application/lib/application.js","@ember/application/lib/lazy_load.js","@ember/application/namespace.js","@ember/application/resolver.js","@ember/array/index.js","@ember/array/mutable.js","@ember/array/proxy.js","@ember/canary-features/index.js","@ember/component/checkbox.js","@ember/component/helper.js","@ember/component/index.js","@ember/component/template-only.js","@ember/component/text-area.js","@ember/component/text-field.js","@ember/controller/index.js","@ember/controller/lib/controller_mixin.js","@ember/debug/container-debug-adapter.js","@ember/debug/data-adapter.js","@ember/debug/index.js","@ember/debug/lib/capture-render-tree.js","@ember/debug/lib/deprecate.js","@ember/debug/lib/handlers.js","@ember/debug/lib/testing.js","@ember/debug/lib/warn.js","@ember/deprecated-features/index.js","@ember/destroyable/index.js","@ember/engine/index.js","@ember/engine/instance.js","@ember/engine/lib/engine-parent.js","@ember/enumerable/index.js","@ember/error/index.js","@ember/helper/index.js","@ember/instrumentation/index.js","@ember/modifier/index.js","@ember/object/compat.js","@ember/object/computed.js","@ember/object/core.js","@ember/object/evented.js","@ember/object/events.js","@ember/object/index.js","@ember/object/internals.js","@ember/object/lib/computed/computed_macros.js","@ember/object/lib/computed/reduce_computed_macros.js","@ember/object/mixin.js","@ember/object/observable.js","@ember/object/observers.js","@ember/object/promise-proxy-mixin.js","@ember/object/proxy.js","@ember/polyfills/index.js","@ember/polyfills/lib/assign.js","@ember/polyfills/lib/merge.js","@ember/routing/auto-location.js","@ember/routing/hash-location.js","@ember/routing/history-location.js","@ember/routing/index.js","@ember/routing/link-component.js","@ember/routing/location.js","@ember/routing/none-location.js","@ember/routing/route.js","@ember/routing/router.js","@ember/runloop/index.js","@ember/service/index.js","@ember/string/index.js","@ember/string/lib/string_registry.js","@ember/template-compilation/index.js","@ember/template-factory/index.js","@ember/template/index.js","@ember/test/adapter.js","@ember/test/index.js","@ember/utils/index.js","@ember/version/index.js","@glimmer/destroyable.js","@glimmer/encoder.js","@glimmer/env.js","@glimmer/global-context.js","@glimmer/low-level.js","@glimmer/manager.js","@glimmer/node.js","@glimmer/opcode-compiler.js","@glimmer/owner.js","@glimmer/program.js","@glimmer/reference.js","@glimmer/runtime.js","@glimmer/tracking/index.js","@glimmer/tracking/primitives/cache.js","@glimmer/util.js","@glimmer/validator.js","@glimmer/vm.js","@glimmer/wire-format.js","@simple-dom/document.js","backburner.js","dag-map.js","ember-babel.js","ember-testing/index.js","ember-testing/lib/adapters/adapter.js","ember-testing/lib/adapters/qunit.js","ember-testing/lib/events.js","ember-testing/lib/ext/application.js","ember-testing/lib/ext/rsvp.js","ember-testing/lib/helpers.js","ember-testing/lib/helpers/-is-form-control.js","ember-testing/lib/helpers/and_then.js","ember-testing/lib/helpers/click.js","ember-testing/lib/helpers/current_path.js","ember-testing/lib/helpers/current_route_name.js","ember-testing/lib/helpers/current_url.js","ember-testing/lib/helpers/fill_in.js","ember-testing/lib/helpers/find.js","ember-testing/lib/helpers/find_with_assert.js","ember-testing/lib/helpers/key_event.js","ember-testing/lib/helpers/pause_test.js","ember-testing/lib/helpers/trigger_event.js","ember-testing/lib/helpers/visit.js","ember-testing/lib/helpers/wait.js","ember-testing/lib/initializers.js","ember-testing/lib/setup_for_testing.js","ember-testing/lib/support.js","ember-testing/lib/test.js","ember-testing/lib/test/adapter.js","ember-testing/lib/test/helpers.js","ember-testing/lib/test/on_inject_helpers.js","ember-testing/lib/test/pending_requests.js","ember-testing/lib/test/promise.js","ember-testing/lib/test/run.js","ember-testing/lib/test/waiters.js","ember/index.js","ember/version.js","jquery/index.js","route-recognizer.js","router_js.js","rsvp.js","vendor/shims/jquery.js","vendor/jquery/component.dollar.js","vendor/chart.js/Chart.js","vendor/ember-django-adapter/register-version.js","vendor/ember-fetch.js","node_modules/css-element-queries/src/ResizeSensor.js","node_modules/hammerjs/hammer.js","webpack://io/webpack/universalModuleDefinition","webpack://io/webpack/bootstrap","webpack://io/./node_modules/component-emitter/index.js","webpack://io/./node_modules/engine.io-parser/lib/index.js","webpack://io/./node_modules/engine.io-client/lib/globalThis.browser.js","webpack://io/./node_modules/engine.io-client/lib/transport.js","webpack://io/./node_modules/parseqs/index.js","webpack://io/./node_modules/socket.io-parser/dist/index.js","webpack://io/./node_modules/parseuri/index.js","webpack://io/./build/manager.js","webpack://io/./node_modules/engine.io-client/lib/transports/index.js","webpack://io/./node_modules/engine.io-client/lib/xmlhttprequest.js","webpack://io/./node_modules/engine.io-client/lib/transports/polling.js","webpack://io/./node_modules/engine.io-parser/lib/commons.js","webpack://io/./node_modules/yeast/index.js","webpack://io/./node_modules/engine.io-client/lib/util.js","webpack://io/./build/socket.js","webpack://io/./node_modules/socket.io-parser/dist/is-binary.js","webpack://io/./build/on.js","webpack://io/./build/index.js","webpack://io/./build/url.js","webpack://io/./node_modules/engine.io-client/lib/index.js","webpack://io/./node_modules/engine.io-client/lib/socket.js","webpack://io/./node_modules/has-cors/index.js","webpack://io/./node_modules/engine.io-client/lib/transports/polling-xhr.js","webpack://io/./node_modules/engine.io-parser/lib/encodePacket.browser.js","webpack://io/./node_modules/engine.io-parser/lib/decodePacket.browser.js","webpack://io/./node_modules/engine.io-parser/node_modules/base64-arraybuffer/lib/base64-arraybuffer.js","webpack://io/./node_modules/engine.io-client/lib/transports/polling-jsonp.js","webpack://io/./node_modules/engine.io-client/lib/transports/websocket.js","webpack://io/./node_modules/engine.io-client/lib/transports/websocket-constructor.browser.js","webpack://io/./node_modules/socket.io-parser/dist/binary.js","webpack://io/./node_modules/backo2/index.js","addon-tree-output/@appknox/ember-pace/initializers/ember-pace.js","addon-tree-output/@ember-data/adapter/-private.js","addon-tree-output/@ember-data/adapter/error.js","addon-tree-output/@ember-data/adapter/index.js","addon-tree-output/@ember-data/adapter/json-api.js","addon-tree-output/@ember-data/adapter/rest.js","addon-tree-output/@ember-data/canary-features/default-features.js","addon-tree-output/@ember-data/canary-features/index.js","addon-tree-output/@ember-data/debug/index.js","addon-tree-output/@ember-data/debug/setup.js","addon-tree-output/@ember-data/model/-private.js","addon-tree-output/@ember-data/model/index.js","addon-tree-output/@ember-data/private-build-infra/available-packages.js","addon-tree-output/@ember-data/private-build-infra/current-deprecations.js","addon-tree-output/@ember-data/private-build-infra/deprecations.js","addon-tree-output/@ember-data/private-build-infra/index.js","addon-tree-output/@ember-data/record-data/-private.js","addon-tree-output/@ember-data/serializer/-private.js","addon-tree-output/@ember-data/serializer/index.js","addon-tree-output/@ember-data/serializer/json-api.js","addon-tree-output/@ember-data/serializer/json.js","addon-tree-output/@ember-data/serializer/rest.js","addon-tree-output/@ember-data/serializer/transform.js","addon-tree-output/@ember-data/store/-debug/index.js","addon-tree-output/@ember-data/store/-private.js","addon-tree-output/@ember-data/store/index.js","addon-tree-output/@ember/render-modifiers/modifiers/did-insert.js","addon-tree-output/@ember/render-modifiers/modifiers/did-update.js","addon-tree-output/@ember/render-modifiers/modifiers/will-destroy.js","addon-tree-output/@ember/string/cache.js","addon-tree-output/@ember/string/index.js","addon-tree-output/@ember/test-waiters/build-waiter.js","addon-tree-output/@ember/test-waiters/index.js","addon-tree-output/@ember/test-waiters/token.js","addon-tree-output/@ember/test-waiters/types/index.js","addon-tree-output/@ember/test-waiters/wait-for-promise.js","addon-tree-output/@ember/test-waiters/wait-for.js","addon-tree-output/@ember/test-waiters/waiter-manager.js","addon-tree-output/@embroider/macros/es-compat2.js","addon-tree-output/@embroider/macros/runtime.js","addon-tree-output/@embroider/util/ember-private-api.js","addon-tree-output/@embroider/util/index.js","addon-tree-output/@embroider/util/services/ensure-registered.js","addon-tree-output/@glimmer/component/-private/base-component-manager.js","addon-tree-output/@glimmer/component/-private/component.js","addon-tree-output/@glimmer/component/-private/destroyables.js","addon-tree-output/@glimmer/component/-private/ember-component-manager.js","addon-tree-output/@glimmer/component/-private/owner.js","addon-tree-output/@glimmer/component/index.js","addon-tree-output/@html-next/vertical-collection/-private.js","addon-tree-output/@html-next/vertical-collection/components/vertical-collection/component.js","addon-tree-output/@html-next/vertical-collection/components/vertical-collection/template.js","addon-tree-output/ember-ajax/-private/promise.js","addon-tree-output/ember-ajax/-private/types.js","addon-tree-output/ember-ajax/-private/utils/get-header.js","addon-tree-output/ember-ajax/-private/utils/is-string.js","addon-tree-output/ember-ajax/-private/utils/parse-response-headers.js","addon-tree-output/ember-ajax/-private/utils/url-helpers.js","addon-tree-output/ember-ajax/ajax-request.js","addon-tree-output/ember-ajax/errors.js","addon-tree-output/ember-ajax/index.js","addon-tree-output/ember-ajax/mixins/ajax-request.js","addon-tree-output/ember-ajax/mixins/ajax-support.js","addon-tree-output/ember-ajax/mixins/legacy/normalize-error-response.js","addon-tree-output/ember-ajax/raw.js","addon-tree-output/ember-ajax/request.js","addon-tree-output/ember-ajax/services/ajax.js","addon-tree-output/ember-ajax/utils/ajax.js","addon-tree-output/ember-assign-helper/helpers/assign.js","addon-tree-output/ember-basic-dropdown/components/basic-dropdown-content.js","addon-tree-output/ember-basic-dropdown/components/basic-dropdown-trigger.js","addon-tree-output/ember-basic-dropdown/components/basic-dropdown.js","addon-tree-output/ember-basic-dropdown/modifiers/basic-dropdown-trigger.js","addon-tree-output/ember-basic-dropdown/utils/calculate-position.js","addon-tree-output/ember-basic-dropdown/utils/has-moved.js","addon-tree-output/ember-basic-dropdown/utils/scroll-helpers.js","addon-tree-output/ember-cached-decorator-polyfill/index.js","addon-tree-output/ember-changeset-validations/index.js","addon-tree-output/ember-changeset-validations/utils/get-messages.js","addon-tree-output/ember-changeset-validations/utils/handle-multiple-validations.js","addon-tree-output/ember-changeset-validations/utils/messages.js","addon-tree-output/ember-changeset-validations/utils/to-date.js","addon-tree-output/ember-changeset-validations/utils/validation-errors.js","addon-tree-output/ember-changeset-validations/utils/with-defaults.js","addon-tree-output/ember-changeset-validations/utils/wrap.js","addon-tree-output/ember-changeset-validations/validators/confirmation.js","addon-tree-output/ember-changeset-validations/validators/date.js","addon-tree-output/ember-changeset-validations/validators/exclusion.js","addon-tree-output/ember-changeset-validations/validators/format.js","addon-tree-output/ember-changeset-validations/validators/inclusion.js","addon-tree-output/ember-changeset-validations/validators/index.js","addon-tree-output/ember-changeset-validations/validators/length.js","addon-tree-output/ember-changeset-validations/validators/number.js","addon-tree-output/ember-changeset-validations/validators/presence.js","addon-tree-output/ember-changeset/helpers/changeset-get.js","addon-tree-output/ember-changeset/helpers/changeset-set.js","addon-tree-output/ember-changeset/helpers/changeset.js","addon-tree-output/ember-changeset/index.js","addon-tree-output/ember-changeset/utils/is-object.js","addon-tree-output/ember-changeset/utils/merge-deep.js","addon-tree-output/ember-changeset/validated-changeset.js","addon-tree-output/ember-cli-app-version/initializer-factory.js","addon-tree-output/ember-cli-app-version/utils/regexp.js","addon-tree-output/ember-cli-chart/components/ember-chart.js","addon-tree-output/ember-cli-head/components/head-layout.js","addon-tree-output/ember-cli-head/services/head-data.js","addon-tree-output/ember-cli-mirage/assert.js","addon-tree-output/ember-cli-mirage/ember-data.js","addon-tree-output/ember-cli-mirage/get-rfc232-test-context.js","addon-tree-output/ember-cli-mirage/index.js","addon-tree-output/ember-cli-mirage/instance-initializers/ember-cli-mirage-autostart.js","addon-tree-output/ember-cli-mirage/serializers/ember-data-serializer.js","addon-tree-output/ember-cli-mirage/start-mirage.js","addon-tree-output/ember-cli-mirage/utils/ember-data.js","addon-tree-output/ember-cli-mirage/utils/read-modules.js","addon-tree-output/ember-cli-notifications/components/notification-container.js","addon-tree-output/ember-cli-notifications/components/notification-message.js","addon-tree-output/ember-cli-notifications/helpers/equal.js","addon-tree-output/ember-cli-notifications/services/notifications.js","addon-tree-output/ember-cli-notifications/templates/components/notification-container.js","addon-tree-output/ember-cli-notifications/templates/components/notification-message.js","addon-tree-output/ember-concurrency/-private/async-arrow-runtime.js","addon-tree-output/ember-concurrency/-private/cancelable-promise-helpers.js","addon-tree-output/ember-concurrency/-private/ember-environment.js","addon-tree-output/ember-concurrency/-private/external/environment.js","addon-tree-output/ember-concurrency/-private/external/generator-state.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/bounded-policy.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/drop-policy.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/enqueued-policy.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/execution-states.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/keep-latest-policy.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/restartable-policy.js","addon-tree-output/ember-concurrency/-private/external/scheduler/policies/unbounded-policy.js","addon-tree-output/ember-concurrency/-private/external/scheduler/refresh.js","addon-tree-output/ember-concurrency/-private/external/scheduler/scheduler.js","addon-tree-output/ember-concurrency/-private/external/scheduler/state-tracker/null-state-tracker.js","addon-tree-output/ember-concurrency/-private/external/scheduler/state-tracker/null-state.js","addon-tree-output/ember-concurrency/-private/external/scheduler/state-tracker/state-tracker.js","addon-tree-output/ember-concurrency/-private/external/scheduler/state-tracker/state.js","addon-tree-output/ember-concurrency/-private/external/task-decorators.js","addon-tree-output/ember-concurrency/-private/external/task-factory.js","addon-tree-output/ember-concurrency/-private/external/task-instance/base.js","addon-tree-output/ember-concurrency/-private/external/task-instance/cancelation.js","addon-tree-output/ember-concurrency/-private/external/task-instance/completion-states.js","addon-tree-output/ember-concurrency/-private/external/task-instance/executor.js","addon-tree-output/ember-concurrency/-private/external/task-instance/initial-state.js","addon-tree-output/ember-concurrency/-private/external/task/default-state.js","addon-tree-output/ember-concurrency/-private/external/task/task-group.js","addon-tree-output/ember-concurrency/-private/external/task/task.js","addon-tree-output/ember-concurrency/-private/external/task/taskable.js","addon-tree-output/ember-concurrency/-private/external/yieldables.js","addon-tree-output/ember-concurrency/-private/helpers.js","addon-tree-output/ember-concurrency/-private/scheduler/ember-scheduler.js","addon-tree-output/ember-concurrency/-private/task-decorators.js","addon-tree-output/ember-concurrency/-private/task-factory.js","addon-tree-output/ember-concurrency/-private/task-group.js","addon-tree-output/ember-concurrency/-private/task-instance.js","addon-tree-output/ember-concurrency/-private/task-properties.js","addon-tree-output/ember-concurrency/-private/task-public-api.js","addon-tree-output/ember-concurrency/-private/task.js","addon-tree-output/ember-concurrency/-private/taskable-mixin.js","addon-tree-output/ember-concurrency/-private/tracked-state.js","addon-tree-output/ember-concurrency/-private/utils.js","addon-tree-output/ember-concurrency/-private/wait-for.js","addon-tree-output/ember-concurrency/-task-instance.js","addon-tree-output/ember-concurrency/-task-property.js","addon-tree-output/ember-concurrency/helpers/cancel-all.js","addon-tree-output/ember-concurrency/helpers/perform.js","addon-tree-output/ember-concurrency/helpers/task.js","addon-tree-output/ember-concurrency/index.js","addon-tree-output/ember-css-modules/decorators.js","addon-tree-output/ember-css-modules/extensions.js","addon-tree-output/ember-css-modules/helpers/local-class.js","addon-tree-output/ember-css-modules/index.js","addon-tree-output/ember-css-modules/mixins/component-mixin.js","addon-tree-output/ember-css-modules/templates/static-helpers-hack.js","addon-tree-output/ember-data/-private.js","addon-tree-output/ember-data/adapter.js","addon-tree-output/ember-data/adapters/errors.js","addon-tree-output/ember-data/adapters/json-api.js","addon-tree-output/ember-data/adapters/rest.js","addon-tree-output/ember-data/attr.js","addon-tree-output/ember-data/index.js","addon-tree-output/ember-data/model.js","addon-tree-output/ember-data/relationships.js","addon-tree-output/ember-data/serializer.js","addon-tree-output/ember-data/serializers/embedded-records-mixin.js","addon-tree-output/ember-data/serializers/json-api.js","addon-tree-output/ember-data/serializers/json.js","addon-tree-output/ember-data/serializers/rest.js","addon-tree-output/ember-data/setup-container.js","addon-tree-output/ember-data/store.js","addon-tree-output/ember-data/transform.js","addon-tree-output/ember-data/version.js","addon-tree-output/ember-dayjs-helpers/helpers/day-js.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-add.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-calendar.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-date.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-day-of-week.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-day-of-year.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-diff.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-end-of.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-format.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-from-now.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-from.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-is-after.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-is-before.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-is-between.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-is-leap-year.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-is-same-or-after.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-is-same-or-before.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-is-same.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-months-short.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-months.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-start-of.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-subtract.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-to-now.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-to.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-week-of-year.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-weekday.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-weekdays-min.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-weekdays-short.js","addon-tree-output/ember-dayjs-helpers/helpers/dayjs-weekdays.js","addon-tree-output/ember-dayjs-helpers/helpers/days-in-month.js","addon-tree-output/ember-django-adapter/adapters/drf.js","addon-tree-output/ember-django-adapter/serializers/drf.js","addon-tree-output/ember-fetch/errors.js","addon-tree-output/ember-fetch/types.js","addon-tree-output/ember-fetch/utils/determine-body-promise.js","addon-tree-output/ember-fetch/utils/mung-options-for-fetch.js","addon-tree-output/ember-fetch/utils/serialize-query-params.js","addon-tree-output/ember-g-recaptcha/components/g-recaptcha.js","addon-tree-output/ember-g-recaptcha/configuration.js","addon-tree-output/ember-get-config/index.js","addon-tree-output/ember-ignore-children-helper/helpers/ignore-children.js","addon-tree-output/ember-inflector/index.js","addon-tree-output/ember-inflector/lib/ext/string.js","addon-tree-output/ember-inflector/lib/helpers/pluralize.js","addon-tree-output/ember-inflector/lib/helpers/singularize.js","addon-tree-output/ember-inflector/lib/system.js","addon-tree-output/ember-inflector/lib/system/inflections.js","addon-tree-output/ember-inflector/lib/system/inflector.js","addon-tree-output/ember-inflector/lib/system/string.js","addon-tree-output/ember-inflector/lib/utils/make-helper.js","addon-tree-output/ember-intl/-private/error-types.js","addon-tree-output/ember-intl/-private/formatters/-base.js","addon-tree-output/ember-intl/-private/formatters/format-date.js","addon-tree-output/ember-intl/-private/formatters/format-list.js","addon-tree-output/ember-intl/-private/formatters/format-message.js","addon-tree-output/ember-intl/-private/formatters/format-number.js","addon-tree-output/ember-intl/-private/formatters/format-relative.js","addon-tree-output/ember-intl/-private/formatters/format-time.js","addon-tree-output/ember-intl/-private/formatters/index.js","addon-tree-output/ember-intl/-private/utils/empty-object.js","addon-tree-output/ember-intl/-private/utils/flatten.js","addon-tree-output/ember-intl/-private/utils/get-dom.js","addon-tree-output/ember-intl/-private/utils/hydrate.js","addon-tree-output/ember-intl/-private/utils/is-array-equal.js","addon-tree-output/ember-intl/-private/utils/missing-message.js","addon-tree-output/ember-intl/-private/utils/normalize-locale.js","addon-tree-output/ember-intl/-private/utils/parse.js","addon-tree-output/ember-intl/helpers/-format-base.js","addon-tree-output/ember-intl/helpers/format-date.js","addon-tree-output/ember-intl/helpers/format-list.js","addon-tree-output/ember-intl/helpers/format-message.js","addon-tree-output/ember-intl/helpers/format-number.js","addon-tree-output/ember-intl/helpers/format-relative.js","addon-tree-output/ember-intl/helpers/format-time.js","addon-tree-output/ember-intl/helpers/t.js","addon-tree-output/ember-intl/index.js","addon-tree-output/ember-intl/macros/index.js","addon-tree-output/ember-intl/macros/intl.js","addon-tree-output/ember-intl/macros/t.js","addon-tree-output/ember-intl/services/intl.js","addon-tree-output/ember-intl/template-registry.js","addon-tree-output/ember-intl/translations.js","addon-tree-output/ember-load-initializers/index.js","addon-tree-output/ember-maybe-in-element/components/maybe-in-element.js","addon-tree-output/ember-modal-dialog/components/basic-dialog.js","addon-tree-output/ember-modal-dialog/components/in-place-dialog.js","addon-tree-output/ember-modal-dialog/components/liquid-dialog.js","addon-tree-output/ember-modal-dialog/components/liquid-tether-dialog.js","addon-tree-output/ember-modal-dialog/components/modal-dialog.js","addon-tree-output/ember-modal-dialog/components/positioned-container.js","addon-tree-output/ember-modal-dialog/components/tether-dialog.js","addon-tree-output/ember-modal-dialog/initializers/add-modals-container.js","addon-tree-output/ember-modal-dialog/templates/components/basic-dialog.js","addon-tree-output/ember-modal-dialog/templates/components/in-place-dialog.js","addon-tree-output/ember-modal-dialog/templates/components/liquid-dialog.js","addon-tree-output/ember-modal-dialog/templates/components/liquid-tether-dialog.js","addon-tree-output/ember-modal-dialog/templates/components/modal-dialog.js","addon-tree-output/ember-modal-dialog/templates/components/tether-dialog.js","addon-tree-output/ember-modifier/-private/class/modifier-manager.js","addon-tree-output/ember-modifier/-private/class/modifier.js","addon-tree-output/ember-modifier/-private/compat.js","addon-tree-output/ember-modifier/-private/function-based/modifier-manager.js","addon-tree-output/ember-modifier/-private/function-based/modifier.js","addon-tree-output/ember-modifier/-private/interfaces.js","addon-tree-output/ember-modifier/-private/opaque.js","addon-tree-output/ember-modifier/-private/signature.js","addon-tree-output/ember-modifier/index.js","addon-tree-output/ember-on-modifier/helpers/prevent-default.js","addon-tree-output/ember-on-modifier/utils/event-listener.js","addon-tree-output/ember-page-title/helpers/page-title.js","addon-tree-output/ember-page-title/services/page-title-list.js","addon-tree-output/ember-page-title/services/page-title.js","addon-tree-output/ember-power-calendar/-private/utils/own-prop.js","addon-tree-output/ember-power-calendar/components/power-calendar-multiple.js","addon-tree-output/ember-power-calendar/components/power-calendar-multiple/days.js","addon-tree-output/ember-power-calendar/components/power-calendar-range.js","addon-tree-output/ember-power-calendar/components/power-calendar-range/days.js","addon-tree-output/ember-power-calendar/components/power-calendar.js","addon-tree-output/ember-power-calendar/components/power-calendar/days.js","addon-tree-output/ember-power-calendar/components/power-calendar/nav.js","addon-tree-output/ember-power-calendar/helpers/ember-power-calendar-day-classes.js","addon-tree-output/ember-power-calendar/helpers/power-calendar-format-date.js","addon-tree-output/ember-power-calendar/index.js","addon-tree-output/ember-power-calendar/services/power-calendar.js","addon-tree-output/ember-power-calendar/utils.js","addon-tree-output/ember-power-select/components/power-select-multiple.js","addon-tree-output/ember-power-select/components/power-select-multiple/input.js","addon-tree-output/ember-power-select/components/power-select-multiple/trigger.js","addon-tree-output/ember-power-select/components/power-select.js","addon-tree-output/ember-power-select/components/power-select/before-options.js","addon-tree-output/ember-power-select/components/power-select/no-matches-message.js","addon-tree-output/ember-power-select/components/power-select/options.js","addon-tree-output/ember-power-select/components/power-select/placeholder.js","addon-tree-output/ember-power-select/components/power-select/power-select-group.js","addon-tree-output/ember-power-select/components/power-select/search-message.js","addon-tree-output/ember-power-select/components/power-select/trigger.js","addon-tree-output/ember-power-select/helpers/ember-power-select-is-group.js","addon-tree-output/ember-power-select/helpers/ember-power-select-is-selected.js","addon-tree-output/ember-power-select/utils/computed-fallback-if-undefined.js","addon-tree-output/ember-power-select/utils/group-utils.js","addon-tree-output/ember-raf-scheduler/index.js","addon-tree-output/ember-resolver/features.js","addon-tree-output/ember-resolver/index.js","addon-tree-output/ember-resolver/resolver.js","addon-tree-output/ember-resolver/resolvers/classic/container-debug-adapter.js","addon-tree-output/ember-resolver/resolvers/classic/index.js","addon-tree-output/ember-resolver/utils/class-factory.js","addon-tree-output/ember-rollbar-client/instance-initializers/rollbar.js","addon-tree-output/ember-rollbar-client/services/rollbar.js","addon-tree-output/ember-style-modifier/modifiers/style.js","addon-tree-output/ember-table/-private/collapse-tree.js","addon-tree-output/ember-table/-private/column-tree.js","addon-tree-output/ember-table/-private/meta-cache.js","addon-tree-output/ember-table/-private/sticky/table-sticky-polyfill.js","addon-tree-output/ember-table/-private/utils/array.js","addon-tree-output/ember-table/-private/utils/default-to.js","addon-tree-output/ember-table/-private/utils/element.js","addon-tree-output/ember-table/-private/utils/ember.js","addon-tree-output/ember-table/-private/utils/observer.js","addon-tree-output/ember-table/-private/utils/reorder-indicators.js","addon-tree-output/ember-table/-private/utils/sort.js","addon-tree-output/ember-table/components/-private/base-table-cell.js","addon-tree-output/ember-table/components/-private/row-wrapper.js","addon-tree-output/ember-table/components/-private/scroll-indicators/component.js","addon-tree-output/ember-table/components/-private/scroll-indicators/template.js","addon-tree-output/ember-table/components/ember-table-loading-more/component.js","addon-tree-output/ember-table/components/ember-table-simple-checkbox.js","addon-tree-output/ember-table/components/ember-table/component.js","addon-tree-output/ember-table/components/ember-table/template.js","addon-tree-output/ember-table/components/ember-tbody/component.js","addon-tree-output/ember-table/components/ember-tbody/template.js","addon-tree-output/ember-table/components/ember-td/component.js","addon-tree-output/ember-table/components/ember-td/template.js","addon-tree-output/ember-table/components/ember-tfoot/component.js","addon-tree-output/ember-table/components/ember-tfoot/template.js","addon-tree-output/ember-table/components/ember-th/component.js","addon-tree-output/ember-table/components/ember-th/resize-handle/component.js","addon-tree-output/ember-table/components/ember-th/resize-handle/template.js","addon-tree-output/ember-table/components/ember-th/sort-indicator/component.js","addon-tree-output/ember-table/components/ember-th/sort-indicator/template.js","addon-tree-output/ember-table/components/ember-th/template.js","addon-tree-output/ember-table/components/ember-thead/component.js","addon-tree-output/ember-table/components/ember-thead/template.js","addon-tree-output/ember-table/components/ember-tr/component.js","addon-tree-output/ember-table/components/ember-tr/template.js","addon-tree-output/ember-test-waiters/index.js","addon-tree-output/ember-text-measurer/services/text-measurer.js","addon-tree-output/ember-tracked-storage-polyfill/index.js","addon-tree-output/ember-truth-helpers/helpers/and.js","addon-tree-output/ember-truth-helpers/helpers/eq.js","addon-tree-output/ember-truth-helpers/helpers/equal.js","addon-tree-output/ember-truth-helpers/helpers/gt.js","addon-tree-output/ember-truth-helpers/helpers/gte.js","addon-tree-output/ember-truth-helpers/helpers/is-array.js","addon-tree-output/ember-truth-helpers/helpers/is-empty.js","addon-tree-output/ember-truth-helpers/helpers/is-equal.js","addon-tree-output/ember-truth-helpers/helpers/lt.js","addon-tree-output/ember-truth-helpers/helpers/lte.js","addon-tree-output/ember-truth-helpers/helpers/not-eq.js","addon-tree-output/ember-truth-helpers/helpers/not-equal.js","addon-tree-output/ember-truth-helpers/helpers/not.js","addon-tree-output/ember-truth-helpers/helpers/or.js","addon-tree-output/ember-truth-helpers/helpers/xor.js","addon-tree-output/ember-truth-helpers/utils/truth-convert.js","addon-tree-output/ember-validators/collection.js","addon-tree-output/ember-validators/confirmation.js","addon-tree-output/ember-validators/date.js","addon-tree-output/ember-validators/ds-error.js","addon-tree-output/ember-validators/exclusion.js","addon-tree-output/ember-validators/format.js","addon-tree-output/ember-validators/inclusion.js","addon-tree-output/ember-validators/index.js","addon-tree-output/ember-validators/length.js","addon-tree-output/ember-validators/messages.js","addon-tree-output/ember-validators/number.js","addon-tree-output/ember-validators/presence.js","addon-tree-output/ember-validators/utils/is-promise.js","addon-tree-output/ember-validators/utils/unwrap-proxy.js","addon-tree-output/ember-validators/utils/validation-error.js","addon-tree-output/ember-websockets/helpers.js","addon-tree-output/ember-websockets/helpers/socketio-proxy.js","addon-tree-output/ember-websockets/helpers/websocket-proxy.js","addon-tree-output/ember-websockets/services/socket-io.js","addon-tree-output/ember-websockets/services/websockets.js","addon-tree-output/ember-window-mock/index.js","addon-tree-output/ember-wormhole/components/ember-wormhole.js","addon-tree-output/ember-wormhole/templates/components/ember-wormhole.js","addon-tree-output/ember-wormhole/utils/dom.js","addon-tree-output/~ember-css-modules/ext.js","vendor/ember-cli/vendor-suffix.js"],"sourcesContent":["window.EmberENV = (function(EmberENV, extra) {\n  for (var key in extra) {\n    EmberENV[key] = extra[key];\n  }\n\n  return EmberENV;\n})(window.EmberENV || {}, {\"FEATURES\":{},\"_APPLICATION_TEMPLATE_WRAPPER\":false,\"_DEFAULT_ASYNC_OBSERVERS\":true,\"_JQUERY_INTEGRATION\":true,\"_TEMPLATE_ONLY_GLIMMER_COMPONENTS\":true});\n\n// used to determine if the application should be booted immediately when `app-name.js` is evaluated\n// when `runningTests` the `app-name.js` file will **not** import the applications `app/app.js` and\n// call `Application.create(...)` on it. Additionally, applications can opt-out of this behavior by\n// setting `autoRun` to `false` in their `ember-cli-build.js`\n//\n// The default `test-support.js` file will set this to `true` when it runs (so that Application.create()\n// is not ran when running tests).\nvar runningTests = false;\n\n\n","var loader, define, requireModule, require, requirejs;\n\n(function (global) {\n  'use strict';\n\n  function dict() {\n    var obj = Object.create(null);\n    obj['__'] = undefined;\n    delete obj['__'];\n    return obj;\n  }\n\n  // Save off the original values of these globals, so we can restore them if someone asks us to\n  var oldGlobals = {\n    loader: loader,\n    define: define,\n    requireModule: requireModule,\n    require: require,\n    requirejs: requirejs\n  };\n\n  requirejs = require = requireModule = function (id) {\n    var pending = [];\n    var mod = findModule(id, '(require)', pending);\n\n    for (var i = pending.length - 1; i >= 0; i--) {\n      pending[i].exports();\n    }\n\n    return mod.module.exports;\n  };\n\n  loader = {\n    noConflict: function (aliases) {\n      var oldName, newName;\n\n      for (oldName in aliases) {\n        if (aliases.hasOwnProperty(oldName)) {\n          if (oldGlobals.hasOwnProperty(oldName)) {\n            newName = aliases[oldName];\n\n            global[newName] = global[oldName];\n            global[oldName] = oldGlobals[oldName];\n          }\n        }\n      }\n    },\n    // Option to enable or disable the generation of default exports\n    makeDefaultExport: true\n  };\n\n  var registry = dict();\n  var seen = dict();\n\n  var uuid = 0;\n\n  function unsupportedModule(length) {\n    throw new Error('an unsupported module was defined, expected `define(id, deps, module)` instead got: `' + length + '` arguments to define`');\n  }\n\n  var defaultDeps = ['require', 'exports', 'module'];\n\n  function Module(id, deps, callback, alias) {\n    this.uuid = uuid++;\n    this.id = id;\n    this.deps = !deps.length && callback.length ? defaultDeps : deps;\n    this.module = { exports: {} };\n    this.callback = callback;\n    this.hasExportsAsDep = false;\n    this.isAlias = alias;\n    this.reified = new Array(deps.length);\n\n    /*\n       Each module normally passes through these states, in order:\n         new       : initial state\n         pending   : this module is scheduled to be executed\n         reifying  : this module's dependencies are being executed\n         reified   : this module's dependencies finished executing successfully\n         errored   : this module's dependencies failed to execute\n         finalized : this module executed successfully\n     */\n    this.state = 'new';\n  }\n\n  Module.prototype.makeDefaultExport = function () {\n    var exports = this.module.exports;\n    if (exports !== null && (typeof exports === 'object' || typeof exports === 'function') && exports['default'] === undefined && Object.isExtensible(exports)) {\n      exports['default'] = exports;\n    }\n  };\n\n  Module.prototype.exports = function () {\n    // if finalized, there is no work to do. If reifying, there is a\n    // circular dependency so we must return our (partial) exports.\n    if (this.state === 'finalized' || this.state === 'reifying') {\n      return this.module.exports;\n    }\n\n\n    if (loader.wrapModules) {\n      this.callback = loader.wrapModules(this.id, this.callback);\n    }\n\n    this.reify();\n\n    var result = this.callback.apply(this, this.reified);\n    this.reified.length = 0;\n    this.state = 'finalized';\n\n    if (!(this.hasExportsAsDep && result === undefined)) {\n      this.module.exports = result;\n    }\n    if (loader.makeDefaultExport) {\n      this.makeDefaultExport();\n    }\n    return this.module.exports;\n  };\n\n  Module.prototype.unsee = function () {\n    this.state = 'new';\n    this.module = { exports: {} };\n  };\n\n  Module.prototype.reify = function () {\n    if (this.state === 'reified') {\n      return;\n    }\n    this.state = 'reifying';\n    try {\n      this.reified = this._reify();\n      this.state = 'reified';\n    } finally {\n      if (this.state === 'reifying') {\n        this.state = 'errored';\n      }\n    }\n  };\n\n  Module.prototype._reify = function () {\n    var reified = this.reified.slice();\n    for (var i = 0; i < reified.length; i++) {\n      var mod = reified[i];\n      reified[i] = mod.exports ? mod.exports : mod.module.exports();\n    }\n    return reified;\n  };\n\n  Module.prototype.findDeps = function (pending) {\n    if (this.state !== 'new') {\n      return;\n    }\n\n    this.state = 'pending';\n\n    var deps = this.deps;\n\n    for (var i = 0; i < deps.length; i++) {\n      var dep = deps[i];\n      var entry = this.reified[i] = { exports: undefined, module: undefined };\n      if (dep === 'exports') {\n        this.hasExportsAsDep = true;\n        entry.exports = this.module.exports;\n      } else if (dep === 'require') {\n        entry.exports = this.makeRequire();\n      } else if (dep === 'module') {\n        entry.exports = this.module;\n      } else {\n        entry.module = findModule(resolve(dep, this.id), this.id, pending);\n      }\n    }\n  };\n\n  Module.prototype.makeRequire = function () {\n    var id = this.id;\n    var r = function (dep) {\n      return require(resolve(dep, id));\n    };\n    r['default'] = r;\n    r.moduleId = id;\n    r.has = function (dep) {\n      return has(resolve(dep, id));\n    };\n    return r;\n  };\n\n  define = function (id, deps, callback) {\n    var module = registry[id];\n\n    // If a module for this id has already been defined and is in any state\n    // other than `new` (meaning it has been or is currently being required),\n    // then we return early to avoid redefinition.\n    if (module && module.state !== 'new') {\n      return;\n    }\n\n    if (arguments.length < 2) {\n      unsupportedModule(arguments.length);\n    }\n\n    if (!Array.isArray(deps)) {\n      callback = deps;\n      deps = [];\n    }\n\n    if (callback instanceof Alias) {\n      registry[id] = new Module(callback.id, deps, callback, true);\n    } else {\n      registry[id] = new Module(id, deps, callback, false);\n    }\n  };\n\n  define.exports = function (name, defaultExport) {\n    var module = registry[name];\n\n    // If a module for this name has already been defined and is in any state\n    // other than `new` (meaning it has been or is currently being required),\n    // then we return early to avoid redefinition.\n    if (module && module.state !== 'new') {\n      return;\n    }\n\n    module = new Module(name, [], noop, null);\n    module.module.exports = defaultExport;\n    module.state = 'finalized';\n    registry[name] = module;\n\n    return module;\n  };\n\n  function noop() {}\n  // we don't support all of AMD\n  // define.amd = {};\n\n  function Alias(id) {\n    this.id = id;\n  }\n\n  define.alias = function (id, target) {\n    if (arguments.length === 2) {\n      return define(target, new Alias(id));\n    }\n\n    return new Alias(id);\n  };\n\n  function missingModule(id, referrer) {\n    throw new Error('Could not find module `' + id + '` imported from `' + referrer + '`');\n  }\n\n  function findModule(id, referrer, pending) {\n    var mod = registry[id] || registry[id + '/index'];\n\n    while (mod && mod.isAlias) {\n      mod = registry[mod.id] || registry[mod.id + '/index'];\n    }\n\n    if (!mod) {\n      missingModule(id, referrer);\n    }\n\n    if (pending && mod.state !== 'pending' && mod.state !== 'finalized') {\n      mod.findDeps(pending);\n      pending.push(mod);\n    }\n    return mod;\n  }\n\n  function resolve(child, id) {\n    if (child.charAt(0) !== '.') {\n      return child;\n    }\n\n\n    var parts = child.split('/');\n    var nameParts = id.split('/');\n    var parentBase = nameParts.slice(0, -1);\n\n    for (var i = 0, l = parts.length; i < l; i++) {\n      var part = parts[i];\n\n      if (part === '..') {\n        if (parentBase.length === 0) {\n          throw new Error('Cannot access parent module of root');\n        }\n        parentBase.pop();\n      } else if (part === '.') {\n        continue;\n      } else {\n        parentBase.push(part);\n      }\n    }\n\n    return parentBase.join('/');\n  }\n\n  function has(id) {\n    return !!(registry[id] || registry[id + '/index']);\n  }\n\n  requirejs.entries = requirejs._eak_seen = registry;\n  requirejs.has = has;\n  requirejs.unsee = function (id) {\n    findModule(id, '(unsee)', false).unsee();\n  };\n\n  requirejs.clear = function () {\n    requirejs.entries = requirejs._eak_seen = registry = dict();\n    seen = dict();\n  };\n\n  // This code primes the JS engine for good performance by warming the\n  // JIT compiler for these functions.\n  define('foo', function () {});\n  define('foo/bar', [], function () {});\n  define('foo/asdf', ['module', 'exports', 'require'], function (module, exports, require) {\n    if (require.has('foo/bar')) {\n      require('foo/bar');\n    }\n  });\n  define('foo/baz', [], define.alias('foo'));\n  define('foo/quz', define.alias('foo'));\n  define.alias('foo', 'foo/qux');\n  define('foo/bar', ['foo', './quz', './baz', './asdf', './bar', '../foo'], function () {});\n  define('foo/main', ['foo/bar'], function () {});\n  define.exports('foo/exports', {});\n\n  require('foo/exports');\n  require('foo/main');\n  require.unsee('foo/bar');\n\n  requirejs.clear();\n\n  if (typeof exports === 'object' && typeof module === 'object' && module.exports) {\n    module.exports = { require: require, define: define };\n  }\n})(this);","/*!\n * jQuery JavaScript Library v3.7.1\n * https://jquery.com/\n *\n * Copyright OpenJS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2023-08-28T13:37Z\n */\n( function( global, factory ) {\n\n\t\"use strict\";\n\n\tif ( typeof module === \"object\" && typeof module.exports === \"object\" ) {\n\n\t\t// For CommonJS and CommonJS-like environments where a proper `window`\n\t\t// is present, execute the factory and get jQuery.\n\t\t// For environments that do not have a `window` with a `document`\n\t\t// (such as Node.js), expose a factory as module.exports.\n\t\t// This accentuates the need for the creation of a real `window`.\n\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\t\t// See ticket trac-14549 for more info.\n\t\tmodule.exports = global.document ?\n\t\t\tfactory( global, true ) :\n\t\t\tfunction( w ) {\n\t\t\t\tif ( !w.document ) {\n\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\t\t\t\t}\n\t\t\t\treturn factory( w );\n\t\t\t};\n\t} else {\n\t\tfactory( global );\n\t}\n\n// Pass this if window is not defined yet\n} )( typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\n// enough that all such attempts are guarded in a try block.\n\"use strict\";\n\nvar arr = [];\n\nvar getProto = Object.getPrototypeOf;\n\nvar slice = arr.slice;\n\nvar flat = arr.flat ? function( array ) {\n\treturn arr.flat.call( array );\n} : function( array ) {\n\treturn arr.concat.apply( [], array );\n};\n\n\nvar push = arr.push;\n\nvar indexOf = arr.indexOf;\n\nvar class2type = {};\n\nvar toString = class2type.toString;\n\nvar hasOwn = class2type.hasOwnProperty;\n\nvar fnToString = hasOwn.toString;\n\nvar ObjectFunctionString = fnToString.call( Object );\n\nvar support = {};\n\nvar isFunction = function isFunction( obj ) {\n\n\t\t// Support: Chrome <=57, Firefox <=52\n\t\t// In some browsers, typeof returns \"function\" for HTML <object> elements\n\t\t// (i.e., `typeof document.createElement( \"object\" ) === \"function\"`).\n\t\t// We don't want to classify *any* DOM node as a function.\n\t\t// Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5\n\t\t// Plus for old WebKit, typeof returns \"function\" for HTML collections\n\t\t// (e.g., `typeof document.getElementsByTagName(\"div\") === \"function\"`). (gh-4756)\n\t\treturn typeof obj === \"function\" && typeof obj.nodeType !== \"number\" &&\n\t\t\ttypeof obj.item !== \"function\";\n\t};\n\n\nvar isWindow = function isWindow( obj ) {\n\t\treturn obj != null && obj === obj.window;\n\t};\n\n\nvar document = window.document;\n\n\n\n\tvar preservedScriptAttributes = {\n\t\ttype: true,\n\t\tsrc: true,\n\t\tnonce: true,\n\t\tnoModule: true\n\t};\n\n\tfunction DOMEval( code, node, doc ) {\n\t\tdoc = doc || document;\n\n\t\tvar i, val,\n\t\t\tscript = doc.createElement( \"script\" );\n\n\t\tscript.text = code;\n\t\tif ( node ) {\n\t\t\tfor ( i in preservedScriptAttributes ) {\n\n\t\t\t\t// Support: Firefox 64+, Edge 18+\n\t\t\t\t// Some browsers don't support the \"nonce\" property on scripts.\n\t\t\t\t// On the other hand, just using `getAttribute` is not enough as\n\t\t\t\t// the `nonce` attribute is reset to an empty string whenever it\n\t\t\t\t// becomes browsing-context connected.\n\t\t\t\t// See https://github.com/whatwg/html/issues/2369\n\t\t\t\t// See https://html.spec.whatwg.org/#nonce-attributes\n\t\t\t\t// The `node.getAttribute` check was added for the sake of\n\t\t\t\t// `jQuery.globalEval` so that it can fake a nonce-containing node\n\t\t\t\t// via an object.\n\t\t\t\tval = node[ i ] || node.getAttribute && node.getAttribute( i );\n\t\t\t\tif ( val ) {\n\t\t\t\t\tscript.setAttribute( i, val );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdoc.head.appendChild( script ).parentNode.removeChild( script );\n\t}\n\n\nfunction toType( obj ) {\n\tif ( obj == null ) {\n\t\treturn obj + \"\";\n\t}\n\n\t// Support: Android <=2.3 only (functionish RegExp)\n\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\n\t\tclass2type[ toString.call( obj ) ] || \"object\" :\n\t\ttypeof obj;\n}\n/* global Symbol */\n// Defining this global in .eslintrc.json would create a danger of using the global\n// unguarded in another place, it seems safer to define global only for this module\n\n\n\nvar version = \"3.7.1\",\n\n\trhtmlSuffix = /HTML$/i,\n\n\t// Define a local copy of jQuery\n\tjQuery = function( selector, context ) {\n\n\t\t// The jQuery object is actually just the init constructor 'enhanced'\n\t\t// Need init if jQuery is called (just allow error to be thrown if not included)\n\t\treturn new jQuery.fn.init( selector, context );\n\t};\n\njQuery.fn = jQuery.prototype = {\n\n\t// The current version of jQuery being used\n\tjquery: version,\n\n\tconstructor: jQuery,\n\n\t// The default length of a jQuery object is 0\n\tlength: 0,\n\n\ttoArray: function() {\n\t\treturn slice.call( this );\n\t},\n\n\t// Get the Nth element in the matched element set OR\n\t// Get the whole matched element set as a clean array\n\tget: function( num ) {\n\n\t\t// Return all the elements in a clean array\n\t\tif ( num == null ) {\n\t\t\treturn slice.call( this );\n\t\t}\n\n\t\t// Return just the one element from the set\n\t\treturn num < 0 ? this[ num + this.length ] : this[ num ];\n\t},\n\n\t// Take an array of elements and push it onto the stack\n\t// (returning the new matched element set)\n\tpushStack: function( elems ) {\n\n\t\t// Build a new jQuery matched element set\n\t\tvar ret = jQuery.merge( this.constructor(), elems );\n\n\t\t// Add the old object onto the stack (as a reference)\n\t\tret.prevObject = this;\n\n\t\t// Return the newly-formed element set\n\t\treturn ret;\n\t},\n\n\t// Execute a callback for every element in the matched set.\n\teach: function( callback ) {\n\t\treturn jQuery.each( this, callback );\n\t},\n\n\tmap: function( callback ) {\n\t\treturn this.pushStack( jQuery.map( this, function( elem, i ) {\n\t\t\treturn callback.call( elem, i, elem );\n\t\t} ) );\n\t},\n\n\tslice: function() {\n\t\treturn this.pushStack( slice.apply( this, arguments ) );\n\t},\n\n\tfirst: function() {\n\t\treturn this.eq( 0 );\n\t},\n\n\tlast: function() {\n\t\treturn this.eq( -1 );\n\t},\n\n\teven: function() {\n\t\treturn this.pushStack( jQuery.grep( this, function( _elem, i ) {\n\t\t\treturn ( i + 1 ) % 2;\n\t\t} ) );\n\t},\n\n\todd: function() {\n\t\treturn this.pushStack( jQuery.grep( this, function( _elem, i ) {\n\t\t\treturn i % 2;\n\t\t} ) );\n\t},\n\n\teq: function( i ) {\n\t\tvar len = this.length,\n\t\t\tj = +i + ( i < 0 ? len : 0 );\n\t\treturn this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );\n\t},\n\n\tend: function() {\n\t\treturn this.prevObject || this.constructor();\n\t},\n\n\t// For internal use only.\n\t// Behaves like an Array's method, not like a jQuery method.\n\tpush: push,\n\tsort: arr.sort,\n\tsplice: arr.splice\n};\n\njQuery.extend = jQuery.fn.extend = function() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[ 0 ] || {},\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif ( typeof target === \"boolean\" ) {\n\t\tdeep = target;\n\n\t\t// Skip the boolean and the target\n\t\ttarget = arguments[ i ] || {};\n\t\ti++;\n\t}\n\n\t// Handle case when target is a string or something (possible in deep copy)\n\tif ( typeof target !== \"object\" && !isFunction( target ) ) {\n\t\ttarget = {};\n\t}\n\n\t// Extend jQuery itself if only one argument is passed\n\tif ( i === length ) {\n\t\ttarget = this;\n\t\ti--;\n\t}\n\n\tfor ( ; i < length; i++ ) {\n\n\t\t// Only deal with non-null/undefined values\n\t\tif ( ( options = arguments[ i ] ) != null ) {\n\n\t\t\t// Extend the base object\n\t\t\tfor ( name in options ) {\n\t\t\t\tcopy = options[ name ];\n\n\t\t\t\t// Prevent Object.prototype pollution\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif ( name === \"__proto__\" || target === copy ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject( copy ) ||\n\t\t\t\t\t( copyIsArray = Array.isArray( copy ) ) ) ) {\n\t\t\t\t\tsrc = target[ name ];\n\n\t\t\t\t\t// Ensure proper type for the source value\n\t\t\t\t\tif ( copyIsArray && !Array.isArray( src ) ) {\n\t\t\t\t\t\tclone = [];\n\t\t\t\t\t} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {\n\t\t\t\t\t\tclone = {};\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclone = src;\n\t\t\t\t\t}\n\t\t\t\t\tcopyIsArray = false;\n\n\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\n\n\t\t\t\t// Don't bring in undefined values\n\t\t\t\t} else if ( copy !== undefined ) {\n\t\t\t\t\ttarget[ name ] = copy;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend( {\n\n\t// Unique for each copy of jQuery on the page\n\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// Assume jQuery is ready without the ready module\n\tisReady: true,\n\n\terror: function( msg ) {\n\t\tthrow new Error( msg );\n\t},\n\n\tnoop: function() {},\n\n\tisPlainObject: function( obj ) {\n\t\tvar proto, Ctor;\n\n\t\t// Detect obvious negatives\n\t\t// Use toString instead of jQuery.type to catch host objects\n\t\tif ( !obj || toString.call( obj ) !== \"[object Object]\" ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tproto = getProto( obj );\n\n\t\t// Objects with no prototype (e.g., `Object.create( null )`) are plain\n\t\tif ( !proto ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Objects with prototype are plain iff they were constructed by a global Object function\n\t\tCtor = hasOwn.call( proto, \"constructor\" ) && proto.constructor;\n\t\treturn typeof Ctor === \"function\" && fnToString.call( Ctor ) === ObjectFunctionString;\n\t},\n\n\tisEmptyObject: function( obj ) {\n\t\tvar name;\n\n\t\tfor ( name in obj ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\t// Evaluates a script in a provided context; falls back to the global one\n\t// if not specified.\n\tglobalEval: function( code, options, doc ) {\n\t\tDOMEval( code, { nonce: options && options.nonce }, doc );\n\t},\n\n\teach: function( obj, callback ) {\n\t\tvar length, i = 0;\n\n\t\tif ( isArrayLike( obj ) ) {\n\t\t\tlength = obj.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor ( i in obj ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn obj;\n\t},\n\n\n\t// Retrieve the text value of an array of DOM nodes\n\ttext: function( elem ) {\n\t\tvar node,\n\t\t\tret = \"\",\n\t\t\ti = 0,\n\t\t\tnodeType = elem.nodeType;\n\n\t\tif ( !nodeType ) {\n\n\t\t\t// If no nodeType, this is expected to be an array\n\t\t\twhile ( ( node = elem[ i++ ] ) ) {\n\n\t\t\t\t// Do not traverse comment nodes\n\t\t\t\tret += jQuery.text( node );\n\t\t\t}\n\t\t}\n\t\tif ( nodeType === 1 || nodeType === 11 ) {\n\t\t\treturn elem.textContent;\n\t\t}\n\t\tif ( nodeType === 9 ) {\n\t\t\treturn elem.documentElement.textContent;\n\t\t}\n\t\tif ( nodeType === 3 || nodeType === 4 ) {\n\t\t\treturn elem.nodeValue;\n\t\t}\n\n\t\t// Do not include comment or processing instruction nodes\n\n\t\treturn ret;\n\t},\n\n\t// results is for internal usage only\n\tmakeArray: function( arr, results ) {\n\t\tvar ret = results || [];\n\n\t\tif ( arr != null ) {\n\t\t\tif ( isArrayLike( Object( arr ) ) ) {\n\t\t\t\tjQuery.merge( ret,\n\t\t\t\t\ttypeof arr === \"string\" ?\n\t\t\t\t\t\t[ arr ] : arr\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tpush.call( ret, arr );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tinArray: function( elem, arr, i ) {\n\t\treturn arr == null ? -1 : indexOf.call( arr, elem, i );\n\t},\n\n\tisXMLDoc: function( elem ) {\n\t\tvar namespace = elem && elem.namespaceURI,\n\t\t\tdocElem = elem && ( elem.ownerDocument || elem ).documentElement;\n\n\t\t// Assume HTML when documentElement doesn't yet exist, such as inside\n\t\t// document fragments.\n\t\treturn !rhtmlSuffix.test( namespace || docElem && docElem.nodeName || \"HTML\" );\n\t},\n\n\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t// push.apply(_, arraylike) throws on ancient WebKit\n\tmerge: function( first, second ) {\n\t\tvar len = +second.length,\n\t\t\tj = 0,\n\t\t\ti = first.length;\n\n\t\tfor ( ; j < len; j++ ) {\n\t\t\tfirst[ i++ ] = second[ j ];\n\t\t}\n\n\t\tfirst.length = i;\n\n\t\treturn first;\n\t},\n\n\tgrep: function( elems, callback, invert ) {\n\t\tvar callbackInverse,\n\t\t\tmatches = [],\n\t\t\ti = 0,\n\t\t\tlength = elems.length,\n\t\t\tcallbackExpect = !invert;\n\n\t\t// Go through the array, only saving the items\n\t\t// that pass the validator function\n\t\tfor ( ; i < length; i++ ) {\n\t\t\tcallbackInverse = !callback( elems[ i ], i );\n\t\t\tif ( callbackInverse !== callbackExpect ) {\n\t\t\t\tmatches.push( elems[ i ] );\n\t\t\t}\n\t\t}\n\n\t\treturn matches;\n\t},\n\n\t// arg is for internal usage only\n\tmap: function( elems, callback, arg ) {\n\t\tvar length, value,\n\t\t\ti = 0,\n\t\t\tret = [];\n\n\t\t// Go through the array, translating each of the items to their new values\n\t\tif ( isArrayLike( elems ) ) {\n\t\t\tlength = elems.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Go through every key on the object,\n\t\t} else {\n\t\t\tfor ( i in elems ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Flatten any nested arrays\n\t\treturn flat( ret );\n\t},\n\n\t// A global GUID counter for objects\n\tguid: 1,\n\n\t// jQuery.support is not used in Core but other projects attach their\n\t// properties to it so it needs to exist.\n\tsupport: support\n} );\n\nif ( typeof Symbol === \"function\" ) {\n\tjQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];\n}\n\n// Populate the class2type map\njQuery.each( \"Boolean Number String Function Array Date RegExp Object Error Symbol\".split( \" \" ),\n\tfunction( _i, name ) {\n\t\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n\t} );\n\nfunction isArrayLike( obj ) {\n\n\t// Support: real iOS 8.2 only (not reproducible in simulator)\n\t// `in` check used to prevent JIT error (gh-2145)\n\t// hasOwn isn't used here due to false negatives\n\t// regarding Nodelist length in IE\n\tvar length = !!obj && \"length\" in obj && obj.length,\n\t\ttype = toType( obj );\n\n\tif ( isFunction( obj ) || isWindow( obj ) ) {\n\t\treturn false;\n\t}\n\n\treturn type === \"array\" || length === 0 ||\n\t\ttypeof length === \"number\" && length > 0 && ( length - 1 ) in obj;\n}\n\n\nfunction nodeName( elem, name ) {\n\n\treturn elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();\n\n}\nvar pop = arr.pop;\n\n\nvar sort = arr.sort;\n\n\nvar splice = arr.splice;\n\n\nvar whitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\";\n\n\nvar rtrimCSS = new RegExp(\n\t\"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" + whitespace + \"+$\",\n\t\"g\"\n);\n\n\n\n\n// Note: an element does not contain itself\njQuery.contains = function( a, b ) {\n\tvar bup = b && b.parentNode;\n\n\treturn a === bup || !!( bup && bup.nodeType === 1 && (\n\n\t\t// Support: IE 9 - 11+\n\t\t// IE doesn't have `contains` on SVG.\n\t\ta.contains ?\n\t\t\ta.contains( bup ) :\n\t\t\ta.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16\n\t) );\n};\n\n\n\n\n// CSS string/identifier serialization\n// https://drafts.csswg.org/cssom/#common-serializing-idioms\nvar rcssescape = /([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\x80-\\uFFFF\\w-]/g;\n\nfunction fcssescape( ch, asCodePoint ) {\n\tif ( asCodePoint ) {\n\n\t\t// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER\n\t\tif ( ch === \"\\0\" ) {\n\t\t\treturn \"\\uFFFD\";\n\t\t}\n\n\t\t// Control characters and (dependent upon position) numbers get escaped as code points\n\t\treturn ch.slice( 0, -1 ) + \"\\\\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + \" \";\n\t}\n\n\t// Other potentially-special ASCII characters get backslash-escaped\n\treturn \"\\\\\" + ch;\n}\n\njQuery.escapeSelector = function( sel ) {\n\treturn ( sel + \"\" ).replace( rcssescape, fcssescape );\n};\n\n\n\n\nvar preferredDoc = document,\n\tpushNative = push;\n\n( function() {\n\nvar i,\n\tExpr,\n\toutermostContext,\n\tsortInput,\n\thasDuplicate,\n\tpush = pushNative,\n\n\t// Local document vars\n\tdocument,\n\tdocumentElement,\n\tdocumentIsHTML,\n\trbuggyQSA,\n\tmatches,\n\n\t// Instance-specific data\n\texpando = jQuery.expando,\n\tdirruns = 0,\n\tdone = 0,\n\tclassCache = createCache(),\n\ttokenCache = createCache(),\n\tcompilerCache = createCache(),\n\tnonnativeSelectorCache = createCache(),\n\tsortOrder = function( a, b ) {\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t}\n\t\treturn 0;\n\t},\n\n\tbooleans = \"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|\" +\n\t\t\"loop|multiple|open|readonly|required|scoped\",\n\n\t// Regular expressions\n\n\t// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram\n\tidentifier = \"(?:\\\\\\\\[\\\\da-fA-F]{1,6}\" + whitespace +\n\t\t\"?|\\\\\\\\[^\\\\r\\\\n\\\\f]|[\\\\w-]|[^\\0-\\\\x7f])+\",\n\n\t// Attribute selectors: https://www.w3.org/TR/selectors/#attribute-selectors\n\tattributes = \"\\\\[\" + whitespace + \"*(\" + identifier + \")(?:\" + whitespace +\n\n\t\t// Operator (capture 2)\n\t\t\"*([*^$|!~]?=)\" + whitespace +\n\n\t\t// \"Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]\"\n\t\t\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\" + identifier + \"))|)\" +\n\t\twhitespace + \"*\\\\]\",\n\n\tpseudos = \":(\" + identifier + \")(?:\\\\((\" +\n\n\t\t// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\n\t\t// 1. quoted (capture 3; capture 4 or capture 5)\n\t\t\"('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|\" +\n\n\t\t// 2. simple (capture 6)\n\t\t\"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\" + attributes + \")*)|\" +\n\n\t\t// 3. anything else (capture 2)\n\t\t\".*\" +\n\t\t\")\\\\)|)\",\n\n\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\n\trwhitespace = new RegExp( whitespace + \"+\", \"g\" ),\n\n\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\n\trleadingCombinator = new RegExp( \"^\" + whitespace + \"*([>+~]|\" + whitespace + \")\" +\n\t\twhitespace + \"*\" ),\n\trdescend = new RegExp( whitespace + \"|>\" ),\n\n\trpseudo = new RegExp( pseudos ),\n\tridentifier = new RegExp( \"^\" + identifier + \"$\" ),\n\n\tmatchExpr = {\n\t\tID: new RegExp( \"^#(\" + identifier + \")\" ),\n\t\tCLASS: new RegExp( \"^\\\\.(\" + identifier + \")\" ),\n\t\tTAG: new RegExp( \"^(\" + identifier + \"|[*])\" ),\n\t\tATTR: new RegExp( \"^\" + attributes ),\n\t\tPSEUDO: new RegExp( \"^\" + pseudos ),\n\t\tCHILD: new RegExp(\n\t\t\t\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" +\n\t\t\t\twhitespace + \"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" +\n\t\t\t\twhitespace + \"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\n\t\tbool: new RegExp( \"^(?:\" + booleans + \")$\", \"i\" ),\n\n\t\t// For use in libraries implementing .is()\n\t\t// We use this for POS matching in `select`\n\t\tneedsContext: new RegExp( \"^\" + whitespace +\n\t\t\t\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\" + whitespace +\n\t\t\t\"*((?:-\\\\d)?\\\\d*)\" + whitespace + \"*\\\\)|)(?=[^-]|$)\", \"i\" )\n\t},\n\n\trinputs = /^(?:input|select|textarea|button)$/i,\n\trheader = /^h\\d$/i,\n\n\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\n\trquickExpr = /^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,\n\n\trsibling = /[+~]/,\n\n\t// CSS escapes\n\t// https://www.w3.org/TR/CSS21/syndata.html#escaped-characters\n\trunescape = new RegExp( \"\\\\\\\\[\\\\da-fA-F]{1,6}\" + whitespace +\n\t\t\"?|\\\\\\\\([^\\\\r\\\\n\\\\f])\", \"g\" ),\n\tfunescape = function( escape, nonHex ) {\n\t\tvar high = \"0x\" + escape.slice( 1 ) - 0x10000;\n\n\t\tif ( nonHex ) {\n\n\t\t\t// Strip the backslash prefix from a non-hex escape sequence\n\t\t\treturn nonHex;\n\t\t}\n\n\t\t// Replace a hexadecimal escape sequence with the encoded Unicode code point\n\t\t// Support: IE <=11+\n\t\t// For values outside the Basic Multilingual Plane (BMP), manually construct a\n\t\t// surrogate pair\n\t\treturn high < 0 ?\n\t\t\tString.fromCharCode( high + 0x10000 ) :\n\t\t\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\n\t},\n\n\t// Used for iframes; see `setDocument`.\n\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t// Removing the function wrapper causes a \"Permission Denied\"\n\t// error in IE/Edge.\n\tunloadHandler = function() {\n\t\tsetDocument();\n\t},\n\n\tinDisabledFieldset = addCombinator(\n\t\tfunction( elem ) {\n\t\t\treturn elem.disabled === true && nodeName( elem, \"fieldset\" );\n\t\t},\n\t\t{ dir: \"parentNode\", next: \"legend\" }\n\t);\n\n// Support: IE <=9 only\n// Accessing document.activeElement can throw unexpectedly\n// https://bugs.jquery.com/ticket/13393\nfunction safeActiveElement() {\n\ttry {\n\t\treturn document.activeElement;\n\t} catch ( err ) { }\n}\n\n// Optimize for push.apply( _, NodeList )\ntry {\n\tpush.apply(\n\t\t( arr = slice.call( preferredDoc.childNodes ) ),\n\t\tpreferredDoc.childNodes\n\t);\n\n\t// Support: Android <=4.0\n\t// Detect silently failing push.apply\n\t// eslint-disable-next-line no-unused-expressions\n\tarr[ preferredDoc.childNodes.length ].nodeType;\n} catch ( e ) {\n\tpush = {\n\t\tapply: function( target, els ) {\n\t\t\tpushNative.apply( target, slice.call( els ) );\n\t\t},\n\t\tcall: function( target ) {\n\t\t\tpushNative.apply( target, slice.call( arguments, 1 ) );\n\t\t}\n\t};\n}\n\nfunction find( selector, context, results, seed ) {\n\tvar m, i, elem, nid, match, groups, newSelector,\n\t\tnewContext = context && context.ownerDocument,\n\n\t\t// nodeType defaults to 9, since context defaults to document\n\t\tnodeType = context ? context.nodeType : 9;\n\n\tresults = results || [];\n\n\t// Return early from calls with invalid selector or context\n\tif ( typeof selector !== \"string\" || !selector ||\n\t\tnodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {\n\n\t\treturn results;\n\t}\n\n\t// Try to shortcut find operations (as opposed to filters) in HTML documents\n\tif ( !seed ) {\n\t\tsetDocument( context );\n\t\tcontext = context || document;\n\n\t\tif ( documentIsHTML ) {\n\n\t\t\t// If the selector is sufficiently simple, try using a \"get*By*\" DOM method\n\t\t\t// (excepting DocumentFragment context, where the methods don't exist)\n\t\t\tif ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {\n\n\t\t\t\t// ID selector\n\t\t\t\tif ( ( m = match[ 1 ] ) ) {\n\n\t\t\t\t\t// Document context\n\t\t\t\t\tif ( nodeType === 9 ) {\n\t\t\t\t\t\tif ( ( elem = context.getElementById( m ) ) ) {\n\n\t\t\t\t\t\t\t// Support: IE 9 only\n\t\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\t\tif ( elem.id === m ) {\n\t\t\t\t\t\t\t\tpush.call( results, elem );\n\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// Element context\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// Support: IE 9 only\n\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\tif ( newContext && ( elem = newContext.getElementById( m ) ) &&\n\t\t\t\t\t\t\tfind.contains( context, elem ) &&\n\t\t\t\t\t\t\telem.id === m ) {\n\n\t\t\t\t\t\t\tpush.call( results, elem );\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t// Type selector\n\t\t\t\t} else if ( match[ 2 ] ) {\n\t\t\t\t\tpush.apply( results, context.getElementsByTagName( selector ) );\n\t\t\t\t\treturn results;\n\n\t\t\t\t// Class selector\n\t\t\t\t} else if ( ( m = match[ 3 ] ) && context.getElementsByClassName ) {\n\t\t\t\t\tpush.apply( results, context.getElementsByClassName( m ) );\n\t\t\t\t\treturn results;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Take advantage of querySelectorAll\n\t\t\tif ( !nonnativeSelectorCache[ selector + \" \" ] &&\n\t\t\t\t( !rbuggyQSA || !rbuggyQSA.test( selector ) ) ) {\n\n\t\t\t\tnewSelector = selector;\n\t\t\t\tnewContext = context;\n\n\t\t\t\t// qSA considers elements outside a scoping root when evaluating child or\n\t\t\t\t// descendant combinators, which is not what we want.\n\t\t\t\t// In such cases, we work around the behavior by prefixing every selector in the\n\t\t\t\t// list with an ID selector referencing the scope context.\n\t\t\t\t// The technique has to be used as well when a leading combinator is used\n\t\t\t\t// as such selectors are not recognized by querySelectorAll.\n\t\t\t\t// Thanks to Andrew Dupont for this technique.\n\t\t\t\tif ( nodeType === 1 &&\n\t\t\t\t\t( rdescend.test( selector ) || rleadingCombinator.test( selector ) ) ) {\n\n\t\t\t\t\t// Expand context for sibling selectors\n\t\t\t\t\tnewContext = rsibling.test( selector ) && testContext( context.parentNode ) ||\n\t\t\t\t\t\tcontext;\n\n\t\t\t\t\t// We can use :scope instead of the ID hack if the browser\n\t\t\t\t\t// supports it & if we're not changing the context.\n\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when\n\t\t\t\t\t// strict-comparing two documents; shallow comparisons work.\n\t\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\t\tif ( newContext != context || !support.scope ) {\n\n\t\t\t\t\t\t// Capture the context ID, setting it first if necessary\n\t\t\t\t\t\tif ( ( nid = context.getAttribute( \"id\" ) ) ) {\n\t\t\t\t\t\t\tnid = jQuery.escapeSelector( nid );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontext.setAttribute( \"id\", ( nid = expando ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prefix every selector in the list\n\t\t\t\t\tgroups = tokenize( selector );\n\t\t\t\t\ti = groups.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tgroups[ i ] = ( nid ? \"#\" + nid : \":scope\" ) + \" \" +\n\t\t\t\t\t\t\ttoSelector( groups[ i ] );\n\t\t\t\t\t}\n\t\t\t\t\tnewSelector = groups.join( \",\" );\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tpush.apply( results,\n\t\t\t\t\t\tnewContext.querySelectorAll( newSelector )\n\t\t\t\t\t);\n\t\t\t\t\treturn results;\n\t\t\t\t} catch ( qsaError ) {\n\t\t\t\t\tnonnativeSelectorCache( selector, true );\n\t\t\t\t} finally {\n\t\t\t\t\tif ( nid === expando ) {\n\t\t\t\t\t\tcontext.removeAttribute( \"id\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// All others\n\treturn select( selector.replace( rtrimCSS, \"$1\" ), context, results, seed );\n}\n\n/**\n * Create key-value caches of limited size\n * @returns {function(string, object)} Returns the Object data after storing it on itself with\n *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\n *\tdeleting the oldest entry\n */\nfunction createCache() {\n\tvar keys = [];\n\n\tfunction cache( key, value ) {\n\n\t\t// Use (key + \" \") to avoid collision with native prototype properties\n\t\t// (see https://github.com/jquery/sizzle/issues/157)\n\t\tif ( keys.push( key + \" \" ) > Expr.cacheLength ) {\n\n\t\t\t// Only keep the most recent entries\n\t\t\tdelete cache[ keys.shift() ];\n\t\t}\n\t\treturn ( cache[ key + \" \" ] = value );\n\t}\n\treturn cache;\n}\n\n/**\n * Mark a function for special use by jQuery selector module\n * @param {Function} fn The function to mark\n */\nfunction markFunction( fn ) {\n\tfn[ expando ] = true;\n\treturn fn;\n}\n\n/**\n * Support testing using an element\n * @param {Function} fn Passed the created element and returns a boolean result\n */\nfunction assert( fn ) {\n\tvar el = document.createElement( \"fieldset\" );\n\n\ttry {\n\t\treturn !!fn( el );\n\t} catch ( e ) {\n\t\treturn false;\n\t} finally {\n\n\t\t// Remove from its parent by default\n\t\tif ( el.parentNode ) {\n\t\t\tel.parentNode.removeChild( el );\n\t\t}\n\n\t\t// release memory in IE\n\t\tel = null;\n\t}\n}\n\n/**\n * Returns a function to use in pseudos for input types\n * @param {String} type\n */\nfunction createInputPseudo( type ) {\n\treturn function( elem ) {\n\t\treturn nodeName( elem, \"input\" ) && elem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for buttons\n * @param {String} type\n */\nfunction createButtonPseudo( type ) {\n\treturn function( elem ) {\n\t\treturn ( nodeName( elem, \"input\" ) || nodeName( elem, \"button\" ) ) &&\n\t\t\telem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for :enabled/:disabled\n * @param {Boolean} disabled true for :disabled; false for :enabled\n */\nfunction createDisabledPseudo( disabled ) {\n\n\t// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable\n\treturn function( elem ) {\n\n\t\t// Only certain elements can match :enabled or :disabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled\n\t\tif ( \"form\" in elem ) {\n\n\t\t\t// Check for inherited disabledness on relevant non-disabled elements:\n\t\t\t// * listed form-associated elements in a disabled fieldset\n\t\t\t//   https://html.spec.whatwg.org/multipage/forms.html#category-listed\n\t\t\t//   https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled\n\t\t\t// * option elements in a disabled optgroup\n\t\t\t//   https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled\n\t\t\t// All such elements have a \"form\" property.\n\t\t\tif ( elem.parentNode && elem.disabled === false ) {\n\n\t\t\t\t// Option elements defer to a parent optgroup if present\n\t\t\t\tif ( \"label\" in elem ) {\n\t\t\t\t\tif ( \"label\" in elem.parentNode ) {\n\t\t\t\t\t\treturn elem.parentNode.disabled === disabled;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn elem.disabled === disabled;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Support: IE 6 - 11+\n\t\t\t\t// Use the isDisabled shortcut property to check for disabled fieldset ancestors\n\t\t\t\treturn elem.isDisabled === disabled ||\n\n\t\t\t\t\t// Where there is no isDisabled, check manually\n\t\t\t\t\telem.isDisabled !== !disabled &&\n\t\t\t\t\t\tinDisabledFieldset( elem ) === disabled;\n\t\t\t}\n\n\t\t\treturn elem.disabled === disabled;\n\n\t\t// Try to winnow out elements that can't be disabled before trusting the disabled property.\n\t\t// Some victims get caught in our net (label, legend, menu, track), but it shouldn't\n\t\t// even exist on them, let alone have a boolean value.\n\t\t} else if ( \"label\" in elem ) {\n\t\t\treturn elem.disabled === disabled;\n\t\t}\n\n\t\t// Remaining elements are neither :enabled nor :disabled\n\t\treturn false;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for positionals\n * @param {Function} fn\n */\nfunction createPositionalPseudo( fn ) {\n\treturn markFunction( function( argument ) {\n\t\targument = +argument;\n\t\treturn markFunction( function( seed, matches ) {\n\t\t\tvar j,\n\t\t\t\tmatchIndexes = fn( [], seed.length, argument ),\n\t\t\t\ti = matchIndexes.length;\n\n\t\t\t// Match elements found at the specified indexes\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( seed[ ( j = matchIndexes[ i ] ) ] ) {\n\t\t\t\t\tseed[ j ] = !( matches[ j ] = seed[ j ] );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t} );\n}\n\n/**\n * Checks a node for validity as a jQuery selector context\n * @param {Element|Object=} context\n * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\n */\nfunction testContext( context ) {\n\treturn context && typeof context.getElementsByTagName !== \"undefined\" && context;\n}\n\n/**\n * Sets document-related variables once based on the current document\n * @param {Element|Object} [node] An element or document object to use to set the document\n * @returns {Object} Returns the current document\n */\nfunction setDocument( node ) {\n\tvar subWindow,\n\t\tdoc = node ? node.ownerDocument || node : preferredDoc;\n\n\t// Return early if doc is invalid or already selected\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) {\n\t\treturn document;\n\t}\n\n\t// Update global variables\n\tdocument = doc;\n\tdocumentElement = document.documentElement;\n\tdocumentIsHTML = !jQuery.isXMLDoc( document );\n\n\t// Support: iOS 7 only, IE 9 - 11+\n\t// Older browsers didn't support unprefixed `matches`.\n\tmatches = documentElement.matches ||\n\t\tdocumentElement.webkitMatchesSelector ||\n\t\tdocumentElement.msMatchesSelector;\n\n\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t// Accessing iframe documents after unload throws \"permission denied\" errors\n\t// (see trac-13936).\n\t// Limit the fix to IE & Edge Legacy; despite Edge 15+ implementing `matches`,\n\t// all IE 9+ and Edge Legacy versions implement `msMatchesSelector` as well.\n\tif ( documentElement.msMatchesSelector &&\n\n\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t// two documents; shallow comparisons work.\n\t\t// eslint-disable-next-line eqeqeq\n\t\tpreferredDoc != document &&\n\t\t( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {\n\n\t\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t\tsubWindow.addEventListener( \"unload\", unloadHandler );\n\t}\n\n\t// Support: IE <10\n\t// Check if getElementById returns elements by name\n\t// The broken getElementById methods don't pick up programmatically-set names,\n\t// so use a roundabout getElementsByName test\n\tsupport.getById = assert( function( el ) {\n\t\tdocumentElement.appendChild( el ).id = jQuery.expando;\n\t\treturn !document.getElementsByName ||\n\t\t\t!document.getElementsByName( jQuery.expando ).length;\n\t} );\n\n\t// Support: IE 9 only\n\t// Check to see if it's possible to do matchesSelector\n\t// on a disconnected node.\n\tsupport.disconnectedMatch = assert( function( el ) {\n\t\treturn matches.call( el, \"*\" );\n\t} );\n\n\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t// IE/Edge don't support the :scope pseudo-class.\n\tsupport.scope = assert( function() {\n\t\treturn document.querySelectorAll( \":scope\" );\n\t} );\n\n\t// Support: Chrome 105 - 111 only, Safari 15.4 - 16.3 only\n\t// Make sure the `:has()` argument is parsed unforgivingly.\n\t// We include `*` in the test to detect buggy implementations that are\n\t// _selectively_ forgiving (specifically when the list includes at least\n\t// one valid selector).\n\t// Note that we treat complete lack of support for `:has()` as if it were\n\t// spec-compliant support, which is fine because use of `:has()` in such\n\t// environments will fail in the qSA path and fall back to jQuery traversal\n\t// anyway.\n\tsupport.cssHas = assert( function() {\n\t\ttry {\n\t\t\tdocument.querySelector( \":has(*,:jqfake)\" );\n\t\t\treturn false;\n\t\t} catch ( e ) {\n\t\t\treturn true;\n\t\t}\n\t} );\n\n\t// ID filter and find\n\tif ( support.getById ) {\n\t\tExpr.filter.ID = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn elem.getAttribute( \"id\" ) === attrId;\n\t\t\t};\n\t\t};\n\t\tExpr.find.ID = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar elem = context.getElementById( id );\n\t\t\t\treturn elem ? [ elem ] : [];\n\t\t\t}\n\t\t};\n\t} else {\n\t\tExpr.filter.ID =  function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\tvar node = typeof elem.getAttributeNode !== \"undefined\" &&\n\t\t\t\t\telem.getAttributeNode( \"id\" );\n\t\t\t\treturn node && node.value === attrId;\n\t\t\t};\n\t\t};\n\n\t\t// Support: IE 6 - 7 only\n\t\t// getElementById is not reliable as a find shortcut\n\t\tExpr.find.ID = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar node, i, elems,\n\t\t\t\t\telem = context.getElementById( id );\n\n\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t// Verify the id attribute\n\t\t\t\t\tnode = elem.getAttributeNode( \"id\" );\n\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t}\n\n\t\t\t\t\t// Fall back on getElementsByName\n\t\t\t\t\telems = context.getElementsByName( id );\n\t\t\t\t\ti = 0;\n\t\t\t\t\twhile ( ( elem = elems[ i++ ] ) ) {\n\t\t\t\t\t\tnode = elem.getAttributeNode( \"id\" );\n\t\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn [];\n\t\t\t}\n\t\t};\n\t}\n\n\t// Tag\n\tExpr.find.TAG = function( tag, context ) {\n\t\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\t\treturn context.getElementsByTagName( tag );\n\n\t\t// DocumentFragment nodes don't have gEBTN\n\t\t} else {\n\t\t\treturn context.querySelectorAll( tag );\n\t\t}\n\t};\n\n\t// Class\n\tExpr.find.CLASS = function( className, context ) {\n\t\tif ( typeof context.getElementsByClassName !== \"undefined\" && documentIsHTML ) {\n\t\t\treturn context.getElementsByClassName( className );\n\t\t}\n\t};\n\n\t/* QSA/matchesSelector\n\t---------------------------------------------------------------------- */\n\n\t// QSA and matchesSelector support\n\n\trbuggyQSA = [];\n\n\t// Build QSA regex\n\t// Regex strategy adopted from Diego Perini\n\tassert( function( el ) {\n\n\t\tvar input;\n\n\t\tdocumentElement.appendChild( el ).innerHTML =\n\t\t\t\"<a id='\" + expando + \"' href='' disabled='disabled'></a>\" +\n\t\t\t\"<select id='\" + expando + \"-\\r\\\\' disabled='disabled'>\" +\n\t\t\t\"<option selected=''></option></select>\";\n\n\t\t// Support: iOS <=7 - 8 only\n\t\t// Boolean attributes and \"value\" are not treated correctly in some XML documents\n\t\tif ( !el.querySelectorAll( \"[selected]\" ).length ) {\n\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:value|\" + booleans + \")\" );\n\t\t}\n\n\t\t// Support: iOS <=7 - 8 only\n\t\tif ( !el.querySelectorAll( \"[id~=\" + expando + \"-]\" ).length ) {\n\t\t\trbuggyQSA.push( \"~=\" );\n\t\t}\n\n\t\t// Support: iOS 8 only\n\t\t// https://bugs.webkit.org/show_bug.cgi?id=136851\n\t\t// In-page `selector#id sibling-combinator selector` fails\n\t\tif ( !el.querySelectorAll( \"a#\" + expando + \"+*\" ).length ) {\n\t\t\trbuggyQSA.push( \".#.+[+~]\" );\n\t\t}\n\n\t\t// Support: Chrome <=105+, Firefox <=104+, Safari <=15.4+\n\t\t// In some of the document kinds, these selectors wouldn't work natively.\n\t\t// This is probably OK but for backwards compatibility we want to maintain\n\t\t// handling them through jQuery traversal in jQuery 3.x.\n\t\tif ( !el.querySelectorAll( \":checked\" ).length ) {\n\t\t\trbuggyQSA.push( \":checked\" );\n\t\t}\n\n\t\t// Support: Windows 8 Native Apps\n\t\t// The type and name attributes are restricted during .innerHTML assignment\n\t\tinput = document.createElement( \"input\" );\n\t\tinput.setAttribute( \"type\", \"hidden\" );\n\t\tel.appendChild( input ).setAttribute( \"name\", \"D\" );\n\n\t\t// Support: IE 9 - 11+\n\t\t// IE's :disabled selector does not pick up the children of disabled fieldsets\n\t\t// Support: Chrome <=105+, Firefox <=104+, Safari <=15.4+\n\t\t// In some of the document kinds, these selectors wouldn't work natively.\n\t\t// This is probably OK but for backwards compatibility we want to maintain\n\t\t// handling them through jQuery traversal in jQuery 3.x.\n\t\tdocumentElement.appendChild( el ).disabled = true;\n\t\tif ( el.querySelectorAll( \":disabled\" ).length !== 2 ) {\n\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t}\n\n\t\t// Support: IE 11+, Edge 15 - 18+\n\t\t// IE 11/Edge don't find elements on a `[name='']` query in some cases.\n\t\t// Adding a temporary attribute to the document before the selection works\n\t\t// around the issue.\n\t\t// Interestingly, IE 10 & older don't seem to have the issue.\n\t\tinput = document.createElement( \"input\" );\n\t\tinput.setAttribute( \"name\", \"\" );\n\t\tel.appendChild( input );\n\t\tif ( !el.querySelectorAll( \"[name='']\" ).length ) {\n\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*name\" + whitespace + \"*=\" +\n\t\t\t\twhitespace + \"*(?:''|\\\"\\\")\" );\n\t\t}\n\t} );\n\n\tif ( !support.cssHas ) {\n\n\t\t// Support: Chrome 105 - 110+, Safari 15.4 - 16.3+\n\t\t// Our regular `try-catch` mechanism fails to detect natively-unsupported\n\t\t// pseudo-classes inside `:has()` (such as `:has(:contains(\"Foo\"))`)\n\t\t// in browsers that parse the `:has()` argument as a forgiving selector list.\n\t\t// https://drafts.csswg.org/selectors/#relational now requires the argument\n\t\t// to be parsed unforgivingly, but browsers have not yet fully adjusted.\n\t\trbuggyQSA.push( \":has\" );\n\t}\n\n\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( \"|\" ) );\n\n\t/* Sorting\n\t---------------------------------------------------------------------- */\n\n\t// Document order sorting\n\tsortOrder = function( a, b ) {\n\n\t\t// Flag for duplicate removal\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\t// Sort on method existence if only one input has compareDocumentPosition\n\t\tvar compare = !a.compareDocumentPosition - !b.compareDocumentPosition;\n\t\tif ( compare ) {\n\t\t\treturn compare;\n\t\t}\n\n\t\t// Calculate position if both inputs belong to the same document\n\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t// two documents; shallow comparisons work.\n\t\t// eslint-disable-next-line eqeqeq\n\t\tcompare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ?\n\t\t\ta.compareDocumentPosition( b ) :\n\n\t\t\t// Otherwise we know they are disconnected\n\t\t\t1;\n\n\t\t// Disconnected nodes\n\t\tif ( compare & 1 ||\n\t\t\t( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) {\n\n\t\t\t// Choose the first element that is related to our preferred document\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\tif ( a === document || a.ownerDocument == preferredDoc &&\n\t\t\t\tfind.contains( preferredDoc, a ) ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\tif ( b === document || b.ownerDocument == preferredDoc &&\n\t\t\t\tfind.contains( preferredDoc, b ) ) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\t// Maintain original order\n\t\t\treturn sortInput ?\n\t\t\t\t( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :\n\t\t\t\t0;\n\t\t}\n\n\t\treturn compare & 4 ? -1 : 1;\n\t};\n\n\treturn document;\n}\n\nfind.matches = function( expr, elements ) {\n\treturn find( expr, null, null, elements );\n};\n\nfind.matchesSelector = function( elem, expr ) {\n\tsetDocument( elem );\n\n\tif ( documentIsHTML &&\n\t\t!nonnativeSelectorCache[ expr + \" \" ] &&\n\t\t( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {\n\n\t\ttry {\n\t\t\tvar ret = matches.call( elem, expr );\n\n\t\t\t// IE 9's matchesSelector returns false on disconnected nodes\n\t\t\tif ( ret || support.disconnectedMatch ||\n\n\t\t\t\t\t// As well, disconnected nodes are said to be in a document\n\t\t\t\t\t// fragment in IE 9\n\t\t\t\t\telem.document && elem.document.nodeType !== 11 ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t} catch ( e ) {\n\t\t\tnonnativeSelectorCache( expr, true );\n\t\t}\n\t}\n\n\treturn find( expr, document, null, [ elem ] ).length > 0;\n};\n\nfind.contains = function( context, elem ) {\n\n\t// Set document vars if needed\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( ( context.ownerDocument || context ) != document ) {\n\t\tsetDocument( context );\n\t}\n\treturn jQuery.contains( context, elem );\n};\n\n\nfind.attr = function( elem, name ) {\n\n\t// Set document vars if needed\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( ( elem.ownerDocument || elem ) != document ) {\n\t\tsetDocument( elem );\n\t}\n\n\tvar fn = Expr.attrHandle[ name.toLowerCase() ],\n\n\t\t// Don't get fooled by Object.prototype properties (see trac-13807)\n\t\tval = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?\n\t\t\tfn( elem, name, !documentIsHTML ) :\n\t\t\tundefined;\n\n\tif ( val !== undefined ) {\n\t\treturn val;\n\t}\n\n\treturn elem.getAttribute( name );\n};\n\nfind.error = function( msg ) {\n\tthrow new Error( \"Syntax error, unrecognized expression: \" + msg );\n};\n\n/**\n * Document sorting and removing duplicates\n * @param {ArrayLike} results\n */\njQuery.uniqueSort = function( results ) {\n\tvar elem,\n\t\tduplicates = [],\n\t\tj = 0,\n\t\ti = 0;\n\n\t// Unless we *know* we can detect duplicates, assume their presence\n\t//\n\t// Support: Android <=4.0+\n\t// Testing for detecting duplicates is unpredictable so instead assume we can't\n\t// depend on duplicate detection in all browsers without a stable sort.\n\thasDuplicate = !support.sortStable;\n\tsortInput = !support.sortStable && slice.call( results, 0 );\n\tsort.call( results, sortOrder );\n\n\tif ( hasDuplicate ) {\n\t\twhile ( ( elem = results[ i++ ] ) ) {\n\t\t\tif ( elem === results[ i ] ) {\n\t\t\t\tj = duplicates.push( i );\n\t\t\t}\n\t\t}\n\t\twhile ( j-- ) {\n\t\t\tsplice.call( results, duplicates[ j ], 1 );\n\t\t}\n\t}\n\n\t// Clear input after sorting to release objects\n\t// See https://github.com/jquery/sizzle/pull/225\n\tsortInput = null;\n\n\treturn results;\n};\n\njQuery.fn.uniqueSort = function() {\n\treturn this.pushStack( jQuery.uniqueSort( slice.apply( this ) ) );\n};\n\nExpr = jQuery.expr = {\n\n\t// Can be adjusted by the user\n\tcacheLength: 50,\n\n\tcreatePseudo: markFunction,\n\n\tmatch: matchExpr,\n\n\tattrHandle: {},\n\n\tfind: {},\n\n\trelative: {\n\t\t\">\": { dir: \"parentNode\", first: true },\n\t\t\" \": { dir: \"parentNode\" },\n\t\t\"+\": { dir: \"previousSibling\", first: true },\n\t\t\"~\": { dir: \"previousSibling\" }\n\t},\n\n\tpreFilter: {\n\t\tATTR: function( match ) {\n\t\t\tmatch[ 1 ] = match[ 1 ].replace( runescape, funescape );\n\n\t\t\t// Move the given value to match[3] whether quoted or unquoted\n\t\t\tmatch[ 3 ] = ( match[ 3 ] || match[ 4 ] || match[ 5 ] || \"\" )\n\t\t\t\t.replace( runescape, funescape );\n\n\t\t\tif ( match[ 2 ] === \"~=\" ) {\n\t\t\t\tmatch[ 3 ] = \" \" + match[ 3 ] + \" \";\n\t\t\t}\n\n\t\t\treturn match.slice( 0, 4 );\n\t\t},\n\n\t\tCHILD: function( match ) {\n\n\t\t\t/* matches from matchExpr[\"CHILD\"]\n\t\t\t\t1 type (only|nth|...)\n\t\t\t\t2 what (child|of-type)\n\t\t\t\t3 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\n\t\t\t\t4 xn-component of xn+y argument ([+-]?\\d*n|)\n\t\t\t\t5 sign of xn-component\n\t\t\t\t6 x of xn-component\n\t\t\t\t7 sign of y-component\n\t\t\t\t8 y of y-component\n\t\t\t*/\n\t\t\tmatch[ 1 ] = match[ 1 ].toLowerCase();\n\n\t\t\tif ( match[ 1 ].slice( 0, 3 ) === \"nth\" ) {\n\n\t\t\t\t// nth-* requires argument\n\t\t\t\tif ( !match[ 3 ] ) {\n\t\t\t\t\tfind.error( match[ 0 ] );\n\t\t\t\t}\n\n\t\t\t\t// numeric x and y parameters for Expr.filter.CHILD\n\t\t\t\t// remember that false/true cast respectively to 0/1\n\t\t\t\tmatch[ 4 ] = +( match[ 4 ] ?\n\t\t\t\t\tmatch[ 5 ] + ( match[ 6 ] || 1 ) :\n\t\t\t\t\t2 * ( match[ 3 ] === \"even\" || match[ 3 ] === \"odd\" )\n\t\t\t\t);\n\t\t\t\tmatch[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === \"odd\" );\n\n\t\t\t// other types prohibit arguments\n\t\t\t} else if ( match[ 3 ] ) {\n\t\t\t\tfind.error( match[ 0 ] );\n\t\t\t}\n\n\t\t\treturn match;\n\t\t},\n\n\t\tPSEUDO: function( match ) {\n\t\t\tvar excess,\n\t\t\t\tunquoted = !match[ 6 ] && match[ 2 ];\n\n\t\t\tif ( matchExpr.CHILD.test( match[ 0 ] ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// Accept quoted arguments as-is\n\t\t\tif ( match[ 3 ] ) {\n\t\t\t\tmatch[ 2 ] = match[ 4 ] || match[ 5 ] || \"\";\n\n\t\t\t// Strip excess characters from unquoted arguments\n\t\t\t} else if ( unquoted && rpseudo.test( unquoted ) &&\n\n\t\t\t\t// Get excess from tokenize (recursively)\n\t\t\t\t( excess = tokenize( unquoted, true ) ) &&\n\n\t\t\t\t// advance to the next closing parenthesis\n\t\t\t\t( excess = unquoted.indexOf( \")\", unquoted.length - excess ) - unquoted.length ) ) {\n\n\t\t\t\t// excess is a negative index\n\t\t\t\tmatch[ 0 ] = match[ 0 ].slice( 0, excess );\n\t\t\t\tmatch[ 2 ] = unquoted.slice( 0, excess );\n\t\t\t}\n\n\t\t\t// Return only captures needed by the pseudo filter method (type and argument)\n\t\t\treturn match.slice( 0, 3 );\n\t\t}\n\t},\n\n\tfilter: {\n\n\t\tTAG: function( nodeNameSelector ) {\n\t\t\tvar expectedNodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn nodeNameSelector === \"*\" ?\n\t\t\t\tfunction() {\n\t\t\t\t\treturn true;\n\t\t\t\t} :\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn nodeName( elem, expectedNodeName );\n\t\t\t\t};\n\t\t},\n\n\t\tCLASS: function( className ) {\n\t\t\tvar pattern = classCache[ className + \" \" ];\n\n\t\t\treturn pattern ||\n\t\t\t\t( pattern = new RegExp( \"(^|\" + whitespace + \")\" + className +\n\t\t\t\t\t\"(\" + whitespace + \"|$)\" ) ) &&\n\t\t\t\tclassCache( className, function( elem ) {\n\t\t\t\t\treturn pattern.test(\n\t\t\t\t\t\ttypeof elem.className === \"string\" && elem.className ||\n\t\t\t\t\t\t\ttypeof elem.getAttribute !== \"undefined\" &&\n\t\t\t\t\t\t\t\telem.getAttribute( \"class\" ) ||\n\t\t\t\t\t\t\t\"\"\n\t\t\t\t\t);\n\t\t\t\t} );\n\t\t},\n\n\t\tATTR: function( name, operator, check ) {\n\t\t\treturn function( elem ) {\n\t\t\t\tvar result = find.attr( elem, name );\n\n\t\t\t\tif ( result == null ) {\n\t\t\t\t\treturn operator === \"!=\";\n\t\t\t\t}\n\t\t\t\tif ( !operator ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tresult += \"\";\n\n\t\t\t\tif ( operator === \"=\" ) {\n\t\t\t\t\treturn result === check;\n\t\t\t\t}\n\t\t\t\tif ( operator === \"!=\" ) {\n\t\t\t\t\treturn result !== check;\n\t\t\t\t}\n\t\t\t\tif ( operator === \"^=\" ) {\n\t\t\t\t\treturn check && result.indexOf( check ) === 0;\n\t\t\t\t}\n\t\t\t\tif ( operator === \"*=\" ) {\n\t\t\t\t\treturn check && result.indexOf( check ) > -1;\n\t\t\t\t}\n\t\t\t\tif ( operator === \"$=\" ) {\n\t\t\t\t\treturn check && result.slice( -check.length ) === check;\n\t\t\t\t}\n\t\t\t\tif ( operator === \"~=\" ) {\n\t\t\t\t\treturn ( \" \" + result.replace( rwhitespace, \" \" ) + \" \" )\n\t\t\t\t\t\t.indexOf( check ) > -1;\n\t\t\t\t}\n\t\t\t\tif ( operator === \"|=\" ) {\n\t\t\t\t\treturn result === check || result.slice( 0, check.length + 1 ) === check + \"-\";\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\t\t\t};\n\t\t},\n\n\t\tCHILD: function( type, what, _argument, first, last ) {\n\t\t\tvar simple = type.slice( 0, 3 ) !== \"nth\",\n\t\t\t\tforward = type.slice( -4 ) !== \"last\",\n\t\t\t\tofType = what === \"of-type\";\n\n\t\t\treturn first === 1 && last === 0 ?\n\n\t\t\t\t// Shortcut for :nth-*(n)\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn !!elem.parentNode;\n\t\t\t\t} :\n\n\t\t\t\tfunction( elem, _context, xml ) {\n\t\t\t\t\tvar cache, outerCache, node, nodeIndex, start,\n\t\t\t\t\t\tdir = simple !== forward ? \"nextSibling\" : \"previousSibling\",\n\t\t\t\t\t\tparent = elem.parentNode,\n\t\t\t\t\t\tname = ofType && elem.nodeName.toLowerCase(),\n\t\t\t\t\t\tuseCache = !xml && !ofType,\n\t\t\t\t\t\tdiff = false;\n\n\t\t\t\t\tif ( parent ) {\n\n\t\t\t\t\t\t// :(first|last|only)-(child|of-type)\n\t\t\t\t\t\tif ( simple ) {\n\t\t\t\t\t\t\twhile ( dir ) {\n\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\twhile ( ( node = node[ dir ] ) ) {\n\t\t\t\t\t\t\t\t\tif ( ofType ?\n\t\t\t\t\t\t\t\t\t\tnodeName( node, name ) :\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) {\n\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// Reverse direction for :only-* (if we haven't yet done so)\n\t\t\t\t\t\t\t\tstart = dir = type === \"only\" && !start && \"nextSibling\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tstart = [ forward ? parent.firstChild : parent.lastChild ];\n\n\t\t\t\t\t\t// non-xml :nth-child(...) stores cache data on `parent`\n\t\t\t\t\t\tif ( forward && useCache ) {\n\n\t\t\t\t\t\t\t// Seek `elem` from a previously-cached index\n\t\t\t\t\t\t\touterCache = parent[ expando ] || ( parent[ expando ] = {} );\n\t\t\t\t\t\t\tcache = outerCache[ type ] || [];\n\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\tdiff = nodeIndex && cache[ 2 ];\n\t\t\t\t\t\t\tnode = nodeIndex && parent.childNodes[ nodeIndex ];\n\n\t\t\t\t\t\t\twhile ( ( node = ++nodeIndex && node && node[ dir ] ||\n\n\t\t\t\t\t\t\t\t// Fallback to seeking `elem` from the start\n\t\t\t\t\t\t\t\t( diff = nodeIndex = 0 ) || start.pop() ) ) {\n\n\t\t\t\t\t\t\t\t// When found, cache indexes on `parent` and break\n\t\t\t\t\t\t\t\tif ( node.nodeType === 1 && ++diff && node === elem ) {\n\t\t\t\t\t\t\t\t\touterCache[ type ] = [ dirruns, nodeIndex, diff ];\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Use previously-cached element index if available\n\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\touterCache = elem[ expando ] || ( elem[ expando ] = {} );\n\t\t\t\t\t\t\t\tcache = outerCache[ type ] || [];\n\t\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\t\tdiff = nodeIndex;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// xml :nth-child(...)\n\t\t\t\t\t\t\t// or :nth-last-child(...) or :nth(-last)?-of-type(...)\n\t\t\t\t\t\t\tif ( diff === false ) {\n\n\t\t\t\t\t\t\t\t// Use the same loop as above to seek `elem` from the start\n\t\t\t\t\t\t\t\twhile ( ( node = ++nodeIndex && node && node[ dir ] ||\n\t\t\t\t\t\t\t\t\t( diff = nodeIndex = 0 ) || start.pop() ) ) {\n\n\t\t\t\t\t\t\t\t\tif ( ( ofType ?\n\t\t\t\t\t\t\t\t\t\tnodeName( node, name ) :\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) &&\n\t\t\t\t\t\t\t\t\t\t++diff ) {\n\n\t\t\t\t\t\t\t\t\t\t// Cache the index of each encountered element\n\t\t\t\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\t\t\t\touterCache = node[ expando ] ||\n\t\t\t\t\t\t\t\t\t\t\t\t( node[ expando ] = {} );\n\t\t\t\t\t\t\t\t\t\t\touterCache[ type ] = [ dirruns, diff ];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif ( node === elem ) {\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Incorporate the offset, then check against cycle size\n\t\t\t\t\t\tdiff -= last;\n\t\t\t\t\t\treturn diff === first || ( diff % first === 0 && diff / first >= 0 );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t},\n\n\t\tPSEUDO: function( pseudo, argument ) {\n\n\t\t\t// pseudo-class names are case-insensitive\n\t\t\t// https://www.w3.org/TR/selectors/#pseudo-classes\n\t\t\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\n\t\t\t// Remember that setFilters inherits from pseudos\n\t\t\tvar args,\n\t\t\t\tfn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||\n\t\t\t\t\tfind.error( \"unsupported pseudo: \" + pseudo );\n\n\t\t\t// The user may use createPseudo to indicate that\n\t\t\t// arguments are needed to create the filter function\n\t\t\t// just as jQuery does\n\t\t\tif ( fn[ expando ] ) {\n\t\t\t\treturn fn( argument );\n\t\t\t}\n\n\t\t\t// But maintain support for old signatures\n\t\t\tif ( fn.length > 1 ) {\n\t\t\t\targs = [ pseudo, pseudo, \"\", argument ];\n\t\t\t\treturn Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?\n\t\t\t\t\tmarkFunction( function( seed, matches ) {\n\t\t\t\t\t\tvar idx,\n\t\t\t\t\t\t\tmatched = fn( seed, argument ),\n\t\t\t\t\t\t\ti = matched.length;\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tidx = indexOf.call( seed, matched[ i ] );\n\t\t\t\t\t\t\tseed[ idx ] = !( matches[ idx ] = matched[ i ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} ) :\n\t\t\t\t\tfunction( elem ) {\n\t\t\t\t\t\treturn fn( elem, 0, args );\n\t\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn fn;\n\t\t}\n\t},\n\n\tpseudos: {\n\n\t\t// Potentially complex pseudos\n\t\tnot: markFunction( function( selector ) {\n\n\t\t\t// Trim the selector passed to compile\n\t\t\t// to avoid treating leading and trailing\n\t\t\t// spaces as combinators\n\t\t\tvar input = [],\n\t\t\t\tresults = [],\n\t\t\t\tmatcher = compile( selector.replace( rtrimCSS, \"$1\" ) );\n\n\t\t\treturn matcher[ expando ] ?\n\t\t\t\tmarkFunction( function( seed, matches, _context, xml ) {\n\t\t\t\t\tvar elem,\n\t\t\t\t\t\tunmatched = matcher( seed, null, xml, [] ),\n\t\t\t\t\t\ti = seed.length;\n\n\t\t\t\t\t// Match elements unmatched by `matcher`\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( ( elem = unmatched[ i ] ) ) {\n\t\t\t\t\t\t\tseed[ i ] = !( matches[ i ] = elem );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} ) :\n\t\t\t\tfunction( elem, _context, xml ) {\n\t\t\t\t\tinput[ 0 ] = elem;\n\t\t\t\t\tmatcher( input, null, xml, results );\n\n\t\t\t\t\t// Don't keep the element\n\t\t\t\t\t// (see https://github.com/jquery/sizzle/issues/299)\n\t\t\t\t\tinput[ 0 ] = null;\n\t\t\t\t\treturn !results.pop();\n\t\t\t\t};\n\t\t} ),\n\n\t\thas: markFunction( function( selector ) {\n\t\t\treturn function( elem ) {\n\t\t\t\treturn find( selector, elem ).length > 0;\n\t\t\t};\n\t\t} ),\n\n\t\tcontains: markFunction( function( text ) {\n\t\t\ttext = text.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn ( elem.textContent || jQuery.text( elem ) ).indexOf( text ) > -1;\n\t\t\t};\n\t\t} ),\n\n\t\t// \"Whether an element is represented by a :lang() selector\n\t\t// is based solely on the element's language value\n\t\t// being equal to the identifier C,\n\t\t// or beginning with the identifier C immediately followed by \"-\".\n\t\t// The matching of C against the element's language value is performed case-insensitively.\n\t\t// The identifier C does not have to be a valid language name.\"\n\t\t// https://www.w3.org/TR/selectors/#lang-pseudo\n\t\tlang: markFunction( function( lang ) {\n\n\t\t\t// lang value must be a valid identifier\n\t\t\tif ( !ridentifier.test( lang || \"\" ) ) {\n\t\t\t\tfind.error( \"unsupported lang: \" + lang );\n\t\t\t}\n\t\t\tlang = lang.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn function( elem ) {\n\t\t\t\tvar elemLang;\n\t\t\t\tdo {\n\t\t\t\t\tif ( ( elemLang = documentIsHTML ?\n\t\t\t\t\t\telem.lang :\n\t\t\t\t\t\telem.getAttribute( \"xml:lang\" ) || elem.getAttribute( \"lang\" ) ) ) {\n\n\t\t\t\t\t\telemLang = elemLang.toLowerCase();\n\t\t\t\t\t\treturn elemLang === lang || elemLang.indexOf( lang + \"-\" ) === 0;\n\t\t\t\t\t}\n\t\t\t\t} while ( ( elem = elem.parentNode ) && elem.nodeType === 1 );\n\t\t\t\treturn false;\n\t\t\t};\n\t\t} ),\n\n\t\t// Miscellaneous\n\t\ttarget: function( elem ) {\n\t\t\tvar hash = window.location && window.location.hash;\n\t\t\treturn hash && hash.slice( 1 ) === elem.id;\n\t\t},\n\n\t\troot: function( elem ) {\n\t\t\treturn elem === documentElement;\n\t\t},\n\n\t\tfocus: function( elem ) {\n\t\t\treturn elem === safeActiveElement() &&\n\t\t\t\tdocument.hasFocus() &&\n\t\t\t\t!!( elem.type || elem.href || ~elem.tabIndex );\n\t\t},\n\n\t\t// Boolean properties\n\t\tenabled: createDisabledPseudo( false ),\n\t\tdisabled: createDisabledPseudo( true ),\n\n\t\tchecked: function( elem ) {\n\n\t\t\t// In CSS3, :checked should return both checked and selected elements\n\t\t\t// https://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\treturn ( nodeName( elem, \"input\" ) && !!elem.checked ) ||\n\t\t\t\t( nodeName( elem, \"option\" ) && !!elem.selected );\n\t\t},\n\n\t\tselected: function( elem ) {\n\n\t\t\t// Support: IE <=11+\n\t\t\t// Accessing the selectedIndex property\n\t\t\t// forces the browser to treat the default option as\n\t\t\t// selected when in an optgroup.\n\t\t\tif ( elem.parentNode ) {\n\t\t\t\t// eslint-disable-next-line no-unused-expressions\n\t\t\t\telem.parentNode.selectedIndex;\n\t\t\t}\n\n\t\t\treturn elem.selected === true;\n\t\t},\n\n\t\t// Contents\n\t\tempty: function( elem ) {\n\n\t\t\t// https://www.w3.org/TR/selectors/#empty-pseudo\n\t\t\t// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),\n\t\t\t//   but not by others (comment: 8; processing instruction: 7; etc.)\n\t\t\t// nodeType < 6 works because attributes (2) do not appear as children\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tif ( elem.nodeType < 6 ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\tparent: function( elem ) {\n\t\t\treturn !Expr.pseudos.empty( elem );\n\t\t},\n\n\t\t// Element/input types\n\t\theader: function( elem ) {\n\t\t\treturn rheader.test( elem.nodeName );\n\t\t},\n\n\t\tinput: function( elem ) {\n\t\t\treturn rinputs.test( elem.nodeName );\n\t\t},\n\n\t\tbutton: function( elem ) {\n\t\t\treturn nodeName( elem, \"input\" ) && elem.type === \"button\" ||\n\t\t\t\tnodeName( elem, \"button\" );\n\t\t},\n\n\t\ttext: function( elem ) {\n\t\t\tvar attr;\n\t\t\treturn nodeName( elem, \"input\" ) && elem.type === \"text\" &&\n\n\t\t\t\t// Support: IE <10 only\n\t\t\t\t// New HTML5 attribute values (e.g., \"search\") appear\n\t\t\t\t// with elem.type === \"text\"\n\t\t\t\t( ( attr = elem.getAttribute( \"type\" ) ) == null ||\n\t\t\t\t\tattr.toLowerCase() === \"text\" );\n\t\t},\n\n\t\t// Position-in-collection\n\t\tfirst: createPositionalPseudo( function() {\n\t\t\treturn [ 0 ];\n\t\t} ),\n\n\t\tlast: createPositionalPseudo( function( _matchIndexes, length ) {\n\t\t\treturn [ length - 1 ];\n\t\t} ),\n\n\t\teq: createPositionalPseudo( function( _matchIndexes, length, argument ) {\n\t\t\treturn [ argument < 0 ? argument + length : argument ];\n\t\t} ),\n\n\t\teven: createPositionalPseudo( function( matchIndexes, length ) {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} ),\n\n\t\todd: createPositionalPseudo( function( matchIndexes, length ) {\n\t\t\tvar i = 1;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} ),\n\n\t\tlt: createPositionalPseudo( function( matchIndexes, length, argument ) {\n\t\t\tvar i;\n\n\t\t\tif ( argument < 0 ) {\n\t\t\t\ti = argument + length;\n\t\t\t} else if ( argument > length ) {\n\t\t\t\ti = length;\n\t\t\t} else {\n\t\t\t\ti = argument;\n\t\t\t}\n\n\t\t\tfor ( ; --i >= 0; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} ),\n\n\t\tgt: createPositionalPseudo( function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\tfor ( ; ++i < length; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} )\n\t}\n};\n\nExpr.pseudos.nth = Expr.pseudos.eq;\n\n// Add button/input type pseudos\nfor ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {\n\tExpr.pseudos[ i ] = createInputPseudo( i );\n}\nfor ( i in { submit: true, reset: true } ) {\n\tExpr.pseudos[ i ] = createButtonPseudo( i );\n}\n\n// Easy API for creating new setFilters\nfunction setFilters() {}\nsetFilters.prototype = Expr.filters = Expr.pseudos;\nExpr.setFilters = new setFilters();\n\nfunction tokenize( selector, parseOnly ) {\n\tvar matched, match, tokens, type,\n\t\tsoFar, groups, preFilters,\n\t\tcached = tokenCache[ selector + \" \" ];\n\n\tif ( cached ) {\n\t\treturn parseOnly ? 0 : cached.slice( 0 );\n\t}\n\n\tsoFar = selector;\n\tgroups = [];\n\tpreFilters = Expr.preFilter;\n\n\twhile ( soFar ) {\n\n\t\t// Comma and first run\n\t\tif ( !matched || ( match = rcomma.exec( soFar ) ) ) {\n\t\t\tif ( match ) {\n\n\t\t\t\t// Don't consume trailing commas as valid\n\t\t\t\tsoFar = soFar.slice( match[ 0 ].length ) || soFar;\n\t\t\t}\n\t\t\tgroups.push( ( tokens = [] ) );\n\t\t}\n\n\t\tmatched = false;\n\n\t\t// Combinators\n\t\tif ( ( match = rleadingCombinator.exec( soFar ) ) ) {\n\t\t\tmatched = match.shift();\n\t\t\ttokens.push( {\n\t\t\t\tvalue: matched,\n\n\t\t\t\t// Cast descendant combinators to space\n\t\t\t\ttype: match[ 0 ].replace( rtrimCSS, \" \" )\n\t\t\t} );\n\t\t\tsoFar = soFar.slice( matched.length );\n\t\t}\n\n\t\t// Filters\n\t\tfor ( type in Expr.filter ) {\n\t\t\tif ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] ||\n\t\t\t\t( match = preFilters[ type ]( match ) ) ) ) {\n\t\t\t\tmatched = match.shift();\n\t\t\t\ttokens.push( {\n\t\t\t\t\tvalue: matched,\n\t\t\t\t\ttype: type,\n\t\t\t\t\tmatches: match\n\t\t\t\t} );\n\t\t\t\tsoFar = soFar.slice( matched.length );\n\t\t\t}\n\t\t}\n\n\t\tif ( !matched ) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t// Return the length of the invalid excess\n\t// if we're just parsing\n\t// Otherwise, throw an error or return tokens\n\tif ( parseOnly ) {\n\t\treturn soFar.length;\n\t}\n\n\treturn soFar ?\n\t\tfind.error( selector ) :\n\n\t\t// Cache the tokens\n\t\ttokenCache( selector, groups ).slice( 0 );\n}\n\nfunction toSelector( tokens ) {\n\tvar i = 0,\n\t\tlen = tokens.length,\n\t\tselector = \"\";\n\tfor ( ; i < len; i++ ) {\n\t\tselector += tokens[ i ].value;\n\t}\n\treturn selector;\n}\n\nfunction addCombinator( matcher, combinator, base ) {\n\tvar dir = combinator.dir,\n\t\tskip = combinator.next,\n\t\tkey = skip || dir,\n\t\tcheckNonElements = base && key === \"parentNode\",\n\t\tdoneName = done++;\n\n\treturn combinator.first ?\n\n\t\t// Check against closest ancestor/preceding element\n\t\tfunction( elem, context, xml ) {\n\t\t\twhile ( ( elem = elem[ dir ] ) ) {\n\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\treturn matcher( elem, context, xml );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t} :\n\n\t\t// Check against all ancestor/preceding elements\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar oldCache, outerCache,\n\t\t\t\tnewCache = [ dirruns, doneName ];\n\n\t\t\t// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching\n\t\t\tif ( xml ) {\n\t\t\t\twhile ( ( elem = elem[ dir ] ) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\tif ( matcher( elem, context, xml ) ) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\twhile ( ( elem = elem[ dir ] ) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\touterCache = elem[ expando ] || ( elem[ expando ] = {} );\n\n\t\t\t\t\t\tif ( skip && nodeName( elem, skip ) ) {\n\t\t\t\t\t\t\telem = elem[ dir ] || elem;\n\t\t\t\t\t\t} else if ( ( oldCache = outerCache[ key ] ) &&\n\t\t\t\t\t\t\toldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {\n\n\t\t\t\t\t\t\t// Assign to newCache so results back-propagate to previous elements\n\t\t\t\t\t\t\treturn ( newCache[ 2 ] = oldCache[ 2 ] );\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Reuse newcache so results back-propagate to previous elements\n\t\t\t\t\t\t\touterCache[ key ] = newCache;\n\n\t\t\t\t\t\t\t// A match means we're done; a fail means we have to keep checking\n\t\t\t\t\t\t\tif ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n}\n\nfunction elementMatcher( matchers ) {\n\treturn matchers.length > 1 ?\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar i = matchers.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( !matchers[ i ]( elem, context, xml ) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} :\n\t\tmatchers[ 0 ];\n}\n\nfunction multipleContexts( selector, contexts, results ) {\n\tvar i = 0,\n\t\tlen = contexts.length;\n\tfor ( ; i < len; i++ ) {\n\t\tfind( selector, contexts[ i ], results );\n\t}\n\treturn results;\n}\n\nfunction condense( unmatched, map, filter, context, xml ) {\n\tvar elem,\n\t\tnewUnmatched = [],\n\t\ti = 0,\n\t\tlen = unmatched.length,\n\t\tmapped = map != null;\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( ( elem = unmatched[ i ] ) ) {\n\t\t\tif ( !filter || filter( elem, context, xml ) ) {\n\t\t\t\tnewUnmatched.push( elem );\n\t\t\t\tif ( mapped ) {\n\t\t\t\t\tmap.push( i );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn newUnmatched;\n}\n\nfunction setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {\n\tif ( postFilter && !postFilter[ expando ] ) {\n\t\tpostFilter = setMatcher( postFilter );\n\t}\n\tif ( postFinder && !postFinder[ expando ] ) {\n\t\tpostFinder = setMatcher( postFinder, postSelector );\n\t}\n\treturn markFunction( function( seed, results, context, xml ) {\n\t\tvar temp, i, elem, matcherOut,\n\t\t\tpreMap = [],\n\t\t\tpostMap = [],\n\t\t\tpreexisting = results.length,\n\n\t\t\t// Get initial elements from seed or context\n\t\t\telems = seed ||\n\t\t\t\tmultipleContexts( selector || \"*\",\n\t\t\t\t\tcontext.nodeType ? [ context ] : context, [] ),\n\n\t\t\t// Prefilter to get matcher input, preserving a map for seed-results synchronization\n\t\t\tmatcherIn = preFilter && ( seed || !selector ) ?\n\t\t\t\tcondense( elems, preMap, preFilter, context, xml ) :\n\t\t\t\telems;\n\n\t\tif ( matcher ) {\n\n\t\t\t// If we have a postFinder, or filtered seed, or non-seed postFilter\n\t\t\t// or preexisting results,\n\t\t\tmatcherOut = postFinder || ( seed ? preFilter : preexisting || postFilter ) ?\n\n\t\t\t\t// ...intermediate processing is necessary\n\t\t\t\t[] :\n\n\t\t\t\t// ...otherwise use results directly\n\t\t\t\tresults;\n\n\t\t\t// Find primary matches\n\t\t\tmatcher( matcherIn, matcherOut, context, xml );\n\t\t} else {\n\t\t\tmatcherOut = matcherIn;\n\t\t}\n\n\t\t// Apply postFilter\n\t\tif ( postFilter ) {\n\t\t\ttemp = condense( matcherOut, postMap );\n\t\t\tpostFilter( temp, [], context, xml );\n\n\t\t\t// Un-match failing elements by moving them back to matcherIn\n\t\t\ti = temp.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( ( elem = temp[ i ] ) ) {\n\t\t\t\t\tmatcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( seed ) {\n\t\t\tif ( postFinder || preFilter ) {\n\t\t\t\tif ( postFinder ) {\n\n\t\t\t\t\t// Get the final matcherOut by condensing this intermediate into postFinder contexts\n\t\t\t\t\ttemp = [];\n\t\t\t\t\ti = matcherOut.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( ( elem = matcherOut[ i ] ) ) {\n\n\t\t\t\t\t\t\t// Restore matcherIn since elem is not yet a final match\n\t\t\t\t\t\t\ttemp.push( ( matcherIn[ i ] = elem ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpostFinder( null, ( matcherOut = [] ), temp, xml );\n\t\t\t\t}\n\n\t\t\t\t// Move matched elements from seed to results to keep them synchronized\n\t\t\t\ti = matcherOut.length;\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\tif ( ( elem = matcherOut[ i ] ) &&\n\t\t\t\t\t\t( temp = postFinder ? indexOf.call( seed, elem ) : preMap[ i ] ) > -1 ) {\n\n\t\t\t\t\t\tseed[ temp ] = !( results[ temp ] = elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Add elements to results, through postFinder if defined\n\t\t} else {\n\t\t\tmatcherOut = condense(\n\t\t\t\tmatcherOut === results ?\n\t\t\t\t\tmatcherOut.splice( preexisting, matcherOut.length ) :\n\t\t\t\t\tmatcherOut\n\t\t\t);\n\t\t\tif ( postFinder ) {\n\t\t\t\tpostFinder( null, results, matcherOut, xml );\n\t\t\t} else {\n\t\t\t\tpush.apply( results, matcherOut );\n\t\t\t}\n\t\t}\n\t} );\n}\n\nfunction matcherFromTokens( tokens ) {\n\tvar checkContext, matcher, j,\n\t\tlen = tokens.length,\n\t\tleadingRelative = Expr.relative[ tokens[ 0 ].type ],\n\t\timplicitRelative = leadingRelative || Expr.relative[ \" \" ],\n\t\ti = leadingRelative ? 1 : 0,\n\n\t\t// The foundational matcher ensures that elements are reachable from top-level context(s)\n\t\tmatchContext = addCombinator( function( elem ) {\n\t\t\treturn elem === checkContext;\n\t\t}, implicitRelative, true ),\n\t\tmatchAnyContext = addCombinator( function( elem ) {\n\t\t\treturn indexOf.call( checkContext, elem ) > -1;\n\t\t}, implicitRelative, true ),\n\t\tmatchers = [ function( elem, context, xml ) {\n\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\tvar ret = ( !leadingRelative && ( xml || context != outermostContext ) ) || (\n\t\t\t\t( checkContext = context ).nodeType ?\n\t\t\t\t\tmatchContext( elem, context, xml ) :\n\t\t\t\t\tmatchAnyContext( elem, context, xml ) );\n\n\t\t\t// Avoid hanging onto element\n\t\t\t// (see https://github.com/jquery/sizzle/issues/299)\n\t\t\tcheckContext = null;\n\t\t\treturn ret;\n\t\t} ];\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) {\n\t\t\tmatchers = [ addCombinator( elementMatcher( matchers ), matcher ) ];\n\t\t} else {\n\t\t\tmatcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches );\n\n\t\t\t// Return special upon seeing a positional matcher\n\t\t\tif ( matcher[ expando ] ) {\n\n\t\t\t\t// Find the next relative operator (if any) for proper handling\n\t\t\t\tj = ++i;\n\t\t\t\tfor ( ; j < len; j++ ) {\n\t\t\t\t\tif ( Expr.relative[ tokens[ j ].type ] ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn setMatcher(\n\t\t\t\t\ti > 1 && elementMatcher( matchers ),\n\t\t\t\t\ti > 1 && toSelector(\n\n\t\t\t\t\t\t// If the preceding token was a descendant combinator, insert an implicit any-element `*`\n\t\t\t\t\t\ttokens.slice( 0, i - 1 )\n\t\t\t\t\t\t\t.concat( { value: tokens[ i - 2 ].type === \" \" ? \"*\" : \"\" } )\n\t\t\t\t\t).replace( rtrimCSS, \"$1\" ),\n\t\t\t\t\tmatcher,\n\t\t\t\t\ti < j && matcherFromTokens( tokens.slice( i, j ) ),\n\t\t\t\t\tj < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ),\n\t\t\t\t\tj < len && toSelector( tokens )\n\t\t\t\t);\n\t\t\t}\n\t\t\tmatchers.push( matcher );\n\t\t}\n\t}\n\n\treturn elementMatcher( matchers );\n}\n\nfunction matcherFromGroupMatchers( elementMatchers, setMatchers ) {\n\tvar bySet = setMatchers.length > 0,\n\t\tbyElement = elementMatchers.length > 0,\n\t\tsuperMatcher = function( seed, context, xml, results, outermost ) {\n\t\t\tvar elem, j, matcher,\n\t\t\t\tmatchedCount = 0,\n\t\t\t\ti = \"0\",\n\t\t\t\tunmatched = seed && [],\n\t\t\t\tsetMatched = [],\n\t\t\t\tcontextBackup = outermostContext,\n\n\t\t\t\t// We must always have either seed elements or outermost context\n\t\t\t\telems = seed || byElement && Expr.find.TAG( \"*\", outermost ),\n\n\t\t\t\t// Use integer dirruns iff this is the outermost matcher\n\t\t\t\tdirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ),\n\t\t\t\tlen = elems.length;\n\n\t\t\tif ( outermost ) {\n\n\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\toutermostContext = context == document || context || outermost;\n\t\t\t}\n\n\t\t\t// Add elements passing elementMatchers directly to results\n\t\t\t// Support: iOS <=7 - 9 only\n\t\t\t// Tolerate NodeList properties (IE: \"length\"; Safari: <number>) matching\n\t\t\t// elements by id. (see trac-14142)\n\t\t\tfor ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) {\n\t\t\t\tif ( byElement && elem ) {\n\t\t\t\t\tj = 0;\n\n\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\t\tif ( !context && elem.ownerDocument != document ) {\n\t\t\t\t\t\tsetDocument( elem );\n\t\t\t\t\t\txml = !documentIsHTML;\n\t\t\t\t\t}\n\t\t\t\t\twhile ( ( matcher = elementMatchers[ j++ ] ) ) {\n\t\t\t\t\t\tif ( matcher( elem, context || document, xml ) ) {\n\t\t\t\t\t\t\tpush.call( results, elem );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( outermost ) {\n\t\t\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Track unmatched elements for set filters\n\t\t\t\tif ( bySet ) {\n\n\t\t\t\t\t// They will have gone through all possible matchers\n\t\t\t\t\tif ( ( elem = !matcher && elem ) ) {\n\t\t\t\t\t\tmatchedCount--;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Lengthen the array for every element, matched or not\n\t\t\t\t\tif ( seed ) {\n\t\t\t\t\t\tunmatched.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// `i` is now the count of elements visited above, and adding it to `matchedCount`\n\t\t\t// makes the latter nonnegative.\n\t\t\tmatchedCount += i;\n\n\t\t\t// Apply set filters to unmatched elements\n\t\t\t// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`\n\t\t\t// equals `i`), unless we didn't visit _any_ elements in the above loop because we have\n\t\t\t// no element matchers and no seed.\n\t\t\t// Incrementing an initially-string \"0\" `i` allows `i` to remain a string only in that\n\t\t\t// case, which will result in a \"00\" `matchedCount` that differs from `i` but is also\n\t\t\t// numerically zero.\n\t\t\tif ( bySet && i !== matchedCount ) {\n\t\t\t\tj = 0;\n\t\t\t\twhile ( ( matcher = setMatchers[ j++ ] ) ) {\n\t\t\t\t\tmatcher( unmatched, setMatched, context, xml );\n\t\t\t\t}\n\n\t\t\t\tif ( seed ) {\n\n\t\t\t\t\t// Reintegrate element matches to eliminate the need for sorting\n\t\t\t\t\tif ( matchedCount > 0 ) {\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tif ( !( unmatched[ i ] || setMatched[ i ] ) ) {\n\t\t\t\t\t\t\t\tsetMatched[ i ] = pop.call( results );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Discard index placeholder values to get only actual matches\n\t\t\t\t\tsetMatched = condense( setMatched );\n\t\t\t\t}\n\n\t\t\t\t// Add matches to results\n\t\t\t\tpush.apply( results, setMatched );\n\n\t\t\t\t// Seedless set matches succeeding multiple successful matchers stipulate sorting\n\t\t\t\tif ( outermost && !seed && setMatched.length > 0 &&\n\t\t\t\t\t( matchedCount + setMatchers.length ) > 1 ) {\n\n\t\t\t\t\tjQuery.uniqueSort( results );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Override manipulation of globals by nested matchers\n\t\t\tif ( outermost ) {\n\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\toutermostContext = contextBackup;\n\t\t\t}\n\n\t\t\treturn unmatched;\n\t\t};\n\n\treturn bySet ?\n\t\tmarkFunction( superMatcher ) :\n\t\tsuperMatcher;\n}\n\nfunction compile( selector, match /* Internal Use Only */ ) {\n\tvar i,\n\t\tsetMatchers = [],\n\t\telementMatchers = [],\n\t\tcached = compilerCache[ selector + \" \" ];\n\n\tif ( !cached ) {\n\n\t\t// Generate a function of recursive functions that can be used to check each element\n\t\tif ( !match ) {\n\t\t\tmatch = tokenize( selector );\n\t\t}\n\t\ti = match.length;\n\t\twhile ( i-- ) {\n\t\t\tcached = matcherFromTokens( match[ i ] );\n\t\t\tif ( cached[ expando ] ) {\n\t\t\t\tsetMatchers.push( cached );\n\t\t\t} else {\n\t\t\t\telementMatchers.push( cached );\n\t\t\t}\n\t\t}\n\n\t\t// Cache the compiled function\n\t\tcached = compilerCache( selector,\n\t\t\tmatcherFromGroupMatchers( elementMatchers, setMatchers ) );\n\n\t\t// Save selector and tokenization\n\t\tcached.selector = selector;\n\t}\n\treturn cached;\n}\n\n/**\n * A low-level selection function that works with jQuery's compiled\n *  selector functions\n * @param {String|Function} selector A selector or a pre-compiled\n *  selector function built with jQuery selector compile\n * @param {Element} context\n * @param {Array} [results]\n * @param {Array} [seed] A set of elements to match against\n */\nfunction select( selector, context, results, seed ) {\n\tvar i, tokens, token, type, find,\n\t\tcompiled = typeof selector === \"function\" && selector,\n\t\tmatch = !seed && tokenize( ( selector = compiled.selector || selector ) );\n\n\tresults = results || [];\n\n\t// Try to minimize operations if there is only one selector in the list and no seed\n\t// (the latter of which guarantees us context)\n\tif ( match.length === 1 ) {\n\n\t\t// Reduce context if the leading compound selector is an ID\n\t\ttokens = match[ 0 ] = match[ 0 ].slice( 0 );\n\t\tif ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === \"ID\" &&\n\t\t\t\tcontext.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {\n\n\t\t\tcontext = ( Expr.find.ID(\n\t\t\t\ttoken.matches[ 0 ].replace( runescape, funescape ),\n\t\t\t\tcontext\n\t\t\t) || [] )[ 0 ];\n\t\t\tif ( !context ) {\n\t\t\t\treturn results;\n\n\t\t\t// Precompiled matchers will still verify ancestry, so step up a level\n\t\t\t} else if ( compiled ) {\n\t\t\t\tcontext = context.parentNode;\n\t\t\t}\n\n\t\t\tselector = selector.slice( tokens.shift().value.length );\n\t\t}\n\n\t\t// Fetch a seed set for right-to-left matching\n\t\ti = matchExpr.needsContext.test( selector ) ? 0 : tokens.length;\n\t\twhile ( i-- ) {\n\t\t\ttoken = tokens[ i ];\n\n\t\t\t// Abort if we hit a combinator\n\t\t\tif ( Expr.relative[ ( type = token.type ) ] ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( ( find = Expr.find[ type ] ) ) {\n\n\t\t\t\t// Search, expanding context for leading sibling combinators\n\t\t\t\tif ( ( seed = find(\n\t\t\t\t\ttoken.matches[ 0 ].replace( runescape, funescape ),\n\t\t\t\t\trsibling.test( tokens[ 0 ].type ) &&\n\t\t\t\t\t\ttestContext( context.parentNode ) || context\n\t\t\t\t) ) ) {\n\n\t\t\t\t\t// If seed is empty or no tokens remain, we can return early\n\t\t\t\t\ttokens.splice( i, 1 );\n\t\t\t\t\tselector = seed.length && toSelector( tokens );\n\t\t\t\t\tif ( !selector ) {\n\t\t\t\t\t\tpush.apply( results, seed );\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Compile and execute a filtering function if one is not provided\n\t// Provide `match` to avoid retokenization if we modified the selector above\n\t( compiled || compile( selector, match ) )(\n\t\tseed,\n\t\tcontext,\n\t\t!documentIsHTML,\n\t\tresults,\n\t\t!context || rsibling.test( selector ) && testContext( context.parentNode ) || context\n\t);\n\treturn results;\n}\n\n// One-time assignments\n\n// Support: Android <=4.0 - 4.1+\n// Sort stability\nsupport.sortStable = expando.split( \"\" ).sort( sortOrder ).join( \"\" ) === expando;\n\n// Initialize against the default document\nsetDocument();\n\n// Support: Android <=4.0 - 4.1+\n// Detached nodes confoundingly follow *each other*\nsupport.sortDetached = assert( function( el ) {\n\n\t// Should return 1, but returns 4 (following)\n\treturn el.compareDocumentPosition( document.createElement( \"fieldset\" ) ) & 1;\n} );\n\njQuery.find = find;\n\n// Deprecated\njQuery.expr[ \":\" ] = jQuery.expr.pseudos;\njQuery.unique = jQuery.uniqueSort;\n\n// These have always been private, but they used to be documented as part of\n// Sizzle so let's maintain them for now for backwards compatibility purposes.\nfind.compile = compile;\nfind.select = select;\nfind.setDocument = setDocument;\nfind.tokenize = tokenize;\n\nfind.escape = jQuery.escapeSelector;\nfind.getText = jQuery.text;\nfind.isXML = jQuery.isXMLDoc;\nfind.selectors = jQuery.expr;\nfind.support = jQuery.support;\nfind.uniqueSort = jQuery.uniqueSort;\n\n\t/* eslint-enable */\n\n} )();\n\n\nvar dir = function( elem, dir, until ) {\n\tvar matched = [],\n\t\ttruncate = until !== undefined;\n\n\twhile ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {\n\t\tif ( elem.nodeType === 1 ) {\n\t\t\tif ( truncate && jQuery( elem ).is( until ) ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmatched.push( elem );\n\t\t}\n\t}\n\treturn matched;\n};\n\n\nvar siblings = function( n, elem ) {\n\tvar matched = [];\n\n\tfor ( ; n; n = n.nextSibling ) {\n\t\tif ( n.nodeType === 1 && n !== elem ) {\n\t\t\tmatched.push( n );\n\t\t}\n\t}\n\n\treturn matched;\n};\n\n\nvar rneedsContext = jQuery.expr.match.needsContext;\n\nvar rsingleTag = ( /^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i );\n\n\n\n// Implement the identical functionality for filter and not\nfunction winnow( elements, qualifier, not ) {\n\tif ( isFunction( qualifier ) ) {\n\t\treturn jQuery.grep( elements, function( elem, i ) {\n\t\t\treturn !!qualifier.call( elem, i, elem ) !== not;\n\t\t} );\n\t}\n\n\t// Single element\n\tif ( qualifier.nodeType ) {\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( elem === qualifier ) !== not;\n\t\t} );\n\t}\n\n\t// Arraylike of elements (jQuery, arguments, Array)\n\tif ( typeof qualifier !== \"string\" ) {\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( indexOf.call( qualifier, elem ) > -1 ) !== not;\n\t\t} );\n\t}\n\n\t// Filtered directly for both simple and complex selectors\n\treturn jQuery.filter( qualifier, elements, not );\n}\n\njQuery.filter = function( expr, elems, not ) {\n\tvar elem = elems[ 0 ];\n\n\tif ( not ) {\n\t\texpr = \":not(\" + expr + \")\";\n\t}\n\n\tif ( elems.length === 1 && elem.nodeType === 1 ) {\n\t\treturn jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];\n\t}\n\n\treturn jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {\n\t\treturn elem.nodeType === 1;\n\t} ) );\n};\n\njQuery.fn.extend( {\n\tfind: function( selector ) {\n\t\tvar i, ret,\n\t\t\tlen = this.length,\n\t\t\tself = this;\n\n\t\tif ( typeof selector !== \"string\" ) {\n\t\t\treturn this.pushStack( jQuery( selector ).filter( function() {\n\t\t\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\t\t\tif ( jQuery.contains( self[ i ], this ) ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} ) );\n\t\t}\n\n\t\tret = this.pushStack( [] );\n\n\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\tjQuery.find( selector, self[ i ], ret );\n\t\t}\n\n\t\treturn len > 1 ? jQuery.uniqueSort( ret ) : ret;\n\t},\n\tfilter: function( selector ) {\n\t\treturn this.pushStack( winnow( this, selector || [], false ) );\n\t},\n\tnot: function( selector ) {\n\t\treturn this.pushStack( winnow( this, selector || [], true ) );\n\t},\n\tis: function( selector ) {\n\t\treturn !!winnow(\n\t\t\tthis,\n\n\t\t\t// If this is a positional/relative selector, check membership in the returned set\n\t\t\t// so $(\"p:first\").is(\"p:last\") won't return true for a doc with two \"p\".\n\t\t\ttypeof selector === \"string\" && rneedsContext.test( selector ) ?\n\t\t\t\tjQuery( selector ) :\n\t\t\t\tselector || [],\n\t\t\tfalse\n\t\t).length;\n\t}\n} );\n\n\n// Initialize a jQuery object\n\n\n// A central reference to the root jQuery(document)\nvar rootjQuery,\n\n\t// A simple way to check for HTML strings\n\t// Prioritize #id over <tag> to avoid XSS via location.hash (trac-9521)\n\t// Strict HTML recognition (trac-11290: must start with <)\n\t// Shortcut simple #id case for speed\n\trquickExpr = /^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/,\n\n\tinit = jQuery.fn.init = function( selector, context, root ) {\n\t\tvar match, elem;\n\n\t\t// HANDLE: $(\"\"), $(null), $(undefined), $(false)\n\t\tif ( !selector ) {\n\t\t\treturn this;\n\t\t}\n\n\t\t// Method init() accepts an alternate rootjQuery\n\t\t// so migrate can support jQuery.sub (gh-2101)\n\t\troot = root || rootjQuery;\n\n\t\t// Handle HTML strings\n\t\tif ( typeof selector === \"string\" ) {\n\t\t\tif ( selector[ 0 ] === \"<\" &&\n\t\t\t\tselector[ selector.length - 1 ] === \">\" &&\n\t\t\t\tselector.length >= 3 ) {\n\n\t\t\t\t// Assume that strings that start and end with <> are HTML and skip the regex check\n\t\t\t\tmatch = [ null, selector, null ];\n\n\t\t\t} else {\n\t\t\t\tmatch = rquickExpr.exec( selector );\n\t\t\t}\n\n\t\t\t// Match html or make sure no context is specified for #id\n\t\t\tif ( match && ( match[ 1 ] || !context ) ) {\n\n\t\t\t\t// HANDLE: $(html) -> $(array)\n\t\t\t\tif ( match[ 1 ] ) {\n\t\t\t\t\tcontext = context instanceof jQuery ? context[ 0 ] : context;\n\n\t\t\t\t\t// Option to run scripts is true for back-compat\n\t\t\t\t\t// Intentionally let the error be thrown if parseHTML is not present\n\t\t\t\t\tjQuery.merge( this, jQuery.parseHTML(\n\t\t\t\t\t\tmatch[ 1 ],\n\t\t\t\t\t\tcontext && context.nodeType ? context.ownerDocument || context : document,\n\t\t\t\t\t\ttrue\n\t\t\t\t\t) );\n\n\t\t\t\t\t// HANDLE: $(html, props)\n\t\t\t\t\tif ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {\n\t\t\t\t\t\tfor ( match in context ) {\n\n\t\t\t\t\t\t\t// Properties of context are called as methods if possible\n\t\t\t\t\t\t\tif ( isFunction( this[ match ] ) ) {\n\t\t\t\t\t\t\t\tthis[ match ]( context[ match ] );\n\n\t\t\t\t\t\t\t// ...and otherwise set as attributes\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.attr( match, context[ match ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn this;\n\n\t\t\t\t// HANDLE: $(#id)\n\t\t\t\t} else {\n\t\t\t\t\telem = document.getElementById( match[ 2 ] );\n\n\t\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t\t// Inject the element directly into the jQuery object\n\t\t\t\t\t\tthis[ 0 ] = elem;\n\t\t\t\t\t\tthis.length = 1;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\n\t\t\t// HANDLE: $(expr, $(...))\n\t\t\t} else if ( !context || context.jquery ) {\n\t\t\t\treturn ( context || root ).find( selector );\n\n\t\t\t// HANDLE: $(expr, context)\n\t\t\t// (which is just equivalent to: $(context).find(expr)\n\t\t\t} else {\n\t\t\t\treturn this.constructor( context ).find( selector );\n\t\t\t}\n\n\t\t// HANDLE: $(DOMElement)\n\t\t} else if ( selector.nodeType ) {\n\t\t\tthis[ 0 ] = selector;\n\t\t\tthis.length = 1;\n\t\t\treturn this;\n\n\t\t// HANDLE: $(function)\n\t\t// Shortcut for document ready\n\t\t} else if ( isFunction( selector ) ) {\n\t\t\treturn root.ready !== undefined ?\n\t\t\t\troot.ready( selector ) :\n\n\t\t\t\t// Execute immediately if ready is not present\n\t\t\t\tselector( jQuery );\n\t\t}\n\n\t\treturn jQuery.makeArray( selector, this );\n\t};\n\n// Give the init function the jQuery prototype for later instantiation\ninit.prototype = jQuery.fn;\n\n// Initialize central reference\nrootjQuery = jQuery( document );\n\n\nvar rparentsprev = /^(?:parents|prev(?:Until|All))/,\n\n\t// Methods guaranteed to produce a unique set when starting from a unique set\n\tguaranteedUnique = {\n\t\tchildren: true,\n\t\tcontents: true,\n\t\tnext: true,\n\t\tprev: true\n\t};\n\njQuery.fn.extend( {\n\thas: function( target ) {\n\t\tvar targets = jQuery( target, this ),\n\t\t\tl = targets.length;\n\n\t\treturn this.filter( function() {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tif ( jQuery.contains( this, targets[ i ] ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t},\n\n\tclosest: function( selectors, context ) {\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\tl = this.length,\n\t\t\tmatched = [],\n\t\t\ttargets = typeof selectors !== \"string\" && jQuery( selectors );\n\n\t\t// Positional selectors never match, since there's no _selection_ context\n\t\tif ( !rneedsContext.test( selectors ) ) {\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tfor ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {\n\n\t\t\t\t\t// Always skip document fragments\n\t\t\t\t\tif ( cur.nodeType < 11 && ( targets ?\n\t\t\t\t\t\ttargets.index( cur ) > -1 :\n\n\t\t\t\t\t\t// Don't pass non-elements to jQuery#find\n\t\t\t\t\t\tcur.nodeType === 1 &&\n\t\t\t\t\t\t\tjQuery.find.matchesSelector( cur, selectors ) ) ) {\n\n\t\t\t\t\t\tmatched.push( cur );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );\n\t},\n\n\t// Determine the position of an element within the set\n\tindex: function( elem ) {\n\n\t\t// No argument, return index in parent\n\t\tif ( !elem ) {\n\t\t\treturn ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;\n\t\t}\n\n\t\t// Index in selector\n\t\tif ( typeof elem === \"string\" ) {\n\t\t\treturn indexOf.call( jQuery( elem ), this[ 0 ] );\n\t\t}\n\n\t\t// Locate the position of the desired element\n\t\treturn indexOf.call( this,\n\n\t\t\t// If it receives a jQuery object, the first element is used\n\t\t\telem.jquery ? elem[ 0 ] : elem\n\t\t);\n\t},\n\n\tadd: function( selector, context ) {\n\t\treturn this.pushStack(\n\t\t\tjQuery.uniqueSort(\n\t\t\t\tjQuery.merge( this.get(), jQuery( selector, context ) )\n\t\t\t)\n\t\t);\n\t},\n\n\taddBack: function( selector ) {\n\t\treturn this.add( selector == null ?\n\t\t\tthis.prevObject : this.prevObject.filter( selector )\n\t\t);\n\t}\n} );\n\nfunction sibling( cur, dir ) {\n\twhile ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}\n\treturn cur;\n}\n\njQuery.each( {\n\tparent: function( elem ) {\n\t\tvar parent = elem.parentNode;\n\t\treturn parent && parent.nodeType !== 11 ? parent : null;\n\t},\n\tparents: function( elem ) {\n\t\treturn dir( elem, \"parentNode\" );\n\t},\n\tparentsUntil: function( elem, _i, until ) {\n\t\treturn dir( elem, \"parentNode\", until );\n\t},\n\tnext: function( elem ) {\n\t\treturn sibling( elem, \"nextSibling\" );\n\t},\n\tprev: function( elem ) {\n\t\treturn sibling( elem, \"previousSibling\" );\n\t},\n\tnextAll: function( elem ) {\n\t\treturn dir( elem, \"nextSibling\" );\n\t},\n\tprevAll: function( elem ) {\n\t\treturn dir( elem, \"previousSibling\" );\n\t},\n\tnextUntil: function( elem, _i, until ) {\n\t\treturn dir( elem, \"nextSibling\", until );\n\t},\n\tprevUntil: function( elem, _i, until ) {\n\t\treturn dir( elem, \"previousSibling\", until );\n\t},\n\tsiblings: function( elem ) {\n\t\treturn siblings( ( elem.parentNode || {} ).firstChild, elem );\n\t},\n\tchildren: function( elem ) {\n\t\treturn siblings( elem.firstChild );\n\t},\n\tcontents: function( elem ) {\n\t\tif ( elem.contentDocument != null &&\n\n\t\t\t// Support: IE 11+\n\t\t\t// <object> elements with no `data` attribute has an object\n\t\t\t// `contentDocument` with a `null` prototype.\n\t\t\tgetProto( elem.contentDocument ) ) {\n\n\t\t\treturn elem.contentDocument;\n\t\t}\n\n\t\t// Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only\n\t\t// Treat the template element as a regular one in browsers that\n\t\t// don't support it.\n\t\tif ( nodeName( elem, \"template\" ) ) {\n\t\t\telem = elem.content || elem;\n\t\t}\n\n\t\treturn jQuery.merge( [], elem.childNodes );\n\t}\n}, function( name, fn ) {\n\tjQuery.fn[ name ] = function( until, selector ) {\n\t\tvar matched = jQuery.map( this, fn, until );\n\n\t\tif ( name.slice( -5 ) !== \"Until\" ) {\n\t\t\tselector = until;\n\t\t}\n\n\t\tif ( selector && typeof selector === \"string\" ) {\n\t\t\tmatched = jQuery.filter( selector, matched );\n\t\t}\n\n\t\tif ( this.length > 1 ) {\n\n\t\t\t// Remove duplicates\n\t\t\tif ( !guaranteedUnique[ name ] ) {\n\t\t\t\tjQuery.uniqueSort( matched );\n\t\t\t}\n\n\t\t\t// Reverse order for parents* and prev-derivatives\n\t\t\tif ( rparentsprev.test( name ) ) {\n\t\t\t\tmatched.reverse();\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( matched );\n\t};\n} );\nvar rnothtmlwhite = ( /[^\\x20\\t\\r\\n\\f]+/g );\n\n\n\n// Convert String-formatted options into Object-formatted ones\nfunction createOptions( options ) {\n\tvar object = {};\n\tjQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {\n\t\tobject[ flag ] = true;\n\t} );\n\treturn object;\n}\n\n/*\n * Create a callback list using the following parameters:\n *\n *\toptions: an optional list of space-separated options that will change how\n *\t\t\tthe callback list behaves or a more traditional option object\n *\n * By default a callback list will act like an event callback list and can be\n * \"fired\" multiple times.\n *\n * Possible options:\n *\n *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\n *\n *\tmemory:\t\t\twill keep track of previous values and will call any callback added\n *\t\t\t\t\tafter the list has been fired right away with the latest \"memorized\"\n *\t\t\t\t\tvalues (like a Deferred)\n *\n *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\n *\n *\tstopOnFalse:\tinterrupt callings when a callback returns false\n *\n */\njQuery.Callbacks = function( options ) {\n\n\t// Convert options from String-formatted to Object-formatted if needed\n\t// (we check in cache first)\n\toptions = typeof options === \"string\" ?\n\t\tcreateOptions( options ) :\n\t\tjQuery.extend( {}, options );\n\n\tvar // Flag to know if list is currently firing\n\t\tfiring,\n\n\t\t// Last fire value for non-forgettable lists\n\t\tmemory,\n\n\t\t// Flag to know if list was already fired\n\t\tfired,\n\n\t\t// Flag to prevent firing\n\t\tlocked,\n\n\t\t// Actual callback list\n\t\tlist = [],\n\n\t\t// Queue of execution data for repeatable lists\n\t\tqueue = [],\n\n\t\t// Index of currently firing callback (modified by add/remove as needed)\n\t\tfiringIndex = -1,\n\n\t\t// Fire callbacks\n\t\tfire = function() {\n\n\t\t\t// Enforce single-firing\n\t\t\tlocked = locked || options.once;\n\n\t\t\t// Execute callbacks for all pending executions,\n\t\t\t// respecting firingIndex overrides and runtime changes\n\t\t\tfired = firing = true;\n\t\t\tfor ( ; queue.length; firingIndex = -1 ) {\n\t\t\t\tmemory = queue.shift();\n\t\t\t\twhile ( ++firingIndex < list.length ) {\n\n\t\t\t\t\t// Run callback and check for early termination\n\t\t\t\t\tif ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&\n\t\t\t\t\t\toptions.stopOnFalse ) {\n\n\t\t\t\t\t\t// Jump to end and forget the data so .add doesn't re-fire\n\t\t\t\t\t\tfiringIndex = list.length;\n\t\t\t\t\t\tmemory = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Forget the data if we're done with it\n\t\t\tif ( !options.memory ) {\n\t\t\t\tmemory = false;\n\t\t\t}\n\n\t\t\tfiring = false;\n\n\t\t\t// Clean up if we're done firing for good\n\t\t\tif ( locked ) {\n\n\t\t\t\t// Keep an empty list if we have data for future add calls\n\t\t\t\tif ( memory ) {\n\t\t\t\t\tlist = [];\n\n\t\t\t\t// Otherwise, this object is spent\n\t\t\t\t} else {\n\t\t\t\t\tlist = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t// Actual Callbacks object\n\t\tself = {\n\n\t\t\t// Add a callback or a collection of callbacks to the list\n\t\t\tadd: function() {\n\t\t\t\tif ( list ) {\n\n\t\t\t\t\t// If we have memory from a past run, we should fire after adding\n\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\tfiringIndex = list.length - 1;\n\t\t\t\t\t\tqueue.push( memory );\n\t\t\t\t\t}\n\n\t\t\t\t\t( function add( args ) {\n\t\t\t\t\t\tjQuery.each( args, function( _, arg ) {\n\t\t\t\t\t\t\tif ( isFunction( arg ) ) {\n\t\t\t\t\t\t\t\tif ( !options.unique || !self.has( arg ) ) {\n\t\t\t\t\t\t\t\t\tlist.push( arg );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if ( arg && arg.length && toType( arg ) !== \"string\" ) {\n\n\t\t\t\t\t\t\t\t// Inspect recursively\n\t\t\t\t\t\t\t\tadd( arg );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} );\n\t\t\t\t\t} )( arguments );\n\n\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\tfire();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Remove a callback from the list\n\t\t\tremove: function() {\n\t\t\t\tjQuery.each( arguments, function( _, arg ) {\n\t\t\t\t\tvar index;\n\t\t\t\t\twhile ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {\n\t\t\t\t\t\tlist.splice( index, 1 );\n\n\t\t\t\t\t\t// Handle firing indexes\n\t\t\t\t\t\tif ( index <= firingIndex ) {\n\t\t\t\t\t\t\tfiringIndex--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Check if a given callback is in the list.\n\t\t\t// If no argument is given, return whether or not list has callbacks attached.\n\t\t\thas: function( fn ) {\n\t\t\t\treturn fn ?\n\t\t\t\t\tjQuery.inArray( fn, list ) > -1 :\n\t\t\t\t\tlist.length > 0;\n\t\t\t},\n\n\t\t\t// Remove all callbacks from the list\n\t\t\tempty: function() {\n\t\t\t\tif ( list ) {\n\t\t\t\t\tlist = [];\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Disable .fire and .add\n\t\t\t// Abort any current/pending executions\n\t\t\t// Clear all callbacks and values\n\t\t\tdisable: function() {\n\t\t\t\tlocked = queue = [];\n\t\t\t\tlist = memory = \"\";\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tdisabled: function() {\n\t\t\t\treturn !list;\n\t\t\t},\n\n\t\t\t// Disable .fire\n\t\t\t// Also disable .add unless we have memory (since it would have no effect)\n\t\t\t// Abort any pending executions\n\t\t\tlock: function() {\n\t\t\t\tlocked = queue = [];\n\t\t\t\tif ( !memory && !firing ) {\n\t\t\t\t\tlist = memory = \"\";\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tlocked: function() {\n\t\t\t\treturn !!locked;\n\t\t\t},\n\n\t\t\t// Call all callbacks with the given context and arguments\n\t\t\tfireWith: function( context, args ) {\n\t\t\t\tif ( !locked ) {\n\t\t\t\t\targs = args || [];\n\t\t\t\t\targs = [ context, args.slice ? args.slice() : args ];\n\t\t\t\t\tqueue.push( args );\n\t\t\t\t\tif ( !firing ) {\n\t\t\t\t\t\tfire();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Call all the callbacks with the given arguments\n\t\t\tfire: function() {\n\t\t\t\tself.fireWith( this, arguments );\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// To know if the callbacks have already been called at least once\n\t\t\tfired: function() {\n\t\t\t\treturn !!fired;\n\t\t\t}\n\t\t};\n\n\treturn self;\n};\n\n\nfunction Identity( v ) {\n\treturn v;\n}\nfunction Thrower( ex ) {\n\tthrow ex;\n}\n\nfunction adoptValue( value, resolve, reject, noValue ) {\n\tvar method;\n\n\ttry {\n\n\t\t// Check for promise aspect first to privilege synchronous behavior\n\t\tif ( value && isFunction( ( method = value.promise ) ) ) {\n\t\t\tmethod.call( value ).done( resolve ).fail( reject );\n\n\t\t// Other thenables\n\t\t} else if ( value && isFunction( ( method = value.then ) ) ) {\n\t\t\tmethod.call( value, resolve, reject );\n\n\t\t// Other non-thenables\n\t\t} else {\n\n\t\t\t// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:\n\t\t\t// * false: [ value ].slice( 0 ) => resolve( value )\n\t\t\t// * true: [ value ].slice( 1 ) => resolve()\n\t\t\tresolve.apply( undefined, [ value ].slice( noValue ) );\n\t\t}\n\n\t// For Promises/A+, convert exceptions into rejections\n\t// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in\n\t// Deferred#then to conditionally suppress rejection.\n\t} catch ( value ) {\n\n\t\t// Support: Android 4.0 only\n\t\t// Strict mode functions invoked without .call/.apply get global-object context\n\t\treject.apply( undefined, [ value ] );\n\t}\n}\n\njQuery.extend( {\n\n\tDeferred: function( func ) {\n\t\tvar tuples = [\n\n\t\t\t\t// action, add listener, callbacks,\n\t\t\t\t// ... .then handlers, argument index, [final state]\n\t\t\t\t[ \"notify\", \"progress\", jQuery.Callbacks( \"memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"memory\" ), 2 ],\n\t\t\t\t[ \"resolve\", \"done\", jQuery.Callbacks( \"once memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 0, \"resolved\" ],\n\t\t\t\t[ \"reject\", \"fail\", jQuery.Callbacks( \"once memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 1, \"rejected\" ]\n\t\t\t],\n\t\t\tstate = \"pending\",\n\t\t\tpromise = {\n\t\t\t\tstate: function() {\n\t\t\t\t\treturn state;\n\t\t\t\t},\n\t\t\t\talways: function() {\n\t\t\t\t\tdeferred.done( arguments ).fail( arguments );\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\t\t\t\t\"catch\": function( fn ) {\n\t\t\t\t\treturn promise.then( null, fn );\n\t\t\t\t},\n\n\t\t\t\t// Keep pipe for back-compat\n\t\t\t\tpipe: function( /* fnDone, fnFail, fnProgress */ ) {\n\t\t\t\t\tvar fns = arguments;\n\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\t\t\t\t\t\tjQuery.each( tuples, function( _i, tuple ) {\n\n\t\t\t\t\t\t\t// Map tuples (progress, done, fail) to arguments (done, fail, progress)\n\t\t\t\t\t\t\tvar fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];\n\n\t\t\t\t\t\t\t// deferred.progress(function() { bind to newDefer or newDefer.notify })\n\t\t\t\t\t\t\t// deferred.done(function() { bind to newDefer or newDefer.resolve })\n\t\t\t\t\t\t\t// deferred.fail(function() { bind to newDefer or newDefer.reject })\n\t\t\t\t\t\t\tdeferred[ tuple[ 1 ] ]( function() {\n\t\t\t\t\t\t\t\tvar returned = fn && fn.apply( this, arguments );\n\t\t\t\t\t\t\t\tif ( returned && isFunction( returned.promise ) ) {\n\t\t\t\t\t\t\t\t\treturned.promise()\n\t\t\t\t\t\t\t\t\t\t.progress( newDefer.notify )\n\t\t\t\t\t\t\t\t\t\t.done( newDefer.resolve )\n\t\t\t\t\t\t\t\t\t\t.fail( newDefer.reject );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewDefer[ tuple[ 0 ] + \"With\" ](\n\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\tfn ? [ returned ] : arguments\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tfns = null;\n\t\t\t\t\t} ).promise();\n\t\t\t\t},\n\t\t\t\tthen: function( onFulfilled, onRejected, onProgress ) {\n\t\t\t\t\tvar maxDepth = 0;\n\t\t\t\t\tfunction resolve( depth, deferred, handler, special ) {\n\t\t\t\t\t\treturn function() {\n\t\t\t\t\t\t\tvar that = this,\n\t\t\t\t\t\t\t\targs = arguments,\n\t\t\t\t\t\t\t\tmightThrow = function() {\n\t\t\t\t\t\t\t\t\tvar returned, then;\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.3\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-59\n\t\t\t\t\t\t\t\t\t// Ignore double-resolution attempts\n\t\t\t\t\t\t\t\t\tif ( depth < maxDepth ) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturned = handler.apply( that, args );\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.1\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-48\n\t\t\t\t\t\t\t\t\tif ( returned === deferred.promise() ) {\n\t\t\t\t\t\t\t\t\t\tthrow new TypeError( \"Thenable self-resolution\" );\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ sections 2.3.3.1, 3.5\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-54\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-75\n\t\t\t\t\t\t\t\t\t// Retrieve `then` only once\n\t\t\t\t\t\t\t\t\tthen = returned &&\n\n\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.4\n\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-64\n\t\t\t\t\t\t\t\t\t\t// Only check objects and functions for thenability\n\t\t\t\t\t\t\t\t\t\t( typeof returned === \"object\" ||\n\t\t\t\t\t\t\t\t\t\t\ttypeof returned === \"function\" ) &&\n\t\t\t\t\t\t\t\t\t\treturned.then;\n\n\t\t\t\t\t\t\t\t\t// Handle a returned thenable\n\t\t\t\t\t\t\t\t\tif ( isFunction( then ) ) {\n\n\t\t\t\t\t\t\t\t\t\t// Special processors (notify) just wait for resolution\n\t\t\t\t\t\t\t\t\t\tif ( special ) {\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special )\n\t\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\t// Normal processors (resolve) also hook into progress\n\t\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t\t// ...and disregard older resolution values\n\t\t\t\t\t\t\t\t\t\t\tmaxDepth++;\n\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity,\n\t\t\t\t\t\t\t\t\t\t\t\t\tdeferred.notifyWith )\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Handle all other returned values\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\n\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\n\t\t\t\t\t\t\t\t\t\tif ( handler !== Identity ) {\n\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\n\t\t\t\t\t\t\t\t\t\t\targs = [ returned ];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t// Process the value(s)\n\t\t\t\t\t\t\t\t\t\t// Default process is resolve\n\t\t\t\t\t\t\t\t\t\t( special || deferred.resolveWith )( that, args );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\n\t\t\t\t\t\t\t\t// Only normal processors (resolve) catch and reject exceptions\n\t\t\t\t\t\t\t\tprocess = special ?\n\t\t\t\t\t\t\t\t\tmightThrow :\n\t\t\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tmightThrow();\n\t\t\t\t\t\t\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t\t\t\t\t\t\tif ( jQuery.Deferred.exceptionHook ) {\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery.Deferred.exceptionHook( e,\n\t\t\t\t\t\t\t\t\t\t\t\t\tprocess.error );\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.4.1\n\t\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-61\n\t\t\t\t\t\t\t\t\t\t\t// Ignore post-resolution exceptions\n\t\t\t\t\t\t\t\t\t\t\tif ( depth + 1 >= maxDepth ) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\n\t\t\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\n\t\t\t\t\t\t\t\t\t\t\t\tif ( handler !== Thrower ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\n\t\t\t\t\t\t\t\t\t\t\t\t\targs = [ e ];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tdeferred.rejectWith( that, args );\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.1\n\t\t\t\t\t\t\t// https://promisesaplus.com/#point-57\n\t\t\t\t\t\t\t// Re-resolve promises immediately to dodge false rejection from\n\t\t\t\t\t\t\t// subsequent errors\n\t\t\t\t\t\t\tif ( depth ) {\n\t\t\t\t\t\t\t\tprocess();\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t// Call an optional hook to record the error, in case of exception\n\t\t\t\t\t\t\t\t// since it's otherwise lost when execution goes async\n\t\t\t\t\t\t\t\tif ( jQuery.Deferred.getErrorHook ) {\n\t\t\t\t\t\t\t\t\tprocess.error = jQuery.Deferred.getErrorHook();\n\n\t\t\t\t\t\t\t\t// The deprecated alias of the above. While the name suggests\n\t\t\t\t\t\t\t\t// returning the stack, not an error instance, jQuery just passes\n\t\t\t\t\t\t\t\t// it directly to `console.warn` so both will work; an instance\n\t\t\t\t\t\t\t\t// just better cooperates with source maps.\n\t\t\t\t\t\t\t\t} else if ( jQuery.Deferred.getStackHook ) {\n\t\t\t\t\t\t\t\t\tprocess.error = jQuery.Deferred.getStackHook();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twindow.setTimeout( process );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\n\t\t\t\t\t\t// progress_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 0 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onProgress ) ?\n\t\t\t\t\t\t\t\t\tonProgress :\n\t\t\t\t\t\t\t\t\tIdentity,\n\t\t\t\t\t\t\t\tnewDefer.notifyWith\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// fulfilled_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 1 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onFulfilled ) ?\n\t\t\t\t\t\t\t\t\tonFulfilled :\n\t\t\t\t\t\t\t\t\tIdentity\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// rejected_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 2 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onRejected ) ?\n\t\t\t\t\t\t\t\t\tonRejected :\n\t\t\t\t\t\t\t\t\tThrower\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t} ).promise();\n\t\t\t\t},\n\n\t\t\t\t// Get a promise for this deferred\n\t\t\t\t// If obj is provided, the promise aspect is added to the object\n\t\t\t\tpromise: function( obj ) {\n\t\t\t\t\treturn obj != null ? jQuery.extend( obj, promise ) : promise;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdeferred = {};\n\n\t\t// Add list-specific methods\n\t\tjQuery.each( tuples, function( i, tuple ) {\n\t\t\tvar list = tuple[ 2 ],\n\t\t\t\tstateString = tuple[ 5 ];\n\n\t\t\t// promise.progress = list.add\n\t\t\t// promise.done = list.add\n\t\t\t// promise.fail = list.add\n\t\t\tpromise[ tuple[ 1 ] ] = list.add;\n\n\t\t\t// Handle state\n\t\t\tif ( stateString ) {\n\t\t\t\tlist.add(\n\t\t\t\t\tfunction() {\n\n\t\t\t\t\t\t// state = \"resolved\" (i.e., fulfilled)\n\t\t\t\t\t\t// state = \"rejected\"\n\t\t\t\t\t\tstate = stateString;\n\t\t\t\t\t},\n\n\t\t\t\t\t// rejected_callbacks.disable\n\t\t\t\t\t// fulfilled_callbacks.disable\n\t\t\t\t\ttuples[ 3 - i ][ 2 ].disable,\n\n\t\t\t\t\t// rejected_handlers.disable\n\t\t\t\t\t// fulfilled_handlers.disable\n\t\t\t\t\ttuples[ 3 - i ][ 3 ].disable,\n\n\t\t\t\t\t// progress_callbacks.lock\n\t\t\t\t\ttuples[ 0 ][ 2 ].lock,\n\n\t\t\t\t\t// progress_handlers.lock\n\t\t\t\t\ttuples[ 0 ][ 3 ].lock\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// progress_handlers.fire\n\t\t\t// fulfilled_handlers.fire\n\t\t\t// rejected_handlers.fire\n\t\t\tlist.add( tuple[ 3 ].fire );\n\n\t\t\t// deferred.notify = function() { deferred.notifyWith(...) }\n\t\t\t// deferred.resolve = function() { deferred.resolveWith(...) }\n\t\t\t// deferred.reject = function() { deferred.rejectWith(...) }\n\t\t\tdeferred[ tuple[ 0 ] ] = function() {\n\t\t\t\tdeferred[ tuple[ 0 ] + \"With\" ]( this === deferred ? undefined : this, arguments );\n\t\t\t\treturn this;\n\t\t\t};\n\n\t\t\t// deferred.notifyWith = list.fireWith\n\t\t\t// deferred.resolveWith = list.fireWith\n\t\t\t// deferred.rejectWith = list.fireWith\n\t\t\tdeferred[ tuple[ 0 ] + \"With\" ] = list.fireWith;\n\t\t} );\n\n\t\t// Make the deferred a promise\n\t\tpromise.promise( deferred );\n\n\t\t// Call given func if any\n\t\tif ( func ) {\n\t\t\tfunc.call( deferred, deferred );\n\t\t}\n\n\t\t// All done!\n\t\treturn deferred;\n\t},\n\n\t// Deferred helper\n\twhen: function( singleValue ) {\n\t\tvar\n\n\t\t\t// count of uncompleted subordinates\n\t\t\tremaining = arguments.length,\n\n\t\t\t// count of unprocessed arguments\n\t\t\ti = remaining,\n\n\t\t\t// subordinate fulfillment data\n\t\t\tresolveContexts = Array( i ),\n\t\t\tresolveValues = slice.call( arguments ),\n\n\t\t\t// the primary Deferred\n\t\t\tprimary = jQuery.Deferred(),\n\n\t\t\t// subordinate callback factory\n\t\t\tupdateFunc = function( i ) {\n\t\t\t\treturn function( value ) {\n\t\t\t\t\tresolveContexts[ i ] = this;\n\t\t\t\t\tresolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;\n\t\t\t\t\tif ( !( --remaining ) ) {\n\t\t\t\t\t\tprimary.resolveWith( resolveContexts, resolveValues );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t};\n\n\t\t// Single- and empty arguments are adopted like Promise.resolve\n\t\tif ( remaining <= 1 ) {\n\t\t\tadoptValue( singleValue, primary.done( updateFunc( i ) ).resolve, primary.reject,\n\t\t\t\t!remaining );\n\n\t\t\t// Use .then() to unwrap secondary thenables (cf. gh-3000)\n\t\t\tif ( primary.state() === \"pending\" ||\n\t\t\t\tisFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {\n\n\t\t\t\treturn primary.then();\n\t\t\t}\n\t\t}\n\n\t\t// Multiple arguments are aggregated like Promise.all array elements\n\t\twhile ( i-- ) {\n\t\t\tadoptValue( resolveValues[ i ], updateFunc( i ), primary.reject );\n\t\t}\n\n\t\treturn primary.promise();\n\t}\n} );\n\n\n// These usually indicate a programmer mistake during development,\n// warn about them ASAP rather than swallowing them by default.\nvar rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;\n\n// If `jQuery.Deferred.getErrorHook` is defined, `asyncError` is an error\n// captured before the async barrier to get the original error cause\n// which may otherwise be hidden.\njQuery.Deferred.exceptionHook = function( error, asyncError ) {\n\n\t// Support: IE 8 - 9 only\n\t// Console exists when dev tools are open, which can happen at any time\n\tif ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {\n\t\twindow.console.warn( \"jQuery.Deferred exception: \" + error.message,\n\t\t\terror.stack, asyncError );\n\t}\n};\n\n\n\n\njQuery.readyException = function( error ) {\n\twindow.setTimeout( function() {\n\t\tthrow error;\n\t} );\n};\n\n\n\n\n// The deferred used on DOM ready\nvar readyList = jQuery.Deferred();\n\njQuery.fn.ready = function( fn ) {\n\n\treadyList\n\t\t.then( fn )\n\n\t\t// Wrap jQuery.readyException in a function so that the lookup\n\t\t// happens at the time of error handling instead of callback\n\t\t// registration.\n\t\t.catch( function( error ) {\n\t\t\tjQuery.readyException( error );\n\t\t} );\n\n\treturn this;\n};\n\njQuery.extend( {\n\n\t// Is the DOM ready to be used? Set to true once it occurs.\n\tisReady: false,\n\n\t// A counter to track how many items to wait for before\n\t// the ready event fires. See trac-6781\n\treadyWait: 1,\n\n\t// Handle when the DOM is ready\n\tready: function( wait ) {\n\n\t\t// Abort if there are pending holds or we're already ready\n\t\tif ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Remember that the DOM is ready\n\t\tjQuery.isReady = true;\n\n\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\n\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If there are functions bound, to execute\n\t\treadyList.resolveWith( document, [ jQuery ] );\n\t}\n} );\n\njQuery.ready.then = readyList.then;\n\n// The ready event handler and self cleanup method\nfunction completed() {\n\tdocument.removeEventListener( \"DOMContentLoaded\", completed );\n\twindow.removeEventListener( \"load\", completed );\n\tjQuery.ready();\n}\n\n// Catch cases where $(document).ready() is called\n// after the browser event has already occurred.\n// Support: IE <=9 - 10 only\n// Older IE sometimes signals \"interactive\" too soon\nif ( document.readyState === \"complete\" ||\n\t( document.readyState !== \"loading\" && !document.documentElement.doScroll ) ) {\n\n\t// Handle it asynchronously to allow scripts the opportunity to delay ready\n\twindow.setTimeout( jQuery.ready );\n\n} else {\n\n\t// Use the handy event callback\n\tdocument.addEventListener( \"DOMContentLoaded\", completed );\n\n\t// A fallback to window.onload, that will always work\n\twindow.addEventListener( \"load\", completed );\n}\n\n\n\n\n// Multifunctional method to get and set values of a collection\n// The value/s can optionally be executed if it's a function\nvar access = function( elems, fn, key, value, chainable, emptyGet, raw ) {\n\tvar i = 0,\n\t\tlen = elems.length,\n\t\tbulk = key == null;\n\n\t// Sets many values\n\tif ( toType( key ) === \"object\" ) {\n\t\tchainable = true;\n\t\tfor ( i in key ) {\n\t\t\taccess( elems, fn, i, key[ i ], true, emptyGet, raw );\n\t\t}\n\n\t// Sets one value\n\t} else if ( value !== undefined ) {\n\t\tchainable = true;\n\n\t\tif ( !isFunction( value ) ) {\n\t\t\traw = true;\n\t\t}\n\n\t\tif ( bulk ) {\n\n\t\t\t// Bulk operations run against the entire set\n\t\t\tif ( raw ) {\n\t\t\t\tfn.call( elems, value );\n\t\t\t\tfn = null;\n\n\t\t\t// ...except when executing function values\n\t\t\t} else {\n\t\t\t\tbulk = fn;\n\t\t\t\tfn = function( elem, _key, value ) {\n\t\t\t\t\treturn bulk.call( jQuery( elem ), value );\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\tif ( fn ) {\n\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\tfn(\n\t\t\t\t\telems[ i ], key, raw ?\n\t\t\t\t\t\tvalue :\n\t\t\t\t\t\tvalue.call( elems[ i ], i, fn( elems[ i ], key ) )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( chainable ) {\n\t\treturn elems;\n\t}\n\n\t// Gets\n\tif ( bulk ) {\n\t\treturn fn.call( elems );\n\t}\n\n\treturn len ? fn( elems[ 0 ], key ) : emptyGet;\n};\n\n\n// Matches dashed string for camelizing\nvar rmsPrefix = /^-ms-/,\n\trdashAlpha = /-([a-z])/g;\n\n// Used by camelCase as callback to replace()\nfunction fcamelCase( _all, letter ) {\n\treturn letter.toUpperCase();\n}\n\n// Convert dashed to camelCase; used by the css and data modules\n// Support: IE <=9 - 11, Edge 12 - 15\n// Microsoft forgot to hump their vendor prefix (trac-9572)\nfunction camelCase( string ) {\n\treturn string.replace( rmsPrefix, \"ms-\" ).replace( rdashAlpha, fcamelCase );\n}\nvar acceptData = function( owner ) {\n\n\t// Accepts only:\n\t//  - Node\n\t//    - Node.ELEMENT_NODE\n\t//    - Node.DOCUMENT_NODE\n\t//  - Object\n\t//    - Any\n\treturn owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );\n};\n\n\n\n\nfunction Data() {\n\tthis.expando = jQuery.expando + Data.uid++;\n}\n\nData.uid = 1;\n\nData.prototype = {\n\n\tcache: function( owner ) {\n\n\t\t// Check if the owner object already has a cache\n\t\tvar value = owner[ this.expando ];\n\n\t\t// If not, create one\n\t\tif ( !value ) {\n\t\t\tvalue = {};\n\n\t\t\t// We can accept data for non-element nodes in modern browsers,\n\t\t\t// but we should not, see trac-8335.\n\t\t\t// Always return an empty object.\n\t\t\tif ( acceptData( owner ) ) {\n\n\t\t\t\t// If it is a node unlikely to be stringify-ed or looped over\n\t\t\t\t// use plain assignment\n\t\t\t\tif ( owner.nodeType ) {\n\t\t\t\t\towner[ this.expando ] = value;\n\n\t\t\t\t// Otherwise secure it in a non-enumerable property\n\t\t\t\t// configurable must be true to allow the property to be\n\t\t\t\t// deleted when data is removed\n\t\t\t\t} else {\n\t\t\t\t\tObject.defineProperty( owner, this.expando, {\n\t\t\t\t\t\tvalue: value,\n\t\t\t\t\t\tconfigurable: true\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t},\n\tset: function( owner, data, value ) {\n\t\tvar prop,\n\t\t\tcache = this.cache( owner );\n\n\t\t// Handle: [ owner, key, value ] args\n\t\t// Always use camelCase key (gh-2257)\n\t\tif ( typeof data === \"string\" ) {\n\t\t\tcache[ camelCase( data ) ] = value;\n\n\t\t// Handle: [ owner, { properties } ] args\n\t\t} else {\n\n\t\t\t// Copy the properties one-by-one to the cache object\n\t\t\tfor ( prop in data ) {\n\t\t\t\tcache[ camelCase( prop ) ] = data[ prop ];\n\t\t\t}\n\t\t}\n\t\treturn cache;\n\t},\n\tget: function( owner, key ) {\n\t\treturn key === undefined ?\n\t\t\tthis.cache( owner ) :\n\n\t\t\t// Always use camelCase key (gh-2257)\n\t\t\towner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ];\n\t},\n\taccess: function( owner, key, value ) {\n\n\t\t// In cases where either:\n\t\t//\n\t\t//   1. No key was specified\n\t\t//   2. A string key was specified, but no value provided\n\t\t//\n\t\t// Take the \"read\" path and allow the get method to determine\n\t\t// which value to return, respectively either:\n\t\t//\n\t\t//   1. The entire cache object\n\t\t//   2. The data stored at the key\n\t\t//\n\t\tif ( key === undefined ||\n\t\t\t\t( ( key && typeof key === \"string\" ) && value === undefined ) ) {\n\n\t\t\treturn this.get( owner, key );\n\t\t}\n\n\t\t// When the key is not a string, or both a key and value\n\t\t// are specified, set or extend (existing objects) with either:\n\t\t//\n\t\t//   1. An object of properties\n\t\t//   2. A key and value\n\t\t//\n\t\tthis.set( owner, key, value );\n\n\t\t// Since the \"set\" path can have two possible entry points\n\t\t// return the expected data based on which path was taken[*]\n\t\treturn value !== undefined ? value : key;\n\t},\n\tremove: function( owner, key ) {\n\t\tvar i,\n\t\t\tcache = owner[ this.expando ];\n\n\t\tif ( cache === undefined ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( key !== undefined ) {\n\n\t\t\t// Support array or space separated string of keys\n\t\t\tif ( Array.isArray( key ) ) {\n\n\t\t\t\t// If key is an array of keys...\n\t\t\t\t// We always set camelCase keys, so remove that.\n\t\t\t\tkey = key.map( camelCase );\n\t\t\t} else {\n\t\t\t\tkey = camelCase( key );\n\n\t\t\t\t// If a key with the spaces exists, use it.\n\t\t\t\t// Otherwise, create an array by matching non-whitespace\n\t\t\t\tkey = key in cache ?\n\t\t\t\t\t[ key ] :\n\t\t\t\t\t( key.match( rnothtmlwhite ) || [] );\n\t\t\t}\n\n\t\t\ti = key.length;\n\n\t\t\twhile ( i-- ) {\n\t\t\t\tdelete cache[ key[ i ] ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove the expando if there's no more data\n\t\tif ( key === undefined || jQuery.isEmptyObject( cache ) ) {\n\n\t\t\t// Support: Chrome <=35 - 45\n\t\t\t// Webkit & Blink performance suffers when deleting properties\n\t\t\t// from DOM nodes, so set to undefined instead\n\t\t\t// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)\n\t\t\tif ( owner.nodeType ) {\n\t\t\t\towner[ this.expando ] = undefined;\n\t\t\t} else {\n\t\t\t\tdelete owner[ this.expando ];\n\t\t\t}\n\t\t}\n\t},\n\thasData: function( owner ) {\n\t\tvar cache = owner[ this.expando ];\n\t\treturn cache !== undefined && !jQuery.isEmptyObject( cache );\n\t}\n};\nvar dataPriv = new Data();\n\nvar dataUser = new Data();\n\n\n\n//\tImplementation Summary\n//\n//\t1. Enforce API surface and semantic compatibility with 1.9.x branch\n//\t2. Improve the module's maintainability by reducing the storage\n//\t\tpaths to a single mechanism.\n//\t3. Use the same single mechanism to support \"private\" and \"user\" data.\n//\t4. _Never_ expose \"private\" data to user code (TODO: Drop _data, _removeData)\n//\t5. Avoid exposing implementation details on user objects (eg. expando properties)\n//\t6. Provide a clear path for implementation upgrade to WeakMap in 2014\n\nvar rbrace = /^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,\n\trmultiDash = /[A-Z]/g;\n\nfunction getData( data ) {\n\tif ( data === \"true\" ) {\n\t\treturn true;\n\t}\n\n\tif ( data === \"false\" ) {\n\t\treturn false;\n\t}\n\n\tif ( data === \"null\" ) {\n\t\treturn null;\n\t}\n\n\t// Only convert to a number if it doesn't change the string\n\tif ( data === +data + \"\" ) {\n\t\treturn +data;\n\t}\n\n\tif ( rbrace.test( data ) ) {\n\t\treturn JSON.parse( data );\n\t}\n\n\treturn data;\n}\n\nfunction dataAttr( elem, key, data ) {\n\tvar name;\n\n\t// If nothing was found internally, try to fetch any\n\t// data from the HTML5 data-* attribute\n\tif ( data === undefined && elem.nodeType === 1 ) {\n\t\tname = \"data-\" + key.replace( rmultiDash, \"-$&\" ).toLowerCase();\n\t\tdata = elem.getAttribute( name );\n\n\t\tif ( typeof data === \"string\" ) {\n\t\t\ttry {\n\t\t\t\tdata = getData( data );\n\t\t\t} catch ( e ) {}\n\n\t\t\t// Make sure we set the data so it isn't changed later\n\t\t\tdataUser.set( elem, key, data );\n\t\t} else {\n\t\t\tdata = undefined;\n\t\t}\n\t}\n\treturn data;\n}\n\njQuery.extend( {\n\thasData: function( elem ) {\n\t\treturn dataUser.hasData( elem ) || dataPriv.hasData( elem );\n\t},\n\n\tdata: function( elem, name, data ) {\n\t\treturn dataUser.access( elem, name, data );\n\t},\n\n\tremoveData: function( elem, name ) {\n\t\tdataUser.remove( elem, name );\n\t},\n\n\t// TODO: Now that all calls to _data and _removeData have been replaced\n\t// with direct calls to dataPriv methods, these can be deprecated.\n\t_data: function( elem, name, data ) {\n\t\treturn dataPriv.access( elem, name, data );\n\t},\n\n\t_removeData: function( elem, name ) {\n\t\tdataPriv.remove( elem, name );\n\t}\n} );\n\njQuery.fn.extend( {\n\tdata: function( key, value ) {\n\t\tvar i, name, data,\n\t\t\telem = this[ 0 ],\n\t\t\tattrs = elem && elem.attributes;\n\n\t\t// Gets all values\n\t\tif ( key === undefined ) {\n\t\t\tif ( this.length ) {\n\t\t\t\tdata = dataUser.get( elem );\n\n\t\t\t\tif ( elem.nodeType === 1 && !dataPriv.get( elem, \"hasDataAttrs\" ) ) {\n\t\t\t\t\ti = attrs.length;\n\t\t\t\t\twhile ( i-- ) {\n\n\t\t\t\t\t\t// Support: IE 11 only\n\t\t\t\t\t\t// The attrs elements can be null (trac-14894)\n\t\t\t\t\t\tif ( attrs[ i ] ) {\n\t\t\t\t\t\t\tname = attrs[ i ].name;\n\t\t\t\t\t\t\tif ( name.indexOf( \"data-\" ) === 0 ) {\n\t\t\t\t\t\t\t\tname = camelCase( name.slice( 5 ) );\n\t\t\t\t\t\t\t\tdataAttr( elem, name, data[ name ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdataPriv.set( elem, \"hasDataAttrs\", true );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn data;\n\t\t}\n\n\t\t// Sets multiple values\n\t\tif ( typeof key === \"object\" ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tdataUser.set( this, key );\n\t\t\t} );\n\t\t}\n\n\t\treturn access( this, function( value ) {\n\t\t\tvar data;\n\n\t\t\t// The calling jQuery object (element matches) is not empty\n\t\t\t// (and therefore has an element appears at this[ 0 ]) and the\n\t\t\t// `value` parameter was not undefined. An empty jQuery object\n\t\t\t// will result in `undefined` for elem = this[ 0 ] which will\n\t\t\t// throw an exception if an attempt to read a data cache is made.\n\t\t\tif ( elem && value === undefined ) {\n\n\t\t\t\t// Attempt to get data from the cache\n\t\t\t\t// The key will always be camelCased in Data\n\t\t\t\tdata = dataUser.get( elem, key );\n\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\n\t\t\t\t// Attempt to \"discover\" the data in\n\t\t\t\t// HTML5 custom data-* attrs\n\t\t\t\tdata = dataAttr( elem, key );\n\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\n\t\t\t\t// We tried really hard, but the data doesn't exist.\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Set the data...\n\t\t\tthis.each( function() {\n\n\t\t\t\t// We always store the camelCased key\n\t\t\t\tdataUser.set( this, key, value );\n\t\t\t} );\n\t\t}, null, value, arguments.length > 1, null, true );\n\t},\n\n\tremoveData: function( key ) {\n\t\treturn this.each( function() {\n\t\t\tdataUser.remove( this, key );\n\t\t} );\n\t}\n} );\n\n\njQuery.extend( {\n\tqueue: function( elem, type, data ) {\n\t\tvar queue;\n\n\t\tif ( elem ) {\n\t\t\ttype = ( type || \"fx\" ) + \"queue\";\n\t\t\tqueue = dataPriv.get( elem, type );\n\n\t\t\t// Speed up dequeue by getting out quickly if this is just a lookup\n\t\t\tif ( data ) {\n\t\t\t\tif ( !queue || Array.isArray( data ) ) {\n\t\t\t\t\tqueue = dataPriv.access( elem, type, jQuery.makeArray( data ) );\n\t\t\t\t} else {\n\t\t\t\t\tqueue.push( data );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn queue || [];\n\t\t}\n\t},\n\n\tdequeue: function( elem, type ) {\n\t\ttype = type || \"fx\";\n\n\t\tvar queue = jQuery.queue( elem, type ),\n\t\t\tstartLength = queue.length,\n\t\t\tfn = queue.shift(),\n\t\t\thooks = jQuery._queueHooks( elem, type ),\n\t\t\tnext = function() {\n\t\t\t\tjQuery.dequeue( elem, type );\n\t\t\t};\n\n\t\t// If the fx queue is dequeued, always remove the progress sentinel\n\t\tif ( fn === \"inprogress\" ) {\n\t\t\tfn = queue.shift();\n\t\t\tstartLength--;\n\t\t}\n\n\t\tif ( fn ) {\n\n\t\t\t// Add a progress sentinel to prevent the fx queue from being\n\t\t\t// automatically dequeued\n\t\t\tif ( type === \"fx\" ) {\n\t\t\t\tqueue.unshift( \"inprogress\" );\n\t\t\t}\n\n\t\t\t// Clear up the last queue stop function\n\t\t\tdelete hooks.stop;\n\t\t\tfn.call( elem, next, hooks );\n\t\t}\n\n\t\tif ( !startLength && hooks ) {\n\t\t\thooks.empty.fire();\n\t\t}\n\t},\n\n\t// Not public - generate a queueHooks object, or return the current one\n\t_queueHooks: function( elem, type ) {\n\t\tvar key = type + \"queueHooks\";\n\t\treturn dataPriv.get( elem, key ) || dataPriv.access( elem, key, {\n\t\t\tempty: jQuery.Callbacks( \"once memory\" ).add( function() {\n\t\t\t\tdataPriv.remove( elem, [ type + \"queue\", key ] );\n\t\t\t} )\n\t\t} );\n\t}\n} );\n\njQuery.fn.extend( {\n\tqueue: function( type, data ) {\n\t\tvar setter = 2;\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tdata = type;\n\t\t\ttype = \"fx\";\n\t\t\tsetter--;\n\t\t}\n\n\t\tif ( arguments.length < setter ) {\n\t\t\treturn jQuery.queue( this[ 0 ], type );\n\t\t}\n\n\t\treturn data === undefined ?\n\t\t\tthis :\n\t\t\tthis.each( function() {\n\t\t\t\tvar queue = jQuery.queue( this, type, data );\n\n\t\t\t\t// Ensure a hooks for this queue\n\t\t\t\tjQuery._queueHooks( this, type );\n\n\t\t\t\tif ( type === \"fx\" && queue[ 0 ] !== \"inprogress\" ) {\n\t\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t\t}\n\t\t\t} );\n\t},\n\tdequeue: function( type ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.dequeue( this, type );\n\t\t} );\n\t},\n\tclearQueue: function( type ) {\n\t\treturn this.queue( type || \"fx\", [] );\n\t},\n\n\t// Get a promise resolved when queues of a certain type\n\t// are emptied (fx is the type by default)\n\tpromise: function( type, obj ) {\n\t\tvar tmp,\n\t\t\tcount = 1,\n\t\t\tdefer = jQuery.Deferred(),\n\t\t\telements = this,\n\t\t\ti = this.length,\n\t\t\tresolve = function() {\n\t\t\t\tif ( !( --count ) ) {\n\t\t\t\t\tdefer.resolveWith( elements, [ elements ] );\n\t\t\t\t}\n\t\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tobj = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\ttype = type || \"fx\";\n\n\t\twhile ( i-- ) {\n\t\t\ttmp = dataPriv.get( elements[ i ], type + \"queueHooks\" );\n\t\t\tif ( tmp && tmp.empty ) {\n\t\t\t\tcount++;\n\t\t\t\ttmp.empty.add( resolve );\n\t\t\t}\n\t\t}\n\t\tresolve();\n\t\treturn defer.promise( obj );\n\t}\n} );\nvar pnum = ( /[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/ ).source;\n\nvar rcssNum = new RegExp( \"^(?:([+-])=|)(\" + pnum + \")([a-z%]*)$\", \"i\" );\n\n\nvar cssExpand = [ \"Top\", \"Right\", \"Bottom\", \"Left\" ];\n\nvar documentElement = document.documentElement;\n\n\n\n\tvar isAttached = function( elem ) {\n\t\t\treturn jQuery.contains( elem.ownerDocument, elem );\n\t\t},\n\t\tcomposed = { composed: true };\n\n\t// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only\n\t// Check attachment across shadow DOM boundaries when possible (gh-3504)\n\t// Support: iOS 10.0-10.2 only\n\t// Early iOS 10 versions support `attachShadow` but not `getRootNode`,\n\t// leading to errors. We need to check for `getRootNode`.\n\tif ( documentElement.getRootNode ) {\n\t\tisAttached = function( elem ) {\n\t\t\treturn jQuery.contains( elem.ownerDocument, elem ) ||\n\t\t\t\telem.getRootNode( composed ) === elem.ownerDocument;\n\t\t};\n\t}\nvar isHiddenWithinTree = function( elem, el ) {\n\n\t\t// isHiddenWithinTree might be called from jQuery#filter function;\n\t\t// in that case, element will be second argument\n\t\telem = el || elem;\n\n\t\t// Inline style trumps all\n\t\treturn elem.style.display === \"none\" ||\n\t\t\telem.style.display === \"\" &&\n\n\t\t\t// Otherwise, check computed style\n\t\t\t// Support: Firefox <=43 - 45\n\t\t\t// Disconnected elements can have computed display: none, so first confirm that elem is\n\t\t\t// in the document.\n\t\t\tisAttached( elem ) &&\n\n\t\t\tjQuery.css( elem, \"display\" ) === \"none\";\n\t};\n\n\n\nfunction adjustCSS( elem, prop, valueParts, tween ) {\n\tvar adjusted, scale,\n\t\tmaxIterations = 20,\n\t\tcurrentValue = tween ?\n\t\t\tfunction() {\n\t\t\t\treturn tween.cur();\n\t\t\t} :\n\t\t\tfunction() {\n\t\t\t\treturn jQuery.css( elem, prop, \"\" );\n\t\t\t},\n\t\tinitial = currentValue(),\n\t\tunit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" ),\n\n\t\t// Starting value computation is required for potential unit mismatches\n\t\tinitialInUnit = elem.nodeType &&\n\t\t\t( jQuery.cssNumber[ prop ] || unit !== \"px\" && +initial ) &&\n\t\t\trcssNum.exec( jQuery.css( elem, prop ) );\n\n\tif ( initialInUnit && initialInUnit[ 3 ] !== unit ) {\n\n\t\t// Support: Firefox <=54\n\t\t// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)\n\t\tinitial = initial / 2;\n\n\t\t// Trust units reported by jQuery.css\n\t\tunit = unit || initialInUnit[ 3 ];\n\n\t\t// Iteratively approximate from a nonzero starting point\n\t\tinitialInUnit = +initial || 1;\n\n\t\twhile ( maxIterations-- ) {\n\n\t\t\t// Evaluate and update our best guess (doubling guesses that zero out).\n\t\t\t// Finish if the scale equals or crosses 1 (making the old*new product non-positive).\n\t\t\tjQuery.style( elem, prop, initialInUnit + unit );\n\t\t\tif ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {\n\t\t\t\tmaxIterations = 0;\n\t\t\t}\n\t\t\tinitialInUnit = initialInUnit / scale;\n\n\t\t}\n\n\t\tinitialInUnit = initialInUnit * 2;\n\t\tjQuery.style( elem, prop, initialInUnit + unit );\n\n\t\t// Make sure we update the tween properties later on\n\t\tvalueParts = valueParts || [];\n\t}\n\n\tif ( valueParts ) {\n\t\tinitialInUnit = +initialInUnit || +initial || 0;\n\n\t\t// Apply relative offset (+=/-=) if specified\n\t\tadjusted = valueParts[ 1 ] ?\n\t\t\tinitialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :\n\t\t\t+valueParts[ 2 ];\n\t\tif ( tween ) {\n\t\t\ttween.unit = unit;\n\t\t\ttween.start = initialInUnit;\n\t\t\ttween.end = adjusted;\n\t\t}\n\t}\n\treturn adjusted;\n}\n\n\nvar defaultDisplayMap = {};\n\nfunction getDefaultDisplay( elem ) {\n\tvar temp,\n\t\tdoc = elem.ownerDocument,\n\t\tnodeName = elem.nodeName,\n\t\tdisplay = defaultDisplayMap[ nodeName ];\n\n\tif ( display ) {\n\t\treturn display;\n\t}\n\n\ttemp = doc.body.appendChild( doc.createElement( nodeName ) );\n\tdisplay = jQuery.css( temp, \"display\" );\n\n\ttemp.parentNode.removeChild( temp );\n\n\tif ( display === \"none\" ) {\n\t\tdisplay = \"block\";\n\t}\n\tdefaultDisplayMap[ nodeName ] = display;\n\n\treturn display;\n}\n\nfunction showHide( elements, show ) {\n\tvar display, elem,\n\t\tvalues = [],\n\t\tindex = 0,\n\t\tlength = elements.length;\n\n\t// Determine new display value for elements that need to change\n\tfor ( ; index < length; index++ ) {\n\t\telem = elements[ index ];\n\t\tif ( !elem.style ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tdisplay = elem.style.display;\n\t\tif ( show ) {\n\n\t\t\t// Since we force visibility upon cascade-hidden elements, an immediate (and slow)\n\t\t\t// check is required in this first loop unless we have a nonempty display value (either\n\t\t\t// inline or about-to-be-restored)\n\t\t\tif ( display === \"none\" ) {\n\t\t\t\tvalues[ index ] = dataPriv.get( elem, \"display\" ) || null;\n\t\t\t\tif ( !values[ index ] ) {\n\t\t\t\t\telem.style.display = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( elem.style.display === \"\" && isHiddenWithinTree( elem ) ) {\n\t\t\t\tvalues[ index ] = getDefaultDisplay( elem );\n\t\t\t}\n\t\t} else {\n\t\t\tif ( display !== \"none\" ) {\n\t\t\t\tvalues[ index ] = \"none\";\n\n\t\t\t\t// Remember what we're overwriting\n\t\t\t\tdataPriv.set( elem, \"display\", display );\n\t\t\t}\n\t\t}\n\t}\n\n\t// Set the display of the elements in a second loop to avoid constant reflow\n\tfor ( index = 0; index < length; index++ ) {\n\t\tif ( values[ index ] != null ) {\n\t\t\telements[ index ].style.display = values[ index ];\n\t\t}\n\t}\n\n\treturn elements;\n}\n\njQuery.fn.extend( {\n\tshow: function() {\n\t\treturn showHide( this, true );\n\t},\n\thide: function() {\n\t\treturn showHide( this );\n\t},\n\ttoggle: function( state ) {\n\t\tif ( typeof state === \"boolean\" ) {\n\t\t\treturn state ? this.show() : this.hide();\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tif ( isHiddenWithinTree( this ) ) {\n\t\t\t\tjQuery( this ).show();\n\t\t\t} else {\n\t\t\t\tjQuery( this ).hide();\n\t\t\t}\n\t\t} );\n\t}\n} );\nvar rcheckableType = ( /^(?:checkbox|radio)$/i );\n\nvar rtagName = ( /<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)/i );\n\nvar rscriptType = ( /^$|^module$|\\/(?:java|ecma)script/i );\n\n\n\n( function() {\n\tvar fragment = document.createDocumentFragment(),\n\t\tdiv = fragment.appendChild( document.createElement( \"div\" ) ),\n\t\tinput = document.createElement( \"input\" );\n\n\t// Support: Android 4.0 - 4.3 only\n\t// Check state lost if the name is set (trac-11217)\n\t// Support: Windows Web Apps (WWA)\n\t// `name` and `type` must use .setAttribute for WWA (trac-14901)\n\tinput.setAttribute( \"type\", \"radio\" );\n\tinput.setAttribute( \"checked\", \"checked\" );\n\tinput.setAttribute( \"name\", \"t\" );\n\n\tdiv.appendChild( input );\n\n\t// Support: Android <=4.1 only\n\t// Older WebKit doesn't clone checked state correctly in fragments\n\tsupport.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;\n\n\t// Support: IE <=11 only\n\t// Make sure textarea (and checkbox) defaultValue is properly cloned\n\tdiv.innerHTML = \"<textarea>x</textarea>\";\n\tsupport.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;\n\n\t// Support: IE <=9 only\n\t// IE <=9 replaces <option> tags with their contents when inserted outside of\n\t// the select element.\n\tdiv.innerHTML = \"<option></option>\";\n\tsupport.option = !!div.lastChild;\n} )();\n\n\n// We have to close these tags to support XHTML (trac-13200)\nvar wrapMap = {\n\n\t// XHTML parsers do not magically insert elements in the\n\t// same way that tag soup parsers do. So we cannot shorten\n\t// this by omitting <tbody> or other required elements.\n\tthead: [ 1, \"<table>\", \"</table>\" ],\n\tcol: [ 2, \"<table><colgroup>\", \"</colgroup></table>\" ],\n\ttr: [ 2, \"<table><tbody>\", \"</tbody></table>\" ],\n\ttd: [ 3, \"<table><tbody><tr>\", \"</tr></tbody></table>\" ],\n\n\t_default: [ 0, \"\", \"\" ]\n};\n\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\nwrapMap.th = wrapMap.td;\n\n// Support: IE <=9 only\nif ( !support.option ) {\n\twrapMap.optgroup = wrapMap.option = [ 1, \"<select multiple='multiple'>\", \"</select>\" ];\n}\n\n\nfunction getAll( context, tag ) {\n\n\t// Support: IE <=9 - 11 only\n\t// Use typeof to avoid zero-argument method invocation on host objects (trac-15151)\n\tvar ret;\n\n\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\tret = context.getElementsByTagName( tag || \"*\" );\n\n\t} else if ( typeof context.querySelectorAll !== \"undefined\" ) {\n\t\tret = context.querySelectorAll( tag || \"*\" );\n\n\t} else {\n\t\tret = [];\n\t}\n\n\tif ( tag === undefined || tag && nodeName( context, tag ) ) {\n\t\treturn jQuery.merge( [ context ], ret );\n\t}\n\n\treturn ret;\n}\n\n\n// Mark scripts as having already been evaluated\nfunction setGlobalEval( elems, refElements ) {\n\tvar i = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\tdataPriv.set(\n\t\t\telems[ i ],\n\t\t\t\"globalEval\",\n\t\t\t!refElements || dataPriv.get( refElements[ i ], \"globalEval\" )\n\t\t);\n\t}\n}\n\n\nvar rhtml = /<|&#?\\w+;/;\n\nfunction buildFragment( elems, context, scripts, selection, ignored ) {\n\tvar elem, tmp, tag, wrap, attached, j,\n\t\tfragment = context.createDocumentFragment(),\n\t\tnodes = [],\n\t\ti = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\telem = elems[ i ];\n\n\t\tif ( elem || elem === 0 ) {\n\n\t\t\t// Add nodes directly\n\t\t\tif ( toType( elem ) === \"object\" ) {\n\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\tjQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );\n\n\t\t\t// Convert non-html into a text node\n\t\t\t} else if ( !rhtml.test( elem ) ) {\n\t\t\t\tnodes.push( context.createTextNode( elem ) );\n\n\t\t\t// Convert html into DOM nodes\n\t\t\t} else {\n\t\t\t\ttmp = tmp || fragment.appendChild( context.createElement( \"div\" ) );\n\n\t\t\t\t// Deserialize a standard representation\n\t\t\t\ttag = ( rtagName.exec( elem ) || [ \"\", \"\" ] )[ 1 ].toLowerCase();\n\t\t\t\twrap = wrapMap[ tag ] || wrapMap._default;\n\t\t\t\ttmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];\n\n\t\t\t\t// Descend through wrappers to the right content\n\t\t\t\tj = wrap[ 0 ];\n\t\t\t\twhile ( j-- ) {\n\t\t\t\t\ttmp = tmp.lastChild;\n\t\t\t\t}\n\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\tjQuery.merge( nodes, tmp.childNodes );\n\n\t\t\t\t// Remember the top-level container\n\t\t\t\ttmp = fragment.firstChild;\n\n\t\t\t\t// Ensure the created nodes are orphaned (trac-12392)\n\t\t\t\ttmp.textContent = \"\";\n\t\t\t}\n\t\t}\n\t}\n\n\t// Remove wrapper from fragment\n\tfragment.textContent = \"\";\n\n\ti = 0;\n\twhile ( ( elem = nodes[ i++ ] ) ) {\n\n\t\t// Skip elements already in the context collection (trac-4087)\n\t\tif ( selection && jQuery.inArray( elem, selection ) > -1 ) {\n\t\t\tif ( ignored ) {\n\t\t\t\tignored.push( elem );\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tattached = isAttached( elem );\n\n\t\t// Append to fragment\n\t\ttmp = getAll( fragment.appendChild( elem ), \"script\" );\n\n\t\t// Preserve script evaluation history\n\t\tif ( attached ) {\n\t\t\tsetGlobalEval( tmp );\n\t\t}\n\n\t\t// Capture executables\n\t\tif ( scripts ) {\n\t\t\tj = 0;\n\t\t\twhile ( ( elem = tmp[ j++ ] ) ) {\n\t\t\t\tif ( rscriptType.test( elem.type || \"\" ) ) {\n\t\t\t\t\tscripts.push( elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn fragment;\n}\n\n\nvar rtypenamespace = /^([^.]*)(?:\\.(.+)|)/;\n\nfunction returnTrue() {\n\treturn true;\n}\n\nfunction returnFalse() {\n\treturn false;\n}\n\nfunction on( elem, types, selector, data, fn, one ) {\n\tvar origFn, type;\n\n\t// Types can be a map of types/handlers\n\tif ( typeof types === \"object\" ) {\n\n\t\t// ( types-Object, selector, data )\n\t\tif ( typeof selector !== \"string\" ) {\n\n\t\t\t// ( types-Object, data )\n\t\t\tdata = data || selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tfor ( type in types ) {\n\t\t\ton( elem, type, selector, data, types[ type ], one );\n\t\t}\n\t\treturn elem;\n\t}\n\n\tif ( data == null && fn == null ) {\n\n\t\t// ( types, fn )\n\t\tfn = selector;\n\t\tdata = selector = undefined;\n\t} else if ( fn == null ) {\n\t\tif ( typeof selector === \"string\" ) {\n\n\t\t\t// ( types, selector, fn )\n\t\t\tfn = data;\n\t\t\tdata = undefined;\n\t\t} else {\n\n\t\t\t// ( types, data, fn )\n\t\t\tfn = data;\n\t\t\tdata = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t}\n\tif ( fn === false ) {\n\t\tfn = returnFalse;\n\t} else if ( !fn ) {\n\t\treturn elem;\n\t}\n\n\tif ( one === 1 ) {\n\t\torigFn = fn;\n\t\tfn = function( event ) {\n\n\t\t\t// Can use an empty set, since event contains the info\n\t\t\tjQuery().off( event );\n\t\t\treturn origFn.apply( this, arguments );\n\t\t};\n\n\t\t// Use same guid so caller can remove using origFn\n\t\tfn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );\n\t}\n\treturn elem.each( function() {\n\t\tjQuery.event.add( this, types, fn, data, selector );\n\t} );\n}\n\n/*\n * Helper functions for managing events -- not part of the public interface.\n * Props to Dean Edwards' addEvent library for many of the ideas.\n */\njQuery.event = {\n\n\tglobal: {},\n\n\tadd: function( elem, types, handler, data, selector ) {\n\n\t\tvar handleObjIn, eventHandle, tmp,\n\t\t\tevents, t, handleObj,\n\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\telemData = dataPriv.get( elem );\n\n\t\t// Only attach events to objects that accept data\n\t\tif ( !acceptData( elem ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Caller can pass in an object of custom data in lieu of the handler\n\t\tif ( handler.handler ) {\n\t\t\thandleObjIn = handler;\n\t\t\thandler = handleObjIn.handler;\n\t\t\tselector = handleObjIn.selector;\n\t\t}\n\n\t\t// Ensure that invalid selectors throw exceptions at attach time\n\t\t// Evaluate against documentElement in case elem is a non-element node (e.g., document)\n\t\tif ( selector ) {\n\t\t\tjQuery.find.matchesSelector( documentElement, selector );\n\t\t}\n\n\t\t// Make sure that the handler has a unique ID, used to find/remove it later\n\t\tif ( !handler.guid ) {\n\t\t\thandler.guid = jQuery.guid++;\n\t\t}\n\n\t\t// Init the element's event structure and main handler, if this is the first\n\t\tif ( !( events = elemData.events ) ) {\n\t\t\tevents = elemData.events = Object.create( null );\n\t\t}\n\t\tif ( !( eventHandle = elemData.handle ) ) {\n\t\t\teventHandle = elemData.handle = function( e ) {\n\n\t\t\t\t// Discard the second event of a jQuery.event.trigger() and\n\t\t\t\t// when an event is called after a page has unloaded\n\t\t\t\treturn typeof jQuery !== \"undefined\" && jQuery.event.triggered !== e.type ?\n\t\t\t\t\tjQuery.event.dispatch.apply( elem, arguments ) : undefined;\n\t\t\t};\n\t\t}\n\n\t\t// Handle multiple events separated by a space\n\t\ttypes = ( types || \"\" ).match( rnothtmlwhite ) || [ \"\" ];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\ttype = origType = tmp[ 1 ];\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// There *must* be a type, no attaching namespace-only handlers\n\t\t\tif ( !type ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If event changes its type, use the special event handlers for the changed type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// If selector defined, determine special event api type, otherwise given type\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\n\t\t\t// Update special based on newly reset type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// handleObj is passed to all event handlers\n\t\t\thandleObj = jQuery.extend( {\n\t\t\t\ttype: type,\n\t\t\t\torigType: origType,\n\t\t\t\tdata: data,\n\t\t\t\thandler: handler,\n\t\t\t\tguid: handler.guid,\n\t\t\t\tselector: selector,\n\t\t\t\tneedsContext: selector && jQuery.expr.match.needsContext.test( selector ),\n\t\t\t\tnamespace: namespaces.join( \".\" )\n\t\t\t}, handleObjIn );\n\n\t\t\t// Init the event handler queue if we're the first\n\t\t\tif ( !( handlers = events[ type ] ) ) {\n\t\t\t\thandlers = events[ type ] = [];\n\t\t\t\thandlers.delegateCount = 0;\n\n\t\t\t\t// Only use addEventListener if the special events handler returns false\n\t\t\t\tif ( !special.setup ||\n\t\t\t\t\tspecial.setup.call( elem, data, namespaces, eventHandle ) === false ) {\n\n\t\t\t\t\tif ( elem.addEventListener ) {\n\t\t\t\t\t\telem.addEventListener( type, eventHandle );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( special.add ) {\n\t\t\t\tspecial.add.call( elem, handleObj );\n\n\t\t\t\tif ( !handleObj.handler.guid ) {\n\t\t\t\t\thandleObj.handler.guid = handler.guid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add to the element's handler list, delegates in front\n\t\t\tif ( selector ) {\n\t\t\t\thandlers.splice( handlers.delegateCount++, 0, handleObj );\n\t\t\t} else {\n\t\t\t\thandlers.push( handleObj );\n\t\t\t}\n\n\t\t\t// Keep track of which events have ever been used, for event optimization\n\t\t\tjQuery.event.global[ type ] = true;\n\t\t}\n\n\t},\n\n\t// Detach an event or set of events from an element\n\tremove: function( elem, types, handler, selector, mappedTypes ) {\n\n\t\tvar j, origCount, tmp,\n\t\t\tevents, t, handleObj,\n\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\telemData = dataPriv.hasData( elem ) && dataPriv.get( elem );\n\n\t\tif ( !elemData || !( events = elemData.events ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Once for each type.namespace in types; type may be omitted\n\t\ttypes = ( types || \"\" ).match( rnothtmlwhite ) || [ \"\" ];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\ttype = origType = tmp[ 1 ];\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// Unbind all events (on this namespace, if provided) for the element\n\t\t\tif ( !type ) {\n\t\t\t\tfor ( type in events ) {\n\t\t\t\t\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\t\t\thandlers = events[ type ] || [];\n\t\t\ttmp = tmp[ 2 ] &&\n\t\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" );\n\n\t\t\t// Remove matching events\n\t\t\torigCount = j = handlers.length;\n\t\t\twhile ( j-- ) {\n\t\t\t\thandleObj = handlers[ j ];\n\n\t\t\t\tif ( ( mappedTypes || origType === handleObj.origType ) &&\n\t\t\t\t\t( !handler || handler.guid === handleObj.guid ) &&\n\t\t\t\t\t( !tmp || tmp.test( handleObj.namespace ) ) &&\n\t\t\t\t\t( !selector || selector === handleObj.selector ||\n\t\t\t\t\t\tselector === \"**\" && handleObj.selector ) ) {\n\t\t\t\t\thandlers.splice( j, 1 );\n\n\t\t\t\t\tif ( handleObj.selector ) {\n\t\t\t\t\t\thandlers.delegateCount--;\n\t\t\t\t\t}\n\t\t\t\t\tif ( special.remove ) {\n\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove generic event handler if we removed something and no more handlers exist\n\t\t\t// (avoids potential for endless recursion during removal of special event handlers)\n\t\t\tif ( origCount && !handlers.length ) {\n\t\t\t\tif ( !special.teardown ||\n\t\t\t\t\tspecial.teardown.call( elem, namespaces, elemData.handle ) === false ) {\n\n\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\n\t\t\t\t}\n\n\t\t\t\tdelete events[ type ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove data and the expando if it's no longer used\n\t\tif ( jQuery.isEmptyObject( events ) ) {\n\t\t\tdataPriv.remove( elem, \"handle events\" );\n\t\t}\n\t},\n\n\tdispatch: function( nativeEvent ) {\n\n\t\tvar i, j, ret, matched, handleObj, handlerQueue,\n\t\t\targs = new Array( arguments.length ),\n\n\t\t\t// Make a writable jQuery.Event from the native event object\n\t\t\tevent = jQuery.event.fix( nativeEvent ),\n\n\t\t\thandlers = (\n\t\t\t\tdataPriv.get( this, \"events\" ) || Object.create( null )\n\t\t\t)[ event.type ] || [],\n\t\t\tspecial = jQuery.event.special[ event.type ] || {};\n\n\t\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\n\t\targs[ 0 ] = event;\n\n\t\tfor ( i = 1; i < arguments.length; i++ ) {\n\t\t\targs[ i ] = arguments[ i ];\n\t\t}\n\n\t\tevent.delegateTarget = this;\n\n\t\t// Call the preDispatch hook for the mapped type, and let it bail if desired\n\t\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine handlers\n\t\thandlerQueue = jQuery.event.handlers.call( this, event, handlers );\n\n\t\t// Run delegates first; they may want to stop propagation beneath us\n\t\ti = 0;\n\t\twhile ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {\n\t\t\tevent.currentTarget = matched.elem;\n\n\t\t\tj = 0;\n\t\t\twhile ( ( handleObj = matched.handlers[ j++ ] ) &&\n\t\t\t\t!event.isImmediatePropagationStopped() ) {\n\n\t\t\t\t// If the event is namespaced, then each handler is only invoked if it is\n\t\t\t\t// specially universal or its namespaces are a superset of the event's.\n\t\t\t\tif ( !event.rnamespace || handleObj.namespace === false ||\n\t\t\t\t\tevent.rnamespace.test( handleObj.namespace ) ) {\n\n\t\t\t\t\tevent.handleObj = handleObj;\n\t\t\t\t\tevent.data = handleObj.data;\n\n\t\t\t\t\tret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||\n\t\t\t\t\t\thandleObj.handler ).apply( matched.elem, args );\n\n\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\tif ( ( event.result = ret ) === false ) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Call the postDispatch hook for the mapped type\n\t\tif ( special.postDispatch ) {\n\t\t\tspecial.postDispatch.call( this, event );\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\thandlers: function( event, handlers ) {\n\t\tvar i, handleObj, sel, matchedHandlers, matchedSelectors,\n\t\t\thandlerQueue = [],\n\t\t\tdelegateCount = handlers.delegateCount,\n\t\t\tcur = event.target;\n\n\t\t// Find delegate handlers\n\t\tif ( delegateCount &&\n\n\t\t\t// Support: IE <=9\n\t\t\t// Black-hole SVG <use> instance trees (trac-13180)\n\t\t\tcur.nodeType &&\n\n\t\t\t// Support: Firefox <=42\n\t\t\t// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)\n\t\t\t// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click\n\t\t\t// Support: IE 11 only\n\t\t\t// ...but not arrow key \"clicks\" of radio inputs, which can have `button` -1 (gh-2343)\n\t\t\t!( event.type === \"click\" && event.button >= 1 ) ) {\n\n\t\t\tfor ( ; cur !== this; cur = cur.parentNode || this ) {\n\n\t\t\t\t// Don't check non-elements (trac-13208)\n\t\t\t\t// Don't process clicks on disabled elements (trac-6911, trac-8165, trac-11382, trac-11764)\n\t\t\t\tif ( cur.nodeType === 1 && !( event.type === \"click\" && cur.disabled === true ) ) {\n\t\t\t\t\tmatchedHandlers = [];\n\t\t\t\t\tmatchedSelectors = {};\n\t\t\t\t\tfor ( i = 0; i < delegateCount; i++ ) {\n\t\t\t\t\t\thandleObj = handlers[ i ];\n\n\t\t\t\t\t\t// Don't conflict with Object.prototype properties (trac-13203)\n\t\t\t\t\t\tsel = handleObj.selector + \" \";\n\n\t\t\t\t\t\tif ( matchedSelectors[ sel ] === undefined ) {\n\t\t\t\t\t\t\tmatchedSelectors[ sel ] = handleObj.needsContext ?\n\t\t\t\t\t\t\t\tjQuery( sel, this ).index( cur ) > -1 :\n\t\t\t\t\t\t\t\tjQuery.find( sel, this, null, [ cur ] ).length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( matchedSelectors[ sel ] ) {\n\t\t\t\t\t\t\tmatchedHandlers.push( handleObj );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( matchedHandlers.length ) {\n\t\t\t\t\t\thandlerQueue.push( { elem: cur, handlers: matchedHandlers } );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Add the remaining (directly-bound) handlers\n\t\tcur = this;\n\t\tif ( delegateCount < handlers.length ) {\n\t\t\thandlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );\n\t\t}\n\n\t\treturn handlerQueue;\n\t},\n\n\taddProp: function( name, hook ) {\n\t\tObject.defineProperty( jQuery.Event.prototype, name, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\n\t\t\tget: isFunction( hook ) ?\n\t\t\t\tfunction() {\n\t\t\t\t\tif ( this.originalEvent ) {\n\t\t\t\t\t\treturn hook( this.originalEvent );\n\t\t\t\t\t}\n\t\t\t\t} :\n\t\t\t\tfunction() {\n\t\t\t\t\tif ( this.originalEvent ) {\n\t\t\t\t\t\treturn this.originalEvent[ name ];\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\tset: function( value ) {\n\t\t\t\tObject.defineProperty( this, name, {\n\t\t\t\t\tenumerable: true,\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: value\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\t},\n\n\tfix: function( originalEvent ) {\n\t\treturn originalEvent[ jQuery.expando ] ?\n\t\t\toriginalEvent :\n\t\t\tnew jQuery.Event( originalEvent );\n\t},\n\n\tspecial: {\n\t\tload: {\n\n\t\t\t// Prevent triggered image.load events from bubbling to window.load\n\t\t\tnoBubble: true\n\t\t},\n\t\tclick: {\n\n\t\t\t// Utilize native event to ensure correct state for checkable inputs\n\t\t\tsetup: function( data ) {\n\n\t\t\t\t// For mutual compressibility with _default, replace `this` access with a local var.\n\t\t\t\t// `|| data` is dead code meant only to preserve the variable through minification.\n\t\t\t\tvar el = this || data;\n\n\t\t\t\t// Claim the first handler\n\t\t\t\tif ( rcheckableType.test( el.type ) &&\n\t\t\t\t\tel.click && nodeName( el, \"input\" ) ) {\n\n\t\t\t\t\t// dataPriv.set( el, \"click\", ... )\n\t\t\t\t\tleverageNative( el, \"click\", true );\n\t\t\t\t}\n\n\t\t\t\t// Return false to allow normal processing in the caller\n\t\t\t\treturn false;\n\t\t\t},\n\t\t\ttrigger: function( data ) {\n\n\t\t\t\t// For mutual compressibility with _default, replace `this` access with a local var.\n\t\t\t\t// `|| data` is dead code meant only to preserve the variable through minification.\n\t\t\t\tvar el = this || data;\n\n\t\t\t\t// Force setup before triggering a click\n\t\t\t\tif ( rcheckableType.test( el.type ) &&\n\t\t\t\t\tel.click && nodeName( el, \"input\" ) ) {\n\n\t\t\t\t\tleverageNative( el, \"click\" );\n\t\t\t\t}\n\n\t\t\t\t// Return non-false to allow normal event-path propagation\n\t\t\t\treturn true;\n\t\t\t},\n\n\t\t\t// For cross-browser consistency, suppress native .click() on links\n\t\t\t// Also prevent it if we're currently inside a leveraged native-event stack\n\t\t\t_default: function( event ) {\n\t\t\t\tvar target = event.target;\n\t\t\t\treturn rcheckableType.test( target.type ) &&\n\t\t\t\t\ttarget.click && nodeName( target, \"input\" ) &&\n\t\t\t\t\tdataPriv.get( target, \"click\" ) ||\n\t\t\t\t\tnodeName( target, \"a\" );\n\t\t\t}\n\t\t},\n\n\t\tbeforeunload: {\n\t\t\tpostDispatch: function( event ) {\n\n\t\t\t\t// Support: Firefox 20+\n\t\t\t\t// Firefox doesn't alert if the returnValue field is not set.\n\t\t\t\tif ( event.result !== undefined && event.originalEvent ) {\n\t\t\t\t\tevent.originalEvent.returnValue = event.result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\n// Ensure the presence of an event listener that handles manually-triggered\n// synthetic events by interrupting progress until reinvoked in response to\n// *native* events that it fires directly, ensuring that state changes have\n// already occurred before other listeners are invoked.\nfunction leverageNative( el, type, isSetup ) {\n\n\t// Missing `isSetup` indicates a trigger call, which must force setup through jQuery.event.add\n\tif ( !isSetup ) {\n\t\tif ( dataPriv.get( el, type ) === undefined ) {\n\t\t\tjQuery.event.add( el, type, returnTrue );\n\t\t}\n\t\treturn;\n\t}\n\n\t// Register the controller as a special universal handler for all event namespaces\n\tdataPriv.set( el, type, false );\n\tjQuery.event.add( el, type, {\n\t\tnamespace: false,\n\t\thandler: function( event ) {\n\t\t\tvar result,\n\t\t\t\tsaved = dataPriv.get( this, type );\n\n\t\t\tif ( ( event.isTrigger & 1 ) && this[ type ] ) {\n\n\t\t\t\t// Interrupt processing of the outer synthetic .trigger()ed event\n\t\t\t\tif ( !saved ) {\n\n\t\t\t\t\t// Store arguments for use when handling the inner native event\n\t\t\t\t\t// There will always be at least one argument (an event object), so this array\n\t\t\t\t\t// will not be confused with a leftover capture object.\n\t\t\t\t\tsaved = slice.call( arguments );\n\t\t\t\t\tdataPriv.set( this, type, saved );\n\n\t\t\t\t\t// Trigger the native event and capture its result\n\t\t\t\t\tthis[ type ]();\n\t\t\t\t\tresult = dataPriv.get( this, type );\n\t\t\t\t\tdataPriv.set( this, type, false );\n\n\t\t\t\t\tif ( saved !== result ) {\n\n\t\t\t\t\t\t// Cancel the outer synthetic event\n\t\t\t\t\t\tevent.stopImmediatePropagation();\n\t\t\t\t\t\tevent.preventDefault();\n\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\n\t\t\t\t// If this is an inner synthetic event for an event with a bubbling surrogate\n\t\t\t\t// (focus or blur), assume that the surrogate already propagated from triggering\n\t\t\t\t// the native event and prevent that from happening again here.\n\t\t\t\t// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the\n\t\t\t\t// bubbling surrogate propagates *after* the non-bubbling base), but that seems\n\t\t\t\t// less bad than duplication.\n\t\t\t\t} else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\n\t\t\t// If this is a native event triggered above, everything is now in order\n\t\t\t// Fire an inner synthetic event with the original arguments\n\t\t\t} else if ( saved ) {\n\n\t\t\t\t// ...and capture the result\n\t\t\t\tdataPriv.set( this, type, jQuery.event.trigger(\n\t\t\t\t\tsaved[ 0 ],\n\t\t\t\t\tsaved.slice( 1 ),\n\t\t\t\t\tthis\n\t\t\t\t) );\n\n\t\t\t\t// Abort handling of the native event by all jQuery handlers while allowing\n\t\t\t\t// native handlers on the same element to run. On target, this is achieved\n\t\t\t\t// by stopping immediate propagation just on the jQuery event. However,\n\t\t\t\t// the native event is re-wrapped by a jQuery one on each level of the\n\t\t\t\t// propagation so the only way to stop it for jQuery is to stop it for\n\t\t\t\t// everyone via native `stopPropagation()`. This is not a problem for\n\t\t\t\t// focus/blur which don't bubble, but it does also stop click on checkboxes\n\t\t\t\t// and radios. We accept this limitation.\n\t\t\t\tevent.stopPropagation();\n\t\t\t\tevent.isImmediatePropagationStopped = returnTrue;\n\t\t\t}\n\t\t}\n\t} );\n}\n\njQuery.removeEvent = function( elem, type, handle ) {\n\n\t// This \"if\" is needed for plain objects\n\tif ( elem.removeEventListener ) {\n\t\telem.removeEventListener( type, handle );\n\t}\n};\n\njQuery.Event = function( src, props ) {\n\n\t// Allow instantiation without the 'new' keyword\n\tif ( !( this instanceof jQuery.Event ) ) {\n\t\treturn new jQuery.Event( src, props );\n\t}\n\n\t// Event object\n\tif ( src && src.type ) {\n\t\tthis.originalEvent = src;\n\t\tthis.type = src.type;\n\n\t\t// Events bubbling up the document may have been marked as prevented\n\t\t// by a handler lower down the tree; reflect the correct value.\n\t\tthis.isDefaultPrevented = src.defaultPrevented ||\n\t\t\t\tsrc.defaultPrevented === undefined &&\n\n\t\t\t\t// Support: Android <=2.3 only\n\t\t\t\tsrc.returnValue === false ?\n\t\t\treturnTrue :\n\t\t\treturnFalse;\n\n\t\t// Create target properties\n\t\t// Support: Safari <=6 - 7 only\n\t\t// Target should not be a text node (trac-504, trac-13143)\n\t\tthis.target = ( src.target && src.target.nodeType === 3 ) ?\n\t\t\tsrc.target.parentNode :\n\t\t\tsrc.target;\n\n\t\tthis.currentTarget = src.currentTarget;\n\t\tthis.relatedTarget = src.relatedTarget;\n\n\t// Event type\n\t} else {\n\t\tthis.type = src;\n\t}\n\n\t// Put explicitly provided properties onto the event object\n\tif ( props ) {\n\t\tjQuery.extend( this, props );\n\t}\n\n\t// Create a timestamp if incoming event doesn't have one\n\tthis.timeStamp = src && src.timeStamp || Date.now();\n\n\t// Mark it as fixed\n\tthis[ jQuery.expando ] = true;\n};\n\n// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\n// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\njQuery.Event.prototype = {\n\tconstructor: jQuery.Event,\n\tisDefaultPrevented: returnFalse,\n\tisPropagationStopped: returnFalse,\n\tisImmediatePropagationStopped: returnFalse,\n\tisSimulated: false,\n\n\tpreventDefault: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isDefaultPrevented = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.preventDefault();\n\t\t}\n\t},\n\tstopPropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isPropagationStopped = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.stopPropagation();\n\t\t}\n\t},\n\tstopImmediatePropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isImmediatePropagationStopped = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.stopImmediatePropagation();\n\t\t}\n\n\t\tthis.stopPropagation();\n\t}\n};\n\n// Includes all common event props including KeyEvent and MouseEvent specific props\njQuery.each( {\n\taltKey: true,\n\tbubbles: true,\n\tcancelable: true,\n\tchangedTouches: true,\n\tctrlKey: true,\n\tdetail: true,\n\teventPhase: true,\n\tmetaKey: true,\n\tpageX: true,\n\tpageY: true,\n\tshiftKey: true,\n\tview: true,\n\t\"char\": true,\n\tcode: true,\n\tcharCode: true,\n\tkey: true,\n\tkeyCode: true,\n\tbutton: true,\n\tbuttons: true,\n\tclientX: true,\n\tclientY: true,\n\toffsetX: true,\n\toffsetY: true,\n\tpointerId: true,\n\tpointerType: true,\n\tscreenX: true,\n\tscreenY: true,\n\ttargetTouches: true,\n\ttoElement: true,\n\ttouches: true,\n\twhich: true\n}, jQuery.event.addProp );\n\njQuery.each( { focus: \"focusin\", blur: \"focusout\" }, function( type, delegateType ) {\n\n\tfunction focusMappedHandler( nativeEvent ) {\n\t\tif ( document.documentMode ) {\n\n\t\t\t// Support: IE 11+\n\t\t\t// Attach a single focusin/focusout handler on the document while someone wants\n\t\t\t// focus/blur. This is because the former are synchronous in IE while the latter\n\t\t\t// are async. In other browsers, all those handlers are invoked synchronously.\n\n\t\t\t// `handle` from private data would already wrap the event, but we need\n\t\t\t// to change the `type` here.\n\t\t\tvar handle = dataPriv.get( this, \"handle\" ),\n\t\t\t\tevent = jQuery.event.fix( nativeEvent );\n\t\t\tevent.type = nativeEvent.type === \"focusin\" ? \"focus\" : \"blur\";\n\t\t\tevent.isSimulated = true;\n\n\t\t\t// First, handle focusin/focusout\n\t\t\thandle( nativeEvent );\n\n\t\t\t// ...then, handle focus/blur\n\t\t\t//\n\t\t\t// focus/blur don't bubble while focusin/focusout do; simulate the former by only\n\t\t\t// invoking the handler at the lower level.\n\t\t\tif ( event.target === event.currentTarget ) {\n\n\t\t\t\t// The setup part calls `leverageNative`, which, in turn, calls\n\t\t\t\t// `jQuery.event.add`, so event handle will already have been set\n\t\t\t\t// by this point.\n\t\t\t\thandle( event );\n\t\t\t}\n\t\t} else {\n\n\t\t\t// For non-IE browsers, attach a single capturing handler on the document\n\t\t\t// while someone wants focusin/focusout.\n\t\t\tjQuery.event.simulate( delegateType, nativeEvent.target,\n\t\t\t\tjQuery.event.fix( nativeEvent ) );\n\t\t}\n\t}\n\n\tjQuery.event.special[ type ] = {\n\n\t\t// Utilize native event if possible so blur/focus sequence is correct\n\t\tsetup: function() {\n\n\t\t\tvar attaches;\n\n\t\t\t// Claim the first handler\n\t\t\t// dataPriv.set( this, \"focus\", ... )\n\t\t\t// dataPriv.set( this, \"blur\", ... )\n\t\t\tleverageNative( this, type, true );\n\n\t\t\tif ( document.documentMode ) {\n\n\t\t\t\t// Support: IE 9 - 11+\n\t\t\t\t// We use the same native handler for focusin & focus (and focusout & blur)\n\t\t\t\t// so we need to coordinate setup & teardown parts between those events.\n\t\t\t\t// Use `delegateType` as the key as `type` is already used by `leverageNative`.\n\t\t\t\tattaches = dataPriv.get( this, delegateType );\n\t\t\t\tif ( !attaches ) {\n\t\t\t\t\tthis.addEventListener( delegateType, focusMappedHandler );\n\t\t\t\t}\n\t\t\t\tdataPriv.set( this, delegateType, ( attaches || 0 ) + 1 );\n\t\t\t} else {\n\n\t\t\t\t// Return false to allow normal processing in the caller\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\t\ttrigger: function() {\n\n\t\t\t// Force setup before trigger\n\t\t\tleverageNative( this, type );\n\n\t\t\t// Return non-false to allow normal event-path propagation\n\t\t\treturn true;\n\t\t},\n\n\t\tteardown: function() {\n\t\t\tvar attaches;\n\n\t\t\tif ( document.documentMode ) {\n\t\t\t\tattaches = dataPriv.get( this, delegateType ) - 1;\n\t\t\t\tif ( !attaches ) {\n\t\t\t\t\tthis.removeEventListener( delegateType, focusMappedHandler );\n\t\t\t\t\tdataPriv.remove( this, delegateType );\n\t\t\t\t} else {\n\t\t\t\t\tdataPriv.set( this, delegateType, attaches );\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\t// Return false to indicate standard teardown should be applied\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\n\t\t// Suppress native focus or blur if we're currently inside\n\t\t// a leveraged native-event stack\n\t\t_default: function( event ) {\n\t\t\treturn dataPriv.get( event.target, type );\n\t\t},\n\n\t\tdelegateType: delegateType\n\t};\n\n\t// Support: Firefox <=44\n\t// Firefox doesn't have focus(in | out) events\n\t// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787\n\t//\n\t// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1\n\t// focus(in | out) events fire after focus & blur events,\n\t// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order\n\t// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857\n\t//\n\t// Support: IE 9 - 11+\n\t// To preserve relative focusin/focus & focusout/blur event order guaranteed on the 3.x branch,\n\t// attach a single handler for both events in IE.\n\tjQuery.event.special[ delegateType ] = {\n\t\tsetup: function() {\n\n\t\t\t// Handle: regular nodes (via `this.ownerDocument`), window\n\t\t\t// (via `this.document`) & document (via `this`).\n\t\t\tvar doc = this.ownerDocument || this.document || this,\n\t\t\t\tdataHolder = document.documentMode ? this : doc,\n\t\t\t\tattaches = dataPriv.get( dataHolder, delegateType );\n\n\t\t\t// Support: IE 9 - 11+\n\t\t\t// We use the same native handler for focusin & focus (and focusout & blur)\n\t\t\t// so we need to coordinate setup & teardown parts between those events.\n\t\t\t// Use `delegateType` as the key as `type` is already used by `leverageNative`.\n\t\t\tif ( !attaches ) {\n\t\t\t\tif ( document.documentMode ) {\n\t\t\t\t\tthis.addEventListener( delegateType, focusMappedHandler );\n\t\t\t\t} else {\n\t\t\t\t\tdoc.addEventListener( type, focusMappedHandler, true );\n\t\t\t\t}\n\t\t\t}\n\t\t\tdataPriv.set( dataHolder, delegateType, ( attaches || 0 ) + 1 );\n\t\t},\n\t\tteardown: function() {\n\t\t\tvar doc = this.ownerDocument || this.document || this,\n\t\t\t\tdataHolder = document.documentMode ? this : doc,\n\t\t\t\tattaches = dataPriv.get( dataHolder, delegateType ) - 1;\n\n\t\t\tif ( !attaches ) {\n\t\t\t\tif ( document.documentMode ) {\n\t\t\t\t\tthis.removeEventListener( delegateType, focusMappedHandler );\n\t\t\t\t} else {\n\t\t\t\t\tdoc.removeEventListener( type, focusMappedHandler, true );\n\t\t\t\t}\n\t\t\t\tdataPriv.remove( dataHolder, delegateType );\n\t\t\t} else {\n\t\t\t\tdataPriv.set( dataHolder, delegateType, attaches );\n\t\t\t}\n\t\t}\n\t};\n} );\n\n// Create mouseenter/leave events using mouseover/out and event-time checks\n// so that event delegation works in jQuery.\n// Do the same for pointerenter/pointerleave and pointerover/pointerout\n//\n// Support: Safari 7 only\n// Safari sends mouseenter too often; see:\n// https://bugs.chromium.org/p/chromium/issues/detail?id=470258\n// for the description of the bug (it existed in older Chrome versions as well).\njQuery.each( {\n\tmouseenter: \"mouseover\",\n\tmouseleave: \"mouseout\",\n\tpointerenter: \"pointerover\",\n\tpointerleave: \"pointerout\"\n}, function( orig, fix ) {\n\tjQuery.event.special[ orig ] = {\n\t\tdelegateType: fix,\n\t\tbindType: fix,\n\n\t\thandle: function( event ) {\n\t\t\tvar ret,\n\t\t\t\ttarget = this,\n\t\t\t\trelated = event.relatedTarget,\n\t\t\t\thandleObj = event.handleObj;\n\n\t\t\t// For mouseenter/leave call the handler if related is outside the target.\n\t\t\t// NB: No relatedTarget if the mouse left/entered the browser window\n\t\t\tif ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {\n\t\t\t\tevent.type = handleObj.origType;\n\t\t\t\tret = handleObj.handler.apply( this, arguments );\n\t\t\t\tevent.type = fix;\n\t\t\t}\n\t\t\treturn ret;\n\t\t}\n\t};\n} );\n\njQuery.fn.extend( {\n\n\ton: function( types, selector, data, fn ) {\n\t\treturn on( this, types, selector, data, fn );\n\t},\n\tone: function( types, selector, data, fn ) {\n\t\treturn on( this, types, selector, data, fn, 1 );\n\t},\n\toff: function( types, selector, fn ) {\n\t\tvar handleObj, type;\n\t\tif ( types && types.preventDefault && types.handleObj ) {\n\n\t\t\t// ( event )  dispatched jQuery.Event\n\t\t\thandleObj = types.handleObj;\n\t\t\tjQuery( types.delegateTarget ).off(\n\t\t\t\thandleObj.namespace ?\n\t\t\t\t\thandleObj.origType + \".\" + handleObj.namespace :\n\t\t\t\t\thandleObj.origType,\n\t\t\t\thandleObj.selector,\n\t\t\t\thandleObj.handler\n\t\t\t);\n\t\t\treturn this;\n\t\t}\n\t\tif ( typeof types === \"object\" ) {\n\n\t\t\t// ( types-object [, selector] )\n\t\t\tfor ( type in types ) {\n\t\t\t\tthis.off( type, selector, types[ type ] );\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\tif ( selector === false || typeof selector === \"function\" ) {\n\n\t\t\t// ( types [, fn] )\n\t\t\tfn = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tif ( fn === false ) {\n\t\t\tfn = returnFalse;\n\t\t}\n\t\treturn this.each( function() {\n\t\t\tjQuery.event.remove( this, types, fn, selector );\n\t\t} );\n\t}\n} );\n\n\nvar\n\n\t// Support: IE <=10 - 11, Edge 12 - 13 only\n\t// In IE/Edge using regex groups here causes severe slowdowns.\n\t// See https://connect.microsoft.com/IE/feedback/details/1736512/\n\trnoInnerhtml = /<script|<style|<link/i,\n\n\t// checked=\"checked\" or checked\n\trchecked = /checked\\s*(?:[^=]|=\\s*.checked.)/i,\n\n\trcleanScript = /^\\s*<!\\[CDATA\\[|\\]\\]>\\s*$/g;\n\n// Prefer a tbody over its parent table for containing new rows\nfunction manipulationTarget( elem, content ) {\n\tif ( nodeName( elem, \"table\" ) &&\n\t\tnodeName( content.nodeType !== 11 ? content : content.firstChild, \"tr\" ) ) {\n\n\t\treturn jQuery( elem ).children( \"tbody\" )[ 0 ] || elem;\n\t}\n\n\treturn elem;\n}\n\n// Replace/restore the type attribute of script elements for safe DOM manipulation\nfunction disableScript( elem ) {\n\telem.type = ( elem.getAttribute( \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}\nfunction restoreScript( elem ) {\n\tif ( ( elem.type || \"\" ).slice( 0, 5 ) === \"true/\" ) {\n\t\telem.type = elem.type.slice( 5 );\n\t} else {\n\t\telem.removeAttribute( \"type\" );\n\t}\n\n\treturn elem;\n}\n\nfunction cloneCopyEvent( src, dest ) {\n\tvar i, l, type, pdataOld, udataOld, udataCur, events;\n\n\tif ( dest.nodeType !== 1 ) {\n\t\treturn;\n\t}\n\n\t// 1. Copy private data: events, handlers, etc.\n\tif ( dataPriv.hasData( src ) ) {\n\t\tpdataOld = dataPriv.get( src );\n\t\tevents = pdataOld.events;\n\n\t\tif ( events ) {\n\t\t\tdataPriv.remove( dest, \"handle events\" );\n\n\t\t\tfor ( type in events ) {\n\t\t\t\tfor ( i = 0, l = events[ type ].length; i < l; i++ ) {\n\t\t\t\t\tjQuery.event.add( dest, type, events[ type ][ i ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// 2. Copy user data\n\tif ( dataUser.hasData( src ) ) {\n\t\tudataOld = dataUser.access( src );\n\t\tudataCur = jQuery.extend( {}, udataOld );\n\n\t\tdataUser.set( dest, udataCur );\n\t}\n}\n\n// Fix IE bugs, see support tests\nfunction fixInput( src, dest ) {\n\tvar nodeName = dest.nodeName.toLowerCase();\n\n\t// Fails to persist the checked state of a cloned checkbox or radio button.\n\tif ( nodeName === \"input\" && rcheckableType.test( src.type ) ) {\n\t\tdest.checked = src.checked;\n\n\t// Fails to return the selected option to the default selected state when cloning options\n\t} else if ( nodeName === \"input\" || nodeName === \"textarea\" ) {\n\t\tdest.defaultValue = src.defaultValue;\n\t}\n}\n\nfunction domManip( collection, args, callback, ignored ) {\n\n\t// Flatten any nested arrays\n\targs = flat( args );\n\n\tvar fragment, first, scripts, hasScripts, node, doc,\n\t\ti = 0,\n\t\tl = collection.length,\n\t\tiNoClone = l - 1,\n\t\tvalue = args[ 0 ],\n\t\tvalueIsFunction = isFunction( value );\n\n\t// We can't cloneNode fragments that contain checked, in WebKit\n\tif ( valueIsFunction ||\n\t\t\t( l > 1 && typeof value === \"string\" &&\n\t\t\t\t!support.checkClone && rchecked.test( value ) ) ) {\n\t\treturn collection.each( function( index ) {\n\t\t\tvar self = collection.eq( index );\n\t\t\tif ( valueIsFunction ) {\n\t\t\t\targs[ 0 ] = value.call( this, index, self.html() );\n\t\t\t}\n\t\t\tdomManip( self, args, callback, ignored );\n\t\t} );\n\t}\n\n\tif ( l ) {\n\t\tfragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );\n\t\tfirst = fragment.firstChild;\n\n\t\tif ( fragment.childNodes.length === 1 ) {\n\t\t\tfragment = first;\n\t\t}\n\n\t\t// Require either new content or an interest in ignored elements to invoke the callback\n\t\tif ( first || ignored ) {\n\t\t\tscripts = jQuery.map( getAll( fragment, \"script\" ), disableScript );\n\t\t\thasScripts = scripts.length;\n\n\t\t\t// Use the original fragment for the last item\n\t\t\t// instead of the first because it can end up\n\t\t\t// being emptied incorrectly in certain situations (trac-8070).\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tnode = fragment;\n\n\t\t\t\tif ( i !== iNoClone ) {\n\t\t\t\t\tnode = jQuery.clone( node, true, true );\n\n\t\t\t\t\t// Keep references to cloned scripts for later restoration\n\t\t\t\t\tif ( hasScripts ) {\n\n\t\t\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\t\t\tjQuery.merge( scripts, getAll( node, \"script\" ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcallback.call( collection[ i ], node, i );\n\t\t\t}\n\n\t\t\tif ( hasScripts ) {\n\t\t\t\tdoc = scripts[ scripts.length - 1 ].ownerDocument;\n\n\t\t\t\t// Re-enable scripts\n\t\t\t\tjQuery.map( scripts, restoreScript );\n\n\t\t\t\t// Evaluate executable scripts on first document insertion\n\t\t\t\tfor ( i = 0; i < hasScripts; i++ ) {\n\t\t\t\t\tnode = scripts[ i ];\n\t\t\t\t\tif ( rscriptType.test( node.type || \"\" ) &&\n\t\t\t\t\t\t!dataPriv.access( node, \"globalEval\" ) &&\n\t\t\t\t\t\tjQuery.contains( doc, node ) ) {\n\n\t\t\t\t\t\tif ( node.src && ( node.type || \"\" ).toLowerCase()  !== \"module\" ) {\n\n\t\t\t\t\t\t\t// Optional AJAX dependency, but won't run scripts if not present\n\t\t\t\t\t\t\tif ( jQuery._evalUrl && !node.noModule ) {\n\t\t\t\t\t\t\t\tjQuery._evalUrl( node.src, {\n\t\t\t\t\t\t\t\t\tnonce: node.nonce || node.getAttribute( \"nonce\" )\n\t\t\t\t\t\t\t\t}, doc );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Unwrap a CDATA section containing script contents. This shouldn't be\n\t\t\t\t\t\t\t// needed as in XML documents they're already not visible when\n\t\t\t\t\t\t\t// inspecting element contents and in HTML documents they have no\n\t\t\t\t\t\t\t// meaning but we're preserving that logic for backwards compatibility.\n\t\t\t\t\t\t\t// This will be removed completely in 4.0. See gh-4904.\n\t\t\t\t\t\t\tDOMEval( node.textContent.replace( rcleanScript, \"\" ), node, doc );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn collection;\n}\n\nfunction remove( elem, selector, keepData ) {\n\tvar node,\n\t\tnodes = selector ? jQuery.filter( selector, elem ) : elem,\n\t\ti = 0;\n\n\tfor ( ; ( node = nodes[ i ] ) != null; i++ ) {\n\t\tif ( !keepData && node.nodeType === 1 ) {\n\t\t\tjQuery.cleanData( getAll( node ) );\n\t\t}\n\n\t\tif ( node.parentNode ) {\n\t\t\tif ( keepData && isAttached( node ) ) {\n\t\t\t\tsetGlobalEval( getAll( node, \"script\" ) );\n\t\t\t}\n\t\t\tnode.parentNode.removeChild( node );\n\t\t}\n\t}\n\n\treturn elem;\n}\n\njQuery.extend( {\n\thtmlPrefilter: function( html ) {\n\t\treturn html;\n\t},\n\n\tclone: function( elem, dataAndEvents, deepDataAndEvents ) {\n\t\tvar i, l, srcElements, destElements,\n\t\t\tclone = elem.cloneNode( true ),\n\t\t\tinPage = isAttached( elem );\n\n\t\t// Fix IE cloning issues\n\t\tif ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&\n\t\t\t\t!jQuery.isXMLDoc( elem ) ) {\n\n\t\t\t// We eschew jQuery#find here for performance reasons:\n\t\t\t// https://jsperf.com/getall-vs-sizzle/2\n\t\t\tdestElements = getAll( clone );\n\t\t\tsrcElements = getAll( elem );\n\n\t\t\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\n\t\t\t\tfixInput( srcElements[ i ], destElements[ i ] );\n\t\t\t}\n\t\t}\n\n\t\t// Copy the events from the original to the clone\n\t\tif ( dataAndEvents ) {\n\t\t\tif ( deepDataAndEvents ) {\n\t\t\t\tsrcElements = srcElements || getAll( elem );\n\t\t\t\tdestElements = destElements || getAll( clone );\n\n\t\t\t\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\n\t\t\t\t\tcloneCopyEvent( srcElements[ i ], destElements[ i ] );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcloneCopyEvent( elem, clone );\n\t\t\t}\n\t\t}\n\n\t\t// Preserve script evaluation history\n\t\tdestElements = getAll( clone, \"script\" );\n\t\tif ( destElements.length > 0 ) {\n\t\t\tsetGlobalEval( destElements, !inPage && getAll( elem, \"script\" ) );\n\t\t}\n\n\t\t// Return the cloned set\n\t\treturn clone;\n\t},\n\n\tcleanData: function( elems ) {\n\t\tvar data, elem, type,\n\t\t\tspecial = jQuery.event.special,\n\t\t\ti = 0;\n\n\t\tfor ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {\n\t\t\tif ( acceptData( elem ) ) {\n\t\t\t\tif ( ( data = elem[ dataPriv.expando ] ) ) {\n\t\t\t\t\tif ( data.events ) {\n\t\t\t\t\t\tfor ( type in data.events ) {\n\t\t\t\t\t\t\tif ( special[ type ] ) {\n\t\t\t\t\t\t\t\tjQuery.event.remove( elem, type );\n\n\t\t\t\t\t\t\t// This is a shortcut to avoid jQuery.event.remove's overhead\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tjQuery.removeEvent( elem, type, data.handle );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Support: Chrome <=35 - 45+\n\t\t\t\t\t// Assign undefined instead of using delete, see Data#remove\n\t\t\t\t\telem[ dataPriv.expando ] = undefined;\n\t\t\t\t}\n\t\t\t\tif ( elem[ dataUser.expando ] ) {\n\n\t\t\t\t\t// Support: Chrome <=35 - 45+\n\t\t\t\t\t// Assign undefined instead of using delete, see Data#remove\n\t\t\t\t\telem[ dataUser.expando ] = undefined;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n} );\n\njQuery.fn.extend( {\n\tdetach: function( selector ) {\n\t\treturn remove( this, selector, true );\n\t},\n\n\tremove: function( selector ) {\n\t\treturn remove( this, selector );\n\t},\n\n\ttext: function( value ) {\n\t\treturn access( this, function( value ) {\n\t\t\treturn value === undefined ?\n\t\t\t\tjQuery.text( this ) :\n\t\t\t\tthis.empty().each( function() {\n\t\t\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\t\t\tthis.textContent = value;\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t}, null, value, arguments.length );\n\t},\n\n\tappend: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\tvar target = manipulationTarget( this, elem );\n\t\t\t\ttarget.appendChild( elem );\n\t\t\t}\n\t\t} );\n\t},\n\n\tprepend: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\tvar target = manipulationTarget( this, elem );\n\t\t\t\ttarget.insertBefore( elem, target.firstChild );\n\t\t\t}\n\t\t} );\n\t},\n\n\tbefore: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.parentNode ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this );\n\t\t\t}\n\t\t} );\n\t},\n\n\tafter: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.parentNode ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this.nextSibling );\n\t\t\t}\n\t\t} );\n\t},\n\n\tempty: function() {\n\t\tvar elem,\n\t\t\ti = 0;\n\n\t\tfor ( ; ( elem = this[ i ] ) != null; i++ ) {\n\t\t\tif ( elem.nodeType === 1 ) {\n\n\t\t\t\t// Prevent memory leaks\n\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\n\n\t\t\t\t// Remove any remaining nodes\n\t\t\t\telem.textContent = \"\";\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tclone: function( dataAndEvents, deepDataAndEvents ) {\n\t\tdataAndEvents = dataAndEvents == null ? false : dataAndEvents;\n\t\tdeepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;\n\n\t\treturn this.map( function() {\n\t\t\treturn jQuery.clone( this, dataAndEvents, deepDataAndEvents );\n\t\t} );\n\t},\n\n\thtml: function( value ) {\n\t\treturn access( this, function( value ) {\n\t\t\tvar elem = this[ 0 ] || {},\n\t\t\t\ti = 0,\n\t\t\t\tl = this.length;\n\n\t\t\tif ( value === undefined && elem.nodeType === 1 ) {\n\t\t\t\treturn elem.innerHTML;\n\t\t\t}\n\n\t\t\t// See if we can take a shortcut and just use innerHTML\n\t\t\tif ( typeof value === \"string\" && !rnoInnerhtml.test( value ) &&\n\t\t\t\t!wrapMap[ ( rtagName.exec( value ) || [ \"\", \"\" ] )[ 1 ].toLowerCase() ] ) {\n\n\t\t\t\tvalue = jQuery.htmlPrefilter( value );\n\n\t\t\t\ttry {\n\t\t\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\t\t\telem = this[ i ] || {};\n\n\t\t\t\t\t\t// Remove element nodes and prevent memory leaks\n\t\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\n\t\t\t\t\t\t\telem.innerHTML = value;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\telem = 0;\n\n\t\t\t\t// If using innerHTML throws an exception, use the fallback method\n\t\t\t\t} catch ( e ) {}\n\t\t\t}\n\n\t\t\tif ( elem ) {\n\t\t\t\tthis.empty().append( value );\n\t\t\t}\n\t\t}, null, value, arguments.length );\n\t},\n\n\treplaceWith: function() {\n\t\tvar ignored = [];\n\n\t\t// Make the changes, replacing each non-ignored context element with the new content\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tvar parent = this.parentNode;\n\n\t\t\tif ( jQuery.inArray( this, ignored ) < 0 ) {\n\t\t\t\tjQuery.cleanData( getAll( this ) );\n\t\t\t\tif ( parent ) {\n\t\t\t\t\tparent.replaceChild( elem, this );\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Force callback invocation\n\t\t}, ignored );\n\t}\n} );\n\njQuery.each( {\n\tappendTo: \"append\",\n\tprependTo: \"prepend\",\n\tinsertBefore: \"before\",\n\tinsertAfter: \"after\",\n\treplaceAll: \"replaceWith\"\n}, function( name, original ) {\n\tjQuery.fn[ name ] = function( selector ) {\n\t\tvar elems,\n\t\t\tret = [],\n\t\t\tinsert = jQuery( selector ),\n\t\t\tlast = insert.length - 1,\n\t\t\ti = 0;\n\n\t\tfor ( ; i <= last; i++ ) {\n\t\t\telems = i === last ? this : this.clone( true );\n\t\t\tjQuery( insert[ i ] )[ original ]( elems );\n\n\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t// .get() because push.apply(_, arraylike) throws on ancient WebKit\n\t\t\tpush.apply( ret, elems.get() );\n\t\t}\n\n\t\treturn this.pushStack( ret );\n\t};\n} );\nvar rnumnonpx = new RegExp( \"^(\" + pnum + \")(?!px)[a-z%]+$\", \"i\" );\n\nvar rcustomProp = /^--/;\n\n\nvar getStyles = function( elem ) {\n\n\t\t// Support: IE <=11 only, Firefox <=30 (trac-15098, trac-14150)\n\t\t// IE throws on elements created in popups\n\t\t// FF meanwhile throws on frame elements through \"defaultView.getComputedStyle\"\n\t\tvar view = elem.ownerDocument.defaultView;\n\n\t\tif ( !view || !view.opener ) {\n\t\t\tview = window;\n\t\t}\n\n\t\treturn view.getComputedStyle( elem );\n\t};\n\nvar swap = function( elem, options, callback ) {\n\tvar ret, name,\n\t\told = {};\n\n\t// Remember the old values, and insert the new ones\n\tfor ( name in options ) {\n\t\told[ name ] = elem.style[ name ];\n\t\telem.style[ name ] = options[ name ];\n\t}\n\n\tret = callback.call( elem );\n\n\t// Revert the old values\n\tfor ( name in options ) {\n\t\telem.style[ name ] = old[ name ];\n\t}\n\n\treturn ret;\n};\n\n\nvar rboxStyle = new RegExp( cssExpand.join( \"|\" ), \"i\" );\n\n\n\n( function() {\n\n\t// Executing both pixelPosition & boxSizingReliable tests require only one layout\n\t// so they're executed at the same time to save the second computation.\n\tfunction computeStyleTests() {\n\n\t\t// This is a singleton, we need to execute it only once\n\t\tif ( !div ) {\n\t\t\treturn;\n\t\t}\n\n\t\tcontainer.style.cssText = \"position:absolute;left:-11111px;width:60px;\" +\n\t\t\t\"margin-top:1px;padding:0;border:0\";\n\t\tdiv.style.cssText =\n\t\t\t\"position:relative;display:block;box-sizing:border-box;overflow:scroll;\" +\n\t\t\t\"margin:auto;border:1px;padding:1px;\" +\n\t\t\t\"width:60%;top:1%\";\n\t\tdocumentElement.appendChild( container ).appendChild( div );\n\n\t\tvar divStyle = window.getComputedStyle( div );\n\t\tpixelPositionVal = divStyle.top !== \"1%\";\n\n\t\t// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44\n\t\treliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12;\n\n\t\t// Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3\n\t\t// Some styles come back with percentage values, even though they shouldn't\n\t\tdiv.style.right = \"60%\";\n\t\tpixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36;\n\n\t\t// Support: IE 9 - 11 only\n\t\t// Detect misreporting of content dimensions for box-sizing:border-box elements\n\t\tboxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36;\n\n\t\t// Support: IE 9 only\n\t\t// Detect overflow:scroll screwiness (gh-3699)\n\t\t// Support: Chrome <=64\n\t\t// Don't get tricked when zoom affects offsetWidth (gh-4029)\n\t\tdiv.style.position = \"absolute\";\n\t\tscrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12;\n\n\t\tdocumentElement.removeChild( container );\n\n\t\t// Nullify the div so it wouldn't be stored in the memory and\n\t\t// it will also be a sign that checks already performed\n\t\tdiv = null;\n\t}\n\n\tfunction roundPixelMeasures( measure ) {\n\t\treturn Math.round( parseFloat( measure ) );\n\t}\n\n\tvar pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal,\n\t\treliableTrDimensionsVal, reliableMarginLeftVal,\n\t\tcontainer = document.createElement( \"div\" ),\n\t\tdiv = document.createElement( \"div\" );\n\n\t// Finish early in limited (non-browser) environments\n\tif ( !div.style ) {\n\t\treturn;\n\t}\n\n\t// Support: IE <=9 - 11 only\n\t// Style of cloned element affects source element cloned (trac-8908)\n\tdiv.style.backgroundClip = \"content-box\";\n\tdiv.cloneNode( true ).style.backgroundClip = \"\";\n\tsupport.clearCloneStyle = div.style.backgroundClip === \"content-box\";\n\n\tjQuery.extend( support, {\n\t\tboxSizingReliable: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn boxSizingReliableVal;\n\t\t},\n\t\tpixelBoxStyles: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn pixelBoxStylesVal;\n\t\t},\n\t\tpixelPosition: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn pixelPositionVal;\n\t\t},\n\t\treliableMarginLeft: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn reliableMarginLeftVal;\n\t\t},\n\t\tscrollboxSize: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn scrollboxSizeVal;\n\t\t},\n\n\t\t// Support: IE 9 - 11+, Edge 15 - 18+\n\t\t// IE/Edge misreport `getComputedStyle` of table rows with width/height\n\t\t// set in CSS while `offset*` properties report correct values.\n\t\t// Behavior in IE 9 is more subtle than in newer versions & it passes\n\t\t// some versions of this test; make sure not to make it pass there!\n\t\t//\n\t\t// Support: Firefox 70+\n\t\t// Only Firefox includes border widths\n\t\t// in computed dimensions. (gh-4529)\n\t\treliableTrDimensions: function() {\n\t\t\tvar table, tr, trChild, trStyle;\n\t\t\tif ( reliableTrDimensionsVal == null ) {\n\t\t\t\ttable = document.createElement( \"table\" );\n\t\t\t\ttr = document.createElement( \"tr\" );\n\t\t\t\ttrChild = document.createElement( \"div\" );\n\n\t\t\t\ttable.style.cssText = \"position:absolute;left:-11111px;border-collapse:separate\";\n\t\t\t\ttr.style.cssText = \"box-sizing:content-box;border:1px solid\";\n\n\t\t\t\t// Support: Chrome 86+\n\t\t\t\t// Height set through cssText does not get applied.\n\t\t\t\t// Computed height then comes back as 0.\n\t\t\t\ttr.style.height = \"1px\";\n\t\t\t\ttrChild.style.height = \"9px\";\n\n\t\t\t\t// Support: Android 8 Chrome 86+\n\t\t\t\t// In our bodyBackground.html iframe,\n\t\t\t\t// display for all div elements is set to \"inline\",\n\t\t\t\t// which causes a problem only in Android 8 Chrome 86.\n\t\t\t\t// Ensuring the div is `display: block`\n\t\t\t\t// gets around this issue.\n\t\t\t\ttrChild.style.display = \"block\";\n\n\t\t\t\tdocumentElement\n\t\t\t\t\t.appendChild( table )\n\t\t\t\t\t.appendChild( tr )\n\t\t\t\t\t.appendChild( trChild );\n\n\t\t\t\ttrStyle = window.getComputedStyle( tr );\n\t\t\t\treliableTrDimensionsVal = ( parseInt( trStyle.height, 10 ) +\n\t\t\t\t\tparseInt( trStyle.borderTopWidth, 10 ) +\n\t\t\t\t\tparseInt( trStyle.borderBottomWidth, 10 ) ) === tr.offsetHeight;\n\n\t\t\t\tdocumentElement.removeChild( table );\n\t\t\t}\n\t\t\treturn reliableTrDimensionsVal;\n\t\t}\n\t} );\n} )();\n\n\nfunction curCSS( elem, name, computed ) {\n\tvar width, minWidth, maxWidth, ret,\n\t\tisCustomProp = rcustomProp.test( name ),\n\n\t\t// Support: Firefox 51+\n\t\t// Retrieving style before computed somehow\n\t\t// fixes an issue with getting wrong values\n\t\t// on detached elements\n\t\tstyle = elem.style;\n\n\tcomputed = computed || getStyles( elem );\n\n\t// getPropertyValue is needed for:\n\t//   .css('filter') (IE 9 only, trac-12537)\n\t//   .css('--customProperty) (gh-3144)\n\tif ( computed ) {\n\n\t\t// Support: IE <=9 - 11+\n\t\t// IE only supports `\"float\"` in `getPropertyValue`; in computed styles\n\t\t// it's only available as `\"cssFloat\"`. We no longer modify properties\n\t\t// sent to `.css()` apart from camelCasing, so we need to check both.\n\t\t// Normally, this would create difference in behavior: if\n\t\t// `getPropertyValue` returns an empty string, the value returned\n\t\t// by `.css()` would be `undefined`. This is usually the case for\n\t\t// disconnected elements. However, in IE even disconnected elements\n\t\t// with no styles return `\"none\"` for `getPropertyValue( \"float\" )`\n\t\tret = computed.getPropertyValue( name ) || computed[ name ];\n\n\t\tif ( isCustomProp && ret ) {\n\n\t\t\t// Support: Firefox 105+, Chrome <=105+\n\t\t\t// Spec requires trimming whitespace for custom properties (gh-4926).\n\t\t\t// Firefox only trims leading whitespace. Chrome just collapses\n\t\t\t// both leading & trailing whitespace to a single space.\n\t\t\t//\n\t\t\t// Fall back to `undefined` if empty string returned.\n\t\t\t// This collapses a missing definition with property defined\n\t\t\t// and set to an empty string but there's no standard API\n\t\t\t// allowing us to differentiate them without a performance penalty\n\t\t\t// and returning `undefined` aligns with older jQuery.\n\t\t\t//\n\t\t\t// rtrimCSS treats U+000D CARRIAGE RETURN and U+000C FORM FEED\n\t\t\t// as whitespace while CSS does not, but this is not a problem\n\t\t\t// because CSS preprocessing replaces them with U+000A LINE FEED\n\t\t\t// (which *is* CSS whitespace)\n\t\t\t// https://www.w3.org/TR/css-syntax-3/#input-preprocessing\n\t\t\tret = ret.replace( rtrimCSS, \"$1\" ) || undefined;\n\t\t}\n\n\t\tif ( ret === \"\" && !isAttached( elem ) ) {\n\t\t\tret = jQuery.style( elem, name );\n\t\t}\n\n\t\t// A tribute to the \"awesome hack by Dean Edwards\"\n\t\t// Android Browser returns percentage for some values,\n\t\t// but width seems to be reliably pixels.\n\t\t// This is against the CSSOM draft spec:\n\t\t// https://drafts.csswg.org/cssom/#resolved-values\n\t\tif ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) {\n\n\t\t\t// Remember the original values\n\t\t\twidth = style.width;\n\t\t\tminWidth = style.minWidth;\n\t\t\tmaxWidth = style.maxWidth;\n\n\t\t\t// Put in the new values to get a computed value out\n\t\t\tstyle.minWidth = style.maxWidth = style.width = ret;\n\t\t\tret = computed.width;\n\n\t\t\t// Revert the changed values\n\t\t\tstyle.width = width;\n\t\t\tstyle.minWidth = minWidth;\n\t\t\tstyle.maxWidth = maxWidth;\n\t\t}\n\t}\n\n\treturn ret !== undefined ?\n\n\t\t// Support: IE <=9 - 11 only\n\t\t// IE returns zIndex value as an integer.\n\t\tret + \"\" :\n\t\tret;\n}\n\n\nfunction addGetHookIf( conditionFn, hookFn ) {\n\n\t// Define the hook, we'll check on the first run if it's really needed.\n\treturn {\n\t\tget: function() {\n\t\t\tif ( conditionFn() ) {\n\n\t\t\t\t// Hook not needed (or it's not possible to use it due\n\t\t\t\t// to missing dependency), remove it.\n\t\t\t\tdelete this.get;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Hook needed; redefine it so that the support test is not executed again.\n\t\t\treturn ( this.get = hookFn ).apply( this, arguments );\n\t\t}\n\t};\n}\n\n\nvar cssPrefixes = [ \"Webkit\", \"Moz\", \"ms\" ],\n\temptyStyle = document.createElement( \"div\" ).style,\n\tvendorProps = {};\n\n// Return a vendor-prefixed property or undefined\nfunction vendorPropName( name ) {\n\n\t// Check for vendor prefixed names\n\tvar capName = name[ 0 ].toUpperCase() + name.slice( 1 ),\n\t\ti = cssPrefixes.length;\n\n\twhile ( i-- ) {\n\t\tname = cssPrefixes[ i ] + capName;\n\t\tif ( name in emptyStyle ) {\n\t\t\treturn name;\n\t\t}\n\t}\n}\n\n// Return a potentially-mapped jQuery.cssProps or vendor prefixed property\nfunction finalPropName( name ) {\n\tvar final = jQuery.cssProps[ name ] || vendorProps[ name ];\n\n\tif ( final ) {\n\t\treturn final;\n\t}\n\tif ( name in emptyStyle ) {\n\t\treturn name;\n\t}\n\treturn vendorProps[ name ] = vendorPropName( name ) || name;\n}\n\n\nvar\n\n\t// Swappable if display is none or starts with table\n\t// except \"table\", \"table-cell\", or \"table-caption\"\n\t// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display\n\trdisplayswap = /^(none|table(?!-c[ea]).+)/,\n\tcssShow = { position: \"absolute\", visibility: \"hidden\", display: \"block\" },\n\tcssNormalTransform = {\n\t\tletterSpacing: \"0\",\n\t\tfontWeight: \"400\"\n\t};\n\nfunction setPositiveNumber( _elem, value, subtract ) {\n\n\t// Any relative (+/-) values have already been\n\t// normalized at this point\n\tvar matches = rcssNum.exec( value );\n\treturn matches ?\n\n\t\t// Guard against undefined \"subtract\", e.g., when used as in cssHooks\n\t\tMath.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || \"px\" ) :\n\t\tvalue;\n}\n\nfunction boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {\n\tvar i = dimension === \"width\" ? 1 : 0,\n\t\textra = 0,\n\t\tdelta = 0,\n\t\tmarginDelta = 0;\n\n\t// Adjustment may not be necessary\n\tif ( box === ( isBorderBox ? \"border\" : \"content\" ) ) {\n\t\treturn 0;\n\t}\n\n\tfor ( ; i < 4; i += 2 ) {\n\n\t\t// Both box models exclude margin\n\t\t// Count margin delta separately to only add it after scroll gutter adjustment.\n\t\t// This is needed to make negative margins work with `outerHeight( true )` (gh-3982).\n\t\tif ( box === \"margin\" ) {\n\t\t\tmarginDelta += jQuery.css( elem, box + cssExpand[ i ], true, styles );\n\t\t}\n\n\t\t// If we get here with a content-box, we're seeking \"padding\" or \"border\" or \"margin\"\n\t\tif ( !isBorderBox ) {\n\n\t\t\t// Add padding\n\t\t\tdelta += jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\n\n\t\t\t// For \"border\" or \"margin\", add border\n\t\t\tif ( box !== \"padding\" ) {\n\t\t\t\tdelta += jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\n\t\t\t// But still keep track of it otherwise\n\t\t\t} else {\n\t\t\t\textra += jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\t\t\t}\n\n\t\t// If we get here with a border-box (content + padding + border), we're seeking \"content\" or\n\t\t// \"padding\" or \"margin\"\n\t\t} else {\n\n\t\t\t// For \"content\", subtract padding\n\t\t\tif ( box === \"content\" ) {\n\t\t\t\tdelta -= jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\n\t\t\t}\n\n\t\t\t// For \"content\" or \"padding\", subtract border\n\t\t\tif ( box !== \"margin\" ) {\n\t\t\t\tdelta -= jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\t\t\t}\n\t\t}\n\t}\n\n\t// Account for positive content-box scroll gutter when requested by providing computedVal\n\tif ( !isBorderBox && computedVal >= 0 ) {\n\n\t\t// offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border\n\t\t// Assuming integer scroll gutter, subtract the rest and round down\n\t\tdelta += Math.max( 0, Math.ceil(\n\t\t\telem[ \"offset\" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -\n\t\t\tcomputedVal -\n\t\t\tdelta -\n\t\t\textra -\n\t\t\t0.5\n\n\t\t// If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter\n\t\t// Use an explicit zero to avoid NaN (gh-3964)\n\t\t) ) || 0;\n\t}\n\n\treturn delta + marginDelta;\n}\n\nfunction getWidthOrHeight( elem, dimension, extra ) {\n\n\t// Start with computed style\n\tvar styles = getStyles( elem ),\n\n\t\t// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322).\n\t\t// Fake content-box until we know it's needed to know the true value.\n\t\tboxSizingNeeded = !support.boxSizingReliable() || extra,\n\t\tisBorderBox = boxSizingNeeded &&\n\t\t\tjQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\",\n\t\tvalueIsBorderBox = isBorderBox,\n\n\t\tval = curCSS( elem, dimension, styles ),\n\t\toffsetProp = \"offset\" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 );\n\n\t// Support: Firefox <=54\n\t// Return a confounding non-pixel value or feign ignorance, as appropriate.\n\tif ( rnumnonpx.test( val ) ) {\n\t\tif ( !extra ) {\n\t\t\treturn val;\n\t\t}\n\t\tval = \"auto\";\n\t}\n\n\n\t// Support: IE 9 - 11 only\n\t// Use offsetWidth/offsetHeight for when box sizing is unreliable.\n\t// In those cases, the computed value can be trusted to be border-box.\n\tif ( ( !support.boxSizingReliable() && isBorderBox ||\n\n\t\t// Support: IE 10 - 11+, Edge 15 - 18+\n\t\t// IE/Edge misreport `getComputedStyle` of table rows with width/height\n\t\t// set in CSS while `offset*` properties report correct values.\n\t\t// Interestingly, in some cases IE 9 doesn't suffer from this issue.\n\t\t!support.reliableTrDimensions() && nodeName( elem, \"tr\" ) ||\n\n\t\t// Fall back to offsetWidth/offsetHeight when value is \"auto\"\n\t\t// This happens for inline elements with no explicit setting (gh-3571)\n\t\tval === \"auto\" ||\n\n\t\t// Support: Android <=4.1 - 4.3 only\n\t\t// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)\n\t\t!parseFloat( val ) && jQuery.css( elem, \"display\", false, styles ) === \"inline\" ) &&\n\n\t\t// Make sure the element is visible & connected\n\t\telem.getClientRects().length ) {\n\n\t\tisBorderBox = jQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\";\n\n\t\t// Where available, offsetWidth/offsetHeight approximate border box dimensions.\n\t\t// Where not available (e.g., SVG), assume unreliable box-sizing and interpret the\n\t\t// retrieved value as a content box dimension.\n\t\tvalueIsBorderBox = offsetProp in elem;\n\t\tif ( valueIsBorderBox ) {\n\t\t\tval = elem[ offsetProp ];\n\t\t}\n\t}\n\n\t// Normalize \"\" and auto\n\tval = parseFloat( val ) || 0;\n\n\t// Adjust for the element's box model\n\treturn ( val +\n\t\tboxModelAdjustment(\n\t\t\telem,\n\t\t\tdimension,\n\t\t\textra || ( isBorderBox ? \"border\" : \"content\" ),\n\t\t\tvalueIsBorderBox,\n\t\t\tstyles,\n\n\t\t\t// Provide the current computed size to request scroll gutter calculation (gh-3589)\n\t\t\tval\n\t\t)\n\t) + \"px\";\n}\n\njQuery.extend( {\n\n\t// Add in style property hooks for overriding the default\n\t// behavior of getting and setting a style property\n\tcssHooks: {\n\t\topacity: {\n\t\t\tget: function( elem, computed ) {\n\t\t\t\tif ( computed ) {\n\n\t\t\t\t\t// We should always get a number back from opacity\n\t\t\t\t\tvar ret = curCSS( elem, \"opacity\" );\n\t\t\t\t\treturn ret === \"\" ? \"1\" : ret;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t// Don't automatically add \"px\" to these possibly-unitless properties\n\tcssNumber: {\n\t\tanimationIterationCount: true,\n\t\taspectRatio: true,\n\t\tborderImageSlice: true,\n\t\tcolumnCount: true,\n\t\tflexGrow: true,\n\t\tflexShrink: true,\n\t\tfontWeight: true,\n\t\tgridArea: true,\n\t\tgridColumn: true,\n\t\tgridColumnEnd: true,\n\t\tgridColumnStart: true,\n\t\tgridRow: true,\n\t\tgridRowEnd: true,\n\t\tgridRowStart: true,\n\t\tlineHeight: true,\n\t\topacity: true,\n\t\torder: true,\n\t\torphans: true,\n\t\tscale: true,\n\t\twidows: true,\n\t\tzIndex: true,\n\t\tzoom: true,\n\n\t\t// SVG-related\n\t\tfillOpacity: true,\n\t\tfloodOpacity: true,\n\t\tstopOpacity: true,\n\t\tstrokeMiterlimit: true,\n\t\tstrokeOpacity: true\n\t},\n\n\t// Add in properties whose names you wish to fix before\n\t// setting or getting the value\n\tcssProps: {},\n\n\t// Get and set the style property on a DOM Node\n\tstyle: function( elem, name, value, extra ) {\n\n\t\t// Don't set styles on text and comment nodes\n\t\tif ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make sure that we're working with the right name\n\t\tvar ret, type, hooks,\n\t\t\torigName = camelCase( name ),\n\t\t\tisCustomProp = rcustomProp.test( name ),\n\t\t\tstyle = elem.style;\n\n\t\t// Make sure that we're working with the right name. We don't\n\t\t// want to query the value if it is a CSS custom property\n\t\t// since they are user-defined.\n\t\tif ( !isCustomProp ) {\n\t\t\tname = finalPropName( origName );\n\t\t}\n\n\t\t// Gets hook for the prefixed version, then unprefixed version\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t// Check if we're setting a value\n\t\tif ( value !== undefined ) {\n\t\t\ttype = typeof value;\n\n\t\t\t// Convert \"+=\" or \"-=\" to relative numbers (trac-7345)\n\t\t\tif ( type === \"string\" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {\n\t\t\t\tvalue = adjustCSS( elem, name, ret );\n\n\t\t\t\t// Fixes bug trac-9237\n\t\t\t\ttype = \"number\";\n\t\t\t}\n\n\t\t\t// Make sure that null and NaN values aren't set (trac-7116)\n\t\t\tif ( value == null || value !== value ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// If a number was passed in, add the unit (except for certain CSS properties)\n\t\t\t// The isCustomProp check can be removed in jQuery 4.0 when we only auto-append\n\t\t\t// \"px\" to a few hardcoded values.\n\t\t\tif ( type === \"number\" && !isCustomProp ) {\n\t\t\t\tvalue += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? \"\" : \"px\" );\n\t\t\t}\n\n\t\t\t// background-* props affect original clone's values\n\t\t\tif ( !support.clearCloneStyle && value === \"\" && name.indexOf( \"background\" ) === 0 ) {\n\t\t\t\tstyle[ name ] = \"inherit\";\n\t\t\t}\n\n\t\t\t// If a hook was provided, use that value, otherwise just set the specified value\n\t\t\tif ( !hooks || !( \"set\" in hooks ) ||\n\t\t\t\t( value = hooks.set( elem, value, extra ) ) !== undefined ) {\n\n\t\t\t\tif ( isCustomProp ) {\n\t\t\t\t\tstyle.setProperty( name, value );\n\t\t\t\t} else {\n\t\t\t\t\tstyle[ name ] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\n\t\t\t// If a hook was provided get the non-computed value from there\n\t\t\tif ( hooks && \"get\" in hooks &&\n\t\t\t\t( ret = hooks.get( elem, false, extra ) ) !== undefined ) {\n\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\t// Otherwise just get the value from the style object\n\t\t\treturn style[ name ];\n\t\t}\n\t},\n\n\tcss: function( elem, name, extra, styles ) {\n\t\tvar val, num, hooks,\n\t\t\torigName = camelCase( name ),\n\t\t\tisCustomProp = rcustomProp.test( name );\n\n\t\t// Make sure that we're working with the right name. We don't\n\t\t// want to modify the value if it is a CSS custom property\n\t\t// since they are user-defined.\n\t\tif ( !isCustomProp ) {\n\t\t\tname = finalPropName( origName );\n\t\t}\n\n\t\t// Try prefixed name followed by the unprefixed name\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t// If a hook was provided get the computed value from there\n\t\tif ( hooks && \"get\" in hooks ) {\n\t\t\tval = hooks.get( elem, true, extra );\n\t\t}\n\n\t\t// Otherwise, if a way to get the computed value exists, use that\n\t\tif ( val === undefined ) {\n\t\t\tval = curCSS( elem, name, styles );\n\t\t}\n\n\t\t// Convert \"normal\" to computed value\n\t\tif ( val === \"normal\" && name in cssNormalTransform ) {\n\t\t\tval = cssNormalTransform[ name ];\n\t\t}\n\n\t\t// Make numeric if forced or a qualifier was provided and val looks numeric\n\t\tif ( extra === \"\" || extra ) {\n\t\t\tnum = parseFloat( val );\n\t\t\treturn extra === true || isFinite( num ) ? num || 0 : val;\n\t\t}\n\n\t\treturn val;\n\t}\n} );\n\njQuery.each( [ \"height\", \"width\" ], function( _i, dimension ) {\n\tjQuery.cssHooks[ dimension ] = {\n\t\tget: function( elem, computed, extra ) {\n\t\t\tif ( computed ) {\n\n\t\t\t\t// Certain elements can have dimension info if we invisibly show them\n\t\t\t\t// but it must have a current display style that would benefit\n\t\t\t\treturn rdisplayswap.test( jQuery.css( elem, \"display\" ) ) &&\n\n\t\t\t\t\t// Support: Safari 8+\n\t\t\t\t\t// Table columns in Safari have non-zero offsetWidth & zero\n\t\t\t\t\t// getBoundingClientRect().width unless display is changed.\n\t\t\t\t\t// Support: IE <=11 only\n\t\t\t\t\t// Running getBoundingClientRect on a disconnected node\n\t\t\t\t\t// in IE throws an error.\n\t\t\t\t\t( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?\n\t\t\t\t\tswap( elem, cssShow, function() {\n\t\t\t\t\t\treturn getWidthOrHeight( elem, dimension, extra );\n\t\t\t\t\t} ) :\n\t\t\t\t\tgetWidthOrHeight( elem, dimension, extra );\n\t\t\t}\n\t\t},\n\n\t\tset: function( elem, value, extra ) {\n\t\t\tvar matches,\n\t\t\t\tstyles = getStyles( elem ),\n\n\t\t\t\t// Only read styles.position if the test has a chance to fail\n\t\t\t\t// to avoid forcing a reflow.\n\t\t\t\tscrollboxSizeBuggy = !support.scrollboxSize() &&\n\t\t\t\t\tstyles.position === \"absolute\",\n\n\t\t\t\t// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991)\n\t\t\t\tboxSizingNeeded = scrollboxSizeBuggy || extra,\n\t\t\t\tisBorderBox = boxSizingNeeded &&\n\t\t\t\t\tjQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\",\n\t\t\t\tsubtract = extra ?\n\t\t\t\t\tboxModelAdjustment(\n\t\t\t\t\t\telem,\n\t\t\t\t\t\tdimension,\n\t\t\t\t\t\textra,\n\t\t\t\t\t\tisBorderBox,\n\t\t\t\t\t\tstyles\n\t\t\t\t\t) :\n\t\t\t\t\t0;\n\n\t\t\t// Account for unreliable border-box dimensions by comparing offset* to computed and\n\t\t\t// faking a content-box to get border and padding (gh-3699)\n\t\t\tif ( isBorderBox && scrollboxSizeBuggy ) {\n\t\t\t\tsubtract -= Math.ceil(\n\t\t\t\t\telem[ \"offset\" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -\n\t\t\t\t\tparseFloat( styles[ dimension ] ) -\n\t\t\t\t\tboxModelAdjustment( elem, dimension, \"border\", false, styles ) -\n\t\t\t\t\t0.5\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// Convert to pixels if value adjustment is needed\n\t\t\tif ( subtract && ( matches = rcssNum.exec( value ) ) &&\n\t\t\t\t( matches[ 3 ] || \"px\" ) !== \"px\" ) {\n\n\t\t\t\telem.style[ dimension ] = value;\n\t\t\t\tvalue = jQuery.css( elem, dimension );\n\t\t\t}\n\n\t\t\treturn setPositiveNumber( elem, value, subtract );\n\t\t}\n\t};\n} );\n\njQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,\n\tfunction( elem, computed ) {\n\t\tif ( computed ) {\n\t\t\treturn ( parseFloat( curCSS( elem, \"marginLeft\" ) ) ||\n\t\t\t\telem.getBoundingClientRect().left -\n\t\t\t\t\tswap( elem, { marginLeft: 0 }, function() {\n\t\t\t\t\t\treturn elem.getBoundingClientRect().left;\n\t\t\t\t\t} )\n\t\t\t) + \"px\";\n\t\t}\n\t}\n);\n\n// These hooks are used by animate to expand properties\njQuery.each( {\n\tmargin: \"\",\n\tpadding: \"\",\n\tborder: \"Width\"\n}, function( prefix, suffix ) {\n\tjQuery.cssHooks[ prefix + suffix ] = {\n\t\texpand: function( value ) {\n\t\t\tvar i = 0,\n\t\t\t\texpanded = {},\n\n\t\t\t\t// Assumes a single number if not a string\n\t\t\t\tparts = typeof value === \"string\" ? value.split( \" \" ) : [ value ];\n\n\t\t\tfor ( ; i < 4; i++ ) {\n\t\t\t\texpanded[ prefix + cssExpand[ i ] + suffix ] =\n\t\t\t\t\tparts[ i ] || parts[ i - 2 ] || parts[ 0 ];\n\t\t\t}\n\n\t\t\treturn expanded;\n\t\t}\n\t};\n\n\tif ( prefix !== \"margin\" ) {\n\t\tjQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;\n\t}\n} );\n\njQuery.fn.extend( {\n\tcss: function( name, value ) {\n\t\treturn access( this, function( elem, name, value ) {\n\t\t\tvar styles, len,\n\t\t\t\tmap = {},\n\t\t\t\ti = 0;\n\n\t\t\tif ( Array.isArray( name ) ) {\n\t\t\t\tstyles = getStyles( elem );\n\t\t\t\tlen = name.length;\n\n\t\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\t\tmap[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );\n\t\t\t\t}\n\n\t\t\t\treturn map;\n\t\t\t}\n\n\t\t\treturn value !== undefined ?\n\t\t\t\tjQuery.style( elem, name, value ) :\n\t\t\t\tjQuery.css( elem, name );\n\t\t}, name, value, arguments.length > 1 );\n\t}\n} );\n\n\nfunction Tween( elem, options, prop, end, easing ) {\n\treturn new Tween.prototype.init( elem, options, prop, end, easing );\n}\njQuery.Tween = Tween;\n\nTween.prototype = {\n\tconstructor: Tween,\n\tinit: function( elem, options, prop, end, easing, unit ) {\n\t\tthis.elem = elem;\n\t\tthis.prop = prop;\n\t\tthis.easing = easing || jQuery.easing._default;\n\t\tthis.options = options;\n\t\tthis.start = this.now = this.cur();\n\t\tthis.end = end;\n\t\tthis.unit = unit || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" );\n\t},\n\tcur: function() {\n\t\tvar hooks = Tween.propHooks[ this.prop ];\n\n\t\treturn hooks && hooks.get ?\n\t\t\thooks.get( this ) :\n\t\t\tTween.propHooks._default.get( this );\n\t},\n\trun: function( percent ) {\n\t\tvar eased,\n\t\t\thooks = Tween.propHooks[ this.prop ];\n\n\t\tif ( this.options.duration ) {\n\t\t\tthis.pos = eased = jQuery.easing[ this.easing ](\n\t\t\t\tpercent, this.options.duration * percent, 0, 1, this.options.duration\n\t\t\t);\n\t\t} else {\n\t\t\tthis.pos = eased = percent;\n\t\t}\n\t\tthis.now = ( this.end - this.start ) * eased + this.start;\n\n\t\tif ( this.options.step ) {\n\t\t\tthis.options.step.call( this.elem, this.now, this );\n\t\t}\n\n\t\tif ( hooks && hooks.set ) {\n\t\t\thooks.set( this );\n\t\t} else {\n\t\t\tTween.propHooks._default.set( this );\n\t\t}\n\t\treturn this;\n\t}\n};\n\nTween.prototype.init.prototype = Tween.prototype;\n\nTween.propHooks = {\n\t_default: {\n\t\tget: function( tween ) {\n\t\t\tvar result;\n\n\t\t\t// Use a property on the element directly when it is not a DOM element,\n\t\t\t// or when there is no matching style property that exists.\n\t\t\tif ( tween.elem.nodeType !== 1 ||\n\t\t\t\ttween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {\n\t\t\t\treturn tween.elem[ tween.prop ];\n\t\t\t}\n\n\t\t\t// Passing an empty string as a 3rd parameter to .css will automatically\n\t\t\t// attempt a parseFloat and fallback to a string if the parse fails.\n\t\t\t// Simple values such as \"10px\" are parsed to Float;\n\t\t\t// complex values such as \"rotate(1rad)\" are returned as-is.\n\t\t\tresult = jQuery.css( tween.elem, tween.prop, \"\" );\n\n\t\t\t// Empty strings, null, undefined and \"auto\" are converted to 0.\n\t\t\treturn !result || result === \"auto\" ? 0 : result;\n\t\t},\n\t\tset: function( tween ) {\n\n\t\t\t// Use step hook for back compat.\n\t\t\t// Use cssHook if its there.\n\t\t\t// Use .style if available and use plain properties where available.\n\t\t\tif ( jQuery.fx.step[ tween.prop ] ) {\n\t\t\t\tjQuery.fx.step[ tween.prop ]( tween );\n\t\t\t} else if ( tween.elem.nodeType === 1 && (\n\t\t\t\tjQuery.cssHooks[ tween.prop ] ||\n\t\t\t\t\ttween.elem.style[ finalPropName( tween.prop ) ] != null ) ) {\n\t\t\t\tjQuery.style( tween.elem, tween.prop, tween.now + tween.unit );\n\t\t\t} else {\n\t\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t\t}\n\t\t}\n\t}\n};\n\n// Support: IE <=9 only\n// Panic based approach to setting things on disconnected nodes\nTween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {\n\tset: function( tween ) {\n\t\tif ( tween.elem.nodeType && tween.elem.parentNode ) {\n\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t}\n\t}\n};\n\njQuery.easing = {\n\tlinear: function( p ) {\n\t\treturn p;\n\t},\n\tswing: function( p ) {\n\t\treturn 0.5 - Math.cos( p * Math.PI ) / 2;\n\t},\n\t_default: \"swing\"\n};\n\njQuery.fx = Tween.prototype.init;\n\n// Back compat <1.8 extension point\njQuery.fx.step = {};\n\n\n\n\nvar\n\tfxNow, inProgress,\n\trfxtypes = /^(?:toggle|show|hide)$/,\n\trrun = /queueHooks$/;\n\nfunction schedule() {\n\tif ( inProgress ) {\n\t\tif ( document.hidden === false && window.requestAnimationFrame ) {\n\t\t\twindow.requestAnimationFrame( schedule );\n\t\t} else {\n\t\t\twindow.setTimeout( schedule, jQuery.fx.interval );\n\t\t}\n\n\t\tjQuery.fx.tick();\n\t}\n}\n\n// Animations created synchronously will run synchronously\nfunction createFxNow() {\n\twindow.setTimeout( function() {\n\t\tfxNow = undefined;\n\t} );\n\treturn ( fxNow = Date.now() );\n}\n\n// Generate parameters to create a standard animation\nfunction genFx( type, includeWidth ) {\n\tvar which,\n\t\ti = 0,\n\t\tattrs = { height: type };\n\n\t// If we include width, step value is 1 to do all cssExpand values,\n\t// otherwise step value is 2 to skip over Left and Right\n\tincludeWidth = includeWidth ? 1 : 0;\n\tfor ( ; i < 4; i += 2 - includeWidth ) {\n\t\twhich = cssExpand[ i ];\n\t\tattrs[ \"margin\" + which ] = attrs[ \"padding\" + which ] = type;\n\t}\n\n\tif ( includeWidth ) {\n\t\tattrs.opacity = attrs.width = type;\n\t}\n\n\treturn attrs;\n}\n\nfunction createTween( value, prop, animation ) {\n\tvar tween,\n\t\tcollection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ \"*\" ] ),\n\t\tindex = 0,\n\t\tlength = collection.length;\n\tfor ( ; index < length; index++ ) {\n\t\tif ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {\n\n\t\t\t// We're done with this property\n\t\t\treturn tween;\n\t\t}\n\t}\n}\n\nfunction defaultPrefilter( elem, props, opts ) {\n\tvar prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,\n\t\tisBox = \"width\" in props || \"height\" in props,\n\t\tanim = this,\n\t\torig = {},\n\t\tstyle = elem.style,\n\t\thidden = elem.nodeType && isHiddenWithinTree( elem ),\n\t\tdataShow = dataPriv.get( elem, \"fxshow\" );\n\n\t// Queue-skipping animations hijack the fx hooks\n\tif ( !opts.queue ) {\n\t\thooks = jQuery._queueHooks( elem, \"fx\" );\n\t\tif ( hooks.unqueued == null ) {\n\t\t\thooks.unqueued = 0;\n\t\t\toldfire = hooks.empty.fire;\n\t\t\thooks.empty.fire = function() {\n\t\t\t\tif ( !hooks.unqueued ) {\n\t\t\t\t\toldfire();\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\thooks.unqueued++;\n\n\t\tanim.always( function() {\n\n\t\t\t// Ensure the complete handler is called before this completes\n\t\t\tanim.always( function() {\n\t\t\t\thooks.unqueued--;\n\t\t\t\tif ( !jQuery.queue( elem, \"fx\" ).length ) {\n\t\t\t\t\thooks.empty.fire();\n\t\t\t\t}\n\t\t\t} );\n\t\t} );\n\t}\n\n\t// Detect show/hide animations\n\tfor ( prop in props ) {\n\t\tvalue = props[ prop ];\n\t\tif ( rfxtypes.test( value ) ) {\n\t\t\tdelete props[ prop ];\n\t\t\ttoggle = toggle || value === \"toggle\";\n\t\t\tif ( value === ( hidden ? \"hide\" : \"show\" ) ) {\n\n\t\t\t\t// Pretend to be hidden if this is a \"show\" and\n\t\t\t\t// there is still data from a stopped show/hide\n\t\t\t\tif ( value === \"show\" && dataShow && dataShow[ prop ] !== undefined ) {\n\t\t\t\t\thidden = true;\n\n\t\t\t\t// Ignore all other no-op show/hide data\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\torig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );\n\t\t}\n\t}\n\n\t// Bail out if this is a no-op like .hide().hide()\n\tpropTween = !jQuery.isEmptyObject( props );\n\tif ( !propTween && jQuery.isEmptyObject( orig ) ) {\n\t\treturn;\n\t}\n\n\t// Restrict \"overflow\" and \"display\" styles during box animations\n\tif ( isBox && elem.nodeType === 1 ) {\n\n\t\t// Support: IE <=9 - 11, Edge 12 - 15\n\t\t// Record all 3 overflow attributes because IE does not infer the shorthand\n\t\t// from identically-valued overflowX and overflowY and Edge just mirrors\n\t\t// the overflowX value there.\n\t\topts.overflow = [ style.overflow, style.overflowX, style.overflowY ];\n\n\t\t// Identify a display type, preferring old show/hide data over the CSS cascade\n\t\trestoreDisplay = dataShow && dataShow.display;\n\t\tif ( restoreDisplay == null ) {\n\t\t\trestoreDisplay = dataPriv.get( elem, \"display\" );\n\t\t}\n\t\tdisplay = jQuery.css( elem, \"display\" );\n\t\tif ( display === \"none\" ) {\n\t\t\tif ( restoreDisplay ) {\n\t\t\t\tdisplay = restoreDisplay;\n\t\t\t} else {\n\n\t\t\t\t// Get nonempty value(s) by temporarily forcing visibility\n\t\t\t\tshowHide( [ elem ], true );\n\t\t\t\trestoreDisplay = elem.style.display || restoreDisplay;\n\t\t\t\tdisplay = jQuery.css( elem, \"display\" );\n\t\t\t\tshowHide( [ elem ] );\n\t\t\t}\n\t\t}\n\n\t\t// Animate inline elements as inline-block\n\t\tif ( display === \"inline\" || display === \"inline-block\" && restoreDisplay != null ) {\n\t\t\tif ( jQuery.css( elem, \"float\" ) === \"none\" ) {\n\n\t\t\t\t// Restore the original display value at the end of pure show/hide animations\n\t\t\t\tif ( !propTween ) {\n\t\t\t\t\tanim.done( function() {\n\t\t\t\t\t\tstyle.display = restoreDisplay;\n\t\t\t\t\t} );\n\t\t\t\t\tif ( restoreDisplay == null ) {\n\t\t\t\t\t\tdisplay = style.display;\n\t\t\t\t\t\trestoreDisplay = display === \"none\" ? \"\" : display;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstyle.display = \"inline-block\";\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( opts.overflow ) {\n\t\tstyle.overflow = \"hidden\";\n\t\tanim.always( function() {\n\t\t\tstyle.overflow = opts.overflow[ 0 ];\n\t\t\tstyle.overflowX = opts.overflow[ 1 ];\n\t\t\tstyle.overflowY = opts.overflow[ 2 ];\n\t\t} );\n\t}\n\n\t// Implement show/hide animations\n\tpropTween = false;\n\tfor ( prop in orig ) {\n\n\t\t// General show/hide setup for this element animation\n\t\tif ( !propTween ) {\n\t\t\tif ( dataShow ) {\n\t\t\t\tif ( \"hidden\" in dataShow ) {\n\t\t\t\t\thidden = dataShow.hidden;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdataShow = dataPriv.access( elem, \"fxshow\", { display: restoreDisplay } );\n\t\t\t}\n\n\t\t\t// Store hidden/visible for toggle so `.stop().toggle()` \"reverses\"\n\t\t\tif ( toggle ) {\n\t\t\t\tdataShow.hidden = !hidden;\n\t\t\t}\n\n\t\t\t// Show elements before animating them\n\t\t\tif ( hidden ) {\n\t\t\t\tshowHide( [ elem ], true );\n\t\t\t}\n\n\t\t\t/* eslint-disable no-loop-func */\n\n\t\t\tanim.done( function() {\n\n\t\t\t\t/* eslint-enable no-loop-func */\n\n\t\t\t\t// The final step of a \"hide\" animation is actually hiding the element\n\t\t\t\tif ( !hidden ) {\n\t\t\t\t\tshowHide( [ elem ] );\n\t\t\t\t}\n\t\t\t\tdataPriv.remove( elem, \"fxshow\" );\n\t\t\t\tfor ( prop in orig ) {\n\t\t\t\t\tjQuery.style( elem, prop, orig[ prop ] );\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\n\t\t// Per-property setup\n\t\tpropTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );\n\t\tif ( !( prop in dataShow ) ) {\n\t\t\tdataShow[ prop ] = propTween.start;\n\t\t\tif ( hidden ) {\n\t\t\t\tpropTween.end = propTween.start;\n\t\t\t\tpropTween.start = 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction propFilter( props, specialEasing ) {\n\tvar index, name, easing, value, hooks;\n\n\t// camelCase, specialEasing and expand cssHook pass\n\tfor ( index in props ) {\n\t\tname = camelCase( index );\n\t\teasing = specialEasing[ name ];\n\t\tvalue = props[ index ];\n\t\tif ( Array.isArray( value ) ) {\n\t\t\teasing = value[ 1 ];\n\t\t\tvalue = props[ index ] = value[ 0 ];\n\t\t}\n\n\t\tif ( index !== name ) {\n\t\t\tprops[ name ] = value;\n\t\t\tdelete props[ index ];\n\t\t}\n\n\t\thooks = jQuery.cssHooks[ name ];\n\t\tif ( hooks && \"expand\" in hooks ) {\n\t\t\tvalue = hooks.expand( value );\n\t\t\tdelete props[ name ];\n\n\t\t\t// Not quite $.extend, this won't overwrite existing keys.\n\t\t\t// Reusing 'index' because we have the correct \"name\"\n\t\t\tfor ( index in value ) {\n\t\t\t\tif ( !( index in props ) ) {\n\t\t\t\t\tprops[ index ] = value[ index ];\n\t\t\t\t\tspecialEasing[ index ] = easing;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tspecialEasing[ name ] = easing;\n\t\t}\n\t}\n}\n\nfunction Animation( elem, properties, options ) {\n\tvar result,\n\t\tstopped,\n\t\tindex = 0,\n\t\tlength = Animation.prefilters.length,\n\t\tdeferred = jQuery.Deferred().always( function() {\n\n\t\t\t// Don't match elem in the :animated selector\n\t\t\tdelete tick.elem;\n\t\t} ),\n\t\ttick = function() {\n\t\t\tif ( stopped ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tvar currentTime = fxNow || createFxNow(),\n\t\t\t\tremaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),\n\n\t\t\t\t// Support: Android 2.3 only\n\t\t\t\t// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (trac-12497)\n\t\t\t\ttemp = remaining / animation.duration || 0,\n\t\t\t\tpercent = 1 - temp,\n\t\t\t\tindex = 0,\n\t\t\t\tlength = animation.tweens.length;\n\n\t\t\tfor ( ; index < length; index++ ) {\n\t\t\t\tanimation.tweens[ index ].run( percent );\n\t\t\t}\n\n\t\t\tdeferred.notifyWith( elem, [ animation, percent, remaining ] );\n\n\t\t\t// If there's more to do, yield\n\t\t\tif ( percent < 1 && length ) {\n\t\t\t\treturn remaining;\n\t\t\t}\n\n\t\t\t// If this was an empty animation, synthesize a final progress notification\n\t\t\tif ( !length ) {\n\t\t\t\tdeferred.notifyWith( elem, [ animation, 1, 0 ] );\n\t\t\t}\n\n\t\t\t// Resolve the animation and report its conclusion\n\t\t\tdeferred.resolveWith( elem, [ animation ] );\n\t\t\treturn false;\n\t\t},\n\t\tanimation = deferred.promise( {\n\t\t\telem: elem,\n\t\t\tprops: jQuery.extend( {}, properties ),\n\t\t\topts: jQuery.extend( true, {\n\t\t\t\tspecialEasing: {},\n\t\t\t\teasing: jQuery.easing._default\n\t\t\t}, options ),\n\t\t\toriginalProperties: properties,\n\t\t\toriginalOptions: options,\n\t\t\tstartTime: fxNow || createFxNow(),\n\t\t\tduration: options.duration,\n\t\t\ttweens: [],\n\t\t\tcreateTween: function( prop, end ) {\n\t\t\t\tvar tween = jQuery.Tween( elem, animation.opts, prop, end,\n\t\t\t\t\tanimation.opts.specialEasing[ prop ] || animation.opts.easing );\n\t\t\t\tanimation.tweens.push( tween );\n\t\t\t\treturn tween;\n\t\t\t},\n\t\t\tstop: function( gotoEnd ) {\n\t\t\t\tvar index = 0,\n\n\t\t\t\t\t// If we are going to the end, we want to run all the tweens\n\t\t\t\t\t// otherwise we skip this part\n\t\t\t\t\tlength = gotoEnd ? animation.tweens.length : 0;\n\t\t\t\tif ( stopped ) {\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t\tstopped = true;\n\t\t\t\tfor ( ; index < length; index++ ) {\n\t\t\t\t\tanimation.tweens[ index ].run( 1 );\n\t\t\t\t}\n\n\t\t\t\t// Resolve when we played the last frame; otherwise, reject\n\t\t\t\tif ( gotoEnd ) {\n\t\t\t\t\tdeferred.notifyWith( elem, [ animation, 1, 0 ] );\n\t\t\t\t\tdeferred.resolveWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t} else {\n\t\t\t\t\tdeferred.rejectWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}\n\t\t} ),\n\t\tprops = animation.props;\n\n\tpropFilter( props, animation.opts.specialEasing );\n\n\tfor ( ; index < length; index++ ) {\n\t\tresult = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );\n\t\tif ( result ) {\n\t\t\tif ( isFunction( result.stop ) ) {\n\t\t\t\tjQuery._queueHooks( animation.elem, animation.opts.queue ).stop =\n\t\t\t\t\tresult.stop.bind( result );\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}\n\n\tjQuery.map( props, createTween, animation );\n\n\tif ( isFunction( animation.opts.start ) ) {\n\t\tanimation.opts.start.call( elem, animation );\n\t}\n\n\t// Attach callbacks from options\n\tanimation\n\t\t.progress( animation.opts.progress )\n\t\t.done( animation.opts.done, animation.opts.complete )\n\t\t.fail( animation.opts.fail )\n\t\t.always( animation.opts.always );\n\n\tjQuery.fx.timer(\n\t\tjQuery.extend( tick, {\n\t\t\telem: elem,\n\t\t\tanim: animation,\n\t\t\tqueue: animation.opts.queue\n\t\t} )\n\t);\n\n\treturn animation;\n}\n\njQuery.Animation = jQuery.extend( Animation, {\n\n\ttweeners: {\n\t\t\"*\": [ function( prop, value ) {\n\t\t\tvar tween = this.createTween( prop, value );\n\t\t\tadjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );\n\t\t\treturn tween;\n\t\t} ]\n\t},\n\n\ttweener: function( props, callback ) {\n\t\tif ( isFunction( props ) ) {\n\t\t\tcallback = props;\n\t\t\tprops = [ \"*\" ];\n\t\t} else {\n\t\t\tprops = props.match( rnothtmlwhite );\n\t\t}\n\n\t\tvar prop,\n\t\t\tindex = 0,\n\t\t\tlength = props.length;\n\n\t\tfor ( ; index < length; index++ ) {\n\t\t\tprop = props[ index ];\n\t\t\tAnimation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];\n\t\t\tAnimation.tweeners[ prop ].unshift( callback );\n\t\t}\n\t},\n\n\tprefilters: [ defaultPrefilter ],\n\n\tprefilter: function( callback, prepend ) {\n\t\tif ( prepend ) {\n\t\t\tAnimation.prefilters.unshift( callback );\n\t\t} else {\n\t\t\tAnimation.prefilters.push( callback );\n\t\t}\n\t}\n} );\n\njQuery.speed = function( speed, easing, fn ) {\n\tvar opt = speed && typeof speed === \"object\" ? jQuery.extend( {}, speed ) : {\n\t\tcomplete: fn || !fn && easing ||\n\t\t\tisFunction( speed ) && speed,\n\t\tduration: speed,\n\t\teasing: fn && easing || easing && !isFunction( easing ) && easing\n\t};\n\n\t// Go to the end state if fx are off\n\tif ( jQuery.fx.off ) {\n\t\topt.duration = 0;\n\n\t} else {\n\t\tif ( typeof opt.duration !== \"number\" ) {\n\t\t\tif ( opt.duration in jQuery.fx.speeds ) {\n\t\t\t\topt.duration = jQuery.fx.speeds[ opt.duration ];\n\n\t\t\t} else {\n\t\t\t\topt.duration = jQuery.fx.speeds._default;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Normalize opt.queue - true/undefined/null -> \"fx\"\n\tif ( opt.queue == null || opt.queue === true ) {\n\t\topt.queue = \"fx\";\n\t}\n\n\t// Queueing\n\topt.old = opt.complete;\n\n\topt.complete = function() {\n\t\tif ( isFunction( opt.old ) ) {\n\t\t\topt.old.call( this );\n\t\t}\n\n\t\tif ( opt.queue ) {\n\t\t\tjQuery.dequeue( this, opt.queue );\n\t\t}\n\t};\n\n\treturn opt;\n};\n\njQuery.fn.extend( {\n\tfadeTo: function( speed, to, easing, callback ) {\n\n\t\t// Show any hidden elements after setting opacity to 0\n\t\treturn this.filter( isHiddenWithinTree ).css( \"opacity\", 0 ).show()\n\n\t\t\t// Animate to the value specified\n\t\t\t.end().animate( { opacity: to }, speed, easing, callback );\n\t},\n\tanimate: function( prop, speed, easing, callback ) {\n\t\tvar empty = jQuery.isEmptyObject( prop ),\n\t\t\toptall = jQuery.speed( speed, easing, callback ),\n\t\t\tdoAnimation = function() {\n\n\t\t\t\t// Operate on a copy of prop so per-property easing won't be lost\n\t\t\t\tvar anim = Animation( this, jQuery.extend( {}, prop ), optall );\n\n\t\t\t\t// Empty animations, or finishing resolves immediately\n\t\t\t\tif ( empty || dataPriv.get( this, \"finish\" ) ) {\n\t\t\t\t\tanim.stop( true );\n\t\t\t\t}\n\t\t\t};\n\n\t\tdoAnimation.finish = doAnimation;\n\n\t\treturn empty || optall.queue === false ?\n\t\t\tthis.each( doAnimation ) :\n\t\t\tthis.queue( optall.queue, doAnimation );\n\t},\n\tstop: function( type, clearQueue, gotoEnd ) {\n\t\tvar stopQueue = function( hooks ) {\n\t\t\tvar stop = hooks.stop;\n\t\t\tdelete hooks.stop;\n\t\t\tstop( gotoEnd );\n\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tgotoEnd = clearQueue;\n\t\t\tclearQueue = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\tif ( clearQueue ) {\n\t\t\tthis.queue( type || \"fx\", [] );\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tvar dequeue = true,\n\t\t\t\tindex = type != null && type + \"queueHooks\",\n\t\t\t\ttimers = jQuery.timers,\n\t\t\t\tdata = dataPriv.get( this );\n\n\t\t\tif ( index ) {\n\t\t\t\tif ( data[ index ] && data[ index ].stop ) {\n\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ( index in data ) {\n\t\t\t\t\tif ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {\n\t\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\tif ( timers[ index ].elem === this &&\n\t\t\t\t\t( type == null || timers[ index ].queue === type ) ) {\n\n\t\t\t\t\ttimers[ index ].anim.stop( gotoEnd );\n\t\t\t\t\tdequeue = false;\n\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Start the next in the queue if the last step wasn't forced.\n\t\t\t// Timers currently will call their complete callbacks, which\n\t\t\t// will dequeue but only if they were gotoEnd.\n\t\t\tif ( dequeue || !gotoEnd ) {\n\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t}\n\t\t} );\n\t},\n\tfinish: function( type ) {\n\t\tif ( type !== false ) {\n\t\t\ttype = type || \"fx\";\n\t\t}\n\t\treturn this.each( function() {\n\t\t\tvar index,\n\t\t\t\tdata = dataPriv.get( this ),\n\t\t\t\tqueue = data[ type + \"queue\" ],\n\t\t\t\thooks = data[ type + \"queueHooks\" ],\n\t\t\t\ttimers = jQuery.timers,\n\t\t\t\tlength = queue ? queue.length : 0;\n\n\t\t\t// Enable finishing flag on private data\n\t\t\tdata.finish = true;\n\n\t\t\t// Empty the queue first\n\t\t\tjQuery.queue( this, type, [] );\n\n\t\t\tif ( hooks && hooks.stop ) {\n\t\t\t\thooks.stop.call( this, true );\n\t\t\t}\n\n\t\t\t// Look for any active animations, and finish them\n\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\tif ( timers[ index ].elem === this && timers[ index ].queue === type ) {\n\t\t\t\t\ttimers[ index ].anim.stop( true );\n\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Look for any animations in the old queue and finish them\n\t\t\tfor ( index = 0; index < length; index++ ) {\n\t\t\t\tif ( queue[ index ] && queue[ index ].finish ) {\n\t\t\t\t\tqueue[ index ].finish.call( this );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Turn off finishing flag\n\t\t\tdelete data.finish;\n\t\t} );\n\t}\n} );\n\njQuery.each( [ \"toggle\", \"show\", \"hide\" ], function( _i, name ) {\n\tvar cssFn = jQuery.fn[ name ];\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn speed == null || typeof speed === \"boolean\" ?\n\t\t\tcssFn.apply( this, arguments ) :\n\t\t\tthis.animate( genFx( name, true ), speed, easing, callback );\n\t};\n} );\n\n// Generate shortcuts for custom animations\njQuery.each( {\n\tslideDown: genFx( \"show\" ),\n\tslideUp: genFx( \"hide\" ),\n\tslideToggle: genFx( \"toggle\" ),\n\tfadeIn: { opacity: \"show\" },\n\tfadeOut: { opacity: \"hide\" },\n\tfadeToggle: { opacity: \"toggle\" }\n}, function( name, props ) {\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn this.animate( props, speed, easing, callback );\n\t};\n} );\n\njQuery.timers = [];\njQuery.fx.tick = function() {\n\tvar timer,\n\t\ti = 0,\n\t\ttimers = jQuery.timers;\n\n\tfxNow = Date.now();\n\n\tfor ( ; i < timers.length; i++ ) {\n\t\ttimer = timers[ i ];\n\n\t\t// Run the timer and safely remove it when done (allowing for external removal)\n\t\tif ( !timer() && timers[ i ] === timer ) {\n\t\t\ttimers.splice( i--, 1 );\n\t\t}\n\t}\n\n\tif ( !timers.length ) {\n\t\tjQuery.fx.stop();\n\t}\n\tfxNow = undefined;\n};\n\njQuery.fx.timer = function( timer ) {\n\tjQuery.timers.push( timer );\n\tjQuery.fx.start();\n};\n\njQuery.fx.interval = 13;\njQuery.fx.start = function() {\n\tif ( inProgress ) {\n\t\treturn;\n\t}\n\n\tinProgress = true;\n\tschedule();\n};\n\njQuery.fx.stop = function() {\n\tinProgress = null;\n};\n\njQuery.fx.speeds = {\n\tslow: 600,\n\tfast: 200,\n\n\t// Default speed\n\t_default: 400\n};\n\n\n// Based off of the plugin by Clint Helfers, with permission.\njQuery.fn.delay = function( time, type ) {\n\ttime = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;\n\ttype = type || \"fx\";\n\n\treturn this.queue( type, function( next, hooks ) {\n\t\tvar timeout = window.setTimeout( next, time );\n\t\thooks.stop = function() {\n\t\t\twindow.clearTimeout( timeout );\n\t\t};\n\t} );\n};\n\n\n( function() {\n\tvar input = document.createElement( \"input\" ),\n\t\tselect = document.createElement( \"select\" ),\n\t\topt = select.appendChild( document.createElement( \"option\" ) );\n\n\tinput.type = \"checkbox\";\n\n\t// Support: Android <=4.3 only\n\t// Default value for a checkbox should be \"on\"\n\tsupport.checkOn = input.value !== \"\";\n\n\t// Support: IE <=11 only\n\t// Must access selectedIndex to make default options select\n\tsupport.optSelected = opt.selected;\n\n\t// Support: IE <=11 only\n\t// An input loses its value after becoming a radio\n\tinput = document.createElement( \"input\" );\n\tinput.value = \"t\";\n\tinput.type = \"radio\";\n\tsupport.radioValue = input.value === \"t\";\n} )();\n\n\nvar boolHook,\n\tattrHandle = jQuery.expr.attrHandle;\n\njQuery.fn.extend( {\n\tattr: function( name, value ) {\n\t\treturn access( this, jQuery.attr, name, value, arguments.length > 1 );\n\t},\n\n\tremoveAttr: function( name ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.removeAttr( this, name );\n\t\t} );\n\t}\n} );\n\njQuery.extend( {\n\tattr: function( elem, name, value ) {\n\t\tvar ret, hooks,\n\t\t\tnType = elem.nodeType;\n\n\t\t// Don't get/set attributes on text, comment and attribute nodes\n\t\tif ( nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Fallback to prop when attributes are not supported\n\t\tif ( typeof elem.getAttribute === \"undefined\" ) {\n\t\t\treturn jQuery.prop( elem, name, value );\n\t\t}\n\n\t\t// Attribute hooks are determined by the lowercase version\n\t\t// Grab necessary hook if one is defined\n\t\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\n\t\t\thooks = jQuery.attrHooks[ name.toLowerCase() ] ||\n\t\t\t\t( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );\n\t\t}\n\n\t\tif ( value !== undefined ) {\n\t\t\tif ( value === null ) {\n\t\t\t\tjQuery.removeAttr( elem, name );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( hooks && \"set\" in hooks &&\n\t\t\t\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\telem.setAttribute( name, value + \"\" );\n\t\t\treturn value;\n\t\t}\n\n\t\tif ( hooks && \"get\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\n\t\t\treturn ret;\n\t\t}\n\n\t\tret = jQuery.find.attr( elem, name );\n\n\t\t// Non-existent attributes return null, we normalize to undefined\n\t\treturn ret == null ? undefined : ret;\n\t},\n\n\tattrHooks: {\n\t\ttype: {\n\t\t\tset: function( elem, value ) {\n\t\t\t\tif ( !support.radioValue && value === \"radio\" &&\n\t\t\t\t\tnodeName( elem, \"input\" ) ) {\n\t\t\t\t\tvar val = elem.value;\n\t\t\t\t\telem.setAttribute( \"type\", value );\n\t\t\t\t\tif ( val ) {\n\t\t\t\t\t\telem.value = val;\n\t\t\t\t\t}\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tremoveAttr: function( elem, value ) {\n\t\tvar name,\n\t\t\ti = 0,\n\n\t\t\t// Attribute names can contain non-HTML whitespace characters\n\t\t\t// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n\t\t\tattrNames = value && value.match( rnothtmlwhite );\n\n\t\tif ( attrNames && elem.nodeType === 1 ) {\n\t\t\twhile ( ( name = attrNames[ i++ ] ) ) {\n\t\t\t\telem.removeAttribute( name );\n\t\t\t}\n\t\t}\n\t}\n} );\n\n// Hooks for boolean attributes\nboolHook = {\n\tset: function( elem, value, name ) {\n\t\tif ( value === false ) {\n\n\t\t\t// Remove boolean attributes when set to false\n\t\t\tjQuery.removeAttr( elem, name );\n\t\t} else {\n\t\t\telem.setAttribute( name, name );\n\t\t}\n\t\treturn name;\n\t}\n};\n\njQuery.each( jQuery.expr.match.bool.source.match( /\\w+/g ), function( _i, name ) {\n\tvar getter = attrHandle[ name ] || jQuery.find.attr;\n\n\tattrHandle[ name ] = function( elem, name, isXML ) {\n\t\tvar ret, handle,\n\t\t\tlowercaseName = name.toLowerCase();\n\n\t\tif ( !isXML ) {\n\n\t\t\t// Avoid an infinite loop by temporarily removing this function from the getter\n\t\t\thandle = attrHandle[ lowercaseName ];\n\t\t\tattrHandle[ lowercaseName ] = ret;\n\t\t\tret = getter( elem, name, isXML ) != null ?\n\t\t\t\tlowercaseName :\n\t\t\t\tnull;\n\t\t\tattrHandle[ lowercaseName ] = handle;\n\t\t}\n\t\treturn ret;\n\t};\n} );\n\n\n\n\nvar rfocusable = /^(?:input|select|textarea|button)$/i,\n\trclickable = /^(?:a|area)$/i;\n\njQuery.fn.extend( {\n\tprop: function( name, value ) {\n\t\treturn access( this, jQuery.prop, name, value, arguments.length > 1 );\n\t},\n\n\tremoveProp: function( name ) {\n\t\treturn this.each( function() {\n\t\t\tdelete this[ jQuery.propFix[ name ] || name ];\n\t\t} );\n\t}\n} );\n\njQuery.extend( {\n\tprop: function( elem, name, value ) {\n\t\tvar ret, hooks,\n\t\t\tnType = elem.nodeType;\n\n\t\t// Don't get/set properties on text, comment and attribute nodes\n\t\tif ( nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\n\n\t\t\t// Fix name and attach hooks\n\t\t\tname = jQuery.propFix[ name ] || name;\n\t\t\thooks = jQuery.propHooks[ name ];\n\t\t}\n\n\t\tif ( value !== undefined ) {\n\t\t\tif ( hooks && \"set\" in hooks &&\n\t\t\t\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\treturn ( elem[ name ] = value );\n\t\t}\n\n\t\tif ( hooks && \"get\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\n\t\t\treturn ret;\n\t\t}\n\n\t\treturn elem[ name ];\n\t},\n\n\tpropHooks: {\n\t\ttabIndex: {\n\t\t\tget: function( elem ) {\n\n\t\t\t\t// Support: IE <=9 - 11 only\n\t\t\t\t// elem.tabIndex doesn't always return the\n\t\t\t\t// correct value when it hasn't been explicitly set\n\t\t\t\t// Use proper attribute retrieval (trac-12072)\n\t\t\t\tvar tabindex = jQuery.find.attr( elem, \"tabindex\" );\n\n\t\t\t\tif ( tabindex ) {\n\t\t\t\t\treturn parseInt( tabindex, 10 );\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\trfocusable.test( elem.nodeName ) ||\n\t\t\t\t\trclickable.test( elem.nodeName ) &&\n\t\t\t\t\telem.href\n\t\t\t\t) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t},\n\n\tpropFix: {\n\t\t\"for\": \"htmlFor\",\n\t\t\"class\": \"className\"\n\t}\n} );\n\n// Support: IE <=11 only\n// Accessing the selectedIndex property\n// forces the browser to respect setting selected\n// on the option\n// The getter ensures a default option is selected\n// when in an optgroup\n// eslint rule \"no-unused-expressions\" is disabled for this code\n// since it considers such accessions noop\nif ( !support.optSelected ) {\n\tjQuery.propHooks.selected = {\n\t\tget: function( elem ) {\n\n\t\t\t/* eslint no-unused-expressions: \"off\" */\n\n\t\t\tvar parent = elem.parentNode;\n\t\t\tif ( parent && parent.parentNode ) {\n\t\t\t\tparent.parentNode.selectedIndex;\n\t\t\t}\n\t\t\treturn null;\n\t\t},\n\t\tset: function( elem ) {\n\n\t\t\t/* eslint no-unused-expressions: \"off\" */\n\n\t\t\tvar parent = elem.parentNode;\n\t\t\tif ( parent ) {\n\t\t\t\tparent.selectedIndex;\n\n\t\t\t\tif ( parent.parentNode ) {\n\t\t\t\t\tparent.parentNode.selectedIndex;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\njQuery.each( [\n\t\"tabIndex\",\n\t\"readOnly\",\n\t\"maxLength\",\n\t\"cellSpacing\",\n\t\"cellPadding\",\n\t\"rowSpan\",\n\t\"colSpan\",\n\t\"useMap\",\n\t\"frameBorder\",\n\t\"contentEditable\"\n], function() {\n\tjQuery.propFix[ this.toLowerCase() ] = this;\n} );\n\n\n\n\n\t// Strip and collapse whitespace according to HTML spec\n\t// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace\n\tfunction stripAndCollapse( value ) {\n\t\tvar tokens = value.match( rnothtmlwhite ) || [];\n\t\treturn tokens.join( \" \" );\n\t}\n\n\nfunction getClass( elem ) {\n\treturn elem.getAttribute && elem.getAttribute( \"class\" ) || \"\";\n}\n\nfunction classesToArray( value ) {\n\tif ( Array.isArray( value ) ) {\n\t\treturn value;\n\t}\n\tif ( typeof value === \"string\" ) {\n\t\treturn value.match( rnothtmlwhite ) || [];\n\t}\n\treturn [];\n}\n\njQuery.fn.extend( {\n\taddClass: function( value ) {\n\t\tvar classNames, cur, curValue, className, i, finalValue;\n\n\t\tif ( isFunction( value ) ) {\n\t\t\treturn this.each( function( j ) {\n\t\t\t\tjQuery( this ).addClass( value.call( this, j, getClass( this ) ) );\n\t\t\t} );\n\t\t}\n\n\t\tclassNames = classesToArray( value );\n\n\t\tif ( classNames.length ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tcurValue = getClass( this );\n\t\t\t\tcur = this.nodeType === 1 && ( \" \" + stripAndCollapse( curValue ) + \" \" );\n\n\t\t\t\tif ( cur ) {\n\t\t\t\t\tfor ( i = 0; i < classNames.length; i++ ) {\n\t\t\t\t\t\tclassName = classNames[ i ];\n\t\t\t\t\t\tif ( cur.indexOf( \" \" + className + \" \" ) < 0 ) {\n\t\t\t\t\t\t\tcur += className + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Only assign if different to avoid unneeded rendering.\n\t\t\t\t\tfinalValue = stripAndCollapse( cur );\n\t\t\t\t\tif ( curValue !== finalValue ) {\n\t\t\t\t\t\tthis.setAttribute( \"class\", finalValue );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tremoveClass: function( value ) {\n\t\tvar classNames, cur, curValue, className, i, finalValue;\n\n\t\tif ( isFunction( value ) ) {\n\t\t\treturn this.each( function( j ) {\n\t\t\t\tjQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );\n\t\t\t} );\n\t\t}\n\n\t\tif ( !arguments.length ) {\n\t\t\treturn this.attr( \"class\", \"\" );\n\t\t}\n\n\t\tclassNames = classesToArray( value );\n\n\t\tif ( classNames.length ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tcurValue = getClass( this );\n\n\t\t\t\t// This expression is here for better compressibility (see addClass)\n\t\t\t\tcur = this.nodeType === 1 && ( \" \" + stripAndCollapse( curValue ) + \" \" );\n\n\t\t\t\tif ( cur ) {\n\t\t\t\t\tfor ( i = 0; i < classNames.length; i++ ) {\n\t\t\t\t\t\tclassName = classNames[ i ];\n\n\t\t\t\t\t\t// Remove *all* instances\n\t\t\t\t\t\twhile ( cur.indexOf( \" \" + className + \" \" ) > -1 ) {\n\t\t\t\t\t\t\tcur = cur.replace( \" \" + className + \" \", \" \" );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Only assign if different to avoid unneeded rendering.\n\t\t\t\t\tfinalValue = stripAndCollapse( cur );\n\t\t\t\t\tif ( curValue !== finalValue ) {\n\t\t\t\t\t\tthis.setAttribute( \"class\", finalValue );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\n\t\treturn this;\n\t},\n\n\ttoggleClass: function( value, stateVal ) {\n\t\tvar classNames, className, i, self,\n\t\t\ttype = typeof value,\n\t\t\tisValidValue = type === \"string\" || Array.isArray( value );\n\n\t\tif ( isFunction( value ) ) {\n\t\t\treturn this.each( function( i ) {\n\t\t\t\tjQuery( this ).toggleClass(\n\t\t\t\t\tvalue.call( this, i, getClass( this ), stateVal ),\n\t\t\t\t\tstateVal\n\t\t\t\t);\n\t\t\t} );\n\t\t}\n\n\t\tif ( typeof stateVal === \"boolean\" && isValidValue ) {\n\t\t\treturn stateVal ? this.addClass( value ) : this.removeClass( value );\n\t\t}\n\n\t\tclassNames = classesToArray( value );\n\n\t\treturn this.each( function() {\n\t\t\tif ( isValidValue ) {\n\n\t\t\t\t// Toggle individual class names\n\t\t\t\tself = jQuery( this );\n\n\t\t\t\tfor ( i = 0; i < classNames.length; i++ ) {\n\t\t\t\t\tclassName = classNames[ i ];\n\n\t\t\t\t\t// Check each className given, space separated list\n\t\t\t\t\tif ( self.hasClass( className ) ) {\n\t\t\t\t\t\tself.removeClass( className );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tself.addClass( className );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// Toggle whole class name\n\t\t\t} else if ( value === undefined || type === \"boolean\" ) {\n\t\t\t\tclassName = getClass( this );\n\t\t\t\tif ( className ) {\n\n\t\t\t\t\t// Store className if set\n\t\t\t\t\tdataPriv.set( this, \"__className__\", className );\n\t\t\t\t}\n\n\t\t\t\t// If the element has a class name or if we're passed `false`,\n\t\t\t\t// then remove the whole classname (if there was one, the above saved it).\n\t\t\t\t// Otherwise bring back whatever was previously saved (if anything),\n\t\t\t\t// falling back to the empty string if nothing was stored.\n\t\t\t\tif ( this.setAttribute ) {\n\t\t\t\t\tthis.setAttribute( \"class\",\n\t\t\t\t\t\tclassName || value === false ?\n\t\t\t\t\t\t\t\"\" :\n\t\t\t\t\t\t\tdataPriv.get( this, \"__className__\" ) || \"\"\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t},\n\n\thasClass: function( selector ) {\n\t\tvar className, elem,\n\t\t\ti = 0;\n\n\t\tclassName = \" \" + selector + \" \";\n\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\tif ( elem.nodeType === 1 &&\n\t\t\t\t( \" \" + stripAndCollapse( getClass( elem ) ) + \" \" ).indexOf( className ) > -1 ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n} );\n\n\n\n\nvar rreturn = /\\r/g;\n\njQuery.fn.extend( {\n\tval: function( value ) {\n\t\tvar hooks, ret, valueIsFunction,\n\t\t\telem = this[ 0 ];\n\n\t\tif ( !arguments.length ) {\n\t\t\tif ( elem ) {\n\t\t\t\thooks = jQuery.valHooks[ elem.type ] ||\n\t\t\t\t\tjQuery.valHooks[ elem.nodeName.toLowerCase() ];\n\n\t\t\t\tif ( hooks &&\n\t\t\t\t\t\"get\" in hooks &&\n\t\t\t\t\t( ret = hooks.get( elem, \"value\" ) ) !== undefined\n\t\t\t\t) {\n\t\t\t\t\treturn ret;\n\t\t\t\t}\n\n\t\t\t\tret = elem.value;\n\n\t\t\t\t// Handle most common string cases\n\t\t\t\tif ( typeof ret === \"string\" ) {\n\t\t\t\t\treturn ret.replace( rreturn, \"\" );\n\t\t\t\t}\n\n\t\t\t\t// Handle cases where value is null/undef or number\n\t\t\t\treturn ret == null ? \"\" : ret;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvalueIsFunction = isFunction( value );\n\n\t\treturn this.each( function( i ) {\n\t\t\tvar val;\n\n\t\t\tif ( this.nodeType !== 1 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( valueIsFunction ) {\n\t\t\t\tval = value.call( this, i, jQuery( this ).val() );\n\t\t\t} else {\n\t\t\t\tval = value;\n\t\t\t}\n\n\t\t\t// Treat null/undefined as \"\"; convert numbers to string\n\t\t\tif ( val == null ) {\n\t\t\t\tval = \"\";\n\n\t\t\t} else if ( typeof val === \"number\" ) {\n\t\t\t\tval += \"\";\n\n\t\t\t} else if ( Array.isArray( val ) ) {\n\t\t\t\tval = jQuery.map( val, function( value ) {\n\t\t\t\t\treturn value == null ? \"\" : value + \"\";\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\thooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];\n\n\t\t\t// If set returns undefined, fall back to normal setting\n\t\t\tif ( !hooks || !( \"set\" in hooks ) || hooks.set( this, val, \"value\" ) === undefined ) {\n\t\t\t\tthis.value = val;\n\t\t\t}\n\t\t} );\n\t}\n} );\n\njQuery.extend( {\n\tvalHooks: {\n\t\toption: {\n\t\t\tget: function( elem ) {\n\n\t\t\t\tvar val = jQuery.find.attr( elem, \"value\" );\n\t\t\t\treturn val != null ?\n\t\t\t\t\tval :\n\n\t\t\t\t\t// Support: IE <=10 - 11 only\n\t\t\t\t\t// option.text throws exceptions (trac-14686, trac-14858)\n\t\t\t\t\t// Strip and collapse whitespace\n\t\t\t\t\t// https://html.spec.whatwg.org/#strip-and-collapse-whitespace\n\t\t\t\t\tstripAndCollapse( jQuery.text( elem ) );\n\t\t\t}\n\t\t},\n\t\tselect: {\n\t\t\tget: function( elem ) {\n\t\t\t\tvar value, option, i,\n\t\t\t\t\toptions = elem.options,\n\t\t\t\t\tindex = elem.selectedIndex,\n\t\t\t\t\tone = elem.type === \"select-one\",\n\t\t\t\t\tvalues = one ? null : [],\n\t\t\t\t\tmax = one ? index + 1 : options.length;\n\n\t\t\t\tif ( index < 0 ) {\n\t\t\t\t\ti = max;\n\n\t\t\t\t} else {\n\t\t\t\t\ti = one ? index : 0;\n\t\t\t\t}\n\n\t\t\t\t// Loop through all the selected options\n\t\t\t\tfor ( ; i < max; i++ ) {\n\t\t\t\t\toption = options[ i ];\n\n\t\t\t\t\t// Support: IE <=9 only\n\t\t\t\t\t// IE8-9 doesn't update selected after form reset (trac-2551)\n\t\t\t\t\tif ( ( option.selected || i === index ) &&\n\n\t\t\t\t\t\t\t// Don't return options that are disabled or in a disabled optgroup\n\t\t\t\t\t\t\t!option.disabled &&\n\t\t\t\t\t\t\t( !option.parentNode.disabled ||\n\t\t\t\t\t\t\t\t!nodeName( option.parentNode, \"optgroup\" ) ) ) {\n\n\t\t\t\t\t\t// Get the specific value for the option\n\t\t\t\t\t\tvalue = jQuery( option ).val();\n\n\t\t\t\t\t\t// We don't need an array for one selects\n\t\t\t\t\t\tif ( one ) {\n\t\t\t\t\t\t\treturn value;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Multi-Selects return an array\n\t\t\t\t\t\tvalues.push( value );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn values;\n\t\t\t},\n\n\t\t\tset: function( elem, value ) {\n\t\t\t\tvar optionSet, option,\n\t\t\t\t\toptions = elem.options,\n\t\t\t\t\tvalues = jQuery.makeArray( value ),\n\t\t\t\t\ti = options.length;\n\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\toption = options[ i ];\n\n\t\t\t\t\t/* eslint-disable no-cond-assign */\n\n\t\t\t\t\tif ( option.selected =\n\t\t\t\t\t\tjQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1\n\t\t\t\t\t) {\n\t\t\t\t\t\toptionSet = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* eslint-enable no-cond-assign */\n\t\t\t\t}\n\n\t\t\t\t// Force browsers to behave consistently when non-matching value is set\n\t\t\t\tif ( !optionSet ) {\n\t\t\t\t\telem.selectedIndex = -1;\n\t\t\t\t}\n\t\t\t\treturn values;\n\t\t\t}\n\t\t}\n\t}\n} );\n\n// Radios and checkboxes getter/setter\njQuery.each( [ \"radio\", \"checkbox\" ], function() {\n\tjQuery.valHooks[ this ] = {\n\t\tset: function( elem, value ) {\n\t\t\tif ( Array.isArray( value ) ) {\n\t\t\t\treturn ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );\n\t\t\t}\n\t\t}\n\t};\n\tif ( !support.checkOn ) {\n\t\tjQuery.valHooks[ this ].get = function( elem ) {\n\t\t\treturn elem.getAttribute( \"value\" ) === null ? \"on\" : elem.value;\n\t\t};\n\t}\n} );\n\n\n\n\n// Return jQuery for attributes-only inclusion\nvar location = window.location;\n\nvar nonce = { guid: Date.now() };\n\nvar rquery = ( /\\?/ );\n\n\n\n// Cross-browser xml parsing\njQuery.parseXML = function( data ) {\n\tvar xml, parserErrorElem;\n\tif ( !data || typeof data !== \"string\" ) {\n\t\treturn null;\n\t}\n\n\t// Support: IE 9 - 11 only\n\t// IE throws on parseFromString with invalid input.\n\ttry {\n\t\txml = ( new window.DOMParser() ).parseFromString( data, \"text/xml\" );\n\t} catch ( e ) {}\n\n\tparserErrorElem = xml && xml.getElementsByTagName( \"parsererror\" )[ 0 ];\n\tif ( !xml || parserErrorElem ) {\n\t\tjQuery.error( \"Invalid XML: \" + (\n\t\t\tparserErrorElem ?\n\t\t\t\tjQuery.map( parserErrorElem.childNodes, function( el ) {\n\t\t\t\t\treturn el.textContent;\n\t\t\t\t} ).join( \"\\n\" ) :\n\t\t\t\tdata\n\t\t) );\n\t}\n\treturn xml;\n};\n\n\nvar rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,\n\tstopPropagationCallback = function( e ) {\n\t\te.stopPropagation();\n\t};\n\njQuery.extend( jQuery.event, {\n\n\ttrigger: function( event, data, elem, onlyHandlers ) {\n\n\t\tvar i, cur, tmp, bubbleType, ontype, handle, special, lastElement,\n\t\t\teventPath = [ elem || document ],\n\t\t\ttype = hasOwn.call( event, \"type\" ) ? event.type : event,\n\t\t\tnamespaces = hasOwn.call( event, \"namespace\" ) ? event.namespace.split( \".\" ) : [];\n\n\t\tcur = lastElement = tmp = elem = elem || document;\n\n\t\t// Don't do events on text and comment nodes\n\t\tif ( elem.nodeType === 3 || elem.nodeType === 8 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// focus/blur morphs to focusin/out; ensure we're not firing them right now\n\t\tif ( rfocusMorph.test( type + jQuery.event.triggered ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( type.indexOf( \".\" ) > -1 ) {\n\n\t\t\t// Namespaced trigger; create a regexp to match event type in handle()\n\t\t\tnamespaces = type.split( \".\" );\n\t\t\ttype = namespaces.shift();\n\t\t\tnamespaces.sort();\n\t\t}\n\t\tontype = type.indexOf( \":\" ) < 0 && \"on\" + type;\n\n\t\t// Caller can pass in a jQuery.Event object, Object, or just an event type string\n\t\tevent = event[ jQuery.expando ] ?\n\t\t\tevent :\n\t\t\tnew jQuery.Event( type, typeof event === \"object\" && event );\n\n\t\t// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)\n\t\tevent.isTrigger = onlyHandlers ? 2 : 3;\n\t\tevent.namespace = namespaces.join( \".\" );\n\t\tevent.rnamespace = event.namespace ?\n\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" ) :\n\t\t\tnull;\n\n\t\t// Clean up the event in case it is being reused\n\t\tevent.result = undefined;\n\t\tif ( !event.target ) {\n\t\t\tevent.target = elem;\n\t\t}\n\n\t\t// Clone any incoming data and prepend the event, creating the handler arg list\n\t\tdata = data == null ?\n\t\t\t[ event ] :\n\t\t\tjQuery.makeArray( data, [ event ] );\n\n\t\t// Allow special events to draw outside the lines\n\t\tspecial = jQuery.event.special[ type ] || {};\n\t\tif ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine event propagation path in advance, per W3C events spec (trac-9951)\n\t\t// Bubble up to document, then to window; watch for a global ownerDocument var (trac-9724)\n\t\tif ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) {\n\n\t\t\tbubbleType = special.delegateType || type;\n\t\t\tif ( !rfocusMorph.test( bubbleType + type ) ) {\n\t\t\t\tcur = cur.parentNode;\n\t\t\t}\n\t\t\tfor ( ; cur; cur = cur.parentNode ) {\n\t\t\t\teventPath.push( cur );\n\t\t\t\ttmp = cur;\n\t\t\t}\n\n\t\t\t// Only add window if we got to document (e.g., not plain obj or detached DOM)\n\t\t\tif ( tmp === ( elem.ownerDocument || document ) ) {\n\t\t\t\teventPath.push( tmp.defaultView || tmp.parentWindow || window );\n\t\t\t}\n\t\t}\n\n\t\t// Fire handlers on the event path\n\t\ti = 0;\n\t\twhile ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {\n\t\t\tlastElement = cur;\n\t\t\tevent.type = i > 1 ?\n\t\t\t\tbubbleType :\n\t\t\t\tspecial.bindType || type;\n\n\t\t\t// jQuery handler\n\t\t\thandle = ( dataPriv.get( cur, \"events\" ) || Object.create( null ) )[ event.type ] &&\n\t\t\t\tdataPriv.get( cur, \"handle\" );\n\t\t\tif ( handle ) {\n\t\t\t\thandle.apply( cur, data );\n\t\t\t}\n\n\t\t\t// Native handler\n\t\t\thandle = ontype && cur[ ontype ];\n\t\t\tif ( handle && handle.apply && acceptData( cur ) ) {\n\t\t\t\tevent.result = handle.apply( cur, data );\n\t\t\t\tif ( event.result === false ) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tevent.type = type;\n\n\t\t// If nobody prevented the default action, do it now\n\t\tif ( !onlyHandlers && !event.isDefaultPrevented() ) {\n\n\t\t\tif ( ( !special._default ||\n\t\t\t\tspecial._default.apply( eventPath.pop(), data ) === false ) &&\n\t\t\t\tacceptData( elem ) ) {\n\n\t\t\t\t// Call a native DOM method on the target with the same name as the event.\n\t\t\t\t// Don't do default actions on window, that's where global variables be (trac-6170)\n\t\t\t\tif ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) {\n\n\t\t\t\t\t// Don't re-trigger an onFOO event when we call its FOO() method\n\t\t\t\t\ttmp = elem[ ontype ];\n\n\t\t\t\t\tif ( tmp ) {\n\t\t\t\t\t\telem[ ontype ] = null;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prevent re-triggering of the same event, since we already bubbled it above\n\t\t\t\t\tjQuery.event.triggered = type;\n\n\t\t\t\t\tif ( event.isPropagationStopped() ) {\n\t\t\t\t\t\tlastElement.addEventListener( type, stopPropagationCallback );\n\t\t\t\t\t}\n\n\t\t\t\t\telem[ type ]();\n\n\t\t\t\t\tif ( event.isPropagationStopped() ) {\n\t\t\t\t\t\tlastElement.removeEventListener( type, stopPropagationCallback );\n\t\t\t\t\t}\n\n\t\t\t\t\tjQuery.event.triggered = undefined;\n\n\t\t\t\t\tif ( tmp ) {\n\t\t\t\t\t\telem[ ontype ] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\t// Piggyback on a donor event to simulate a different one\n\t// Used only for `focus(in | out)` events\n\tsimulate: function( type, elem, event ) {\n\t\tvar e = jQuery.extend(\n\t\t\tnew jQuery.Event(),\n\t\t\tevent,\n\t\t\t{\n\t\t\t\ttype: type,\n\t\t\t\tisSimulated: true\n\t\t\t}\n\t\t);\n\n\t\tjQuery.event.trigger( e, null, elem );\n\t}\n\n} );\n\njQuery.fn.extend( {\n\n\ttrigger: function( type, data ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.event.trigger( type, data, this );\n\t\t} );\n\t},\n\ttriggerHandler: function( type, data ) {\n\t\tvar elem = this[ 0 ];\n\t\tif ( elem ) {\n\t\t\treturn jQuery.event.trigger( type, data, elem, true );\n\t\t}\n\t}\n} );\n\n\nvar\n\trbracket = /\\[\\]$/,\n\trCRLF = /\\r?\\n/g,\n\trsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,\n\trsubmittable = /^(?:input|select|textarea|keygen)/i;\n\nfunction buildParams( prefix, obj, traditional, add ) {\n\tvar name;\n\n\tif ( Array.isArray( obj ) ) {\n\n\t\t// Serialize array item.\n\t\tjQuery.each( obj, function( i, v ) {\n\t\t\tif ( traditional || rbracket.test( prefix ) ) {\n\n\t\t\t\t// Treat each array item as a scalar.\n\t\t\t\tadd( prefix, v );\n\n\t\t\t} else {\n\n\t\t\t\t// Item is non-scalar (array or object), encode its numeric index.\n\t\t\t\tbuildParams(\n\t\t\t\t\tprefix + \"[\" + ( typeof v === \"object\" && v != null ? i : \"\" ) + \"]\",\n\t\t\t\t\tv,\n\t\t\t\t\ttraditional,\n\t\t\t\t\tadd\n\t\t\t\t);\n\t\t\t}\n\t\t} );\n\n\t} else if ( !traditional && toType( obj ) === \"object\" ) {\n\n\t\t// Serialize object item.\n\t\tfor ( name in obj ) {\n\t\t\tbuildParams( prefix + \"[\" + name + \"]\", obj[ name ], traditional, add );\n\t\t}\n\n\t} else {\n\n\t\t// Serialize scalar item.\n\t\tadd( prefix, obj );\n\t}\n}\n\n// Serialize an array of form elements or a set of\n// key/values into a query string\njQuery.param = function( a, traditional ) {\n\tvar prefix,\n\t\ts = [],\n\t\tadd = function( key, valueOrFunction ) {\n\n\t\t\t// If value is a function, invoke it and use its return value\n\t\t\tvar value = isFunction( valueOrFunction ) ?\n\t\t\t\tvalueOrFunction() :\n\t\t\t\tvalueOrFunction;\n\n\t\t\ts[ s.length ] = encodeURIComponent( key ) + \"=\" +\n\t\t\t\tencodeURIComponent( value == null ? \"\" : value );\n\t\t};\n\n\tif ( a == null ) {\n\t\treturn \"\";\n\t}\n\n\t// If an array was passed in, assume that it is an array of form elements.\n\tif ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {\n\n\t\t// Serialize the form elements\n\t\tjQuery.each( a, function() {\n\t\t\tadd( this.name, this.value );\n\t\t} );\n\n\t} else {\n\n\t\t// If traditional, encode the \"old\" way (the way 1.3.2 or older\n\t\t// did it), otherwise encode params recursively.\n\t\tfor ( prefix in a ) {\n\t\t\tbuildParams( prefix, a[ prefix ], traditional, add );\n\t\t}\n\t}\n\n\t// Return the resulting serialization\n\treturn s.join( \"&\" );\n};\n\njQuery.fn.extend( {\n\tserialize: function() {\n\t\treturn jQuery.param( this.serializeArray() );\n\t},\n\tserializeArray: function() {\n\t\treturn this.map( function() {\n\n\t\t\t// Can add propHook for \"elements\" to filter or add form elements\n\t\t\tvar elements = jQuery.prop( this, \"elements\" );\n\t\t\treturn elements ? jQuery.makeArray( elements ) : this;\n\t\t} ).filter( function() {\n\t\t\tvar type = this.type;\n\n\t\t\t// Use .is( \":disabled\" ) so that fieldset[disabled] works\n\t\t\treturn this.name && !jQuery( this ).is( \":disabled\" ) &&\n\t\t\t\trsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&\n\t\t\t\t( this.checked || !rcheckableType.test( type ) );\n\t\t} ).map( function( _i, elem ) {\n\t\t\tvar val = jQuery( this ).val();\n\n\t\t\tif ( val == null ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif ( Array.isArray( val ) ) {\n\t\t\t\treturn jQuery.map( val, function( val ) {\n\t\t\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t} ).get();\n\t}\n} );\n\n\nvar\n\tr20 = /%20/g,\n\trhash = /#.*$/,\n\trantiCache = /([?&])_=[^&]*/,\n\trheaders = /^(.*?):[ \\t]*([^\\r\\n]*)$/mg,\n\n\t// trac-7653, trac-8125, trac-8152: local protocol detection\n\trlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,\n\trnoContent = /^(?:GET|HEAD)$/,\n\trprotocol = /^\\/\\//,\n\n\t/* Prefilters\n\t * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)\n\t * 2) These are called:\n\t *    - BEFORE asking for a transport\n\t *    - AFTER param serialization (s.data is a string if s.processData is true)\n\t * 3) key is the dataType\n\t * 4) the catchall symbol \"*\" can be used\n\t * 5) execution will start with transport dataType and THEN continue down to \"*\" if needed\n\t */\n\tprefilters = {},\n\n\t/* Transports bindings\n\t * 1) key is the dataType\n\t * 2) the catchall symbol \"*\" can be used\n\t * 3) selection will start with transport dataType and THEN go to \"*\" if needed\n\t */\n\ttransports = {},\n\n\t// Avoid comment-prolog char sequence (trac-10098); must appease lint and evade compression\n\tallTypes = \"*/\".concat( \"*\" ),\n\n\t// Anchor tag for parsing the document origin\n\toriginAnchor = document.createElement( \"a\" );\n\noriginAnchor.href = location.href;\n\n// Base \"constructor\" for jQuery.ajaxPrefilter and jQuery.ajaxTransport\nfunction addToPrefiltersOrTransports( structure ) {\n\n\t// dataTypeExpression is optional and defaults to \"*\"\n\treturn function( dataTypeExpression, func ) {\n\n\t\tif ( typeof dataTypeExpression !== \"string\" ) {\n\t\t\tfunc = dataTypeExpression;\n\t\t\tdataTypeExpression = \"*\";\n\t\t}\n\n\t\tvar dataType,\n\t\t\ti = 0,\n\t\t\tdataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];\n\n\t\tif ( isFunction( func ) ) {\n\n\t\t\t// For each dataType in the dataTypeExpression\n\t\t\twhile ( ( dataType = dataTypes[ i++ ] ) ) {\n\n\t\t\t\t// Prepend if requested\n\t\t\t\tif ( dataType[ 0 ] === \"+\" ) {\n\t\t\t\t\tdataType = dataType.slice( 1 ) || \"*\";\n\t\t\t\t\t( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );\n\n\t\t\t\t// Otherwise append\n\t\t\t\t} else {\n\t\t\t\t\t( structure[ dataType ] = structure[ dataType ] || [] ).push( func );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\n// Base inspection function for prefilters and transports\nfunction inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {\n\n\tvar inspected = {},\n\t\tseekingTransport = ( structure === transports );\n\n\tfunction inspect( dataType ) {\n\t\tvar selected;\n\t\tinspected[ dataType ] = true;\n\t\tjQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {\n\t\t\tvar dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );\n\t\t\tif ( typeof dataTypeOrTransport === \"string\" &&\n\t\t\t\t!seekingTransport && !inspected[ dataTypeOrTransport ] ) {\n\n\t\t\t\toptions.dataTypes.unshift( dataTypeOrTransport );\n\t\t\t\tinspect( dataTypeOrTransport );\n\t\t\t\treturn false;\n\t\t\t} else if ( seekingTransport ) {\n\t\t\t\treturn !( selected = dataTypeOrTransport );\n\t\t\t}\n\t\t} );\n\t\treturn selected;\n\t}\n\n\treturn inspect( options.dataTypes[ 0 ] ) || !inspected[ \"*\" ] && inspect( \"*\" );\n}\n\n// A special extend for ajax options\n// that takes \"flat\" options (not to be deep extended)\n// Fixes trac-9887\nfunction ajaxExtend( target, src ) {\n\tvar key, deep,\n\t\tflatOptions = jQuery.ajaxSettings.flatOptions || {};\n\n\tfor ( key in src ) {\n\t\tif ( src[ key ] !== undefined ) {\n\t\t\t( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];\n\t\t}\n\t}\n\tif ( deep ) {\n\t\tjQuery.extend( true, target, deep );\n\t}\n\n\treturn target;\n}\n\n/* Handles responses to an ajax request:\n * - finds the right dataType (mediates between content-type and expected dataType)\n * - returns the corresponding response\n */\nfunction ajaxHandleResponses( s, jqXHR, responses ) {\n\n\tvar ct, type, finalDataType, firstDataType,\n\t\tcontents = s.contents,\n\t\tdataTypes = s.dataTypes;\n\n\t// Remove auto dataType and get content-type in the process\n\twhile ( dataTypes[ 0 ] === \"*\" ) {\n\t\tdataTypes.shift();\n\t\tif ( ct === undefined ) {\n\t\t\tct = s.mimeType || jqXHR.getResponseHeader( \"Content-Type\" );\n\t\t}\n\t}\n\n\t// Check if we're dealing with a known content-type\n\tif ( ct ) {\n\t\tfor ( type in contents ) {\n\t\t\tif ( contents[ type ] && contents[ type ].test( ct ) ) {\n\t\t\t\tdataTypes.unshift( type );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Check to see if we have a response for the expected dataType\n\tif ( dataTypes[ 0 ] in responses ) {\n\t\tfinalDataType = dataTypes[ 0 ];\n\t} else {\n\n\t\t// Try convertible dataTypes\n\t\tfor ( type in responses ) {\n\t\t\tif ( !dataTypes[ 0 ] || s.converters[ type + \" \" + dataTypes[ 0 ] ] ) {\n\t\t\t\tfinalDataType = type;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( !firstDataType ) {\n\t\t\t\tfirstDataType = type;\n\t\t\t}\n\t\t}\n\n\t\t// Or just use first one\n\t\tfinalDataType = finalDataType || firstDataType;\n\t}\n\n\t// If we found a dataType\n\t// We add the dataType to the list if needed\n\t// and return the corresponding response\n\tif ( finalDataType ) {\n\t\tif ( finalDataType !== dataTypes[ 0 ] ) {\n\t\t\tdataTypes.unshift( finalDataType );\n\t\t}\n\t\treturn responses[ finalDataType ];\n\t}\n}\n\n/* Chain conversions given the request and the original response\n * Also sets the responseXXX fields on the jqXHR instance\n */\nfunction ajaxConvert( s, response, jqXHR, isSuccess ) {\n\tvar conv2, current, conv, tmp, prev,\n\t\tconverters = {},\n\n\t\t// Work with a copy of dataTypes in case we need to modify it for conversion\n\t\tdataTypes = s.dataTypes.slice();\n\n\t// Create converters map with lowercased keys\n\tif ( dataTypes[ 1 ] ) {\n\t\tfor ( conv in s.converters ) {\n\t\t\tconverters[ conv.toLowerCase() ] = s.converters[ conv ];\n\t\t}\n\t}\n\n\tcurrent = dataTypes.shift();\n\n\t// Convert to each sequential dataType\n\twhile ( current ) {\n\n\t\tif ( s.responseFields[ current ] ) {\n\t\t\tjqXHR[ s.responseFields[ current ] ] = response;\n\t\t}\n\n\t\t// Apply the dataFilter if provided\n\t\tif ( !prev && isSuccess && s.dataFilter ) {\n\t\t\tresponse = s.dataFilter( response, s.dataType );\n\t\t}\n\n\t\tprev = current;\n\t\tcurrent = dataTypes.shift();\n\n\t\tif ( current ) {\n\n\t\t\t// There's only work to do if current dataType is non-auto\n\t\t\tif ( current === \"*\" ) {\n\n\t\t\t\tcurrent = prev;\n\n\t\t\t// Convert response if prev dataType is non-auto and differs from current\n\t\t\t} else if ( prev !== \"*\" && prev !== current ) {\n\n\t\t\t\t// Seek a direct converter\n\t\t\t\tconv = converters[ prev + \" \" + current ] || converters[ \"* \" + current ];\n\n\t\t\t\t// If none found, seek a pair\n\t\t\t\tif ( !conv ) {\n\t\t\t\t\tfor ( conv2 in converters ) {\n\n\t\t\t\t\t\t// If conv2 outputs current\n\t\t\t\t\t\ttmp = conv2.split( \" \" );\n\t\t\t\t\t\tif ( tmp[ 1 ] === current ) {\n\n\t\t\t\t\t\t\t// If prev can be converted to accepted input\n\t\t\t\t\t\t\tconv = converters[ prev + \" \" + tmp[ 0 ] ] ||\n\t\t\t\t\t\t\t\tconverters[ \"* \" + tmp[ 0 ] ];\n\t\t\t\t\t\t\tif ( conv ) {\n\n\t\t\t\t\t\t\t\t// Condense equivalence converters\n\t\t\t\t\t\t\t\tif ( conv === true ) {\n\t\t\t\t\t\t\t\t\tconv = converters[ conv2 ];\n\n\t\t\t\t\t\t\t\t// Otherwise, insert the intermediate dataType\n\t\t\t\t\t\t\t\t} else if ( converters[ conv2 ] !== true ) {\n\t\t\t\t\t\t\t\t\tcurrent = tmp[ 0 ];\n\t\t\t\t\t\t\t\t\tdataTypes.unshift( tmp[ 1 ] );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Apply converter (if not an equivalence)\n\t\t\t\tif ( conv !== true ) {\n\n\t\t\t\t\t// Unless errors are allowed to bubble, catch and return them\n\t\t\t\t\tif ( conv && s.throws ) {\n\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tstate: \"parsererror\",\n\t\t\t\t\t\t\t\terror: conv ? e : \"No conversion from \" + prev + \" to \" + current\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn { state: \"success\", data: response };\n}\n\njQuery.extend( {\n\n\t// Counter for holding the number of active queries\n\tactive: 0,\n\n\t// Last-Modified header cache for next request\n\tlastModified: {},\n\tetag: {},\n\n\tajaxSettings: {\n\t\turl: location.href,\n\t\ttype: \"GET\",\n\t\tisLocal: rlocalProtocol.test( location.protocol ),\n\t\tglobal: true,\n\t\tprocessData: true,\n\t\tasync: true,\n\t\tcontentType: \"application/x-www-form-urlencoded; charset=UTF-8\",\n\n\t\t/*\n\t\ttimeout: 0,\n\t\tdata: null,\n\t\tdataType: null,\n\t\tusername: null,\n\t\tpassword: null,\n\t\tcache: null,\n\t\tthrows: false,\n\t\ttraditional: false,\n\t\theaders: {},\n\t\t*/\n\n\t\taccepts: {\n\t\t\t\"*\": allTypes,\n\t\t\ttext: \"text/plain\",\n\t\t\thtml: \"text/html\",\n\t\t\txml: \"application/xml, text/xml\",\n\t\t\tjson: \"application/json, text/javascript\"\n\t\t},\n\n\t\tcontents: {\n\t\t\txml: /\\bxml\\b/,\n\t\t\thtml: /\\bhtml/,\n\t\t\tjson: /\\bjson\\b/\n\t\t},\n\n\t\tresponseFields: {\n\t\t\txml: \"responseXML\",\n\t\t\ttext: \"responseText\",\n\t\t\tjson: \"responseJSON\"\n\t\t},\n\n\t\t// Data converters\n\t\t// Keys separate source (or catchall \"*\") and destination types with a single space\n\t\tconverters: {\n\n\t\t\t// Convert anything to text\n\t\t\t\"* text\": String,\n\n\t\t\t// Text to html (true = no transformation)\n\t\t\t\"text html\": true,\n\n\t\t\t// Evaluate text as a json expression\n\t\t\t\"text json\": JSON.parse,\n\n\t\t\t// Parse text as xml\n\t\t\t\"text xml\": jQuery.parseXML\n\t\t},\n\n\t\t// For options that shouldn't be deep extended:\n\t\t// you can add your own custom options here if\n\t\t// and when you create one that shouldn't be\n\t\t// deep extended (see ajaxExtend)\n\t\tflatOptions: {\n\t\t\turl: true,\n\t\t\tcontext: true\n\t\t}\n\t},\n\n\t// Creates a full fledged settings object into target\n\t// with both ajaxSettings and settings fields.\n\t// If target is omitted, writes into ajaxSettings.\n\tajaxSetup: function( target, settings ) {\n\t\treturn settings ?\n\n\t\t\t// Building a settings object\n\t\t\tajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :\n\n\t\t\t// Extending ajaxSettings\n\t\t\tajaxExtend( jQuery.ajaxSettings, target );\n\t},\n\n\tajaxPrefilter: addToPrefiltersOrTransports( prefilters ),\n\tajaxTransport: addToPrefiltersOrTransports( transports ),\n\n\t// Main method\n\tajax: function( url, options ) {\n\n\t\t// If url is an object, simulate pre-1.5 signature\n\t\tif ( typeof url === \"object\" ) {\n\t\t\toptions = url;\n\t\t\turl = undefined;\n\t\t}\n\n\t\t// Force options to be an object\n\t\toptions = options || {};\n\n\t\tvar transport,\n\n\t\t\t// URL without anti-cache param\n\t\t\tcacheURL,\n\n\t\t\t// Response headers\n\t\t\tresponseHeadersString,\n\t\t\tresponseHeaders,\n\n\t\t\t// timeout handle\n\t\t\ttimeoutTimer,\n\n\t\t\t// Url cleanup var\n\t\t\turlAnchor,\n\n\t\t\t// Request state (becomes false upon send and true upon completion)\n\t\t\tcompleted,\n\n\t\t\t// To know if global events are to be dispatched\n\t\t\tfireGlobals,\n\n\t\t\t// Loop variable\n\t\t\ti,\n\n\t\t\t// uncached part of the url\n\t\t\tuncached,\n\n\t\t\t// Create the final options object\n\t\t\ts = jQuery.ajaxSetup( {}, options ),\n\n\t\t\t// Callbacks context\n\t\t\tcallbackContext = s.context || s,\n\n\t\t\t// Context for global events is callbackContext if it is a DOM node or jQuery collection\n\t\t\tglobalEventContext = s.context &&\n\t\t\t\t( callbackContext.nodeType || callbackContext.jquery ) ?\n\t\t\t\tjQuery( callbackContext ) :\n\t\t\t\tjQuery.event,\n\n\t\t\t// Deferreds\n\t\t\tdeferred = jQuery.Deferred(),\n\t\t\tcompleteDeferred = jQuery.Callbacks( \"once memory\" ),\n\n\t\t\t// Status-dependent callbacks\n\t\t\tstatusCode = s.statusCode || {},\n\n\t\t\t// Headers (they are sent all at once)\n\t\t\trequestHeaders = {},\n\t\t\trequestHeadersNames = {},\n\n\t\t\t// Default abort message\n\t\t\tstrAbort = \"canceled\",\n\n\t\t\t// Fake xhr\n\t\t\tjqXHR = {\n\t\t\t\treadyState: 0,\n\n\t\t\t\t// Builds headers hashtable if needed\n\t\t\t\tgetResponseHeader: function( key ) {\n\t\t\t\t\tvar match;\n\t\t\t\t\tif ( completed ) {\n\t\t\t\t\t\tif ( !responseHeaders ) {\n\t\t\t\t\t\t\tresponseHeaders = {};\n\t\t\t\t\t\t\twhile ( ( match = rheaders.exec( responseHeadersString ) ) ) {\n\t\t\t\t\t\t\t\tresponseHeaders[ match[ 1 ].toLowerCase() + \" \" ] =\n\t\t\t\t\t\t\t\t\t( responseHeaders[ match[ 1 ].toLowerCase() + \" \" ] || [] )\n\t\t\t\t\t\t\t\t\t\t.concat( match[ 2 ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmatch = responseHeaders[ key.toLowerCase() + \" \" ];\n\t\t\t\t\t}\n\t\t\t\t\treturn match == null ? null : match.join( \", \" );\n\t\t\t\t},\n\n\t\t\t\t// Raw string\n\t\t\t\tgetAllResponseHeaders: function() {\n\t\t\t\t\treturn completed ? responseHeadersString : null;\n\t\t\t\t},\n\n\t\t\t\t// Caches the header\n\t\t\t\tsetRequestHeader: function( name, value ) {\n\t\t\t\t\tif ( completed == null ) {\n\t\t\t\t\t\tname = requestHeadersNames[ name.toLowerCase() ] =\n\t\t\t\t\t\t\trequestHeadersNames[ name.toLowerCase() ] || name;\n\t\t\t\t\t\trequestHeaders[ name ] = value;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Overrides response content-type header\n\t\t\t\toverrideMimeType: function( type ) {\n\t\t\t\t\tif ( completed == null ) {\n\t\t\t\t\t\ts.mimeType = type;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Status-dependent callbacks\n\t\t\t\tstatusCode: function( map ) {\n\t\t\t\t\tvar code;\n\t\t\t\t\tif ( map ) {\n\t\t\t\t\t\tif ( completed ) {\n\n\t\t\t\t\t\t\t// Execute the appropriate callbacks\n\t\t\t\t\t\t\tjqXHR.always( map[ jqXHR.status ] );\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Lazy-add the new callbacks in a way that preserves old ones\n\t\t\t\t\t\t\tfor ( code in map ) {\n\t\t\t\t\t\t\t\tstatusCode[ code ] = [ statusCode[ code ], map[ code ] ];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Cancel the request\n\t\t\t\tabort: function( statusText ) {\n\t\t\t\t\tvar finalText = statusText || strAbort;\n\t\t\t\t\tif ( transport ) {\n\t\t\t\t\t\ttransport.abort( finalText );\n\t\t\t\t\t}\n\t\t\t\t\tdone( 0, finalText );\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t};\n\n\t\t// Attach deferreds\n\t\tdeferred.promise( jqXHR );\n\n\t\t// Add protocol if not provided (prefilters might expect it)\n\t\t// Handle falsy url in the settings object (trac-10093: consistency with old signature)\n\t\t// We also use the url parameter if available\n\t\ts.url = ( ( url || s.url || location.href ) + \"\" )\n\t\t\t.replace( rprotocol, location.protocol + \"//\" );\n\n\t\t// Alias method option to type as per ticket trac-12004\n\t\ts.type = options.method || options.type || s.method || s.type;\n\n\t\t// Extract dataTypes list\n\t\ts.dataTypes = ( s.dataType || \"*\" ).toLowerCase().match( rnothtmlwhite ) || [ \"\" ];\n\n\t\t// A cross-domain request is in order when the origin doesn't match the current origin.\n\t\tif ( s.crossDomain == null ) {\n\t\t\turlAnchor = document.createElement( \"a\" );\n\n\t\t\t// Support: IE <=8 - 11, Edge 12 - 15\n\t\t\t// IE throws exception on accessing the href property if url is malformed,\n\t\t\t// e.g. http://example.com:80x/\n\t\t\ttry {\n\t\t\t\turlAnchor.href = s.url;\n\n\t\t\t\t// Support: IE <=8 - 11 only\n\t\t\t\t// Anchor's host property isn't correctly set when s.url is relative\n\t\t\t\turlAnchor.href = urlAnchor.href;\n\t\t\t\ts.crossDomain = originAnchor.protocol + \"//\" + originAnchor.host !==\n\t\t\t\t\turlAnchor.protocol + \"//\" + urlAnchor.host;\n\t\t\t} catch ( e ) {\n\n\t\t\t\t// If there is an error parsing the URL, assume it is crossDomain,\n\t\t\t\t// it can be rejected by the transport if it is invalid\n\t\t\t\ts.crossDomain = true;\n\t\t\t}\n\t\t}\n\n\t\t// Convert data if not already a string\n\t\tif ( s.data && s.processData && typeof s.data !== \"string\" ) {\n\t\t\ts.data = jQuery.param( s.data, s.traditional );\n\t\t}\n\n\t\t// Apply prefilters\n\t\tinspectPrefiltersOrTransports( prefilters, s, options, jqXHR );\n\n\t\t// If request was aborted inside a prefilter, stop there\n\t\tif ( completed ) {\n\t\t\treturn jqXHR;\n\t\t}\n\n\t\t// We can fire global events as of now if asked to\n\t\t// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (trac-15118)\n\t\tfireGlobals = jQuery.event && s.global;\n\n\t\t// Watch for a new set of requests\n\t\tif ( fireGlobals && jQuery.active++ === 0 ) {\n\t\t\tjQuery.event.trigger( \"ajaxStart\" );\n\t\t}\n\n\t\t// Uppercase the type\n\t\ts.type = s.type.toUpperCase();\n\n\t\t// Determine if request has content\n\t\ts.hasContent = !rnoContent.test( s.type );\n\n\t\t// Save the URL in case we're toying with the If-Modified-Since\n\t\t// and/or If-None-Match header later on\n\t\t// Remove hash to simplify url manipulation\n\t\tcacheURL = s.url.replace( rhash, \"\" );\n\n\t\t// More options handling for requests with no content\n\t\tif ( !s.hasContent ) {\n\n\t\t\t// Remember the hash so we can put it back\n\t\t\tuncached = s.url.slice( cacheURL.length );\n\n\t\t\t// If data is available and should be processed, append data to url\n\t\t\tif ( s.data && ( s.processData || typeof s.data === \"string\" ) ) {\n\t\t\t\tcacheURL += ( rquery.test( cacheURL ) ? \"&\" : \"?\" ) + s.data;\n\n\t\t\t\t// trac-9682: remove data so that it's not used in an eventual retry\n\t\t\t\tdelete s.data;\n\t\t\t}\n\n\t\t\t// Add or update anti-cache param if needed\n\t\t\tif ( s.cache === false ) {\n\t\t\t\tcacheURL = cacheURL.replace( rantiCache, \"$1\" );\n\t\t\t\tuncached = ( rquery.test( cacheURL ) ? \"&\" : \"?\" ) + \"_=\" + ( nonce.guid++ ) +\n\t\t\t\t\tuncached;\n\t\t\t}\n\n\t\t\t// Put hash and anti-cache on the URL that will be requested (gh-1732)\n\t\t\ts.url = cacheURL + uncached;\n\n\t\t// Change '%20' to '+' if this is encoded form body content (gh-2658)\n\t\t} else if ( s.data && s.processData &&\n\t\t\t( s.contentType || \"\" ).indexOf( \"application/x-www-form-urlencoded\" ) === 0 ) {\n\t\t\ts.data = s.data.replace( r20, \"+\" );\n\t\t}\n\n\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\tif ( s.ifModified ) {\n\t\t\tif ( jQuery.lastModified[ cacheURL ] ) {\n\t\t\t\tjqXHR.setRequestHeader( \"If-Modified-Since\", jQuery.lastModified[ cacheURL ] );\n\t\t\t}\n\t\t\tif ( jQuery.etag[ cacheURL ] ) {\n\t\t\t\tjqXHR.setRequestHeader( \"If-None-Match\", jQuery.etag[ cacheURL ] );\n\t\t\t}\n\t\t}\n\n\t\t// Set the correct header, if data is being sent\n\t\tif ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {\n\t\t\tjqXHR.setRequestHeader( \"Content-Type\", s.contentType );\n\t\t}\n\n\t\t// Set the Accepts header for the server, depending on the dataType\n\t\tjqXHR.setRequestHeader(\n\t\t\t\"Accept\",\n\t\t\ts.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?\n\t\t\t\ts.accepts[ s.dataTypes[ 0 ] ] +\n\t\t\t\t\t( s.dataTypes[ 0 ] !== \"*\" ? \", \" + allTypes + \"; q=0.01\" : \"\" ) :\n\t\t\t\ts.accepts[ \"*\" ]\n\t\t);\n\n\t\t// Check for headers option\n\t\tfor ( i in s.headers ) {\n\t\t\tjqXHR.setRequestHeader( i, s.headers[ i ] );\n\t\t}\n\n\t\t// Allow custom headers/mimetypes and early abort\n\t\tif ( s.beforeSend &&\n\t\t\t( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {\n\n\t\t\t// Abort if not done already and return\n\t\t\treturn jqXHR.abort();\n\t\t}\n\n\t\t// Aborting is no longer a cancellation\n\t\tstrAbort = \"abort\";\n\n\t\t// Install callbacks on deferreds\n\t\tcompleteDeferred.add( s.complete );\n\t\tjqXHR.done( s.success );\n\t\tjqXHR.fail( s.error );\n\n\t\t// Get transport\n\t\ttransport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );\n\n\t\t// If no transport, we auto-abort\n\t\tif ( !transport ) {\n\t\t\tdone( -1, \"No Transport\" );\n\t\t} else {\n\t\t\tjqXHR.readyState = 1;\n\n\t\t\t// Send global event\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxSend\", [ jqXHR, s ] );\n\t\t\t}\n\n\t\t\t// If request was aborted inside ajaxSend, stop there\n\t\t\tif ( completed ) {\n\t\t\t\treturn jqXHR;\n\t\t\t}\n\n\t\t\t// Timeout\n\t\t\tif ( s.async && s.timeout > 0 ) {\n\t\t\t\ttimeoutTimer = window.setTimeout( function() {\n\t\t\t\t\tjqXHR.abort( \"timeout\" );\n\t\t\t\t}, s.timeout );\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tcompleted = false;\n\t\t\t\ttransport.send( requestHeaders, done );\n\t\t\t} catch ( e ) {\n\n\t\t\t\t// Rethrow post-completion exceptions\n\t\t\t\tif ( completed ) {\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\n\t\t\t\t// Propagate others as results\n\t\t\t\tdone( -1, e );\n\t\t\t}\n\t\t}\n\n\t\t// Callback for when everything is done\n\t\tfunction done( status, nativeStatusText, responses, headers ) {\n\t\t\tvar isSuccess, success, error, response, modified,\n\t\t\t\tstatusText = nativeStatusText;\n\n\t\t\t// Ignore repeat invocations\n\t\t\tif ( completed ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcompleted = true;\n\n\t\t\t// Clear timeout if it exists\n\t\t\tif ( timeoutTimer ) {\n\t\t\t\twindow.clearTimeout( timeoutTimer );\n\t\t\t}\n\n\t\t\t// Dereference transport for early garbage collection\n\t\t\t// (no matter how long the jqXHR object will be used)\n\t\t\ttransport = undefined;\n\n\t\t\t// Cache response headers\n\t\t\tresponseHeadersString = headers || \"\";\n\n\t\t\t// Set readyState\n\t\t\tjqXHR.readyState = status > 0 ? 4 : 0;\n\n\t\t\t// Determine if successful\n\t\t\tisSuccess = status >= 200 && status < 300 || status === 304;\n\n\t\t\t// Get response data\n\t\t\tif ( responses ) {\n\t\t\t\tresponse = ajaxHandleResponses( s, jqXHR, responses );\n\t\t\t}\n\n\t\t\t// Use a noop converter for missing script but not if jsonp\n\t\t\tif ( !isSuccess &&\n\t\t\t\tjQuery.inArray( \"script\", s.dataTypes ) > -1 &&\n\t\t\t\tjQuery.inArray( \"json\", s.dataTypes ) < 0 ) {\n\t\t\t\ts.converters[ \"text script\" ] = function() {};\n\t\t\t}\n\n\t\t\t// Convert no matter what (that way responseXXX fields are always set)\n\t\t\tresponse = ajaxConvert( s, response, jqXHR, isSuccess );\n\n\t\t\t// If successful, handle type chaining\n\t\t\tif ( isSuccess ) {\n\n\t\t\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\t\t\tif ( s.ifModified ) {\n\t\t\t\t\tmodified = jqXHR.getResponseHeader( \"Last-Modified\" );\n\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\tjQuery.lastModified[ cacheURL ] = modified;\n\t\t\t\t\t}\n\t\t\t\t\tmodified = jqXHR.getResponseHeader( \"etag\" );\n\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\tjQuery.etag[ cacheURL ] = modified;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// if no content\n\t\t\t\tif ( status === 204 || s.type === \"HEAD\" ) {\n\t\t\t\t\tstatusText = \"nocontent\";\n\n\t\t\t\t// if not modified\n\t\t\t\t} else if ( status === 304 ) {\n\t\t\t\t\tstatusText = \"notmodified\";\n\n\t\t\t\t// If we have data, let's convert it\n\t\t\t\t} else {\n\t\t\t\t\tstatusText = response.state;\n\t\t\t\t\tsuccess = response.data;\n\t\t\t\t\terror = response.error;\n\t\t\t\t\tisSuccess = !error;\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\t// Extract error from statusText and normalize for non-aborts\n\t\t\t\terror = statusText;\n\t\t\t\tif ( status || !statusText ) {\n\t\t\t\t\tstatusText = \"error\";\n\t\t\t\t\tif ( status < 0 ) {\n\t\t\t\t\t\tstatus = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Set data for the fake xhr object\n\t\t\tjqXHR.status = status;\n\t\t\tjqXHR.statusText = ( nativeStatusText || statusText ) + \"\";\n\n\t\t\t// Success/Error\n\t\t\tif ( isSuccess ) {\n\t\t\t\tdeferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );\n\t\t\t} else {\n\t\t\t\tdeferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );\n\t\t\t}\n\n\t\t\t// Status-dependent callbacks\n\t\t\tjqXHR.statusCode( statusCode );\n\t\t\tstatusCode = undefined;\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( isSuccess ? \"ajaxSuccess\" : \"ajaxError\",\n\t\t\t\t\t[ jqXHR, s, isSuccess ? success : error ] );\n\t\t\t}\n\n\t\t\t// Complete\n\t\t\tcompleteDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxComplete\", [ jqXHR, s ] );\n\n\t\t\t\t// Handle the global AJAX counter\n\t\t\t\tif ( !( --jQuery.active ) ) {\n\t\t\t\t\tjQuery.event.trigger( \"ajaxStop\" );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn jqXHR;\n\t},\n\n\tgetJSON: function( url, data, callback ) {\n\t\treturn jQuery.get( url, data, callback, \"json\" );\n\t},\n\n\tgetScript: function( url, callback ) {\n\t\treturn jQuery.get( url, undefined, callback, \"script\" );\n\t}\n} );\n\njQuery.each( [ \"get\", \"post\" ], function( _i, method ) {\n\tjQuery[ method ] = function( url, data, callback, type ) {\n\n\t\t// Shift arguments if data argument was omitted\n\t\tif ( isFunction( data ) ) {\n\t\t\ttype = type || callback;\n\t\t\tcallback = data;\n\t\t\tdata = undefined;\n\t\t}\n\n\t\t// The url can be an options object (which then must have .url)\n\t\treturn jQuery.ajax( jQuery.extend( {\n\t\t\turl: url,\n\t\t\ttype: method,\n\t\t\tdataType: type,\n\t\t\tdata: data,\n\t\t\tsuccess: callback\n\t\t}, jQuery.isPlainObject( url ) && url ) );\n\t};\n} );\n\njQuery.ajaxPrefilter( function( s ) {\n\tvar i;\n\tfor ( i in s.headers ) {\n\t\tif ( i.toLowerCase() === \"content-type\" ) {\n\t\t\ts.contentType = s.headers[ i ] || \"\";\n\t\t}\n\t}\n} );\n\n\njQuery._evalUrl = function( url, options, doc ) {\n\treturn jQuery.ajax( {\n\t\turl: url,\n\n\t\t// Make this explicit, since user can override this through ajaxSetup (trac-11264)\n\t\ttype: \"GET\",\n\t\tdataType: \"script\",\n\t\tcache: true,\n\t\tasync: false,\n\t\tglobal: false,\n\n\t\t// Only evaluate the response if it is successful (gh-4126)\n\t\t// dataFilter is not invoked for failure responses, so using it instead\n\t\t// of the default converter is kludgy but it works.\n\t\tconverters: {\n\t\t\t\"text script\": function() {}\n\t\t},\n\t\tdataFilter: function( response ) {\n\t\t\tjQuery.globalEval( response, options, doc );\n\t\t}\n\t} );\n};\n\n\njQuery.fn.extend( {\n\twrapAll: function( html ) {\n\t\tvar wrap;\n\n\t\tif ( this[ 0 ] ) {\n\t\t\tif ( isFunction( html ) ) {\n\t\t\t\thtml = html.call( this[ 0 ] );\n\t\t\t}\n\n\t\t\t// The elements to wrap the target around\n\t\t\twrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );\n\n\t\t\tif ( this[ 0 ].parentNode ) {\n\t\t\t\twrap.insertBefore( this[ 0 ] );\n\t\t\t}\n\n\t\t\twrap.map( function() {\n\t\t\t\tvar elem = this;\n\n\t\t\t\twhile ( elem.firstElementChild ) {\n\t\t\t\t\telem = elem.firstElementChild;\n\t\t\t\t}\n\n\t\t\t\treturn elem;\n\t\t\t} ).append( this );\n\t\t}\n\n\t\treturn this;\n\t},\n\n\twrapInner: function( html ) {\n\t\tif ( isFunction( html ) ) {\n\t\t\treturn this.each( function( i ) {\n\t\t\t\tjQuery( this ).wrapInner( html.call( this, i ) );\n\t\t\t} );\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tvar self = jQuery( this ),\n\t\t\t\tcontents = self.contents();\n\n\t\t\tif ( contents.length ) {\n\t\t\t\tcontents.wrapAll( html );\n\n\t\t\t} else {\n\t\t\t\tself.append( html );\n\t\t\t}\n\t\t} );\n\t},\n\n\twrap: function( html ) {\n\t\tvar htmlIsFunction = isFunction( html );\n\n\t\treturn this.each( function( i ) {\n\t\t\tjQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html );\n\t\t} );\n\t},\n\n\tunwrap: function( selector ) {\n\t\tthis.parent( selector ).not( \"body\" ).each( function() {\n\t\t\tjQuery( this ).replaceWith( this.childNodes );\n\t\t} );\n\t\treturn this;\n\t}\n} );\n\n\njQuery.expr.pseudos.hidden = function( elem ) {\n\treturn !jQuery.expr.pseudos.visible( elem );\n};\njQuery.expr.pseudos.visible = function( elem ) {\n\treturn !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );\n};\n\n\n\n\njQuery.ajaxSettings.xhr = function() {\n\ttry {\n\t\treturn new window.XMLHttpRequest();\n\t} catch ( e ) {}\n};\n\nvar xhrSuccessStatus = {\n\n\t\t// File protocol always yields status code 0, assume 200\n\t\t0: 200,\n\n\t\t// Support: IE <=9 only\n\t\t// trac-1450: sometimes IE returns 1223 when it should be 204\n\t\t1223: 204\n\t},\n\txhrSupported = jQuery.ajaxSettings.xhr();\n\nsupport.cors = !!xhrSupported && ( \"withCredentials\" in xhrSupported );\nsupport.ajax = xhrSupported = !!xhrSupported;\n\njQuery.ajaxTransport( function( options ) {\n\tvar callback, errorCallback;\n\n\t// Cross domain only allowed if supported through XMLHttpRequest\n\tif ( support.cors || xhrSupported && !options.crossDomain ) {\n\t\treturn {\n\t\t\tsend: function( headers, complete ) {\n\t\t\t\tvar i,\n\t\t\t\t\txhr = options.xhr();\n\n\t\t\t\txhr.open(\n\t\t\t\t\toptions.type,\n\t\t\t\t\toptions.url,\n\t\t\t\t\toptions.async,\n\t\t\t\t\toptions.username,\n\t\t\t\t\toptions.password\n\t\t\t\t);\n\n\t\t\t\t// Apply custom fields if provided\n\t\t\t\tif ( options.xhrFields ) {\n\t\t\t\t\tfor ( i in options.xhrFields ) {\n\t\t\t\t\t\txhr[ i ] = options.xhrFields[ i ];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Override mime type if needed\n\t\t\t\tif ( options.mimeType && xhr.overrideMimeType ) {\n\t\t\t\t\txhr.overrideMimeType( options.mimeType );\n\t\t\t\t}\n\n\t\t\t\t// X-Requested-With header\n\t\t\t\t// For cross-domain requests, seeing as conditions for a preflight are\n\t\t\t\t// akin to a jigsaw puzzle, we simply never set it to be sure.\n\t\t\t\t// (it can always be set on a per-request basis or even using ajaxSetup)\n\t\t\t\t// For same-domain requests, won't change header if already provided.\n\t\t\t\tif ( !options.crossDomain && !headers[ \"X-Requested-With\" ] ) {\n\t\t\t\t\theaders[ \"X-Requested-With\" ] = \"XMLHttpRequest\";\n\t\t\t\t}\n\n\t\t\t\t// Set headers\n\t\t\t\tfor ( i in headers ) {\n\t\t\t\t\txhr.setRequestHeader( i, headers[ i ] );\n\t\t\t\t}\n\n\t\t\t\t// Callback\n\t\t\t\tcallback = function( type ) {\n\t\t\t\t\treturn function() {\n\t\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\t\tcallback = errorCallback = xhr.onload =\n\t\t\t\t\t\t\t\txhr.onerror = xhr.onabort = xhr.ontimeout =\n\t\t\t\t\t\t\t\t\txhr.onreadystatechange = null;\n\n\t\t\t\t\t\t\tif ( type === \"abort\" ) {\n\t\t\t\t\t\t\t\txhr.abort();\n\t\t\t\t\t\t\t} else if ( type === \"error\" ) {\n\n\t\t\t\t\t\t\t\t// Support: IE <=9 only\n\t\t\t\t\t\t\t\t// On a manual native abort, IE9 throws\n\t\t\t\t\t\t\t\t// errors on any property access that is not readyState\n\t\t\t\t\t\t\t\tif ( typeof xhr.status !== \"number\" ) {\n\t\t\t\t\t\t\t\t\tcomplete( 0, \"error\" );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tcomplete(\n\n\t\t\t\t\t\t\t\t\t\t// File: protocol always yields status 0; see trac-8605, trac-14207\n\t\t\t\t\t\t\t\t\t\txhr.status,\n\t\t\t\t\t\t\t\t\t\txhr.statusText\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcomplete(\n\t\t\t\t\t\t\t\t\txhrSuccessStatus[ xhr.status ] || xhr.status,\n\t\t\t\t\t\t\t\t\txhr.statusText,\n\n\t\t\t\t\t\t\t\t\t// Support: IE <=9 only\n\t\t\t\t\t\t\t\t\t// IE9 has no XHR2 but throws on binary (trac-11426)\n\t\t\t\t\t\t\t\t\t// For XHR2 non-text, let the caller handle it (gh-2498)\n\t\t\t\t\t\t\t\t\t( xhr.responseType || \"text\" ) !== \"text\"  ||\n\t\t\t\t\t\t\t\t\ttypeof xhr.responseText !== \"string\" ?\n\t\t\t\t\t\t\t\t\t\t{ binary: xhr.response } :\n\t\t\t\t\t\t\t\t\t\t{ text: xhr.responseText },\n\t\t\t\t\t\t\t\t\txhr.getAllResponseHeaders()\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t};\n\n\t\t\t\t// Listen to events\n\t\t\t\txhr.onload = callback();\n\t\t\t\terrorCallback = xhr.onerror = xhr.ontimeout = callback( \"error\" );\n\n\t\t\t\t// Support: IE 9 only\n\t\t\t\t// Use onreadystatechange to replace onabort\n\t\t\t\t// to handle uncaught aborts\n\t\t\t\tif ( xhr.onabort !== undefined ) {\n\t\t\t\t\txhr.onabort = errorCallback;\n\t\t\t\t} else {\n\t\t\t\t\txhr.onreadystatechange = function() {\n\n\t\t\t\t\t\t// Check readyState before timeout as it changes\n\t\t\t\t\t\tif ( xhr.readyState === 4 ) {\n\n\t\t\t\t\t\t\t// Allow onerror to be called first,\n\t\t\t\t\t\t\t// but that will not handle a native abort\n\t\t\t\t\t\t\t// Also, save errorCallback to a variable\n\t\t\t\t\t\t\t// as xhr.onerror cannot be accessed\n\t\t\t\t\t\t\twindow.setTimeout( function() {\n\t\t\t\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\t\t\t\terrorCallback();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// Create the abort callback\n\t\t\t\tcallback = callback( \"abort\" );\n\n\t\t\t\ttry {\n\n\t\t\t\t\t// Do send the request (this may raise an exception)\n\t\t\t\t\txhr.send( options.hasContent && options.data || null );\n\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t// trac-14683: Only rethrow if this hasn't been notified as an error yet\n\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tabort: function() {\n\t\t\t\tif ( callback ) {\n\t\t\t\t\tcallback();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n} );\n\n\n\n\n// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)\njQuery.ajaxPrefilter( function( s ) {\n\tif ( s.crossDomain ) {\n\t\ts.contents.script = false;\n\t}\n} );\n\n// Install script dataType\njQuery.ajaxSetup( {\n\taccepts: {\n\t\tscript: \"text/javascript, application/javascript, \" +\n\t\t\t\"application/ecmascript, application/x-ecmascript\"\n\t},\n\tcontents: {\n\t\tscript: /\\b(?:java|ecma)script\\b/\n\t},\n\tconverters: {\n\t\t\"text script\": function( text ) {\n\t\t\tjQuery.globalEval( text );\n\t\t\treturn text;\n\t\t}\n\t}\n} );\n\n// Handle cache's special case and crossDomain\njQuery.ajaxPrefilter( \"script\", function( s ) {\n\tif ( s.cache === undefined ) {\n\t\ts.cache = false;\n\t}\n\tif ( s.crossDomain ) {\n\t\ts.type = \"GET\";\n\t}\n} );\n\n// Bind script tag hack transport\njQuery.ajaxTransport( \"script\", function( s ) {\n\n\t// This transport only deals with cross domain or forced-by-attrs requests\n\tif ( s.crossDomain || s.scriptAttrs ) {\n\t\tvar script, callback;\n\t\treturn {\n\t\t\tsend: function( _, complete ) {\n\t\t\t\tscript = jQuery( \"<script>\" )\n\t\t\t\t\t.attr( s.scriptAttrs || {} )\n\t\t\t\t\t.prop( { charset: s.scriptCharset, src: s.url } )\n\t\t\t\t\t.on( \"load error\", callback = function( evt ) {\n\t\t\t\t\t\tscript.remove();\n\t\t\t\t\t\tcallback = null;\n\t\t\t\t\t\tif ( evt ) {\n\t\t\t\t\t\t\tcomplete( evt.type === \"error\" ? 404 : 200, evt.type );\n\t\t\t\t\t\t}\n\t\t\t\t\t} );\n\n\t\t\t\t// Use native DOM manipulation to avoid our domManip AJAX trickery\n\t\t\t\tdocument.head.appendChild( script[ 0 ] );\n\t\t\t},\n\t\t\tabort: function() {\n\t\t\t\tif ( callback ) {\n\t\t\t\t\tcallback();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n} );\n\n\n\n\nvar oldCallbacks = [],\n\trjsonp = /(=)\\?(?=&|$)|\\?\\?/;\n\n// Default jsonp settings\njQuery.ajaxSetup( {\n\tjsonp: \"callback\",\n\tjsonpCallback: function() {\n\t\tvar callback = oldCallbacks.pop() || ( jQuery.expando + \"_\" + ( nonce.guid++ ) );\n\t\tthis[ callback ] = true;\n\t\treturn callback;\n\t}\n} );\n\n// Detect, normalize options and install callbacks for jsonp requests\njQuery.ajaxPrefilter( \"json jsonp\", function( s, originalSettings, jqXHR ) {\n\n\tvar callbackName, overwritten, responseContainer,\n\t\tjsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?\n\t\t\t\"url\" :\n\t\t\ttypeof s.data === \"string\" &&\n\t\t\t\t( s.contentType || \"\" )\n\t\t\t\t\t.indexOf( \"application/x-www-form-urlencoded\" ) === 0 &&\n\t\t\t\trjsonp.test( s.data ) && \"data\"\n\t\t);\n\n\t// Handle iff the expected data type is \"jsonp\" or we have a parameter to set\n\tif ( jsonProp || s.dataTypes[ 0 ] === \"jsonp\" ) {\n\n\t\t// Get callback name, remembering preexisting value associated with it\n\t\tcallbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ?\n\t\t\ts.jsonpCallback() :\n\t\t\ts.jsonpCallback;\n\n\t\t// Insert callback into url or form data\n\t\tif ( jsonProp ) {\n\t\t\ts[ jsonProp ] = s[ jsonProp ].replace( rjsonp, \"$1\" + callbackName );\n\t\t} else if ( s.jsonp !== false ) {\n\t\t\ts.url += ( rquery.test( s.url ) ? \"&\" : \"?\" ) + s.jsonp + \"=\" + callbackName;\n\t\t}\n\n\t\t// Use data converter to retrieve json after script execution\n\t\ts.converters[ \"script json\" ] = function() {\n\t\t\tif ( !responseContainer ) {\n\t\t\t\tjQuery.error( callbackName + \" was not called\" );\n\t\t\t}\n\t\t\treturn responseContainer[ 0 ];\n\t\t};\n\n\t\t// Force json dataType\n\t\ts.dataTypes[ 0 ] = \"json\";\n\n\t\t// Install callback\n\t\toverwritten = window[ callbackName ];\n\t\twindow[ callbackName ] = function() {\n\t\t\tresponseContainer = arguments;\n\t\t};\n\n\t\t// Clean-up function (fires after converters)\n\t\tjqXHR.always( function() {\n\n\t\t\t// If previous value didn't exist - remove it\n\t\t\tif ( overwritten === undefined ) {\n\t\t\t\tjQuery( window ).removeProp( callbackName );\n\n\t\t\t// Otherwise restore preexisting value\n\t\t\t} else {\n\t\t\t\twindow[ callbackName ] = overwritten;\n\t\t\t}\n\n\t\t\t// Save back as free\n\t\t\tif ( s[ callbackName ] ) {\n\n\t\t\t\t// Make sure that re-using the options doesn't screw things around\n\t\t\t\ts.jsonpCallback = originalSettings.jsonpCallback;\n\n\t\t\t\t// Save the callback name for future use\n\t\t\t\toldCallbacks.push( callbackName );\n\t\t\t}\n\n\t\t\t// Call if it was a function and we have a response\n\t\t\tif ( responseContainer && isFunction( overwritten ) ) {\n\t\t\t\toverwritten( responseContainer[ 0 ] );\n\t\t\t}\n\n\t\t\tresponseContainer = overwritten = undefined;\n\t\t} );\n\n\t\t// Delegate to script\n\t\treturn \"script\";\n\t}\n} );\n\n\n\n\n// Support: Safari 8 only\n// In Safari 8 documents created via document.implementation.createHTMLDocument\n// collapse sibling forms: the second one becomes a child of the first one.\n// Because of that, this security measure has to be disabled in Safari 8.\n// https://bugs.webkit.org/show_bug.cgi?id=137337\nsupport.createHTMLDocument = ( function() {\n\tvar body = document.implementation.createHTMLDocument( \"\" ).body;\n\tbody.innerHTML = \"<form></form><form></form>\";\n\treturn body.childNodes.length === 2;\n} )();\n\n\n// Argument \"data\" should be string of html\n// context (optional): If specified, the fragment will be created in this context,\n// defaults to document\n// keepScripts (optional): If true, will include scripts passed in the html string\njQuery.parseHTML = function( data, context, keepScripts ) {\n\tif ( typeof data !== \"string\" ) {\n\t\treturn [];\n\t}\n\tif ( typeof context === \"boolean\" ) {\n\t\tkeepScripts = context;\n\t\tcontext = false;\n\t}\n\n\tvar base, parsed, scripts;\n\n\tif ( !context ) {\n\n\t\t// Stop scripts or inline event handlers from being executed immediately\n\t\t// by using document.implementation\n\t\tif ( support.createHTMLDocument ) {\n\t\t\tcontext = document.implementation.createHTMLDocument( \"\" );\n\n\t\t\t// Set the base href for the created document\n\t\t\t// so any parsed elements with URLs\n\t\t\t// are based on the document's URL (gh-2965)\n\t\t\tbase = context.createElement( \"base\" );\n\t\t\tbase.href = document.location.href;\n\t\t\tcontext.head.appendChild( base );\n\t\t} else {\n\t\t\tcontext = document;\n\t\t}\n\t}\n\n\tparsed = rsingleTag.exec( data );\n\tscripts = !keepScripts && [];\n\n\t// Single tag\n\tif ( parsed ) {\n\t\treturn [ context.createElement( parsed[ 1 ] ) ];\n\t}\n\n\tparsed = buildFragment( [ data ], context, scripts );\n\n\tif ( scripts && scripts.length ) {\n\t\tjQuery( scripts ).remove();\n\t}\n\n\treturn jQuery.merge( [], parsed.childNodes );\n};\n\n\n/**\n * Load a url into a page\n */\njQuery.fn.load = function( url, params, callback ) {\n\tvar selector, type, response,\n\t\tself = this,\n\t\toff = url.indexOf( \" \" );\n\n\tif ( off > -1 ) {\n\t\tselector = stripAndCollapse( url.slice( off ) );\n\t\turl = url.slice( 0, off );\n\t}\n\n\t// If it's a function\n\tif ( isFunction( params ) ) {\n\n\t\t// We assume that it's the callback\n\t\tcallback = params;\n\t\tparams = undefined;\n\n\t// Otherwise, build a param string\n\t} else if ( params && typeof params === \"object\" ) {\n\t\ttype = \"POST\";\n\t}\n\n\t// If we have elements to modify, make the request\n\tif ( self.length > 0 ) {\n\t\tjQuery.ajax( {\n\t\t\turl: url,\n\n\t\t\t// If \"type\" variable is undefined, then \"GET\" method will be used.\n\t\t\t// Make value of this field explicit since\n\t\t\t// user can override it through ajaxSetup method\n\t\t\ttype: type || \"GET\",\n\t\t\tdataType: \"html\",\n\t\t\tdata: params\n\t\t} ).done( function( responseText ) {\n\n\t\t\t// Save response for use in complete callback\n\t\t\tresponse = arguments;\n\n\t\t\tself.html( selector ?\n\n\t\t\t\t// If a selector was specified, locate the right elements in a dummy div\n\t\t\t\t// Exclude scripts to avoid IE 'Permission Denied' errors\n\t\t\t\tjQuery( \"<div>\" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :\n\n\t\t\t\t// Otherwise use the full result\n\t\t\t\tresponseText );\n\n\t\t// If the request succeeds, this function gets \"data\", \"status\", \"jqXHR\"\n\t\t// but they are ignored because response was set above.\n\t\t// If it fails, this function gets \"jqXHR\", \"status\", \"error\"\n\t\t} ).always( callback && function( jqXHR, status ) {\n\t\t\tself.each( function() {\n\t\t\t\tcallback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );\n\t\t\t} );\n\t\t} );\n\t}\n\n\treturn this;\n};\n\n\n\n\njQuery.expr.pseudos.animated = function( elem ) {\n\treturn jQuery.grep( jQuery.timers, function( fn ) {\n\t\treturn elem === fn.elem;\n\t} ).length;\n};\n\n\n\n\njQuery.offset = {\n\tsetOffset: function( elem, options, i ) {\n\t\tvar curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,\n\t\t\tposition = jQuery.css( elem, \"position\" ),\n\t\t\tcurElem = jQuery( elem ),\n\t\t\tprops = {};\n\n\t\t// Set position first, in-case top/left are set even on static elem\n\t\tif ( position === \"static\" ) {\n\t\t\telem.style.position = \"relative\";\n\t\t}\n\n\t\tcurOffset = curElem.offset();\n\t\tcurCSSTop = jQuery.css( elem, \"top\" );\n\t\tcurCSSLeft = jQuery.css( elem, \"left\" );\n\t\tcalculatePosition = ( position === \"absolute\" || position === \"fixed\" ) &&\n\t\t\t( curCSSTop + curCSSLeft ).indexOf( \"auto\" ) > -1;\n\n\t\t// Need to be able to calculate position if either\n\t\t// top or left is auto and position is either absolute or fixed\n\t\tif ( calculatePosition ) {\n\t\t\tcurPosition = curElem.position();\n\t\t\tcurTop = curPosition.top;\n\t\t\tcurLeft = curPosition.left;\n\n\t\t} else {\n\t\t\tcurTop = parseFloat( curCSSTop ) || 0;\n\t\t\tcurLeft = parseFloat( curCSSLeft ) || 0;\n\t\t}\n\n\t\tif ( isFunction( options ) ) {\n\n\t\t\t// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)\n\t\t\toptions = options.call( elem, i, jQuery.extend( {}, curOffset ) );\n\t\t}\n\n\t\tif ( options.top != null ) {\n\t\t\tprops.top = ( options.top - curOffset.top ) + curTop;\n\t\t}\n\t\tif ( options.left != null ) {\n\t\t\tprops.left = ( options.left - curOffset.left ) + curLeft;\n\t\t}\n\n\t\tif ( \"using\" in options ) {\n\t\t\toptions.using.call( elem, props );\n\n\t\t} else {\n\t\t\tcurElem.css( props );\n\t\t}\n\t}\n};\n\njQuery.fn.extend( {\n\n\t// offset() relates an element's border box to the document origin\n\toffset: function( options ) {\n\n\t\t// Preserve chaining for setter\n\t\tif ( arguments.length ) {\n\t\t\treturn options === undefined ?\n\t\t\t\tthis :\n\t\t\t\tthis.each( function( i ) {\n\t\t\t\t\tjQuery.offset.setOffset( this, options, i );\n\t\t\t\t} );\n\t\t}\n\n\t\tvar rect, win,\n\t\t\telem = this[ 0 ];\n\n\t\tif ( !elem ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Return zeros for disconnected and hidden (display: none) elements (gh-2310)\n\t\t// Support: IE <=11 only\n\t\t// Running getBoundingClientRect on a\n\t\t// disconnected node in IE throws an error\n\t\tif ( !elem.getClientRects().length ) {\n\t\t\treturn { top: 0, left: 0 };\n\t\t}\n\n\t\t// Get document-relative position by adding viewport scroll to viewport-relative gBCR\n\t\trect = elem.getBoundingClientRect();\n\t\twin = elem.ownerDocument.defaultView;\n\t\treturn {\n\t\t\ttop: rect.top + win.pageYOffset,\n\t\t\tleft: rect.left + win.pageXOffset\n\t\t};\n\t},\n\n\t// position() relates an element's margin box to its offset parent's padding box\n\t// This corresponds to the behavior of CSS absolute positioning\n\tposition: function() {\n\t\tif ( !this[ 0 ] ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar offsetParent, offset, doc,\n\t\t\telem = this[ 0 ],\n\t\t\tparentOffset = { top: 0, left: 0 };\n\n\t\t// position:fixed elements are offset from the viewport, which itself always has zero offset\n\t\tif ( jQuery.css( elem, \"position\" ) === \"fixed\" ) {\n\n\t\t\t// Assume position:fixed implies availability of getBoundingClientRect\n\t\t\toffset = elem.getBoundingClientRect();\n\n\t\t} else {\n\t\t\toffset = this.offset();\n\n\t\t\t// Account for the *real* offset parent, which can be the document or its root element\n\t\t\t// when a statically positioned element is identified\n\t\t\tdoc = elem.ownerDocument;\n\t\t\toffsetParent = elem.offsetParent || doc.documentElement;\n\t\t\twhile ( offsetParent &&\n\t\t\t\t( offsetParent === doc.body || offsetParent === doc.documentElement ) &&\n\t\t\t\tjQuery.css( offsetParent, \"position\" ) === \"static\" ) {\n\n\t\t\t\toffsetParent = offsetParent.parentNode;\n\t\t\t}\n\t\t\tif ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) {\n\n\t\t\t\t// Incorporate borders into its offset, since they are outside its content origin\n\t\t\t\tparentOffset = jQuery( offsetParent ).offset();\n\t\t\t\tparentOffset.top += jQuery.css( offsetParent, \"borderTopWidth\", true );\n\t\t\t\tparentOffset.left += jQuery.css( offsetParent, \"borderLeftWidth\", true );\n\t\t\t}\n\t\t}\n\n\t\t// Subtract parent offsets and element margins\n\t\treturn {\n\t\t\ttop: offset.top - parentOffset.top - jQuery.css( elem, \"marginTop\", true ),\n\t\t\tleft: offset.left - parentOffset.left - jQuery.css( elem, \"marginLeft\", true )\n\t\t};\n\t},\n\n\t// This method will return documentElement in the following cases:\n\t// 1) For the element inside the iframe without offsetParent, this method will return\n\t//    documentElement of the parent window\n\t// 2) For the hidden or detached element\n\t// 3) For body or html element, i.e. in case of the html node - it will return itself\n\t//\n\t// but those exceptions were never presented as a real life use-cases\n\t// and might be considered as more preferable results.\n\t//\n\t// This logic, however, is not guaranteed and can change at any point in the future\n\toffsetParent: function() {\n\t\treturn this.map( function() {\n\t\t\tvar offsetParent = this.offsetParent;\n\n\t\t\twhile ( offsetParent && jQuery.css( offsetParent, \"position\" ) === \"static\" ) {\n\t\t\t\toffsetParent = offsetParent.offsetParent;\n\t\t\t}\n\n\t\t\treturn offsetParent || documentElement;\n\t\t} );\n\t}\n} );\n\n// Create scrollLeft and scrollTop methods\njQuery.each( { scrollLeft: \"pageXOffset\", scrollTop: \"pageYOffset\" }, function( method, prop ) {\n\tvar top = \"pageYOffset\" === prop;\n\n\tjQuery.fn[ method ] = function( val ) {\n\t\treturn access( this, function( elem, method, val ) {\n\n\t\t\t// Coalesce documents and windows\n\t\t\tvar win;\n\t\t\tif ( isWindow( elem ) ) {\n\t\t\t\twin = elem;\n\t\t\t} else if ( elem.nodeType === 9 ) {\n\t\t\t\twin = elem.defaultView;\n\t\t\t}\n\n\t\t\tif ( val === undefined ) {\n\t\t\t\treturn win ? win[ prop ] : elem[ method ];\n\t\t\t}\n\n\t\t\tif ( win ) {\n\t\t\t\twin.scrollTo(\n\t\t\t\t\t!top ? val : win.pageXOffset,\n\t\t\t\t\ttop ? val : win.pageYOffset\n\t\t\t\t);\n\n\t\t\t} else {\n\t\t\t\telem[ method ] = val;\n\t\t\t}\n\t\t}, method, val, arguments.length );\n\t};\n} );\n\n// Support: Safari <=7 - 9.1, Chrome <=37 - 49\n// Add the top/left cssHooks using jQuery.fn.position\n// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084\n// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347\n// getComputedStyle returns percent when specified for top/left/bottom/right;\n// rather than make the css module depend on the offset module, just check for it here\njQuery.each( [ \"top\", \"left\" ], function( _i, prop ) {\n\tjQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,\n\t\tfunction( elem, computed ) {\n\t\t\tif ( computed ) {\n\t\t\t\tcomputed = curCSS( elem, prop );\n\n\t\t\t\t// If curCSS returns percentage, fallback to offset\n\t\t\t\treturn rnumnonpx.test( computed ) ?\n\t\t\t\t\tjQuery( elem ).position()[ prop ] + \"px\" :\n\t\t\t\t\tcomputed;\n\t\t\t}\n\t\t}\n\t);\n} );\n\n\n// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods\njQuery.each( { Height: \"height\", Width: \"width\" }, function( name, type ) {\n\tjQuery.each( {\n\t\tpadding: \"inner\" + name,\n\t\tcontent: type,\n\t\t\"\": \"outer\" + name\n\t}, function( defaultExtra, funcName ) {\n\n\t\t// Margin is only for outerHeight, outerWidth\n\t\tjQuery.fn[ funcName ] = function( margin, value ) {\n\t\t\tvar chainable = arguments.length && ( defaultExtra || typeof margin !== \"boolean\" ),\n\t\t\t\textra = defaultExtra || ( margin === true || value === true ? \"margin\" : \"border\" );\n\n\t\t\treturn access( this, function( elem, type, value ) {\n\t\t\t\tvar doc;\n\n\t\t\t\tif ( isWindow( elem ) ) {\n\n\t\t\t\t\t// $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)\n\t\t\t\t\treturn funcName.indexOf( \"outer\" ) === 0 ?\n\t\t\t\t\t\telem[ \"inner\" + name ] :\n\t\t\t\t\t\telem.document.documentElement[ \"client\" + name ];\n\t\t\t\t}\n\n\t\t\t\t// Get document width or height\n\t\t\t\tif ( elem.nodeType === 9 ) {\n\t\t\t\t\tdoc = elem.documentElement;\n\n\t\t\t\t\t// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],\n\t\t\t\t\t// whichever is greatest\n\t\t\t\t\treturn Math.max(\n\t\t\t\t\t\telem.body[ \"scroll\" + name ], doc[ \"scroll\" + name ],\n\t\t\t\t\t\telem.body[ \"offset\" + name ], doc[ \"offset\" + name ],\n\t\t\t\t\t\tdoc[ \"client\" + name ]\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\treturn value === undefined ?\n\n\t\t\t\t\t// Get width or height on the element, requesting but not forcing parseFloat\n\t\t\t\t\tjQuery.css( elem, type, extra ) :\n\n\t\t\t\t\t// Set width or height on the element\n\t\t\t\t\tjQuery.style( elem, type, value, extra );\n\t\t\t}, type, chainable ? margin : undefined, chainable );\n\t\t};\n\t} );\n} );\n\n\njQuery.each( [\n\t\"ajaxStart\",\n\t\"ajaxStop\",\n\t\"ajaxComplete\",\n\t\"ajaxError\",\n\t\"ajaxSuccess\",\n\t\"ajaxSend\"\n], function( _i, type ) {\n\tjQuery.fn[ type ] = function( fn ) {\n\t\treturn this.on( type, fn );\n\t};\n} );\n\n\n\n\njQuery.fn.extend( {\n\n\tbind: function( types, data, fn ) {\n\t\treturn this.on( types, null, data, fn );\n\t},\n\tunbind: function( types, fn ) {\n\t\treturn this.off( types, null, fn );\n\t},\n\n\tdelegate: function( selector, types, data, fn ) {\n\t\treturn this.on( types, selector, data, fn );\n\t},\n\tundelegate: function( selector, types, fn ) {\n\n\t\t// ( namespace ) or ( selector, types [, fn] )\n\t\treturn arguments.length === 1 ?\n\t\t\tthis.off( selector, \"**\" ) :\n\t\t\tthis.off( types, selector || \"**\", fn );\n\t},\n\n\thover: function( fnOver, fnOut ) {\n\t\treturn this\n\t\t\t.on( \"mouseenter\", fnOver )\n\t\t\t.on( \"mouseleave\", fnOut || fnOver );\n\t}\n} );\n\njQuery.each(\n\t( \"blur focus focusin focusout resize scroll click dblclick \" +\n\t\"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave \" +\n\t\"change select submit keydown keypress keyup contextmenu\" ).split( \" \" ),\n\tfunction( _i, name ) {\n\n\t\t// Handle event binding\n\t\tjQuery.fn[ name ] = function( data, fn ) {\n\t\t\treturn arguments.length > 0 ?\n\t\t\t\tthis.on( name, null, data, fn ) :\n\t\t\t\tthis.trigger( name );\n\t\t};\n\t}\n);\n\n\n\n\n// Support: Android <=4.0 only\n// Make sure we trim BOM and NBSP\n// Require that the \"whitespace run\" starts from a non-whitespace\n// to avoid O(N^2) behavior when the engine would try matching \"\\s+$\" at each space position.\nvar rtrim = /^[\\s\\uFEFF\\xA0]+|([^\\s\\uFEFF\\xA0])[\\s\\uFEFF\\xA0]+$/g;\n\n// Bind a function to a context, optionally partially applying any\n// arguments.\n// jQuery.proxy is deprecated to promote standards (specifically Function#bind)\n// However, it is not slated for removal any time soon\njQuery.proxy = function( fn, context ) {\n\tvar tmp, args, proxy;\n\n\tif ( typeof context === \"string\" ) {\n\t\ttmp = fn[ context ];\n\t\tcontext = fn;\n\t\tfn = tmp;\n\t}\n\n\t// Quick check to determine if target is callable, in the spec\n\t// this throws a TypeError, but we will just return undefined.\n\tif ( !isFunction( fn ) ) {\n\t\treturn undefined;\n\t}\n\n\t// Simulated bind\n\targs = slice.call( arguments, 2 );\n\tproxy = function() {\n\t\treturn fn.apply( context || this, args.concat( slice.call( arguments ) ) );\n\t};\n\n\t// Set the guid of unique handler to the same of original handler, so it can be removed\n\tproxy.guid = fn.guid = fn.guid || jQuery.guid++;\n\n\treturn proxy;\n};\n\njQuery.holdReady = function( hold ) {\n\tif ( hold ) {\n\t\tjQuery.readyWait++;\n\t} else {\n\t\tjQuery.ready( true );\n\t}\n};\njQuery.isArray = Array.isArray;\njQuery.parseJSON = JSON.parse;\njQuery.nodeName = nodeName;\njQuery.isFunction = isFunction;\njQuery.isWindow = isWindow;\njQuery.camelCase = camelCase;\njQuery.type = toType;\n\njQuery.now = Date.now;\n\njQuery.isNumeric = function( obj ) {\n\n\t// As of jQuery 3.0, isNumeric is limited to\n\t// strings and numbers (primitives or objects)\n\t// that can be coerced to finite numbers (gh-2662)\n\tvar type = jQuery.type( obj );\n\treturn ( type === \"number\" || type === \"string\" ) &&\n\n\t\t// parseFloat NaNs numeric-cast false positives (\"\")\n\t\t// ...but misinterprets leading-number strings, particularly hex literals (\"0x...\")\n\t\t// subtraction forces infinities to NaN\n\t\t!isNaN( obj - parseFloat( obj ) );\n};\n\njQuery.trim = function( text ) {\n\treturn text == null ?\n\t\t\"\" :\n\t\t( text + \"\" ).replace( rtrim, \"$1\" );\n};\n\n\n\n// Register as a named AMD module, since jQuery can be concatenated with other\n// files that may use define, but not via a proper concatenation script that\n// understands anonymous AMD modules. A named AMD is safest and most robust\n// way to register. Lowercase jquery is used because AMD module names are\n// derived from file names, and jQuery is normally delivered in a lowercase\n// file name. Do this after creating the global so that if an AMD module wants\n// to call noConflict to hide this version of jQuery, it will work.\n\n// Note that for maximum portability, libraries that are not jQuery should\n// declare themselves as anonymous modules, and avoid setting a global if an\n// AMD loader is present. jQuery is a special case. For more information, see\n// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon\n\nif ( typeof define === \"function\" && define.amd ) {\n\tdefine( \"jquery\", [], function() {\n\t\treturn jQuery;\n\t} );\n}\n\n\n\n\nvar\n\n\t// Map over jQuery in case of overwrite\n\t_jQuery = window.jQuery,\n\n\t// Map over the $ in case of overwrite\n\t_$ = window.$;\n\njQuery.noConflict = function( deep ) {\n\tif ( window.$ === jQuery ) {\n\t\twindow.$ = _$;\n\t}\n\n\tif ( deep && window.jQuery === jQuery ) {\n\t\twindow.jQuery = _jQuery;\n\t}\n\n\treturn jQuery;\n};\n\n// Expose jQuery and $ identifiers, even in AMD\n// (trac-7102#comment:10, https://github.com/jquery/jquery/pull/557)\n// and CommonJS for browser emulators (trac-13566)\nif ( typeof noGlobal === \"undefined\" ) {\n\twindow.jQuery = window.$ = jQuery;\n}\n\n\n\n\nreturn jQuery;\n} );\n","/*!\n * @overview  Ember - JavaScript Application Framework\n * @copyright Copyright 2011-2021 Tilde Inc. and contributors\n *            Portions Copyright 2006-2011 Strobe Inc.\n *            Portions Copyright 2008-2011 Apple Inc. All rights reserved.\n * @license   Licensed under MIT license\n *            See https://raw.github.com/emberjs/ember.js/master/LICENSE\n * @version   3.28.12\n */\n","/* eslint-disable no-var */\n/* globals global globalThis self */\nvar define, require;\n\n(function () {\n  var globalObj =\n    typeof globalThis !== 'undefined'\n      ? globalThis\n      : typeof self !== 'undefined'\n      ? self\n      : typeof window !== 'undefined'\n      ? window\n      : typeof global !== 'undefined'\n      ? global\n      : null;\n\n  if (globalObj === null) {\n    throw new Error('unable to locate global object');\n  }\n\n  if (typeof globalObj.define === 'function' && typeof globalObj.require === 'function') {\n    define = globalObj.define;\n    require = globalObj.require;\n\n    return;\n  }\n\n  var registry = Object.create(null);\n  var seen = Object.create(null);\n\n  function missingModule(name, referrerName) {\n    if (referrerName) {\n      throw new Error('Could not find module ' + name + ' required by: ' + referrerName);\n    } else {\n      throw new Error('Could not find module ' + name);\n    }\n  }\n\n  function internalRequire(_name, referrerName) {\n    var name = _name;\n    var mod = registry[name];\n\n    if (!mod) {\n      name = name + '/index';\n      mod = registry[name];\n    }\n\n    var exports = seen[name];\n\n    if (exports !== undefined) {\n      return exports;\n    }\n\n    exports = seen[name] = {};\n\n    if (!mod) {\n      missingModule(_name, referrerName);\n    }\n\n    var deps = mod.deps;\n    var callback = mod.callback;\n    var reified = new Array(deps.length);\n\n    for (var i = 0; i < deps.length; i++) {\n      if (deps[i] === 'exports') {\n        reified[i] = exports;\n      } else if (deps[i] === 'require') {\n        reified[i] = require;\n      } else {\n        reified[i] = require(deps[i], name);\n      }\n    }\n\n    callback.apply(this, reified);\n\n    return exports;\n  }\n\n  require = function (name) {\n    return internalRequire(name, null);\n  };\n\n  // eslint-disable-next-line no-unused-vars\n  define = function (name, deps, callback) {\n    registry[name] = { deps: deps, callback: callback };\n  };\n\n  // setup `require` module\n  require['default'] = require;\n\n  require.has = function registryHas(moduleName) {\n    return Boolean(registry[moduleName]) || Boolean(registry[moduleName + '/index']);\n  };\n\n  require._eak_seen = require.entries = registry;\n})();\n","import { context } from '@ember/-internals/environment';\nimport { onEmberGlobalAccess } from '@ember/-internals/overrides';\nimport { deprecate } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport require from 'require';\n\n(function bootstrap() {\n  let Ember;\n\n  let get = () => {\n    if (!Ember) {\n      // tslint:disable-next-line: no-require-imports\n      Ember = require('ember').default;\n    }\n\n    return Ember;\n  };\n\n  if (DEBUG) {\n    let defaultHandler = () => {\n      return 'Usage of the Ember Global is deprecated. You should import the Ember module or the specific API instead.';\n    };\n\n    let handler = onEmberGlobalAccess || defaultHandler;\n    let _get = get;\n\n    get = () => {\n      let message = handler();\n\n      if (message !== null) {\n        deprecate(message, false, {\n          id: 'ember-global',\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x/#toc_ember-global',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          }\n        });\n      }\n\n      return _get();\n    };\n  }\n\n  function defineEmber(key) {\n    Object.defineProperty(context.exports, key, {\n      enumerable: true,\n      configurable: true,\n      get\n    });\n  } // Bootstrap the global\n\n\n  defineEmber('Ember');\n  defineEmber('Em'); // Bootstrap Node module\n  // eslint-disable-next-line no-undef\n\n  if (typeof module === 'object' && typeof module.require === 'function') {\n    // tslint:disable-next-line: no-require-imports\n    module.exports = Ember = require('ember').default;\n  }\n})();","// check if window exists and actually is the global\nvar hasDom = typeof self === 'object' && self !== null && self.Object === Object && typeof Window !== 'undefined' && self.constructor === Window && typeof document === 'object' && document !== null && self.document === document && typeof location === 'object' && location !== null && self.location === location && typeof history === 'object' && history !== null && self.history === history && typeof navigator === 'object' && navigator !== null && self.navigator === navigator && typeof navigator.userAgent === 'string';\n\nconst window = hasDom ? self : null;\nconst location$1 = hasDom ? self.location : null;\nconst history$1 = hasDom ? self.history : null;\nconst userAgent = hasDom ? self.navigator.userAgent : 'Lynx (textmode)';\nconst isChrome = hasDom ? typeof chrome === 'object' && !(typeof opera === 'object') : false;\nconst isFirefox = hasDom ? typeof InstallTrigger !== 'undefined' : false;\nconst isIE = hasDom ? typeof MSInputMethodContext !== 'undefined' && typeof documentMode !== 'undefined' : false;\n\nexport { window, location$1 as location, history$1 as history, userAgent, isChrome, isFirefox, isIE, hasDom as hasDOM };\n","import { deprecate } from '@ember/debug';\nimport { LOGGER } from '@ember/deprecated-features'; // Deliver message that the function is deprecated\n\nconst DEPRECATION_MESSAGE = 'Use of Ember.Logger is deprecated. Please use `console` for logging.';\nconst DEPRECATION_ID = 'ember-console.deprecate-logger';\nconst DEPRECATION_URL = 'https://deprecations.emberjs.com/v3.x#toc_use-console-rather-than-ember-logger';\n/**\n   @module ember\n*/\n\n/**\n  Inside Ember-Metal, simply uses the methods from `imports.console`.\n  Override this to provide more robust logging functionality.\n\n  @class Logger\n  @deprecated Use 'console' instead\n\n  @namespace Ember\n  @public\n*/\n\nlet DEPRECATED_LOGGER;\n\nif (LOGGER) {\n  DEPRECATED_LOGGER = {\n    /**\n    Logs the arguments to the console.\n    You can pass as many arguments as you want and they will be joined together with a space.\n     ```javascript\n    var foo = 1;\n    Ember.Logger.log('log value of foo:', foo);\n    // \"log value of foo: 1\" will be printed to the console\n    ```\n    @method log\n    @for Ember.Logger\n    @param {*} arguments\n    @public\n    */\n    log() {\n      deprecate(DEPRECATION_MESSAGE, false, {\n        id: DEPRECATION_ID,\n        until: '4.0.0',\n        url: DEPRECATION_URL,\n        for: 'ember-source',\n        since: {\n          enabled: '3.2.0'\n        }\n      });\n      return console.log(...arguments); // eslint-disable-line no-console\n    },\n\n    /**\n    Prints the arguments to the console with a warning icon.\n    You can pass as many arguments as you want and they will be joined together with a space.\n     ```javascript\n    Ember.Logger.warn('Something happened!');\n    // \"Something happened!\" will be printed to the console with a warning icon.\n    ```\n    @method warn\n    @for Ember.Logger\n    @param {*} arguments\n    @public\n    */\n    warn() {\n      deprecate(DEPRECATION_MESSAGE, false, {\n        id: DEPRECATION_ID,\n        until: '4.0.0',\n        url: DEPRECATION_URL,\n        for: 'ember-source',\n        since: {\n          enabled: '3.2.0'\n        }\n      });\n      return console.warn(...arguments); // eslint-disable-line no-console\n    },\n\n    /**\n    Prints the arguments to the console with an error icon, red text and a stack trace.\n    You can pass as many arguments as you want and they will be joined together with a space.\n     ```javascript\n    Ember.Logger.error('Danger! Danger!');\n    // \"Danger! Danger!\" will be printed to the console in red text.\n    ```\n    @method error\n    @for Ember.Logger\n    @param {*} arguments\n    @public\n    */\n    error() {\n      deprecate(DEPRECATION_MESSAGE, false, {\n        id: DEPRECATION_ID,\n        until: '4.0.0',\n        url: DEPRECATION_URL,\n        for: 'ember-source',\n        since: {\n          enabled: '3.2.0'\n        }\n      });\n      return console.error(...arguments); // eslint-disable-line no-console\n    },\n\n    /**\n    Logs the arguments to the console.\n    You can pass as many arguments as you want and they will be joined together with a space.\n     ```javascript\n    var foo = 1;\n    Ember.Logger.info('log value of foo:', foo);\n    // \"log value of foo: 1\" will be printed to the console\n    ```\n    @method info\n    @for Ember.Logger\n    @param {*} arguments\n    @public\n    */\n    info() {\n      deprecate(DEPRECATION_MESSAGE, false, {\n        id: DEPRECATION_ID,\n        until: '4.0.0',\n        url: DEPRECATION_URL,\n        for: 'ember-source',\n        since: {\n          enabled: '3.2.0'\n        }\n      });\n      return console.info(...arguments); // eslint-disable-line no-console\n    },\n\n    /**\n    Logs the arguments to the console in blue text.\n    You can pass as many arguments as you want and they will be joined together with a space.\n     ```javascript\n    var foo = 1;\n    Ember.Logger.debug('log value of foo:', foo);\n    // \"log value of foo: 1\" will be printed to the console\n    ```\n    @method debug\n    @for Ember.Logger\n    @param {*} arguments\n    @public\n    */\n    debug() {\n      deprecate(DEPRECATION_MESSAGE, false, {\n        id: DEPRECATION_ID,\n        until: '4.0.0',\n        url: DEPRECATION_URL,\n        for: 'ember-source',\n        since: {\n          enabled: '3.2.0'\n        }\n      });\n      /* eslint-disable no-console */\n\n      if (console.debug) {\n        return console.debug(...arguments);\n      }\n\n      return console.info(...arguments);\n      /* eslint-enable no-console */\n    },\n\n    /**\n    If the value passed into `Ember.Logger.assert` is not truthy it will throw an error with a stack trace.\n     ```javascript\n    Ember.Logger.assert(true); // undefined\n    Ember.Logger.assert(true === false); // Throws an Assertion failed error.\n    Ember.Logger.assert(true === false, 'Something invalid'); // Throws an Assertion failed error with message.\n    ```\n    @method assert\n    @for Ember.Logger\n    @param {Boolean} bool Value to test\n    @param {String} message Assertion message on failed\n    @public\n    */\n    assert() {\n      deprecate(DEPRECATION_MESSAGE, false, {\n        id: DEPRECATION_ID,\n        until: '4.0.0',\n        url: DEPRECATION_URL,\n        for: 'ember-source',\n        since: {\n          enabled: '3.2.0'\n        }\n      });\n      return console.assert(...arguments); // eslint-disable-line no-console\n    }\n\n  };\n}\n\nexport default DEPRECATED_LOGGER;","import { setOwner } from '@ember/-internals/owner';\nimport { dictionary, HAS_NATIVE_PROXY, symbol, intern } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport { assign } from '@ember/polyfills';\nimport { DEBUG } from '@glimmer/env';\n\nlet leakTracking;\nlet containers;\n\nif (DEBUG) {\n  // requires v8\n  // chrome --js-flags=\"--allow-natives-syntax --expose-gc\"\n  // node --allow-natives-syntax --expose-gc\n  try {\n    if (typeof gc === 'function') {\n      leakTracking = (() => {\n        // avoid syntax errors when --allow-natives-syntax not present\n        let GetWeakSetValues = new Function('weakSet', 'return %GetWeakSetValues(weakSet, 0)');\n        containers = new WeakSet();\n        return {\n          hasContainers() {\n            gc();\n            return GetWeakSetValues(containers).length > 0;\n          },\n\n          reset() {\n            let values = GetWeakSetValues(containers);\n\n            for (let i = 0; i < values.length; i++) {\n              containers.delete(values[i]);\n            }\n          }\n\n        };\n      })();\n    }\n  } catch (e) {// ignore\n  }\n}\n\nconst deprecatedStoreInjections = DEBUG && window.WeakSet ? new window.WeakSet() : undefined;\n/**\n A container used to instantiate and cache objects.\n\n Every `Container` must be associated with a `Registry`, which is referenced\n to determine the factory and options that should be used to instantiate\n objects.\n\n The public API for `Container` is still in flux and should not be considered\n stable.\n\n @private\n @class Container\n */\n\nclass Container {\n  constructor(registry, options = {}) {\n    this.registry = registry;\n    this.owner = options.owner || null;\n    this.cache = dictionary(options.cache || null);\n    this.factoryManagerCache = dictionary(options.factoryManagerCache || null);\n    this.isDestroyed = false;\n    this.isDestroying = false;\n\n    if (DEBUG) {\n      this.validationCache = dictionary(options.validationCache || null);\n\n      if (containers !== undefined) {\n        containers.add(this);\n      }\n    }\n  }\n  /**\n   @private\n   @property registry\n   @type Registry\n   @since 1.11.0\n   */\n\n  /**\n   @private\n   @property cache\n   @type InheritingDict\n   */\n\n  /**\n   @private\n   @property validationCache\n   @type InheritingDict\n   */\n\n  /**\n   Given a fullName return a corresponding instance.\n    The default behavior is for lookup to return a singleton instance.\n   The singleton is scoped to the container, allowing multiple containers\n   to all have their own locally scoped singletons.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    registry.register('api:twitter', Twitter);\n    let twitter = container.lookup('api:twitter');\n    twitter instanceof Twitter; // => true\n    // by default the container will return singletons\n   let twitter2 = container.lookup('api:twitter');\n   twitter2 instanceof Twitter; // => true\n    twitter === twitter2; //=> true\n   ```\n    If singletons are not wanted, an optional flag can be provided at lookup.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    registry.register('api:twitter', Twitter);\n    let twitter = container.lookup('api:twitter', { singleton: false });\n   let twitter2 = container.lookup('api:twitter', { singleton: false });\n    twitter === twitter2; //=> false\n   ```\n    @private\n   @method lookup\n   @param {String} fullName\n   @param {Object} [options]\n   @param {String} [options.source] The fullname of the request source (used for local lookup)\n   @return {any}\n   */\n\n\n  lookup(fullName, options) {\n    if (this.isDestroyed) {\n      throw new Error(`Can not call \\`.lookup\\` after the owner has been destroyed`);\n    }\n\n    assert('fullName must be a proper full name', this.registry.isValidFullName(fullName));\n    return lookup(this, this.registry.normalize(fullName), options);\n  }\n  /**\n   A depth first traversal, destroying the container, its descendant containers and all\n   their managed objects.\n    @private\n   @method destroy\n   */\n\n\n  destroy() {\n    this.isDestroying = true;\n    destroyDestroyables(this);\n  }\n\n  finalizeDestroy() {\n    resetCache(this);\n    this.isDestroyed = true;\n  }\n  /**\n   Clear either the entire cache or just the cache for a particular key.\n      @private\n   @method reset\n   @param {String} fullName optional key to reset; if missing, resets everything\n  */\n\n\n  reset(fullName) {\n    if (this.isDestroyed) return;\n\n    if (fullName === undefined) {\n      destroyDestroyables(this);\n      resetCache(this);\n    } else {\n      resetMember(this, this.registry.normalize(fullName));\n    }\n  }\n  /**\n   Returns an object that can be used to provide an owner to a\n   manually created instance.\n    @private\n   @method ownerInjection\n   @returns { Object }\n  */\n\n\n  ownerInjection() {\n    let injection = {};\n    setOwner(injection, this.owner);\n    return injection;\n  }\n  /**\n   Given a fullName, return the corresponding factory. The consumer of the factory\n   is responsible for the destruction of any factory instances, as there is no\n   way for the container to ensure instances are destroyed when it itself is\n   destroyed.\n    @public\n   @method factoryFor\n   @param {String} fullName\n   @param {Object} [options]\n   @param {String} [options.source] The fullname of the request source (used for local lookup)\n   @return {any}\n   */\n\n\n  factoryFor(fullName) {\n    if (this.isDestroyed) {\n      throw new Error(`Can not call \\`.factoryFor\\` after the owner has been destroyed`);\n    }\n\n    let normalizedName = this.registry.normalize(fullName);\n    assert('fullName must be a proper full name', this.registry.isValidFullName(normalizedName));\n    return factoryFor(this, normalizedName, fullName);\n  }\n\n}\n\nif (DEBUG) {\n  Container._leakTracking = leakTracking;\n}\n/*\n * Wrap a factory manager in a proxy which will not permit properties to be\n * set on the manager.\n */\n\n\nfunction wrapManagerInDeprecationProxy(manager) {\n  if (HAS_NATIVE_PROXY) {\n    let validator = {\n      set(_obj, prop) {\n        throw new Error(`You attempted to set \"${prop}\" on a factory manager created by container#factoryFor. A factory manager is a read-only construct.`);\n      }\n\n    }; // Note:\n    // We have to proxy access to the manager here so that private property\n    // access doesn't cause the above errors to occur.\n\n    let m = manager;\n    let proxiedManager = {\n      class: m.class,\n\n      create(props) {\n        return m.create(props);\n      }\n\n    };\n    return new Proxy(proxiedManager, validator);\n  }\n\n  return manager;\n}\n\nfunction isSingleton(container, fullName) {\n  return container.registry.getOption(fullName, 'singleton') !== false;\n}\n\nfunction isInstantiatable(container, fullName) {\n  return container.registry.getOption(fullName, 'instantiate') !== false;\n}\n\nfunction lookup(container, fullName, options = {}) {\n  let normalizedName = fullName;\n\n  if (options.singleton === true || options.singleton === undefined && isSingleton(container, fullName)) {\n    let cached = container.cache[normalizedName];\n\n    if (cached !== undefined) {\n      return cached;\n    }\n  }\n\n  return instantiateFactory(container, normalizedName, fullName, options);\n}\n\nfunction factoryFor(container, normalizedName, fullName) {\n  let cached = container.factoryManagerCache[normalizedName];\n\n  if (cached !== undefined) {\n    return cached;\n  }\n\n  let factory = container.registry.resolve(normalizedName);\n\n  if (factory === undefined) {\n    return;\n  }\n\n  if (DEBUG && factory && typeof factory._onLookup === 'function') {\n    factory._onLookup(fullName);\n  }\n\n  let manager = new FactoryManager(container, factory, fullName, normalizedName);\n\n  if (DEBUG) {\n    manager = wrapManagerInDeprecationProxy(manager);\n  }\n\n  container.factoryManagerCache[normalizedName] = manager;\n  return manager;\n}\n\nfunction isSingletonClass(container, fullName, {\n  instantiate,\n  singleton\n}) {\n  return singleton !== false && !instantiate && isSingleton(container, fullName) && !isInstantiatable(container, fullName);\n}\n\nfunction isSingletonInstance(container, fullName, {\n  instantiate,\n  singleton\n}) {\n  return singleton !== false && instantiate !== false && (singleton === true || isSingleton(container, fullName)) && isInstantiatable(container, fullName);\n}\n\nfunction isFactoryClass(container, fullname, {\n  instantiate,\n  singleton\n}) {\n  return instantiate === false && (singleton === false || !isSingleton(container, fullname)) && !isInstantiatable(container, fullname);\n}\n\nfunction isFactoryInstance(container, fullName, {\n  instantiate,\n  singleton\n}) {\n  return instantiate !== false && (singleton === false || !isSingleton(container, fullName)) && isInstantiatable(container, fullName);\n}\n\nfunction instantiateFactory(container, normalizedName, fullName, options) {\n  let factoryManager = factoryFor(container, normalizedName, fullName);\n\n  if (factoryManager === undefined) {\n    return;\n  } // SomeClass { singleton: true, instantiate: true } | { singleton: true } | { instantiate: true } | {}\n  // By default majority of objects fall into this case\n\n\n  if (isSingletonInstance(container, fullName, options)) {\n    let instance = container.cache[normalizedName] = factoryManager.create(); // if this lookup happened _during_ destruction (emits a deprecation, but\n    // is still possible) ensure that it gets destroyed\n\n    if (container.isDestroying) {\n      if (typeof instance.destroy === 'function') {\n        instance.destroy();\n      }\n    }\n\n    return instance;\n  } // SomeClass { singleton: false, instantiate: true }\n\n\n  if (isFactoryInstance(container, fullName, options)) {\n    return factoryManager.create();\n  } // SomeClass { singleton: true, instantiate: false } | { instantiate: false } | { singleton: false, instantiation: false }\n\n\n  if (isSingletonClass(container, fullName, options) || isFactoryClass(container, fullName, options)) {\n    return factoryManager.class;\n  }\n\n  throw new Error('Could not create factory');\n}\n\nfunction processInjections(container, injections, result) {\n  if (DEBUG) {\n    container.registry.validateInjections(injections);\n  }\n\n  let hash = result.injections;\n\n  for (let i = 0; i < injections.length; i++) {\n    let {\n      property,\n      specifier\n    } = injections[i];\n    hash[property] = lookup(container, specifier);\n\n    if (!result.isDynamic) {\n      result.isDynamic = !isSingleton(container, specifier);\n    }\n  }\n}\n\nfunction buildInjections(container, typeInjections, injections) {\n  let injectionsHash = {};\n  setOwner(injectionsHash, container.owner);\n  let result = {\n    injections: injectionsHash,\n    isDynamic: false\n  };\n\n  if (typeInjections !== undefined) {\n    processInjections(container, typeInjections, result);\n  }\n\n  if (injections !== undefined) {\n    processInjections(container, injections, result);\n  }\n\n  return result;\n}\n\nfunction injectionsFor(container, fullName) {\n  let registry = container.registry;\n  let [type] = fullName.split(':');\n  let typeInjections = registry.getTypeInjections(type);\n  let injections = registry.getInjections(fullName);\n  let result = buildInjections(container, typeInjections, injections);\n\n  if (DEBUG && deprecatedStoreInjections && type === 'route' && result.injections.store) {\n    deprecatedStoreInjections.add(result.injections.store);\n  }\n\n  return result;\n}\n\nfunction destroyDestroyables(container) {\n  let cache = container.cache;\n  let keys = Object.keys(cache);\n\n  for (let i = 0; i < keys.length; i++) {\n    let key = keys[i];\n    let value = cache[key];\n\n    if (value.destroy) {\n      value.destroy();\n    }\n  }\n}\n\nfunction resetCache(container) {\n  container.cache = dictionary(null);\n  container.factoryManagerCache = dictionary(null);\n}\n\nfunction resetMember(container, fullName) {\n  let member = container.cache[fullName];\n  delete container.factoryManagerCache[fullName];\n\n  if (member) {\n    delete container.cache[fullName];\n\n    if (member.destroy) {\n      member.destroy();\n    }\n  }\n}\n\nconst INIT_FACTORY = symbol('INIT_FACTORY');\nfunction getFactoryFor(obj) {\n  return obj[INIT_FACTORY];\n}\nfunction setFactoryFor(obj, factory) {\n  obj[INIT_FACTORY] = factory;\n}\n\nclass FactoryManager {\n  constructor(container, factory, fullName, normalizedName) {\n    this.container = container;\n    this.owner = container.owner;\n    this.class = factory;\n    this.fullName = fullName;\n    this.normalizedName = normalizedName;\n    this.madeToString = undefined;\n    this.injections = undefined;\n  }\n\n  toString() {\n    if (this.madeToString === undefined) {\n      this.madeToString = this.container.registry.makeToString(this.class, this.fullName);\n    }\n\n    return this.madeToString;\n  }\n\n  create(options) {\n    let {\n      container\n    } = this;\n\n    if (container.isDestroyed) {\n      throw new Error(`Can not create new instances after the owner has been destroyed (you attempted to create ${this.fullName})`);\n    }\n\n    let props = this.injections;\n\n    if (props === undefined) {\n      let {\n        injections,\n        isDynamic\n      } = injectionsFor(this.container, this.normalizedName);\n      setFactoryFor(injections, this);\n      props = injections;\n\n      if (!isDynamic) {\n        this.injections = injections;\n      }\n    }\n\n    if (options !== undefined) {\n      props = assign({}, props, options);\n    }\n\n    if (DEBUG) {\n      let lazyInjections;\n      let validationCache = this.container.validationCache; // Ensure that all lazy injections are valid at instantiation time\n\n      if (!validationCache[this.fullName] && this.class && typeof this.class._lazyInjections === 'function') {\n        lazyInjections = this.class._lazyInjections();\n        lazyInjections = this.container.registry.normalizeInjectionsHash(lazyInjections);\n        this.container.registry.validateInjections(lazyInjections);\n      }\n\n      validationCache[this.fullName] = true;\n      assert(`Failed to create an instance of '${this.normalizedName}'. Most likely an improperly defined class or an invalid module export.`, typeof this.class.create === 'function');\n    }\n\n    return this.class.create(props);\n  }\n\n}\n\nconst VALID_FULL_NAME_REGEXP = /^[^:]+:[^:]+$/;\n/**\n A registry used to store factory and option information keyed\n by type.\n\n A `Registry` stores the factory and option information needed by a\n `Container` to instantiate and cache objects.\n\n The API for `Registry` is still in flux and should not be considered stable.\n\n @private\n @class Registry\n @since 1.11.0\n*/\n\nclass Registry {\n  constructor(options = {}) {\n    this.fallback = options.fallback || null;\n    this.resolver = options.resolver || null;\n    this.registrations = dictionary(options.registrations || null);\n    this._typeInjections = dictionary(null);\n    this._injections = dictionary(null);\n    this._localLookupCache = Object.create(null);\n    this._normalizeCache = dictionary(null);\n    this._resolveCache = dictionary(null);\n    this._failSet = new Set();\n    this._options = dictionary(null);\n    this._typeOptions = dictionary(null);\n  }\n  /**\n   A backup registry for resolving registrations when no matches can be found.\n      @private\n   @property fallback\n   @type Registry\n   */\n\n  /**\n   An object that has a `resolve` method that resolves a name.\n      @private\n   @property resolver\n   @type Resolver\n   */\n\n  /**\n   @private\n   @property registrations\n   @type InheritingDict\n   */\n\n  /**\n   @private\n      @property _typeInjections\n   @type InheritingDict\n   */\n\n  /**\n   @private\n      @property _injections\n   @type InheritingDict\n   */\n\n  /**\n   @private\n      @property _normalizeCache\n   @type InheritingDict\n   */\n\n  /**\n   @private\n      @property _resolveCache\n   @type InheritingDict\n   */\n\n  /**\n   @private\n      @property _options\n   @type InheritingDict\n   */\n\n  /**\n   @private\n      @property _typeOptions\n   @type InheritingDict\n   */\n\n  /**\n   Creates a container based on this registry.\n      @private\n   @method container\n   @param {Object} options\n   @return {Container} created container\n   */\n\n\n  container(options) {\n    return new Container(this, options);\n  }\n  /**\n   Registers a factory for later injection.\n      Example:\n      ```javascript\n   let registry = new Registry();\n      registry.register('model:user', Person, {singleton: false });\n   registry.register('fruit:favorite', Orange);\n   registry.register('communication:main', Email, {singleton: false});\n   ```\n      @private\n   @method register\n   @param {String} fullName\n   @param {Function} factory\n   @param {Object} options\n   */\n\n\n  register(fullName, factory, options = {}) {\n    assert('fullName must be a proper full name', this.isValidFullName(fullName));\n    assert(`Attempting to register an unknown factory: '${fullName}'`, factory !== undefined);\n    let normalizedName = this.normalize(fullName);\n    assert(`Cannot re-register: '${fullName}', as it has already been resolved.`, !this._resolveCache[normalizedName]);\n\n    this._failSet.delete(normalizedName);\n\n    this.registrations[normalizedName] = factory;\n    this._options[normalizedName] = options;\n  }\n  /**\n   Unregister a fullName\n      ```javascript\n   let registry = new Registry();\n   registry.register('model:user', User);\n      registry.resolve('model:user').create() instanceof User //=> true\n      registry.unregister('model:user')\n   registry.resolve('model:user') === undefined //=> true\n   ```\n      @private\n   @method unregister\n   @param {String} fullName\n   */\n\n\n  unregister(fullName) {\n    assert('fullName must be a proper full name', this.isValidFullName(fullName));\n    let normalizedName = this.normalize(fullName);\n    this._localLookupCache = Object.create(null);\n    delete this.registrations[normalizedName];\n    delete this._resolveCache[normalizedName];\n    delete this._options[normalizedName];\n\n    this._failSet.delete(normalizedName);\n  }\n  /**\n   Given a fullName return the corresponding factory.\n      By default `resolve` will retrieve the factory from\n   the registry.\n      ```javascript\n   let registry = new Registry();\n   registry.register('api:twitter', Twitter);\n      registry.resolve('api:twitter') // => Twitter\n   ```\n      Optionally the registry can be provided with a custom resolver.\n   If provided, `resolve` will first provide the custom resolver\n   the opportunity to resolve the fullName, otherwise it will fallback\n   to the registry.\n      ```javascript\n   let registry = new Registry();\n   registry.resolver = function(fullName) {\n      // lookup via the module system of choice\n    };\n      // the twitter factory is added to the module system\n   registry.resolve('api:twitter') // => Twitter\n   ```\n      @private\n   @method resolve\n   @param {String} fullName\n   @param {Object} [options]\n   @param {String} [options.source] the fullname of the request source (used for local lookups)\n   @return {Function} fullName's factory\n   */\n\n\n  resolve(fullName) {\n    let factory = resolve(this, this.normalize(fullName));\n\n    if (factory === undefined && this.fallback !== null) {\n      factory = this.fallback.resolve(...arguments);\n    }\n\n    return factory;\n  }\n  /**\n   A hook that can be used to describe how the resolver will\n   attempt to find the factory.\n      For example, the default Ember `.describe` returns the full\n   class name (including namespace) where Ember's resolver expects\n   to find the `fullName`.\n      @private\n   @method describe\n   @param {String} fullName\n   @return {string} described fullName\n   */\n\n\n  describe(fullName) {\n    if (this.resolver !== null && this.resolver.lookupDescription) {\n      return this.resolver.lookupDescription(fullName);\n    } else if (this.fallback !== null) {\n      return this.fallback.describe(fullName);\n    } else {\n      return fullName;\n    }\n  }\n  /**\n   A hook to enable custom fullName normalization behavior\n      @private\n   @method normalizeFullName\n   @param {String} fullName\n   @return {string} normalized fullName\n   */\n\n\n  normalizeFullName(fullName) {\n    if (this.resolver !== null && this.resolver.normalize) {\n      return this.resolver.normalize(fullName);\n    } else if (this.fallback !== null) {\n      return this.fallback.normalizeFullName(fullName);\n    } else {\n      return fullName;\n    }\n  }\n  /**\n   Normalize a fullName based on the application's conventions\n      @private\n   @method normalize\n   @param {String} fullName\n   @return {string} normalized fullName\n   */\n\n\n  normalize(fullName) {\n    return this._normalizeCache[fullName] || (this._normalizeCache[fullName] = this.normalizeFullName(fullName));\n  }\n  /**\n   @method makeToString\n      @private\n   @param {any} factory\n   @param {string} fullName\n   @return {function} toString function\n   */\n\n\n  makeToString(factory, fullName) {\n    var _a;\n\n    if (this.resolver !== null && this.resolver.makeToString) {\n      return this.resolver.makeToString(factory, fullName);\n    } else if (this.fallback !== null) {\n      return this.fallback.makeToString(factory, fullName);\n    } else {\n      return typeof factory === 'string' ? factory : (_a = factory.name) !== null && _a !== void 0 ? _a : '(unknown class)';\n    }\n  }\n  /**\n   Given a fullName check if the container is aware of its factory\n   or singleton instance.\n      @private\n   @method has\n   @param {String} fullName\n   @param {Object} [options]\n   @param {String} [options.source] the fullname of the request source (used for local lookups)\n   @return {Boolean}\n   */\n\n\n  has(fullName) {\n    if (!this.isValidFullName(fullName)) {\n      return false;\n    }\n\n    return has(this, this.normalize(fullName));\n  }\n  /**\n   Allow registering options for all factories of a type.\n      ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n      // if all of type `connection` must not be singletons\n   registry.optionsForType('connection', { singleton: false });\n      registry.register('connection:twitter', TwitterConnection);\n   registry.register('connection:facebook', FacebookConnection);\n      let twitter = container.lookup('connection:twitter');\n   let twitter2 = container.lookup('connection:twitter');\n      twitter === twitter2; // => false\n      let facebook = container.lookup('connection:facebook');\n   let facebook2 = container.lookup('connection:facebook');\n      facebook === facebook2; // => false\n   ```\n      @private\n   @method optionsForType\n   @param {String} type\n   @param {Object} options\n   */\n\n\n  optionsForType(type, options) {\n    this._typeOptions[type] = options;\n  }\n\n  getOptionsForType(type) {\n    let optionsForType = this._typeOptions[type];\n\n    if (optionsForType === undefined && this.fallback !== null) {\n      optionsForType = this.fallback.getOptionsForType(type);\n    }\n\n    return optionsForType;\n  }\n  /**\n   @private\n   @method options\n   @param {String} fullName\n   @param {Object} options\n   */\n\n\n  options(fullName, options) {\n    let normalizedName = this.normalize(fullName);\n    this._options[normalizedName] = options;\n  }\n\n  getOptions(fullName) {\n    let normalizedName = this.normalize(fullName);\n    let options = this._options[normalizedName];\n\n    if (options === undefined && this.fallback !== null) {\n      options = this.fallback.getOptions(fullName);\n    }\n\n    return options;\n  }\n\n  getOption(fullName, optionName) {\n    let options = this._options[fullName];\n\n    if (options !== undefined && options[optionName] !== undefined) {\n      return options[optionName];\n    }\n\n    let type = fullName.split(':')[0];\n    options = this._typeOptions[type];\n\n    if (options && options[optionName] !== undefined) {\n      return options[optionName];\n    } else if (this.fallback !== null) {\n      return this.fallback.getOption(fullName, optionName);\n    }\n\n    return undefined;\n  }\n  /**\n   Used only via `injection`.\n      Provides a specialized form of injection, specifically enabling\n   all objects of one type to be injected with a reference to another\n   object.\n      For example, provided each object of type `controller` needed a `router`.\n   one would do the following:\n      ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n      registry.register('router:main', Router);\n   registry.register('controller:user', UserController);\n   registry.register('controller:post', PostController);\n      registry.typeInjection('controller', 'router', 'router:main');\n      let user = container.lookup('controller:user');\n   let post = container.lookup('controller:post');\n      user.router instanceof Router; //=> true\n   post.router instanceof Router; //=> true\n      // both controllers share the same router\n   user.router === post.router; //=> true\n   ```\n      @private\n   @method typeInjection\n   @param {String} type\n   @param {String} property\n   @param {String} fullName\n   */\n\n\n  typeInjection(type, property, fullName) {\n    assert('fullName must be a proper full name', this.isValidFullName(fullName));\n    let fullNameType = fullName.split(':')[0];\n    assert(`Cannot inject a '${fullName}' on other ${type}(s).`, fullNameType !== type);\n    let injections = this._typeInjections[type] || (this._typeInjections[type] = []);\n    injections.push({\n      property,\n      specifier: fullName\n    });\n  }\n  /**\n   Defines injection rules.\n      These rules are used to inject dependencies onto objects when they\n   are instantiated.\n      Two forms of injections are possible:\n      * Injecting one fullName on another fullName\n   * Injecting one fullName on a type\n      Example:\n      ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n      registry.register('source:main', Source);\n   registry.register('model:user', User);\n   registry.register('model:post', Post);\n      // injecting one fullName on another fullName\n   // eg. each user model gets a post model\n   registry.injection('model:user', 'post', 'model:post');\n      // injecting one fullName on another type\n   registry.injection('model', 'source', 'source:main');\n      let user = container.lookup('model:user');\n   let post = container.lookup('model:post');\n      user.source instanceof Source; //=> true\n   post.source instanceof Source; //=> true\n      user.post instanceof Post; //=> true\n      // and both models share the same source\n   user.source === post.source; //=> true\n   ```\n      @private\n   @method injection\n   @param {String} factoryName\n   @param {String} property\n   @param {String} injectionName\n   */\n\n\n  injection(fullName, property, injectionName) {\n    assert(`Invalid injectionName, expected: 'type:name' got: ${injectionName}`, this.isValidFullName(injectionName));\n    let normalizedInjectionName = this.normalize(injectionName);\n\n    if (fullName.indexOf(':') === -1) {\n      return this.typeInjection(fullName, property, normalizedInjectionName);\n    }\n\n    assert('fullName must be a proper full name', this.isValidFullName(fullName));\n    let normalizedName = this.normalize(fullName);\n    let injections = this._injections[normalizedName] || (this._injections[normalizedName] = []);\n    injections.push({\n      property,\n      specifier: normalizedInjectionName\n    });\n  }\n  /**\n   @private\n   @method knownForType\n   @param {String} type the type to iterate over\n  */\n\n\n  knownForType(type) {\n    let localKnown = dictionary(null);\n    let registeredNames = Object.keys(this.registrations);\n\n    for (let index = 0; index < registeredNames.length; index++) {\n      let fullName = registeredNames[index];\n      let itemType = fullName.split(':')[0];\n\n      if (itemType === type) {\n        localKnown[fullName] = true;\n      }\n    }\n\n    let fallbackKnown, resolverKnown;\n\n    if (this.fallback !== null) {\n      fallbackKnown = this.fallback.knownForType(type);\n    }\n\n    if (this.resolver !== null && this.resolver.knownForType) {\n      resolverKnown = this.resolver.knownForType(type);\n    }\n\n    return assign({}, fallbackKnown, localKnown, resolverKnown);\n  }\n\n  isValidFullName(fullName) {\n    return VALID_FULL_NAME_REGEXP.test(fullName);\n  }\n\n  getInjections(fullName) {\n    let injections = this._injections[fullName];\n\n    if (this.fallback !== null) {\n      let fallbackInjections = this.fallback.getInjections(fullName);\n\n      if (fallbackInjections !== undefined) {\n        injections = injections === undefined ? fallbackInjections : injections.concat(fallbackInjections);\n      }\n    }\n\n    return injections;\n  }\n\n  getTypeInjections(type) {\n    let injections = this._typeInjections[type];\n\n    if (this.fallback !== null) {\n      let fallbackInjections = this.fallback.getTypeInjections(type);\n\n      if (fallbackInjections !== undefined) {\n        injections = injections === undefined ? fallbackInjections : injections.concat(fallbackInjections);\n      }\n    }\n\n    return injections;\n  }\n\n}\n\nif (DEBUG) {\n  const proto = Registry.prototype;\n\n  proto.normalizeInjectionsHash = function (hash) {\n    let injections = [];\n\n    for (let key in hash) {\n      if (Object.prototype.hasOwnProperty.call(hash, key)) {\n        let {\n          specifier\n        } = hash[key];\n        assert(`Expected a proper full name, given '${specifier}'`, this.isValidFullName(specifier));\n        injections.push({\n          property: key,\n          specifier\n        });\n      }\n    }\n\n    return injections;\n  };\n\n  proto.validateInjections = function (injections) {\n    if (!injections) {\n      return;\n    }\n\n    for (let i = 0; i < injections.length; i++) {\n      let {\n        specifier\n      } = injections[i];\n      assert(`Attempting to inject an unknown injection: '${specifier}'`, this.has(specifier));\n    }\n  };\n}\n\nfunction resolve(registry, _normalizedName) {\n  let normalizedName = _normalizedName;\n  let cached = registry._resolveCache[normalizedName];\n\n  if (cached !== undefined) {\n    return cached;\n  }\n\n  if (registry._failSet.has(normalizedName)) {\n    return;\n  }\n\n  let resolved;\n\n  if (registry.resolver) {\n    resolved = registry.resolver.resolve(normalizedName);\n  }\n\n  if (resolved === undefined) {\n    resolved = registry.registrations[normalizedName];\n  }\n\n  if (resolved === undefined) {\n    registry._failSet.add(normalizedName);\n  } else {\n    registry._resolveCache[normalizedName] = resolved;\n  }\n\n  return resolved;\n}\n\nfunction has(registry, fullName) {\n  return registry.resolve(fullName) !== undefined;\n}\n\nconst privateNames = dictionary(null);\nconst privateSuffix = `${Math.random()}${Date.now()}`.replace('.', '');\nfunction privatize([fullName]) {\n  let name = privateNames[fullName];\n\n  if (name) {\n    return name;\n  }\n\n  let [type, rawName] = fullName.split(':');\n  return privateNames[fullName] = intern(`${type}:${rawName}-${privateSuffix}`);\n}\n\n/*\nPublic API for the container is still in flux.\nThe public API, specified on the application namespace should be considered the stable API.\n// @module container\n  @private\n*/\n\nexport { Registry, privatize, Container, getFactoryFor, setFactoryFor, INIT_FACTORY, deprecatedStoreInjections };\n","import { FUNCTION_PROTOTYPE_EXTENSIONS } from '@ember/deprecated-features';\nimport { DEBUG } from '@glimmer/env';\n\n// from lodash to catch fake globals\nfunction checkGlobal(value) {\n  return value && value.Object === Object ? value : undefined;\n} // element ids can ruin global miss checks\n\n\nfunction checkElementIdShadowing(value) {\n  return value && value.nodeType === undefined ? value : undefined;\n} // export real global\n\n\nvar global$1 = checkGlobal(checkElementIdShadowing(typeof global === 'object' && global)) || checkGlobal(typeof self === 'object' && self) || checkGlobal(typeof window === 'object' && window) || typeof mainContext !== 'undefined' && mainContext || // set before strict mode in Ember loader/wrapper\nnew Function('return this')(); // eval outside of strict mode\n\nconst context = function (global, Ember) {\n  return Ember === undefined ? {\n    imports: global,\n    exports: global,\n    lookup: global\n  } : {\n    // import jQuery\n    imports: Ember.imports || global,\n    // export Ember\n    exports: Ember.exports || global,\n    // search for Namespaces\n    lookup: Ember.lookup || global\n  };\n}(global$1, global$1.Ember);\nfunction getLookup() {\n  return context.lookup;\n}\nfunction setLookup(value) {\n  context.lookup = value;\n}\n\n/**\n  The hash of environment variables used to control various configuration\n  settings. To specify your own or override default settings, add the\n  desired properties to a global hash named `EmberENV` (or `ENV` for\n  backwards compatibility with earlier versions of Ember). The `EmberENV`\n  hash must be created before loading Ember.\n\n  @class EmberENV\n  @type Object\n  @public\n*/\n\nconst ENV = {\n  ENABLE_OPTIONAL_FEATURES: false,\n\n  /**\n    Determines whether Ember should add to `Array`, `Function`, and `String`\n    native object prototypes, a few extra methods in order to provide a more\n    friendly API.\n       We generally recommend leaving this option set to true however, if you need\n    to turn it off, you can add the configuration property\n    `EXTEND_PROTOTYPES` to `EmberENV` and set it to `false`.\n       Note, when disabled (the default configuration for Ember Addons), you will\n    instead have to access all methods and functions from the Ember\n    namespace.\n       @property EXTEND_PROTOTYPES\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  EXTEND_PROTOTYPES: {\n    Array: true,\n    Function: true,\n    String: true\n  },\n\n  /**\n    The `LOG_STACKTRACE_ON_DEPRECATION` property, when true, tells Ember to log\n    a full stack trace during deprecation warnings.\n       @property LOG_STACKTRACE_ON_DEPRECATION\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  LOG_STACKTRACE_ON_DEPRECATION: true,\n\n  /**\n    The `LOG_VERSION` property, when true, tells Ember to log versions of all\n    dependent libraries in use.\n       @property LOG_VERSION\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  LOG_VERSION: true,\n  RAISE_ON_DEPRECATION: false,\n  STRUCTURED_PROFILE: false,\n\n  /**\n    Whether to insert a `<div class=\"ember-view\" />` wrapper around the\n    application template. See RFC #280.\n       This is not intended to be set directly, as the implementation may change in\n    the future. Use `@ember/optional-features` instead.\n       @property _APPLICATION_TEMPLATE_WRAPPER\n    @for EmberENV\n    @type Boolean\n    @default true\n    @private\n  */\n  _APPLICATION_TEMPLATE_WRAPPER: true,\n\n  /**\n    Whether to use Glimmer Component semantics (as opposed to the classic \"Curly\"\n    components semantics) for template-only components. See RFC #278.\n       This is not intended to be set directly, as the implementation may change in\n    the future. Use `@ember/optional-features` instead.\n       @property _TEMPLATE_ONLY_GLIMMER_COMPONENTS\n    @for EmberENV\n    @type Boolean\n    @default false\n    @private\n  */\n  _TEMPLATE_ONLY_GLIMMER_COMPONENTS: false,\n\n  /**\n    Whether to perform extra bookkeeping needed to make the `captureRenderTree`\n    API work.\n       This has to be set before the ember JavaScript code is evaluated. This is\n    usually done by setting `window.EmberENV = { _DEBUG_RENDER_TREE: true };`\n    before the \"vendor\" `<script>` tag in `index.html`.\n       Setting the flag after Ember is already loaded will not work correctly. It\n    may appear to work somewhat, but fundamentally broken.\n       This is not intended to be set directly. Ember Inspector will enable the\n    flag on behalf of the user as needed.\n       This flag is always on in development mode.\n       The flag is off by default in production mode, due to the cost associated\n    with the the bookkeeping work.\n       The expected flow is that Ember Inspector will ask the user to refresh the\n    page after enabling the feature. It could also offer a feature where the\n    user add some domains to the \"always on\" list. In either case, Ember\n    Inspector will inject the code on the page to set the flag if needed.\n       @property _DEBUG_RENDER_TREE\n    @for EmberENV\n    @type Boolean\n    @default false\n    @private\n  */\n  _DEBUG_RENDER_TREE: DEBUG,\n\n  /**\n    Whether the app is using jQuery. See RFC #294.\n       This is not intended to be set directly, as the implementation may change in\n    the future. Use `@ember/optional-features` instead.\n       @property _JQUERY_INTEGRATION\n    @for EmberENV\n    @type Boolean\n    @default true\n    @private\n  */\n  _JQUERY_INTEGRATION: true,\n\n  /**\n    Whether the app defaults to using async observers.\n       This is not intended to be set directly, as the implementation may change in\n    the future. Use `@ember/optional-features` instead.\n       @property _DEFAULT_ASYNC_OBSERVERS\n    @for EmberENV\n    @type Boolean\n    @default false\n    @private\n  */\n  _DEFAULT_ASYNC_OBSERVERS: false,\n\n  /**\n    Controls the maximum number of scheduled rerenders without \"settling\". In general,\n    applications should not need to modify this environment variable, but please\n    open an issue so that we can determine if a better default value is needed.\n       @property _RERENDER_LOOP_LIMIT\n    @for EmberENV\n    @type number\n    @default 1000\n    @private\n   */\n  _RERENDER_LOOP_LIMIT: 1000,\n\n  /**\n    Allows disabling the implicit this property fallback deprecation. This could be useful\n    as a way to control the volume of deprecations that are issued by temporarily disabling\n    the implicit this fallback deprecations, which would allow the other deprecations to be more easily\n    identified in the console).\n       NOTE: The fallback behavior **will be removed** in Ember 4.0.0, disabling **_IS NOT_**\n    a viable strategy for handling this deprecation.\n       @property _DISABLE_PROPERTY_FALLBACK_DEPRECATION\n    @for EmberENV\n    @type boolean\n    @default false\n    @private\n   */\n  _DISABLE_PROPERTY_FALLBACK_DEPRECATION: false,\n  EMBER_LOAD_HOOKS: {},\n  FEATURES: {}\n};\n\n(EmberENV => {\n  if (typeof EmberENV !== 'object' || EmberENV === null) return;\n\n  for (let flag in EmberENV) {\n    if (!Object.prototype.hasOwnProperty.call(EmberENV, flag) || flag === 'EXTEND_PROTOTYPES' || flag === 'EMBER_LOAD_HOOKS') continue;\n    let defaultValue = ENV[flag];\n\n    if (defaultValue === true) {\n      ENV[flag] = EmberENV[flag] !== false;\n    } else if (defaultValue === false) {\n      ENV[flag] = EmberENV[flag] === true;\n    }\n  }\n\n  let {\n    EXTEND_PROTOTYPES\n  } = EmberENV;\n\n  if (EXTEND_PROTOTYPES !== undefined) {\n    if (typeof EXTEND_PROTOTYPES === 'object' && EXTEND_PROTOTYPES !== null) {\n      ENV.EXTEND_PROTOTYPES.String = EXTEND_PROTOTYPES.String !== false;\n\n      if (FUNCTION_PROTOTYPE_EXTENSIONS) {\n        ENV.EXTEND_PROTOTYPES.Function = EXTEND_PROTOTYPES.Function !== false;\n      }\n\n      ENV.EXTEND_PROTOTYPES.Array = EXTEND_PROTOTYPES.Array !== false;\n    } else {\n      let isEnabled = EXTEND_PROTOTYPES !== false;\n      ENV.EXTEND_PROTOTYPES.String = isEnabled;\n\n      if (FUNCTION_PROTOTYPE_EXTENSIONS) {\n        ENV.EXTEND_PROTOTYPES.Function = isEnabled;\n      }\n\n      ENV.EXTEND_PROTOTYPES.Array = isEnabled;\n    }\n  } // TODO this does not seem to be used by anything,\n  //      can we remove it? do we need to deprecate it?\n\n\n  let {\n    EMBER_LOAD_HOOKS\n  } = EmberENV;\n\n  if (typeof EMBER_LOAD_HOOKS === 'object' && EMBER_LOAD_HOOKS !== null) {\n    for (let hookName in EMBER_LOAD_HOOKS) {\n      if (!Object.prototype.hasOwnProperty.call(EMBER_LOAD_HOOKS, hookName)) continue;\n      let hooks = EMBER_LOAD_HOOKS[hookName];\n\n      if (Array.isArray(hooks)) {\n        ENV.EMBER_LOAD_HOOKS[hookName] = hooks.filter(hook => typeof hook === 'function');\n      }\n    }\n  }\n\n  let {\n    FEATURES\n  } = EmberENV;\n\n  if (typeof FEATURES === 'object' && FEATURES !== null) {\n    for (let feature in FEATURES) {\n      if (!Object.prototype.hasOwnProperty.call(FEATURES, feature)) continue;\n      ENV.FEATURES[feature] = FEATURES[feature] === true;\n    }\n  }\n\n  if (DEBUG) {\n    ENV._DEBUG_RENDER_TREE = true;\n  }\n})(global$1.EmberENV);\n\nfunction getENV() {\n  return ENV;\n}\n\nexport { global$1 as global, context, getLookup, setLookup, ENV, getENV };\n","let onerror;\nexport const onErrorTarget = {\n  get onerror() {\n    return onerror;\n  }\n\n}; // Ember.onerror getter\n\nexport function getOnerror() {\n  return onerror;\n} // Ember.onerror setter\n\nexport function setOnerror(handler) {\n  onerror = handler;\n}\nlet dispatchOverride; // allows testing adapter to override dispatch\n\nexport function getDispatchOverride() {\n  return dispatchOverride;\n}\nexport function setDispatchOverride(handler) {\n  dispatchOverride = handler;\n}","export { default as DataAdapter } from './lib/data_adapter';\nexport { default as ContainerDebugAdapter } from './lib/container_debug_adapter';","import { classify, dasherize } from '@ember/string';\nimport { A as emberA, typeOf, Namespace, Object as EmberObject } from '@ember/-internals/runtime';\n/**\n@module @ember/debug\n*/\n\n/**\n  The `ContainerDebugAdapter` helps the container and resolver interface\n  with tools that debug Ember such as the\n  [Ember Inspector](https://github.com/emberjs/ember-inspector)\n  for Chrome and Firefox.\n\n  This class can be extended by a custom resolver implementer\n  to override some of the methods with library-specific code.\n\n  The methods likely to be overridden are:\n\n  * `canCatalogEntriesByType`\n  * `catalogEntriesByType`\n\n  The adapter will need to be registered\n  in the application's container as `container-debug-adapter:main`.\n\n  Example:\n\n  ```javascript\n  Application.initializer({\n    name: \"containerDebugAdapter\",\n\n    initialize(application) {\n      application.register('container-debug-adapter:main', require('app/container-debug-adapter'));\n    }\n  });\n  ```\n\n  @class ContainerDebugAdapter\n  @extends EmberObject\n  @since 1.5.0\n  @public\n*/\n\nexport default EmberObject.extend({\n  /**\n    The resolver instance of the application\n    being debugged. This property will be injected\n    on creation.\n     @property resolver\n    @default null\n    @public\n  */\n  resolver: null,\n\n  /**\n    Returns true if it is possible to catalog a list of available\n    classes in the resolver for a given type.\n     @method canCatalogEntriesByType\n    @param {String} type The type. e.g. \"model\", \"controller\", \"route\".\n    @return {boolean} whether a list is available for this type.\n    @public\n  */\n  canCatalogEntriesByType(type) {\n    if (type === 'model' || type === 'template') {\n      return false;\n    }\n\n    return true;\n  },\n\n  /**\n    Returns the available classes a given type.\n     @method catalogEntriesByType\n    @param {String} type The type. e.g. \"model\", \"controller\", \"route\".\n    @return {Array} An array of strings.\n    @public\n  */\n  catalogEntriesByType(type) {\n    let namespaces = emberA(Namespace.NAMESPACES);\n    let types = emberA();\n    let typeSuffixRegex = new RegExp(`${classify(type)}$`);\n    namespaces.forEach(namespace => {\n      for (let key in namespace) {\n        if (!Object.prototype.hasOwnProperty.call(namespace, key)) {\n          continue;\n        }\n\n        if (typeSuffixRegex.test(key)) {\n          let klass = namespace[key];\n\n          if (typeOf(klass) === 'class') {\n            types.push(dasherize(key.replace(typeSuffixRegex, '')));\n          }\n        }\n      }\n    });\n    return types;\n  }\n\n});","import { getOwner } from '@ember/-internals/owner';\nimport { _backburner } from '@ember/runloop';\nimport { get } from '@ember/-internals/metal';\nimport { dasherize } from '@ember/string';\nimport { HAS_NATIVE_SYMBOL } from '@ember/-internals/utils';\nimport { Namespace, Object as EmberObject, A as emberA } from '@ember/-internals/runtime';\nimport { consumeTag, createCache, getValue, tagFor, untrack } from '@glimmer/validator';\n\nfunction iterate(arr, fn) {\n  if (HAS_NATIVE_SYMBOL && Symbol.iterator in arr) {\n    for (let item of arr) {\n      fn(item);\n    }\n  } else {\n    arr.forEach(fn);\n  }\n}\n\nclass RecordsWatcher {\n  getCacheForItem(record) {\n    let recordCache = this.recordCaches.get(record);\n\n    if (!recordCache) {\n      let hasBeenAdded = false;\n      recordCache = createCache(() => {\n        if (!hasBeenAdded) {\n          this.added.push(this.wrapRecord(record));\n          hasBeenAdded = true;\n        } else {\n          this.updated.push(this.wrapRecord(record));\n        }\n      });\n      this.recordCaches.set(record, recordCache);\n    }\n\n    return recordCache;\n  }\n\n  constructor(records, recordsAdded, recordsUpdated, recordsRemoved, wrapRecord, release) {\n    this.recordCaches = new Map();\n    this.added = [];\n    this.updated = [];\n    this.removed = [];\n    this.release = release;\n    this.wrapRecord = wrapRecord;\n    this.recordArrayCache = createCache(() => {\n      let seen = new Set(); // Track `[]` for legacy support\n\n      consumeTag(tagFor(records, '[]'));\n      iterate(records, record => {\n        getValue(this.getCacheForItem(record));\n        seen.add(record);\n      }); // Untrack this operation because these records are being removed, they\n      // should not be polled again in the future\n\n      untrack(() => {\n        this.recordCaches.forEach((cache, record) => {\n          if (!seen.has(record)) {\n            this.removed.push(wrapRecord(record));\n            this.recordCaches.delete(record);\n          }\n        });\n      });\n\n      if (this.added.length > 0) {\n        recordsAdded(this.added);\n        this.added = [];\n      }\n\n      if (this.updated.length > 0) {\n        recordsUpdated(this.updated);\n        this.updated = [];\n      }\n\n      if (this.removed.length > 0) {\n        recordsRemoved(this.removed);\n        this.removed = [];\n      }\n    });\n  }\n\n  revalidate() {\n    getValue(this.recordArrayCache);\n  }\n\n}\n\nclass TypeWatcher {\n  constructor(records, onChange, release) {\n    let hasBeenAccessed = false;\n    this.cache = createCache(() => {\n      // Empty iteration, we're doing this just\n      // to track changes to the records array\n      iterate(records, () => {}); // Also track `[]` for legacy support\n\n      consumeTag(tagFor(records, '[]'));\n\n      if (hasBeenAccessed === true) {\n        onChange();\n      } else {\n        hasBeenAccessed = true;\n      }\n    });\n    this.release = release;\n  }\n\n  revalidate() {\n    getValue(this.cache);\n  }\n\n}\n/**\n@module @ember/debug\n*/\n\n/**\n  The `DataAdapter` helps a data persistence library\n  interface with tools that debug Ember such\n  as the [Ember Inspector](https://github.com/emberjs/ember-inspector)\n  for Chrome and Firefox.\n\n  This class will be extended by a persistence library\n  which will override some of the methods with\n  library-specific code.\n\n  The methods likely to be overridden are:\n\n  * `getFilters`\n  * `detect`\n  * `columnsForType`\n  * `getRecords`\n  * `getRecordColumnValues`\n  * `getRecordKeywords`\n  * `getRecordFilterValues`\n  * `getRecordColor`\n\n  The adapter will need to be registered\n  in the application's container as `dataAdapter:main`.\n\n  Example:\n\n  ```javascript\n  Application.initializer({\n    name: \"data-adapter\",\n\n    initialize: function(application) {\n      application.register('data-adapter:main', DS.DataAdapter);\n    }\n  });\n  ```\n\n  @class DataAdapter\n  @extends EmberObject\n  @public\n*/\n\n\nexport default EmberObject.extend({\n  init() {\n    this._super(...arguments);\n\n    this.containerDebugAdapter = getOwner(this).lookup('container-debug-adapter:main');\n    this.releaseMethods = emberA();\n    this.recordsWatchers = new Map();\n    this.typeWatchers = new Map();\n    this.flushWatchers = null;\n  },\n\n  /**\n    The container-debug-adapter which is used\n    to list all models.\n     @property containerDebugAdapter\n    @default undefined\n    @since 1.5.0\n    @public\n  **/\n\n  /**\n    The number of attributes to send\n    as columns. (Enough to make the record\n    identifiable).\n     @private\n    @property attributeLimit\n    @default 3\n    @since 1.3.0\n  */\n  attributeLimit: 3,\n\n  /**\n     Ember Data > v1.0.0-beta.18\n     requires string model names to be passed\n     around instead of the actual factories.\n      This is a stamp for the Ember Inspector\n     to differentiate between the versions\n     to be able to support older versions too.\n      @public\n     @property acceptsModelName\n   */\n  acceptsModelName: true,\n\n  /**\n     Map from records arrays to RecordsWatcher instances\n      @private\n     @property recordsWatchers\n     @since 3.26.0\n   */\n\n  /**\n    Map from records arrays to TypeWatcher instances\n     @private\n    @property typeWatchers\n    @since 3.26.0\n   */\n\n  /**\n    Callback that is currently scheduled on backburner end to flush and check\n    all active watchers.\n     @private\n    @property flushWatchers\n    @since 3.26.0\n    */\n\n  /**\n    Stores all methods that clear observers.\n    These methods will be called on destruction.\n     @private\n    @property releaseMethods\n    @since 1.3.0\n  */\n\n  /**\n    Specifies how records can be filtered.\n    Records returned will need to have a `filterValues`\n    property with a key for every name in the returned array.\n     @public\n    @method getFilters\n    @return {Array} List of objects defining filters.\n     The object should have a `name` and `desc` property.\n  */\n  getFilters() {\n    return emberA();\n  },\n\n  /**\n    Fetch the model types and observe them for changes.\n     @public\n    @method watchModelTypes\n     @param {Function} typesAdded Callback to call to add types.\n    Takes an array of objects containing wrapped types (returned from `wrapModelType`).\n     @param {Function} typesUpdated Callback to call when a type has changed.\n    Takes an array of objects containing wrapped types.\n     @return {Function} Method to call to remove all observers\n  */\n  watchModelTypes(typesAdded, typesUpdated) {\n    let modelTypes = this.getModelTypes();\n    let releaseMethods = emberA();\n    let typesToSend;\n    typesToSend = modelTypes.map(type => {\n      let klass = type.klass;\n      let wrapped = this.wrapModelType(klass, type.name);\n      releaseMethods.push(this.observeModelType(type.name, typesUpdated));\n      return wrapped;\n    });\n    typesAdded(typesToSend);\n\n    let release = () => {\n      releaseMethods.forEach(fn => fn());\n      this.releaseMethods.removeObject(release);\n    };\n\n    this.releaseMethods.pushObject(release);\n    return release;\n  },\n\n  _nameToClass(type) {\n    if (typeof type === 'string') {\n      let owner = getOwner(this);\n      let Factory = owner.factoryFor(`model:${type}`);\n      type = Factory && Factory.class;\n    }\n\n    return type;\n  },\n\n  /**\n    Fetch the records of a given type and observe them for changes.\n     @public\n    @method watchRecords\n     @param {String} modelName The model name.\n     @param {Function} recordsAdded Callback to call to add records.\n    Takes an array of objects containing wrapped records.\n    The object should have the following properties:\n      columnValues: {Object} The key and value of a table cell.\n      object: {Object} The actual record object.\n     @param {Function} recordsUpdated Callback to call when a record has changed.\n    Takes an array of objects containing wrapped records.\n     @param {Function} recordsRemoved Callback to call when a record has removed.\n    Takes an array of objects containing wrapped records.\n     @return {Function} Method to call to remove all observers.\n  */\n  watchRecords(modelName, recordsAdded, recordsUpdated, recordsRemoved) {\n    let klass = this._nameToClass(modelName);\n\n    let records = this.getRecords(klass, modelName);\n    let {\n      recordsWatchers\n    } = this;\n    let recordsWatcher = recordsWatchers.get(records);\n\n    if (!recordsWatcher) {\n      recordsWatcher = new RecordsWatcher(records, recordsAdded, recordsUpdated, recordsRemoved, record => this.wrapRecord(record), () => {\n        recordsWatchers.delete(records);\n        this.updateFlushWatchers();\n      });\n      recordsWatchers.set(records, recordsWatcher);\n      this.updateFlushWatchers();\n      recordsWatcher.revalidate();\n    }\n\n    return recordsWatcher.release;\n  },\n\n  updateFlushWatchers() {\n    if (this.flushWatchers === null) {\n      if (this.typeWatchers.size > 0 || this.recordsWatchers.size > 0) {\n        this.flushWatchers = () => {\n          this.typeWatchers.forEach(watcher => watcher.revalidate());\n          this.recordsWatchers.forEach(watcher => watcher.revalidate());\n        };\n\n        _backburner.on('end', this.flushWatchers);\n      }\n    } else if (this.typeWatchers.size === 0 && this.recordsWatchers.size === 0) {\n      _backburner.off('end', this.flushWatchers);\n\n      this.flushWatchers = null;\n    }\n  },\n\n  /**\n    Clear all observers before destruction\n    @private\n    @method willDestroy\n  */\n  willDestroy() {\n    this._super(...arguments);\n\n    this.typeWatchers.forEach(watcher => watcher.release());\n    this.recordsWatchers.forEach(watcher => watcher.release());\n    this.releaseMethods.forEach(fn => fn());\n\n    if (this.flushWatchers) {\n      _backburner.off('end', this.flushWatchers);\n    }\n  },\n\n  /**\n    Detect whether a class is a model.\n     Test that against the model class\n    of your persistence library.\n     @public\n    @method detect\n    @return boolean Whether the class is a model class or not.\n  */\n  detect() {\n    return false;\n  },\n\n  /**\n    Get the columns for a given model type.\n     @public\n    @method columnsForType\n    @return {Array} An array of columns of the following format:\n     name: {String} The name of the column.\n     desc: {String} Humanized description (what would show in a table column name).\n  */\n  columnsForType() {\n    return emberA();\n  },\n\n  /**\n    Adds observers to a model type class.\n     @private\n    @method observeModelType\n    @param {String} modelName The model type name.\n    @param {Function} typesUpdated Called when a type is modified.\n    @return {Function} The function to call to remove observers.\n  */\n  observeModelType(modelName, typesUpdated) {\n    let klass = this._nameToClass(modelName);\n\n    let records = this.getRecords(klass, modelName);\n\n    let onChange = () => {\n      typesUpdated([this.wrapModelType(klass, modelName)]);\n    };\n\n    let {\n      typeWatchers\n    } = this;\n    let typeWatcher = typeWatchers.get(records);\n\n    if (!typeWatcher) {\n      typeWatcher = new TypeWatcher(records, onChange, () => {\n        typeWatchers.delete(records);\n        this.updateFlushWatchers();\n      });\n      typeWatchers.set(records, typeWatcher);\n      this.updateFlushWatchers();\n      typeWatcher.revalidate();\n    }\n\n    return typeWatcher.release;\n  },\n\n  /**\n    Wraps a given model type and observes changes to it.\n     @private\n    @method wrapModelType\n    @param {Class} klass A model class.\n    @param {String} modelName Name of the class.\n    @return {Object} Contains the wrapped type and the function to remove observers\n    Format:\n      type: {Object} The wrapped type.\n        The wrapped type has the following format:\n          name: {String} The name of the type.\n          count: {Integer} The number of records available.\n          columns: {Columns} An array of columns to describe the record.\n          object: {Class} The actual Model type class.\n      release: {Function} The function to remove observers.\n  */\n  wrapModelType(klass, name) {\n    let records = this.getRecords(klass, name);\n    let typeToSend;\n    typeToSend = {\n      name,\n      count: get(records, 'length'),\n      columns: this.columnsForType(klass),\n      object: klass\n    };\n    return typeToSend;\n  },\n\n  /**\n    Fetches all models defined in the application.\n     @private\n    @method getModelTypes\n    @return {Array} Array of model types.\n  */\n  getModelTypes() {\n    let containerDebugAdapter = this.get('containerDebugAdapter');\n    let types;\n\n    if (containerDebugAdapter.canCatalogEntriesByType('model')) {\n      types = containerDebugAdapter.catalogEntriesByType('model');\n    } else {\n      types = this._getObjectsOnNamespaces();\n    } // New adapters return strings instead of classes.\n\n\n    types = emberA(types).map(name => {\n      return {\n        klass: this._nameToClass(name),\n        name\n      };\n    });\n    types = emberA(types).filter(type => this.detect(type.klass));\n    return emberA(types);\n  },\n\n  /**\n    Loops over all namespaces and all objects\n    attached to them.\n     @private\n    @method _getObjectsOnNamespaces\n    @return {Array} Array of model type strings.\n  */\n  _getObjectsOnNamespaces() {\n    let namespaces = emberA(Namespace.NAMESPACES);\n    let types = emberA();\n    namespaces.forEach(namespace => {\n      for (let key in namespace) {\n        if (!Object.prototype.hasOwnProperty.call(namespace, key)) {\n          continue;\n        } // Even though we will filter again in `getModelTypes`,\n        // we should not call `lookupFactory` on non-models\n\n\n        if (!this.detect(namespace[key])) {\n          continue;\n        }\n\n        let name = dasherize(key);\n        types.push(name);\n      }\n    });\n    return types;\n  },\n\n  /**\n    Fetches all loaded records for a given type.\n     @public\n    @method getRecords\n    @return {Array} An array of records.\n     This array will be observed for changes,\n     so it should update when new records are added/removed.\n  */\n  getRecords() {\n    return emberA();\n  },\n\n  /**\n    Wraps a record and observers changes to it.\n     @private\n    @method wrapRecord\n    @param {Object} record The record instance.\n    @return {Object} The wrapped record. Format:\n    columnValues: {Array}\n    searchKeywords: {Array}\n  */\n  wrapRecord(record) {\n    let recordToSend = {\n      object: record\n    };\n    recordToSend.columnValues = this.getRecordColumnValues(record);\n    recordToSend.searchKeywords = this.getRecordKeywords(record);\n    recordToSend.filterValues = this.getRecordFilterValues(record);\n    recordToSend.color = this.getRecordColor(record);\n    return recordToSend;\n  },\n\n  /**\n    Gets the values for each column.\n     @public\n    @method getRecordColumnValues\n    @return {Object} Keys should match column names defined\n    by the model type.\n  */\n  getRecordColumnValues() {\n    return {};\n  },\n\n  /**\n    Returns keywords to match when searching records.\n     @public\n    @method getRecordKeywords\n    @return {Array} Relevant keywords for search.\n  */\n  getRecordKeywords() {\n    return emberA();\n  },\n\n  /**\n    Returns the values of filters defined by `getFilters`.\n     @public\n    @method getRecordFilterValues\n    @param {Object} record The record instance.\n    @return {Object} The filter values.\n  */\n  getRecordFilterValues() {\n    return {};\n  },\n\n  /**\n    Each record can have a color that represents its state.\n     @public\n    @method getRecordColor\n    @param {Object} record The record instance\n    @return {String} The records color.\n      Possible options: black, red, blue, green.\n  */\n  getRecordColor() {\n    return null;\n  }\n\n});","import { templateFactory, PartialDefinitionImpl, programCompilationContext } from '@glimmer/opcode-compiler';\nexport { templateFactory as template, templateCacheCounters } from '@glimmer/opcode-compiler';\nimport { get, PROPERTY_DID_CHANGE, set, computed, alias, tracked, tagForObject, objectAt, tagForProperty, _getProp, _setProp } from '@ember/-internals/metal';\nimport { assert, deprecate, debugFreeze, runInDebug, warn } from '@ember/debug';\nimport { EMBER_COMPONENT_IS_VISIBLE, JQUERY_INTEGRATION, SEND_ACTION, PARTIALS, COMPONENT_MANAGER_STRING_LOOKUP } from '@ember/deprecated-features';\nimport { dasherize, loc } from '@ember/string';\nimport { DEBUG } from '@glimmer/env';\nimport { childRefFor, childRefFromParts, createComputeRef, createPrimitiveRef, UNDEFINED_REFERENCE, valueForRef, createConstRef, createUnboundRef, isInvokableRef, updateRef, isUpdatableRef, isConstRef, createInvokableRef, createReadOnlyRef, createDebugAliasRef } from '@glimmer/reference';\nimport { logTrackingStack, beginUntrackFrame, endUntrackFrame, valueForTag, beginTrackFrame, consumeTag, endTrackFrame, validateTag, createTag, dirtyTag, untrack, deprecateMutationsInTrackingTransaction, CONSTANT_TAG, isTracking, tagFor, setTrackingTransactionEnv, createUpdatableTag, CURRENT_TAG, createCache, getValue } from '@glimmer/validator';\nimport { clearElementView, clearViewElement, getViewElement, MUTABLE_CELL, addChildView, setElementView, setViewElement, ActionSupport, ChildViewsSupport, ClassNamesSupport, CoreView, ViewMixin, ViewStateSupport, TextSupport, isSimpleClick, jQuery, jQueryDisabled, constructStyleDeprecationMessage, ActionManager, getViewId } from '@ember/-internals/views';\nimport { registerDestructor, associateDestroyableChild, destroy } from '@glimmer/destroyable';\nimport { setInternalHelperManager, setInternalComponentManager, setComponentTemplate, setInternalModifierManager, getInternalHelperManager, helperCapabilities, setHelperManager, capabilityFlagsFrom, getComponentTemplate, getInternalComponentManager, componentCapabilities, modifierCapabilities, setComponentManager } from '@glimmer/manager';\nimport { symbol, enumerableSymbol, guidFor, getDebugName, isProxy, HAS_NATIVE_SYMBOL, isEmberArray, isObject, uuid } from '@ember/-internals/utils';\nimport { flaggedInstrument, _instrumentStart } from '@ember/instrumentation';\nimport { join, _backburner, schedule, _getCurrentRunLoop } from '@ember/runloop';\nimport { _WeakSet, EMPTY_ARRAY, unwrapTemplate, dict } from '@glimmer/util';\nimport { getOwner, setOwner } from '@ember/-internals/owner';\nimport { assign } from '@ember/polyfills';\nimport { reifyPositional, normalizeProperty, EMPTY_ARGS, reifyNamed, createCapturedArgs, curry, EMPTY_POSITIONAL, array, concat, fn, get as get$1, hash, on, TEMPLATE_ONLY_COMPONENT_MANAGER, templateOnlyComponent, clientBuilder, DOMChanges, DOMTreeConstruction, inTransaction, renderMain, runtimeContext, rehydrationBuilder } from '@glimmer/runtime';\nexport { DOMChanges, DOMTreeConstruction, isSerializationFirstNode } from '@glimmer/runtime';\nimport { CoreObject, TargetActionSupport, FrameworkObject, _contentFor, isArray } from '@ember/-internals/runtime';\nimport { hasDOM } from '@ember/-internals/browser-environment';\nimport { getEngineParent } from '@ember/engine';\nimport { inject } from '@ember/service';\nimport { action } from '@ember/object';\nimport { ENV } from '@ember/-internals/environment';\nimport { getFactoryFor, privatize } from '@ember/-internals/container';\nimport { NodeDOMTreeConstruction, serializeBuilder } from '@glimmer/node';\nexport { NodeDOMTreeConstruction } from '@glimmer/node';\nimport { isHTMLSafe } from '@ember/-internals/glimmer';\nimport setGlobalContext from '@glimmer/global-context';\nimport { QueryParams, generateControllerFactory } from '@ember/-internals/routing';\nimport EmberError from '@ember/error';\nimport { artifacts } from '@glimmer/program';\nimport RSVP from 'rsvp';\n\nvar RootTemplate = templateFactory({\n  \"id\": \"9BtKrod8\",\n  \"block\": \"[[[46,[30,0],null,null,null]],[],false,[\\\"component\\\"]]\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/root.hbs\",\n  \"isStrictMode\": false\n});\n\nfunction isTemplateFactory(template) {\n  return typeof template === 'function';\n}\n\n/**\n@module @ember/template\n*/\nclass SafeString {\n  constructor(string) {\n    this.string = string;\n  }\n\n  toString() {\n    return `${this.string}`;\n  }\n\n  toHTML() {\n    return this.toString();\n  }\n\n}\nconst escape = {\n  '&': '&amp;',\n  '<': '&lt;',\n  '>': '&gt;',\n  '\"': '&quot;',\n  \"'\": '&#x27;',\n  '`': '&#x60;',\n  '=': '&#x3D;'\n};\nconst possible = /[&<>\"'`=]/;\nconst badChars = /[&<>\"'`=]/g;\n\nfunction escapeChar(chr) {\n  return escape[chr];\n}\n\nfunction escapeExpression(string) {\n  if (typeof string !== 'string') {\n    // don't escape SafeStrings, since they're already safe\n    if (string && string.toHTML) {\n      return string.toHTML();\n    } else if (string === null || string === undefined) {\n      return '';\n    } else if (!string) {\n      return String(string);\n    } // Force a string conversion as this will be done by the append regardless and\n    // the regex test will do this transparently behind the scenes, causing issues if\n    // an object's to string has escaped characters in it.\n\n\n    string = String(string);\n  }\n\n  if (!possible.test(string)) {\n    return string;\n  }\n\n  return string.replace(badChars, escapeChar);\n}\n/**\n  Mark a string as safe for unescaped output with Ember templates. If you\n  return HTML from a helper, use this function to\n  ensure Ember's rendering layer does not escape the HTML.\n\n  ```javascript\n  import { htmlSafe } from '@ember/template';\n\n  htmlSafe('<div>someString</div>')\n  ```\n\n  @method htmlSafe\n  @for @ember/template\n  @static\n  @return {SafeString} A string that will not be HTML escaped by Handlebars.\n  @public\n*/\n\nfunction htmlSafe(str) {\n  if (str === null || str === undefined) {\n    str = '';\n  } else if (typeof str !== 'string') {\n    str = String(str);\n  }\n\n  return new SafeString(str);\n}\n/**\n  Detects if a string was decorated using `htmlSafe`.\n\n  ```javascript\n  import { htmlSafe, isHTMLSafe } from '@ember/template';\n\n  var plainString = 'plain string',\n      safeString = htmlSafe('<div>someValue</div>');\n\n  isHTMLSafe(plainString); // false\n  isHTMLSafe(safeString);  // true\n  ```\n\n  @method isHTMLSafe\n  @for @ember/template\n  @static\n  @return {Boolean} `true` if the string was decorated with `htmlSafe`, `false` otherwise.\n  @public\n*/\n\nfunction isHTMLSafe$1(str) {\n  return str !== null && typeof str === 'object' && typeof str.toHTML === 'function';\n}\n\nfunction referenceForParts(rootRef, parts) {\n  let isAttrs = parts[0] === 'attrs'; // TODO deprecate this\n\n  if (isAttrs) {\n    parts.shift();\n\n    if (parts.length === 1) {\n      return childRefFor(rootRef, parts[0]);\n    }\n  }\n\n  return childRefFromParts(rootRef, parts);\n}\n\nfunction parseAttributeBinding(microsyntax) {\n  let colonIndex = microsyntax.indexOf(':');\n\n  if (colonIndex === -1) {\n    assert('You cannot use class as an attributeBinding, use classNameBindings instead.', microsyntax !== 'class');\n    return [microsyntax, microsyntax, true];\n  } else {\n    let prop = microsyntax.substring(0, colonIndex);\n    let attribute = microsyntax.substring(colonIndex + 1);\n    assert('You cannot use class as an attributeBinding, use classNameBindings instead.', attribute !== 'class');\n    return [prop, attribute, false];\n  }\n}\nfunction installAttributeBinding(component, rootRef, parsed, operations) {\n  let [prop, attribute, isSimple] = parsed;\n\n  if (attribute === 'id') {\n    let elementId = get(component, prop);\n\n    if (elementId === undefined || elementId === null) {\n      elementId = component.elementId;\n    }\n\n    elementId = createPrimitiveRef(elementId);\n    operations.setAttribute('id', elementId, true, null);\n    return;\n  }\n\n  let isPath = prop.indexOf('.') > -1;\n  let reference = isPath ? referenceForParts(rootRef, prop.split('.')) : childRefFor(rootRef, prop);\n  assert(`Illegal attributeBinding: '${prop}' is not a valid attribute name.`, !(isSimple && isPath));\n\n  if (EMBER_COMPONENT_IS_VISIBLE && attribute === 'style' && createStyleBindingRef !== undefined) {\n    reference = createStyleBindingRef(reference, childRefFor(rootRef, 'isVisible'));\n  }\n\n  operations.setAttribute(attribute, reference, false, null);\n}\nconst DISPLAY_NONE = 'display: none;';\nconst SAFE_DISPLAY_NONE = htmlSafe(DISPLAY_NONE);\nlet createStyleBindingRef;\nlet installIsVisibleBinding;\n\nif (EMBER_COMPONENT_IS_VISIBLE) {\n  createStyleBindingRef = (inner, isVisibleRef) => {\n    return createComputeRef(() => {\n      let value = valueForRef(inner);\n      let isVisible = valueForRef(isVisibleRef);\n\n      if (DEBUG && isVisible !== undefined) {\n        deprecate(`The \\`isVisible\\` property on classic component classes is deprecated. Was accessed:\\n\\n${logTrackingStack()}`, false, {\n          id: 'ember-component.is-visible',\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-component-is-visible',\n          for: 'ember-source',\n          since: {\n            enabled: '3.15.0-beta.1'\n          }\n        });\n      }\n\n      if (isVisible !== false) {\n        return value;\n      } else if (!value) {\n        return SAFE_DISPLAY_NONE;\n      } else {\n        let style = value + ' ' + DISPLAY_NONE;\n        return isHTMLSafe$1(value) ? htmlSafe(style) : style;\n      }\n    });\n  };\n\n  installIsVisibleBinding = (rootRef, operations) => {\n    operations.setAttribute('style', createStyleBindingRef(UNDEFINED_REFERENCE, childRefFor(rootRef, 'isVisible')), false, null);\n  };\n}\n\nfunction createClassNameBindingRef(rootRef, microsyntax, operations) {\n  let [prop, truthy, falsy] = microsyntax.split(':');\n  let isStatic = prop === '';\n\n  if (isStatic) {\n    operations.setAttribute('class', createPrimitiveRef(truthy), true, null);\n  } else {\n    let isPath = prop.indexOf('.') > -1;\n    let parts = isPath ? prop.split('.') : [];\n    let value = isPath ? referenceForParts(rootRef, parts) : childRefFor(rootRef, prop);\n    let ref;\n\n    if (truthy === undefined) {\n      ref = createSimpleClassNameBindingRef(value, isPath ? parts[parts.length - 1] : prop);\n    } else {\n      ref = createColonClassNameBindingRef(value, truthy, falsy);\n    }\n\n    operations.setAttribute('class', ref, false, null);\n  }\n}\nfunction createSimpleClassNameBindingRef(inner, path) {\n  let dasherizedPath;\n  return createComputeRef(() => {\n    let value = valueForRef(inner);\n\n    if (value === true) {\n      assert('You must pass a path when binding a to a class name using classNameBindings', path !== undefined);\n      return dasherizedPath || (dasherizedPath = dasherize(path));\n    } else if (value || value === 0) {\n      return String(value);\n    } else {\n      return null;\n    }\n  });\n}\nfunction createColonClassNameBindingRef(inner, truthy, falsy) {\n  return createComputeRef(() => {\n    return valueForRef(inner) ? truthy : falsy;\n  });\n}\n\nfunction NOOP() {}\n/**\n  @module ember\n*/\n\n/**\n  Represents the internal state of the component.\n\n  @class ComponentStateBucket\n  @private\n*/\n\n\nclass ComponentStateBucket {\n  constructor(component, args, argsTag, finalizer, hasWrappedElement, isInteractive) {\n    this.component = component;\n    this.args = args;\n    this.argsTag = argsTag;\n    this.finalizer = finalizer;\n    this.hasWrappedElement = hasWrappedElement;\n    this.isInteractive = isInteractive;\n    this.classRef = null;\n    this.classRef = null;\n    this.argsRevision = args === null ? 0 : valueForTag(argsTag);\n    this.rootRef = createConstRef(component, 'this');\n    registerDestructor(this, () => this.willDestroy(), true);\n    registerDestructor(this, () => this.component.destroy());\n  }\n\n  willDestroy() {\n    let {\n      component,\n      isInteractive\n    } = this;\n\n    if (isInteractive) {\n      beginUntrackFrame();\n      component.trigger('willDestroyElement');\n      component.trigger('willClearRender');\n      endUntrackFrame();\n      let element = getViewElement(component);\n\n      if (element) {\n        clearElementView(element);\n        clearViewElement(component);\n      }\n    }\n\n    component.renderer.unregister(component);\n  }\n\n  finalize() {\n    let {\n      finalizer\n    } = this;\n    finalizer();\n    this.finalizer = NOOP;\n  }\n\n}\n\nfunction internalHelper(helper) {\n  return setInternalHelperManager(helper, {});\n}\n\n/**\n@module ember\n*/\nconst ACTIONS = new _WeakSet();\nconst INVOKE = symbol('INVOKE');\n/**\n  The `{{action}}` helper provides a way to pass triggers for behavior (usually\n  just a function) between components, and into components from controllers.\n\n  ### Passing functions with the action helper\n\n  There are three contexts an action helper can be used in. The first two\n  contexts to discuss are attribute context, and Handlebars value context.\n\n  ```handlebars\n  {{! An example of attribute context }}\n  <div onclick={{action \"save\"}}></div>\n  {{! Examples of Handlebars value context }}\n  {{input on-input=(action \"save\")}}\n  {{yield (action \"refreshData\") andAnotherParam}}\n  ```\n\n  In these contexts,\n  the helper is called a \"closure action\" helper. Its behavior is simple:\n  If passed a function name, read that function off the `actions` property\n  of the current context. Once that function is read, or immediately if a function was\n  passed, create a closure over that function and any arguments.\n  The resulting value of an action helper used this way is simply a function.\n\n  For example, in the attribute context:\n\n  ```handlebars\n  {{! An example of attribute context }}\n  <div onclick={{action \"save\"}}></div>\n  ```\n\n  The resulting template render logic would be:\n\n  ```js\n  var div = document.createElement('div');\n  var actionFunction = (function(context){\n    return function() {\n      return context.actions.save.apply(context, arguments);\n    };\n  })(context);\n  div.onclick = actionFunction;\n  ```\n\n  Thus when the div is clicked, the action on that context is called.\n  Because the `actionFunction` is just a function, closure actions can be\n  passed between components and still execute in the correct context.\n\n  Here is an example action handler on a component:\n\n  ```app/components/my-component.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class extends Component {\n    @action\n    save() {\n      this.model.save();\n    }\n  }\n  ```\n\n  Actions are always looked up on the `actions` property of the current context.\n  This avoids collisions in the naming of common actions, such as `destroy`.\n  Two options can be passed to the `action` helper when it is used in this way.\n\n  * `target=someProperty` will look to `someProperty` instead of the current\n    context for the `actions` hash. This can be useful when targeting a\n    service for actions.\n  * `value=\"target.value\"` will read the path `target.value` off the first\n    argument to the action when it is called and rewrite the first argument\n    to be that value. This is useful when attaching actions to event listeners.\n\n  ### Invoking an action\n\n  Closure actions curry both their scope and any arguments. When invoked, any\n  additional arguments are added to the already curried list.\n  Actions should be invoked using the [sendAction](/ember/release/classes/Component/methods/sendAction?anchor=sendAction)\n  method. The first argument to `sendAction` is the action to be called, and\n  additional arguments are passed to the action function. This has interesting\n  properties combined with currying of arguments. For example:\n\n  ```app/components/update-name.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class extends Component {\n    @action\n    setName(model, name) {\n      model.set('name', name);\n    }\n  }\n  ```\n\n  ```app/components/update-name.hbs\n  {{input on-input=(action (action 'setName' @model) value=\"target.value\")}}\n  ```\n\n  The first argument (`@model`) was curried over, and the run-time argument (`event`)\n  becomes a second argument. Action calls can be nested this way because each simply\n  returns a function. Any function can be passed to the `{{action}}` helper, including\n  other actions.\n\n  Actions invoked with `sendAction` have the same currying behavior as demonstrated\n  with `on-input` above. For example:\n\n  ```app/components/my-input.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class extends Component {\n    @action\n    setName(model, name) {\n      model.set('name', name);\n    }\n  }\n  ```\n\n  ```handlebars\n  <MyInput @submit={{action 'setName' @model}} />\n  ```\n\n  or\n\n  ```handlebars\n  {{my-input submit=(action 'setName' @model)}}\n  ```\n\n  ```app/components/my-component.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    click() {\n      // Note that model is not passed, it was curried in the template\n      this.sendAction('submit', 'bob');\n    }\n  });\n  ```\n\n  ### Attaching actions to DOM elements\n\n  The third context of the `{{action}}` helper can be called \"element space\".\n  For example:\n\n  ```handlebars\n  {{! An example of element space }}\n  <div {{action \"save\"}}></div>\n  ```\n\n  Used this way, the `{{action}}` helper provides a useful shortcut for\n  registering an HTML element in a template for a single DOM event and\n  forwarding that interaction to the template's context (controller or component).\n  If the context of a template is a controller, actions used this way will\n  bubble to routes when the controller does not implement the specified action.\n  Once an action hits a route, it will bubble through the route hierarchy.\n\n  ### Event Propagation\n\n  `{{action}}` helpers called in element space can control event bubbling. Note\n  that the closure style actions cannot.\n\n  Events triggered through the action helper will automatically have\n  `.preventDefault()` called on them. You do not need to do so in your event\n  handlers. If you need to allow event propagation (to handle file inputs for\n  example) you can supply the `preventDefault=false` option to the `{{action}}` helper:\n\n  ```handlebars\n  <div {{action \"sayHello\" preventDefault=false}}>\n    <input type=\"file\" />\n    <input type=\"checkbox\" />\n  </div>\n  ```\n\n  To disable bubbling, pass `bubbles=false` to the helper:\n\n  ```handlebars\n  <button {{action 'edit' post bubbles=false}}>Edit</button>\n  ```\n\n  To disable bubbling with closure style actions you must create your own\n  wrapper helper that makes use of `event.stopPropagation()`:\n\n  ```handlebars\n  <div onclick={{disable-bubbling (action \"sayHello\")}}>Hello</div>\n  ```\n\n  ```app/helpers/disable-bubbling.js\n  import { helper } from '@ember/component/helper';\n\n  export function disableBubbling([action]) {\n    return function(event) {\n      event.stopPropagation();\n      return action(event);\n    };\n  }\n  export default helper(disableBubbling);\n  ```\n\n  If you need the default handler to trigger you should either register your\n  own event handler, or use event methods on your view class. See\n  [\"Responding to Browser Events\"](/ember/release/classes/Component)\n  in the documentation for `Component` for more information.\n\n  ### Specifying DOM event type\n\n  `{{action}}` helpers called in element space can specify an event type.\n  By default the `{{action}}` helper registers for DOM `click` events. You can\n  supply an `on` option to the helper to specify a different DOM event name:\n\n  ```handlebars\n  <div {{action \"anActionName\" on=\"doubleClick\"}}>\n    click me\n  </div>\n  ```\n\n  See [\"Event Names\"](/ember/release/classes/Component) for a list of\n  acceptable DOM event names.\n\n  ### Specifying whitelisted modifier keys\n\n  `{{action}}` helpers called in element space can specify modifier keys.\n  By default the `{{action}}` helper will ignore click events with pressed modifier\n  keys. You can supply an `allowedKeys` option to specify which keys should not be ignored.\n\n  ```handlebars\n  <div {{action \"anActionName\" allowedKeys=\"alt\"}}>\n    click me\n  </div>\n  ```\n\n  This way the action will fire when clicking with the alt key pressed down.\n  Alternatively, supply \"any\" to the `allowedKeys` option to accept any combination of modifier keys.\n\n  ```handlebars\n  <div {{action \"anActionName\" allowedKeys=\"any\"}}>\n    click me with any key pressed\n  </div>\n  ```\n\n  ### Specifying a Target\n\n  A `target` option can be provided to the helper to change\n  which object will receive the method call. This option must be a path\n  to an object, accessible in the current context:\n\n  ```app/templates/application.hbs\n  <div {{action \"anActionName\" target=someService}}>\n    click me\n  </div>\n  ```\n\n  ```app/controllers/application.js\n  import Controller from '@ember/controller';\n  import { inject as service } from '@ember/service';\n\n  export default class extends Controller {\n    @service someService;\n  }\n  ```\n\n  @method action\n  @for Ember.Templates.helpers\n  @public\n*/\n\nvar action$1 = internalHelper(args => {\n  let {\n    named,\n    positional\n  } = args; // The first two argument slots are reserved.\n  // pos[0] is the context (or `this`)\n  // pos[1] is the action name or function\n  // Anything else is an action argument.\n\n  let [context, action$$1, ...restArgs] = positional;\n  let debugKey = action$$1.debugLabel;\n  let target = 'target' in named ? named.target : context;\n  let processArgs = makeArgsProcessor('value' in named && named.value, restArgs);\n  let fn$$1;\n\n  if (isInvokableRef(action$$1)) {\n    fn$$1 = makeClosureAction(action$$1, action$$1, invokeRef, processArgs, debugKey);\n  } else {\n    fn$$1 = makeDynamicClosureAction(valueForRef(context), target, action$$1, processArgs, debugKey);\n  }\n\n  ACTIONS.add(fn$$1);\n  return createUnboundRef(fn$$1, '(result of an `action` helper)');\n});\n\nfunction NOOP$1(args) {\n  return args;\n}\n\nfunction makeArgsProcessor(valuePathRef, actionArgsRef) {\n  let mergeArgs;\n\n  if (actionArgsRef.length > 0) {\n    mergeArgs = args => {\n      return actionArgsRef.map(valueForRef).concat(args);\n    };\n  }\n\n  let readValue;\n\n  if (valuePathRef) {\n    readValue = args => {\n      let valuePath = valueForRef(valuePathRef);\n\n      if (valuePath && args.length > 0) {\n        args[0] = get(args[0], valuePath);\n      }\n\n      return args;\n    };\n  }\n\n  if (mergeArgs && readValue) {\n    return args => {\n      return readValue(mergeArgs(args));\n    };\n  } else {\n    return mergeArgs || readValue || NOOP$1;\n  }\n}\n\nfunction makeDynamicClosureAction(context, targetRef, actionRef, processArgs, debugKey) {\n  // We don't allow undefined/null values, so this creates a throw-away action to trigger the assertions\n  if (DEBUG) {\n    makeClosureAction(context, valueForRef(targetRef), valueForRef(actionRef), processArgs, debugKey);\n  }\n\n  return (...args) => {\n    return makeClosureAction(context, valueForRef(targetRef), valueForRef(actionRef), processArgs, debugKey)(...args);\n  };\n}\n\nfunction makeClosureAction(context, target, action$$1, processArgs, debugKey) {\n  let self;\n  let fn$$1;\n  assert(`Action passed is null or undefined in (action) from ${target}.`, action$$1 !== undefined && action$$1 !== null);\n\n  if (typeof action$$1[INVOKE] === 'function') {\n    deprecate(`Usage of the private INVOKE API to make an object callable via action or fn is no longer supported. Please update to pass in a callback function instead. Received: ${String(action$$1)}`, false, {\n      until: '3.25.0',\n      id: 'actions.custom-invoke-invokable',\n      for: 'ember-source',\n      since: {\n        enabled: '3.23.0-beta.1'\n      }\n    });\n    self = action$$1;\n    fn$$1 = action$$1[INVOKE];\n  } else {\n    let typeofAction = typeof action$$1;\n\n    if (typeofAction === 'string') {\n      self = target;\n      fn$$1 = target.actions && target.actions[action$$1];\n      assert(`An action named '${action$$1}' was not found in ${target}`, Boolean(fn$$1));\n    } else if (typeofAction === 'function') {\n      self = context;\n      fn$$1 = action$$1;\n    } else {\n      // tslint:disable-next-line:max-line-length\n      assert(`An action could not be made for \\`${debugKey || action$$1}\\` in ${target}. Please confirm that you are using either a quoted action name (i.e. \\`(action '${debugKey || 'myAction'}')\\`) or a function available in ${target}.`, false);\n    }\n  }\n\n  return (...args) => {\n    let payload = {\n      target: self,\n      args,\n      label: '@glimmer/closure-action'\n    };\n    return flaggedInstrument('interaction.ember-action', payload, () => {\n      return join(self, fn$$1, ...processArgs(args));\n    });\n  };\n} // The code above:\n// 1. Finds an action function, usually on the `actions` hash\n// 2. Calls it with the target as the correct `this` context\n// Previously, `UPDATE_REFERENCED_VALUE` was a method on the reference itself,\n// so this made a bit more sense. Now, it isn't, and so we need to create a\n// function that can have `this` bound to it when called. This allows us to use\n// the same codepath to call `updateRef` on the reference.\n\n\nfunction invokeRef(value) {\n  updateRef(this, value);\n}\n\n// inputs needed by CurlyComponents (attrs and props, with mutable\n// cells, etc).\n\nfunction processComponentArgs(namedArgs) {\n  let attrs = Object.create(null);\n  let props = Object.create(null);\n  props[ARGS] = namedArgs;\n\n  for (let name in namedArgs) {\n    let ref = namedArgs[name];\n    let value = valueForRef(ref);\n    let isAction = typeof value === 'function' && ACTIONS.has(value);\n\n    if (isUpdatableRef(ref) && !isAction) {\n      attrs[name] = new MutableCell(ref, value);\n    } else {\n      attrs[name] = value;\n    }\n\n    props[name] = value;\n  }\n\n  props.attrs = attrs;\n  return props;\n}\nconst REF = symbol('REF');\n\nclass MutableCell {\n  constructor(ref, value) {\n    this[MUTABLE_CELL] = true;\n    this[REF] = ref;\n    this.value = value;\n  }\n\n  update(val) {\n    updateRef(this[REF], val);\n  }\n\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n  var t = {};\n\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nconst ARGS = enumerableSymbol('ARGS');\nconst HAS_BLOCK = enumerableSymbol('HAS_BLOCK');\nconst DIRTY_TAG = symbol('DIRTY_TAG');\nconst IS_DISPATCHING_ATTRS = symbol('IS_DISPATCHING_ATTRS');\nconst BOUNDS = symbol('BOUNDS');\nconst EMBER_VIEW_REF = createPrimitiveRef('ember-view');\n\nfunction aliasIdToElementId(args, props) {\n  if (args.named.has('id')) {\n    // tslint:disable-next-line:max-line-length\n    assert(`You cannot invoke a component with both 'id' and 'elementId' at the same time.`, !args.named.has('elementId'));\n    props.elementId = props.id;\n  }\n} // We must traverse the attributeBindings in reverse keeping track of\n// what has already been applied. This is essentially refining the concatenated\n// properties applying right to left.\n\n\nfunction applyAttributeBindings(attributeBindings, component, rootRef, operations) {\n  let seen = [];\n  let i = attributeBindings.length - 1;\n\n  while (i !== -1) {\n    let binding = attributeBindings[i];\n    let parsed = parseAttributeBinding(binding);\n    let attribute = parsed[1];\n\n    if (seen.indexOf(attribute) === -1) {\n      seen.push(attribute);\n      installAttributeBinding(component, rootRef, parsed, operations);\n    }\n\n    i--;\n  }\n\n  if (seen.indexOf('id') === -1) {\n    let id = component.elementId ? component.elementId : guidFor(component);\n    operations.setAttribute('id', createPrimitiveRef(id), false, null);\n  }\n\n  if (EMBER_COMPONENT_IS_VISIBLE && installIsVisibleBinding !== undefined && seen.indexOf('style') === -1) {\n    installIsVisibleBinding(rootRef, operations);\n  }\n}\n\nconst EMPTY_POSITIONAL_ARGS = [];\ndebugFreeze(EMPTY_POSITIONAL_ARGS);\nclass CurlyComponentManager {\n  templateFor(component) {\n    let {\n      layout,\n      layoutName\n    } = component;\n    let owner = getOwner(component);\n    let factory;\n\n    if (layout === undefined) {\n      if (layoutName !== undefined) {\n        let _factory = owner.lookup(`template:${layoutName}`);\n\n        assert(`Layout \\`${layoutName}\\` not found!`, _factory !== undefined);\n        factory = _factory;\n      } else {\n        return null;\n      }\n    } else if (isTemplateFactory(layout)) {\n      factory = layout;\n    } else {\n      // no layout was found, use the default layout\n      return null;\n    }\n\n    return unwrapTemplate(factory(owner)).asWrappedLayout();\n  }\n\n  getDynamicLayout(bucket) {\n    return this.templateFor(bucket.component);\n  }\n\n  getTagName(state) {\n    let {\n      component,\n      hasWrappedElement\n    } = state;\n\n    if (!hasWrappedElement) {\n      return null;\n    }\n\n    return component && component.tagName || 'div';\n  }\n\n  getCapabilities() {\n    return CURLY_CAPABILITIES;\n  }\n\n  prepareArgs(ComponentClass, args) {\n    var _a;\n\n    if (args.named.has('__ARGS__')) {\n      assert('[BUG] cannot pass both __ARGS__ and positional arguments', args.positional.length === 0);\n\n      let _b = args.named.capture(),\n          {\n        __ARGS__\n      } = _b,\n          rest = __rest(_b, [\"__ARGS__\"]); // does this need to be untracked?\n\n\n      let __args__ = valueForRef(__ARGS__);\n\n      let prepared = {\n        positional: __args__.positional,\n        named: Object.assign(Object.assign({}, rest), __args__.named)\n      };\n      return prepared;\n    }\n\n    const {\n      positionalParams\n    } = (_a = ComponentClass.class) !== null && _a !== void 0 ? _a : ComponentClass; // early exits\n\n    if (positionalParams === undefined || positionalParams === null || args.positional.length === 0) {\n      return null;\n    }\n\n    let named;\n\n    if (typeof positionalParams === 'string') {\n      assert(`You cannot specify positional parameters and the hash argument \\`${positionalParams}\\`.`, !args.named.has(positionalParams));\n      let captured = args.positional.capture();\n      named = {\n        [positionalParams]: createComputeRef(() => reifyPositional(captured))\n      };\n      assign(named, args.named.capture());\n    } else if (Array.isArray(positionalParams) && positionalParams.length > 0) {\n      const count = Math.min(positionalParams.length, args.positional.length);\n      named = {};\n      assign(named, args.named.capture());\n\n      for (let i = 0; i < count; i++) {\n        // As of TS 3.7, tsc is giving us the following error on this line without the type annotation\n        //\n        //   TS7022: 'name' implicitly has type 'any' because it does not have a type annotation and is\n        //   referenced directly or indirectly in its own initializer.\n        //\n        // This is almost certainly a TypeScript bug, feel free to try and remove the annotation after\n        // upgrading if it is not needed anymore.\n        const name = positionalParams[i];\n        assert(`You cannot specify both a positional param (at position ${i}) and the hash argument \\`${name}\\`.`, !args.named.has(name));\n        named[name] = args.positional.at(i);\n      }\n    } else {\n      return null;\n    }\n\n    return {\n      positional: EMPTY_ARRAY,\n      named\n    };\n  }\n  /*\n   * This hook is responsible for actually instantiating the component instance.\n   * It also is where we perform additional bookkeeping to support legacy\n   * features like exposed by view mixins like ChildViewSupport, ActionSupport,\n   * etc.\n   */\n\n\n  create(owner, ComponentClass, args, {\n    isInteractive\n  }, dynamicScope, callerSelfRef, hasBlock) {\n    // Get the nearest concrete component instance from the scope. \"Virtual\"\n    // components will be skipped.\n    let parentView = dynamicScope.view; // Capture the arguments, which tells Glimmer to give us our own, stable\n    // copy of the Arguments object that is safe to hold on to between renders.\n\n    let capturedArgs = args.named.capture();\n    beginTrackFrame();\n    let props = processComponentArgs(capturedArgs);\n    let argsTag = endTrackFrame(); // Alias `id` argument to `elementId` property on the component instance.\n\n    aliasIdToElementId(args, props); // Set component instance's parentView property to point to nearest concrete\n    // component.\n\n    props.parentView = parentView; // Set whether this component was invoked with a block\n    // (`{{#my-component}}{{/my-component}}`) or without one\n    // (`{{my-component}}`).\n\n    props[HAS_BLOCK] = hasBlock; // Save the current `this` context of the template as the component's\n    // `_target`, so bubbled actions are routed to the right place.\n\n    props._target = valueForRef(callerSelfRef);\n    setOwner(props, owner); // caller:\n    // <FaIcon @name=\"bug\" />\n    //\n    // callee:\n    // <i class=\"fa-{{@name}}\"></i>\n    // Now that we've built up all of the properties to set on the component instance,\n    // actually create it.\n\n    beginUntrackFrame();\n    let component = ComponentClass.create(props);\n\n    let finalizer = _instrumentStart('render.component', initialRenderInstrumentDetails, component); // We become the new parentView for downstream components, so save our\n    // component off on the dynamic scope.\n\n\n    dynamicScope.view = component; // Unless we're the root component, we need to add ourselves to our parent\n    // component's childViews array.\n\n    if (parentView !== null && parentView !== undefined) {\n      addChildView(parentView, component);\n    }\n\n    component.trigger('didReceiveAttrs');\n    let hasWrappedElement = component.tagName !== ''; // We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\n\n    if (!hasWrappedElement) {\n      if (isInteractive) {\n        component.trigger('willRender');\n      }\n\n      component._transitionTo('hasElement');\n\n      if (isInteractive) {\n        component.trigger('willInsertElement');\n      }\n    } // Track additional lifecycle metadata about this component in a state bucket.\n    // Essentially we're saving off all the state we'll need in the future.\n\n\n    let bucket = new ComponentStateBucket(component, capturedArgs, argsTag, finalizer, hasWrappedElement, isInteractive);\n\n    if (args.named.has('class')) {\n      bucket.classRef = args.named.get('class');\n    }\n\n    if (DEBUG) {\n      processComponentInitializationAssertions(component, props);\n    }\n\n    if (isInteractive && hasWrappedElement) {\n      component.trigger('willRender');\n    }\n\n    endUntrackFrame(); // consume every argument so we always run again\n\n    consumeTag(bucket.argsTag);\n    consumeTag(component[DIRTY_TAG]);\n    return bucket;\n  }\n\n  getDebugName(definition) {\n    var _a;\n\n    return definition.fullName || definition.normalizedName || ((_a = definition.class) === null || _a === void 0 ? void 0 : _a.name) || definition.name;\n  }\n\n  getSelf({\n    rootRef\n  }) {\n    return rootRef;\n  }\n\n  didCreateElement({\n    component,\n    classRef,\n    isInteractive,\n    rootRef\n  }, element, operations) {\n    setViewElement(component, element);\n    setElementView(element, component);\n    let {\n      attributeBindings,\n      classNames,\n      classNameBindings\n    } = component;\n\n    if (attributeBindings && attributeBindings.length) {\n      applyAttributeBindings(attributeBindings, component, rootRef, operations);\n    } else {\n      let id = component.elementId ? component.elementId : guidFor(component);\n      operations.setAttribute('id', createPrimitiveRef(id), false, null);\n\n      if (EMBER_COMPONENT_IS_VISIBLE) {\n        installIsVisibleBinding(rootRef, operations);\n      }\n    }\n\n    if (classRef) {\n      const ref = createSimpleClassNameBindingRef(classRef);\n      operations.setAttribute('class', ref, false, null);\n    }\n\n    if (classNames && classNames.length) {\n      classNames.forEach(name => {\n        operations.setAttribute('class', createPrimitiveRef(name), false, null);\n      });\n    }\n\n    if (classNameBindings && classNameBindings.length) {\n      classNameBindings.forEach(binding => {\n        createClassNameBindingRef(rootRef, binding, operations);\n      });\n    }\n\n    operations.setAttribute('class', EMBER_VIEW_REF, false, null);\n\n    if ('ariaRole' in component) {\n      operations.setAttribute('role', childRefFor(rootRef, 'ariaRole'), false, null);\n    }\n\n    component._transitionTo('hasElement');\n\n    if (isInteractive) {\n      beginUntrackFrame();\n      component.trigger('willInsertElement');\n      endUntrackFrame();\n    }\n  }\n\n  didRenderLayout(bucket, bounds) {\n    bucket.component[BOUNDS] = bounds;\n    bucket.finalize();\n  }\n\n  didCreate({\n    component,\n    isInteractive\n  }) {\n    if (isInteractive) {\n      component._transitionTo('inDOM');\n\n      component.trigger('didInsertElement');\n      component.trigger('didRender');\n    }\n  }\n\n  update(bucket) {\n    let {\n      component,\n      args,\n      argsTag,\n      argsRevision,\n      isInteractive\n    } = bucket;\n    bucket.finalizer = _instrumentStart('render.component', rerenderInstrumentDetails, component);\n    beginUntrackFrame();\n\n    if (args !== null && !validateTag(argsTag, argsRevision)) {\n      beginTrackFrame();\n      let props = processComponentArgs(args);\n      argsTag = bucket.argsTag = endTrackFrame();\n      bucket.argsRevision = valueForTag(argsTag);\n      component[IS_DISPATCHING_ATTRS] = true;\n      component.setProperties(props);\n      component[IS_DISPATCHING_ATTRS] = false;\n      component.trigger('didUpdateAttrs');\n      component.trigger('didReceiveAttrs');\n    }\n\n    if (isInteractive) {\n      component.trigger('willUpdate');\n      component.trigger('willRender');\n    }\n\n    endUntrackFrame();\n    consumeTag(argsTag);\n    consumeTag(component[DIRTY_TAG]);\n  }\n\n  didUpdateLayout(bucket) {\n    bucket.finalize();\n  }\n\n  didUpdate({\n    component,\n    isInteractive\n  }) {\n    if (isInteractive) {\n      component.trigger('didUpdate');\n      component.trigger('didRender');\n    }\n  }\n\n  getDestroyable(bucket) {\n    return bucket;\n  }\n\n}\nfunction processComponentInitializationAssertions(component, props) {\n  assert(`classNameBindings must be non-empty strings: ${component}`, (() => {\n    let {\n      classNameBindings\n    } = component;\n\n    for (let i = 0; i < classNameBindings.length; i++) {\n      let binding = classNameBindings[i];\n\n      if (typeof binding !== 'string' || binding.length === 0) {\n        return false;\n      }\n    }\n\n    return true;\n  })());\n  assert(`classNameBindings must not have spaces in them: ${component}`, (() => {\n    let {\n      classNameBindings\n    } = component;\n\n    for (let i = 0; i < classNameBindings.length; i++) {\n      let binding = classNameBindings[i];\n\n      if (binding.split(' ').length > 1) {\n        return false;\n      }\n    }\n\n    return true;\n  })());\n  assert(`You cannot use \\`classNameBindings\\` on a tag-less component: ${component}`, component.tagName !== '' || !component.classNameBindings || component.classNameBindings.length === 0);\n  assert(`You cannot use \\`elementId\\` on a tag-less component: ${component}`, component.tagName !== '' || props.id === component.elementId || !component.elementId && component.elementId !== '');\n  assert(`You cannot use \\`attributeBindings\\` on a tag-less component: ${component}`, component.tagName !== '' || !component.attributeBindings || component.attributeBindings.length === 0);\n}\nfunction initialRenderInstrumentDetails(component) {\n  return component.instrumentDetails({\n    initialRender: true\n  });\n}\nfunction rerenderInstrumentDetails(component) {\n  return component.instrumentDetails({\n    initialRender: false\n  });\n}\nconst CURLY_CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: true,\n  prepareArgs: true,\n  createArgs: true,\n  attributeHook: true,\n  elementHook: true,\n  createCaller: true,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: true,\n  willDestroy: true,\n  hasSubOwner: false\n};\nconst CURLY_COMPONENT_MANAGER = new CurlyComponentManager();\nfunction isCurlyManager(manager) {\n  return manager === CURLY_COMPONENT_MANAGER;\n}\n\n/**\n@module @ember/component\n*/\n\n/**\n  A component is a reusable UI element that consists of a `.hbs` template and an\n  optional JavaScript class that defines its behavior. For example, someone\n  might make a `button` in the template and handle the click behavior in the\n  JavaScript file that shares the same name as the template.\n\n  Components are broken down into two categories:\n\n  - Components _without_ JavaScript, that are based only on a template. These\n    are called Template-only or TO components.\n  - Components _with_ JavaScript, which consist of a template and a backing\n    class.\n\n  Ember ships with two types of JavaScript classes for components:\n\n  1. Glimmer components, imported from `@glimmer/component`, which are the\n     default component's for Ember Octane (3.15) and more recent editions.\n  2. Classic components, imported from `@ember/component`, which were the\n     default for older editions of Ember (pre 3.15).\n\n  Below is the documentation for Classic components. If you are looking for the\n  API documentation for Template-only or Glimmer components, it is\n  [available here](/ember/release/modules/@glimmer%2Fcomponent).\n\n  ## Defining a Classic Component\n\n  If you want to customize the component in order to handle events, transform\n  arguments or maintain internal state, you implement a subclass of `Component`.\n\n  One example is to add computed properties to your component:\n\n  ```app/components/person-profile.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    displayName: computed('person.title', 'person.firstName', 'person.lastName', function() {\n      let { title, firstName, lastName } = this.person;\n\n      if (title) {\n        return `${title} ${lastName}`;\n      } else {\n        return `${firstName} ${lastName}`;\n      }\n    })\n  });\n  ```\n\n  And then use it in the component's template:\n\n  ```app/templates/components/person-profile.hbs\n  <h1>{{this.displayName}}</h1>\n  {{yield}}\n  ```\n\n  ## Customizing a Classic Component's HTML Element in JavaScript\n\n  ### HTML Tag\n\n  The default HTML tag name used for a component's HTML representation is `div`.\n  This can be customized by setting the `tagName` property.\n\n  Consider the following component class:\n\n  ```app/components/emphasized-paragraph.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    tagName: 'em'\n  });\n  ```\n\n  When invoked, this component would produce output that looks something like\n  this:\n\n  ```html\n  <em id=\"ember1\" class=\"ember-view\"></em>\n  ```\n\n  ### HTML `class` Attribute\n\n  The HTML `class` attribute of a component's tag can be set by providing a\n  `classNames` property that is set to an array of strings:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    classNames: ['my-class', 'my-other-class']\n  });\n  ```\n\n  Invoking this component will produce output that looks like this:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view my-class my-other-class\"></div>\n  ```\n\n  `class` attribute values can also be set by providing a `classNameBindings`\n  property set to an array of properties names for the component. The return\n  value of these properties will be added as part of the value for the\n  components's `class` attribute. These properties can be computed properties:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n  import { computed } from '@ember/object';\n\n  export default Component.extend({\n    classNames: ['my-class', 'my-other-class'],\n    classNameBindings: ['propertyA', 'propertyB'],\n\n    propertyA: 'from-a',\n    propertyB: computed(function() {\n      if (someLogic) { return 'from-b'; }\n    })\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view my-class my-other-class from-a from-b\"></div>\n  ```\n\n  Note that `classNames` and `classNameBindings` is in addition to the `class`\n  attribute passed with the angle bracket invocation syntax. Therefore, if this\n  component was invoked like so:\n\n  ```handlebars\n  <MyWidget class=\"from-invocation\" />\n  ```\n\n  The resulting HTML will look similar to this:\n\n  ```html\n  <div id=\"ember1\" class=\"from-invocation ember-view my-class my-other-class from-a from-b\"></div>\n  ```\n\n  If the value of a class name binding returns a boolean the property name\n  itself will be used as the class name if the property is true. The class name\n  will not be added if the value is `false` or `undefined`.\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    classNameBindings: ['hovered'],\n\n    hovered: true\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view hovered\"></div>\n  ```\n\n  ### Custom Class Names for Boolean Values\n\n  When using boolean class name bindings you can supply a string value other\n  than the property name for use as the `class` HTML attribute by appending the\n  preferred value after a \":\" character when defining the binding:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    classNameBindings: ['awesome:so-very-cool'],\n\n    awesome: true\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view so-very-cool\"></div>\n  ```\n\n  Boolean value class name bindings whose property names are in a\n  camelCase-style format will be converted to a dasherized format:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    classNameBindings: ['isUrgent'],\n\n    isUrgent: true\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view is-urgent\"></div>\n  ```\n\n  Class name bindings can also refer to object values that are found by\n  traversing a path relative to the component itself:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n  import EmberObject from '@ember/object';\n\n  export default Component.extend({\n    classNameBindings: ['messages.empty'],\n\n    messages: EmberObject.create({\n      empty: true\n    })\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view empty\"></div>\n  ```\n\n  If you want to add a class name for a property which evaluates to true and\n  and a different class name if it evaluates to false, you can pass a binding\n  like this:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    classNameBindings: ['isEnabled:enabled:disabled'],\n    isEnabled: true\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view enabled\"></div>\n  ```\n\n  When isEnabled is `false`, the resulting HTML representation looks like this:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view disabled\"></div>\n  ```\n\n  This syntax offers the convenience to add a class if a property is `false`:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  // Applies no class when isEnabled is true and class 'disabled' when isEnabled is false\n  export default Component.extend({\n    classNameBindings: ['isEnabled::disabled'],\n    isEnabled: true\n  });\n  ```\n\n  Invoking this component when the `isEnabled` property is true will produce\n  HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view\"></div>\n  ```\n\n  Invoking it when the `isEnabled` property on the component is `false` will\n  produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view disabled\"></div>\n  ```\n\n  Updates to the value of a class name binding will result in automatic update\n  of the  HTML `class` attribute in the component's rendered HTML\n  representation. If the value becomes `false` or `undefined` the class name\n  will be removed.\n\n  Both `classNames` and `classNameBindings` are concatenated properties. See\n  [EmberObject](/ember/release/classes/EmberObject) documentation for more\n  information about concatenated properties.\n\n  ### Other HTML Attributes\n\n  The HTML attribute section of a component's tag can be set by providing an\n  `attributeBindings` property set to an array of property names on the component.\n  The return value of these properties will be used as the value of the component's\n  HTML associated attribute:\n\n  ```app/components/my-anchor.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    tagName: 'a',\n    attributeBindings: ['href'],\n\n    href: 'http://google.com'\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <a id=\"ember1\" class=\"ember-view\" href=\"http://google.com\"></a>\n  ```\n\n  One property can be mapped on to another by placing a \":\" between\n  the source property and the destination property:\n\n  ```app/components/my-anchor.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    tagName: 'a',\n    attributeBindings: ['url:href'],\n\n    url: 'http://google.com'\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <a id=\"ember1\" class=\"ember-view\" href=\"http://google.com\"></a>\n  ```\n\n  HTML attributes passed with angle bracket invocations will take precedence\n  over those specified in `attributeBindings`. Therefore, if this component was\n  invoked like so:\n\n  ```handlebars\n  <MyAnchor href=\"http://bing.com\" @url=\"http://google.com\" />\n  ```\n\n  The resulting HTML will looks like this:\n\n  ```html\n  <a id=\"ember1\" class=\"ember-view\" href=\"http://bing.com\"></a>\n  ```\n\n  Note that the `href` attribute is ultimately set to `http://bing.com`,\n  despite it having attribute binidng to the `url` property, which was\n  set to `http://google.com`.\n\n  Namespaced attributes (e.g. `xlink:href`) are supported, but have to be\n  mapped, since `:` is not a valid character for properties in Javascript:\n\n  ```app/components/my-use.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    tagName: 'use',\n    attributeBindings: ['xlinkHref:xlink:href'],\n\n    xlinkHref: '#triangle'\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <use xlink:href=\"#triangle\"></use>\n  ```\n\n  If the value of a property monitored by `attributeBindings` is a boolean, the\n  attribute will be present or absent depending on the value:\n\n  ```app/components/my-text-input.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    tagName: 'input',\n    attributeBindings: ['disabled'],\n\n    disabled: false\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <input id=\"ember1\" class=\"ember-view\" />\n  ```\n\n  `attributeBindings` can refer to computed properties:\n\n  ```app/components/my-text-input.js\n  import Component from '@ember/component';\n  import { computed } from '@ember/object';\n\n  export default Component.extend({\n    tagName: 'input',\n    attributeBindings: ['disabled'],\n\n    disabled: computed(function() {\n      if (someLogic) {\n        return true;\n      } else {\n        return false;\n      }\n    })\n  });\n  ```\n\n  To prevent setting an attribute altogether, use `null` or `undefined` as the\n  value of the property used in `attributeBindings`:\n\n  ```app/components/my-text-input.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    tagName: 'form',\n    attributeBindings: ['novalidate'],\n    novalidate: null\n  });\n  ```\n\n  Updates to the property of an attribute binding will result in automatic\n  update of the  HTML attribute in the component's HTML output.\n\n  `attributeBindings` is a concatenated property. See\n  [EmberObject](/ember/release/classes/EmberObject) documentation for more\n  information about concatenated properties.\n\n  ## Layouts\n\n  The `layout` property can be used to dynamically specify a template associated\n  with a component class, instead of relying on Ember to link together a\n  component class and a template based on file names.\n\n  In general, applications should not use this feature, but it's commonly used\n  in addons for historical reasons.\n\n  The `layout` property should be set to the default export of a template\n  module, which is the name of a template file without the `.hbs` extension.\n\n  ```app/templates/components/person-profile.hbs\n  <h1>Person's Title</h1>\n  <div class='details'>{{yield}}</div>\n  ```\n\n  ```app/components/person-profile.js\n    import Component from '@ember/component';\n    import layout from '../templates/components/person-profile';\n\n    export default Component.extend({\n      layout\n    });\n  ```\n\n  If you invoke the component:\n\n  ```handlebars\n  <PersonProfile>\n    <h2>Chief Basket Weaver</h2>\n    <h3>Fisherman Industries</h3>\n  </PersonProfile>\n  ```\n\n  or\n\n  ```handlebars\n  {{#person-profile}}\n    <h2>Chief Basket Weaver</h2>\n    <h3>Fisherman Industries</h3>\n  {{/person-profile}}\n  ```\n\n  It will result in the following HTML output:\n\n  ```html\n  <h1>Person's Title</h1>\n    <div class=\"details\">\n    <h2>Chief Basket Weaver</h2>\n    <h3>Fisherman Industries</h3>\n  </div>\n  ```\n\n  ## Handling Browser Events\n\n  Components can respond to user-initiated events in one of three ways: passing\n  actions with angle bracket invocation, adding event handler methods to the\n  component's class, or adding actions to the component's template.\n\n  ### Passing Actions With Angle Bracket Invocation\n\n  For one-off events specific to particular instance of a component, it is possible\n  to pass actions to the component's element using angle bracket invocation syntax.\n\n  ```handlebars\n  <MyWidget {{action 'firstWidgetClicked'}} />\n\n  <MyWidget {{action 'secondWidgetClicked'}} />\n  ```\n\n  In this case, when the first component is clicked on, Ember will invoke the\n  `firstWidgetClicked` action. When the second component is clicked on, Ember\n  will invoke the `secondWidgetClicked` action instead.\n\n  Besides `{{action}}`, it is also possible to pass any arbitrary element modifiers\n  using the angle bracket invocation syntax.\n\n  ### Event Handler Methods\n\n  Components can also respond to user-initiated events by implementing a method\n  that matches the event name. This approach is appropriate when the same event\n  should be handled by all instances of the same component.\n\n  An event object will be passed as the argument to the event handler method.\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    click(event) {\n      // `event.target` is either the component's element or one of its children\n      let tag = event.target.tagName.toLowerCase();\n      console.log('clicked on a `<${tag}>` HTML element!');\n    }\n  });\n  ```\n\n  In this example, whenever the user clicked anywhere inside the component, it\n  will log a message to the console.\n\n  It is possible to handle event types other than `click` by implementing the\n  following event handler methods. In addition, custom events can be registered\n  by using `Application.customEvents`.\n\n  Touch events:\n\n  * `touchStart`\n  * `touchMove`\n  * `touchEnd`\n  * `touchCancel`\n\n  Keyboard events:\n\n  * `keyDown`\n  * `keyUp`\n  * `keyPress`\n\n  Mouse events:\n\n  * `mouseDown`\n  * `mouseUp`\n  * `contextMenu`\n  * `click`\n  * `doubleClick`\n  * `focusIn`\n  * `focusOut`\n\n  Form events:\n\n  * `submit`\n  * `change`\n  * `focusIn`\n  * `focusOut`\n  * `input`\n\n  Drag and drop events:\n\n  * `dragStart`\n  * `drag`\n  * `dragEnter`\n  * `dragLeave`\n  * `dragOver`\n  * `dragEnd`\n  * `drop`\n\n  ### `{{action}}` Helper\n\n  Instead of handling all events of a particular type anywhere inside the\n  component's element, you may instead want to limit it to a particular\n  element in the component's template. In this case, it would be more\n  convenient to implement an action instead.\n\n  For example, you could implement the action `hello` for the `person-profile`\n  component:\n\n  ```app/components/person-profile.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    actions: {\n      hello(name) {\n        console.log(\"Hello\", name);\n      }\n    }\n  });\n  ```\n\n  And then use it in the component's template:\n\n  ```app/templates/components/person-profile.hbs\n  <h1>{{@person.name}}</h1>\n\n  <button {{action 'hello' @person.name}}>\n    Say Hello to {{@person.name}}\n  </button>\n  ```\n\n  When the user clicks the button, Ember will invoke the `hello` action,\n  passing in the current value of `@person.name` as an argument.\n\n  See [Ember.Templates.helpers.action](/ember/release/classes/Ember.Templates.helpers/methods/action?anchor=action).\n\n  @class Component\n  @extends Ember.CoreView\n  @uses Ember.TargetActionSupport\n  @uses Ember.ClassNamesSupport\n  @uses Ember.ActionSupport\n  @uses Ember.ViewMixin\n  @uses Ember.ViewStateSupport\n  @public\n*/\n\nconst Component = CoreView.extend(ChildViewsSupport, ViewStateSupport, ClassNamesSupport, TargetActionSupport, ActionSupport, ViewMixin, {\n  isComponent: true,\n\n  init() {\n    this._super(...arguments);\n\n    this[IS_DISPATCHING_ATTRS] = false;\n    this[DIRTY_TAG] = createTag();\n    this[BOUNDS] = null;\n\n    if (DEBUG && this.renderer._isInteractive && this.tagName === '') {\n      let eventNames = [];\n      let eventDispatcher = getOwner(this).lookup('event_dispatcher:main');\n      let events = eventDispatcher && eventDispatcher._finalEvents || {}; // tslint:disable-next-line:forin\n\n      for (let key in events) {\n        let methodName = events[key];\n\n        if (typeof this[methodName] === 'function') {\n          eventNames.push(methodName);\n        }\n      } // If in a tagless component, assert that no event handlers are defined\n\n\n      assert( // tslint:disable-next-line:max-line-length\n      `You can not define \\`${eventNames}\\` function(s) to handle DOM event in the \\`${this}\\` tagless component since it doesn't have any DOM element.`, !eventNames.length);\n    }\n\n    deprecate(`${this}: Using \\`mouseEnter\\` event handler methods in components has been deprecated.`, this.mouseEnter === undefined, {\n      id: 'ember-views.event-dispatcher.mouseenter-leave-move',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_component-mouseenter-leave-move',\n      for: 'ember-source',\n      since: {\n        enabled: '3.13.0-beta.1'\n      }\n    });\n    deprecate(`${this}: Using \\`mouseLeave\\` event handler methods in components has been deprecated.`, this.mouseLeave === undefined, {\n      id: 'ember-views.event-dispatcher.mouseenter-leave-move',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_component-mouseenter-leave-move',\n      for: 'ember-source',\n      since: {\n        enabled: '3.13.0-beta.1'\n      }\n    });\n    deprecate(`${this}: Using \\`mouseMove\\` event handler methods in components has been deprecated.`, this.mouseMove === undefined, {\n      id: 'ember-views.event-dispatcher.mouseenter-leave-move',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_component-mouseenter-leave-move',\n      for: 'ember-source',\n      since: {\n        enabled: '3.13.0-beta.1'\n      }\n    });\n  },\n\n  rerender() {\n    dirtyTag(this[DIRTY_TAG]);\n\n    this._super();\n  },\n\n  [PROPERTY_DID_CHANGE](key, value) {\n    if (this[IS_DISPATCHING_ATTRS]) {\n      return;\n    }\n\n    let args = this[ARGS];\n    let reference = args !== undefined ? args[key] : undefined;\n\n    if (reference !== undefined && isUpdatableRef(reference)) {\n      updateRef(reference, arguments.length === 2 ? value : get(this, key));\n    }\n  },\n\n  getAttr(key) {\n    // TODO Intimate API should be deprecated\n    return this.get(key);\n  },\n\n  /**\n    Normally, Ember's component model is \"write-only\". The component takes a\n    bunch of attributes that it got passed in, and uses them to render its\n    template.\n     One nice thing about this model is that if you try to set a value to the\n    same thing as last time, Ember (through HTMLBars) will avoid doing any\n    work on the DOM.\n     This is not just a performance optimization. If an attribute has not\n    changed, it is important not to clobber the element's \"hidden state\".\n    For example, if you set an input's `value` to the same value as before,\n    it will clobber selection state and cursor position. In other words,\n    setting an attribute is not **always** idempotent.\n     This method provides a way to read an element's attribute and also\n    update the last value Ember knows about at the same time. This makes\n    setting an attribute idempotent.\n     In particular, what this means is that if you get an `<input>` element's\n    `value` attribute and then re-render the template with the same value,\n    it will avoid clobbering the cursor and selection position.\n    Since most attribute sets are idempotent in the browser, you typically\n    can get away with reading attributes using jQuery, but the most reliable\n    way to do so is through this method.\n    @method readDOMAttr\n     @param {String} name the name of the attribute\n    @return String\n    @public\n   */\n  readDOMAttr(name) {\n    // TODO revisit this\n    let _element = getViewElement(this);\n\n    assert(`Cannot call \\`readDOMAttr\\` on ${this} which does not have an element`, _element !== null);\n    let element = _element;\n    let isSVG = element.namespaceURI === \"http://www.w3.org/2000/svg\"\n    /* SVG */\n    ;\n    let {\n      type,\n      normalized\n    } = normalizeProperty(element, name);\n\n    if (isSVG || type === 'attr') {\n      return element.getAttribute(normalized);\n    }\n\n    return element[normalized];\n  },\n\n  /**\n   The WAI-ARIA role of the control represented by this view. For example, a\n   button may have a role of type 'button', or a pane may have a role of\n   type 'alertdialog'. This property is used by assistive software to help\n   visually challenged users navigate rich web applications.\n    The full list of valid WAI-ARIA roles is available at:\n   [https://www.w3.org/TR/wai-aria/#roles_categorization](https://www.w3.org/TR/wai-aria/#roles_categorization)\n    @property ariaRole\n   @type String\n   @default null\n   @public\n   */\n\n  /**\n   Enables components to take a list of parameters as arguments.\n   For example, a component that takes two parameters with the names\n   `name` and `age`:\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    let MyComponent = Component.extend();\n    MyComponent.reopenClass({\n     positionalParams: ['name', 'age']\n   });\n    export default MyComponent;\n   ```\n    It can then be invoked like this:\n    ```hbs\n   {{my-component \"John\" 38}}\n   ```\n    The parameters can be referred to just like named parameters:\n    ```hbs\n   Name: {{name}}, Age: {{age}}.\n   ```\n    Using a string instead of an array allows for an arbitrary number of\n   parameters:\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    let MyComponent = Component.extend();\n    MyComponent.reopenClass({\n     positionalParams: 'names'\n   });\n    export default MyComponent;\n   ```\n    It can then be invoked like this:\n    ```hbs\n   {{my-component \"John\" \"Michael\" \"Scott\"}}\n   ```\n   The parameters can then be referred to by enumerating over the list:\n    ```hbs\n   {{#each names as |name|}}{{name}}{{/each}}\n   ```\n    @static\n   @public\n   @property positionalParams\n   @since 1.13.0\n   */\n\n  /**\n   Called when the attributes passed into the component have been updated.\n   Called both during the initial render of a container and during a rerender.\n   Can be used in place of an observer; code placed here will be executed\n   every time any attribute updates.\n   @method didReceiveAttrs\n   @public\n   @since 1.13.0\n   */\n  didReceiveAttrs() {},\n\n  /**\n   Called when the attributes passed into the component have been updated.\n   Called both during the initial render of a container and during a rerender.\n   Can be used in place of an observer; code placed here will be executed\n   every time any attribute updates.\n   @event didReceiveAttrs\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called after a component has been rendered, both on initial render and\n   in subsequent rerenders.\n   @method didRender\n   @public\n   @since 1.13.0\n   */\n  didRender() {},\n\n  /**\n   Called after a component has been rendered, both on initial render and\n   in subsequent rerenders.\n   @event didRender\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called before a component has been rendered, both on initial render and\n   in subsequent rerenders.\n   @method willRender\n   @public\n   @since 1.13.0\n   */\n  willRender() {},\n\n  /**\n   Called before a component has been rendered, both on initial render and\n   in subsequent rerenders.\n   @event willRender\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the attributes passed into the component have been changed.\n   Called only during a rerender, not during an initial render.\n   @method didUpdateAttrs\n   @public\n   @since 1.13.0\n   */\n  didUpdateAttrs() {},\n\n  /**\n   Called when the attributes passed into the component have been changed.\n   Called only during a rerender, not during an initial render.\n   @event didUpdateAttrs\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the component is about to update and rerender itself.\n   Called only during a rerender, not during an initial render.\n   @method willUpdate\n   @public\n   @since 1.13.0\n   */\n  willUpdate() {},\n\n  /**\n   Called when the component is about to update and rerender itself.\n   Called only during a rerender, not during an initial render.\n   @event willUpdate\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the component has updated and rerendered itself.\n   Called only during a rerender, not during an initial render.\n   @method didUpdate\n   @public\n   @since 1.13.0\n   */\n  didUpdate() {}\n\n});\n\nComponent.toString = () => '@ember/component';\n\nComponent.reopenClass({\n  isComponentFactory: true,\n  positionalParams: []\n});\nsetInternalComponentManager(CURLY_COMPONENT_MANAGER, Component);\n\n{\n  Object.defineProperty(Component, '_wasReopened', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: false\n  });\n  Object.defineProperty(Component, 'reopen', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: function reopen(...args) {\n      if (this === Component) {\n        deprecate('Reopening the Ember.Component super class itself is deprecated. ' + 'Consider alternatives such as installing event listeners on ' + 'the document or add the customizations to specific subclasses.', false, {\n          id: 'ember.component.reopen',\n          for: 'ember-source',\n          since: {},\n          until: '4.0.0'\n        });\n        Component._wasReopened = true;\n      }\n\n      return CoreObject.reopen.call(this, ...args);\n    }\n  });\n  Object.defineProperty(Component, 'reopenClass', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: function reopenClass(...args) {\n      if (this === Component) {\n        deprecate('Reopening the Ember.Component super class itself is deprecated. ' + 'Consider alternatives such as installing event listeners on ' + 'the document or add the customizations to specific subclasses.', false, {\n          id: 'ember.component.reopen',\n          for: 'ember-source',\n          since: {},\n          until: '4.0.0'\n        });\n        Component._wasReopened = true;\n      }\n\n      return CoreObject.reopenClass.call(this, ...args);\n    }\n  });\n}\n\nvar layout = templateFactory({\n  \"id\": \"14evwHqT\",\n  \"block\": \"[[],[],false,[]]\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/empty.hbs\",\n  \"isStrictMode\": false\n});\n\n/**\n@module @ember/component\n*/\n\n/**\n  The internal class used to create text inputs when the `{{input}}`\n  helper is used with `type` of `checkbox`.\n\n  See [Ember.Templates.helpers.input](/ember/release/classes/Ember.Templates.helpers/methods/input?anchor=input)  for usage details.\n\n  ## Direct manipulation of `checked`\n\n  The `checked` attribute of an `Checkbox` object should always be set\n  through the Ember object or by interacting with its rendered element\n  representation via the mouse, keyboard, or touch. Updating the value of the\n  checkbox via jQuery will result in the checked value of the object and its\n  element losing synchronization.\n\n  ## Layout and LayoutName properties\n\n  Because HTML `input` elements are self closing `layout` and `layoutName`\n  properties will not be applied.\n\n  @class Checkbox\n  @extends Component\n  @public\n*/\n\nconst Checkbox = Component.extend({\n  layout,\n\n  /**\n    By default, this component will add the `ember-checkbox` class to the component's element.\n       @property classNames\n    @type Array | String\n    @default ['ember-checkbox']\n    @public\n   */\n  classNames: ['ember-checkbox'],\n  tagName: 'input',\n\n  /**\n    By default this component will forward a number of arguments to attributes on the the\n    component's element:\n       * indeterminate\n    * disabled\n    * tabindex\n    * name\n    * autofocus\n    * required\n    * form\n       When invoked with curly braces, this is the exhaustive list of HTML attributes you can\n    customize (i.e. `{{input type=\"checkbox\" disabled=true}}`).\n       When invoked with angle bracket invocation, this list is irrelevant, because you can use HTML\n    attribute syntax to customize the element (i.e.\n    `<Input @type=\"checkbox\" disabled data-custom=\"custom value\" />`). However, `@type` and\n    `@checked` must be passed as named arguments, not attributes.\n       @property attributeBindings\n    @type Array | String\n    @default ['type', 'checked', 'indeterminate', 'disabled', 'tabindex', 'name', 'autofocus', 'required', 'form']\n    @public\n  */\n  attributeBindings: ['type', 'checked', 'indeterminate', 'disabled', 'tabindex', 'name', 'autofocus', 'required', 'form'],\n\n  /**\n    Sets the `type` attribute of the `Checkbox`'s element\n       @property disabled\n    @default false\n    @private\n   */\n  type: 'checkbox',\n\n  /**\n    Sets the `disabled` attribute of the `Checkbox`'s element\n       @property disabled\n    @default false\n    @public\n   */\n  disabled: false,\n\n  /**\n    Corresponds to the `indeterminate` property of the `Checkbox`'s element\n       @property disabled\n    @default false\n    @public\n   */\n  indeterminate: false,\n\n  /**\n    Whenever the checkbox is inserted into the DOM, perform initialization steps, which include\n    setting the indeterminate property if needed.\n       If this method is overridden, `super` must be called.\n       @method\n    @public\n   */\n  didInsertElement() {\n    this._super(...arguments);\n\n    this.element.indeterminate = Boolean(this.indeterminate);\n  },\n\n  /**\n    Whenever the `change` event is fired on the checkbox, update its `checked` property to reflect\n    whether the checkbox is checked.\n       If this method is overridden, `super` must be called.\n       @method\n    @public\n   */\n  change() {\n    set(this, 'checked', this.element.checked);\n  }\n\n});\n\nif (DEBUG) {\n  const UNSET = {};\n  Checkbox.reopen({\n    value: UNSET,\n\n    didReceiveAttrs() {\n      this._super();\n\n      assert(\"`<Input @type='checkbox' @value={{...}} />` is not supported; \" + \"please use `<Input @type='checkbox' @checked={{...}} />` instead.\", !(this.type === 'checkbox' && this.value !== UNSET));\n    }\n\n  });\n}\n\nCheckbox.toString = () => '@ember/component/checkbox';\n\n{\n  Object.defineProperty(Checkbox, '_wasReopened', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: false\n  });\n  Object.defineProperty(Checkbox, 'reopen', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: function reopen(...args) {\n      if (this === Checkbox) {\n        deprecate('Reopening Ember.Checkbox is deprecated. Consider implementing your own ' + 'wrapper component or create a custom subclass.', false, {\n          id: 'ember.built-in-components.reopen',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          },\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-reopen'\n        });\n        Checkbox._wasReopened = true;\n      }\n\n      return FrameworkObject.reopen.call(this, ...args);\n    }\n  });\n  Object.defineProperty(Checkbox, 'reopenClass', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: function reopenClass(...args) {\n      if (this === Checkbox) {\n        deprecate('Reopening Ember.Checkbox is deprecated. Consider implementing your own ' + 'wrapper component or create a custom subclass.', false, {\n          id: 'ember.built-in-components.reopen',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          },\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-reopen'\n        });\n        Checkbox._wasReopened = true;\n      }\n\n      return FrameworkObject.reopenClass.call(this, ...args);\n    }\n  });\n}\n\n/**\n@module @ember/component\n*/\nconst inputTypes = hasDOM ? Object.create(null) : null;\n\nfunction canSetTypeOfInput(type) {\n  // if running in outside of a browser always return\n  // the original type\n  if (!hasDOM) {\n    return Boolean(type);\n  }\n\n  if (type in inputTypes) {\n    return inputTypes[type];\n  }\n\n  let inputTypeTestElement = document.createElement('input');\n\n  try {\n    inputTypeTestElement.type = type;\n  } catch (e) {// ignored\n  }\n\n  return inputTypes[type] = inputTypeTestElement.type === type;\n}\n/**\n  The internal class used to create text inputs when the `Input` component is used with `type` of `text`.\n\n  See [Ember.Templates.components.Input](/ember/release/classes/Ember.Templates.components/methods/Input?anchor=Input) for usage details.\n\n  ## Layout and LayoutName properties\n\n  Because HTML `input` elements are self closing `layout` and `layoutName`\n  properties will not be applied.\n\n  @class TextField\n  @extends Component\n  @uses Ember.TextSupport\n  @public\n*/\n\n\nconst TextField = Component.extend(TextSupport, {\n  layout,\n\n  /**\n    By default, this component will add the `ember-text-field` class to the component's element.\n       @property classNames\n    @type Array | String\n    @default ['ember-text-field']\n    @public\n   */\n  classNames: ['ember-text-field'],\n  tagName: 'input',\n\n  /**\n    By default this component will forward a number of arguments to attributes on the the\n    component's element:\n       * accept\n    * autocomplete\n    * autosave\n    * dir\n    * formaction\n    * formenctype\n    * formmethod\n    * formnovalidate\n    * formtarget\n    * height\n    * inputmode\n    * lang\n    * list\n    * type\n    * max\n    * min\n    * multiple\n    * name\n    * pattern\n    * size\n    * step\n    * value\n    * width\n       When invoked with `{{input type=\"text\"}}`, you can only customize these attributes. When invoked\n    with `<Input @type=\"text\" />`, you can just use HTML attributes directly.\n       @property attributeBindings\n    @type Array | String\n    @default ['accept', 'autocomplete', 'autosave', 'dir', 'formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget', 'height', 'inputmode', 'lang', 'list', 'type', 'max', 'min', 'multiple', 'name', 'pattern', 'size', 'step', 'value', 'width']\n    @public\n  */\n  attributeBindings: ['accept', 'autocomplete', 'autosave', 'dir', 'formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget', 'height', 'inputmode', 'lang', 'list', 'type', 'max', 'min', 'multiple', 'name', 'pattern', 'size', 'step', 'value', 'width'],\n\n  /**\n    As the user inputs text, this property is updated to reflect the `value` property of the HTML\n    element.\n       @property value\n    @type String\n    @default \"\"\n    @public\n  */\n  value: '',\n\n  /**\n    The `type` attribute of the input element.\n       @property type\n    @type String\n    @default \"text\"\n    @public\n  */\n  type: computed({\n    get() {\n      return 'text';\n    },\n\n    set(_key, value) {\n      let type = 'text';\n\n      if (canSetTypeOfInput(value)) {\n        type = value;\n      }\n\n      return type;\n    }\n\n  }),\n\n  /**\n    The `size` of the text field in characters.\n       @property size\n    @type String\n    @default null\n    @public\n  */\n  size: null,\n\n  /**\n    The `pattern` attribute of input element.\n       @property pattern\n    @type String\n    @default null\n    @public\n  */\n  pattern: null,\n\n  /**\n    The `min` attribute of input element used with `type=\"number\"` or `type=\"range\"`.\n       @property min\n    @type String\n    @default null\n    @since 1.4.0\n    @public\n  */\n  min: null,\n\n  /**\n    The `max` attribute of input element used with `type=\"number\"` or `type=\"range\"`.\n       @property max\n    @type String\n    @default null\n    @since 1.4.0\n    @public\n  */\n  max: null\n});\n\nTextField.toString = () => '@ember/component/text-field';\n\n{\n  Object.defineProperty(TextField, '_wasReopened', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: false\n  });\n  Object.defineProperty(TextField, 'reopen', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: function reopen(...args) {\n      if (this === TextField) {\n        deprecate('Reopening Ember.TextField is deprecated. Consider implementing your own ' + 'wrapper component or create a custom subclass.', false, {\n          id: 'ember.built-in-components.reopen',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          },\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-reopen'\n        });\n        TextField._wasReopened = true;\n      }\n\n      return CoreObject.reopen.call(this, ...args);\n    }\n  });\n  Object.defineProperty(TextField, 'reopenClass', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: function reopenClass(...args) {\n      if (this === TextField) {\n        deprecate('Reopening Ember.TextField is deprecated. Consider implementing your own ' + 'wrapper component or create a custom subclass.', false, {\n          id: 'ember.built-in-components.reopen',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          },\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-reopen'\n        });\n        TextField._wasReopened = true;\n      }\n\n      return CoreObject.reopenClass.call(this, ...args);\n    }\n  });\n}\n\n/**\n@module @ember/component\n*/\n/**\n  The internal representation used for `Textarea` invocations.\n\n  @class TextArea\n  @extends Component\n  @see {Ember.Templates.components.Textarea}\n  @uses Ember.TextSupport\n  @public\n*/\n\nconst TextArea = Component.extend(TextSupport, {\n  classNames: ['ember-text-area'],\n  layout,\n  tagName: 'textarea',\n  attributeBindings: ['rows', 'cols', 'name', 'selectionEnd', 'selectionStart', 'autocomplete', 'wrap', 'lang', 'dir', 'value'],\n  rows: null,\n  cols: null\n});\n\nTextArea.toString = () => '@ember/component/text-area';\n\n{\n  Object.defineProperty(TextArea, '_wasReopened', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: false\n  });\n  Object.defineProperty(TextArea, 'reopen', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: function reopen(...args) {\n      if (this === TextArea) {\n        deprecate('Reopening Ember.TextArea is deprecated. Consider implementing your own ' + 'wrapper component or create a custom subclass.', false, {\n          id: 'ember.built-in-components.reopen',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          },\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-reopen'\n        });\n        TextArea._wasReopened = true;\n      }\n\n      return CoreObject.reopen.call(this, ...args);\n    }\n  });\n  Object.defineProperty(TextArea, 'reopenClass', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: function reopenClass(...args) {\n      if (this === TextArea) {\n        deprecate('Reopening Ember.TextArea is deprecated. Consider implementing your own ' + 'wrapper component or create a custom subclass.', false, {\n          id: 'ember.built-in-components.reopen',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          },\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-reopen'\n        });\n        TextArea._wasReopened = true;\n      }\n\n      return CoreObject.reopenClass.call(this, ...args);\n    }\n  });\n}\n\nvar layout$1 = templateFactory({\n  \"id\": \"zyblzQRj\",\n  \"block\": \"[[[41,[48,[30,1]],[[[18,1,null]],[]],[[[1,[30,0,[\\\"linkTitle\\\"]]]],[]]]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/-link-to.hbs\",\n  \"isStrictMode\": false\n});\n\n/**\n@module ember\n*/\n/**\n  The `LinkTo` component renders a link to the supplied `routeName` passing an optionally\n  supplied model to the route as its `model` context of the route. The block for `LinkTo`\n  becomes the contents of the rendered element:\n\n  ```handlebars\n  <LinkTo @route='photoGallery'>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  This will result in:\n\n  ```html\n  <a href=\"/hamster-photos\">\n    Great Hamster Photos\n  </a>\n  ```\n\n  ### Disabling the `LinkTo` component\n\n  The `LinkTo` component can be disabled by using the `disabled` argument. A disabled link\n  doesn't result in a transition when activated, and adds the `disabled` class to the `<a>`\n  element.\n\n  (The class name to apply to the element can be overridden by using the `disabledClass`\n  argument)\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @disabled={{true}}>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  ### Handling `href`\n\n  `<LinkTo>` will use your application's Router to fill the element's `href` property with a URL\n  that matches the path to the supplied `routeName`.\n\n  ### Handling current route\n\n  The `LinkTo` component will apply a CSS class name of 'active' when the application's current\n  route matches the supplied routeName. For example, if the application's current route is\n  'photoGallery.recent', then the following invocation of `LinkTo`:\n\n  ```handlebars\n  <LinkTo @route='photoGallery.recent'>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  will result in\n\n  ```html\n  <a href=\"/hamster-photos/this-week\" class=\"active\">\n    Great Hamster Photos\n  </a>\n  ```\n\n  The CSS class used for active classes can be customized by passing an `activeClass` argument:\n\n  ```handlebars\n  <LinkTo @route='photoGallery.recent' @activeClass=\"current-url\">\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  ```html\n  <a href=\"/hamster-photos/this-week\" class=\"current-url\">\n    Great Hamster Photos\n  </a>\n  ```\n\n  ### Keeping a link active for other routes\n\n  If you need a link to be 'active' even when it doesn't match the current route, you can use the\n  `current-when` argument.\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @current-when='photos'>\n    Photo Gallery\n  </LinkTo>\n  ```\n\n  This may be helpful for keeping links active for:\n\n  * non-nested routes that are logically related\n  * some secondary menu approaches\n  * 'top navigation' with 'sub navigation' scenarios\n\n  A link will be active if `current-when` is `true` or the current\n  route is the route this link would transition to.\n\n  To match multiple routes 'space-separate' the routes:\n\n  ```handlebars\n  <LinkTo @route='gallery' @current-when='photos drawings paintings'>\n    Art Gallery\n  </LinkTo>\n  ```\n\n  ### Supplying a model\n\n  An optional `model` argument can be used for routes whose\n  paths contain dynamic segments. This argument will become\n  the model context of the linked route:\n\n  ```javascript\n  Router.map(function() {\n    this.route(\"photoGallery\", {path: \"hamster-photos/:photo_id\"});\n  });\n  ```\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @model={{this.aPhoto}}>\n    {{aPhoto.title}}\n  </LinkTo>\n  ```\n\n  ```html\n  <a href=\"/hamster-photos/42\">\n    Tomster\n  </a>\n  ```\n\n  ### Supplying multiple models\n\n  For deep-linking to route paths that contain multiple\n  dynamic segments, the `models` argument can be used.\n\n  As the router transitions through the route path, each\n  supplied model argument will become the context for the\n  route with the dynamic segments:\n\n  ```javascript\n  Router.map(function() {\n    this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" }, function() {\n      this.route(\"comment\", {path: \"comments/:comment_id\"});\n    });\n  });\n  ```\n\n  This argument will become the model context of the linked route:\n\n  ```handlebars\n  <LinkTo @route='photoGallery.comment' @models={{array this.aPhoto this.comment}}>\n    {{comment.body}}\n  </LinkTo>\n  ```\n\n  ```html\n  <a href=\"/hamster-photos/42/comments/718\">\n    A+++ would snuggle again.\n  </a>\n  ```\n\n  ### Supplying an explicit dynamic segment value\n\n  If you don't have a model object available to pass to `LinkTo`,\n  an optional string or integer argument can be passed for routes whose\n  paths contain dynamic segments. This argument will become the value\n  of the dynamic segment:\n\n  ```javascript\n  Router.map(function() {\n    this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" });\n  });\n  ```\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @model={{aPhotoId}}>\n    {{this.aPhoto.title}}\n  </LinkTo>\n  ```\n\n  ```html\n  <a href=\"/hamster-photos/42\">\n    Tomster\n  </a>\n  ```\n\n  When transitioning into the linked route, the `model` hook will\n  be triggered with parameters including this passed identifier.\n\n  ### Supplying a `tagName`\n\n  By default `<LinkTo>` renders an `<a>` element. This can be overridden for a single use of\n  `<LinkTo>` by supplying a `tagName` argument:\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @tagName='li'>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  This produces:\n\n  ```html\n  <li>\n    Great Hamster Photos\n  </li>\n  ```\n\n  In general, this is not recommended.\n\n  ### Supplying query parameters\n\n  If you need to add optional key-value pairs that appear to the right of the ? in a URL,\n  you can use the `query` argument.\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @query={{hash page=1 per_page=20}}>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  This will result in:\n\n  ```html\n  <a href=\"/hamster-photos?page=1&per_page=20\">\n    Great Hamster Photos\n  </a>\n  ```\n\n  @for Ember.Templates.components\n  @method LinkTo\n  @see {LinkComponent}\n  @public\n*/\n\n/**\n  @module @ember/routing\n*/\n\n/**\n  See [Ember.Templates.components.LinkTo](/ember/release/classes/Ember.Templates.components/methods/input?anchor=LinkTo).\n\n  @for Ember.Templates.helpers\n  @method link-to\n  @see {Ember.Templates.components.LinkTo}\n  @public\n**/\n\n/**\n  `LinkComponent` is the internal component invoked with `<LinkTo>` or `{{link-to}}`.\n\n  @class LinkComponent\n  @extends Component\n  @see {Ember.Templates.components.LinkTo}\n  @public\n**/\n\nconst UNDEFINED = Object.freeze({\n  toString() {\n    return 'UNDEFINED';\n  }\n\n});\nconst EMPTY_QUERY_PARAMS = Object.freeze({});\nconst LinkComponent = Component.extend({\n  layout: layout$1,\n  tagName: 'a',\n\n  /**\n    @property route\n    @public\n  */\n  route: UNDEFINED,\n\n  /**\n    @property model\n    @public\n  */\n  model: UNDEFINED,\n\n  /**\n    @property models\n    @public\n  */\n  models: UNDEFINED,\n\n  /**\n    @property query\n    @public\n  */\n  query: UNDEFINED,\n\n  /**\n    Used to determine when this `LinkComponent` is active.\n       @property current-when\n    @public\n  */\n  'current-when': null,\n\n  /**\n    Sets the `title` attribute of the `LinkComponent`'s HTML element.\n       @property title\n    @default null\n    @public\n  **/\n  title: null,\n\n  /**\n    Sets the `rel` attribute of the `LinkComponent`'s HTML element.\n       @property rel\n    @default null\n    @public\n  **/\n  rel: null,\n\n  /**\n    Sets the `tabindex` attribute of the `LinkComponent`'s HTML element.\n       @property tabindex\n    @default null\n    @public\n  **/\n  tabindex: null,\n\n  /**\n    Sets the `target` attribute of the `LinkComponent`'s HTML element.\n       @since 1.8.0\n    @property target\n    @default null\n    @public\n  **/\n  target: null,\n\n  /**\n    The CSS class to apply to `LinkComponent`'s element when its `active`\n    property is `true`.\n       @property activeClass\n    @type String\n    @default active\n    @public\n  **/\n  activeClass: 'active',\n\n  /**\n    The CSS class to apply to `LinkComponent`'s element when its `loading`\n    property is `true`.\n       @property loadingClass\n    @type String\n    @default loading\n    @public\n  **/\n  loadingClass: 'loading',\n\n  /**\n    The CSS class to apply to a `LinkComponent`'s element when its `disabled`\n    property is `true`.\n       @property disabledClass\n    @type String\n    @default disabled\n    @public\n  **/\n  disabledClass: 'disabled',\n\n  /**\n    Determines whether the `LinkComponent` will trigger routing via\n    the `replaceWith` routing strategy.\n       @property replace\n    @type Boolean\n    @default false\n    @public\n  **/\n  replace: false,\n\n  /**\n    Determines whether the `LinkComponent` will prevent the default\n    browser action by calling preventDefault() to avoid reloading\n    the browser page.\n       If you need to trigger a full browser reload pass `@preventDefault={{false}}`:\n       ```handlebars\n    <LinkTo @route='photoGallery' @model={{this.aPhotoId}} @preventDefault={{false}}>\n      {{this.aPhotoId.title}}\n    </LinkTo>\n    ```\n       @property preventDefault\n    @type Boolean\n    @default true\n    @private\n  **/\n  preventDefault: true,\n\n  /**\n    By default this component will forward `href`, `title`, `rel`, `tabindex`, and `target`\n    arguments to attributes on the component's element. When invoked with `{{link-to}}`, you can\n    only customize these attributes. When invoked with `<LinkTo>`, you can just use HTML\n    attributes directly.\n       @property attributeBindings\n    @type Array | String\n    @default ['title', 'rel', 'tabindex', 'target']\n    @public\n  */\n  attributeBindings: ['href', 'title', 'rel', 'tabindex', 'target'],\n\n  /**\n    By default this component will set classes on its element when any of the following arguments\n    are truthy:\n       * active\n    * loading\n    * disabled\n       When these arguments are truthy, a class with the same name will be set on the element. When\n    falsy, the associated class will not be on the element.\n       @property classNameBindings\n    @type Array\n    @default ['active', 'loading', 'disabled', 'ember-transitioning-in', 'ember-transitioning-out']\n    @public\n  */\n  classNameBindings: ['active', 'loading', 'disabled', 'transitioningIn', 'transitioningOut'],\n\n  /**\n    By default this component responds to the `click` event. When the component element is an\n    `<a>` element, activating the link in another way, such as using the keyboard, triggers the\n    click event.\n       @property eventName\n    @type String\n    @default click\n    @private\n  */\n  eventName: 'click',\n\n  // this is doc'ed here so it shows up in the events\n  // section of the API documentation, which is where\n  // people will likely go looking for it.\n\n  /**\n    Triggers the `LinkComponent`'s routing behavior. If\n    `eventName` is changed to a value other than `click`\n    the routing behavior will trigger on that custom event\n    instead.\n       @event click\n    @private\n  */\n\n  /**\n    An overridable method called when `LinkComponent` objects are instantiated.\n       Example:\n       ```app/components/my-link.js\n    import LinkComponent from '@ember/routing/link-component';\n       export default LinkComponent.extend({\n      init() {\n        this._super(...arguments);\n        console.log('Event is ' + this.get('eventName'));\n      }\n    });\n    ```\n       NOTE: If you do override `init` for a framework class like `Component`,\n    be sure to call `this._super(...arguments)` in your\n    `init` declaration! If you don't, Ember may not have an opportunity to\n    do important setup work, and you'll see strange behavior in your\n    application.\n       @method init\n    @private\n  */\n  init() {\n    this._super(...arguments);\n\n    this.assertLinkToOrigin(); // Map desired event name to invoke function\n\n    let {\n      eventName\n    } = this;\n    this.on(eventName, this, this._invoke);\n  },\n\n  _routing: inject('-routing'),\n  _currentRoute: alias('_routing.currentRouteName'),\n  _currentRouterState: alias('_routing.currentState'),\n  _targetRouterState: alias('_routing.targetState'),\n  _isEngine: computed(function () {\n    return getEngineParent(getOwner(this)) !== undefined;\n  }),\n  _engineMountPoint: computed(function () {\n    return getOwner(this).mountPoint;\n  }),\n  _route: computed('route', '_currentRouterState', function computeLinkToComponentRoute() {\n    let {\n      route\n    } = this;\n    return route === UNDEFINED ? this._currentRoute : this._namespaceRoute(route);\n  }),\n  _models: computed('model', 'models', function computeLinkToComponentModels() {\n    let {\n      model,\n      models\n    } = this;\n    assert('You cannot provide both the `@model` and `@models` arguments to the <LinkTo> component.', model === UNDEFINED || models === UNDEFINED);\n\n    if (model !== UNDEFINED) {\n      return [model];\n    } else if (models !== UNDEFINED) {\n      assert('The `@models` argument must be an array.', Array.isArray(models));\n      return models;\n    } else {\n      return [];\n    }\n  }),\n  _query: computed('query', function computeLinkToComponentQuery() {\n    let {\n      query\n    } = this;\n\n    if (query === UNDEFINED) {\n      return EMPTY_QUERY_PARAMS;\n    } else {\n      return Object.assign({}, query);\n    }\n  }),\n\n  /**\n    Accessed as a classname binding to apply the component's `disabledClass`\n    CSS `class` to the element when the link is disabled.\n       When `true`, interactions with the element will not trigger route changes.\n    @property disabled\n    @private\n  */\n  disabled: computed({\n    get(_key) {\n      // always returns false for `get` because (due to the `set` just below)\n      // the cached return value from the set will prevent this getter from _ever_\n      // being called after a set has occurred\n      return false;\n    },\n\n    set(_key, value) {\n      this._isDisabled = value;\n      return value ? this.disabledClass : false;\n    }\n\n  }),\n\n  /**\n    Accessed as a classname binding to apply the component's `activeClass`\n    CSS `class` to the element when the link is active.\n       This component is considered active when its `currentWhen` property is `true`\n    or the application's current route is the route this component would trigger\n    transitions into.\n       The `currentWhen` property can match against multiple routes by separating\n    route names using the ` ` (space) character.\n       @property active\n    @private\n  */\n  active: computed('activeClass', '_active', function computeLinkToComponentActiveClass() {\n    return this._active ? this.activeClass : false;\n  }),\n  _active: computed('_currentRouterState', '_route', '_models', '_query', 'loading', 'current-when', function computeLinkToComponentActive() {\n    let {\n      _currentRouterState: state\n    } = this;\n\n    if (state) {\n      return this._isActive(state);\n    } else {\n      return false;\n    }\n  }),\n  willBeActive: computed('_currentRouterState', '_targetRouterState', '_route', '_models', '_query', 'loading', 'current-when', function computeLinkToComponentWillBeActive() {\n    let {\n      _currentRouterState: current,\n      _targetRouterState: target\n    } = this;\n\n    if (current === target) {\n      return;\n    }\n\n    return this._isActive(target);\n  }),\n\n  /**\n   * Method to assert that LinkTo is not used inside of a routeless engine. This method is\n   * overridden in ember-engines link-to-external component to just be a noop, since the\n   * link-to-external component extends the link-to component.\n   *\n   * @method assertLinkToOrigin\n   * @private\n   */\n  assertLinkToOrigin() {\n    assert('You attempted to use the <LinkTo> component within a routeless engine, this is not supported. ' + 'If you are using the ember-engines addon, use the <LinkToExternal> component instead. ' + 'See https://ember-engines.com/docs/links for more info.', !this._isEngine || this._engineMountPoint !== undefined);\n  },\n\n  _isActive(routerState) {\n    if (this.loading) {\n      return false;\n    }\n\n    let currentWhen = this['current-when'];\n\n    if (typeof currentWhen === 'boolean') {\n      return currentWhen;\n    }\n\n    let {\n      _models: models,\n      _routing: routing\n    } = this;\n\n    if (typeof currentWhen === 'string') {\n      return currentWhen.split(' ').some(route => routing.isActiveForRoute(models, undefined, this._namespaceRoute(route), routerState));\n    } else {\n      return routing.isActiveForRoute(models, this._query, this._route, routerState);\n    }\n  },\n\n  transitioningIn: computed('_active', 'willBeActive', function computeLinkToComponentTransitioningIn() {\n    if (this.willBeActive === true && !this._active) {\n      return 'ember-transitioning-in';\n    } else {\n      return false;\n    }\n  }),\n  transitioningOut: computed('_active', 'willBeActive', function computeLinkToComponentTransitioningOut() {\n    if (this.willBeActive === false && this._active) {\n      return 'ember-transitioning-out';\n    } else {\n      return false;\n    }\n  }),\n\n  _namespaceRoute(route) {\n    let {\n      _engineMountPoint: mountPoint\n    } = this;\n\n    if (mountPoint === undefined) {\n      return route;\n    } else if (route === 'application') {\n      return mountPoint;\n    } else {\n      return `${mountPoint}.${route}`;\n    }\n  },\n\n  /**\n    Event handler that invokes the link, activating the associated route.\n       @method _invoke\n    @param {Event} event\n    @private\n  */\n  _invoke(event) {\n    if (!isSimpleClick(event)) {\n      return true;\n    }\n\n    let {\n      bubbles,\n      preventDefault\n    } = this;\n    let target = this.element.target;\n    let isSelf = !target || target === '_self';\n\n    if (preventDefault !== false && isSelf) {\n      event.preventDefault();\n    }\n\n    if (bubbles === false) {\n      event.stopPropagation();\n    }\n\n    if (this._isDisabled) {\n      return false;\n    }\n\n    if (this.loading) {\n      // tslint:disable-next-line:max-line-length\n      warn('This link is in an inactive loading state because at least one of its models ' + 'currently has a null/undefined value, or the provided route name is invalid.', false, {\n        id: 'ember-glimmer.link-to.inactive-loading-state'\n      });\n      return false;\n    }\n\n    if (!isSelf) {\n      return false;\n    }\n\n    let {\n      _route: routeName,\n      _models: models,\n      _query: queryParams,\n      replace: shouldReplace\n    } = this;\n    let payload = {\n      queryParams,\n      routeName\n    };\n    flaggedInstrument('interaction.link-to', payload, this._generateTransition(payload, routeName, models, queryParams, shouldReplace));\n    return false;\n  },\n\n  _generateTransition(payload, qualifiedRouteName, models, queryParams, shouldReplace) {\n    let {\n      _routing: routing\n    } = this;\n    return () => {\n      payload.transition = routing.transitionTo(qualifiedRouteName, models, queryParams, shouldReplace);\n    };\n  },\n\n  /**\n    Sets the element's `href` attribute to the url for\n    the `LinkComponent`'s targeted route.\n       If the `LinkComponent`'s `tagName` is changed to a value other\n    than `a`, this property will be ignored.\n       @property href\n    @private\n  */\n  href: computed('_currentRouterState', '_route', '_models', '_query', 'tagName', 'loading', 'loadingHref', function computeLinkToComponentHref() {\n    if (this.tagName !== 'a') {\n      return;\n    }\n\n    if (this.loading) {\n      return this.loadingHref;\n    }\n\n    let {\n      _route: route,\n      _models: models,\n      _query: query,\n      _routing: routing\n    } = this;\n\n    if (DEBUG) {\n      /*\n       * Unfortunately, to get decent error messages, we need to do this.\n       * In some future state we should be able to use a \"feature flag\"\n       * which allows us to strip this without needing to call it twice.\n       *\n       * if (isDebugBuild()) {\n       *   // Do the useful debug thing, probably including try/catch.\n       * } else {\n       *   // Do the performant thing.\n       * }\n       */\n      try {\n        return routing.generateURL(route, models, query);\n      } catch (e) {\n        // tslint:disable-next-line:max-line-length\n        e.message = `While generating link to route \"${this.route}\": ${e.message}`;\n        throw e;\n      }\n    } else {\n      return routing.generateURL(route, models, query);\n    }\n  }),\n  loading: computed('_route', '_modelsAreLoaded', 'loadingClass', function computeLinkToComponentLoading() {\n    let {\n      _route: route,\n      _modelsAreLoaded: loaded\n    } = this;\n\n    if (!loaded || route === null || route === undefined) {\n      return this.loadingClass;\n    }\n  }),\n  _modelsAreLoaded: computed('_models', function computeLinkToComponentModelsAreLoaded() {\n    let {\n      _models: models\n    } = this;\n\n    for (let i = 0; i < models.length; i++) {\n      let model = models[i];\n\n      if (model === null || model === undefined) {\n        return false;\n      }\n    }\n\n    return true;\n  }),\n\n  /**\n    The default href value to use while a link-to is loading.\n    Only applies when tagName is 'a'\n       @property loadingHref\n    @type String\n    @default #\n    @private\n  */\n  loadingHref: '#',\n\n  didReceiveAttrs() {\n    let {\n      disabledWhen\n    } = this;\n\n    if (disabledWhen !== undefined) {\n      this.set('disabled', disabledWhen);\n    }\n\n    let {\n      params\n    } = this;\n\n    if (!params || params.length === 0) {\n      assert('You must provide at least one of the `@route`, `@model`, `@models` or `@query` argument to `<LinkTo>`.', !(this.route === UNDEFINED && this.model === UNDEFINED && this.models === UNDEFINED && this.query === UNDEFINED));\n      let {\n        _models: models\n      } = this;\n\n      if (models.length > 0) {\n        let lastModel = models[models.length - 1];\n\n        if (typeof lastModel === 'object' && lastModel !== null && lastModel.isQueryParams) {\n          this.query = lastModel.values;\n          models.pop();\n        }\n      }\n\n      return;\n    }\n\n    let hasBlock = this[HAS_BLOCK];\n    params = params.slice(); // Process the positional arguments, in order.\n    // 1. Inline link title comes first, if present.\n\n    if (!hasBlock) {\n      this.set('linkTitle', params.shift());\n    } // 2. The last argument is possibly the `query` object.\n\n\n    let queryParams = params[params.length - 1];\n\n    if (queryParams && queryParams.isQueryParams) {\n      this.set('query', params.pop().values);\n    } else {\n      this.set('query', UNDEFINED);\n    } // 3. If there is a `route`, it is now at index 0.\n\n\n    if (params.length === 0) {\n      this.set('route', UNDEFINED);\n    } else {\n      this.set('route', params.shift());\n    } // 4. Any remaining indices (if any) are `models`.\n\n\n    this.set('model', UNDEFINED);\n    this.set('models', params);\n    runInDebug(() => {\n      params = this.params.slice();\n      let equivalentNamedArgs = [];\n      let hasQueryParams = false; // Process the positional arguments, in order.\n      // 1. Inline link title comes first, if present.\n\n      if (!hasBlock) {\n        params.shift();\n      } // 2. The last argument is possibly the `query` object.\n\n\n      let query = params[params.length - 1];\n\n      if (query && query.isQueryParams) {\n        params.pop();\n        hasQueryParams = true;\n      } // 3. If there is a `route`, it is now at index 0.\n\n\n      if (params.length > 0) {\n        params.shift();\n        equivalentNamedArgs.push('`@route`');\n      } // 4. Any remaining params (if any) are `models`.\n\n\n      if (params.length === 1) {\n        equivalentNamedArgs.push('`@model`');\n      } else if (params.length > 1) {\n        equivalentNamedArgs.push('`@models`');\n      }\n\n      if (hasQueryParams) {\n        equivalentNamedArgs.push('`@query`');\n      }\n\n      if (equivalentNamedArgs.length > 0) {\n        let message = 'Invoking the `<LinkTo>` component with positional arguments is deprecated.';\n        message += `Please use the equivalent named arguments (${equivalentNamedArgs.join(', ')})`;\n\n        if (hasQueryParams) {\n          message += ' along with the `hash` helper';\n        }\n\n        if (!hasBlock) {\n          message += \" and pass a block for the link's content.\";\n        }\n\n        message += '.';\n        deprecate(message, false, {\n          id: 'ember-glimmer.link-to.positional-arguments',\n          until: '4.0.0',\n          for: 'ember-source',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-glimmer-link-to-positional-arguments',\n          since: {\n            enabled: '3.26.0-beta.1'\n          }\n        });\n      }\n    });\n  }\n\n});\n\nLinkComponent.toString = () => '@ember/routing/link-component';\n\nLinkComponent.reopenClass({\n  positionalParams: 'params'\n});\n\n{\n  Object.defineProperty(LinkComponent, '_wasReopened', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: false\n  });\n  Object.defineProperty(LinkComponent, 'reopen', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: function reopen(...args) {\n      if (this === LinkComponent) {\n        deprecate('Reopening Ember.LinkComponent is deprecated. Consider implementing your own ' + 'wrapper component or create a custom subclass.', false, {\n          id: 'ember.built-in-components.reopen',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          },\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-reopen'\n        });\n        LinkComponent._wasReopened = true;\n      }\n\n      return CoreObject.reopen.call(this, ...args);\n    }\n  });\n  Object.defineProperty(LinkComponent, 'reopenClass', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: function reopenClass(...args) {\n      if (this === LinkComponent) {\n        deprecate('Reopening Ember.LinkComponent is deprecated. Consider implementing your own ' + 'wrapper component or create a custom subclass.', false, {\n          id: 'ember.built-in-components.reopen',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          },\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-reopen'\n        });\n        LinkComponent._wasReopened = true;\n      }\n\n      return CoreObject.reopenClass.call(this, ...args);\n    }\n  });\n}\n\nvar InputTemplate = templateFactory({\n  \"id\": \"4uiR2oaY\",\n  \"block\": \"[[[41,[30,0,[\\\"modernized\\\"]],[[[11,\\\"input\\\"],[16,1,[30,0,[\\\"id\\\"]]],[16,0,[30,0,[\\\"class\\\"]]],[16,\\\"role\\\",[30,0,[\\\"role\\\"]]],[16,\\\"autocapitalize\\\",[30,0,[\\\"autocapitalize\\\"]]],[16,\\\"autocorrect\\\",[30,0,[\\\"autocorrect\\\"]]],[16,\\\"autofocus\\\",[30,0,[\\\"autofocus\\\"]]],[16,\\\"disabled\\\",[30,0,[\\\"disabled\\\"]]],[16,\\\"form\\\",[30,0,[\\\"form\\\"]]],[16,\\\"maxlength\\\",[30,0,[\\\"maxlength\\\"]]],[16,\\\"minlength\\\",[30,0,[\\\"minlength\\\"]]],[16,\\\"placeholder\\\",[30,0,[\\\"placeholder\\\"]]],[16,\\\"readonly\\\",[30,0,[\\\"readonly\\\"]]],[16,\\\"required\\\",[30,0,[\\\"required\\\"]]],[16,\\\"selectionDirection\\\",[30,0,[\\\"selectionDirection\\\"]]],[16,\\\"spellcheck\\\",[30,0,[\\\"spellcheck\\\"]]],[16,\\\"tabindex\\\",[30,0,[\\\"tabindex\\\"]]],[16,\\\"title\\\",[30,0,[\\\"title\\\"]]],[16,\\\"accept\\\",[30,0,[\\\"accept\\\"]]],[16,\\\"autocomplete\\\",[30,0,[\\\"autocomplete\\\"]]],[16,\\\"autosave\\\",[30,0,[\\\"autosave\\\"]]],[16,\\\"dir\\\",[30,0,[\\\"dir\\\"]]],[16,\\\"formaction\\\",[30,0,[\\\"formaction\\\"]]],[16,\\\"formenctype\\\",[30,0,[\\\"formenctype\\\"]]],[16,\\\"formmethod\\\",[30,0,[\\\"formmethod\\\"]]],[16,\\\"formnovalidate\\\",[30,0,[\\\"formnovalidate\\\"]]],[16,\\\"formtarget\\\",[30,0,[\\\"formtarget\\\"]]],[16,\\\"height\\\",[30,0,[\\\"height\\\"]]],[16,\\\"inputmode\\\",[30,0,[\\\"inputmode\\\"]]],[16,\\\"lang\\\",[30,0,[\\\"lang\\\"]]],[16,\\\"list\\\",[30,0,[\\\"list\\\"]]],[16,\\\"max\\\",[30,0,[\\\"max\\\"]]],[16,\\\"min\\\",[30,0,[\\\"min\\\"]]],[16,\\\"multiple\\\",[30,0,[\\\"multiple\\\"]]],[16,3,[30,0,[\\\"name\\\"]]],[16,\\\"pattern\\\",[30,0,[\\\"pattern\\\"]]],[16,\\\"size\\\",[30,0,[\\\"size\\\"]]],[16,\\\"step\\\",[30,0,[\\\"step\\\"]]],[16,\\\"width\\\",[30,0,[\\\"width\\\"]]],[16,\\\"indeterminate\\\",[30,0,[\\\"indeterminate\\\"]]],[17,1],[16,4,[30,0,[\\\"type\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"checked\\\"]]],[16,2,[30,0,[\\\"value\\\"]]],[4,[38,1],[\\\"change\\\",[30,0,[\\\"change\\\"]]],null],[4,[38,1],[\\\"input\\\",[30,0,[\\\"input\\\"]]],null],[4,[38,1],[\\\"keyup\\\",[30,0,[\\\"keyUp\\\"]]],null],[4,[38,1],[\\\"paste\\\",[30,0,[\\\"valueDidChange\\\"]]],null],[4,[38,1],[\\\"cut\\\",[30,0,[\\\"valueDidChange\\\"]]],null],[4,[30,0,[\\\"handleDeprecatedEvents\\\"]],[[30,0]],null],[12],[13]],[]],[[[44,[[50,\\\"-checkbox\\\",0,null,null],[50,\\\"-text-field\\\",0,null,null]],[[[41,[30,0,[\\\"isCheckbox\\\"]],[[[8,[30,2],[[17,1]],[[\\\"@target\\\",\\\"@__ARGS__\\\"],[[30,0,[\\\"caller\\\"]],[30,0,[\\\"args\\\"]]]],null]],[]],[[[8,[30,3],[[17,1]],[[\\\"@target\\\",\\\"@__ARGS__\\\"],[[30,0,[\\\"caller\\\"]],[30,0,[\\\"args\\\"]]]],null]],[]]]],[2,3]]]],[]]]],[\\\"&attrs\\\",\\\"Checkbox\\\",\\\"TextField\\\"],false,[\\\"if\\\",\\\"on\\\",\\\"let\\\",\\\"component\\\"]]\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/input.hbs\",\n  \"isStrictMode\": false\n});\n\nclass InternalModifier {\n  constructor(owner, element, args) {\n    this.owner = owner;\n    this.element = element;\n    this.args = args;\n    setOwner(this, owner);\n  } // Override this\n\n\n  static toString() {\n    return 'internal modifier';\n  }\n\n  install() {}\n\n  remove() {}\n\n  positional(index) {\n    let ref = this.args.positional[index];\n    return ref ? valueForRef(ref) : undefined;\n  }\n\n  named(key) {\n    let ref = this.args.named[key];\n    return ref ? valueForRef(ref) : undefined;\n  }\n\n  toString() {\n    return `<${this.constructor.toString()}:${guidFor(this)}>`;\n  }\n\n}\n\nfunction destructor(modifier) {\n  modifier.remove();\n}\n\nclass InternalModifierState {\n  constructor(instance) {\n    this.instance = instance;\n  }\n\n}\n\nclass InternalModifierManager {\n  constructor(ModifierClass, name) {\n    this.ModifierClass = ModifierClass;\n    this.name = name;\n  }\n\n  create(owner, element, _definition, args) {\n    assert('element must be an HTMLElement', element instanceof HTMLElement);\n    let {\n      ModifierClass\n    } = this;\n    let instance = new ModifierClass(owner, element, args);\n    registerDestructor(instance, destructor);\n    return new InternalModifierState(instance);\n  } // not needed for now, but feel free to implement this\n\n\n  getTag() {\n    return null;\n  }\n\n  getDebugName() {\n    return this.name;\n  }\n\n  install({\n    instance\n  }) {\n    return instance.install();\n  } // not needed for now, but feel free to implement this\n\n\n  update() {\n    assert('update should never be called on an internal modifier');\n  }\n\n  getDestroyable({\n    instance\n  }) {\n    return instance;\n  }\n\n}\n\nfunction NOOP$2() {} // TODO: remove me when IE11 support is EOL\n\n\nlet ObjectEntries = (() => {\n  if (typeof Object.entries === 'function') {\n    return Object.entries;\n  } else {\n    return obj => Object.keys(obj).map(key => [key, obj[key]]);\n  }\n})(); // TODO: remove me when IE11 support is EOL\n\nlet ObjectValues = (() => {\n  if (typeof Object.values === 'function') {\n    return Object.values;\n  } else {\n    return obj => Object.keys(obj).map(key => obj[key]);\n  }\n})();\nclass InternalComponent {\n  constructor(owner, args, caller) {\n    this.owner = owner;\n    this.args = args;\n    this.caller = caller;\n    setOwner(this, owner);\n  } // Override this\n\n\n  static toString() {\n    return 'internal component';\n  }\n  /**\n   * The default HTML id attribute. We don't really _need_ one, this is just\n   * added for compatibility as it's hard to tell if people rely on it being\n   * present, and it doens't really hurt.\n   *\n   * However, don't rely on this internally, like passing it to `getElementId`.\n   * This can be (and often is) overriden by passing an `id` attribute on the\n   * invocation, which shadows this default id via `...attributes`.\n   */\n\n\n  get id() {\n    return guidFor(this);\n  }\n  /**\n   * The default HTML class attribute. Similar to the above, we don't _need_\n   * them, they are just added for compatibility as it's similarly hard to tell\n   * if people rely on it in their CSS etc, and it doens't really hurt.\n   */\n\n\n  get class() {\n    return 'ember-view';\n  }\n\n  validateArguments() {\n    for (let name of Object.keys(this.args.named)) {\n      if (!this.isSupportedArgument(name)) {\n        this.onUnsupportedArgument(name);\n      }\n    }\n  }\n\n  named(name) {\n    let ref = this.args.named[name];\n    return ref ? valueForRef(ref) : undefined;\n  }\n\n  positional(index) {\n    let ref = this.args.positional[index];\n    return ref ? valueForRef(ref) : undefined;\n  }\n\n  listenerFor(name) {\n    let listener = this.named(name);\n\n    if (listener) {\n      assert(`The \\`@${name}\\` argument to the <${this.constructor}> component must be a function`, typeof listener === 'function');\n      return listener;\n    } else {\n      return NOOP$2;\n    }\n  } // eslint-disable-next-line @typescript-eslint/no-unused-vars\n\n\n  isSupportedArgument(_name) {\n    return false;\n  } // eslint-disable-next-line @typescript-eslint/no-unused-vars\n\n\n  onUnsupportedArgument(_name) {}\n\n  toString() {\n    return `<${this.constructor}:${guidFor(this)}>`;\n  }\n\n}\nconst OPAQUE_CONSTRUCTOR_MAP = new WeakMap();\nfunction opaquify(constructor, template) {\n  let _opaque = {\n    // Factory interface\n    create() {\n      throw assert('Use constructor instead of create');\n    },\n\n    toString() {\n      return constructor.toString();\n    }\n\n  };\n  let opaque = _opaque;\n  OPAQUE_CONSTRUCTOR_MAP.set(opaque, constructor);\n  setInternalComponentManager(INTERNAL_COMPONENT_MANAGER, opaque);\n  setComponentTemplate(template, opaque);\n  return opaque;\n}\n\nfunction deopaquify(opaque) {\n  let constructor = OPAQUE_CONSTRUCTOR_MAP.get(opaque);\n  assert(`[BUG] Invalid internal component constructor: ${opaque}`, constructor);\n  return constructor;\n}\n\nconst CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: true,\n  dynamicScope: false,\n  updateHook: false,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\n\nclass InternalManager {\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n\n  create(owner, definition, args, _env, _dynamicScope, caller) {\n    assert('caller must be const', isConstRef(caller));\n    let ComponentClass = deopaquify(definition);\n    let instance = new ComponentClass(owner, args.capture(), valueForRef(caller));\n    untrack(instance['validateArguments'].bind(instance));\n    return instance;\n  }\n\n  didCreate() {}\n\n  didUpdate() {}\n\n  didRenderLayout() {}\n\n  didUpdateLayout() {}\n\n  getDebugName(definition) {\n    return definition.toString();\n  }\n\n  getSelf(instance) {\n    return createConstRef(instance, 'this');\n  }\n\n  getDestroyable(instance) {\n    return instance;\n  }\n\n}\n\nconst INTERNAL_COMPONENT_MANAGER = new InternalManager();\nfunction handleDeprecatedArguments(target) {\n  {\n    let angle = target.toString();\n    let {\n      prototype\n    } = target;\n    let superOnUnsupportedArgument = prototype['onUnsupportedArgument'];\n    Object.defineProperty(prototype, 'onUnsupportedArgument', {\n      configurable: true,\n      enumerable: false,\n      value: function onUnsupportedArgument(name) {\n        deprecate(`Passing the \\`@${name}\\` argument to <${angle}> is deprecated.`, false, {\n          id: 'ember.built-in-components.legacy-arguments',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          },\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-legacy-arguments'\n        });\n        this.modernized = false;\n        superOnUnsupportedArgument.call(this, name);\n      }\n    });\n  }\n}\nfunction handleDeprecatedAttributeArguments(target, bindings) {\n  {\n    let angle = target.toString();\n    let curly = angle.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n    let {\n      prototype\n    } = target;\n\n    let descriptorFor = (target, property) => {\n      if (target) {\n        return Object.getOwnPropertyDescriptor(target, property) || descriptorFor(Object.getPrototypeOf(target), property);\n      } else {\n        return null;\n      }\n    };\n\n    bindings.forEach(binding => {\n      let attribute;\n      let argument;\n\n      if (Array.isArray(binding)) {\n        [attribute, argument] = binding;\n      } else {\n        attribute = argument = binding;\n      }\n\n      let superIsSupportedArgument = prototype['isSupportedArgument'];\n      Object.defineProperty(prototype, 'isSupportedArgument', {\n        configurable: true,\n        enumerable: false,\n        value: function isSupportedArgument(name) {\n          return this.modernized && name === argument || superIsSupportedArgument.call(this, name);\n        }\n      });\n      let superDescriptor = descriptorFor(prototype, attribute);\n\n      let superGetter = () => undefined;\n\n      if (superDescriptor) {\n        assert(`[BUG] expecting ${attribute} to be a getter on <${angle}>`, typeof superDescriptor.get === 'function');\n        superGetter = superDescriptor.get;\n      }\n\n      Object.defineProperty(prototype, attribute, {\n        configurable: true,\n        enumerable: true,\n\n        get() {\n          if (argument in this.args.named) {\n            deprecate(`Passing the \\`@${argument}\\` argument to <${angle}> is deprecated. ` + `Instead, please pass the attribute directly, i.e. \\`<${angle} ${attribute}={{...}} />\\` ` + `instead of \\`<${angle} @${argument}={{...}} />\\` or \\`{{${curly} ${argument}=...}}\\`.`, false, {\n              id: 'ember.built-in-components.legacy-attribute-arguments',\n              for: 'ember-source',\n              since: {\n                enabled: '3.27.0'\n              },\n              until: '4.0.0',\n              url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-legacy-attribute-arguments'\n            }); // The `class` attribute is concatenated/merged instead of clobbered\n\n            if (attribute === 'class' && superDescriptor) {\n              return `${superGetter.call(this)} ${this.named(argument)}`;\n            } else {\n              return this.named(argument);\n            }\n          } else {\n            return superGetter.call(this);\n          }\n        }\n\n      });\n    });\n  }\n}\nlet handleDeprecatedEventArguments = NOOP$2;\n\n{\n  const EVENTS = new WeakMap();\n  const EMPTY_EVENTS = Object.freeze({});\n\n  const getEventsMap = owner => {\n    let events = EVENTS.get(owner);\n\n    if (events === undefined) {\n      events = EMPTY_EVENTS;\n      let eventDispatcher = owner.lookup('event_dispatcher:main');\n\n      if (eventDispatcher !== null && eventDispatcher !== undefined) {\n        assert('[BUG] invalid event dispatcher', typeof eventDispatcher === 'object');\n\n        if ('_finalEvents' in eventDispatcher && eventDispatcher._finalEvents !== null && eventDispatcher._finalEvents !== undefined) {\n          assert('[BUG] invalid _finalEvents on event dispatcher', typeof eventDispatcher._finalEvents === 'object');\n          events = eventDispatcher._finalEvents;\n        }\n      }\n\n      EVENTS.set(owner, events);\n    }\n\n    return events;\n  };\n\n  handleDeprecatedEventArguments = (target, extraEvents = []) => {\n    let angle = target.toString();\n    let curly = angle.toLowerCase();\n    let {\n      prototype\n    } = target;\n    let superIsSupportedArgument = prototype['isSupportedArgument'];\n    Object.defineProperty(prototype, 'isSupportedArgument', {\n      configurable: true,\n      enumerable: false,\n      value: function isSupportedArgument(name) {\n        let events = [...ObjectValues(getEventsMap(this.owner)), 'focus-in', 'focus-out', 'key-press', 'key-up', 'key-down'];\n        return this.modernized && events.indexOf(name) !== -1 || superIsSupportedArgument.call(this, name);\n      }\n    });\n\n    class DeprecatedEventHandlersModifier extends InternalModifier {\n      constructor() {\n        super(...arguments);\n        this.listeners = new Map();\n      }\n\n      static toString() {\n        return 'DeprecatedEventHandlersModifier';\n      }\n\n      install() {\n        let {\n          element,\n          component,\n          listenerFor,\n          listeners\n        } = this;\n        let entries = [...ObjectEntries(getEventsMap(this.owner)), ...extraEvents];\n\n        for (let [event, argument] of entries) {\n          let listener = listenerFor.call(component, event, argument);\n\n          if (listener) {\n            listeners.set(event, listener);\n            element.addEventListener(event, listener);\n          }\n        }\n\n        Object.freeze(listeners);\n      }\n\n      remove() {\n        let {\n          element,\n          listeners\n        } = this;\n\n        for (let [event, listener] of ObjectEntries(listeners)) {\n          element.removeEventListener(event, listener);\n        }\n\n        this.listeners = new Map();\n      }\n\n      get component() {\n        let component = this.positional(0);\n        assert(`[BUG] must pass <${angle}> component as first argument`, component instanceof target);\n        return component;\n      }\n\n      listenerFor(event, argument) {\n        assert(`[BUG] must be called with <${angle}> component as this`, this instanceof target);\n\n        if (argument in this.args.named) {\n          deprecate(`Passing the \\`@${argument}\\` argument to <${angle}> is deprecated. ` + `This would have overwritten the internal \\`${argument}\\` method on ` + `the <${angle}> component and prevented it from functioning properly. ` + `Instead, please use the {{on}} modifier, i.e. \\`<${angle} {{on \"${event}\" ...}} />\\` ` + `instead of \\`<${angle} @${argument}={{...}} />\\` or \\`{{${curly} ${argument}=...}}\\`.`, !(argument in this), {\n            id: 'ember.built-in-components.legacy-attribute-arguments',\n            for: 'ember-source',\n            since: {\n              enabled: '3.27.0'\n            },\n            until: '4.0.0',\n            url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-legacy-attribute-arguments'\n          });\n          deprecate(`Passing the \\`@${argument}\\` argument to <${angle}> is deprecated. ` + `Instead, please use the {{on}} modifier, i.e. \\`<${angle} {{on \"${event}\" ...}} />\\` ` + `instead of \\`<${angle} @${argument}={{...}} />\\` or \\`{{${curly} ${argument}=...}}\\`.`, argument in this, {\n            id: 'ember.built-in-components.legacy-attribute-arguments',\n            for: 'ember-source',\n            since: {\n              enabled: '3.27.0'\n            },\n            until: '4.0.0',\n            url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-legacy-attribute-arguments'\n          });\n          return this['listenerFor'].call(this, argument);\n        } else {\n          return null;\n        }\n      }\n\n    }\n\n    setInternalModifierManager(new InternalModifierManager(DeprecatedEventHandlersModifier, 'deprecated-event-handlers'), DeprecatedEventHandlersModifier);\n    Object.defineProperty(prototype, 'handleDeprecatedEvents', {\n      configurable: true,\n      enumerable: true,\n      value: DeprecatedEventHandlersModifier\n    });\n  };\n}\n\nfunction jQueryEventShim(target) {\n  if (JQUERY_INTEGRATION) {\n    let {\n      prototype\n    } = target;\n    let superListenerFor = prototype['listenerFor'];\n    Object.defineProperty(prototype, 'listenerFor', {\n      configurable: true,\n      enumerable: false,\n      value: function listenerFor(name) {\n        let listener = superListenerFor.call(this, name);\n\n        if (jQuery && !jQueryDisabled) {\n          return event => listener(new jQuery.Event(event));\n        } else {\n          return listener;\n        }\n      }\n    });\n  }\n}\n\nvar __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n  var c = arguments.length,\n      r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n      d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nconst UNINITIALIZED = Object.freeze({});\n\nfunction elementForEvent(event) {\n  assert('[BUG] event target must be an <input> or <textarea> element', event.target instanceof HTMLInputElement || event.target instanceof HTMLTextAreaElement);\n  return event.target;\n}\n\nfunction valueForEvent(event) {\n  return elementForEvent(event).value;\n}\n\nfunction devirtualize(callback) {\n  return event => callback(valueForEvent(event), event);\n}\n\nfunction valueFrom(reference) {\n  if (reference === undefined) {\n    return new LocalValue(undefined);\n  } else if (isConstRef(reference)) {\n    return new LocalValue(valueForRef(reference));\n  } else if (isUpdatableRef(reference)) {\n    return new UpstreamValue(reference);\n  } else {\n    return new ForkedValue(reference);\n  }\n}\n\nclass LocalValue {\n  constructor(value) {\n    this.value = value;\n  }\n\n  get() {\n    return this.value;\n  }\n\n  set(value) {\n    this.value = value;\n  }\n\n}\n\n__decorate([tracked], LocalValue.prototype, \"value\", void 0);\n\nclass UpstreamValue {\n  constructor(reference) {\n    this.reference = reference;\n  }\n\n  get() {\n    return valueForRef(this.reference);\n  }\n\n  set(value) {\n    updateRef(this.reference, value);\n  }\n\n}\n\nclass ForkedValue {\n  constructor(reference) {\n    this.lastUpstreamValue = UNINITIALIZED;\n    this.upstream = new UpstreamValue(reference);\n  }\n\n  get() {\n    let upstreamValue = this.upstream.get();\n\n    if (upstreamValue !== this.lastUpstreamValue) {\n      this.lastUpstreamValue = upstreamValue;\n      this.local = new LocalValue(upstreamValue);\n    }\n\n    assert('[BUG] this.local must have been initialized at this point', this.local);\n    return this.local.get();\n  }\n\n  set(value) {\n    assert('[BUG] this.local must have been initialized at this point', this.local);\n    this.local.set(value);\n  }\n\n}\n\nclass AbstractInput extends InternalComponent {\n  constructor() {\n    super(...arguments);\n    this.modernized = this.shouldModernize();\n    this._value = valueFrom(this.args.named.value);\n  }\n\n  validateArguments() {\n    assert(`The ${this.constructor} component does not take any positional arguments`, this.args.positional.length === 0);\n    super.validateArguments();\n  }\n\n  shouldModernize() {\n    return Boolean(true\n    /* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n    ) && Component._wasReopened === false && TextSupport._wasReopened === false && TargetActionSupport._wasReopened === false;\n  }\n\n  get value() {\n    return this._value.get();\n  }\n\n  set value(value) {\n    this._value.set(value);\n  }\n\n  valueDidChange(event) {\n    this.value = valueForEvent(event);\n  }\n  /**\n   * The `change` and `input` actions need to be overridden in the `Input`\n   * subclass. Unfortunately, some ember-source builds currently uses babel\n   * loose mode to transpile its classes. Having the `@action` decorator on the\n   * super class creates a getter on the prototype, and when the subclass\n   * overrides the method, the loose mode transpilation would emit something\n   * like `Subclass.prototype['change'] = function change() { ... }`, which\n   * fails because `prototype['change']` is getter-only/readonly. The correct\n   * solution is to use `Object.defineProperty(prototype, 'change', ...)` but\n   * that requires disabling loose mode. For now, the workaround is to add the\n   * decorator only on the subclass. This is more of a configuration issue on\n   * our own builds and doesn't really affect apps.\n   */\n\n  /* @action */\n\n\n  change(event) {\n    this.valueDidChange(event);\n  }\n  /* @action */\n\n\n  input(event) {\n    this.valueDidChange(event);\n  }\n\n  keyUp(event) {\n    switch (event.key) {\n      case 'Enter':\n        this.listenerFor('enter')(event);\n        this.listenerFor('insert-newline')(event);\n        break;\n\n      case 'Escape':\n        this.listenerFor('escape-press')(event);\n        break;\n    }\n  }\n\n  listenerFor(name) {\n    let listener = super.listenerFor(name);\n\n    if (this.isVirtualEventListener(name, listener)) {\n      return devirtualize(listener);\n    } else {\n      return listener;\n    }\n  }\n\n  isVirtualEventListener(name, _listener) {\n    let virtualEvents = ['enter', 'insert-newline', 'escape-press'];\n    return virtualEvents.indexOf(name) !== -1;\n  }\n\n}\n\n__decorate([action], AbstractInput.prototype, \"valueDidChange\", null);\n\n__decorate([action], AbstractInput.prototype, \"keyUp\", null);\n\nfunction handleDeprecatedFeatures(target, attributeBindings) {\n  if (SEND_ACTION) {\n    let angle = target.toString();\n    let {\n      prototype\n    } = target;\n\n    let isView = target => {\n      return typeof target.send === 'function';\n    };\n\n    let superListenerFor = prototype['listenerFor'];\n    Object.defineProperty(prototype, 'listenerFor', {\n      configurable: true,\n      enumerable: false,\n      value: function listenerFor(name) {\n        const actionName = this.named(name);\n\n        if (typeof actionName === 'string') {\n          deprecate(`Passing actions to components as strings (like \\`<${angle} @${name}=\"${actionName}\" />\\`) is deprecated. ` + `Please use closure actions instead (\\`<${angle} @${name}={{action \"${actionName}\"}} />\\`).`, false, {\n            id: 'ember-component.send-action',\n            for: 'ember-source',\n            since: {},\n            until: '4.0.0',\n            url: 'https://deprecations.emberjs.com/v3.x#toc_ember-component-send-action'\n          });\n          const {\n            caller\n          } = this;\n          assert('[BUG] missing caller', caller && typeof caller === 'object');\n          let listener;\n\n          if (isView(caller)) {\n            listener = (...args) => caller.send(actionName, ...args);\n          } else {\n            assert(`The action '${actionName}' did not exist on ${caller}`, typeof caller[actionName] === 'function');\n            listener = caller[actionName];\n          }\n\n          let deprecatedListener = (...args) => {\n            deprecate(`Passing actions to components as strings (like \\`<${angle} @${name}=\"${actionName}\" />\\`) is deprecated. ` + `Please use closure actions instead (\\`<${angle} @${name}={{action \"${actionName}\"}} />\\`).`, false, {\n              id: 'ember-component.send-action',\n              for: 'ember-source',\n              since: {},\n              until: '4.0.0',\n              url: 'https://deprecations.emberjs.com/v3.x#toc_ember-component-send-action'\n            });\n            return listener(...args);\n          };\n\n          if (this.isVirtualEventListener(name, deprecatedListener)) {\n            return devirtualize(deprecatedListener);\n          } else {\n            return deprecatedListener;\n          }\n        } else {\n          return superListenerFor.call(this, name);\n        }\n      }\n    });\n  }\n\n  {\n    let {\n      prototype\n    } = target;\n    let virtualEvents = {\n      focusin: 'focus-in',\n      focusout: 'focus-out',\n      keypress: 'key-press',\n      keyup: 'key-up',\n      keydown: 'key-down'\n    };\n    handleDeprecatedArguments(target);\n    handleDeprecatedAttributeArguments(target, attributeBindings);\n    handleDeprecatedEventArguments(target, ObjectEntries(virtualEvents));\n    {\n      let superIsVirtualEventListener = prototype['isVirtualEventListener'];\n      Object.defineProperty(prototype, 'isVirtualEventListener', {\n        configurable: true,\n        enumerable: false,\n        value: function isVirtualEventListener(name, listener) {\n          return ObjectValues(virtualEvents).indexOf(name) !== -1 || superIsVirtualEventListener.call(this, name, listener);\n        }\n      });\n    }\n  }\n\n  if (JQUERY_INTEGRATION) {\n    jQueryEventShim(target);\n  }\n}\n\nvar __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n  var c = arguments.length,\n      r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n      d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nlet isValidInputType;\n\nif (hasDOM && true\n/* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n) {\n  const INPUT_TYPES = Object.create(null);\n  const INPUT_ELEMENT = document.createElement('input');\n  INPUT_TYPES[''] = false;\n  INPUT_TYPES['text'] = true;\n  INPUT_TYPES['checkbox'] = true;\n\n  isValidInputType = type => {\n    let isValid = INPUT_TYPES[type];\n\n    if (isValid === undefined) {\n      try {\n        INPUT_ELEMENT.type = type;\n        isValid = INPUT_ELEMENT.type === type;\n      } catch (e) {\n        isValid = false;\n      } finally {\n        INPUT_ELEMENT.type = 'text';\n      }\n\n      INPUT_TYPES[type] = isValid;\n    }\n\n    return isValid;\n  };\n} else {\n  isValidInputType = type => type !== '';\n}\n/**\n  See [Ember.Templates.components.Input](/ember/release/classes/Ember.Templates.components/methods/Input?anchor=Input).\n\n  @method input\n  @for Ember.Templates.helpers\n  @param {Hash} options\n  @public\n  */\n\n/**\n  The `Input` component lets you create an HTML `<input>` element.\n\n  ```handlebars\n  <Input @value=\"987\" />\n  ```\n\n  creates an `<input>` element with `type=\"text\"` and value set to 987.\n\n  ### Text field\n\n  If no `type` argument is specified, a default of type 'text' is used.\n\n  ```handlebars\n  Search:\n  <Input @value={{this.searchWord}} />\n  ```\n\n  In this example, the initial value in the `<input>` will be set to the value of\n  `this.searchWord`. If the user changes the text, the value of `this.searchWord` will also be\n  updated.\n\n  ### Actions\n\n  The `Input` component takes a number of arguments with callbacks that are invoked in response to\n  user events.\n\n  * `enter`\n  * `insert-newline`\n  * `escape-press`\n  * `focus-in`\n  * `focus-out`\n  * `key-down`\n  * `key-press`\n  * `key-up`\n\n  These callbacks are passed to `Input` like this:\n\n  ```handlebars\n  <Input @value={{this.searchWord}} @enter={{this.query}} />\n  ```\n\n  Starting with Ember Octane, we recommend using the `{{on}}` modifier to call actions\n  on specific events, such as the input event.\n\n  ```handlebars\n  <label for=\"input-name\">Name:</label>\n  <Input\n    @id=\"input-name\"\n    @value={{this.name}}\n    {{on \"input\" this.validateName}}\n  />\n  ```\n\n  The event name (e.g. `focusout`, `input`, `keydown`) always follows the casing\n  that the HTML standard uses.\n\n  ### `<input>` HTML Attributes to Avoid\n\n  In most cases, if you want to pass an attribute to the underlying HTML `<input>` element, you\n  can pass the attribute directly, just like any other Ember component.\n\n  ```handlebars\n  <Input @type=\"text\" size=\"10\" />\n  ```\n\n  In this example, the `size` attribute will be applied to the underlying `<input>` element in the\n  outputted HTML.\n\n  However, there are a few attributes where you **must** use the `@` version.\n\n  * `@type`: This argument is used to control which Ember component is used under the hood\n  * `@value`: The `@value` argument installs a two-way binding onto the element. If you wanted a\n    one-way binding, use `<input>` with the `value` property and the `input` event instead.\n  * `@checked` (for checkboxes): like `@value`, the `@checked` argument installs a two-way binding\n    onto the element. If you wanted a one-way binding, use `<input type=\"checkbox\">` with\n    `checked` and the `input` event instead.\n\n  ### Extending `TextField`\n\n  Internally, `<Input @type=\"text\" />` creates an instance of `TextField`, passing arguments from\n  the helper to `TextField`'s `create` method. Subclassing `TextField` is supported but not\n  recommended.\n\n  See [TextField](/ember/release/classes/TextField)\n\n  ### Checkbox\n\n  To create an `<input type=\"checkbox\">`:\n\n  ```handlebars\n  Emberize Everything:\n  <Input @type=\"checkbox\" @checked={{this.isEmberized}} name=\"isEmberized\" />\n  ```\n\n  This will bind the checked state of this checkbox to the value of `isEmberized` -- if either one\n  changes, it will be reflected in the other.\n\n  ### Extending `Checkbox`\n\n  Internally, `<Input @type=\"checkbox\" />` creates an instance of `Checkbox`. Subclassing\n  `TextField` is supported but not recommended.\n\n  See [Checkbox](/ember/release/classes/Checkbox)\n\n  @method Input\n  @for Ember.Templates.components\n  @see {TextField}\n  @see {Checkbox}\n  @param {Hash} options\n  @public\n*/\n\n\nclass Input extends AbstractInput {\n  constructor() {\n    super(...arguments);\n    this._checked = valueFrom(this.args.named.checked);\n  }\n\n  static toString() {\n    return 'Input';\n  }\n  /**\n   * The HTML class attribute.\n   */\n\n\n  get class() {\n    if (this.isCheckbox) {\n      return 'ember-checkbox ember-view';\n    } else {\n      return 'ember-text-field ember-view';\n    }\n  }\n  /**\n   * The HTML type attribute.\n   */\n\n\n  get type() {\n    let type = this.named('type');\n\n    if (type === null || type === undefined) {\n      return 'text';\n    }\n\n    assert('The `@type` argument to the <Input> component must be a string', typeof type === 'string');\n    return isValidInputType(type) ? type : 'text';\n  }\n\n  get isCheckbox() {\n    return this.named('type') === 'checkbox';\n  }\n\n  get checked() {\n    if (this.isCheckbox) {\n      warn('`<Input @type=\"checkbox\" />` reflects its checked state via the `@checked` argument. ' + 'You wrote `<Input @type=\"checkbox\" @value={{...}} />` which is likely not what you intended. ' + 'Did you mean `<Input @type=\"checkbox\" @checked={{...}} />`?', untrack(() => this.args.named.checked !== undefined || this.args.named.value === undefined || typeof valueForRef(this.args.named.value) === 'string'), {\n        id: 'ember.built-in-components.input-checkbox-value'\n      });\n      return this._checked.get();\n    } else {\n      return undefined;\n    }\n  }\n\n  set checked(checked) {\n    warn('`<Input @type=\"checkbox\" />` reflects its checked state via the `@checked` argument. ' + 'You wrote `<Input @type=\"checkbox\" @value={{...}} />` which is likely not what you intended. ' + 'Did you mean `<Input @type=\"checkbox\" @checked={{...}} />`?', untrack(() => this.args.named.checked !== undefined || this.args.named.value === undefined || typeof valueForRef(this.args.named.value) === 'string'), {\n      id: 'ember.built-in-components.input-checkbox-value'\n    });\n\n    this._checked.set(checked);\n  }\n\n  change(event) {\n    if (this.isCheckbox) {\n      this.checkedDidChange(event);\n    } else {\n      super.change(event);\n    }\n  }\n\n  input(event) {\n    if (!this.isCheckbox) {\n      super.input(event);\n    }\n  }\n\n  checkedDidChange(event) {\n    let element = event.target;\n    assert('[BUG] element must be an <input>', element instanceof HTMLInputElement);\n    this.checked = element.checked;\n  }\n\n  shouldModernize() {\n    return super.shouldModernize() && TextField._wasReopened === false && Checkbox._wasReopened === false;\n  }\n\n  isSupportedArgument(name) {\n    let supportedArguments = ['type', 'value', 'checked', 'enter', 'insert-newline', 'escape-press'];\n    return supportedArguments.indexOf(name) !== -1 || super.isSupportedArgument(name);\n  }\n\n}\n\n__decorate$1([action], Input.prototype, \"change\", null);\n\n__decorate$1([action], Input.prototype, \"input\", null);\n\n__decorate$1([action], Input.prototype, \"checkedDidChange\", null);\n\n{\n  handleDeprecatedFeatures(Input, [// Component\n  'id', ['id', 'elementId'], 'class', ['class', 'classNames'], ['role', 'ariaRole'], // TextSupport\n  'autocapitalize', 'autocorrect', 'autofocus', 'disabled', 'form', 'maxlength', 'minlength', 'placeholder', 'readonly', 'required', 'selectionDirection', 'spellcheck', 'tabindex', 'title', // TextField\n  'accept', 'autocomplete', 'autosave', 'dir', 'formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget', 'height', 'inputmode', 'lang', 'list', 'max', 'min', 'multiple', 'name', 'pattern', 'size', 'step', 'width', // Checkbox\n  'indeterminate']);\n}\n\nvar Input$1 = opaquify(Input, InputTemplate);\n\nvar TextareaTemplate = templateFactory({\n  \"id\": \"mmUstqaU\",\n  \"block\": \"[[[41,[30,0,[\\\"modernized\\\"]],[[[11,\\\"textarea\\\"],[16,1,[30,0,[\\\"id\\\"]]],[16,0,[30,0,[\\\"class\\\"]]],[16,\\\"role\\\",[30,0,[\\\"role\\\"]]],[16,\\\"autocapitalize\\\",[30,0,[\\\"autocapitalize\\\"]]],[16,\\\"autocorrect\\\",[30,0,[\\\"autocorrect\\\"]]],[16,\\\"autofocus\\\",[30,0,[\\\"autofocus\\\"]]],[16,\\\"disabled\\\",[30,0,[\\\"disabled\\\"]]],[16,\\\"form\\\",[30,0,[\\\"form\\\"]]],[16,\\\"maxlength\\\",[30,0,[\\\"maxlength\\\"]]],[16,\\\"minlength\\\",[30,0,[\\\"minlength\\\"]]],[16,\\\"placeholder\\\",[30,0,[\\\"placeholder\\\"]]],[16,\\\"readonly\\\",[30,0,[\\\"readonly\\\"]]],[16,\\\"required\\\",[30,0,[\\\"required\\\"]]],[16,\\\"selectionDirection\\\",[30,0,[\\\"selectionDirection\\\"]]],[16,\\\"spellcheck\\\",[30,0,[\\\"spellcheck\\\"]]],[16,\\\"tabindex\\\",[30,0,[\\\"tabindex\\\"]]],[16,\\\"title\\\",[30,0,[\\\"title\\\"]]],[16,\\\"rows\\\",[30,0,[\\\"rows\\\"]]],[16,\\\"cols\\\",[30,0,[\\\"cols\\\"]]],[16,3,[30,0,[\\\"name\\\"]]],[16,\\\"selectionEnd\\\",[30,0,[\\\"selectionEnd\\\"]]],[16,\\\"selectionStart\\\",[30,0,[\\\"selectionStart\\\"]]],[16,\\\"autocomplete\\\",[30,0,[\\\"autocomplete\\\"]]],[16,\\\"wrap\\\",[30,0,[\\\"wrap\\\"]]],[16,\\\"lang\\\",[30,0,[\\\"lang\\\"]]],[16,\\\"dir\\\",[30,0,[\\\"dir\\\"]]],[17,1],[16,2,[30,0,[\\\"value\\\"]]],[4,[38,1],[\\\"change\\\",[30,0,[\\\"change\\\"]]],null],[4,[38,1],[\\\"input\\\",[30,0,[\\\"input\\\"]]],null],[4,[38,1],[\\\"keyup\\\",[30,0,[\\\"keyUp\\\"]]],null],[4,[38,1],[\\\"paste\\\",[30,0,[\\\"valueDidChange\\\"]]],null],[4,[38,1],[\\\"cut\\\",[30,0,[\\\"valueDidChange\\\"]]],null],[4,[30,0,[\\\"handleDeprecatedEvents\\\"]],[[30,0]],null],[12],[13]],[]],[[[44,[[50,\\\"-textarea\\\",0,null,null]],[[[8,[30,2],[[17,1]],[[\\\"@target\\\",\\\"@__ARGS__\\\"],[[30,0,[\\\"caller\\\"]],[30,0,[\\\"args\\\"]]]],null]],[2]]]],[]]]],[\\\"&attrs\\\",\\\"Textarea\\\"],false,[\\\"if\\\",\\\"on\\\",\\\"let\\\",\\\"component\\\"]]\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/textarea.hbs\",\n  \"isStrictMode\": false\n});\n\nvar __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n  var c = arguments.length,\n      r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n      d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n/**\n  The `Textarea` component inserts a new instance of `<textarea>` tag into the template.\n\n  The `@value` argument provides the content of the `<textarea>`.\n\n  This template:\n\n  ```handlebars\n  <Textarea @value=\"A bunch of text\" />\n  ```\n\n  Would result in the following HTML:\n\n  ```html\n  <textarea class=\"ember-text-area\">\n    A bunch of text\n  </textarea>\n  ```\n\n  The `@value` argument is two-way bound. If the user types text into the textarea, the `@value`\n  argument is updated. If the `@value` argument is updated, the text in the textarea is updated.\n\n  In the following example, the `writtenWords` property on the component will be updated as the user\n  types 'Lots of text' into the text area of their browser's window.\n\n  ```app/components/word-editor.js\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class WordEditorComponent extends Component {\n    @tracked writtenWords = \"Lots of text that IS bound\";\n  }\n  ```\n\n  ```handlebars\n  <Textarea @value={{writtenWords}} />\n  ```\n\n  Would result in the following HTML:\n\n  ```html\n  <textarea class=\"ember-text-area\">\n    Lots of text that IS bound\n  </textarea>\n  ```\n\n  If you wanted a one way binding, you could use the `<textarea>` element directly, and use the\n  `value` DOM property and the `input` event.\n\n  ### Actions\n\n  The `Textarea` component takes a number of arguments with callbacks that are invoked in\n  response to user events.\n\n  * `enter`\n  * `insert-newline`\n  * `escape-press`\n  * `focus-in`\n  * `focus-out`\n  * `key-press`\n\n  These callbacks are passed to `Textarea` like this:\n\n  ```handlebars\n  <Textarea @value={{this.searchWord}} @enter={{this.query}} />\n  ```\n\n  ## Classic Invocation Syntax\n\n  The `Textarea` component can also be invoked using curly braces, just like any other Ember\n  component.\n\n  For example, this is an invocation using angle-bracket notation:\n\n  ```handlebars\n  <Textarea @value={{this.searchWord}} @enter={{this.query}} />\n  ```\n\n  You could accomplish the same thing using classic invocation:\n\n  ```handlebars\n  {{textarea value=this.searchWord enter=this.query}}\n  ```\n\n  The main difference is that angle-bracket invocation supports any HTML attribute using HTML\n  attribute syntax, because attributes and arguments have different syntax when using angle-bracket\n  invocation. Curly brace invocation, on the other hand, only has a single syntax for arguments,\n  and components must manually map attributes onto component arguments.\n\n  When using classic invocation with `{{textarea}}`, only the following attributes are mapped onto\n  arguments:\n\n  * rows\n  * cols\n  * name\n  * selectionEnd\n  * selectionStart\n  * autocomplete\n  * wrap\n  * lang\n  * dir\n  * value\n\n  ## Classic `layout` and `layoutName` properties\n\n  Because HTML `textarea` elements do not contain inner HTML the `layout` and\n  `layoutName` properties will not be applied.\n\n  @method Textarea\n  @for Ember.Templates.components\n  @see {TextArea}\n  @public\n*/\n\n/**\n  See Ember.Templates.components.Textarea.\n\n  @method textarea\n  @for Ember.Templates.helpers\n  @see {Ember.Templates.components.textarea}\n  @public\n*/\n\nclass Textarea extends AbstractInput {\n  static toString() {\n    return 'Textarea';\n  }\n\n  get class() {\n    return 'ember-text-area ember-view';\n  } // See abstract-input.ts for why these are needed\n\n\n  change(event) {\n    super.change(event);\n  }\n\n  input(event) {\n    super.input(event);\n  }\n\n  shouldModernize() {\n    return super.shouldModernize() && TextArea._wasReopened === false;\n  }\n\n  isSupportedArgument(name) {\n    let supportedArguments = ['type', 'value', 'enter', 'insert-newline', 'escape-press'];\n    return supportedArguments.indexOf(name) !== -1 || super.isSupportedArgument(name);\n  }\n\n}\n\n__decorate$2([action], Textarea.prototype, \"change\", null);\n\n__decorate$2([action], Textarea.prototype, \"input\", null); // Deprecated features\n\n\n{\n  handleDeprecatedFeatures(Textarea, [// Component\n  'id', ['id', 'elementId'], 'class', ['class', 'classNames'], ['role', 'ariaRole'], // TextSupport\n  'autocapitalize', 'autocorrect', 'autofocus', 'disabled', 'form', 'maxlength', 'minlength', 'placeholder', 'readonly', 'required', 'selectionDirection', 'spellcheck', 'tabindex', 'title', // TextField\n  'rows', 'cols', 'name', 'selectionEnd', 'selectionStart', 'autocomplete', 'wrap', 'lang', 'dir']);\n}\n\nvar Textarea$1 = opaquify(Textarea, TextareaTemplate);\n\n/**\n@module @ember/component\n*/\nconst RECOMPUTE_TAG = symbol('RECOMPUTE_TAG');\n/**\n  Ember Helpers are functions that can compute values, and are used in templates.\n  For example, this code calls a helper named `format-currency`:\n\n  ```app/templates/application.hbs\n  <Cost @cents={{230}} />\n  ```\n\n  ```app/components/cost.hbs\n  <div>{{format-currency @cents currency=\"$\"}}</div>\n  ```\n\n  Additionally a helper can be called as a nested helper.\n  In this example, we show the formatted currency value if the `showMoney`\n  named argument is truthy.\n\n  ```handlebars\n  {{if @showMoney (format-currency @cents currency=\"$\")}}\n  ```\n\n  Helpers defined using a class must provide a `compute` function. For example:\n\n  ```app/helpers/format-currency.js\n  import Helper from '@ember/component/helper';\n\n  export default class extends Helper {\n    compute([cents], { currency }) {\n      return `${currency}${cents * 0.01}`;\n    }\n  }\n  ```\n\n  Each time the input to a helper changes, the `compute` function will be\n  called again.\n\n  As instances, these helpers also have access to the container and will accept\n  injected dependencies.\n\n  Additionally, class helpers can call `recompute` to force a new computation.\n\n  @class Helper\n  @public\n  @since 1.13.0\n*/\n\nlet Helper = FrameworkObject.extend({\n  init() {\n    this._super(...arguments);\n\n    this[RECOMPUTE_TAG] = createTag();\n  },\n\n  /**\n    On a class-based helper, it may be useful to force a recomputation of that\n    helpers value. This is akin to `rerender` on a component.\n       For example, this component will rerender when the `currentUser` on a\n    session service changes:\n       ```app/helpers/current-user-email.js\n    import Helper from '@ember/component/helper'\n    import { inject as service } from '@ember/service'\n    import { observer } from '@ember/object'\n       export default Helper.extend({\n      session: service(),\n         onNewUser: observer('session.currentUser', function() {\n        this.recompute();\n      }),\n         compute() {\n        return this.get('session.currentUser.email');\n      }\n    });\n    ```\n       @method recompute\n    @public\n    @since 1.13.0\n  */\n  recompute() {\n    join(() => dirtyTag(this[RECOMPUTE_TAG]));\n  }\n\n});\nconst IS_CLASSIC_HELPER = symbol('IS_CLASSIC_HELPER');\nHelper.isHelperFactory = true;\nHelper[IS_CLASSIC_HELPER] = true;\nfunction isClassicHelper(obj) {\n  return obj[IS_CLASSIC_HELPER] === true;\n}\n\nclass ClassicHelperManager {\n  constructor(owner) {\n    this.capabilities = helperCapabilities('3.23', {\n      hasValue: true,\n      hasDestroyable: true\n    });\n    let ownerInjection = {};\n    setOwner(ownerInjection, owner);\n    this.ownerInjection = ownerInjection;\n  }\n\n  createHelper(definition, args) {\n    let instance = definition.class === undefined ? definition.create(this.ownerInjection) : definition.create();\n    return {\n      instance,\n      args\n    };\n  }\n\n  getDestroyable({\n    instance\n  }) {\n    return instance;\n  }\n\n  getValue({\n    instance,\n    args\n  }) {\n    let ret;\n    let {\n      positional,\n      named\n    } = args;\n\n    if (DEBUG) {\n      deprecateMutationsInTrackingTransaction(() => {\n        ret = instance.compute(positional, named);\n      });\n    } else {\n      ret = instance.compute(positional, named);\n    }\n\n    consumeTag(instance[RECOMPUTE_TAG]);\n    return ret;\n  }\n\n  getDebugName(definition) {\n    return getDebugName((definition.class || definition)['prototype']);\n  }\n\n}\n\nsetHelperManager(owner => {\n  return new ClassicHelperManager(owner);\n}, Helper);\nconst CLASSIC_HELPER_MANAGER = getInternalHelperManager(Helper); ///////////\n\nclass Wrapper {\n  constructor(compute) {\n    this.compute = compute;\n    this.isHelperFactory = true;\n  }\n\n  create() {\n    // needs new instance or will leak containers\n    return {\n      compute: this.compute\n    };\n  }\n\n}\n\nclass SimpleClassicHelperManager {\n  constructor() {\n    this.capabilities = helperCapabilities('3.23', {\n      hasValue: true\n    });\n  }\n\n  createHelper(definition, args) {\n    let {\n      compute\n    } = definition;\n\n    if (DEBUG) {\n      return () => {\n        let ret;\n        deprecateMutationsInTrackingTransaction(() => {\n          ret = compute.call(null, args.positional, args.named);\n        });\n        return ret;\n      };\n    }\n\n    return () => compute.call(null, args.positional, args.named);\n  }\n\n  getValue(fn$$1) {\n    return fn$$1();\n  }\n\n  getDebugName(definition) {\n    return getDebugName(definition.compute);\n  }\n\n}\n\nconst SIMPLE_CLASSIC_HELPER_MANAGER = new SimpleClassicHelperManager();\nsetHelperManager(() => SIMPLE_CLASSIC_HELPER_MANAGER, Wrapper.prototype);\n/**\n  In many cases it is not necessary to use the full `Helper` class.\n  The `helper` method create pure-function helpers without instances.\n  For example:\n\n  ```app/helpers/format-currency.js\n  import { helper } from '@ember/component/helper';\n\n  export default helper(function([cents], {currency}) {\n    return `${currency}${cents * 0.01}`;\n  });\n  ```\n\n  @static\n  @param {Function} helper The helper function\n  @method helper\n  @for @ember/component/helper\n  @public\n  @since 1.13.0\n*/\n\nfunction helper(helperFn) {\n  return new Wrapper(helperFn);\n}\n\nfunction instrumentationPayload(def) {\n  return {\n    object: `${def.name}:${def.outlet}`\n  };\n}\n\nconst CAPABILITIES$1 = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: true,\n  updateHook: false,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\n\nclass OutletComponentManager {\n  create(_owner, definition, _args, env, dynamicScope) {\n    let parentStateRef = dynamicScope.get('outletState');\n    let currentStateRef = definition.ref;\n    dynamicScope.set('outletState', currentStateRef);\n    let state = {\n      self: createConstRef(definition.controller, 'this'),\n      finalize: _instrumentStart('render.outlet', instrumentationPayload, definition)\n    };\n\n    if (env.debugRenderTree !== undefined) {\n      state.outlet = {\n        name: definition.outlet\n      };\n      let parentState = valueForRef(parentStateRef);\n      let parentOwner = parentState && parentState.render && parentState.render.owner;\n      let currentOwner = valueForRef(currentStateRef).render.owner;\n\n      if (parentOwner && parentOwner !== currentOwner) {\n        let engine = currentOwner;\n        assert('invalid engine: missing mountPoint', typeof currentOwner.mountPoint === 'string');\n        assert('invalid engine: missing routable', currentOwner.routable === true);\n        let mountPoint = engine.mountPoint;\n        state.engine = engine;\n        state.engineBucket = {\n          mountPoint\n        };\n      }\n    }\n\n    return state;\n  }\n\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n\n  getDebugCustomRenderTree(definition, state, args) {\n    let nodes = [];\n\n    if (state.outlet) {\n      nodes.push({\n        bucket: state.outlet,\n        type: 'outlet',\n        name: state.outlet.name,\n        args: EMPTY_ARGS,\n        instance: undefined,\n        template: undefined\n      });\n    }\n\n    if (state.engineBucket) {\n      nodes.push({\n        bucket: state.engineBucket,\n        type: 'engine',\n        name: state.engineBucket.mountPoint,\n        args: EMPTY_ARGS,\n        instance: state.engine,\n        template: undefined\n      });\n    }\n\n    nodes.push({\n      bucket: state,\n      type: 'route-template',\n      name: definition.name,\n      args: args,\n      instance: definition.controller,\n      template: unwrapTemplate(definition.template).moduleName\n    });\n    return nodes;\n  }\n\n  getCapabilities() {\n    return CAPABILITIES$1;\n  }\n\n  getSelf({\n    self\n  }) {\n    return self;\n  }\n\n  didCreate() {}\n\n  didUpdate() {}\n\n  didRenderLayout(state) {\n    state.finalize();\n  }\n\n  didUpdateLayout() {}\n\n  getDestroyable() {\n    return null;\n  }\n\n}\n\nconst OUTLET_MANAGER = new OutletComponentManager();\nclass OutletComponentDefinition {\n  constructor(state, manager = OUTLET_MANAGER) {\n    this.state = state;\n    this.manager = manager; // handle is not used by this custom definition\n\n    this.handle = -1;\n    let capabilities = manager.getCapabilities();\n    this.capabilities = capabilityFlagsFrom(capabilities);\n    this.compilable = capabilities.wrapped ? unwrapTemplate(state.template).asWrappedLayout() : unwrapTemplate(state.template).asLayout();\n    this.resolvedName = state.name;\n  }\n\n}\nfunction createRootOutlet(outletView) {\n  if (ENV._APPLICATION_TEMPLATE_WRAPPER) {\n    const WRAPPED_CAPABILITIES = assign({}, CAPABILITIES$1, {\n      dynamicTag: true,\n      elementHook: true,\n      wrapped: true\n    });\n    const WrappedOutletComponentManager = class extends OutletComponentManager {\n      getTagName() {\n        return 'div';\n      }\n\n      getCapabilities() {\n        return WRAPPED_CAPABILITIES;\n      }\n\n      didCreateElement(component, element) {\n        // to add GUID id and class\n        element.setAttribute('class', 'ember-view');\n        element.setAttribute('id', guidFor(component));\n      }\n\n    };\n    const WRAPPED_OUTLET_MANAGER = new WrappedOutletComponentManager();\n    return new OutletComponentDefinition(outletView.state, WRAPPED_OUTLET_MANAGER);\n  } else {\n    return new OutletComponentDefinition(outletView.state);\n  }\n}\n\nclass RootComponentManager extends CurlyComponentManager {\n  constructor(component) {\n    super();\n    this.component = component;\n  }\n\n  create(_owner, _state, _args, {\n    isInteractive\n  }, dynamicScope) {\n    let component = this.component;\n\n    let finalizer = _instrumentStart('render.component', initialRenderInstrumentDetails, component);\n\n    dynamicScope.view = component;\n    let hasWrappedElement = component.tagName !== ''; // We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\n\n    if (!hasWrappedElement) {\n      if (isInteractive) {\n        component.trigger('willRender');\n      }\n\n      component._transitionTo('hasElement');\n\n      if (isInteractive) {\n        component.trigger('willInsertElement');\n      }\n    }\n\n    if (DEBUG) {\n      processComponentInitializationAssertions(component, {});\n    }\n\n    let bucket = new ComponentStateBucket(component, null, CONSTANT_TAG, finalizer, hasWrappedElement, isInteractive);\n    consumeTag(component[DIRTY_TAG]);\n    return bucket;\n  }\n\n} // ROOT is the top-level template it has nothing but one yield.\n// it is supposed to have a dummy element\n\n\nconst ROOT_CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: true,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: true,\n  elementHook: true,\n  createCaller: true,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: true,\n  willDestroy: false,\n  hasSubOwner: false\n};\nclass RootComponentDefinition {\n  constructor(component) {\n    // handle is not used by this custom definition\n    this.handle = -1;\n    this.resolvedName = '-top-level';\n    this.capabilities = capabilityFlagsFrom(ROOT_CAPABILITIES);\n    this.compilable = null;\n    this.manager = new RootComponentManager(component);\n    this.state = getFactoryFor(component);\n  }\n\n}\n\n/**\n@module ember\n*/\n/**\n  The `{{#each}}` helper loops over elements in a collection. It is an extension\n  of the base Handlebars `{{#each}}` helper.\n\n  The default behavior of `{{#each}}` is to yield its inner block once for every\n  item in an array passing the item as the first block parameter.\n\n  Assuming the `@developers` argument contains this array:\n\n  ```javascript\n  [{ name: 'Yehuda' },{ name: 'Tom' }, { name: 'Paul' }];\n  ```\n\n  ```handlebars\n  <ul>\n    {{#each @developers as |person|}}\n      <li>Hello, {{person.name}}!</li>\n    {{/each}}\n  </ul>\n  ```\n\n  The same rules apply to arrays of primitives.\n\n  ```javascript\n  ['Yehuda', 'Tom', 'Paul']\n  ```\n\n  ```handlebars\n  <ul>\n    {{#each @developerNames as |name|}}\n      <li>Hello, {{name}}!</li>\n    {{/each}}\n  </ul>\n  ```\n\n  During iteration, the index of each item in the array is provided as a second block\n  parameter.\n\n  ```handlebars\n  <ul>\n    {{#each @developers as |person index|}}\n      <li>Hello, {{person.name}}! You're number {{index}} in line</li>\n    {{/each}}\n  </ul>\n  ```\n\n  ### Specifying Keys\n\n  In order to improve rendering speed, Ember will try to reuse the DOM elements\n  where possible. Specifically, if the same item is present in the array both\n  before and after the change, its DOM output will be reused.\n\n  The `key` option is used to tell Ember how to determine if the items in the\n  array being iterated over with `{{#each}}` has changed between renders. By\n  default the item's object identity is used.\n\n  This is usually sufficient, so in most cases, the `key` option is simply not\n  needed. However, in some rare cases, the objects' identities may change even\n  though they represent the same underlying data.\n\n  For example:\n\n  ```javascript\n  people.map(person => {\n    return { ...person, type: 'developer' };\n  });\n  ```\n\n  In this case, each time the `people` array is `map`-ed over, it will produce\n  an new array with completely different objects between renders. In these cases,\n  you can help Ember determine how these objects related to each other with the\n  `key` option:\n\n  ```handlebars\n  <ul>\n    {{#each @developers key=\"name\" as |person|}}\n      <li>Hello, {{person.name}}!</li>\n    {{/each}}\n  </ul>\n  ```\n\n  By doing so, Ember will use the value of the property specified (`person.name`\n  in the example) to find a \"match\" from the previous render. That is, if Ember\n  has previously seen an object from the `@developers` array with a matching\n  name, its DOM elements will be re-used.\n\n  There are two special values for `key`:\n\n    * `@index` - The index of the item in the array.\n    * `@identity` - The item in the array itself.\n\n  ### {{else}} condition\n\n  `{{#each}}` can have a matching `{{else}}`. The contents of this block will render\n  if the collection is empty.\n\n  ```handlebars\n  <ul>\n    {{#each @developers as |person|}}\n      <li>{{person.name}} is available!</li>\n    {{else}}\n      <li>Sorry, nobody is available for this task.</li>\n    {{/each}}\n  </ul>\n  ```\n\n  @method each\n  @for Ember.Templates.helpers\n  @public\n */\n\n/**\n  The `{{each-in}}` helper loops over properties on an object.\n\n  For example, given this component definition:\n\n  ```app/components/developer-details.js\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class extends Component {\n    @tracked developer = {\n      \"name\": \"Shelly Sails\",\n      \"age\": 42\n    };\n  }\n  ```\n\n  This template would display all properties on the `developer`\n  object in a list:\n\n  ```app/components/developer-details.hbs\n  <ul>\n    {{#each-in this.developer as |key value|}}\n      <li>{{key}}: {{value}}</li>\n    {{/each-in}}\n  </ul>\n  ```\n\n  Outputting their name and age:\n\n  ```html\n  <ul>\n    <li>name: Shelly Sails</li>\n    <li>age: 42</li>\n  </ul>\n  ```\n\n  @method each-in\n  @for Ember.Templates.helpers\n  @public\n  @since 2.1.0\n*/\n\nclass EachInWrapper {\n  constructor(inner) {\n    this.inner = inner;\n  }\n\n}\nvar eachIn = internalHelper(({\n  positional\n}) => {\n  let inner = positional[0];\n  return createComputeRef(() => {\n    let iterable = valueForRef(inner);\n    consumeTag(tagForObject(iterable));\n\n    if (isProxy(iterable)) {\n      // this is because the each-in doesn't actually get(proxy, 'key') but bypasses it\n      // and the proxy's tag is lazy updated on access\n      iterable = _contentFor(iterable);\n    }\n\n    return new EachInWrapper(iterable);\n  });\n});\n\nfunction toIterator(iterable) {\n  if (iterable instanceof EachInWrapper) {\n    return toEachInIterator(iterable.inner);\n  } else {\n    return toEachIterator(iterable);\n  }\n}\n\nfunction toEachInIterator(iterable) {\n  if (!isIndexable(iterable)) {\n    return null;\n  }\n\n  if (Array.isArray(iterable) || isEmberArray(iterable)) {\n    return ObjectIterator.fromIndexable(iterable);\n  } else if (HAS_NATIVE_SYMBOL && isNativeIterable(iterable)) {\n    return MapLikeNativeIterator.from(iterable);\n  } else if (hasForEach(iterable)) {\n    return ObjectIterator.fromForEachable(iterable);\n  } else {\n    return ObjectIterator.fromIndexable(iterable);\n  }\n}\n\nfunction toEachIterator(iterable) {\n  if (!isObject(iterable)) {\n    return null;\n  }\n\n  if (Array.isArray(iterable)) {\n    return ArrayIterator.from(iterable);\n  } else if (isEmberArray(iterable)) {\n    return EmberArrayIterator.from(iterable);\n  } else if (HAS_NATIVE_SYMBOL && isNativeIterable(iterable)) {\n    return ArrayLikeNativeIterator.from(iterable);\n  } else if (hasForEach(iterable)) {\n    return ArrayIterator.fromForEachable(iterable);\n  } else {\n    return null;\n  }\n}\n\nclass BoundedIterator {\n  constructor(length) {\n    this.length = length;\n    this.position = 0;\n  }\n\n  isEmpty() {\n    return false;\n  }\n\n  memoFor(position) {\n    return position;\n  }\n\n  next() {\n    let {\n      length,\n      position\n    } = this;\n\n    if (position >= length) {\n      return null;\n    }\n\n    let value = this.valueFor(position);\n    let memo = this.memoFor(position);\n    this.position++;\n    return {\n      value,\n      memo\n    };\n  }\n\n}\n\nclass ArrayIterator extends BoundedIterator {\n  constructor(array$$1) {\n    super(array$$1.length);\n    this.array = array$$1;\n  }\n\n  static from(iterable) {\n    return iterable.length > 0 ? new this(iterable) : null;\n  }\n\n  static fromForEachable(object) {\n    let array$$1 = [];\n    object.forEach(item => array$$1.push(item));\n    return this.from(array$$1);\n  }\n\n  valueFor(position) {\n    return this.array[position];\n  }\n\n}\n\nclass EmberArrayIterator extends BoundedIterator {\n  constructor(array$$1) {\n    super(array$$1.length);\n    this.array = array$$1;\n  }\n\n  static from(iterable) {\n    return iterable.length > 0 ? new this(iterable) : null;\n  }\n\n  valueFor(position) {\n    return objectAt(this.array, position);\n  }\n\n}\n\nclass ObjectIterator extends BoundedIterator {\n  constructor(keys, values) {\n    super(values.length);\n    this.keys = keys;\n    this.values = values;\n  }\n\n  static fromIndexable(obj) {\n    let keys = Object.keys(obj);\n    let {\n      length\n    } = keys;\n\n    if (length === 0) {\n      return null;\n    } else {\n      let values = [];\n\n      for (let i = 0; i < length; i++) {\n        let value;\n        let key = keys[i];\n        value = obj[key]; // Add the tag of the returned value if it is an array, since arrays\n        // should always cause updates if they are consumed and then changed\n\n        if (isTracking()) {\n          consumeTag(tagFor(obj, key));\n\n          if (Array.isArray(value)) {\n            consumeTag(tagFor(value, '[]'));\n          }\n        }\n\n        values.push(value);\n      }\n\n      return new this(keys, values);\n    }\n  }\n\n  static fromForEachable(obj) {\n    let keys = [];\n    let values = [];\n    let length = 0;\n    let isMapLike = false; // Not using an arrow function here so we can get an accurate `arguments`\n\n    obj.forEach(function (value, key) {\n      isMapLike = isMapLike || arguments.length >= 2;\n\n      if (isMapLike) {\n        keys.push(key);\n      }\n\n      values.push(value);\n      length++;\n    });\n\n    if (length === 0) {\n      return null;\n    } else if (isMapLike) {\n      return new this(keys, values);\n    } else {\n      return new ArrayIterator(values);\n    }\n  }\n\n  valueFor(position) {\n    return this.values[position];\n  }\n\n  memoFor(position) {\n    return this.keys[position];\n  }\n\n}\n\nclass NativeIterator {\n  constructor(iterable, result) {\n    this.iterable = iterable;\n    this.result = result;\n    this.position = 0;\n  }\n\n  static from(iterable) {\n    let iterator = iterable[Symbol.iterator]();\n    let result = iterator.next();\n    let {\n      done\n    } = result;\n\n    if (done) {\n      return null;\n    } else {\n      return new this(iterator, result);\n    }\n  }\n\n  isEmpty() {\n    return false;\n  }\n\n  next() {\n    let {\n      iterable,\n      result,\n      position\n    } = this;\n\n    if (result.done) {\n      return null;\n    }\n\n    let value = this.valueFor(result, position);\n    let memo = this.memoFor(result, position);\n    this.position++;\n    this.result = iterable.next();\n    return {\n      value,\n      memo\n    };\n  }\n\n}\n\nclass ArrayLikeNativeIterator extends NativeIterator {\n  valueFor(result) {\n    return result.value;\n  }\n\n  memoFor(_result, position) {\n    return position;\n  }\n\n}\n\nclass MapLikeNativeIterator extends NativeIterator {\n  valueFor(result) {\n    return result.value[1];\n  }\n\n  memoFor(result) {\n    return result.value[0];\n  }\n\n}\n\nfunction hasForEach(value) {\n  return typeof value['forEach'] === 'function';\n}\n\nfunction isNativeIterable(value) {\n  return typeof value[Symbol.iterator] === 'function';\n}\n\nfunction isIndexable(value) {\n  return value !== null && (typeof value === 'object' || typeof value === 'function');\n}\n\nfunction toBool(predicate) {\n  if (isProxy(predicate)) {\n    consumeTag(tagForProperty(predicate, 'content'));\n    return Boolean(get(predicate, 'isTruthy'));\n  } else if (isArray(predicate)) {\n    consumeTag(tagForProperty(predicate, '[]'));\n    return predicate.length !== 0;\n  } else if (isHTMLSafe(predicate)) {\n    return Boolean(predicate.toString());\n  } else {\n    return Boolean(predicate);\n  }\n}\n\n// Setup global context\n\nsetGlobalContext({\n  scheduleRevalidate() {\n    _backburner.ensureInstance();\n  },\n\n  toBool,\n  toIterator,\n  getProp: _getProp,\n  setProp: _setProp,\n  getPath: get,\n  setPath: set,\n\n  scheduleDestroy(destroyable, destructor) {\n    schedule('actions', null, destructor, destroyable);\n  },\n\n  scheduleDestroyed(finalizeDestructor) {\n    schedule('destroy', null, finalizeDestructor);\n  },\n\n  warnIfStyleNotTrusted(value) {\n    warn(constructStyleDeprecationMessage(value), (() => {\n      if (value === null || value === undefined || isHTMLSafe$1(value)) {\n        return true;\n      }\n\n      return false;\n    })(), {\n      id: 'ember-htmlbars.style-xss-warning'\n    });\n  },\n\n  assert(test, msg, options) {\n    var _a;\n\n    if (DEBUG) {\n      let id = options === null || options === void 0 ? void 0 : options.id;\n      let override = VM_ASSERTION_OVERRIDES.filter(o => o.id === id)[0];\n      assert((_a = override === null || override === void 0 ? void 0 : override.message) !== null && _a !== void 0 ? _a : msg, test);\n    }\n  },\n\n  deprecate(msg, test, options) {\n    var _a;\n\n    if (DEBUG) {\n      let {\n        id\n      } = options;\n      let override = VM_DEPRECATION_OVERRIDES.filter(o => o.id === id)[0];\n      if (!override) throw new Error(`deprecation override for ${id} not found`); // allow deprecations to be disabled in the VM_DEPRECATION_OVERRIDES array below\n\n      if (!override.disabled) {\n        deprecate((_a = override.message) !== null && _a !== void 0 ? _a : msg, Boolean(test), override);\n      }\n    }\n  }\n\n});\n\nif (DEBUG) {\n  setTrackingTransactionEnv === null || setTrackingTransactionEnv === void 0 ? void 0 : setTrackingTransactionEnv({\n    debugMessage(obj, keyName) {\n      let dirtyString = keyName ? `\\`${keyName}\\` on \\`${getDebugName === null || getDebugName === void 0 ? void 0 : getDebugName(obj)}\\`` : `\\`${getDebugName === null || getDebugName === void 0 ? void 0 : getDebugName(obj)}\\``;\n      return `You attempted to update ${dirtyString}, but it had already been used previously in the same computation.  Attempting to update a value after using it in a computation can cause logical errors, infinite revalidation bugs, and performance issues, and is not supported.`;\n    }\n\n  });\n} ///////////\n// VM Assertion/Deprecation overrides\n\n\nconst VM_DEPRECATION_OVERRIDES = [{\n  id: 'autotracking.mutation-after-consumption',\n  until: '4.0.0',\n  for: 'ember-source',\n  since: {\n    enabled: '3.21.0'\n  }\n}, {\n  id: 'this-property-fallback',\n  disabled: ENV._DISABLE_PROPERTY_FALLBACK_DEPRECATION,\n  url: 'https://deprecations.emberjs.com/v3.x#toc_this-property-fallback',\n  until: '4.0.0',\n  for: 'ember-source',\n  since: {\n    enabled: '3.26.0'\n  }\n}, {\n  id: 'argument-less-helper-paren-less-invocation',\n  url: 'https://deprecations.emberjs.com/v3.x#toc_argument-less-helper-paren-less-invocation',\n  until: '4.0.0',\n  for: 'ember-source',\n  since: {\n    enabled: '3.27.0'\n  }\n}, {\n  id: 'setting-on-hash',\n  until: '4.4.0',\n  for: 'ember-source',\n  since: {\n    enabled: '3.28.0'\n  }\n}];\nconst VM_ASSERTION_OVERRIDES = []; ///////////\n// Define environment delegate\n\nclass EmberEnvironmentDelegate {\n  constructor(owner, isInteractive) {\n    this.owner = owner;\n    this.isInteractive = isInteractive;\n    this.enableDebugTooling = ENV._DEBUG_RENDER_TREE;\n  }\n\n  onTransactionCommit() {}\n\n}\n\n/**\n@module ember\n*/\nvar disallowDynamicResolution = internalHelper(({\n  positional,\n  named\n}) => {\n  assert(`[BUG] wrong number of positional arguments, expecting 1, got ${positional.length}`, positional.length === 1);\n  let nameOrValueRef = positional[0];\n  assert(`[BUG] expecting \\`type\\` named argument`, 'type' in named);\n  assert(`[BUG] expecting \\`loc\\` named argument`, 'loc' in named);\n  assert(`[BUG] expecting \\`original\\` named argument`, 'original' in named);\n  let typeRef = named.type;\n  let locRef = named.loc;\n  let originalRef = named.original; // Bug: why do these fail?\n  // assert('[BUG] expecting a string literal for the `type` argument', isConstRef(typeRef));\n  // assert('[BUG] expecting a string literal for the `loc` argument', isConstRef(locRef));\n  // assert('[BUG] expecting a string literal for the `original` argument', isConstRef(originalRef));\n\n  const type = valueForRef(typeRef);\n  const loc$$1 = valueForRef(locRef);\n  const original = valueForRef(originalRef);\n  assert('[BUG] expecting a string literal for the `type` argument', typeof type === 'string');\n  assert('[BUG] expecting a string literal for the `loc` argument', typeof loc$$1 === 'string');\n  assert('[BUG] expecting a string literal for the `original` argument', typeof original === 'string');\n  return createComputeRef(() => {\n    let nameOrValue = valueForRef(nameOrValueRef);\n    assert(`Passing a dynamic string to the \\`(${type})\\` keyword is disallowed. ` + `(You specified \\`(${type} ${original})\\` and \\`${original}\\` evaluated into \"${nameOrValue}\".) ` + `This ensures we can statically analyze the template and determine which ${type}s are used. ` + `If the ${type} name is always the same, use a string literal instead, i.e. \\`(${type} \"${nameOrValue}\")\\`. ` + `Otherwise, import the ${type}s into JavaScript and pass them to the ${type} keyword. ` + 'See https://github.com/emberjs/rfcs/blob/master/text/0496-handlebars-strict-mode.md#4-no-dynamic-resolution for details. ' + loc$$1, typeof nameOrValue !== 'string');\n    return nameOrValue;\n  });\n});\n\nlet helper$1;\n\nif (DEBUG) {\n  helper$1 = args => {\n    let inner = args.positional[0];\n    return createComputeRef(() => {\n      let value = valueForRef(inner);\n      assert('You cannot pass a null or undefined destination element to in-element', value !== null && value !== undefined);\n      return value;\n    });\n  };\n} else {\n  helper$1 = args => args.positional[0];\n}\n\nvar inElementNullCheckHelper = internalHelper(helper$1);\n\nvar normalizeClassHelper = internalHelper(({\n  positional\n}) => {\n  return createComputeRef(() => {\n    let classNameParts = valueForRef(positional[0]).split('.');\n    let className = classNameParts[classNameParts.length - 1];\n    let value = valueForRef(positional[1]);\n\n    if (value === true) {\n      return dasherize(className);\n    } else if (!value && value !== 0) {\n      return '';\n    } else {\n      return String(value);\n    }\n  });\n});\n\nvar resolve = internalHelper(({\n  positional\n}, owner) => {\n  var _a; // why is this allowed to be undefined in the first place?\n\n\n  assert('[BUG] missing owner', owner);\n  assert(`[BUG] wrong number of positional arguments, expecting 1, got ${positional.length}`, positional.length === 1);\n  let fullNameRef = positional[0];\n  assert('[BUG] expecting a string literal as argument', isConstRef(fullNameRef));\n  let fullName = valueForRef(fullNameRef);\n  assert('[BUG] expecting a string literal as argument', typeof fullName === 'string');\n  assert('[BUG] expecting a valid full name', fullName.split(':').length === 2);\n\n  if (DEBUG) {\n    let [type, name] = fullName.split(':');\n    assert(`Attempted to invoke \\`(-resolve \"${fullName}\")\\`, but ${name} was not a valid ${type} name.`, owner.hasRegistration(fullName));\n  }\n\n  return createConstRef((_a = owner.factoryFor(fullName)) === null || _a === void 0 ? void 0 : _a.class, `(-resolve \"${fullName}\")`);\n});\n\n/**\n@module ember\n*/\n/**\n  This reference is used to get the `[]` tag of iterables, so we can trigger\n  updates to `{{each}}` when it changes. It is put into place by a template\n  transform at build time, similar to the (-each-in) helper\n*/\n\nvar trackArray = internalHelper(({\n  positional\n}) => {\n  let inner = positional[0];\n  return createComputeRef(() => {\n    let iterable = valueForRef(inner);\n\n    if (isObject(iterable)) {\n      consumeTag(tagForProperty(iterable, '[]'));\n    }\n\n    return iterable;\n  });\n});\n\n/**\n@module ember\n*/\n/**\n  The `mut` helper lets you __clearly specify__ that a child `Component` can update the\n  (mutable) value passed to it, which will __change the value of the parent component__.\n\n  To specify that a parameter is mutable, when invoking the child `Component`:\n\n  ```handlebars\n  <MyChild @childClickCount={{fn (mut totalClicks)}} />\n  ```\n\n   or\n\n  ```handlebars\n  {{my-child childClickCount=(mut totalClicks)}}\n  ```\n\n  The child `Component` can then modify the parent's value just by modifying its own\n  property:\n\n  ```javascript\n  // my-child.js\n  export default Component.extend({\n    click() {\n      this.incrementProperty('childClickCount');\n    }\n  });\n  ```\n\n  Note that for curly components (`{{my-component}}`) the bindings are already mutable,\n  making the `mut` unnecessary.\n\n  Additionally, the `mut` helper can be combined with the `fn` helper to\n  mutate a value. For example:\n\n  ```handlebars\n  <MyChild @childClickCount={{this.totalClicks}} @click-count-change={{fn (mut totalClicks))}} />\n  ```\n\n  or\n\n  ```handlebars\n  {{my-child childClickCount=totalClicks click-count-change=(fn (mut totalClicks))}}\n  ```\n\n  The child `Component` would invoke the function with the new click value:\n\n  ```javascript\n  // my-child.js\n  export default Component.extend({\n    click() {\n      this.get('click-count-change')(this.get('childClickCount') + 1);\n    }\n  });\n  ```\n\n  The `mut` helper changes the `totalClicks` value to what was provided as the `fn` argument.\n\n  The `mut` helper, when used with `fn`, will return a function that\n  sets the value passed to `mut` to its first argument. As an example, we can create a\n  button that increments a value passing the value directly to the `fn`:\n\n  ```handlebars\n  {{! inc helper is not provided by Ember }}\n  <button onclick={{fn (mut count) (inc count)}}>\n    Increment count\n  </button>\n  ```\n\n  @method mut\n  @param {Object} [attr] the \"two-way\" attribute that can be modified.\n  @for Ember.Templates.helpers\n  @public\n*/\n\nvar mut = internalHelper(({\n  positional\n}) => {\n  let ref = positional[0]; // TODO: Improve this error message. This covers at least two distinct\n  // cases:\n  //\n  // 1. (mut \"not a path\") – passing a literal, result from a helper\n  //    invocation, etc\n  //\n  // 2. (mut receivedValue) – passing a value received from the caller\n  //    that was originally derived from a literal, result from a helper\n  //    invocation, etc\n  //\n  // This message is alright for the first case, but could be quite\n  // confusing for the second case.\n\n  assert('You can only pass a path to mut', isUpdatableRef(ref));\n  return createInvokableRef(ref);\n});\n\n/**\n@module ember\n*/\n/**\n  This is a helper to be used in conjunction with the link-to helper.\n  It will supply url query parameters to the target route.\n\n  @example In this example we are setting the `direction` query param to the value `\"asc\"`\n\n  ```app/templates/application.hbs\n  <LinkTo\n    @route=\"posts\"\n    {{query-params direction=\"asc\"}}\n  >\n    Sort\n  </LinkTo>\n  ```\n\n  @method query-params\n  @for Ember.Templates.helpers\n  @param {Object} hash takes a hash of query parameters\n  @return {Object} A `QueryParams` object for `{{link-to}}`\n  @public\n*/\n\nvar queryParams = internalHelper(({\n  positional,\n  named\n}) => {\n  return createComputeRef(() => {\n    assert(\"The `query-params` helper only accepts named arguments, e.g. (query-params queryParamPropertyName='foo') as opposed to (query-params 'foo')\", positional.length === 0);\n    deprecate('The `query-params` helper is deprecated. Invoke `<LinkTo>` with the `@query` named argument and the `hash` helper instead.', false, {\n      id: 'ember-glimmer.link-to.positional-arguments',\n      until: '4.0.0',\n      for: 'ember-source',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_ember-glimmer-link-to-positional-arguments',\n      since: {\n        enabled: '3.26.0-beta.1'\n      }\n    });\n    return new QueryParams(assign({}, reifyNamed(named)));\n  });\n});\n\n/**\n  The `readonly` helper let's you specify that a binding is one-way only,\n  instead of two-way.\n  When you pass a `readonly` binding from an outer context (e.g. parent component),\n  to to an inner context (e.g. child component), you are saying that changing that\n  property in the inner context does not change the value in the outer context.\n\n  To specify that a binding is read-only, when invoking the child `Component`:\n\n  ```app/components/my-parent.js\n  export default Component.extend({\n    totalClicks: 3\n  });\n  ```\n\n  ```app/templates/components/my-parent.hbs\n  {{log totalClicks}} // -> 3\n  <MyChild @childClickCount={{readonly totalClicks}} />\n  ```\n  ```\n  {{my-child childClickCount=(readonly totalClicks)}}\n  ```\n\n  Now, when you update `childClickCount`:\n\n  ```app/components/my-child.js\n  export default Component.extend({\n    click() {\n      this.incrementProperty('childClickCount');\n    }\n  });\n  ```\n\n  The value updates in the child component, but not the parent component:\n\n  ```app/templates/components/my-child.hbs\n  {{log childClickCount}} //-> 4\n  ```\n\n  ```app/templates/components/my-parent.hbs\n  {{log totalClicks}} //-> 3\n  <MyChild @childClickCount={{readonly totalClicks}} />\n  ```\n  or\n  ```app/templates/components/my-parent.hbs\n  {{log totalClicks}} //-> 3\n  {{my-child childClickCount=(readonly totalClicks)}}\n  ```\n\n  ### Objects and Arrays\n\n  When passing a property that is a complex object (e.g. object, array) instead of a primitive object (e.g. number, string),\n  only the reference to the object is protected using the readonly helper.\n  This means that you can change properties of the object both on the parent component, as well as the child component.\n  The `readonly` binding behaves similar to the `const` keyword in JavaScript.\n\n  Let's look at an example:\n\n  First let's set up the parent component:\n\n  ```app/components/my-parent.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    clicks: null,\n\n    init() {\n      this._super(...arguments);\n      this.set('clicks', { total: 3 });\n    }\n  });\n  ```\n\n  ```app/templates/components/my-parent.hbs\n  {{log clicks.total}} //-> 3\n  <MyChild @childClicks={{readonly clicks}} />\n  ```\n  ```app/templates/components/my-parent.hbs\n  {{log clicks.total}} //-> 3\n  {{my-child childClicks=(readonly clicks)}}\n  ```\n\n  Now, if you update the `total` property of `childClicks`:\n\n  ```app/components/my-child.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    click() {\n      this.get('clicks').incrementProperty('total');\n    }\n  });\n  ```\n\n  You will see the following happen:\n\n  ```app/templates/components/my-parent.hbs\n  {{log clicks.total}} //-> 4\n  <MyChild @childClicks={{readonly clicks}} />\n  ```\n  or\n  ```app/templates/components/my-parent.hbs\n  {{log clicks.total}} //-> 4\n  {{my-child childClicks=(readonly clicks)}}\n  ```\n\n  ```app/templates/components/my-child.hbs\n  {{log childClicks.total}} //-> 4\n  ```\n\n  @method readonly\n  @param {Object} [attr] the read-only attribute.\n  @for Ember.Templates.helpers\n  @private\n*/\n\nvar readonly = internalHelper(({\n  positional\n}) => {\n  return createReadOnlyRef(positional[0]);\n});\n\n/**\n@module ember\n*/\n/**\n  The `{{unbound}}` helper disconnects the one-way binding of a property,\n  essentially freezing its value at the moment of rendering. For example,\n  in this example the display of the variable `name` will not change even\n  if it is set with a new value:\n\n  ```handlebars\n  {{unbound this.name}}\n  ```\n\n  Like any helper, the `unbound` helper can accept a nested helper expression.\n  This allows for custom helpers to be rendered unbound:\n\n  ```handlebars\n  {{unbound (some-custom-helper)}}\n  {{unbound (capitalize this.name)}}\n  {{! You can use any helper, including unbound, in a nested expression }}\n  {{capitalize (unbound this.name)}}\n  ```\n\n  The `unbound` helper only accepts a single argument, and it return an\n  unbound value.\n\n  @method unbound\n  @for Ember.Templates.helpers\n  @public\n*/\n\nvar unbound = internalHelper(({\n  positional,\n  named\n}) => {\n  assert('unbound helper cannot be called with multiple params or hash params', positional.length === 1 && Object.keys(named).length === 0);\n  return createUnboundRef(valueForRef(positional[0]), '(resurt of an `unbound` helper)');\n});\n\nconst MODIFIERS = ['alt', 'shift', 'meta', 'ctrl'];\nconst POINTER_EVENT_TYPE_REGEX = /^click|mouse|touch/;\n\nfunction isAllowedEvent(event, allowedKeys) {\n  if (allowedKeys === null || allowedKeys === undefined) {\n    if (POINTER_EVENT_TYPE_REGEX.test(event.type)) {\n      return isSimpleClick(event);\n    } else {\n      allowedKeys = '';\n    }\n  }\n\n  if (allowedKeys.indexOf('any') >= 0) {\n    return true;\n  }\n\n  for (let i = 0; i < MODIFIERS.length; i++) {\n    if (event[MODIFIERS[i] + 'Key'] && allowedKeys.indexOf(MODIFIERS[i]) === -1) {\n      return false;\n    }\n  }\n\n  return true;\n}\n\nlet ActionHelper = {\n  // registeredActions is re-exported for compatibility with older plugins\n  // that were using this undocumented API.\n  registeredActions: ActionManager.registeredActions,\n\n  registerAction(actionState) {\n    let {\n      actionId\n    } = actionState;\n    ActionManager.registeredActions[actionId] = actionState;\n    return actionId;\n  },\n\n  unregisterAction(actionState) {\n    let {\n      actionId\n    } = actionState;\n    delete ActionManager.registeredActions[actionId];\n  }\n\n};\nclass ActionState {\n  constructor(element, actionId, actionArgs, namedArgs, positionalArgs) {\n    this.tag = createUpdatableTag();\n    this.element = element;\n    this.actionId = actionId;\n    this.actionArgs = actionArgs;\n    this.namedArgs = namedArgs;\n    this.positional = positionalArgs;\n    this.eventName = this.getEventName();\n    registerDestructor(this, () => ActionHelper.unregisterAction(this));\n  }\n\n  getEventName() {\n    let {\n      on: on$$1\n    } = this.namedArgs;\n    return on$$1 !== undefined ? valueForRef(on$$1) : 'click';\n  }\n\n  getActionArgs() {\n    let result = new Array(this.actionArgs.length);\n\n    for (let i = 0; i < this.actionArgs.length; i++) {\n      result[i] = valueForRef(this.actionArgs[i]);\n    }\n\n    return result;\n  }\n\n  getTarget() {\n    let {\n      implicitTarget,\n      namedArgs\n    } = this;\n    let {\n      target\n    } = namedArgs;\n    return target !== undefined ? valueForRef(target) : valueForRef(implicitTarget);\n  }\n\n  handler(event) {\n    let {\n      actionName,\n      namedArgs\n    } = this;\n    let {\n      bubbles,\n      preventDefault,\n      allowedKeys\n    } = namedArgs;\n    let bubblesVal = bubbles !== undefined ? valueForRef(bubbles) : undefined;\n    let preventDefaultVal = preventDefault !== undefined ? valueForRef(preventDefault) : undefined;\n    let allowedKeysVal = allowedKeys !== undefined ? valueForRef(allowedKeys) : undefined;\n    let target = this.getTarget();\n    let shouldBubble = bubblesVal !== false;\n\n    if (!isAllowedEvent(event, allowedKeysVal)) {\n      return true;\n    }\n\n    if (preventDefaultVal !== false) {\n      event.preventDefault();\n    }\n\n    if (!shouldBubble) {\n      event.stopPropagation();\n    }\n\n    join(() => {\n      let args = this.getActionArgs();\n      let payload = {\n        args,\n        target,\n        name: null\n      };\n\n      if (typeof actionName[INVOKE] === 'function') {\n        deprecate(`Usage of the private INVOKE API to make an object callable via action or fn is no longer supported. Please update to pass in a callback function instead. Received: ${String(actionName)}`, false, {\n          until: '3.25.0',\n          id: 'actions.custom-invoke-invokable',\n          for: 'ember-source',\n          since: {\n            enabled: '3.23.0-beta.1'\n          }\n        });\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          actionName[INVOKE].apply(actionName, args);\n        });\n        return;\n      }\n\n      if (isInvokableRef(actionName)) {\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          updateRef(actionName, args[0]);\n        });\n        return;\n      }\n\n      if (typeof actionName === 'function') {\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          actionName.apply(target, args);\n        });\n        return;\n      }\n\n      payload.name = actionName;\n\n      if (target.send) {\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          target.send.apply(target, [actionName, ...args]);\n        });\n      } else {\n        assert(`The action '${actionName}' did not exist on ${target}`, typeof target[actionName] === 'function');\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          target[actionName].apply(target, args);\n        });\n      }\n    });\n    return shouldBubble;\n  }\n\n}\n\nclass ActionModifierManager {\n  create(_owner, element, _state, {\n    named,\n    positional\n  }) {\n    let actionArgs = []; // The first two arguments are (1) `this` and (2) the action name.\n    // Everything else is a param.\n\n    for (let i = 2; i < positional.length; i++) {\n      actionArgs.push(positional[i]);\n    }\n\n    let actionId = uuid();\n    let actionState = new ActionState(element, actionId, actionArgs, named, positional);\n    deprecate(`Using the \\`{{action}}\\` modifier with \\`${actionState.eventName}\\` events has been deprecated.`, actionState.eventName !== 'mouseEnter' && actionState.eventName !== 'mouseLeave' && actionState.eventName !== 'mouseMove', {\n      id: 'ember-views.event-dispatcher.mouseenter-leave-move',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_action-mouseenter-leave-move',\n      for: 'ember-source',\n      since: {\n        enabled: '3.13.0-beta.1'\n      }\n    });\n    return actionState;\n  }\n\n  getDebugName() {\n    return 'action';\n  }\n\n  install(actionState) {\n    let {\n      element,\n      actionId,\n      positional\n    } = actionState;\n    let actionName;\n    let actionNameRef;\n    let implicitTarget;\n\n    if (positional.length > 1) {\n      implicitTarget = positional[0];\n      actionNameRef = positional[1];\n\n      if (isInvokableRef(actionNameRef)) {\n        actionName = actionNameRef;\n      } else {\n        actionName = valueForRef(actionNameRef);\n\n        if (DEBUG) {\n          let actionPath = actionNameRef.debugLabel;\n          let actionPathParts = actionPath.split('.');\n          let actionLabel = actionPathParts[actionPathParts.length - 1];\n          assert('You specified a quoteless path, `' + actionPath + '`, to the ' + '{{action}} helper which did not resolve to an action name (a ' + 'string). Perhaps you meant to use a quoted actionName? (e.g. ' + '{{action \"' + actionLabel + '\"}}).', typeof actionName === 'string' || typeof actionName === 'function');\n        }\n      }\n    }\n\n    actionState.actionName = actionName;\n    actionState.implicitTarget = implicitTarget;\n    ActionHelper.registerAction(actionState);\n    element.setAttribute('data-ember-action', '');\n    element.setAttribute(`data-ember-action-${actionId}`, String(actionId));\n  }\n\n  update(actionState) {\n    let {\n      positional\n    } = actionState;\n    let actionNameRef = positional[1];\n\n    if (!isInvokableRef(actionNameRef)) {\n      actionState.actionName = valueForRef(actionNameRef);\n    }\n\n    actionState.eventName = actionState.getEventName();\n  }\n\n  getTag(actionState) {\n    return actionState.tag;\n  }\n\n  getDestroyable(actionState) {\n    return actionState;\n  }\n\n}\n\nconst ACTION_MODIFIER_MANAGER = new ActionModifierManager();\nvar actionModifier = setInternalModifierManager(ACTION_MODIFIER_MANAGER, {});\n\nconst CAPABILITIES$2 = {\n  dynamicLayout: true,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: true,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: true\n};\n\nclass MountManager {\n  getDynamicLayout(state) {\n    let templateFactory$$1 = state.engine.lookup('template:application');\n    return unwrapTemplate(templateFactory$$1(state.engine)).asLayout();\n  }\n\n  getCapabilities() {\n    return CAPABILITIES$2;\n  }\n\n  getOwner(state) {\n    return state.engine;\n  }\n\n  create(owner, {\n    name\n  }, args, env) {\n    // TODO\n    // mount is a runtime helper, this shouldn't use dynamic layout\n    // we should resolve the engine app template in the helper\n    // it also should use the owner that looked up the mount helper.\n    let engine = owner.buildChildEngineInstance(name);\n    engine.boot();\n    let applicationFactory = engine.factoryFor(`controller:application`);\n    let controllerFactory = applicationFactory || generateControllerFactory(engine, 'application');\n    let controller;\n    let self;\n    let bucket;\n    let modelRef;\n\n    if (args.named.has('model')) {\n      modelRef = args.named.get('model');\n    }\n\n    if (modelRef === undefined) {\n      controller = controllerFactory.create();\n      self = createConstRef(controller, 'this');\n      bucket = {\n        engine,\n        controller,\n        self,\n        modelRef\n      };\n    } else {\n      let model = valueForRef(modelRef);\n      controller = controllerFactory.create({\n        model\n      });\n      self = createConstRef(controller, 'this');\n      bucket = {\n        engine,\n        controller,\n        self,\n        modelRef\n      };\n    }\n\n    if (env.debugRenderTree) {\n      associateDestroyableChild(engine, controller);\n    }\n\n    return bucket;\n  }\n\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n\n  getDebugCustomRenderTree(definition, state, args, templateModuleName) {\n    return [{\n      bucket: state.engine,\n      instance: state.engine,\n      type: 'engine',\n      name: definition.name,\n      args\n    }, {\n      bucket: state.controller,\n      instance: state.controller,\n      type: 'route-template',\n      name: 'application',\n      args,\n      template: templateModuleName\n    }];\n  }\n\n  getSelf({\n    self\n  }) {\n    return self;\n  }\n\n  getDestroyable(bucket) {\n    return bucket.engine;\n  }\n\n  didCreate() {}\n\n  didUpdate() {}\n\n  didRenderLayout() {}\n\n  didUpdateLayout() {}\n\n  update(bucket) {\n    let {\n      controller,\n      modelRef\n    } = bucket;\n\n    if (modelRef !== undefined) {\n      controller.set('model', valueForRef(modelRef));\n    }\n  }\n\n}\n\nconst MOUNT_MANAGER = new MountManager();\nclass MountDefinition {\n  constructor(resolvedName) {\n    this.resolvedName = resolvedName; // handle is not used by this custom definition\n\n    this.handle = -1;\n    this.manager = MOUNT_MANAGER;\n    this.compilable = null;\n    this.capabilities = capabilityFlagsFrom(CAPABILITIES$2);\n    this.state = {\n      name: resolvedName\n    };\n  }\n\n}\n\n/**\n  The `{{mount}}` helper lets you embed a routeless engine in a template.\n  Mounting an engine will cause an instance to be booted and its `application`\n  template to be rendered.\n\n  For example, the following template mounts the `ember-chat` engine:\n\n  ```handlebars\n  {{! application.hbs }}\n  {{mount \"ember-chat\"}}\n  ```\n\n  Additionally, you can also pass in a `model` argument that will be\n  set as the engines model. This can be an existing object:\n\n  ```\n  <div>\n    {{mount 'admin' model=userSettings}}\n  </div>\n  ```\n\n  Or an inline `hash`, and you can even pass components:\n\n  ```\n  <div>\n    <h1>Application template!</h1>\n    {{mount 'admin' model=(hash\n        title='Secret Admin'\n        signInButton=(component 'sign-in-button')\n    )}}\n  </div>\n  ```\n\n  @method mount\n  @param {String} name Name of the engine to mount.\n  @param {Object} [model] Object that will be set as\n                          the model of the engine.\n  @for Ember.Templates.helpers\n  @public\n*/\n\nconst mountHelper = internalHelper((args, owner) => {\n  assert('{{mount}} must be used within a component that has an owner', owner);\n  let nameRef = args.positional[0];\n  let captured;\n  assert('You can only pass a single positional argument to the {{mount}} helper, e.g. {{mount \"chat-engine\"}}.', args.positional.length === 1);\n\n  if (DEBUG && args.named) {\n    let keys = Object.keys(args.named);\n    let extra = keys.filter(k => k !== 'model');\n    assert('You can only pass a `model` argument to the {{mount}} helper, ' + 'e.g. {{mount \"profile-engine\" model=this.profile}}. ' + `You passed ${extra.join(',')}.`, extra.length === 0);\n  }\n\n  captured = createCapturedArgs(args.named, EMPTY_POSITIONAL);\n  let lastName, lastDef;\n  return createComputeRef(() => {\n    let name = valueForRef(nameRef);\n\n    if (typeof name === 'string') {\n      if (lastName === name) {\n        return lastDef;\n      }\n\n      assert(`You used \\`{{mount '${name}'}}\\`, but the engine '${name}' can not be found.`, owner.hasRegistration(`engine:${name}`));\n      lastName = name;\n      lastDef = curry(0\n      /* Component */\n      , new MountDefinition(name), owner, captured, true);\n      return lastDef;\n    } else {\n      assert(`Invalid engine name '${name}' specified, engine name must be either a string, null or undefined.`, name === null || name === undefined);\n      lastDef = null;\n      lastName = null;\n      return null;\n    }\n  });\n});\n\n/**\n  The `{{outlet}}` helper lets you specify where a child route will render in\n  your template. An important use of the `{{outlet}}` helper is in your\n  application's `application.hbs` file:\n\n  ```app/templates/application.hbs\n  <MyHeader />\n\n  <div class=\"my-dynamic-content\">\n    <!-- this content will change based on the current route, which depends on the current URL -->\n    {{outlet}}\n  </div>\n\n  <MyFooter />\n  ```\n\n  You may also specify a name for the `{{outlet}}`, which is useful when using more than one\n  `{{outlet}}` in a template:\n\n  ```app/templates/application.hbs\n  {{outlet \"menu\"}}\n  {{outlet \"sidebar\"}}\n  {{outlet \"main\"}}\n  ```\n\n  Your routes can then render into a specific one of these `outlet`s by specifying the `outlet`\n  attribute in your `renderTemplate` function:\n\n  ```app/routes/menu.js\n  import Route from '@ember/routing/route';\n\n  export default class MenuRoute extends Route {\n    renderTemplate() {\n      this.render({ outlet: 'menu' });\n    }\n  }\n  ```\n\n  See the [routing guide](https://guides.emberjs.com/release/routing/rendering-a-template/) for more\n  information on how your `route` interacts with the `{{outlet}}` helper.\n  Note: Your content __will not render__ if there isn't an `{{outlet}}` for it.\n\n  @method outlet\n  @param {String} [name]\n  @for Ember.Templates.helpers\n  @public\n*/\n\nconst outletHelper = internalHelper((args, owner, scope) => {\n  assert('Expected owner to be present, {{outlet}} requires an owner', owner);\n  assert('Expected dynamic scope to be present. You may have attempted to use the {{outlet}} keyword dynamically. This keyword cannot be used dynamically.', scope);\n  let nameRef;\n\n  if (args.positional.length === 0) {\n    nameRef = createPrimitiveRef('main');\n  } else {\n    nameRef = args.positional[0];\n  }\n\n  let outletRef = createComputeRef(() => {\n    let state = valueForRef(scope.get('outletState'));\n    let outlets = state !== undefined ? state.outlets : undefined;\n    return outlets !== undefined ? outlets[valueForRef(nameRef)] : undefined;\n  });\n  let lastState = null;\n  let definition = null;\n  return createComputeRef(() => {\n    var _a, _b;\n\n    let outletState = valueForRef(outletRef);\n    let state = stateFor(outletRef, outletState);\n\n    if (!validate(state, lastState)) {\n      lastState = state;\n\n      if (state !== null) {\n        let named = dict(); // Create a ref for the model\n\n        let modelRef = childRefFromParts(outletRef, ['render', 'model']); // Store the value of the model\n\n        let model = valueForRef(modelRef); // Create a compute ref which we pass in as the `{{@model}}` reference\n        // for the outlet. This ref will update and return the value of the\n        // model _until_ the outlet itself changes. Once the outlet changes,\n        // dynamic scope also changes, and so the original model ref would not\n        // provide the correct updated value. So we stop updating and return\n        // the _last_ model value for that outlet.\n\n        named.model = createComputeRef(() => {\n          if (lastState === state) {\n            model = valueForRef(modelRef);\n          }\n\n          return model;\n        });\n\n        if (DEBUG) {\n          named.model = createDebugAliasRef('@model', named.model);\n        }\n\n        let args = createCapturedArgs(named, EMPTY_POSITIONAL);\n        definition = curry(0\n        /* Component */\n        , new OutletComponentDefinition(state), (_b = (_a = outletState === null || outletState === void 0 ? void 0 : outletState.render) === null || _a === void 0 ? void 0 : _a.owner) !== null && _b !== void 0 ? _b : owner, args, true);\n      } else {\n        definition = null;\n      }\n    }\n\n    return definition;\n  });\n});\n\nfunction stateFor(ref, outlet) {\n  if (outlet === undefined) return null;\n  let render = outlet.render;\n  if (render === undefined) return null;\n  let template = render.template;\n  if (template === undefined) return null; // this guard can be removed once @ember/test-helpers@1.6.0 has \"aged out\"\n  // and is no longer considered supported\n\n  if (isTemplateFactory(template)) {\n    template = template(render.owner);\n  }\n\n  return {\n    ref,\n    name: render.name,\n    outlet: render.outlet,\n    template,\n    controller: render.controller,\n    model: render.model\n  };\n}\n\nfunction validate(state, lastState) {\n  if (state === null) {\n    return lastState === null;\n  }\n\n  if (lastState === null) {\n    return false;\n  }\n\n  return state.template === lastState.template && state.controller === lastState.controller;\n}\n\nfunction instrumentationPayload$1(name) {\n  return {\n    object: `component:${name}`\n  };\n}\n\nfunction componentFor(name, owner, options) {\n  let fullName = `component:${name}`;\n  return owner.factoryFor(fullName, options) || null;\n}\n\nfunction layoutFor(name, owner, options) {\n  let templateFullName = `template:components/${name}`;\n  return owner.lookup(templateFullName, options) || null;\n}\n\nfunction lookupComponentPair(owner, name, options) {\n  let component = componentFor(name, owner, options);\n\n  if (component !== null && component.class !== undefined) {\n    let layout = getComponentTemplate(component.class);\n\n    if (layout !== undefined) {\n      return {\n        component,\n        layout\n      };\n    }\n  }\n\n  let layout = layoutFor(name, owner, options);\n\n  if (component === null && layout === null) {\n    return null;\n  } else {\n    return {\n      component,\n      layout\n    };\n  }\n}\n\nlet lookupPartial;\nlet templateFor;\nlet parseUnderscoredName;\n\nif (PARTIALS) {\n  lookupPartial = function (templateName, owner) {\n    deprecate(`The use of \\`{{partial}}\\` is deprecated, please refactor the \"${templateName}\" partial to a component`, false, {\n      id: 'ember-views.partial',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_ember-views-partial',\n      for: 'ember-source',\n      since: {\n        enabled: '3.15.0-beta.1'\n      }\n    });\n\n    if (templateName === null) {\n      return;\n    }\n\n    let template = templateFor(owner, parseUnderscoredName(templateName), templateName);\n    assert(`Unable to find partial with name \"${templateName}\"`, Boolean(template));\n    return template;\n  };\n\n  templateFor = function (owner, underscored, name) {\n    if (PARTIALS) {\n      if (!name) {\n        return;\n      }\n\n      assert(`templateNames are not allowed to contain periods: ${name}`, name.indexOf('.') === -1);\n\n      if (!owner) {\n        throw new EmberError('Container was not found when looking up a views template. ' + 'This is most likely due to manually instantiating an Ember.View. ' + 'See: http://git.io/EKPpnA');\n      }\n\n      return owner.lookup(`template:${underscored}`) || owner.lookup(`template:${name}`);\n    }\n  };\n\n  parseUnderscoredName = function (templateName) {\n    let nameParts = templateName.split('/');\n    let lastPart = nameParts[nameParts.length - 1];\n    nameParts[nameParts.length - 1] = `_${lastPart}`;\n    return nameParts.join('/');\n  };\n}\n\nconst BUILTIN_KEYWORD_HELPERS = {\n  action: action$1,\n  mut,\n  readonly,\n  unbound,\n  'query-params': queryParams,\n  '-hash': hash,\n  '-each-in': eachIn,\n  '-normalize-class': normalizeClassHelper,\n  '-resolve': resolve,\n  '-track-array': trackArray,\n  '-mount': mountHelper,\n  '-outlet': outletHelper,\n  '-in-el-null': inElementNullCheckHelper\n};\n\nif (DEBUG) {\n  BUILTIN_KEYWORD_HELPERS['-disallow-dynamic-resolution'] = disallowDynamicResolution;\n} else {\n  // Bug: this may be a quirk of our test setup?\n  // In prod builds, this is a no-op helper and is unused in practice. We shouldn't need\n  // to add it at all, but the current test build doesn't produce a \"prod compiler\", so\n  // we ended up running the debug-build for the template compliler in prod tests. Once\n  // that is fixed, this can be removed. For now, this allows the test to work and does\n  // not really harm anything, since it's just a no-op pass-through helper and the bytes\n  // has to be included anyway. In the future, perhaps we can avoid the latter by using\n  // `import(...)`?\n  BUILTIN_KEYWORD_HELPERS['-disallow-dynamic-resolution'] = disallowDynamicResolution;\n}\n\nconst BUILTIN_HELPERS = Object.assign(Object.assign({}, BUILTIN_KEYWORD_HELPERS), {\n  array,\n  concat,\n  fn,\n  get: get$1,\n  hash\n});\nconst BUILTIN_KEYWORD_MODIFIERS = {\n  action: actionModifier\n};\nconst BUILTIN_MODIFIERS = Object.assign(Object.assign({}, BUILTIN_KEYWORD_MODIFIERS), {\n  on\n});\nconst CLASSIC_HELPER_MANAGER_ASSOCIATED = new _WeakSet();\nclass ResolverImpl {\n  constructor() {\n    this.componentDefinitionCache = new Map();\n  }\n\n  lookupPartial(name, owner) {\n    if (PARTIALS) {\n      let templateFactory$$1 = lookupPartial(name, owner);\n      let template = templateFactory$$1(owner);\n      return new PartialDefinitionImpl(name, template);\n    } else {\n      return null;\n    }\n  }\n\n  lookupHelper(name, owner) {\n    assert(`You attempted to overwrite the built-in helper \"${name}\" which is not allowed. Please rename the helper.`, !(BUILTIN_HELPERS[name] && owner.hasRegistration(`helper:${name}`)));\n    const helper$$1 = BUILTIN_HELPERS[name];\n\n    if (helper$$1 !== undefined) {\n      return helper$$1;\n    }\n\n    const factory = owner.factoryFor(`helper:${name}`);\n\n    if (factory === undefined) {\n      return null;\n    }\n\n    let definition = factory.class;\n\n    if (definition === undefined) {\n      return null;\n    }\n\n    if (typeof definition === 'function' && isClassicHelper(definition)) {\n      // For classic class based helpers, we need to pass the factoryFor result itself rather\n      // than the raw value (`factoryFor(...).class`). This is because injections are already\n      // bound in the factoryFor result, including type-based injections\n      if (DEBUG) {\n        // In DEBUG we need to only set the associated value once, otherwise\n        // we'll trigger an assertion\n        if (!CLASSIC_HELPER_MANAGER_ASSOCIATED.has(factory)) {\n          CLASSIC_HELPER_MANAGER_ASSOCIATED.add(factory);\n          setInternalHelperManager(CLASSIC_HELPER_MANAGER, factory);\n        }\n      } else {\n        setInternalHelperManager(CLASSIC_HELPER_MANAGER, factory);\n      }\n\n      return factory;\n    }\n\n    return definition;\n  }\n\n  lookupBuiltInHelper(name) {\n    var _a;\n\n    return (_a = BUILTIN_KEYWORD_HELPERS[name]) !== null && _a !== void 0 ? _a : null;\n  }\n\n  lookupModifier(name, owner) {\n    let builtin = BUILTIN_MODIFIERS[name];\n\n    if (builtin !== undefined) {\n      return builtin;\n    }\n\n    let modifier = owner.factoryFor(`modifier:${name}`);\n\n    if (modifier === undefined) {\n      return null;\n    }\n\n    return modifier.class || null;\n  }\n\n  lookupBuiltInModifier(name) {\n    var _a;\n\n    return (_a = BUILTIN_KEYWORD_MODIFIERS[name]) !== null && _a !== void 0 ? _a : null;\n  }\n\n  lookupComponent(name, owner) {\n    let pair = lookupComponentPair(owner, name);\n\n    if (pair === null) {\n      assert('Could not find component `<TextArea />` (did you mean `<Textarea />`?)', name !== 'text-area');\n      return null;\n    }\n\n    let template = null;\n    let key;\n\n    if (pair.component === null) {\n      key = template = pair.layout(owner);\n    } else {\n      key = pair.component;\n    }\n\n    let cachedComponentDefinition = this.componentDefinitionCache.get(key);\n\n    if (cachedComponentDefinition !== undefined) {\n      return cachedComponentDefinition;\n    }\n\n    if (template === null && pair.layout !== null) {\n      template = pair.layout(owner);\n    }\n\n    let finalizer = _instrumentStart('render.getComponentDefinition', instrumentationPayload$1, name);\n\n    let definition = null;\n\n    if (pair.component === null) {\n      if (ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS) {\n        definition = {\n          state: templateOnlyComponent(undefined, name),\n          manager: TEMPLATE_ONLY_COMPONENT_MANAGER,\n          template\n        };\n      } else {\n        let factory = owner.factoryFor(privatize`component:-default`);\n        let manager = getInternalComponentManager(factory.class);\n        definition = {\n          state: factory,\n          manager,\n          template\n        };\n      }\n    } else {\n      assert(`missing component class ${name}`, pair.component.class !== undefined);\n      let factory = pair.component;\n      let ComponentClass = factory.class;\n      let manager = getInternalComponentManager(ComponentClass);\n      definition = {\n        state: isCurlyManager(manager) ? factory : ComponentClass,\n        manager,\n        template\n      };\n    }\n\n    finalizer();\n    this.componentDefinitionCache.set(key, definition);\n    assert('Could not find component `<TextArea />` (did you mean `<Textarea />`?)', !(definition === null && name === 'text-area'));\n    return definition;\n  }\n\n}\n\nclass DynamicScope {\n  constructor(view, outletState) {\n    this.view = view;\n    this.outletState = outletState;\n  }\n\n  child() {\n    return new DynamicScope(this.view, this.outletState);\n  }\n\n  get(key) {\n    // tslint:disable-next-line:max-line-length\n    assert(`Using \\`-get-dynamic-scope\\` is only supported for \\`outletState\\` (you used \\`${key}\\`).`, key === 'outletState');\n    return this.outletState;\n  }\n\n  set(key, value) {\n    // tslint:disable-next-line:max-line-length\n    assert(`Using \\`-with-dynamic-scope\\` is only supported for \\`outletState\\` (you used \\`${key}\\`).`, key === 'outletState');\n    this.outletState = value;\n    return value;\n  }\n\n} // This wrapper logic prevents us from rerendering in case of a hard failure\n// during render. This prevents infinite revalidation type loops from occuring,\n// and ensures that errors are not swallowed by subsequent follow on failures.\n\nfunction errorLoopTransaction(fn$$1) {\n  if (DEBUG) {\n    return () => {\n      let didError = true;\n\n      try {\n        fn$$1();\n        didError = false;\n      } finally {\n        if (didError) {\n          // Noop the function so that we won't keep calling it and causing\n          // infinite looping failures;\n          fn$$1 = () => {\n            console.warn('Attempted to rerender, but the Ember application has had an unrecoverable error occur during render. You should reload the application after fixing the cause of the error.');\n          };\n        }\n      }\n    };\n  } else {\n    return fn$$1;\n  }\n}\n\nclass RootState {\n  constructor(root, runtime, context, owner, template, self, parentElement, dynamicScope, builder) {\n    this.root = root;\n    this.runtime = runtime;\n    assert(`You cannot render \\`${valueForRef(self)}\\` without a template.`, template !== undefined);\n    this.id = getViewId(root);\n    this.result = undefined;\n    this.destroyed = false;\n    this.render = errorLoopTransaction(() => {\n      let layout = unwrapTemplate(template).asLayout();\n      let iterator = renderMain(runtime, context, owner, self, builder(runtime.env, {\n        element: parentElement,\n        nextSibling: null\n      }), layout, dynamicScope);\n      let result = this.result = iterator.sync(); // override .render function after initial render\n\n      this.render = errorLoopTransaction(() => result.rerender({\n        alwaysRevalidate: false\n      }));\n    });\n  }\n\n  isFor(possibleRoot) {\n    return this.root === possibleRoot;\n  }\n\n  destroy() {\n    let {\n      result,\n      runtime: {\n        env\n      }\n    } = this;\n    this.destroyed = true;\n    this.runtime = undefined;\n    this.root = null;\n    this.result = undefined;\n    this.render = undefined;\n\n    if (result !== undefined) {\n      /*\n       Handles these scenarios:\n              * When roots are removed during standard rendering process, a transaction exists already\n         `.begin()` / `.commit()` are not needed.\n       * When roots are being destroyed manually (`component.append(); component.destroy() case), no\n         transaction exists already.\n       * When roots are being destroyed during `Renderer#destroy`, no transaction exists\n              */\n      inTransaction(env, () => destroy(result));\n    }\n  }\n\n}\n\nconst renderers = [];\nfunction _resetRenderers() {\n  renderers.length = 0;\n}\n\nfunction register(renderer) {\n  assert('Cannot register the same renderer twice', renderers.indexOf(renderer) === -1);\n  renderers.push(renderer);\n}\n\nfunction deregister(renderer) {\n  let index = renderers.indexOf(renderer);\n  assert('Cannot deregister unknown unregistered renderer', index !== -1);\n  renderers.splice(index, 1);\n}\n\nfunction loopBegin() {\n  for (let i = 0; i < renderers.length; i++) {\n    renderers[i]._scheduleRevalidate();\n  }\n}\n\nfunction K() {\n  /* noop */\n}\n\nlet renderSettledDeferred = null;\n/*\n  Returns a promise which will resolve when rendering has settled. Settled in\n  this context is defined as when all of the tags in use are \"current\" (e.g.\n  `renderers.every(r => r._isValid())`). When this is checked at the _end_ of\n  the run loop, this essentially guarantees that all rendering is completed.\n\n  @method renderSettled\n  @returns {Promise<void>} a promise which fulfills when rendering has settled\n*/\n\nfunction renderSettled() {\n  if (renderSettledDeferred === null) {\n    renderSettledDeferred = RSVP.defer(); // if there is no current runloop, the promise created above will not have\n    // a chance to resolve (because its resolved in backburner's \"end\" event)\n\n    if (!_getCurrentRunLoop()) {\n      // ensure a runloop has been kicked off\n      _backburner.schedule('actions', null, K);\n    }\n  }\n\n  return renderSettledDeferred.promise;\n}\n\nfunction resolveRenderPromise() {\n  if (renderSettledDeferred !== null) {\n    let resolve = renderSettledDeferred.resolve;\n    renderSettledDeferred = null;\n\n    _backburner.join(null, resolve);\n  }\n}\n\nlet loops = 0;\n\nfunction loopEnd() {\n  for (let i = 0; i < renderers.length; i++) {\n    if (!renderers[i]._isValid()) {\n      if (loops > ENV._RERENDER_LOOP_LIMIT) {\n        loops = 0; // TODO: do something better\n\n        renderers[i].destroy();\n        throw new Error('infinite rendering invalidation detected');\n      }\n\n      loops++;\n      return _backburner.join(null, K);\n    }\n  }\n\n  loops = 0;\n  resolveRenderPromise();\n}\n\n_backburner.on('begin', loopBegin);\n\n_backburner.on('end', loopEnd);\n\nclass Renderer {\n  constructor(owner, document, env, rootTemplate, viewRegistry, builder = clientBuilder) {\n    this._inRenderTransaction = false;\n    this._lastRevision = -1;\n    this._destroyed = false;\n    this._owner = owner;\n    this._rootTemplate = rootTemplate(owner);\n    this._viewRegistry = viewRegistry;\n    this._roots = [];\n    this._removedRoots = [];\n    this._builder = builder;\n    this._isInteractive = env.isInteractive; // resolver is exposed for tests\n\n    let resolver = this._runtimeResolver = new ResolverImpl();\n    let sharedArtifacts = artifacts();\n    this._context = programCompilationContext(sharedArtifacts, resolver);\n    let runtimeEnvironmentDelegate = new EmberEnvironmentDelegate(owner, env.isInteractive);\n    this._runtime = runtimeContext({\n      appendOperations: env.hasDOM ? new DOMTreeConstruction(document) : new NodeDOMTreeConstruction(document),\n      updateOperations: new DOMChanges(document)\n    }, runtimeEnvironmentDelegate, sharedArtifacts, resolver);\n  }\n\n  static create(props) {\n    let {\n      document,\n      env,\n      rootTemplate,\n      _viewRegistry,\n      builder\n    } = props;\n    return new this(getOwner(props), document, env, rootTemplate, _viewRegistry, builder);\n  }\n\n  get debugRenderTree() {\n    let {\n      debugRenderTree\n    } = this._runtime.env;\n    assert('Attempted to access the DebugRenderTree, but it did not exist. Is the Ember Inspector open?', debugRenderTree);\n    return debugRenderTree;\n  } // renderer HOOKS\n\n\n  appendOutletView(view, target) {\n    let definition = createRootOutlet(view);\n\n    this._appendDefinition(view, curry(0\n    /* Component */\n    , definition, view.owner, null, true), target);\n  }\n\n  appendTo(view, target) {\n    let definition = new RootComponentDefinition(view);\n\n    this._appendDefinition(view, curry(0\n    /* Component */\n    , definition, this._owner, null, true), target);\n  }\n\n  _appendDefinition(root, definition, target) {\n    let self = createConstRef(definition, 'this');\n    let dynamicScope = new DynamicScope(null, UNDEFINED_REFERENCE);\n    let rootState = new RootState(root, this._runtime, this._context, this._owner, this._rootTemplate, self, target, dynamicScope, this._builder);\n\n    this._renderRoot(rootState);\n  }\n\n  rerender() {\n    this._scheduleRevalidate();\n  }\n\n  register(view) {\n    let id = getViewId(view);\n    assert('Attempted to register a view with an id already in use: ' + id, !this._viewRegistry[id]);\n    this._viewRegistry[id] = view;\n  }\n\n  unregister(view) {\n    delete this._viewRegistry[getViewId(view)];\n  }\n\n  remove(view) {\n    view._transitionTo('destroying');\n\n    this.cleanupRootFor(view);\n\n    if (this._isInteractive) {\n      view.trigger('didDestroyElement');\n    }\n  }\n\n  cleanupRootFor(view) {\n    // no need to cleanup roots if we have already been destroyed\n    if (this._destroyed) {\n      return;\n    }\n\n    let roots = this._roots; // traverse in reverse so we can remove items\n    // without mucking up the index\n\n    let i = this._roots.length;\n\n    while (i--) {\n      let root = roots[i];\n\n      if (root.isFor(view)) {\n        root.destroy();\n        roots.splice(i, 1);\n      }\n    }\n  }\n\n  destroy() {\n    if (this._destroyed) {\n      return;\n    }\n\n    this._destroyed = true;\n\n    this._clearAllRoots();\n  }\n\n  getElement(view) {\n    if (this._isInteractive) {\n      return getViewElement(view);\n    } else {\n      throw new Error('Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).');\n    }\n  }\n\n  getBounds(view) {\n    let bounds = view[BOUNDS];\n    assert('object passed to getBounds must have the BOUNDS symbol as a property', Boolean(bounds));\n    let parentElement = bounds.parentElement();\n    let firstNode = bounds.firstNode();\n    let lastNode = bounds.lastNode();\n    return {\n      parentElement,\n      firstNode,\n      lastNode\n    };\n  }\n\n  createElement(tagName) {\n    return this._runtime.env.getAppendOperations().createElement(tagName);\n  }\n\n  _renderRoot(root) {\n    let {\n      _roots: roots\n    } = this;\n    roots.push(root);\n\n    if (roots.length === 1) {\n      register(this);\n    }\n\n    this._renderRootsTransaction();\n  }\n\n  _renderRoots() {\n    let {\n      _roots: roots,\n      _runtime: runtime,\n      _removedRoots: removedRoots\n    } = this;\n    let initialRootsLength;\n\n    do {\n      initialRootsLength = roots.length;\n      inTransaction(runtime.env, () => {\n        // ensure that for the first iteration of the loop\n        // each root is processed\n        for (let i = 0; i < roots.length; i++) {\n          let root = roots[i];\n\n          if (root.destroyed) {\n            // add to the list of roots to be removed\n            // they will be removed from `this._roots` later\n            removedRoots.push(root); // skip over roots that have been marked as destroyed\n\n            continue;\n          } // when processing non-initial reflush loops,\n          // do not process more roots than needed\n\n\n          if (i >= initialRootsLength) {\n            continue;\n          }\n\n          root.render();\n        }\n\n        this._lastRevision = valueForTag(CURRENT_TAG);\n      });\n    } while (roots.length > initialRootsLength); // remove any roots that were destroyed during this transaction\n\n\n    while (removedRoots.length) {\n      let root = removedRoots.pop();\n      let rootIndex = roots.indexOf(root);\n      roots.splice(rootIndex, 1);\n    }\n\n    if (this._roots.length === 0) {\n      deregister(this);\n    }\n  }\n\n  _renderRootsTransaction() {\n    if (this._inRenderTransaction) {\n      // currently rendering roots, a new root was added and will\n      // be processed by the existing _renderRoots invocation\n      return;\n    } // used to prevent calling _renderRoots again (see above)\n    // while we are actively rendering roots\n\n\n    this._inRenderTransaction = true;\n    let completedWithoutError = false;\n\n    try {\n      this._renderRoots();\n\n      completedWithoutError = true;\n    } finally {\n      if (!completedWithoutError) {\n        this._lastRevision = valueForTag(CURRENT_TAG);\n      }\n\n      this._inRenderTransaction = false;\n    }\n  }\n\n  _clearAllRoots() {\n    let roots = this._roots;\n\n    for (let i = 0; i < roots.length; i++) {\n      let root = roots[i];\n      root.destroy();\n    }\n\n    this._removedRoots.length = 0;\n    this._roots = []; // if roots were present before destroying\n    // deregister this renderer instance\n\n    if (roots.length) {\n      deregister(this);\n    }\n  }\n\n  _scheduleRevalidate() {\n    _backburner.scheduleOnce('render', this, this._revalidate);\n  }\n\n  _isValid() {\n    return this._destroyed || this._roots.length === 0 || validateTag(CURRENT_TAG, this._lastRevision);\n  }\n\n  _revalidate() {\n    if (this._isValid()) {\n      return;\n    }\n\n    this._renderRootsTransaction();\n  }\n\n}\n\nlet TEMPLATES = {};\nfunction setTemplates(templates) {\n  TEMPLATES = templates;\n}\nfunction getTemplates() {\n  return TEMPLATES;\n}\nfunction getTemplate(name) {\n  if (Object.prototype.hasOwnProperty.call(TEMPLATES, name)) {\n    return TEMPLATES[name];\n  }\n}\nfunction hasTemplate(name) {\n  return Object.prototype.hasOwnProperty.call(TEMPLATES, name);\n}\nfunction setTemplate(name, template) {\n  return TEMPLATES[name] = template;\n}\n\nvar LinkToTemplate = templateFactory({\n  \"id\": \"E6sfwpuG\",\n  \"block\": \"[[[41,[30,0,[\\\"modernized\\\"]],[[[11,3],[16,1,[30,0,[\\\"id\\\"]]],[16,0,[30,0,[\\\"class\\\"]]],[16,\\\"role\\\",[30,0,[\\\"role\\\"]]],[16,\\\"title\\\",[30,0,[\\\"title\\\"]]],[16,\\\"rel\\\",[30,0,[\\\"rel\\\"]]],[16,\\\"tabindex\\\",[30,0,[\\\"tabindex\\\"]]],[16,\\\"target\\\",[30,0,[\\\"target\\\"]]],[17,1],[16,6,[30,0,[\\\"href\\\"]]],[4,[38,1],[\\\"click\\\",[30,0,[\\\"click\\\"]]],null],[12],[18,3,null],[13]],[]],[[[44,[[50,\\\"-link-to\\\",0,null,null]],[[[8,[30,2],[[17,1]],[[\\\"@__ARGS__\\\"],[[30,0,[\\\"args\\\"]]]],[[\\\"default\\\"],[[[[18,3,null]],[]]]]]],[2]]]],[]]]],[\\\"&attrs\\\",\\\"LegacyLinkTo\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"on\\\",\\\"yield\\\",\\\"let\\\",\\\"component\\\"]]\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/link-to.hbs\",\n  \"isStrictMode\": false\n});\n\nvar __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n  var c = arguments.length,\n      r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n      d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nconst EMPTY_ARRAY$1 = [];\nconst EMPTY_QUERY_PARAMS$1 = {};\ndebugFreeze(EMPTY_ARRAY$1);\ndebugFreeze(EMPTY_QUERY_PARAMS$1);\n\nfunction isMissing(value) {\n  return value === null || value === undefined;\n}\n\nfunction isPresent(value) {\n  return !isMissing(value);\n}\n\nfunction isQueryParams(value) {\n  return typeof value === 'object' && value !== null && value['isQueryParams'] === true;\n}\n\nclass LinkTo extends InternalComponent {\n  constructor() {\n    super(...arguments);\n    this.modernized = this.shouldModernize(); // GH #17963\n\n    this.currentRouteCache = createCache(() => {\n      consumeTag(tagFor(this.routing, 'currentState'));\n      return untrack(() => this.routing.currentRouteName);\n    });\n  }\n\n  static toString() {\n    return 'LinkTo';\n  }\n\n  validateArguments() {\n    assert('You attempted to use the <LinkTo> component within a routeless engine, this is not supported. ' + 'If you are using the ember-engines addon, use the <LinkToExternal> component instead. ' + 'See https://ember-engines.com/docs/links for more info.', !this.modernized || !this.isEngine || this.engineMountPoint !== undefined);\n    assert('You must provide at least one of the `@route`, `@model`, `@models` or `@query` argument to `<LinkTo>`.', !this.modernized || 'route' in this.args.named || 'model' in this.args.named || 'models' in this.args.named || 'query' in this.args.named);\n    assert('You cannot provide both the `@model` and `@models` arguments to the <LinkTo> component.', !('model' in this.args.named && 'models' in this.args.named));\n    super.validateArguments();\n  }\n\n  get class() {\n    let classes = 'ember-view';\n\n    if (this.isActive) {\n      classes += this.classFor('active');\n\n      if (this.willBeActive === false) {\n        classes += ' ember-transitioning-out';\n      }\n    } else if (this.willBeActive) {\n      classes += ' ember-transitioning-in';\n    }\n\n    if (this.isLoading) {\n      classes += this.classFor('loading');\n    }\n\n    if (this.isDisabled) {\n      classes += this.classFor('disabled');\n    }\n\n    return classes;\n  }\n\n  get href() {\n    if (this.isLoading) {\n      return '#';\n    }\n\n    let {\n      routing,\n      route,\n      models,\n      query\n    } = this;\n    assert('[BUG] route can only be missing if isLoading is true', isPresent(route)); // consume the current router state so we invalidate when QP changes\n    // TODO: can we narrow this down to QP changes only?\n\n    consumeTag(tagFor(routing, 'currentState'));\n\n    if (DEBUG) {\n      try {\n        return routing.generateURL(route, models, query);\n      } catch (e) {\n        // tslint:disable-next-line:max-line-length\n        e.message = `While generating link to route \"${route}\": ${e.message}`;\n        throw e;\n      }\n    } else {\n      return routing.generateURL(route, models, query);\n    }\n  }\n\n  click(event) {\n    if (!isSimpleClick(event)) {\n      return;\n    }\n\n    let element = event.currentTarget;\n    assert('[BUG] must be an <a> element', element instanceof HTMLAnchorElement);\n    let isSelf = element.target === '' || element.target === '_self';\n\n    if (isSelf) {\n      this.preventDefault(event);\n    } else {\n      return;\n    }\n\n    if (this.isDisabled) {\n      return;\n    }\n\n    if (this.isLoading) {\n      warn('This link is in an inactive loading state because at least one of its models ' + 'currently has a null/undefined value, or the provided route name is invalid.', false, {\n        id: 'ember-glimmer.link-to.inactive-loading-state'\n      });\n      return;\n    }\n\n    let {\n      routing,\n      route,\n      models,\n      query,\n      replace\n    } = this;\n    let payload = {\n      routeName: route,\n      queryParams: query,\n      transition: undefined\n    };\n    flaggedInstrument('interaction.link-to', payload, () => {\n      assert('[BUG] route can only be missing if isLoading is true', isPresent(route)); // TODO: is the signature wrong? this.query is definitely NOT a QueryParam!\n\n      payload.transition = routing.transitionTo(route, models, query, replace);\n    });\n  }\n\n  get route() {\n    if ('route' in this.args.named) {\n      let route = this.named('route');\n      assert('The `@route` argument to the <LinkTo> component must be a string', isMissing(route) || typeof route === 'string');\n      return route && this.namespaceRoute(route);\n    } else {\n      return this.currentRoute;\n    }\n  }\n\n  get currentRoute() {\n    return getValue(this.currentRouteCache);\n  } // TODO: not sure why generateURL takes {}[] instead of unknown[]\n\n\n  get models() {\n    if ('models' in this.args.named) {\n      let models = this.named('models');\n      assert('The `@models` argument to the <LinkTo> component must be an array.', Array.isArray(models));\n      return models;\n    } else if ('model' in this.args.named) {\n      return [this.named('model')];\n    } else {\n      return EMPTY_ARRAY$1;\n    }\n  } // TODO: this should probably be Record<string, unknown> or something\n\n\n  get query() {\n    if ('query' in this.args.named) {\n      let query = this.named('query');\n      assert('The `@query` argument to the <LinkTo> component must be an object.', query !== null && typeof query === 'object');\n      return Object.assign({}, query);\n    } else {\n      return EMPTY_QUERY_PARAMS$1;\n    }\n  }\n\n  get replace() {\n    return this.named('replace') === true;\n  }\n\n  get isActive() {\n    return this.isActiveForState(this.routing.currentState);\n  }\n\n  get willBeActive() {\n    let current = this.routing.currentState;\n    let target = this.routing.targetState;\n\n    if (current === target) {\n      return null;\n    } else {\n      return this.isActiveForState(target);\n    }\n  }\n\n  get isLoading() {\n    return isMissing(this.route) || this.models.some(model => isMissing(model));\n  }\n\n  get isDisabled() {\n    return Boolean(this.named('disabled'));\n  }\n\n  get isEngine() {\n    return getEngineParent(this.owner) !== undefined;\n  }\n\n  get engineMountPoint() {\n    return this.owner.mountPoint;\n  }\n\n  classFor(state) {\n    let className = this.named(`${state}Class`);\n    assert(`The \\`@${state}Class\\` argument to the <LinkTo> component must be a string or boolean`, isMissing(className) || typeof className === 'string' || typeof className === 'boolean');\n\n    if (className === true || isMissing(className)) {\n      return ` ${state}`;\n    } else if (className) {\n      return ` ${className}`;\n    } else {\n      return '';\n    }\n  }\n\n  namespaceRoute(route) {\n    let {\n      engineMountPoint\n    } = this;\n\n    if (engineMountPoint === undefined) {\n      return route;\n    } else if (route === 'application') {\n      return engineMountPoint;\n    } else {\n      return `${engineMountPoint}.${route}`;\n    }\n  }\n\n  isActiveForState(state) {\n    if (!isPresent(state)) {\n      return false;\n    }\n\n    if (this.isLoading) {\n      return false;\n    }\n\n    let currentWhen = this.named('current-when');\n\n    if (typeof currentWhen === 'boolean') {\n      return currentWhen;\n    } else if (typeof currentWhen === 'string') {\n      let {\n        models,\n        routing\n      } = this;\n      return currentWhen.split(' ').some(route => routing.isActiveForRoute(models, undefined, this.namespaceRoute(route), state));\n    } else {\n      let {\n        route,\n        models,\n        query,\n        routing\n      } = this;\n      assert('[BUG] route can only be missing if isLoading is true', isPresent(route)); // TODO: is the signature wrong? this.query is definitely NOT a QueryParam!\n\n      return routing.isActiveForRoute(models, query, route, state);\n    }\n  }\n\n  preventDefault(event) {\n    event.preventDefault();\n  }\n\n  shouldModernize() {\n    return Boolean(true\n    /* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n    ) && Component._wasReopened === false && TargetActionSupport._wasReopened === false && LinkComponent._wasReopened === false;\n  }\n\n  isSupportedArgument(name) {\n    let supportedArguments = ['route', 'model', 'models', 'query', 'replace', 'disabled', 'current-when', 'activeClass', 'loadingClass', 'disabledClass'];\n    return supportedArguments.indexOf(name) !== -1 || super.isSupportedArgument(name);\n  }\n\n}\n\n__decorate$3([inject('-routing')], LinkTo.prototype, \"routing\", void 0);\n\n__decorate$3([action], LinkTo.prototype, \"click\", null); // Deprecated features\n\n\n{\n  let {\n    prototype\n  } = LinkTo;\n\n  let descriptorFor = (target, property) => {\n    if (target) {\n      return Object.getOwnPropertyDescriptor(target, property) || descriptorFor(Object.getPrototypeOf(target), property);\n    } else {\n      return null;\n    }\n  };\n\n  handleDeprecatedArguments(LinkTo);\n  handleDeprecatedAttributeArguments(LinkTo, [// Component\n  'id', ['id', 'elementId'], 'class', ['class', 'classNames'], ['role', 'ariaRole'], // LinkTo\n  'title', 'rel', 'tabindex', 'target']);\n  handleDeprecatedEventArguments(LinkTo); // @href\n\n  {\n    let superOnUnsupportedArgument = prototype['onUnsupportedArgument'];\n    Object.defineProperty(prototype, 'onUnsupportedArgument', {\n      configurable: true,\n      enumerable: false,\n      value: function onUnsupportedArgument(name) {\n        if (name === 'href') {\n          assert(`Passing the \\`@href\\` argument to <LinkTo> is not supported.`);\n        } else {\n          superOnUnsupportedArgument.call(this, name);\n        }\n      }\n    });\n  } // @tagName\n\n  {\n    let superOnUnsupportedArgument = prototype['onUnsupportedArgument'];\n    Object.defineProperty(prototype, 'onUnsupportedArgument', {\n      configurable: true,\n      enumerable: false,\n      value: function onUnsupportedArgument(name) {\n        if (name === 'tagName') {\n          let tagName = this.named('tagName');\n          deprecate(`Passing the \\`@tagName\\` argument to <LinkTo> is deprecated. Using a <${tagName}> ` + 'element for navigation is not recommended as it creates issues with assistive ' + 'technologies. Remove this argument to use the default <a> element. In the rare ' + 'cases that calls for using a different element, refactor to use the router ' + 'service inside a custom event handler instead.', false, {\n            id: 'ember.link-to.tag-name',\n            for: 'ember-source',\n            since: {},\n            until: '4.0.0'\n          });\n          this.modernized = false;\n        } else {\n          superOnUnsupportedArgument.call(this, name);\n        }\n      }\n    });\n  } // @bubbles & @preventDefault\n\n  {\n    let superIsSupportedArgument = prototype['isSupportedArgument'];\n    Object.defineProperty(prototype, 'isSupportedArgument', {\n      configurable: true,\n      enumerable: false,\n      value: function isSupportedArgument(name) {\n        if (this.modernized) {\n          if (name === 'bubbles') {\n            deprecate('Passing the `@bubbles` argument to <LinkTo> is deprecated. ' + 'Use the {{on}} modifier to attach a custom event handler to ' + 'control event propagation.', false, {\n              id: 'ember.built-in-components.legacy-arguments',\n              for: 'ember-source',\n              since: {\n                enabled: '3.27.0'\n              },\n              until: '4.0.0',\n              url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-legacy-arguments'\n            });\n            return true;\n          }\n\n          if (name === 'preventDefault') {\n            deprecate('Passing the `@preventDefault` argument to <LinkTo> is deprecated. ' + '`preventDefault()` is called automatically on events that are ' + 'handled by the <LinkTo> component to prevent the browser from ' + 'navigating away from the page.', false, {\n              id: 'ember.built-in-components.legacy-arguments',\n              for: 'ember-source',\n              since: {\n                enabled: '3.27.0'\n              },\n              until: '4.0.0',\n              url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-legacy-arguments'\n            });\n            return true;\n          }\n        }\n\n        return superIsSupportedArgument.call(this, name);\n      }\n    });\n    Object.defineProperty(prototype, 'preventDefault', {\n      configurable: true,\n      enumerable: false,\n      value: function preventDefault(event) {\n        let shouldPreventDefault = true;\n        let shouldStopPropagation = false;\n\n        if ('preventDefault' in this.args.named) {\n          let value = this.named('preventDefault');\n\n          if (isMissing(value) || value) {\n            deprecate('Passing the `@preventDefault` argument to <LinkTo> is deprecated. ' + '`preventDefault()` is called automatically on events that are ' + 'handled by the <LinkTo> component to prevent the browser from ' + 'navigating away from the page.', false, {\n              id: 'ember.built-in-components.legacy-arguments',\n              for: 'ember-source',\n              since: {\n                enabled: '3.27.0'\n              },\n              until: '4.0.0',\n              url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-legacy-arguments'\n            });\n          } else {\n            deprecate('Passing the `@preventDefault` argument to <LinkTo> is deprecated. ' + '`preventDefault()` should always be called on events that are ' + 'handled by the <LinkTo> component to prevent the browser from ' + 'navigating away from the page.', false, {\n              id: 'ember.built-in-components.legacy-arguments',\n              for: 'ember-source',\n              since: {\n                enabled: '3.27.0'\n              },\n              until: '4.0.0',\n              url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-legacy-arguments'\n            });\n            shouldPreventDefault = false;\n          }\n        }\n\n        if ('bubbles' in this.args.named) {\n          let value = this.named('bubbles');\n\n          if (value === false) {\n            deprecate('Passing the `@bubbles` argument to <LinkTo> is deprecated. ' + 'Use the {{on}} modifier to attach a custom event handler to ' + 'control event propagation.', false, {\n              id: 'ember.built-in-components.legacy-arguments',\n              for: 'ember-source',\n              since: {\n                enabled: '3.27.0'\n              },\n              until: '4.0.0',\n              url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-legacy-arguments'\n            });\n            shouldStopPropagation = true;\n          } else {\n            deprecate('Passing the `@bubbles` argument to <LinkTo> is deprecated. ' + '`stopPropagation()` is not automatically called so there is ' + 'no need to pass this argument when you DO want the event to ' + 'propagate normally', false, {\n              id: 'ember.built-in-components.legacy-arguments',\n              for: 'ember-source',\n              since: {\n                enabled: '3.27.0'\n              },\n              until: '4.0.0',\n              url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-legacy-arguments'\n            });\n          }\n        }\n\n        if (shouldPreventDefault) {\n          event.preventDefault();\n        }\n\n        if (shouldStopPropagation) {\n          event.stopPropagation();\n        }\n      }\n    });\n  } // @disabledWhen\n\n  {\n    let superIsSupportedArgument = prototype['isSupportedArgument'];\n    Object.defineProperty(prototype, 'isSupportedArgument', {\n      configurable: true,\n      enumerable: false,\n      value: function isSupportedArgument(name) {\n        if (this.modernized) {\n          if (name === 'disabledWhen') {\n            deprecate('Passing the `@disabledWhen` argument to <LinkTo> is deprecated. ' + 'Use the `@disabled` argument instead.', false, {\n              id: 'ember.link-to.disabled-when',\n              for: 'ember-source',\n              since: {},\n              until: '4.0.0'\n            });\n            return true;\n          }\n        }\n\n        return superIsSupportedArgument.call(this, name);\n      }\n    });\n    let superDescriptor = descriptorFor(prototype, 'isDisabled');\n    assert(`[BUG] expecting isDisabled to be a getter on <LinkTo>`, superDescriptor && typeof superDescriptor.get === 'function');\n    let superGetter = superDescriptor.get;\n    Object.defineProperty(prototype, 'isDisabled', {\n      configurable: true,\n      enumerable: false,\n      get: function isDisabled() {\n        if ('disabledWhen' in this.args.named) {\n          deprecate('Passing the `@disabledWhen` argument to <LinkTo> is deprecated. ' + 'Use the `@disabled` argument instead.', false, {\n            id: 'ember.link-to.disabled-when',\n            for: 'ember-source',\n            since: {},\n            until: '4.0.0'\n          });\n          return Boolean(this.named('disabledWhen'));\n        }\n\n        return superGetter.call(this);\n      }\n    });\n  } // QP\n\n  {\n    let superModelsDescriptor = descriptorFor(prototype, 'models');\n    assert(`[BUG] expecting models to be a getter on <LinkTo>`, superModelsDescriptor && typeof superModelsDescriptor.get === 'function');\n    let superModelsGetter = superModelsDescriptor.get;\n    Object.defineProperty(prototype, 'models', {\n      configurable: true,\n      enumerable: false,\n      get: function models() {\n        let models = superModelsGetter.call(this);\n\n        if (models.length > 0 && !('query' in this.args.named)) {\n          if (isQueryParams(models[models.length - 1])) {\n            models = models.slice(0, -1);\n          }\n        }\n\n        return models;\n      }\n    });\n    let superQueryDescriptor = descriptorFor(prototype, 'query');\n    assert(`[BUG] expecting query to be a getter on <LinkTo>`, superQueryDescriptor && typeof superQueryDescriptor.get === 'function');\n    let superQueryGetter = superQueryDescriptor.get;\n    Object.defineProperty(prototype, 'query', {\n      configurable: true,\n      enumerable: false,\n      get: function query() {\n        var _a;\n\n        if ('query' in this.args.named) {\n          let qp = superQueryGetter.call(this);\n\n          if (isQueryParams(qp)) {\n            return (_a = qp.values) !== null && _a !== void 0 ? _a : EMPTY_QUERY_PARAMS$1;\n          } else {\n            return qp;\n          }\n        } else {\n          let models = superModelsGetter.call(this);\n\n          if (models.length > 0) {\n            let qp = models[models.length - 1];\n\n            if (isQueryParams(qp) && qp.values !== null) {\n              return qp.values;\n            }\n          }\n\n          return EMPTY_QUERY_PARAMS$1;\n        }\n      }\n    });\n  } // Positional Arguments\n\n  {\n    let superValidateArguments = prototype['validateArguments'];\n    Object.defineProperty(prototype, 'validateArguments', {\n      configurable: true,\n      enumerable: false,\n      value: function validateArguments() {\n        if (this.args.positional.length !== 0 || 'params' in this.args.named) {\n          // Already deprecated in the legacy implementation\n          this.modernized = false;\n        }\n\n        superValidateArguments.call(this);\n      }\n    });\n    let superOnUnsupportedArgument = prototype['onUnsupportedArgument'];\n    Object.defineProperty(prototype, 'onUnsupportedArgument', {\n      configurable: true,\n      enumerable: false,\n      value: function onUnsupportedArgument(name) {\n        if (name !== 'params') {\n          superOnUnsupportedArgument.call(this, name);\n        }\n      }\n    });\n  }\n}\n\nif (JQUERY_INTEGRATION) {\n  jQueryEventShim(LinkTo);\n}\n\nvar LinkTo$1 = opaquify(LinkTo, LinkToTemplate);\n\n/**\n@module ember\n*/\n/**\n  Calls [String.loc](/ember/release/classes/String/methods/loc?anchor=loc) with the\n  provided string. This is a convenient way to localize text within a template.\n  For example:\n\n  ```javascript\n  Ember.STRINGS = {\n    '_welcome_': 'Bonjour'\n  };\n  ```\n\n  ```handlebars\n  <div class='message'>\n    {{loc '_welcome_'}}\n  </div>\n  ```\n\n  ```html\n  <div class='message'>\n    Bonjour\n  </div>\n  ```\n\n  See [String.loc](/ember/release/classes/String/methods/loc?anchor=loc) for how to\n  set up localized string references.\n\n  @method loc\n  @for Ember.Templates.helpers\n  @param {String} str The string to format.\n  @see {String#loc}\n  @public\n  @deprecated\n*/\n\nvar loc$1 = helper(function (params) {\n  return loc.apply(null, params\n  /* let the other side handle errors */\n  );\n});\n\nvar OutletTemplate = templateFactory({\n  \"id\": \"3jT+eJpe\",\n  \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/outlet.hbs\",\n  \"isStrictMode\": false\n});\n\nconst TOP_LEVEL_NAME = '-top-level';\nconst TOP_LEVEL_OUTLET = 'main';\nclass OutletView {\n  constructor(_environment, owner, template) {\n    this._environment = _environment;\n    this.owner = owner;\n    this.template = template;\n    let outletStateTag = createTag();\n    let outletState = {\n      outlets: {\n        main: undefined\n      },\n      render: {\n        owner: owner,\n        into: undefined,\n        outlet: TOP_LEVEL_OUTLET,\n        name: TOP_LEVEL_NAME,\n        controller: undefined,\n        model: undefined,\n        template\n      }\n    };\n    let ref = this.ref = createComputeRef(() => {\n      consumeTag(outletStateTag);\n      return outletState;\n    }, state => {\n      dirtyTag(outletStateTag);\n      outletState.outlets.main = state;\n    });\n    this.state = {\n      ref,\n      name: TOP_LEVEL_NAME,\n      outlet: TOP_LEVEL_OUTLET,\n      template,\n      controller: undefined,\n      model: undefined\n    };\n  }\n\n  static extend(injections) {\n    return class extends OutletView {\n      static create(options) {\n        if (options) {\n          return super.create(assign({}, injections, options));\n        } else {\n          return super.create(injections);\n        }\n      }\n\n    };\n  }\n\n  static reopenClass(injections) {\n    assign(this, injections);\n  }\n\n  static create(options) {\n    let {\n      _environment,\n      template: templateFactory$$1\n    } = options;\n    let owner = getOwner(options);\n    let template = templateFactory$$1(owner);\n    return new OutletView(_environment, owner, template);\n  }\n\n  appendTo(selector) {\n    let target;\n\n    if (this._environment.hasDOM) {\n      target = typeof selector === 'string' ? document.querySelector(selector) : selector;\n    } else {\n      target = selector;\n    }\n\n    let renderer = this.owner.lookup('renderer:-dom');\n    schedule('render', renderer, 'appendOutletView', this, target);\n  }\n\n  rerender() {\n    /**/\n  }\n\n  setOutletState(state) {\n    updateRef(this.ref, state);\n  }\n\n  destroy() {\n    /**/\n  }\n\n}\n\nfunction setupApplicationRegistry(registry) {\n  registry.injection('renderer', 'env', '-environment:main'); // because we are using injections we can't use instantiate false\n  // we need to use bind() to copy the function so factory for\n  // association won't leak\n\n  registry.register('service:-dom-builder', {\n    create({\n      bootOptions\n    }) {\n      let {\n        _renderMode\n      } = bootOptions;\n\n      switch (_renderMode) {\n        case 'serialize':\n          return serializeBuilder.bind(null);\n\n        case 'rehydrate':\n          return rehydrationBuilder.bind(null);\n\n        default:\n          return clientBuilder.bind(null);\n      }\n    }\n\n  });\n  registry.injection('service:-dom-builder', 'bootOptions', '-environment:main');\n  registry.injection('renderer', 'builder', 'service:-dom-builder');\n  registry.register(privatize`template:-root`, RootTemplate);\n  registry.injection('renderer', 'rootTemplate', privatize`template:-root`);\n  registry.register('renderer:-dom', Renderer);\n  registry.injection('renderer', 'document', 'service:-document');\n}\nfunction setupEngineRegistry(registry) {\n  registry.optionsForType('template', {\n    instantiate: false\n  });\n  registry.register('view:-outlet', OutletView);\n  registry.register('template:-outlet', OutletTemplate);\n  registry.injection('view:-outlet', 'template', 'template:-outlet');\n  registry.optionsForType('helper', {\n    instantiate: false\n  });\n  registry.register('helper:loc', loc$1);\n  registry.register('component:-text-field', TextField);\n  registry.register('component:-checkbox', Checkbox);\n  registry.register('component:input', Input$1);\n\n  {\n    registry.register('component:link-to', LinkTo$1);\n    registry.register('component:-link-to', LinkComponent);\n    registry.register('component:-textarea', TextArea);\n    registry.register('component:textarea', Textarea$1);\n  }\n\n  if (!ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS) {\n    registry.register(privatize`component:-default`, Component);\n  }\n}\n\nfunction setComponentManager$1(stringOrFunction, obj) {\n  let factory;\n\n  if (COMPONENT_MANAGER_STRING_LOOKUP && typeof stringOrFunction === 'string') {\n    deprecate('Passing the name of the component manager to \"setupComponentManager\" is deprecated. Please pass a function that produces an instance of the manager.', false, {\n      id: 'deprecate-string-based-component-manager',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x/#toc_component-manager-string-lookup',\n      for: 'ember-source',\n      since: {\n        enabled: '3.8.0'\n      }\n    });\n\n    factory = function (owner) {\n      return owner.lookup(`component-manager:${stringOrFunction}`);\n    };\n  } else {\n    factory = stringOrFunction;\n  }\n\n  return setComponentManager(factory, obj);\n}\nlet componentCapabilities$1 = componentCapabilities;\nlet modifierCapabilities$1 = modifierCapabilities;\n\nif (DEBUG) {\n  componentCapabilities$1 = (version, options) => {\n    deprecate('Versions of component manager capabilities prior to 3.13 have been deprecated. You must update to the 3.13 capabilities.', version === '3.13', {\n      id: 'manager-capabilities.components-3-4',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_manager-capabilities-components-3-4',\n      until: '4.0.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.26.0'\n      }\n    });\n    return componentCapabilities(version, options);\n  };\n\n  modifierCapabilities$1 = (version, options) => {\n    deprecate('Versions of modifier manager capabilities prior to 3.22 have been deprecated. You must update to the 3.22 capabilities.', version === '3.22', {\n      id: 'manager-capabilities.modifiers-3-13',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_manager-capabilities-modifiers-3-13',\n      until: '4.0.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.26.0'\n      }\n    });\n    return modifierCapabilities(version, options);\n  };\n}\n\n/**\n  [Glimmer](https://github.com/tildeio/glimmer) is a templating engine used by Ember.js that is compatible with a subset of the [Handlebars](http://handlebarsjs.com/) syntax.\n\n  ### Showing a property\n\n  Templates manage the flow of an application's UI, and display state (through\n  the DOM) to a user. For example, given a component with the property \"name\",\n  that component's template can use the name in several ways:\n\n  ```app/components/person-profile.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    name: 'Jill'\n  });\n  ```\n\n  ```app/components/person-profile.hbs\n  {{this.name}}\n  <div>{{this.name}}</div>\n  <span data-name={{this.name}}></span>\n  ```\n\n  Any time the \"name\" property on the component changes, the DOM will be\n  updated.\n\n  Properties can be chained as well:\n\n  ```handlebars\n  {{@aUserModel.name}}\n  <div>{{@listOfUsers.firstObject.name}}</div>\n  ```\n\n  ### Using Ember helpers\n\n  When content is passed in mustaches `{{}}`, Ember will first try to find a helper\n  or component with that name. For example, the `if` helper:\n\n  ```app/components/person-profile.hbs\n  {{if this.name \"I have a name\" \"I have no name\"}}\n  <span data-has-name={{if this.name true}}></span>\n  ```\n\n  The returned value is placed where the `{{}}` is called. The above style is\n  called \"inline\". A second style of helper usage is called \"block\". For example:\n\n  ```handlebars\n  {{#if this.name}}\n    I have a name\n  {{else}}\n    I have no name\n  {{/if}}\n  ```\n\n  The block form of helpers allows you to control how the UI is created based\n  on the values of properties.\n  A third form of helper is called \"nested\". For example here the concat\n  helper will add \" Doe\" to a displayed name if the person has no last name:\n\n  ```handlebars\n  <span data-name={{concat this.firstName (\n    if this.lastName (concat \" \" this.lastName) \"Doe\"\n  )}}></span>\n  ```\n\n  Ember's built-in helpers are described under the [Ember.Templates.helpers](/ember/release/classes/Ember.Templates.helpers)\n  namespace. Documentation on creating custom helpers can be found under\n  [helper](/ember/release/functions/@ember%2Fcomponent%2Fhelper/helper) (or\n  under [Helper](/ember/release/classes/Helper) if a helper requires access to\n  dependency injection).\n\n  ### Invoking a Component\n\n  Ember components represent state to the UI of an application. Further\n  reading on components can be found under [Component](/ember/release/classes/Component).\n\n  @module @ember/component\n  @main @ember/component\n  @public\n */\n\nexport { RootTemplate, Checkbox, TextField, TextArea, LinkComponent, Input$1 as Input, Textarea$1 as Textarea, Component, Helper, helper, SafeString, escapeExpression, htmlSafe, isHTMLSafe$1 as isHTMLSafe, Renderer, _resetRenderers, renderSettled, getTemplate, setTemplate, hasTemplate, getTemplates, setTemplates, setupEngineRegistry, setupApplicationRegistry, INVOKE, OutletView, componentCapabilities$1 as componentCapabilities, modifierCapabilities$1 as modifierCapabilities, setComponentManager$1 as setComponentManager };\n","export { counters, Meta, meta, peekMeta, setMeta, UNDEFINED } from './lib/meta';","import { symbol, toString } from '@ember/-internals/utils';\nimport { assert, deprecate } from '@ember/debug';\nimport { isDestroyed, isDestroying } from '@glimmer/destroyable';\nimport { DEBUG } from '@glimmer/env';\nconst objectPrototype = Object.prototype;\nlet counters;\n\nif (DEBUG) {\n  counters = {\n    peekCalls: 0,\n    peekPrototypeWalks: 0,\n    setCalls: 0,\n    deleteCalls: 0,\n    metaCalls: 0,\n    metaInstantiated: 0,\n    matchingListenersCalls: 0,\n    observerEventsCalls: 0,\n    addToListenersCalls: 0,\n    removeFromListenersCalls: 0,\n    removeAllListenersCalls: 0,\n    listenersInherited: 0,\n    listenersFlattened: 0,\n    parentListenersUsed: 0,\n    flattenedListenersCalls: 0,\n    reopensAfterFlatten: 0,\n    readableLazyChainsCalls: 0,\n    writableLazyChainsCalls: 0\n  };\n}\n/**\n@module ember\n*/\n\n\nexport const UNDEFINED = symbol('undefined');\nlet currentListenerVersion = 1;\nexport class Meta {\n  // DEBUG\n  constructor(obj) {\n    this._listenersVersion = 1;\n    this._inheritedEnd = -1;\n    this._flattenedVersion = 0;\n\n    if (DEBUG) {\n      counters.metaInstantiated++;\n    }\n\n    this._parent = undefined;\n    this._descriptors = undefined;\n    this._mixins = undefined;\n    this._lazyChains = undefined;\n    this._values = undefined;\n    this._revisions = undefined; // initial value for all flags right now is false\n    // see FLAGS const for detailed list of flags used\n\n    this._isInit = false; // used only internally\n\n    this.source = obj;\n    this.proto = obj.constructor === undefined ? undefined : obj.constructor.prototype;\n    this._listeners = undefined;\n  }\n\n  get parent() {\n    let parent = this._parent;\n\n    if (parent === undefined) {\n      let proto = getPrototypeOf(this.source);\n      this._parent = parent = proto === null || proto === objectPrototype ? null : meta(proto);\n    }\n\n    return parent;\n  } // These methods are here to prevent errors in legacy compat with some addons\n  // that used them as intimate API\n\n\n  setSourceDestroying() {\n    deprecate('setSourceDestroying is deprecated, use the destroy() API to destroy the object directly instead', false, {\n      id: 'meta-destruction-apis',\n      until: '3.25.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.21.0'\n      }\n    });\n  }\n\n  setSourceDestroyed() {\n    deprecate('setSourceDestroyed is deprecated, use the destroy() API to destroy the object directly instead', false, {\n      id: 'meta-destruction-apis',\n      until: '3.25.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.21.0'\n      }\n    });\n  }\n\n  isSourceDestroying() {\n    deprecate('isSourceDestroying is deprecated, use the isDestroying() API to check the object destruction state directly instead', false, {\n      id: 'meta-destruction-apis',\n      until: '3.25.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.21.0'\n      }\n    });\n    return isDestroying(this.source);\n  }\n\n  isSourceDestroyed() {\n    deprecate('isSourceDestroyed is deprecated, use the isDestroyed() API to check the object destruction state directly instead', false, {\n      id: 'meta-destruction-apis',\n      until: '3.25.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.21.0'\n      }\n    });\n    return isDestroyed(this.source);\n  }\n\n  setInitializing() {\n    this._isInit = true;\n  }\n\n  unsetInitializing() {\n    this._isInit = false;\n  }\n\n  isInitializing() {\n    return this._isInit;\n  }\n\n  isPrototypeMeta(obj) {\n    return this.proto === this.source && this.source === obj;\n  }\n\n  _getOrCreateOwnMap(key) {\n    return this[key] || (this[key] = Object.create(null));\n  }\n\n  _getOrCreateOwnSet(key) {\n    return this[key] || (this[key] = new Set());\n  }\n\n  _findInheritedMap(key, subkey) {\n    let pointer = this;\n\n    while (pointer !== null) {\n      let map = pointer[key];\n\n      if (map !== undefined) {\n        let value = map.get(subkey);\n\n        if (value !== undefined) {\n          return value;\n        }\n      }\n\n      pointer = pointer.parent;\n    }\n  }\n\n  _hasInInheritedSet(key, value) {\n    let pointer = this;\n\n    while (pointer !== null) {\n      let set = pointer[key];\n\n      if (set !== undefined && set.has(value)) {\n        return true;\n      }\n\n      pointer = pointer.parent;\n    }\n\n    return false;\n  }\n\n  valueFor(key) {\n    let values = this._values;\n    return values !== undefined ? values[key] : undefined;\n  }\n\n  setValueFor(key, value) {\n    let values = this._getOrCreateOwnMap('_values');\n\n    values[key] = value;\n  }\n\n  revisionFor(key) {\n    let revisions = this._revisions;\n    return revisions !== undefined ? revisions[key] : undefined;\n  }\n\n  setRevisionFor(key, revision) {\n    let revisions = this._getOrCreateOwnMap('_revisions');\n\n    revisions[key] = revision;\n  }\n\n  writableLazyChainsFor(key) {\n    if (DEBUG) {\n      counters.writableLazyChainsCalls++;\n    }\n\n    let lazyChains = this._getOrCreateOwnMap('_lazyChains');\n\n    let chains = lazyChains[key];\n\n    if (chains === undefined) {\n      chains = lazyChains[key] = [];\n    }\n\n    return chains;\n  }\n\n  readableLazyChainsFor(key) {\n    if (DEBUG) {\n      counters.readableLazyChainsCalls++;\n    }\n\n    let lazyChains = this._lazyChains;\n\n    if (lazyChains !== undefined) {\n      return lazyChains[key];\n    }\n\n    return undefined;\n  }\n\n  addMixin(mixin) {\n    assert(isDestroyed(this.source) ? `Cannot add mixins of \\`${toString(mixin)}\\` on \\`${toString(this.source)}\\` call addMixin after it has been destroyed.` : '', !isDestroyed(this.source));\n\n    let set = this._getOrCreateOwnSet('_mixins');\n\n    set.add(mixin);\n  }\n\n  hasMixin(mixin) {\n    return this._hasInInheritedSet('_mixins', mixin);\n  }\n\n  forEachMixins(fn) {\n    let pointer = this;\n    let seen;\n\n    while (pointer !== null) {\n      let set = pointer._mixins;\n\n      if (set !== undefined) {\n        seen = seen === undefined ? new Set() : seen; // TODO cleanup typing here\n\n        set.forEach(mixin => {\n          if (!seen.has(mixin)) {\n            seen.add(mixin);\n            fn(mixin);\n          }\n        });\n      }\n\n      pointer = pointer.parent;\n    }\n  }\n\n  writeDescriptors(subkey, value) {\n    assert(isDestroyed(this.source) ? `Cannot update descriptors for \\`${subkey}\\` on \\`${toString(this.source)}\\` after it has been destroyed.` : '', !isDestroyed(this.source));\n    let map = this._descriptors || (this._descriptors = new Map());\n    map.set(subkey, value);\n  }\n\n  peekDescriptors(subkey) {\n    let possibleDesc = this._findInheritedMap('_descriptors', subkey);\n\n    return possibleDesc === UNDEFINED ? undefined : possibleDesc;\n  }\n\n  removeDescriptors(subkey) {\n    this.writeDescriptors(subkey, UNDEFINED);\n  }\n\n  forEachDescriptors(fn) {\n    let pointer = this;\n    let seen;\n\n    while (pointer !== null) {\n      let map = pointer._descriptors;\n\n      if (map !== undefined) {\n        seen = seen === undefined ? new Set() : seen;\n        map.forEach((value, key) => {\n          if (!seen.has(key)) {\n            seen.add(key);\n\n            if (value !== UNDEFINED) {\n              fn(key, value);\n            }\n          }\n        });\n      }\n\n      pointer = pointer.parent;\n    }\n  }\n\n  addToListeners(eventName, target, method, once, sync) {\n    if (DEBUG) {\n      counters.addToListenersCalls++;\n    }\n\n    this.pushListener(eventName, target, method, once ? 1\n    /* ONCE */\n    : 0\n    /* ADD */\n    , sync);\n  }\n\n  removeFromListeners(eventName, target, method) {\n    if (DEBUG) {\n      counters.removeFromListenersCalls++;\n    }\n\n    this.pushListener(eventName, target, method, 2\n    /* REMOVE */\n    );\n  }\n\n  pushListener(event, target, method, kind, sync = false) {\n    let listeners = this.writableListeners();\n    let i = indexOfListener(listeners, event, target, method); // remove if found listener was inherited\n\n    if (i !== -1 && i < this._inheritedEnd) {\n      listeners.splice(i, 1);\n      this._inheritedEnd--;\n      i = -1;\n    } // if not found, push. Note that we must always push if a listener is not\n    // found, even in the case of a function listener remove, because we may be\n    // attempting to add or remove listeners _before_ flattening has occurred.\n\n\n    if (i === -1) {\n      assert('You cannot add function listeners to prototypes. Convert the listener to a string listener, or add it to the instance instead.', !(this.isPrototypeMeta(this.source) && typeof method === 'function'));\n      assert('You attempted to remove a function listener which did not exist on the instance, which means you may have attempted to remove it before it was added.', !(!this.isPrototypeMeta(this.source) && typeof method === 'function' && kind === 2\n      /* REMOVE */\n      ));\n      listeners.push({\n        event,\n        target,\n        method,\n        kind,\n        sync\n      });\n    } else {\n      let listener = listeners[i]; // If the listener is our own listener and we are trying to remove it, we\n      // want to splice it out entirely so we don't hold onto a reference.\n\n      if (kind === 2\n      /* REMOVE */\n      && listener.kind !== 2\n      /* REMOVE */\n      ) {\n          listeners.splice(i, 1);\n        } else {\n        assert(`You attempted to add an observer for the same method on '${event.split(':')[0]}' twice to ${target} as both sync and async. Observers must be either sync or async, they cannot be both. This is likely a mistake, you should either remove the code that added the observer a second time, or update it to always be sync or async. The method was ${method}.`, !(listener.kind === 0\n        /* ADD */\n        && kind === 0\n        /* ADD */\n        && listener.sync !== sync)); // update own listener\n\n        listener.kind = kind;\n        listener.sync = sync;\n      }\n    }\n  }\n\n  writableListeners() {\n    // Check if we need to invalidate and reflatten. We need to do this if we\n    // have already flattened (flattened version is the current version) and\n    // we are either writing to a prototype meta OR we have never inherited, and\n    // may have cached the parent's listeners.\n    if (this._flattenedVersion === currentListenerVersion && (this.source === this.proto || this._inheritedEnd === -1)) {\n      if (DEBUG) {\n        counters.reopensAfterFlatten++;\n      }\n\n      currentListenerVersion++;\n    } // Inherited end has not been set, then we have never created our own\n    // listeners, but may have cached the parent's\n\n\n    if (this._inheritedEnd === -1) {\n      this._inheritedEnd = 0;\n      this._listeners = [];\n    }\n\n    return this._listeners;\n  }\n  /**\n    Flattening is based on a global revision counter. If the revision has\n    bumped it means that somewhere in a class inheritance chain something has\n    changed, so we need to reflatten everything. This can only happen if:\n       1. A meta has been flattened (listener has been called)\n    2. The meta is a prototype meta with children who have inherited its\n       listeners\n    3. A new listener is subsequently added to the meta (e.g. via `.reopen()`)\n       This is a very rare occurrence, so while the counter is global it shouldn't\n    be updated very often in practice.\n  */\n\n\n  flattenedListeners() {\n    if (DEBUG) {\n      counters.flattenedListenersCalls++;\n    }\n\n    if (this._flattenedVersion < currentListenerVersion) {\n      if (DEBUG) {\n        counters.listenersFlattened++;\n      }\n\n      let parent = this.parent;\n\n      if (parent !== null) {\n        // compute\n        let parentListeners = parent.flattenedListeners();\n\n        if (parentListeners !== undefined) {\n          if (this._listeners === undefined) {\n            // If this instance doesn't have any of its own listeners (writableListeners\n            // has never been called) then we don't need to do any flattening, return\n            // the parent's listeners instead.\n            if (DEBUG) {\n              counters.parentListenersUsed++;\n            }\n\n            this._listeners = parentListeners;\n          } else {\n            let listeners = this._listeners;\n\n            if (this._inheritedEnd > 0) {\n              listeners.splice(0, this._inheritedEnd);\n              this._inheritedEnd = 0;\n            }\n\n            for (let i = 0; i < parentListeners.length; i++) {\n              let listener = parentListeners[i];\n              let index = indexOfListener(listeners, listener.event, listener.target, listener.method);\n\n              if (index === -1) {\n                if (DEBUG) {\n                  counters.listenersInherited++;\n                }\n\n                listeners.unshift(listener);\n                this._inheritedEnd++;\n              }\n            }\n          }\n        }\n      }\n\n      this._flattenedVersion = currentListenerVersion;\n    }\n\n    return this._listeners;\n  }\n\n  matchingListeners(eventName) {\n    let listeners = this.flattenedListeners();\n    let result;\n\n    if (DEBUG) {\n      counters.matchingListenersCalls++;\n    }\n\n    if (listeners !== undefined) {\n      for (let index = 0; index < listeners.length; index++) {\n        let listener = listeners[index]; // REMOVE listeners are placeholders that tell us not to\n        // inherit, so they never match. Only ADD and ONCE can match.\n\n        if (listener.event === eventName && (listener.kind === 0\n        /* ADD */\n        || listener.kind === 1\n        /* ONCE */\n        )) {\n          if (result === undefined) {\n            // we create this array only after we've found a listener that\n            // matches to avoid allocations when no matches are found.\n            result = [];\n          }\n\n          result.push(listener.target, listener.method, listener.kind === 1\n          /* ONCE */\n          );\n        }\n      }\n    }\n\n    return result;\n  }\n\n  observerEvents() {\n    let listeners = this.flattenedListeners();\n    let result;\n\n    if (DEBUG) {\n      counters.observerEventsCalls++;\n    }\n\n    if (listeners !== undefined) {\n      for (let index = 0; index < listeners.length; index++) {\n        let listener = listeners[index]; // REMOVE listeners are placeholders that tell us not to\n        // inherit, so they never match. Only ADD and ONCE can match.\n\n        if ((listener.kind === 0\n        /* ADD */\n        || listener.kind === 1\n        /* ONCE */\n        ) && listener.event.indexOf(':change') !== -1) {\n          if (result === undefined) {\n            // we create this array only after we've found a listener that\n            // matches to avoid allocations when no matches are found.\n            result = [];\n          }\n\n          result.push(listener);\n        }\n      }\n    }\n\n    return result;\n  }\n\n}\nconst getPrototypeOf = Object.getPrototypeOf;\nconst metaStore = new WeakMap();\nexport function setMeta(obj, meta) {\n  assert('Cannot call `setMeta` on null', obj !== null);\n  assert('Cannot call `setMeta` on undefined', obj !== undefined);\n  assert(`Cannot call \\`setMeta\\` on ${typeof obj}`, typeof obj === 'object' || typeof obj === 'function');\n\n  if (DEBUG) {\n    counters.setCalls++;\n  }\n\n  metaStore.set(obj, meta);\n}\nexport function peekMeta(obj) {\n  assert('Cannot call `peekMeta` on null', obj !== null);\n  assert('Cannot call `peekMeta` on undefined', obj !== undefined);\n  assert(`Cannot call \\`peekMeta\\` on ${typeof obj}`, typeof obj === 'object' || typeof obj === 'function');\n\n  if (DEBUG) {\n    counters.peekCalls++;\n  }\n\n  let meta = metaStore.get(obj);\n\n  if (meta !== undefined) {\n    return meta;\n  }\n\n  let pointer = getPrototypeOf(obj);\n\n  while (pointer !== null) {\n    if (DEBUG) {\n      counters.peekPrototypeWalks++;\n    }\n\n    meta = metaStore.get(pointer);\n\n    if (meta !== undefined) {\n      if (meta.proto !== pointer) {\n        // The meta was a prototype meta which was not marked as initializing.\n        // This can happen when a prototype chain was created manually via\n        // Object.create() and the source object does not have a constructor.\n        meta.proto = pointer;\n      }\n\n      return meta;\n    }\n\n    pointer = getPrototypeOf(pointer);\n  }\n\n  return null;\n}\n/**\n  Retrieves the meta hash for an object. If `writable` is true ensures the\n  hash is writable for this object as well.\n\n  The meta object contains information about computed property descriptors as\n  well as any watched properties and other information. You generally will\n  not access this information directly but instead work with higher level\n  methods that manipulate this hash indirectly.\n\n  @method meta\n  @for Ember\n  @private\n\n  @param {Object} obj The object to retrieve meta for\n  @param {Boolean} [writable=true] Pass `false` if you do not intend to modify\n    the meta hash, allowing the method to avoid making an unnecessary copy.\n  @return {Object} the meta hash for an object\n*/\n\nexport const meta = function meta(obj) {\n  assert('Cannot call `meta` on null', obj !== null);\n  assert('Cannot call `meta` on undefined', obj !== undefined);\n  assert(`Cannot call \\`meta\\` on ${typeof obj}`, typeof obj === 'object' || typeof obj === 'function');\n\n  if (DEBUG) {\n    counters.metaCalls++;\n  }\n\n  let maybeMeta = peekMeta(obj); // remove this code, in-favor of explicit parent\n\n  if (maybeMeta !== null && maybeMeta.source === obj) {\n    return maybeMeta;\n  }\n\n  let newMeta = new Meta(obj);\n  setMeta(obj, newMeta);\n  return newMeta;\n};\n\nif (DEBUG) {\n  meta._counters = counters;\n}\n\nexport { counters };\n\nfunction indexOfListener(listeners, event, target, method) {\n  for (let i = listeners.length - 1; i >= 0; i--) {\n    let listener = listeners[i];\n\n    if (listener.event === event && listener.target === target && listener.method === method) {\n      return i;\n    }\n  }\n\n  return -1;\n}","import { meta, peekMeta } from '@ember/-internals/meta';\nimport { setListeners, isObject, setupMandatorySetter, symbol, toString, enumerableSymbol, getDebugName, setWithMandatorySetter, Cache, HAS_NATIVE_PROXY, isEmberArray, setProxy, lookupDescriptor, inspect, getName, setName, guidFor, makeArray, observerListenerMetaFor, ROOT, setObservers, wrap } from '@ember/-internals/utils';\nimport { assert, deprecate, warn, debug } from '@ember/debug';\nimport { ENV, context } from '@ember/-internals/environment';\nimport { schedule } from '@ember/runloop';\nimport { registerDestructor, isDestroyed } from '@glimmer/destroyable';\nimport { CURRENT_TAG, tagMetaFor, validateTag, valueForTag, CONSTANT_TAG, dirtyTagFor, tagFor, combine, createUpdatableTag, updateTag, consumeTag, deprecateMutationsInTrackingTransaction, isTracking, track, ALLOW_CYCLES, untrack, trackedData } from '@glimmer/validator';\nexport { createCache, getValue, isConst } from '@glimmer/validator';\nimport { DEBUG } from '@glimmer/env';\nimport { getCustomTagFor } from '@glimmer/manager';\nimport { _WeakSet } from '@glimmer/util';\nimport EmberError from '@ember/error';\nimport VERSION from 'ember/version';\nimport { INIT_FACTORY } from '@ember/-internals/container';\nimport { ALIAS_METHOD } from '@ember/deprecated-features';\nimport { assign } from '@ember/polyfills';\nimport { getOwner } from '@ember/-internals/owner';\n\n/**\n@module @ember/object\n*/\n/*\n  The event system uses a series of nested hashes to store listeners on an\n  object. When a listener is registered, or when an event arrives, these\n  hashes are consulted to determine which target and action pair to invoke.\n\n  The hashes are stored in the object's meta hash, and look like this:\n\n      // Object's meta hash\n      {\n        listeners: {       // variable name: `listenerSet`\n          \"foo:change\": [ // variable name: `actions`\n            target, method, once\n          ]\n        }\n      }\n\n*/\n\n/**\n  Add an event listener\n\n  @method addListener\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @param {Object|Function} target A target object or a function\n  @param {Function|String} method A function or the name of a function to be called on `target`\n  @param {Boolean} once A flag whether a function should only be called once\n  @public\n*/\n\nfunction addListener(obj, eventName, target, method, once, sync = true) {\n  assert('You must pass at least an object and event name to addListener', Boolean(obj) && Boolean(eventName));\n\n  if (!method && 'function' === typeof target) {\n    method = target;\n    target = null;\n  }\n\n  meta(obj).addToListeners(eventName, target, method, once === true, sync);\n}\n/**\n  Remove an event listener\n\n  Arguments should match those passed to `addListener`.\n\n  @method removeListener\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @param {Object|Function} target A target object or a function\n  @param {Function|String} method A function or the name of a function to be called on `target`\n  @public\n*/\n\nfunction removeListener(obj, eventName, targetOrFunction, functionOrName) {\n  assert('You must pass at least an object, event name, and method or target and method/method name to removeListener', Boolean(obj) && Boolean(eventName) && (typeof targetOrFunction === 'function' || typeof targetOrFunction === 'object' && Boolean(functionOrName)));\n  let target, method;\n\n  if (typeof targetOrFunction === 'object') {\n    target = targetOrFunction;\n    method = functionOrName;\n  } else {\n    target = null;\n    method = targetOrFunction;\n  }\n\n  let m = meta(obj);\n  m.removeFromListeners(eventName, target, method);\n}\n/**\n  Send an event. The execution of suspended listeners\n  is skipped, and once listeners are removed. A listener without\n  a target is executed on the passed object. If an array of actions\n  is not passed, the actions stored on the passed object are invoked.\n\n  @method sendEvent\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @param {Array} params Optional parameters for each listener.\n  @return {Boolean} if the event was delivered to one or more actions\n  @public\n*/\n\nfunction sendEvent(obj, eventName, params, actions, _meta) {\n  if (actions === undefined) {\n    let meta$$1 = _meta === undefined ? peekMeta(obj) : _meta;\n    actions = meta$$1 !== null ? meta$$1.matchingListeners(eventName) : undefined;\n  }\n\n  if (actions === undefined || actions.length === 0) {\n    return false;\n  }\n\n  for (let i = actions.length - 3; i >= 0; i -= 3) {\n    // looping in reverse for once listeners\n    let target = actions[i];\n    let method = actions[i + 1];\n    let once = actions[i + 2];\n\n    if (!method) {\n      continue;\n    }\n\n    if (once) {\n      removeListener(obj, eventName, target, method);\n    }\n\n    if (!target) {\n      target = obj;\n    }\n\n    let type = typeof method;\n\n    if (type === 'string' || type === 'symbol') {\n      method = target[method];\n    }\n\n    method.apply(target, params);\n  }\n\n  return true;\n}\n/**\n  @private\n  @method hasListeners\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @return {Boolean} if `obj` has listeners for event `eventName`\n*/\n\nfunction hasListeners(obj, eventName) {\n  let meta$$1 = peekMeta(obj);\n\n  if (meta$$1 === null) {\n    return false;\n  }\n\n  let matched = meta$$1.matchingListeners(eventName);\n  return matched !== undefined && matched.length > 0;\n}\n/**\n  Define a property as a function that should be executed when\n  a specified event or events are triggered.\n\n  ``` javascript\n  import EmberObject from '@ember/object';\n  import { on } from '@ember/object/evented';\n  import { sendEvent } from '@ember/object/events';\n\n  let Job = EmberObject.extend({\n    logCompleted: on('completed', function() {\n      console.log('Job completed!');\n    })\n  });\n\n  let job = Job.create();\n\n  sendEvent(job, 'completed'); // Logs 'Job completed!'\n ```\n\n  @method on\n  @static\n  @for @ember/object/evented\n  @param {String} eventNames*\n  @param {Function} func\n  @return {Function} the listener function, passed as last argument to on(...)\n  @public\n*/\n\nfunction on(...args) {\n  let func = args.pop();\n  let events = args;\n  assert('on expects function as last argument', typeof func === 'function');\n  assert('on called without valid event names', events.length > 0 && events.every(p => typeof p === 'string' && p.length > 0));\n  setListeners(func, events);\n  return func;\n}\n\nconst AFTER_OBSERVERS = ':change';\nfunction changeEvent(keyName) {\n  return keyName + AFTER_OBSERVERS;\n}\n\nconst SYNC_DEFAULT = !ENV._DEFAULT_ASYNC_OBSERVERS;\nconst SYNC_OBSERVERS = new Map();\nconst ASYNC_OBSERVERS = new Map();\n/**\n@module @ember/object\n*/\n\n/**\n  @method addObserver\n  @static\n  @for @ember/object/observers\n  @param obj\n  @param {String} path\n  @param {Object|Function} target\n  @param {Function|String} [method]\n  @public\n*/\n\nfunction addObserver(obj, path, target, method, sync = SYNC_DEFAULT) {\n  let eventName = changeEvent(path);\n  addListener(obj, eventName, target, method, false, sync);\n  let meta$$1 = peekMeta(obj);\n\n  if (meta$$1 === null || !(meta$$1.isPrototypeMeta(obj) || meta$$1.isInitializing())) {\n    activateObserver(obj, eventName, sync);\n  }\n}\n/**\n  @method removeObserver\n  @static\n  @for @ember/object/observers\n  @param obj\n  @param {String} path\n  @param {Object|Function} target\n  @param {Function|String} [method]\n  @public\n*/\n\nfunction removeObserver(obj, path, target, method, sync = SYNC_DEFAULT) {\n  let eventName = changeEvent(path);\n  let meta$$1 = peekMeta(obj);\n\n  if (meta$$1 === null || !(meta$$1.isPrototypeMeta(obj) || meta$$1.isInitializing())) {\n    deactivateObserver(obj, eventName, sync);\n  }\n\n  removeListener(obj, eventName, target, method);\n}\n\nfunction getOrCreateActiveObserversFor(target, sync) {\n  let observerMap = sync === true ? SYNC_OBSERVERS : ASYNC_OBSERVERS;\n\n  if (!observerMap.has(target)) {\n    observerMap.set(target, new Map());\n    registerDestructor(target, () => destroyObservers(target), true);\n  }\n\n  return observerMap.get(target);\n}\n\nfunction activateObserver(target, eventName, sync = false) {\n  let activeObservers = getOrCreateActiveObserversFor(target, sync);\n\n  if (activeObservers.has(eventName)) {\n    activeObservers.get(eventName).count++;\n  } else {\n    let path = eventName.substring(0, eventName.lastIndexOf(':'));\n    let tag = getChainTagsForKey(target, path, tagMetaFor(target), peekMeta(target));\n    activeObservers.set(eventName, {\n      count: 1,\n      path,\n      tag,\n      lastRevision: valueForTag(tag),\n      suspended: false\n    });\n  }\n}\nlet DEACTIVATE_SUSPENDED = false;\nlet SCHEDULED_DEACTIVATE = [];\nfunction deactivateObserver(target, eventName, sync = false) {\n  if (DEACTIVATE_SUSPENDED === true) {\n    SCHEDULED_DEACTIVATE.push([target, eventName, sync]);\n    return;\n  }\n\n  let observerMap = sync === true ? SYNC_OBSERVERS : ASYNC_OBSERVERS;\n  let activeObservers = observerMap.get(target);\n\n  if (activeObservers !== undefined) {\n    let observer = activeObservers.get(eventName);\n    observer.count--;\n\n    if (observer.count === 0) {\n      activeObservers.delete(eventName);\n\n      if (activeObservers.size === 0) {\n        observerMap.delete(target);\n      }\n    }\n  }\n}\nfunction suspendedObserverDeactivation() {\n  DEACTIVATE_SUSPENDED = true;\n}\nfunction resumeObserverDeactivation() {\n  DEACTIVATE_SUSPENDED = false;\n\n  for (let [target, eventName, sync] of SCHEDULED_DEACTIVATE) {\n    deactivateObserver(target, eventName, sync);\n  }\n\n  SCHEDULED_DEACTIVATE = [];\n}\n/**\n * Primarily used for cases where we are redefining a class, e.g. mixins/reopen\n * being applied later. Revalidates all the observers, resetting their tags.\n *\n * @private\n * @param target\n */\n\nfunction revalidateObservers(target) {\n  if (ASYNC_OBSERVERS.has(target)) {\n    ASYNC_OBSERVERS.get(target).forEach(observer => {\n      observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n      observer.lastRevision = valueForTag(observer.tag);\n    });\n  }\n\n  if (SYNC_OBSERVERS.has(target)) {\n    SYNC_OBSERVERS.get(target).forEach(observer => {\n      observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n      observer.lastRevision = valueForTag(observer.tag);\n    });\n  }\n}\nlet lastKnownRevision = 0;\nfunction flushAsyncObservers(shouldSchedule = true) {\n  let currentRevision = valueForTag(CURRENT_TAG);\n\n  if (lastKnownRevision === currentRevision) {\n    return;\n  }\n\n  lastKnownRevision = currentRevision;\n  ASYNC_OBSERVERS.forEach((activeObservers, target) => {\n    let meta$$1 = peekMeta(target);\n    activeObservers.forEach((observer, eventName) => {\n      if (!validateTag(observer.tag, observer.lastRevision)) {\n        let sendObserver = () => {\n          try {\n            sendEvent(target, eventName, [target, observer.path], undefined, meta$$1);\n          } finally {\n            observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n            observer.lastRevision = valueForTag(observer.tag);\n          }\n        };\n\n        if (shouldSchedule) {\n          schedule('actions', sendObserver);\n        } else {\n          sendObserver();\n        }\n      }\n    });\n  });\n}\nfunction flushSyncObservers() {\n  // When flushing synchronous observers, we know that something has changed (we\n  // only do this during a notifyPropertyChange), so there's no reason to check\n  // a global revision.\n  SYNC_OBSERVERS.forEach((activeObservers, target) => {\n    let meta$$1 = peekMeta(target);\n    activeObservers.forEach((observer, eventName) => {\n      if (!observer.suspended && !validateTag(observer.tag, observer.lastRevision)) {\n        try {\n          observer.suspended = true;\n          sendEvent(target, eventName, [target, observer.path], undefined, meta$$1);\n        } finally {\n          observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n          observer.lastRevision = valueForTag(observer.tag);\n          observer.suspended = false;\n        }\n      }\n    });\n  });\n}\nfunction setObserverSuspended(target, property, suspended) {\n  let activeObservers = SYNC_OBSERVERS.get(target);\n\n  if (!activeObservers) {\n    return;\n  }\n\n  let observer = activeObservers.get(changeEvent(property));\n\n  if (observer) {\n    observer.suspended = suspended;\n  }\n}\nfunction destroyObservers(target) {\n  if (SYNC_OBSERVERS.size > 0) SYNC_OBSERVERS.delete(target);\n  if (ASYNC_OBSERVERS.size > 0) ASYNC_OBSERVERS.delete(target);\n}\n\nconst SELF_TAG = symbol('SELF_TAG');\nfunction tagForProperty(obj, propertyKey, addMandatorySetter = false, meta$$1) {\n  let customTagFor = getCustomTagFor(obj);\n\n  if (customTagFor !== undefined) {\n    return customTagFor(obj, propertyKey, addMandatorySetter);\n  }\n\n  let tag = tagFor(obj, propertyKey, meta$$1);\n\n  if (DEBUG && addMandatorySetter) {\n    setupMandatorySetter(tag, obj, propertyKey);\n  }\n\n  return tag;\n}\nfunction tagForObject(obj) {\n  if (isObject(obj)) {\n    if (DEBUG) {\n      assert(isDestroyed(obj) ? `Cannot create a new tag for \\`${toString(obj)}\\` after it has been destroyed.` : '', !isDestroyed(obj));\n    }\n\n    return tagFor(obj, SELF_TAG);\n  }\n\n  return CONSTANT_TAG;\n}\nfunction markObjectAsDirty(obj, propertyKey) {\n  dirtyTagFor(obj, propertyKey);\n  dirtyTagFor(obj, SELF_TAG);\n}\n\n/**\n @module ember\n @private\n */\n\nconst PROPERTY_DID_CHANGE = enumerableSymbol('PROPERTY_DID_CHANGE');\nlet deferred = 0;\n/**\n  This function is called just after an object property has changed.\n  It will notify any observers and clear caches among other things.\n\n  Normally you will not need to call this method directly but if for some\n  reason you can't directly watch a property you can invoke this method\n  manually.\n\n  @method notifyPropertyChange\n  @for @ember/object\n  @param {Object} obj The object with the property that will change\n  @param {String} keyName The property key (or path) that will change.\n  @param {Meta} [_meta] The objects meta.\n  @param {unknown} [value] The new value to set for the property\n  @return {void}\n  @since 3.1.0\n  @public\n*/\n\nfunction notifyPropertyChange(obj, keyName, _meta, value) {\n  let meta$$1 = _meta === undefined ? peekMeta(obj) : _meta;\n\n  if (meta$$1 !== null && (meta$$1.isInitializing() || meta$$1.isPrototypeMeta(obj))) {\n    return;\n  }\n\n  markObjectAsDirty(obj, keyName);\n\n  if (deferred <= 0) {\n    flushSyncObservers();\n  }\n\n  if (PROPERTY_DID_CHANGE in obj) {\n    // we need to check the arguments length here; there's a check in `PROPERTY_DID_CHANGE`\n    // that checks its arguments length, so we have to explicitly not call this with `value`\n    // if it is not passed to `notifyPropertyChange`\n    if (arguments.length === 4) {\n      obj[PROPERTY_DID_CHANGE](keyName, value);\n    } else {\n      obj[PROPERTY_DID_CHANGE](keyName);\n    }\n  }\n}\n/**\n  @method beginPropertyChanges\n  @chainable\n  @private\n*/\n\n\nfunction beginPropertyChanges() {\n  deferred++;\n  suspendedObserverDeactivation();\n}\n/**\n  @method endPropertyChanges\n  @private\n*/\n\n\nfunction endPropertyChanges() {\n  deferred--;\n\n  if (deferred <= 0) {\n    flushSyncObservers();\n    resumeObserverDeactivation();\n  }\n}\n/**\n  Make a series of property changes together in an\n  exception-safe way.\n\n  ```javascript\n  Ember.changeProperties(function() {\n    obj1.set('foo', mayBlowUpWhenSet);\n    obj2.set('bar', baz);\n  });\n  ```\n\n  @method changeProperties\n  @param {Function} callback\n  @private\n*/\n\n\nfunction changeProperties(callback) {\n  beginPropertyChanges();\n\n  try {\n    callback();\n  } finally {\n    endPropertyChanges();\n  }\n}\n\nfunction arrayContentWillChange(array, startIdx, removeAmt, addAmt) {\n  // if no args are passed assume everything changes\n  if (startIdx === undefined) {\n    startIdx = 0;\n    removeAmt = addAmt = -1;\n  } else {\n    if (removeAmt === undefined) {\n      removeAmt = -1;\n    }\n\n    if (addAmt === undefined) {\n      addAmt = -1;\n    }\n  }\n\n  sendEvent(array, '@array:before', [array, startIdx, removeAmt, addAmt]);\n  return array;\n}\nfunction arrayContentDidChange(array, startIdx, removeAmt, addAmt, notify = true) {\n  // if no args are passed assume everything changes\n  if (startIdx === undefined) {\n    startIdx = 0;\n    removeAmt = addAmt = -1;\n  } else {\n    if (removeAmt === undefined) {\n      removeAmt = -1;\n    }\n\n    if (addAmt === undefined) {\n      addAmt = -1;\n    }\n  }\n\n  let meta$$1 = peekMeta(array);\n\n  if (notify) {\n    if (addAmt < 0 || removeAmt < 0 || addAmt - removeAmt !== 0) {\n      notifyPropertyChange(array, 'length', meta$$1);\n    }\n\n    notifyPropertyChange(array, '[]', meta$$1);\n  }\n\n  sendEvent(array, '@array:change', [array, startIdx, removeAmt, addAmt]);\n\n  if (meta$$1 !== null) {\n    let length = array.length;\n    let addedAmount = addAmt === -1 ? 0 : addAmt;\n    let removedAmount = removeAmt === -1 ? 0 : removeAmt;\n    let delta = addedAmount - removedAmount;\n    let previousLength = length - delta;\n    let normalStartIdx = startIdx < 0 ? previousLength + startIdx : startIdx;\n\n    if (meta$$1.revisionFor('firstObject') !== undefined && normalStartIdx === 0) {\n      notifyPropertyChange(array, 'firstObject', meta$$1);\n    }\n\n    if (meta$$1.revisionFor('lastObject') !== undefined) {\n      let previousLastIndex = previousLength - 1;\n      let lastAffectedIndex = normalStartIdx + removedAmount;\n\n      if (previousLastIndex < lastAffectedIndex) {\n        notifyPropertyChange(array, 'lastObject', meta$$1);\n      }\n    }\n  }\n\n  return array;\n}\n\nconst EMPTY_ARRAY = Object.freeze([]);\nfunction objectAt(array, index) {\n  if (Array.isArray(array)) {\n    return array[index];\n  } else {\n    return array.objectAt(index);\n  }\n}\nfunction replace(array, start, deleteCount, items = EMPTY_ARRAY) {\n  if (Array.isArray(array)) {\n    replaceInNativeArray(array, start, deleteCount, items);\n  } else {\n    array.replace(start, deleteCount, items);\n  }\n}\nconst CHUNK_SIZE = 60000; // To avoid overflowing the stack, we splice up to CHUNK_SIZE items at a time.\n// See https://code.google.com/p/chromium/issues/detail?id=56588 for more details.\n\nfunction replaceInNativeArray(array, start, deleteCount, items) {\n  arrayContentWillChange(array, start, deleteCount, items.length);\n\n  if (items.length <= CHUNK_SIZE) {\n    array.splice(start, deleteCount, ...items);\n  } else {\n    array.splice(start, deleteCount);\n\n    for (let i = 0; i < items.length; i += CHUNK_SIZE) {\n      let chunk = items.slice(i, i + CHUNK_SIZE);\n      array.splice(start + i, 0, ...chunk);\n    }\n  }\n\n  arrayContentDidChange(array, start, deleteCount, items.length);\n}\n\nfunction arrayObserversHelper(obj, target, opts, operation, notify) {\n  let willChange = opts && opts.willChange || 'arrayWillChange';\n  let didChange = opts && opts.didChange || 'arrayDidChange';\n  let hasObservers = obj.hasArrayObservers;\n  operation(obj, '@array:before', target, willChange);\n  operation(obj, '@array:change', target, didChange);\n\n  if (hasObservers === notify) {\n    notifyPropertyChange(obj, 'hasArrayObservers');\n  }\n\n  return obj;\n}\n\nfunction addArrayObserver(array, target, opts, suppress = false) {\n  deprecate(`Array observers have been deprecated. Added an array observer to ${getDebugName === null || getDebugName === void 0 ? void 0 : getDebugName(array)}.`, suppress, {\n    id: 'array-observers',\n    url: 'https://deprecations.emberjs.com/v3.x#toc_array-observers',\n    until: '4.0.0',\n    for: 'ember-source',\n    since: {\n      enabled: '3.26.0-beta.1'\n    }\n  });\n  return arrayObserversHelper(array, target, opts, addListener, false);\n}\nfunction removeArrayObserver(array, target, opts, suppress = false) {\n  deprecate(`Array observers have been deprecated. Removed an array observer from ${getDebugName === null || getDebugName === void 0 ? void 0 : getDebugName(array)}.`, suppress, {\n    id: 'array-observers',\n    url: 'https://deprecations.emberjs.com/v3.x#toc_array-observers',\n    until: '4.0.0',\n    for: 'ember-source',\n    since: {\n      enabled: '3.26.0-beta.1'\n    }\n  });\n  return arrayObserversHelper(array, target, opts, removeListener, true);\n}\n\nconst CHAIN_PASS_THROUGH = new _WeakSet();\nfunction finishLazyChains(meta$$1, key, value) {\n  let lazyTags = meta$$1.readableLazyChainsFor(key);\n\n  if (lazyTags === undefined) {\n    return;\n  }\n\n  if (isObject(value)) {\n    for (let i = 0; i < lazyTags.length; i++) {\n      let [tag, deps] = lazyTags[i];\n      updateTag(tag, getChainTagsForKey(value, deps, tagMetaFor(value), peekMeta(value)));\n    }\n  }\n\n  lazyTags.length = 0;\n}\nfunction getChainTagsForKeys(obj, keys, tagMeta, meta$$1) {\n  let tags = [];\n\n  for (let i = 0; i < keys.length; i++) {\n    getChainTags(tags, obj, keys[i], tagMeta, meta$$1);\n  }\n\n  return combine(tags);\n}\nfunction getChainTagsForKey(obj, key, tagMeta, meta$$1) {\n  return combine(getChainTags([], obj, key, tagMeta, meta$$1));\n}\n\nfunction getChainTags(chainTags, obj, path, tagMeta, meta$$1) {\n  let current = obj;\n  let currentTagMeta = tagMeta;\n  let currentMeta = meta$$1;\n  let pathLength = path.length;\n  let segmentEnd = -1; // prevent closures\n\n  let segment, descriptor; // eslint-disable-next-line no-constant-condition\n\n  while (true) {\n    let lastSegmentEnd = segmentEnd + 1;\n    segmentEnd = path.indexOf('.', lastSegmentEnd);\n\n    if (segmentEnd === -1) {\n      segmentEnd = pathLength;\n    }\n\n    segment = path.slice(lastSegmentEnd, segmentEnd); // If the segment is an @each, we can process it and then break\n\n    if (segment === '@each' && segmentEnd !== pathLength) {\n      lastSegmentEnd = segmentEnd + 1;\n      segmentEnd = path.indexOf('.', lastSegmentEnd); // There should be exactly one segment after an `@each` (i.e. `@each.foo`, not `@each.foo.bar`)\n\n      deprecate(`When using @each in a dependent-key or an observer, ` + `you can only chain one property level deep after ` + `the @each. That is, \\`${path.slice(0, segmentEnd)}\\` ` + `is allowed but \\`${path}\\` (which is what you passed) ` + `is not.\\n\\n` + `This was never supported. Currently, the extra segments ` + `are silently ignored, i.e. \\`${path}\\` behaves exactly ` + `the same as \\`${path.slice(0, segmentEnd)}\\`. ` + `In the future, this will throw an error.\\n\\n` + `If the current behavior is acceptable for your use case, ` + `please remove the extraneous segments by changing your ` + `key to \\`${path.slice(0, segmentEnd)}\\`. ` + `Otherwise, please create an intermediary computed property ` + `or switch to using tracked properties.`, segmentEnd === -1, {\n        until: '3.17.0',\n        id: 'ember-metal.computed-deep-each',\n        for: 'ember-source',\n        since: {\n          enabled: '3.13.0-beta.3'\n        }\n      });\n      let arrLength = current.length;\n\n      if (typeof arrLength !== 'number' || // TODO: should the second test be `isEmberArray` instead?\n      !(Array.isArray(current) || 'objectAt' in current)) {\n        // If the current object isn't an array, there's nothing else to do,\n        // we don't watch individual properties. Break out of the loop.\n        break;\n      } else if (arrLength === 0) {\n        // Fast path for empty arrays\n        chainTags.push(tagForProperty(current, '[]'));\n        break;\n      }\n\n      if (segmentEnd === -1) {\n        segment = path.slice(lastSegmentEnd);\n      } else {\n        // Deprecated, remove once we turn the deprecation into an assertion\n        segment = path.slice(lastSegmentEnd, segmentEnd);\n      } // Push the tags for each item's property\n\n\n      for (let i = 0; i < arrLength; i++) {\n        let item = objectAt(current, i);\n\n        if (item) {\n          assert(`When using @each to observe the array \\`${current.toString()}\\`, the items in the array must be objects`, typeof item === 'object');\n          chainTags.push(tagForProperty(item, segment, true));\n          currentMeta = peekMeta(item);\n          descriptor = currentMeta !== null ? currentMeta.peekDescriptors(segment) : undefined; // If the key is an alias, we need to bootstrap it\n\n          if (descriptor !== undefined && typeof descriptor.altKey === 'string') {\n            // tslint:disable-next-line: no-unused-expression\n            item[segment];\n          }\n        }\n      } // Push the tag for the array length itself\n\n\n      chainTags.push(tagForProperty(current, '[]', true, currentTagMeta));\n      break;\n    }\n\n    let propertyTag = tagForProperty(current, segment, true, currentTagMeta);\n    descriptor = currentMeta !== null ? currentMeta.peekDescriptors(segment) : undefined;\n    chainTags.push(propertyTag); // If we're at the end of the path, processing the last segment, and it's\n    // not an alias, we should _not_ get the last value, since we already have\n    // its tag. There's no reason to access it and do more work.\n\n    if (segmentEnd === pathLength) {\n      // If the key was an alias, we should always get the next value in order to\n      // bootstrap the alias. This is because aliases, unlike other CPs, should\n      // always be in sync with the aliased value.\n      if (CHAIN_PASS_THROUGH.has(descriptor)) {\n        // tslint:disable-next-line: no-unused-expression\n        current[segment];\n      }\n\n      break;\n    }\n\n    if (descriptor === undefined) {\n      // If the descriptor is undefined, then its a normal property, so we should\n      // lookup the value to chain off of like normal.\n      if (!(segment in current) && typeof current.unknownProperty === 'function') {\n        current = current.unknownProperty(segment);\n      } else {\n        current = current[segment];\n      }\n    } else if (CHAIN_PASS_THROUGH.has(descriptor)) {\n      current = current[segment];\n    } else {\n      // If the descriptor is defined, then its a normal CP (not an alias, which\n      // would have been handled earlier). We get the last revision to check if\n      // the CP is still valid, and if so we use the cached value. If not, then\n      // we create a lazy chain lookup, and the next time the CP is calculated,\n      // it will update that lazy chain.\n      let instanceMeta = currentMeta.source === current ? currentMeta : meta(current);\n      let lastRevision = instanceMeta.revisionFor(segment);\n\n      if (lastRevision !== undefined && validateTag(propertyTag, lastRevision)) {\n        current = instanceMeta.valueFor(segment);\n      } else {\n        // use metaFor here to ensure we have the meta for the instance\n        let lazyChains = instanceMeta.writableLazyChainsFor(segment);\n        let rest = path.substr(segmentEnd + 1);\n        let placeholderTag = createUpdatableTag();\n        lazyChains.push([placeholderTag, rest]);\n        chainTags.push(placeholderTag);\n        break;\n      }\n    }\n\n    if (!isObject(current)) {\n      // we've hit the end of the chain for now, break out\n      break;\n    }\n\n    currentTagMeta = tagMetaFor(current);\n    currentMeta = peekMeta(current);\n  }\n\n  return chainTags;\n}\n\nfunction isElementDescriptor(args) {\n  let [maybeTarget, maybeKey, maybeDesc] = args;\n  return (// Ensure we have the right number of args\n    args.length === 3 && ( // Make sure the target is a class or object (prototype)\n    typeof maybeTarget === 'function' || typeof maybeTarget === 'object' && maybeTarget !== null) && // Make sure the key is a string\n    typeof maybeKey === 'string' && ( // Make sure the descriptor is the right shape\n    typeof maybeDesc === 'object' && maybeDesc !== null || maybeDesc === undefined)\n  );\n}\nfunction nativeDescDecorator(propertyDesc) {\n  let decorator = function () {\n    return propertyDesc;\n  };\n\n  setClassicDecorator(decorator);\n  return decorator;\n}\n/**\n  Objects of this type can implement an interface to respond to requests to\n  get and set. The default implementation handles simple properties.\n\n  @class Descriptor\n  @private\n*/\n\nclass ComputedDescriptor {\n  constructor() {\n    this.enumerable = true;\n    this.configurable = true;\n    this._dependentKeys = undefined;\n    this._meta = undefined;\n  }\n\n  setup(_obj, keyName, _propertyDesc, meta$$1) {\n    meta$$1.writeDescriptors(keyName, this);\n  }\n\n  teardown(_obj, keyName, meta$$1) {\n    meta$$1.removeDescriptors(keyName);\n  }\n\n}\nlet COMPUTED_GETTERS;\n\nif (DEBUG) {\n  COMPUTED_GETTERS = new _WeakSet();\n}\n\nfunction DESCRIPTOR_GETTER_FUNCTION(name, descriptor) {\n  function getter() {\n    return descriptor.get(this, name);\n  }\n\n  if (DEBUG) {\n    COMPUTED_GETTERS.add(getter);\n  }\n\n  return getter;\n}\n\nfunction DESCRIPTOR_SETTER_FUNCTION(name, descriptor) {\n  let set = function CPSETTER_FUNCTION(value) {\n    return descriptor.set(this, name, value);\n  };\n\n  COMPUTED_SETTERS.add(set);\n  return set;\n}\n\nconst COMPUTED_SETTERS = new _WeakSet();\nfunction makeComputedDecorator(desc, DecoratorClass) {\n  let decorator = function COMPUTED_DECORATOR(target, key, propertyDesc, maybeMeta, isClassicDecorator) {\n    assert(`Only one computed property decorator can be applied to a class field or accessor, but '${key}' was decorated twice. You may have added the decorator to both a getter and setter, which is unnecessary.`, isClassicDecorator || !propertyDesc || !propertyDesc.get || !COMPUTED_GETTERS.has(propertyDesc.get));\n    let meta$$1 = arguments.length === 3 ? meta(target) : maybeMeta;\n    desc.setup(target, key, propertyDesc, meta$$1);\n    let computedDesc = {\n      enumerable: desc.enumerable,\n      configurable: desc.configurable,\n      get: DESCRIPTOR_GETTER_FUNCTION(key, desc),\n      set: DESCRIPTOR_SETTER_FUNCTION(key, desc)\n    };\n    return computedDesc;\n  };\n\n  setClassicDecorator(decorator, desc);\n  Object.setPrototypeOf(decorator, DecoratorClass.prototype);\n  return decorator;\n} /////////////\n\nconst DECORATOR_DESCRIPTOR_MAP = new WeakMap();\n/**\n  Returns the CP descriptor associated with `obj` and `keyName`, if any.\n\n  @method descriptorForProperty\n  @param {Object} obj the object to check\n  @param {String} keyName the key to check\n  @return {Descriptor}\n  @private\n*/\n\nfunction descriptorForProperty(obj, keyName, _meta) {\n  assert('Cannot call `descriptorForProperty` on null', obj !== null);\n  assert('Cannot call `descriptorForProperty` on undefined', obj !== undefined);\n  assert(`Cannot call \\`descriptorForProperty\\` on ${typeof obj}`, typeof obj === 'object' || typeof obj === 'function');\n  let meta$$1 = _meta === undefined ? peekMeta(obj) : _meta;\n\n  if (meta$$1 !== null) {\n    return meta$$1.peekDescriptors(keyName);\n  }\n}\nfunction descriptorForDecorator(dec) {\n  return DECORATOR_DESCRIPTOR_MAP.get(dec);\n}\n/**\n  Check whether a value is a decorator\n\n  @method isClassicDecorator\n  @param {any} possibleDesc the value to check\n  @return {boolean}\n  @private\n*/\n\nfunction isClassicDecorator(dec) {\n  return typeof dec === 'function' && DECORATOR_DESCRIPTOR_MAP.has(dec);\n}\n/**\n  Set a value as a decorator\n\n  @method setClassicDecorator\n  @param {function} decorator the value to mark as a decorator\n  @private\n*/\n\nfunction setClassicDecorator(dec, value = true) {\n  DECORATOR_DESCRIPTOR_MAP.set(dec, value);\n}\n\n/**\n@module @ember/object\n*/\n\nconst END_WITH_EACH_REGEX = /\\.@each$/;\n/**\n  Expands `pattern`, invoking `callback` for each expansion.\n\n  The only pattern supported is brace-expansion, anything else will be passed\n  once to `callback` directly.\n\n  Example\n\n  ```js\n  import { expandProperties } from '@ember/object/computed';\n\n  function echo(arg){ console.log(arg); }\n\n  expandProperties('foo.bar', echo);              //=> 'foo.bar'\n  expandProperties('{foo,bar}', echo);            //=> 'foo', 'bar'\n  expandProperties('foo.{bar,baz}', echo);        //=> 'foo.bar', 'foo.baz'\n  expandProperties('{foo,bar}.baz', echo);        //=> 'foo.baz', 'bar.baz'\n  expandProperties('foo.{bar,baz}.[]', echo)      //=> 'foo.bar.[]', 'foo.baz.[]'\n  expandProperties('{foo,bar}.{spam,eggs}', echo) //=> 'foo.spam', 'foo.eggs', 'bar.spam', 'bar.eggs'\n  expandProperties('{foo}.bar.{baz}')             //=> 'foo.bar.baz'\n  ```\n\n  @method expandProperties\n  @static\n  @for @ember/object/computed\n  @public\n  @param {String} pattern The property pattern to expand.\n  @param {Function} callback The callback to invoke.  It is invoked once per\n  expansion, and is passed the expansion.\n*/\n\nfunction expandProperties(pattern, callback) {\n  assert(`A computed property key must be a string, you passed ${typeof pattern} ${pattern}`, typeof pattern === 'string');\n  assert('Brace expanded properties cannot contain spaces, e.g. \"user.{firstName, lastName}\" should be \"user.{firstName,lastName}\"', pattern.indexOf(' ') === -1); // regex to look for double open, double close, or unclosed braces\n\n  assert(`Brace expanded properties have to be balanced and cannot be nested, pattern: ${pattern}`, pattern.match(/\\{[^}{]*\\{|\\}[^}{]*\\}|\\{[^}]*$/g) === null);\n  let start = pattern.indexOf('{');\n\n  if (start < 0) {\n    callback(pattern.replace(END_WITH_EACH_REGEX, '.[]'));\n  } else {\n    dive('', pattern, start, callback);\n  }\n}\n\nfunction dive(prefix, pattern, start, callback) {\n  let end = pattern.indexOf('}'),\n      i = 0,\n      newStart,\n      arrayLength;\n  let tempArr = pattern.substring(start + 1, end).split(',');\n  let after = pattern.substring(end + 1);\n  prefix = prefix + pattern.substring(0, start);\n  arrayLength = tempArr.length;\n\n  while (i < arrayLength) {\n    newStart = after.indexOf('{');\n\n    if (newStart < 0) {\n      callback((prefix + tempArr[i++] + after).replace(END_WITH_EACH_REGEX, '.[]'));\n    } else {\n      dive(prefix + tempArr[i++], after, newStart, callback);\n    }\n  }\n}\n\n/**\n@module @ember/object\n*/\n/**\n  NOTE: This is a low-level method used by other parts of the API. You almost\n  never want to call this method directly. Instead you should use\n  `mixin()` to define new properties.\n\n  Defines a property on an object. This method works much like the ES5\n  `Object.defineProperty()` method except that it can also accept computed\n  properties and other special descriptors.\n\n  Normally this method takes only three parameters. However if you pass an\n  instance of `Descriptor` as the third param then you can pass an\n  optional value as the fourth parameter. This is often more efficient than\n  creating new descriptor hashes for each property.\n\n  ## Examples\n\n  ```javascript\n  import { defineProperty, computed } from '@ember/object';\n\n  // ES5 compatible mode\n  defineProperty(contact, 'firstName', {\n    writable: true,\n    configurable: false,\n    enumerable: true,\n    value: 'Charles'\n  });\n\n  // define a simple property\n  defineProperty(contact, 'lastName', undefined, 'Jolley');\n\n  // define a computed property\n  defineProperty(contact, 'fullName', computed('firstName', 'lastName', function() {\n    return this.firstName+' '+this.lastName;\n  }));\n  ```\n\n  @public\n  @method defineProperty\n  @static\n  @for @ember/object\n  @param {Object} obj the object to define this property on. This may be a prototype.\n  @param {String} keyName the name of the property\n  @param {Descriptor} [desc] an instance of `Descriptor` (typically a\n    computed property) or an ES5 descriptor.\n    You must provide this or `data` but not both.\n  @param {*} [data] something other than a descriptor, that will\n    become the explicit value of this property.\n*/\n\nfunction defineProperty(obj, keyName, desc, data, _meta) {\n  let meta$$1 = _meta === undefined ? meta(obj) : _meta;\n  let previousDesc = descriptorForProperty(obj, keyName, meta$$1);\n  let wasDescriptor = previousDesc !== undefined;\n\n  if (wasDescriptor) {\n    previousDesc.teardown(obj, keyName, meta$$1);\n  }\n\n  if (isClassicDecorator(desc)) {\n    defineDecorator(obj, keyName, desc, meta$$1);\n  } else if (desc === null || desc === undefined) {\n    defineValue(obj, keyName, data, wasDescriptor, true);\n  } else {\n    // fallback to ES5\n    Object.defineProperty(obj, keyName, desc);\n  } // if key is being watched, override chains that\n  // were initialized with the prototype\n\n\n  if (!meta$$1.isPrototypeMeta(obj)) {\n    revalidateObservers(obj);\n  }\n}\nfunction defineDecorator(obj, keyName, desc, meta$$1) {\n  let propertyDesc;\n\n  if (DEBUG) {\n    propertyDesc = desc(obj, keyName, undefined, meta$$1, true);\n  } else {\n    propertyDesc = desc(obj, keyName, undefined, meta$$1);\n  }\n\n  Object.defineProperty(obj, keyName, propertyDesc); // pass the decorator function forward for backwards compat\n\n  return desc;\n}\nfunction defineValue(obj, keyName, value, wasDescriptor, enumerable = true) {\n  if (wasDescriptor === true || enumerable === false) {\n    Object.defineProperty(obj, keyName, {\n      configurable: true,\n      enumerable,\n      writable: true,\n      value\n    });\n  } else {\n    if (DEBUG) {\n      setWithMandatorySetter(obj, keyName, value);\n    } else {\n      obj[keyName] = value;\n    }\n  }\n\n  return value;\n}\n\nconst firstDotIndexCache = new Cache(1000, key => key.indexOf('.'));\nfunction isPath(path) {\n  return typeof path === 'string' && firstDotIndexCache.get(path) !== -1;\n}\n\n/**\n@module @ember/object\n*/\nconst PROXY_CONTENT = symbol('PROXY_CONTENT');\nlet getPossibleMandatoryProxyValue;\n\nif (DEBUG && HAS_NATIVE_PROXY) {\n  getPossibleMandatoryProxyValue = function getPossibleMandatoryProxyValue(obj, keyName) {\n    let content = obj[PROXY_CONTENT];\n\n    if (content === undefined) {\n      return obj[keyName];\n    } else {\n      /* global Reflect */\n      return Reflect.get(content, keyName, obj);\n    }\n  };\n} // ..........................................................\n// GET AND SET\n//\n// If we are on a platform that supports accessors we can use those.\n// Otherwise simulate accessors by looking up the property directly on the\n// object.\n\n/**\n  Gets the value of a property on an object. If the property is computed,\n  the function will be invoked. If the property is not defined but the\n  object implements the `unknownProperty` method then that will be invoked.\n\n  ```javascript\n  import { get } from '@ember/object';\n  get(obj, \"name\");\n  ```\n\n  If you plan to run on IE8 and older browsers then you should use this\n  method anytime you want to retrieve a property on an object that you don't\n  know for sure is private. (Properties beginning with an underscore '_'\n  are considered private.)\n\n  On all newer browsers, you only need to use this method to retrieve\n  properties if the property might not be defined on the object and you want\n  to respect the `unknownProperty` handler. Otherwise you can ignore this\n  method.\n\n  Note that if the object itself is `undefined`, this method will throw\n  an error.\n\n  @method get\n  @for @ember/object\n  @static\n  @param {Object} obj The object to retrieve from.\n  @param {String} keyName The property key to retrieve\n  @return {Object} the property value or `null`.\n  @public\n*/\n\n\nfunction get(obj, keyName) {\n  assert(`Get must be called with two arguments; an object and a property key`, arguments.length === 2);\n  assert(`Cannot call get with '${keyName}' on an undefined object.`, obj !== undefined && obj !== null);\n  assert(`The key provided to get must be a string or number, you passed ${keyName}`, typeof keyName === 'string' || typeof keyName === 'number' && !isNaN(keyName));\n  assert(`'this' in paths is not supported`, typeof keyName !== 'string' || keyName.lastIndexOf('this.', 0) !== 0);\n  return isPath(keyName) ? _getPath(obj, keyName) : _getProp(obj, keyName);\n}\nfunction _getProp(obj, keyName) {\n  let type = typeof obj;\n  let isObject$$1 = type === 'object';\n  let isFunction = type === 'function';\n  let isObjectLike = isObject$$1 || isFunction;\n  let value;\n\n  if (isObjectLike) {\n    if (DEBUG && HAS_NATIVE_PROXY) {\n      value = getPossibleMandatoryProxyValue(obj, keyName);\n    } else {\n      value = obj[keyName];\n    }\n\n    if (value === undefined && isObject$$1 && !(keyName in obj) && typeof obj.unknownProperty === 'function') {\n      if (DEBUG) {\n        deprecateMutationsInTrackingTransaction(() => {\n          value = obj.unknownProperty(keyName);\n        });\n      } else {\n        value = obj.unknownProperty(keyName);\n      }\n    }\n\n    if (isTracking()) {\n      consumeTag(tagFor(obj, keyName));\n\n      if (Array.isArray(value) || isEmberArray(value)) {\n        // Add the tag of the returned value if it is an array, since arrays\n        // should always cause updates if they are consumed and then changed\n        consumeTag(tagFor(value, '[]'));\n      }\n    }\n  } else {\n    value = obj[keyName];\n  }\n\n  return value;\n}\nfunction _getPath(root, path, forSet) {\n  let obj = root;\n  let parts = typeof path === 'string' ? path.split('.') : path;\n\n  for (let i = 0; i < parts.length; i++) {\n    if (obj === undefined || obj === null || obj.isDestroyed) {\n      return undefined;\n    }\n\n    let part = parts[i];\n\n    if (forSet && (part === '__proto__' || part === 'constructor')) {\n      return;\n    }\n\n    obj = _getProp(obj, part);\n  }\n\n  return obj;\n}\n/**\n  Retrieves the value of a property from an Object, or a default value in the\n  case that the property returns `undefined`.\n\n  ```javascript\n  import { getWithDefault } from '@ember/object';\n  getWithDefault(person, 'lastName', 'Doe');\n  ```\n\n  @method getWithDefault\n  @for @ember/object\n  @static\n  @param {Object} obj The object to retrieve from.\n  @param {String} keyName The name of the property to retrieve\n  @param {Object} defaultValue The value to return if the property value is undefined\n  @return {Object} The property value or the defaultValue.\n  @public\n  @deprecated\n*/\n\nfunction getWithDefault(root, key, defaultValue) {\n  deprecate('Using getWithDefault has been deprecated. Instead, consider using Ember get and explicitly checking for undefined.', false, {\n    id: 'ember-metal.get-with-default',\n    until: '4.0.0',\n    url: 'https://deprecations.emberjs.com/v3.x#toc_ember-metal-get-with-default',\n    for: 'ember-source',\n    since: {\n      enabled: '3.21.0'\n    }\n  });\n  let value = get(root, key);\n\n  if (value === undefined) {\n    return defaultValue;\n  }\n\n  return value;\n}\n\n_getProp('foo', 'a');\n\n_getProp('foo', 1);\n\n_getProp({}, 'a');\n\n_getProp({}, 1);\n\n_getProp({\n  unkonwnProperty() {}\n\n}, 'a');\n\n_getProp({\n  unkonwnProperty() {}\n\n}, 1);\n\nget({}, 'foo');\nget({}, 'foo.bar');\nlet fakeProxy = {};\nsetProxy(fakeProxy);\ntrack(() => _getProp({}, 'a'));\ntrack(() => _getProp({}, 1));\ntrack(() => _getProp({\n  a: []\n}, 'a'));\ntrack(() => _getProp({\n  a: fakeProxy\n}, 'a'));\n\n/**\n @module @ember/object\n*/\n\n/**\n  Sets the value of a property on an object, respecting computed properties\n  and notifying observers and other listeners of the change.\n  If the specified property is not defined on the object and the object\n  implements the `setUnknownProperty` method, then instead of setting the\n  value of the property on the object, its `setUnknownProperty` handler\n  will be invoked with the two parameters `keyName` and `value`.\n\n  ```javascript\n  import { set } from '@ember/object';\n  set(obj, \"name\", value);\n  ```\n\n  @method set\n  @static\n  @for @ember/object\n  @param {Object} obj The object to modify.\n  @param {String} keyName The property key to set\n  @param {Object} value The value to set\n  @return {Object} the passed value.\n  @public\n*/\n\nfunction set(obj, keyName, value, tolerant) {\n  assert(`Set must be called with three or four arguments; an object, a property key, a value and tolerant true/false`, arguments.length === 3 || arguments.length === 4);\n  assert(`Cannot call set with '${keyName}' on an undefined object.`, obj && typeof obj === 'object' || typeof obj === 'function');\n  assert(`The key provided to set must be a string or number, you passed ${keyName}`, typeof keyName === 'string' || typeof keyName === 'number' && !isNaN(keyName));\n  assert(`'this' in paths is not supported`, typeof keyName !== 'string' || keyName.lastIndexOf('this.', 0) !== 0);\n\n  if (obj.isDestroyed) {\n    assert(`calling set on destroyed object: ${toString(obj)}.${keyName} = ${toString(value)}`, tolerant);\n    return value;\n  }\n\n  return isPath(keyName) ? _setPath(obj, keyName, value, tolerant) : _setProp(obj, keyName, value);\n}\nfunction _setProp(obj, keyName, value) {\n  let descriptor = lookupDescriptor(obj, keyName);\n\n  if (descriptor !== null && COMPUTED_SETTERS.has(descriptor.set)) {\n    obj[keyName] = value;\n    return value;\n  }\n\n  let currentValue;\n\n  if (DEBUG && HAS_NATIVE_PROXY) {\n    currentValue = getPossibleMandatoryProxyValue(obj, keyName);\n  } else {\n    currentValue = obj[keyName];\n  }\n\n  if (currentValue === undefined && 'object' === typeof obj && !(keyName in obj) && typeof obj.setUnknownProperty === 'function') {\n    /* unknown property */\n    obj.setUnknownProperty(keyName, value);\n  } else {\n    if (DEBUG) {\n      setWithMandatorySetter(obj, keyName, value);\n    } else {\n      obj[keyName] = value;\n    }\n\n    if (currentValue !== value) {\n      notifyPropertyChange(obj, keyName);\n    }\n  }\n\n  return value;\n}\n\nfunction _setPath(root, path, value, tolerant) {\n  let parts = path.split('.');\n  let keyName = parts.pop();\n  assert('Property set failed: You passed an empty path', keyName.trim().length > 0);\n  let newRoot = _getPath(root, parts, true);\n\n  if (newRoot !== null && newRoot !== undefined) {\n    return set(newRoot, keyName, value);\n  } else if (!tolerant) {\n    throw new EmberError(`Property set failed: object in path \"${parts.join('.')}\" could not be found.`);\n  }\n}\n/**\n  Error-tolerant form of `set`. Will not blow up if any part of the\n  chain is `undefined`, `null`, or destroyed.\n\n  This is primarily used when syncing bindings, which may try to update after\n  an object has been destroyed.\n\n  ```javascript\n  import { trySet } from '@ember/object';\n\n  let obj = { name: \"Zoey\" };\n  trySet(obj, \"contacts.twitter\", \"@emberjs\");\n  ```\n\n  @method trySet\n  @static\n  @for @ember/object\n  @param {Object} root The object to modify.\n  @param {String} path The property path to set\n  @param {Object} value The value to set\n  @public\n*/\n\n\nfunction trySet(root, path, value) {\n  return set(root, path, value, true);\n}\n\n/**\n@module @ember/object\n*/\n\nconst DEEP_EACH_REGEX = /\\.@each\\.[^.]+\\./;\n\nfunction noop() {}\n/**\n  `@computed` is a decorator that turns a JavaScript getter and setter into a\n  computed property, which is a _cached, trackable value_. By default the getter\n  will only be called once and the result will be cached. You can specify\n  various properties that your computed property depends on. This will force the\n  cached result to be cleared if the dependencies are modified, and lazily recomputed the next time something asks for it.\n\n  In the following example we decorate a getter - `fullName` -  by calling\n  `computed` with the property dependencies (`firstName` and `lastName`) as\n  arguments. The `fullName` getter will be called once (regardless of how many\n  times it is accessed) as long as its dependencies do not change. Once\n  `firstName` or `lastName` are updated any future calls to `fullName` will\n  incorporate the new values, and any watchers of the value such as templates\n  will be updated:\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @computed('firstName', 'lastName')\n    get fullName() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n  });\n\n  let tom = new Person('Tom', 'Dale');\n\n  tom.fullName; // 'Tom Dale'\n  ```\n\n  You can also provide a setter, which will be used when updating the computed\n  property. Ember's `set` function must be used to update the property\n  since it will also notify observers of the property:\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @computed('firstName', 'lastName')\n    get fullName() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n\n    set fullName(value) {\n      let [firstName, lastName] = value.split(' ');\n\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n  });\n\n  let person = new Person();\n\n  set(person, 'fullName', 'Peter Wagenet');\n  person.firstName; // 'Peter'\n  person.lastName;  // 'Wagenet'\n  ```\n\n  You can also pass a getter function or object with `get` and `set` functions\n  as the last argument to the computed decorator. This allows you to define\n  computed property _macros_:\n\n  ```js\n  import { computed } from '@ember/object';\n\n  function join(...keys) {\n    return computed(...keys, function() {\n      return keys.map(key => this[key]).join(' ');\n    });\n  }\n\n  class Person {\n    @join('firstName', 'lastName')\n    fullName;\n  }\n  ```\n\n  Note that when defined this way, getters and setters receive the _key_ of the\n  property they are decorating as the first argument. Setters receive the value\n  they are setting to as the second argument instead. Additionally, setters must\n  _return_ the value that should be cached:\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  function fullNameMacro(firstNameKey, lastNameKey) {\n    return computed(firstNameKey, lastNameKey, {\n      get() {\n        return `${this[firstNameKey]} ${this[lastNameKey]}`;\n      }\n\n      set(key, value) {\n        let [firstName, lastName] = value.split(' ');\n\n        set(this, firstNameKey, firstName);\n        set(this, lastNameKey, lastName);\n\n        return value;\n      }\n    });\n  }\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @fullNameMacro('firstName', 'lastName') fullName;\n  });\n\n  let person = new Person();\n\n  set(person, 'fullName', 'Peter Wagenet');\n  person.firstName; // 'Peter'\n  person.lastName;  // 'Wagenet'\n  ```\n\n  Computed properties can also be used in classic classes. To do this, we\n  provide the getter and setter as the last argument like we would for a macro,\n  and we assign it to a property on the class definition. This is an _anonymous_\n  computed macro:\n\n  ```javascript\n  import EmberObject, { computed, set } from '@ember/object';\n\n  let Person = EmberObject.extend({\n    // these will be supplied by `create`\n    firstName: null,\n    lastName: null,\n\n    fullName: computed('firstName', 'lastName', {\n      get() {\n        return `${this.firstName} ${this.lastName}`;\n      }\n\n      set(key, value) {\n        let [firstName, lastName] = value.split(' ');\n\n        set(this, 'firstName', firstName);\n        set(this, 'lastName', lastName);\n\n        return value;\n      }\n    })\n  });\n\n  let tom = Person.create({\n    firstName: 'Tom',\n    lastName: 'Dale'\n  });\n\n  tom.get('fullName') // 'Tom Dale'\n  ```\n\n  You can overwrite computed property without setters with a normal property (no\n  longer computed) that won't change if dependencies change. You can also mark\n  computed property as `.readOnly()` and block all attempts to set it.\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @computed('firstName', 'lastName').readOnly()\n    get fullName() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n  });\n\n  let person = new Person();\n  person.set('fullName', 'Peter Wagenet'); // Uncaught Error: Cannot set read-only property \"fullName\" on object: <(...):emberXXX>\n  ```\n\n  Additional resources:\n  - [Decorators RFC](https://github.com/emberjs/rfcs/blob/master/text/0408-decorators.md)\n  - [New CP syntax RFC](https://github.com/emberjs/rfcs/blob/master/text/0011-improved-cp-syntax.md)\n  - [New computed syntax explained in \"Ember 1.12 released\" ](https://emberjs.com/blog/2015/05/13/ember-1-12-released.html#toc_new-computed-syntax)\n\n  @class ComputedProperty\n  @public\n*/\n\n\nclass ComputedProperty extends ComputedDescriptor {\n  constructor(args) {\n    super();\n    this._volatile = false;\n    this._readOnly = false;\n    this._hasConfig = false;\n    this._getter = undefined;\n    this._setter = undefined;\n    let maybeConfig = args[args.length - 1];\n\n    if (typeof maybeConfig === 'function' || maybeConfig !== null && typeof maybeConfig === 'object') {\n      this._hasConfig = true;\n      let config = args.pop();\n\n      if (typeof config === 'function') {\n        assert(`You attempted to pass a computed property instance to computed(). Computed property instances are decorator functions, and cannot be passed to computed() because they cannot be turned into decorators twice`, !isClassicDecorator(config));\n        this._getter = config;\n      } else {\n        const objectConfig = config;\n        assert('computed expects a function or an object as last argument.', typeof objectConfig === 'object' && !Array.isArray(objectConfig));\n        assert('Config object passed to computed can only contain `get` and `set` keys.', Object.keys(objectConfig).every(key => key === 'get' || key === 'set'));\n        assert('Computed properties must receive a getter or a setter, you passed none.', Boolean(objectConfig.get) || Boolean(objectConfig.set));\n        this._getter = objectConfig.get || noop;\n        this._setter = objectConfig.set;\n      }\n    }\n\n    if (args.length > 0) {\n      this._property(...args);\n    }\n  }\n\n  setup(obj, keyName, propertyDesc, meta$$1) {\n    super.setup(obj, keyName, propertyDesc, meta$$1);\n    assert(`@computed can only be used on accessors or fields, attempted to use it with ${keyName} but that was a method. Try converting it to a getter (e.g. \\`get ${keyName}() {}\\`)`, !(propertyDesc && typeof propertyDesc.value === 'function'));\n    assert(`@computed can only be used on empty fields. ${keyName} has an initial value (e.g. \\`${keyName} = someValue\\`)`, !propertyDesc || !propertyDesc.initializer);\n    assert(`Attempted to apply a computed property that already has a getter/setter to a ${keyName}, but it is a method or an accessor. If you passed @computed a function or getter/setter (e.g. \\`@computed({ get() { ... } })\\`), then it must be applied to a field`, !(this._hasConfig && propertyDesc && (typeof propertyDesc.get === 'function' || typeof propertyDesc.set === 'function')));\n\n    if (this._hasConfig === false) {\n      assert(`Attempted to use @computed on ${keyName}, but it did not have a getter or a setter. You must either pass a get a function or getter/setter to @computed directly (e.g. \\`@computed({ get() { ... } })\\`) or apply @computed directly to a getter/setter`, propertyDesc && (typeof propertyDesc.get === 'function' || typeof propertyDesc.set === 'function'));\n      let {\n        get,\n        set: set$$1\n      } = propertyDesc;\n\n      if (get !== undefined) {\n        this._getter = get;\n      }\n\n      if (set$$1 !== undefined) {\n        this._setter = function setterWrapper(_key, value) {\n          let ret = set$$1.call(this, value);\n\n          if (get !== undefined) {\n            return typeof ret === 'undefined' ? get.call(this) : ret;\n          }\n\n          return ret;\n        };\n      }\n    }\n  }\n\n  _property(...passedArgs) {\n    let args = [];\n\n    function addArg(property) {\n      warn(`Dependent keys containing @each only work one level deep. ` + `You used the key \"${property}\" which is invalid. ` + `Please create an intermediary computed property.`, DEEP_EACH_REGEX.test(property) === false, {\n        id: 'ember-metal.computed-deep-each'\n      });\n      args.push(property);\n    }\n\n    for (let i = 0; i < passedArgs.length; i++) {\n      expandProperties(passedArgs[i], addArg);\n    }\n\n    this._dependentKeys = args;\n  }\n\n  get(obj, keyName) {\n    if (this._volatile) {\n      return this._getter.call(obj, keyName);\n    }\n\n    let meta$$1 = meta(obj);\n    let tagMeta = tagMetaFor(obj);\n    let propertyTag = tagFor(obj, keyName, tagMeta);\n    let ret;\n    let revision = meta$$1.revisionFor(keyName);\n\n    if (revision !== undefined && validateTag(propertyTag, revision)) {\n      ret = meta$$1.valueFor(keyName);\n    } else {\n      // For backwards compatibility, we only throw if the CP has any dependencies. CPs without dependencies\n      // should be allowed, even after the object has been destroyed, which is why we check _dependentKeys.\n      assert(`Attempted to access the computed ${obj}.${keyName} on a destroyed object, which is not allowed`, this._dependentKeys === undefined || !isDestroyed(obj));\n      let {\n        _getter,\n        _dependentKeys\n      } = this; // Create a tracker that absorbs any trackable actions inside the CP\n\n      untrack(() => {\n        ret = _getter.call(obj, keyName);\n      });\n\n      if (_dependentKeys !== undefined) {\n        updateTag(propertyTag, getChainTagsForKeys(obj, _dependentKeys, tagMeta, meta$$1));\n\n        if (DEBUG) {\n          ALLOW_CYCLES.set(propertyTag, true);\n        }\n      }\n\n      meta$$1.setValueFor(keyName, ret);\n      meta$$1.setRevisionFor(keyName, valueForTag(propertyTag));\n      finishLazyChains(meta$$1, keyName, ret);\n    }\n\n    consumeTag(propertyTag); // Add the tag of the returned value if it is an array, since arrays\n    // should always cause updates if they are consumed and then changed\n\n    if (Array.isArray(ret)) {\n      consumeTag(tagFor(ret, '[]'));\n    }\n\n    return ret;\n  }\n\n  set(obj, keyName, value) {\n    if (this._readOnly) {\n      this._throwReadOnlyError(obj, keyName);\n    }\n\n    if (!this._setter) {\n      return this.clobberSet(obj, keyName, value);\n    }\n\n    if (this._volatile) {\n      return this.volatileSet(obj, keyName, value);\n    }\n\n    let meta$$1 = meta(obj); // ensure two way binding works when the component has defined a computed\n    // property with both a setter and dependent keys, in that scenario without\n    // the sync observer added below the caller's value will never be updated\n    //\n    // See GH#18147 / GH#19028 for details.\n\n    if ( // ensure that we only run this once, while the component is being instantiated\n    meta$$1.isInitializing() && this._dependentKeys !== undefined && this._dependentKeys.length > 0 && // These two properties are set on Ember.Component\n    typeof obj[PROPERTY_DID_CHANGE] === 'function' && obj.isComponent) {\n      addObserver(obj, keyName, () => {\n        obj[PROPERTY_DID_CHANGE](keyName);\n      }, undefined, true);\n    }\n\n    let ret;\n\n    try {\n      beginPropertyChanges();\n      ret = this._set(obj, keyName, value, meta$$1);\n      finishLazyChains(meta$$1, keyName, ret);\n      let tagMeta = tagMetaFor(obj);\n      let propertyTag = tagFor(obj, keyName, tagMeta);\n      let {\n        _dependentKeys\n      } = this;\n\n      if (_dependentKeys !== undefined) {\n        updateTag(propertyTag, getChainTagsForKeys(obj, _dependentKeys, tagMeta, meta$$1));\n\n        if (DEBUG) {\n          ALLOW_CYCLES.set(propertyTag, true);\n        }\n      }\n\n      meta$$1.setRevisionFor(keyName, valueForTag(propertyTag));\n    } finally {\n      endPropertyChanges();\n    }\n\n    return ret;\n  }\n\n  _throwReadOnlyError(obj, keyName) {\n    throw new EmberError(`Cannot set read-only property \"${keyName}\" on object: ${inspect(obj)}`);\n  }\n\n  clobberSet(obj, keyName, value) {\n    deprecate(`The ${toString(obj)}#${keyName} computed property was just overridden. This removes the computed property and replaces it with a plain value, and has been deprecated. If you want this behavior, consider defining a setter which does it manually.`, false, {\n      id: 'computed-property.override',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_computed-property-override',\n      for: 'ember-source',\n      since: {\n        enabled: '3.9.0-beta.1'\n      }\n    });\n    let cachedValue = meta(obj).valueFor(keyName);\n    defineProperty(obj, keyName, null, cachedValue);\n    set(obj, keyName, value);\n    return value;\n  }\n\n  volatileSet(obj, keyName, value) {\n    return this._setter.call(obj, keyName, value);\n  }\n\n  _set(obj, keyName, value, meta$$1) {\n    let hadCachedValue = meta$$1.revisionFor(keyName) !== undefined;\n    let cachedValue = meta$$1.valueFor(keyName);\n    let ret;\n    let {\n      _setter\n    } = this;\n    setObserverSuspended(obj, keyName, true);\n\n    try {\n      ret = _setter.call(obj, keyName, value, cachedValue);\n    } finally {\n      setObserverSuspended(obj, keyName, false);\n    } // allows setter to return the same value that is cached already\n\n\n    if (hadCachedValue && cachedValue === ret) {\n      return ret;\n    }\n\n    meta$$1.setValueFor(keyName, ret);\n    notifyPropertyChange(obj, keyName, meta$$1, value);\n    return ret;\n  }\n  /* called before property is overridden */\n\n\n  teardown(obj, keyName, meta$$1) {\n    if (!this._volatile) {\n      if (meta$$1.revisionFor(keyName) !== undefined) {\n        meta$$1.setRevisionFor(keyName, undefined);\n        meta$$1.setValueFor(keyName, undefined);\n      }\n    }\n\n    super.teardown(obj, keyName, meta$$1);\n  }\n\n}\n\nclass AutoComputedProperty extends ComputedProperty {\n  get(obj, keyName) {\n    if (this._volatile) {\n      return this._getter.call(obj, keyName);\n    }\n\n    let meta$$1 = meta(obj);\n    let tagMeta = tagMetaFor(obj);\n    let propertyTag = tagFor(obj, keyName, tagMeta);\n    let ret;\n    let revision = meta$$1.revisionFor(keyName);\n\n    if (revision !== undefined && validateTag(propertyTag, revision)) {\n      ret = meta$$1.valueFor(keyName);\n    } else {\n      assert(`Attempted to access the computed ${obj}.${keyName} on a destroyed object, which is not allowed`, !isDestroyed(obj));\n      let {\n        _getter\n      } = this; // Create a tracker that absorbs any trackable actions inside the CP\n\n      let tag = track(() => {\n        ret = _getter.call(obj, keyName);\n      });\n      updateTag(propertyTag, tag);\n      meta$$1.setValueFor(keyName, ret);\n      meta$$1.setRevisionFor(keyName, valueForTag(propertyTag));\n      finishLazyChains(meta$$1, keyName, ret);\n    }\n\n    consumeTag(propertyTag); // Add the tag of the returned value if it is an array, since arrays\n    // should always cause updates if they are consumed and then changed\n\n    if (Array.isArray(ret)) {\n      consumeTag(tagFor(ret, '[]', tagMeta));\n    }\n\n    return ret;\n  }\n\n} // TODO: This class can be svelted once `meta` has been deprecated\n\n\nclass ComputedDecoratorImpl extends Function {\n  /**\n    Call on a computed property to set it into read-only mode. When in this\n    mode the computed property will throw an error when set.\n       Example:\n       ```javascript\n    import { computed, set } from '@ember/object';\n       class Person {\n      @computed().readOnly()\n      get guid() {\n        return 'guid-guid-guid';\n      }\n    }\n       let person = new Person();\n    set(person, 'guid', 'new-guid'); // will throw an exception\n    ```\n       Classic Class Example:\n       ```javascript\n    import EmberObject, { computed } from '@ember/object';\n       let Person = EmberObject.extend({\n      guid: computed(function() {\n        return 'guid-guid-guid';\n      }).readOnly()\n    });\n       let person = Person.create();\n    person.set('guid', 'new-guid'); // will throw an exception\n    ```\n       @method readOnly\n    @return {ComputedProperty} this\n    @chainable\n    @public\n  */\n  readOnly() {\n    let desc = descriptorForDecorator(this);\n    assert('Computed properties that define a setter using the new syntax cannot be read-only', !(desc._setter && desc._setter !== desc._getter));\n    desc._readOnly = true;\n    return this;\n  }\n  /**\n    Call on a computed property to set it into non-cached mode. When in this\n    mode the computed property will not automatically cache the return value.\n    It also does not automatically fire any change events. You must manually notify\n    any changes if you want to observe this property.\n       Dependency keys have no effect on volatile properties as they are for cache\n    invalidation and notification when cached value is invalidated.\n       Example:\n       ```javascript\n    import { computed } from '@ember/object';\n       class CallCounter {\n      _calledCount = 0;\n         @computed().volatile()\n      get calledCount() {\n        return this._calledCount++;\n      }\n    }\n    ```\n       Classic Class Example:\n       ```javascript\n    import EmberObject, { computed } from '@ember/object';\n       let CallCounter = EmberObject.extend({\n      _calledCount: 0,\n         value: computed(function() {\n        return this._calledCount++;\n      }).volatile()\n    });\n    ```\n    @method volatile\n    @deprecated\n    @return {ComputedProperty} this\n    @chainable\n    @public\n  */\n\n\n  volatile() {\n    deprecate('Setting a computed property as volatile has been deprecated. Instead, consider using a native getter with native class syntax.', false, {\n      id: 'computed-property.volatile',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_computed-property-volatile',\n      for: 'ember-source',\n      since: {\n        enabled: '3.9.0-beta.1'\n      }\n    });\n    descriptorForDecorator(this)._volatile = true;\n    return this;\n  }\n  /**\n    Sets the dependent keys on this computed property. Pass any number of\n    arguments containing key paths that this computed property depends on.\n       Example:\n       ```javascript\n    import EmberObject, { computed } from '@ember/object';\n       class President {\n      constructor(firstName, lastName) {\n        set(this, 'firstName', firstName);\n        set(this, 'lastName', lastName);\n      }\n         // Tell Ember that this computed property depends on firstName\n      // and lastName\n      @computed().property('firstName', 'lastName')\n      get fullName() {\n        return `${this.firstName} ${this.lastName}`;\n      }\n    }\n       let president = new President('Barack', 'Obama');\n       president.fullName; // 'Barack Obama'\n    ```\n       Classic Class Example:\n       ```javascript\n    import EmberObject, { computed } from '@ember/object';\n       let President = EmberObject.extend({\n      fullName: computed(function() {\n        return this.get('firstName') + ' ' + this.get('lastName');\n           // Tell Ember that this computed property depends on firstName\n        // and lastName\n      }).property('firstName', 'lastName')\n    });\n       let president = President.create({\n      firstName: 'Barack',\n      lastName: 'Obama'\n    });\n       president.get('fullName'); // 'Barack Obama'\n    ```\n       @method property\n    @deprecated\n    @param {String} path* zero or more property paths\n    @return {ComputedProperty} this\n    @chainable\n    @public\n  */\n\n\n  property(...keys) {\n    deprecate('Setting dependency keys using the `.property()` modifier has been deprecated. Pass the dependency keys directly to computed as arguments instead. If you are using `.property()` on a computed property macro, consider refactoring your macro to receive additional dependent keys in its initial declaration.', false, {\n      id: 'computed-property.property',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_computed-property-property',\n      for: 'ember-source',\n      since: {\n        enabled: '3.9.0-beta.1'\n      }\n    });\n\n    descriptorForDecorator(this)._property(...keys);\n\n    return this;\n  }\n  /**\n    In some cases, you may want to annotate computed properties with additional\n    metadata about how they function or what values they operate on. For example,\n    computed property functions may close over variables that are then no longer\n    available for introspection. You can pass a hash of these values to a\n    computed property.\n       Example:\n       ```javascript\n    import { computed } from '@ember/object';\n    import Person from 'my-app/utils/person';\n       class Store {\n      @computed().meta({ type: Person })\n      get person() {\n        let personId = this.personId;\n        return Person.create({ id: personId });\n      }\n    }\n    ```\n       Classic Class Example:\n       ```javascript\n    import { computed } from '@ember/object';\n    import Person from 'my-app/utils/person';\n       const Store = EmberObject.extend({\n      person: computed(function() {\n        let personId = this.get('personId');\n        return Person.create({ id: personId });\n      }).meta({ type: Person })\n    });\n    ```\n       The hash that you pass to the `meta()` function will be saved on the\n    computed property descriptor under the `_meta` key. Ember runtime\n    exposes a public API for retrieving these values from classes,\n    via the `metaForProperty()` function.\n       @method meta\n    @param {Object} meta\n    @chainable\n    @public\n  */\n\n\n  meta(meta$$1) {\n    let prop = descriptorForDecorator(this);\n\n    if (arguments.length === 0) {\n      return prop._meta || {};\n    } else {\n      prop._meta = meta$$1;\n      return this;\n    }\n  } // TODO: Remove this when we can provide alternatives in the ecosystem to\n  // addons such as ember-macro-helpers that use it.\n\n\n  get _getter() {\n    return descriptorForDecorator(this)._getter;\n  } // TODO: Refactor this, this is an internal API only\n\n\n  set enumerable(value) {\n    descriptorForDecorator(this).enumerable = value;\n  }\n\n}\n\nfunction computed(...args) {\n  assert(`@computed can only be used directly as a native decorator. If you're using tracked in classic classes, add parenthesis to call it like a function: computed()`, !(isElementDescriptor(args.slice(0, 3)) && args.length === 5 && args[4] === true));\n\n  if (isElementDescriptor(args)) {\n    let decorator = makeComputedDecorator(new ComputedProperty([]), ComputedDecoratorImpl);\n    return decorator(args[0], args[1], args[2]);\n  }\n\n  return makeComputedDecorator(new ComputedProperty(args), ComputedDecoratorImpl);\n}\nfunction autoComputed(...config) {\n  return makeComputedDecorator(new AutoComputedProperty(config), ComputedDecoratorImpl);\n}\n/**\n  Allows checking if a given property on an object is a computed property. For the most part,\n  this doesn't matter (you would normally just access the property directly and use its value),\n  but for some tooling specific scenarios (e.g. the ember-inspector) it is important to\n  differentiate if a property is a computed property or a \"normal\" property.\n\n  This will work on either a class's prototype or an instance itself.\n\n  @static\n  @method isComputed\n  @for @ember/debug\n  @private\n */\n\nfunction isComputed(obj, key) {\n  return Boolean(descriptorForProperty(obj, key));\n}\n\nfunction getCachedValueFor(obj, key) {\n  let meta$$1 = peekMeta(obj);\n\n  if (meta$$1) {\n    return meta$$1.valueFor(key);\n  }\n}\n\nfunction alias(altKey) {\n  assert('You attempted to use @alias as a decorator directly, but it requires a `altKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return makeComputedDecorator(new AliasedProperty(altKey), AliasDecoratorImpl);\n} // TODO: This class can be svelted once `meta` has been deprecated\n\nclass AliasDecoratorImpl extends Function {\n  readOnly() {\n    descriptorForDecorator(this).readOnly();\n    return this;\n  }\n\n  oneWay() {\n    descriptorForDecorator(this).oneWay();\n    return this;\n  }\n\n  meta(meta$$1) {\n    let prop = descriptorForDecorator(this);\n\n    if (arguments.length === 0) {\n      return prop._meta || {};\n    } else {\n      prop._meta = meta$$1;\n    }\n  }\n\n}\n\nclass AliasedProperty extends ComputedDescriptor {\n  constructor(altKey) {\n    super();\n    this.altKey = altKey;\n  }\n\n  setup(obj, keyName, propertyDesc, meta$$1) {\n    assert(`Setting alias '${keyName}' on self`, this.altKey !== keyName);\n    super.setup(obj, keyName, propertyDesc, meta$$1);\n    CHAIN_PASS_THROUGH.add(this);\n  }\n\n  get(obj, keyName) {\n    let ret;\n    let meta$$1 = meta(obj);\n    let tagMeta = tagMetaFor(obj);\n    let propertyTag = tagFor(obj, keyName, tagMeta); // We don't use the tag since CPs are not automatic, we just want to avoid\n    // anything tracking while we get the altKey\n\n    untrack(() => {\n      ret = get(obj, this.altKey);\n    });\n    let lastRevision = meta$$1.revisionFor(keyName);\n\n    if (lastRevision === undefined || !validateTag(propertyTag, lastRevision)) {\n      updateTag(propertyTag, getChainTagsForKey(obj, this.altKey, tagMeta, meta$$1));\n      meta$$1.setRevisionFor(keyName, valueForTag(propertyTag));\n      finishLazyChains(meta$$1, keyName, ret);\n    }\n\n    consumeTag(propertyTag);\n    return ret;\n  }\n\n  set(obj, _keyName, value) {\n    return set(obj, this.altKey, value);\n  }\n\n  readOnly() {\n    this.set = AliasedProperty_readOnlySet;\n  }\n\n  oneWay() {\n    this.set = AliasedProperty_oneWaySet;\n  }\n\n}\n\nfunction AliasedProperty_readOnlySet(obj, keyName) {\n  // eslint-disable-line no-unused-vars\n  throw new EmberError(`Cannot set read-only property '${keyName}' on object: ${inspect(obj)}`);\n}\n\nfunction AliasedProperty_oneWaySet(obj, keyName, value) {\n  defineProperty(obj, keyName, null);\n  return set(obj, keyName, value);\n}\n\n/**\n@module ember\n*/\n/**\n  Used internally to allow changing properties in a backwards compatible way, and print a helpful\n  deprecation warning.\n\n  @method deprecateProperty\n  @param {Object} object The object to add the deprecated property to.\n  @param {String} deprecatedKey The property to add (and print deprecation warnings upon accessing).\n  @param {String} newKey The property that will be aliased.\n  @private\n  @since 1.7.0\n*/\n\nfunction deprecateProperty(object, deprecatedKey, newKey, options) {\n  function _deprecate() {\n    deprecate(`Usage of \\`${deprecatedKey}\\` is deprecated, use \\`${newKey}\\` instead.`, false, options);\n  }\n\n  Object.defineProperty(object, deprecatedKey, {\n    configurable: true,\n    enumerable: false,\n\n    set(value) {\n      _deprecate();\n\n      set(this, newKey, value);\n    },\n\n    get() {\n      _deprecate();\n\n      return get(this, newKey);\n    }\n\n  });\n}\n\nconst EACH_PROXIES = new WeakMap();\nfunction eachProxyArrayWillChange(array, idx, removedCnt, addedCnt) {\n  let eachProxy = EACH_PROXIES.get(array);\n\n  if (eachProxy !== undefined) {\n    eachProxy.arrayWillChange(array, idx, removedCnt, addedCnt);\n  }\n}\nfunction eachProxyArrayDidChange(array, idx, removedCnt, addedCnt) {\n  let eachProxy = EACH_PROXIES.get(array);\n\n  if (eachProxy !== undefined) {\n    eachProxy.arrayDidChange(array, idx, removedCnt, addedCnt);\n  }\n}\n\n/**\n @module @ember/utils\n*/\n\n/**\n  Returns true if the passed value is null or undefined. This avoids errors\n  from JSLint complaining about use of ==, which can be technically\n  confusing.\n\n  ```javascript\n  isNone();              // true\n  isNone(null);          // true\n  isNone(undefined);     // true\n  isNone('');            // false\n  isNone([]);            // false\n  isNone(function() {}); // false\n  ```\n\n  @method isNone\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @public\n*/\nfunction isNone(obj) {\n  return obj === null || obj === undefined;\n}\n\n/**\n @module @ember/utils\n*/\n\n/**\n  Verifies that a value is `null` or `undefined`, an empty string, or an empty\n  array.\n\n  Constrains the rules on `isNone` by returning true for empty strings and\n  empty arrays.\n\n  If the value is an object with a `size` property of type number, it is used\n  to check emptiness.\n\n  ```javascript\n  isEmpty();                 // true\n  isEmpty(null);             // true\n  isEmpty(undefined);        // true\n  isEmpty('');               // true\n  isEmpty([]);               // true\n  isEmpty({ size: 0});       // true\n  isEmpty({});               // false\n  isEmpty('Adam Hawkins');   // false\n  isEmpty([0,1,2]);          // false\n  isEmpty('\\n\\t');           // false\n  isEmpty('  ');             // false\n  isEmpty({ size: 1 })       // false\n  isEmpty({ size: () => 0 }) // false\n  ```\n\n  @method isEmpty\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @public\n*/\n\nfunction isEmpty(obj) {\n  let none = obj === null || obj === undefined;\n\n  if (none) {\n    return none;\n  }\n\n  if (typeof obj.size === 'number') {\n    return !obj.size;\n  }\n\n  let objectType = typeof obj;\n\n  if (objectType === 'object') {\n    let size = get(obj, 'size');\n\n    if (typeof size === 'number') {\n      return !size;\n    }\n  }\n\n  if (typeof obj.length === 'number' && objectType !== 'function') {\n    return !obj.length;\n  }\n\n  if (objectType === 'object') {\n    let length = get(obj, 'length');\n\n    if (typeof length === 'number') {\n      return !length;\n    }\n  }\n\n  return false;\n}\n\n/**\n @module @ember/utils\n*/\n\n/**\n  A value is blank if it is empty or a whitespace string.\n\n  ```javascript\n  import { isBlank } from '@ember/utils';\n\n  isBlank();                // true\n  isBlank(null);            // true\n  isBlank(undefined);       // true\n  isBlank('');              // true\n  isBlank([]);              // true\n  isBlank('\\n\\t');          // true\n  isBlank('  ');            // true\n  isBlank({});              // false\n  isBlank('\\n\\t Hello');    // false\n  isBlank('Hello world');   // false\n  isBlank([1,2,3]);         // false\n  ```\n\n  @method isBlank\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @since 1.5.0\n  @public\n*/\n\nfunction isBlank(obj) {\n  return isEmpty(obj) || typeof obj === 'string' && /\\S/.test(obj) === false;\n}\n\n/**\n @module @ember/utils\n*/\n\n/**\n  A value is present if it not `isBlank`.\n\n  ```javascript\n  isPresent();                // false\n  isPresent(null);            // false\n  isPresent(undefined);       // false\n  isPresent('');              // false\n  isPresent('  ');            // false\n  isPresent('\\n\\t');          // false\n  isPresent([]);              // false\n  isPresent({ length: 0 });   // false\n  isPresent(false);           // true\n  isPresent(true);            // true\n  isPresent('string');        // true\n  isPresent(0);               // true\n  isPresent(function() {});   // true\n  isPresent({});              // true\n  isPresent('\\n\\t Hello');    // true\n  isPresent([1, 2, 3]);       // true\n  ```\n\n  @method isPresent\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @since 1.8.0\n  @public\n*/\n\nfunction isPresent(obj) {\n  return !isBlank(obj);\n}\n\n/**\n @module ember\n*/\n\n/**\n  Helper class that allows you to register your library with Ember.\n\n  Singleton created at `Ember.libraries`.\n\n  @class Libraries\n  @constructor\n  @private\n*/\n\nclass Libraries {\n  constructor() {\n    this._registry = [];\n    this._coreLibIndex = 0;\n  }\n\n  _getLibraryByName(name) {\n    let libs = this._registry;\n    let count = libs.length;\n\n    for (let i = 0; i < count; i++) {\n      if (libs[i].name === name) {\n        return libs[i];\n      }\n    }\n\n    return undefined;\n  }\n\n  register(name, version, isCoreLibrary) {\n    let index = this._registry.length;\n\n    if (!this._getLibraryByName(name)) {\n      if (isCoreLibrary) {\n        index = this._coreLibIndex++;\n      }\n\n      this._registry.splice(index, 0, {\n        name,\n        version\n      });\n    } else {\n      warn(`Library \"${name}\" is already registered with Ember.`, false, {\n        id: 'ember-metal.libraries-register'\n      });\n    }\n  }\n\n  registerCoreLibrary(name, version) {\n    this.register(name, version, true);\n  }\n\n  deRegister(name) {\n    let lib = this._getLibraryByName(name);\n\n    let index;\n\n    if (lib) {\n      index = this._registry.indexOf(lib);\n\n      this._registry.splice(index, 1);\n    }\n  }\n\n}\n\nif (DEBUG) {\n  Libraries.prototype.logVersions = function () {\n    let libs = this._registry;\n    let nameLengths = libs.map(item => get(item, 'name.length'));\n    let maxNameLength = Math.max.apply(null, nameLengths);\n    debug('-------------------------------');\n\n    for (let i = 0; i < libs.length; i++) {\n      let lib = libs[i];\n      let spaces = new Array(maxNameLength - lib.name.length + 1).join(' ');\n      debug([lib.name, spaces, ' : ', lib.version].join(''));\n    }\n\n    debug('-------------------------------');\n  };\n}\n\nconst LIBRARIES = new Libraries();\nLIBRARIES.registerCoreLibrary('Ember', VERSION);\n\n/**\n @module @ember/object\n*/\n\n/**\n  To get multiple properties at once, call `getProperties`\n  with an object followed by a list of strings or an array:\n\n  ```javascript\n  import { getProperties } from '@ember/object';\n\n  getProperties(record, 'firstName', 'lastName', 'zipCode');\n  // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n  ```\n\n  is equivalent to:\n\n  ```javascript\n  import { getProperties } from '@ember/object';\n\n  getProperties(record, ['firstName', 'lastName', 'zipCode']);\n  // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n  ```\n\n  @method getProperties\n  @static\n  @for @ember/object\n  @param {Object} obj\n  @param {String...|Array} list of keys to get\n  @return {Object}\n  @public\n*/\n\nfunction getProperties(obj, keys) {\n  let ret = {};\n  let propertyNames = arguments;\n  let i = 1;\n\n  if (arguments.length === 2 && Array.isArray(keys)) {\n    i = 0;\n    propertyNames = arguments[1];\n  }\n\n  for (; i < propertyNames.length; i++) {\n    ret[propertyNames[i]] = get(obj, propertyNames[i]);\n  }\n\n  return ret;\n}\n\n/**\n @module @ember/object\n*/\n\n/**\n  Set a list of properties on an object. These properties are set inside\n  a single `beginPropertyChanges` and `endPropertyChanges` batch, so\n  observers will be buffered.\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  let anObject = EmberObject.create();\n\n  anObject.setProperties({\n    firstName: 'Stanley',\n    lastName: 'Stuart',\n    age: 21\n  });\n  ```\n\n  @method setProperties\n  @static\n  @for @ember/object\n  @param obj\n  @param {Object} properties\n  @return properties\n  @public\n*/\n\nfunction setProperties(obj, properties) {\n  if (properties === null || typeof properties !== 'object') {\n    return properties;\n  }\n\n  changeProperties(() => {\n    let props = Object.keys(properties);\n    let propertyName;\n\n    for (let i = 0; i < props.length; i++) {\n      propertyName = props[i];\n      set(obj, propertyName, properties[propertyName]);\n    }\n  });\n  return properties;\n}\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nlet searchDisabled = false;\nconst flags = {\n  _set: 0,\n  _unprocessedNamespaces: false,\n\n  get unprocessedNamespaces() {\n    return this._unprocessedNamespaces;\n  },\n\n  set unprocessedNamespaces(v) {\n    this._set++;\n    this._unprocessedNamespaces = v;\n  }\n\n};\nlet unprocessedMixins = false;\nconst NAMESPACES = [];\nconst NAMESPACES_BY_ID = Object.create(null);\nfunction addNamespace(namespace) {\n  flags.unprocessedNamespaces = true;\n  NAMESPACES.push(namespace);\n}\nfunction removeNamespace(namespace) {\n  let name = getName(namespace);\n  delete NAMESPACES_BY_ID[name];\n  NAMESPACES.splice(NAMESPACES.indexOf(namespace), 1);\n\n  if (name in context.lookup && namespace === context.lookup[name]) {\n    context.lookup[name] = undefined;\n  }\n}\nfunction findNamespaces() {\n  if (!flags.unprocessedNamespaces) {\n    return;\n  }\n\n  let lookup = context.lookup;\n  let keys = Object.keys(lookup);\n\n  for (let i = 0; i < keys.length; i++) {\n    let key = keys[i]; // Only process entities that start with uppercase A-Z\n\n    if (!isUppercase(key.charCodeAt(0))) {\n      continue;\n    }\n\n    let obj = tryIsNamespace(lookup, key);\n\n    if (obj) {\n      setName(obj, key);\n    }\n  }\n}\nfunction findNamespace(name) {\n  if (!searchDisabled) {\n    processAllNamespaces();\n  }\n\n  return NAMESPACES_BY_ID[name];\n}\nfunction processNamespace(namespace) {\n  _processNamespace([namespace.toString()], namespace, new Set());\n}\nfunction processAllNamespaces() {\n  let unprocessedNamespaces = flags.unprocessedNamespaces;\n\n  if (unprocessedNamespaces) {\n    findNamespaces();\n    flags.unprocessedNamespaces = false;\n  }\n\n  if (unprocessedNamespaces || unprocessedMixins) {\n    let namespaces = NAMESPACES;\n\n    for (let i = 0; i < namespaces.length; i++) {\n      processNamespace(namespaces[i]);\n    }\n\n    unprocessedMixins = false;\n  }\n}\nfunction isSearchDisabled() {\n  return searchDisabled;\n}\nfunction setSearchDisabled(flag) {\n  searchDisabled = Boolean(flag);\n}\nfunction setUnprocessedMixins() {\n  unprocessedMixins = true;\n}\n\nfunction _processNamespace(paths, root, seen) {\n  let idx = paths.length;\n  let id = paths.join('.');\n  NAMESPACES_BY_ID[id] = root;\n  setName(root, id); // Loop over all of the keys in the namespace, looking for classes\n\n  for (let key in root) {\n    if (!hasOwnProperty.call(root, key)) {\n      continue;\n    }\n\n    let obj = root[key]; // If we are processing the `Ember` namespace, for example, the\n    // `paths` will start with `[\"Ember\"]`. Every iteration through\n    // the loop will update the **second** element of this list with\n    // the key, so processing `Ember.View` will make the Array\n    // `['Ember', 'View']`.\n\n    paths[idx] = key; // If we have found an unprocessed class\n\n    if (obj && getName(obj) === void 0) {\n      // Replace the class' `toString` with the dot-separated path\n      setName(obj, paths.join('.')); // Support nested namespaces\n    } else if (obj && obj.isNamespace) {\n      // Skip aliased namespaces\n      if (seen.has(obj)) {\n        continue;\n      }\n\n      seen.add(obj); // Process the child namespace\n\n      _processNamespace(paths, obj, seen);\n    }\n  }\n\n  paths.length = idx; // cut out last item\n}\n\nfunction isUppercase(code) {\n  return code >= 65 && code <= 90 // A\n  ; // Z\n}\n\nfunction tryIsNamespace(lookup, prop) {\n  try {\n    let obj = lookup[prop];\n    return (obj !== null && typeof obj === 'object' || typeof obj === 'function') && obj.isNamespace && obj;\n  } catch (e) {// continue\n  }\n}\n\n/**\n@module @ember/object\n*/\nconst a_concat = Array.prototype.concat;\nconst {\n  isArray\n} = Array;\n\nfunction extractAccessors(properties) {\n  if (properties !== undefined) {\n    let keys = Object.keys(properties);\n\n    for (let i = 0; i < keys.length; i++) {\n      let key = keys[i];\n      let desc = Object.getOwnPropertyDescriptor(properties, key);\n\n      if (desc.get !== undefined || desc.set !== undefined) {\n        Object.defineProperty(properties, key, {\n          value: nativeDescDecorator(desc)\n        });\n      }\n    }\n  }\n\n  return properties;\n}\n\nfunction concatenatedMixinProperties(concatProp, props, values, base) {\n  // reset before adding each new mixin to pickup concats from previous\n  let concats = values[concatProp] || base[concatProp];\n\n  if (props[concatProp]) {\n    concats = concats ? a_concat.call(concats, props[concatProp]) : props[concatProp];\n  }\n\n  return concats;\n}\n\nfunction giveDecoratorSuper(key, decorator, property, descs) {\n  if (property === true) {\n    return decorator;\n  }\n\n  let originalGetter = property._getter;\n\n  if (originalGetter === undefined) {\n    return decorator;\n  }\n\n  let superDesc = descs[key]; // Check to see if the super property is a decorator first, if so load its descriptor\n\n  let superProperty = typeof superDesc === 'function' ? descriptorForDecorator(superDesc) : superDesc;\n\n  if (superProperty === undefined || superProperty === true) {\n    return decorator;\n  }\n\n  let superGetter = superProperty._getter;\n\n  if (superGetter === undefined) {\n    return decorator;\n  }\n\n  let get = wrap(originalGetter, superGetter);\n  let set;\n  let originalSetter = property._setter;\n  let superSetter = superProperty._setter;\n\n  if (superSetter !== undefined) {\n    if (originalSetter !== undefined) {\n      set = wrap(originalSetter, superSetter);\n    } else {\n      // If the super property has a setter, we default to using it no matter what.\n      // This is clearly very broken and weird, but it's what was here so we have\n      // to keep it until the next major at least.\n      //\n      // TODO: Add a deprecation here.\n      set = superSetter;\n    }\n  } else {\n    set = originalSetter;\n  } // only create a new CP if we must\n\n\n  if (get !== originalGetter || set !== originalSetter) {\n    // Since multiple mixins may inherit from the same parent, we need\n    // to clone the computed property so that other mixins do not receive\n    // the wrapped version.\n    let dependentKeys = property._dependentKeys || [];\n    let newProperty = new ComputedProperty([...dependentKeys, {\n      get,\n      set\n    }]);\n    newProperty._readOnly = property._readOnly;\n    newProperty._volatile = property._volatile;\n    newProperty._meta = property._meta;\n    newProperty.enumerable = property.enumerable;\n    return makeComputedDecorator(newProperty, ComputedProperty);\n  }\n\n  return decorator;\n}\n\nfunction giveMethodSuper(key, method, values, descs) {\n  // Methods overwrite computed properties, and do not call super to them.\n  if (descs[key] !== undefined) {\n    return method;\n  } // Find the original method in a parent mixin\n\n\n  let superMethod = values[key]; // Only wrap the new method if the original method was a function\n\n  if (typeof superMethod === 'function') {\n    return wrap(method, superMethod);\n  }\n\n  return method;\n}\n\nfunction applyConcatenatedProperties(key, value, values) {\n  let baseValue = values[key];\n  let ret = makeArray(baseValue).concat(makeArray(value));\n\n  if (DEBUG) {\n    // it is possible to use concatenatedProperties with strings (which cannot be frozen)\n    // only freeze objects...\n    if (typeof ret === 'object' && ret !== null) {\n      // prevent mutating `concatenatedProperties` array after it is applied\n      Object.freeze(ret);\n    }\n  }\n\n  return ret;\n}\n\nfunction applyMergedProperties(key, value, values) {\n  let baseValue = values[key];\n  assert(`You passed in \\`${JSON.stringify(value)}\\` as the value for \\`${key}\\` but \\`${key}\\` cannot be an Array`, !isArray(value));\n\n  if (!baseValue) {\n    return value;\n  }\n\n  let newBase = assign({}, baseValue);\n  let hasFunction = false;\n  let props = Object.keys(value);\n\n  for (let i = 0; i < props.length; i++) {\n    let prop = props[i];\n    let propValue = value[prop];\n\n    if (typeof propValue === 'function') {\n      hasFunction = true;\n      newBase[prop] = giveMethodSuper(prop, propValue, baseValue, {});\n    } else {\n      newBase[prop] = propValue;\n    }\n  }\n\n  if (hasFunction) {\n    newBase._super = ROOT;\n  }\n\n  return newBase;\n}\n\nfunction mergeMixins(mixins, meta$$1, descs, values, base, keys, keysWithSuper) {\n  let currentMixin;\n\n  for (let i = 0; i < mixins.length; i++) {\n    currentMixin = mixins[i];\n    assert(`Expected hash or Mixin instance, got ${Object.prototype.toString.call(currentMixin)}`, typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');\n\n    if (MIXINS.has(currentMixin)) {\n      if (meta$$1.hasMixin(currentMixin)) {\n        continue;\n      }\n\n      meta$$1.addMixin(currentMixin);\n      let {\n        properties,\n        mixins\n      } = currentMixin;\n\n      if (properties !== undefined) {\n        mergeProps(meta$$1, properties, descs, values, base, keys, keysWithSuper);\n      } else if (mixins !== undefined) {\n        mergeMixins(mixins, meta$$1, descs, values, base, keys, keysWithSuper);\n\n        if (currentMixin._without !== undefined) {\n          currentMixin._without.forEach(keyName => {\n            // deleting the key means we won't process the value\n            let index = keys.indexOf(keyName);\n\n            if (index !== -1) {\n              keys.splice(index, 1);\n            }\n          });\n        }\n      }\n    } else {\n      mergeProps(meta$$1, currentMixin, descs, values, base, keys, keysWithSuper);\n    }\n  }\n}\n\nfunction mergeProps(meta$$1, props, descs, values, base, keys, keysWithSuper) {\n  let concats = concatenatedMixinProperties('concatenatedProperties', props, values, base);\n  let mergings = concatenatedMixinProperties('mergedProperties', props, values, base);\n  let propKeys = Object.keys(props);\n\n  for (let i = 0; i < propKeys.length; i++) {\n    let key = propKeys[i];\n    let value = props[key];\n    if (value === undefined) continue;\n\n    if (keys.indexOf(key) === -1) {\n      keys.push(key);\n      let desc = meta$$1.peekDescriptors(key);\n\n      if (desc === undefined) {\n        // If the value is a classic decorator, we don't want to actually\n        // access it, because that will execute the decorator while we're\n        // building the class.\n        if (!isClassicDecorator(value)) {\n          // The superclass did not have a CP, which means it may have\n          // observers or listeners on that property.\n          let prev = values[key] = base[key];\n\n          if (typeof prev === 'function') {\n            updateObserversAndListeners(base, key, prev, false);\n          }\n        }\n      } else {\n        descs[key] = desc; // The super desc will be overwritten on descs, so save off the fact that\n        // there was a super so we know to Object.defineProperty when writing\n        // the value\n\n        keysWithSuper.push(key);\n        desc.teardown(base, key, meta$$1);\n      }\n    }\n\n    let isFunction = typeof value === 'function';\n\n    if (isFunction) {\n      let desc = descriptorForDecorator(value);\n\n      if (desc !== undefined) {\n        // Wrap descriptor function to implement _super() if needed\n        descs[key] = giveDecoratorSuper(key, value, desc, descs);\n        values[key] = undefined;\n        continue;\n      }\n    }\n\n    if (concats && concats.indexOf(key) >= 0 || key === 'concatenatedProperties' || key === 'mergedProperties') {\n      value = applyConcatenatedProperties(key, value, values);\n    } else if (mergings && mergings.indexOf(key) > -1) {\n      value = applyMergedProperties(key, value, values);\n    } else if (isFunction) {\n      value = giveMethodSuper(key, value, values, descs);\n    }\n\n    values[key] = value;\n    descs[key] = undefined;\n  }\n}\n\nlet followMethodAlias;\n\nif (ALIAS_METHOD) {\n  followMethodAlias = function (obj, alias, descs, values) {\n    let altKey = alias.methodName;\n    let possibleDesc;\n    let desc = descs[altKey];\n    let value = values[altKey];\n\n    if (desc !== undefined || value !== undefined) {// do nothing\n    } else if ((possibleDesc = descriptorForProperty(obj, altKey)) !== undefined) {\n      desc = possibleDesc;\n      value = undefined;\n    } else {\n      desc = undefined;\n      value = obj[altKey];\n    }\n\n    return {\n      desc,\n      value\n    };\n  };\n}\n\nfunction updateObserversAndListeners(obj, key, fn, add) {\n  let meta$$1 = observerListenerMetaFor(fn);\n  if (meta$$1 === undefined) return;\n  let {\n    observers,\n    listeners\n  } = meta$$1;\n\n  if (observers !== undefined) {\n    let updateObserver = add ? addObserver : removeObserver;\n\n    for (let i = 0; i < observers.paths.length; i++) {\n      updateObserver(obj, observers.paths[i], null, key, observers.sync);\n    }\n  }\n\n  if (listeners !== undefined) {\n    let updateListener = add ? addListener : removeListener;\n\n    for (let i = 0; i < listeners.length; i++) {\n      updateListener(obj, listeners[i], null, key);\n    }\n  }\n}\n\nfunction applyMixin(obj, mixins, _hideKeys = false) {\n  let descs = Object.create(null);\n  let values = Object.create(null);\n  let meta$$1 = meta(obj);\n  let keys = [];\n  let keysWithSuper = [];\n  obj._super = ROOT; // Go through all mixins and hashes passed in, and:\n  //\n  // * Handle concatenated properties\n  // * Handle merged properties\n  // * Set up _super wrapping if necessary\n  // * Set up computed property descriptors\n  // * Copying `toString` in broken browsers\n\n  mergeMixins(mixins, meta$$1, descs, values, obj, keys, keysWithSuper);\n\n  for (let i = 0; i < keys.length; i++) {\n    let key = keys[i];\n    let value = values[key];\n    let desc = descs[key];\n\n    if (ALIAS_METHOD) {\n      while (value !== undefined && isAlias(value)) {\n        let followed = followMethodAlias(obj, value, descs, values);\n        desc = followed.desc;\n        value = followed.value;\n      }\n    }\n\n    if (value !== undefined) {\n      if (typeof value === 'function') {\n        updateObserversAndListeners(obj, key, value, true);\n      }\n\n      defineValue(obj, key, value, keysWithSuper.indexOf(key) !== -1, !_hideKeys);\n    } else if (desc !== undefined) {\n      defineDecorator(obj, key, desc, meta$$1);\n    }\n  }\n\n  if (!meta$$1.isPrototypeMeta(obj)) {\n    revalidateObservers(obj);\n  }\n\n  return obj;\n}\n/**\n  @method mixin\n  @param obj\n  @param mixins*\n  @return obj\n  @private\n*/\n\nfunction mixin(obj, ...args) {\n  applyMixin(obj, args);\n  return obj;\n}\nconst MIXINS = new _WeakSet();\n/**\n  The `Mixin` class allows you to create mixins, whose properties can be\n  added to other classes. For instance,\n\n  ```javascript\n  import Mixin from '@ember/object/mixin';\n\n  const EditableMixin = Mixin.create({\n    edit() {\n      console.log('starting to edit');\n      this.set('isEditing', true);\n    },\n    isEditing: false\n  });\n  ```\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import EditableMixin from '../mixins/editable';\n\n  // Mix mixins into classes by passing them as the first arguments to\n  // `.extend.`\n  const Comment = EmberObject.extend(EditableMixin, {\n    post: null\n  });\n\n  let comment = Comment.create({\n    post: somePost\n  });\n\n  comment.edit(); // outputs 'starting to edit'\n  ```\n\n  Note that Mixins are created with `Mixin.create`, not\n  `Mixin.extend`.\n\n  Note that mixins extend a constructor's prototype so arrays and object literals\n  defined as properties will be shared amongst objects that implement the mixin.\n  If you want to define a property in a mixin that is not shared, you can define\n  it either as a computed property or have it be created on initialization of the object.\n\n  ```javascript\n  // filters array will be shared amongst any object implementing mixin\n  import Mixin from '@ember/object/mixin';\n  import { A } from '@ember/array';\n\n  const FilterableMixin = Mixin.create({\n    filters: A()\n  });\n  ```\n\n  ```javascript\n  import Mixin from '@ember/object/mixin';\n  import { A } from '@ember/array';\n  import { computed } from '@ember/object';\n\n  // filters will be a separate array for every object implementing the mixin\n  const FilterableMixin = Mixin.create({\n    filters: computed(function() {\n      return A();\n    })\n  });\n  ```\n\n  ```javascript\n  import Mixin from '@ember/object/mixin';\n  import { A } from '@ember/array';\n\n  // filters will be created as a separate array during the object's initialization\n  const Filterable = Mixin.create({\n    filters: null,\n\n    init() {\n      this._super(...arguments);\n      this.set(\"filters\", A());\n    }\n  });\n  ```\n\n  @class Mixin\n  @public\n*/\n\nclass Mixin {\n  constructor(mixins, properties) {\n    MIXINS.add(this);\n    this.properties = extractAccessors(properties);\n    this.mixins = buildMixinsArray(mixins);\n    this.ownerConstructor = undefined;\n    this._without = undefined;\n\n    if (DEBUG) {\n      // Eagerly add INIT_FACTORY to avoid issues in DEBUG as a result of Object.seal(mixin)\n      this[INIT_FACTORY] = null;\n      /*\n        In debug builds, we seal mixins to help avoid performance pitfalls.\n               In IE11 there is a quirk that prevents sealed objects from being added\n        to a WeakMap. Unfortunately, the mixin system currently relies on\n        weak maps in `guidFor`, so we need to prime the guid cache weak map.\n      */\n\n      guidFor(this);\n\n      if (true\n      /* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n      && Mixin._disableDebugSeal !== true) {\n        Object.seal(this);\n      }\n    }\n  }\n  /**\n    @method create\n    @for @ember/object/mixin\n    @static\n    @param arguments*\n    @public\n  */\n\n\n  static create(...args) {\n    setUnprocessedMixins();\n    let M = this;\n    return new M(args, undefined);\n  } // returns the mixins currently applied to the specified object\n  // TODO: Make `mixin`\n\n\n  static mixins(obj) {\n    let meta$$1 = peekMeta(obj);\n    let ret = [];\n\n    if (meta$$1 === null) {\n      return ret;\n    }\n\n    meta$$1.forEachMixins(currentMixin => {\n      // skip primitive mixins since these are always anonymous\n      if (!currentMixin.properties) {\n        ret.push(currentMixin);\n      }\n    });\n    return ret;\n  }\n  /**\n    @method reopen\n    @param arguments*\n    @private\n  */\n\n\n  reopen(...args) {\n    if (args.length === 0) {\n      return;\n    }\n\n    if (this.properties) {\n      let currentMixin = new Mixin(undefined, this.properties);\n      this.properties = undefined;\n      this.mixins = [currentMixin];\n    } else if (!this.mixins) {\n      this.mixins = [];\n    }\n\n    this.mixins = this.mixins.concat(buildMixinsArray(args));\n    return this;\n  }\n  /**\n    @method apply\n    @param obj\n    @return applied object\n    @private\n  */\n\n\n  apply(obj, _hideKeys = false) {\n    // Ember.NativeArray is a normal Ember.Mixin that we mix into `Array.prototype` when prototype extensions are enabled\n    // mutating a native object prototype like this should _not_ result in enumerable properties being added (or we have significant\n    // issues with things like deep equality checks from test frameworks, or things like jQuery.extend(true, [], [])).\n    //\n    // _hideKeys disables enumerablity when applying the mixin. This is a hack, and we should stop mutating the array prototype by default 😫\n    return applyMixin(obj, [this], _hideKeys);\n  }\n\n  applyPartial(obj) {\n    return applyMixin(obj, [this]);\n  }\n  /**\n    @method detect\n    @param obj\n    @return {Boolean}\n    @private\n  */\n\n\n  detect(obj) {\n    if (typeof obj !== 'object' || obj === null) {\n      return false;\n    }\n\n    if (MIXINS.has(obj)) {\n      return _detect(obj, this);\n    }\n\n    let meta$$1 = peekMeta(obj);\n\n    if (meta$$1 === null) {\n      return false;\n    }\n\n    return meta$$1.hasMixin(this);\n  }\n\n  without(...args) {\n    let ret = new Mixin([this]);\n    ret._without = args;\n    return ret;\n  }\n\n  keys() {\n    return _keys(this);\n  }\n\n  toString() {\n    return '(unknown mixin)';\n  }\n\n}\n\nif (DEBUG && true\n/* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n) {\n  Object.defineProperty(Mixin, '_disableDebugSeal', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: false\n  });\n}\n\nfunction buildMixinsArray(mixins) {\n  let length = mixins && mixins.length || 0;\n  let m = undefined;\n\n  if (length > 0) {\n    m = new Array(length);\n\n    for (let i = 0; i < length; i++) {\n      let x = mixins[i];\n      assert(`Expected hash or Mixin instance, got ${Object.prototype.toString.call(x)}`, typeof x === 'object' && x !== null && Object.prototype.toString.call(x) !== '[object Array]');\n\n      if (MIXINS.has(x)) {\n        m[i] = x;\n      } else {\n        m[i] = new Mixin(undefined, x);\n      }\n    }\n  }\n\n  return m;\n}\n\nif (DEBUG) {\n  Object.seal(Mixin.prototype);\n}\n\nfunction _detect(curMixin, targetMixin, seen = new Set()) {\n  if (seen.has(curMixin)) {\n    return false;\n  }\n\n  seen.add(curMixin);\n\n  if (curMixin === targetMixin) {\n    return true;\n  }\n\n  let mixins = curMixin.mixins;\n\n  if (mixins) {\n    return mixins.some(mixin => _detect(mixin, targetMixin, seen));\n  }\n\n  return false;\n}\n\nfunction _keys(mixin, ret = new Set(), seen = new Set()) {\n  if (seen.has(mixin)) {\n    return;\n  }\n\n  seen.add(mixin);\n\n  if (mixin.properties) {\n    let props = Object.keys(mixin.properties);\n\n    for (let i = 0; i < props.length; i++) {\n      ret.add(props[i]);\n    }\n  } else if (mixin.mixins) {\n    mixin.mixins.forEach(x => _keys(x, ret, seen));\n  }\n\n  return ret;\n}\n\nlet AliasImpl;\nlet isAlias;\n\nif (ALIAS_METHOD) {\n  const ALIASES = new _WeakSet();\n\n  isAlias = alias => {\n    return ALIASES.has(alias);\n  };\n\n  AliasImpl = class AliasImpl {\n    constructor(methodName) {\n      this.methodName = methodName;\n      ALIASES.add(this);\n    }\n\n  };\n}\n/**\n  Makes a method available via an additional name.\n\n  ```app/utils/person.js\n  import EmberObject, {\n    aliasMethod\n  } from '@ember/object';\n\n  export default EmberObject.extend({\n    name() {\n      return 'Tomhuda Katzdale';\n    },\n    moniker: aliasMethod('name')\n  });\n  ```\n\n  ```javascript\n  let goodGuy = Person.create();\n\n  goodGuy.name();    // 'Tomhuda Katzdale'\n  goodGuy.moniker(); // 'Tomhuda Katzdale'\n  ```\n\n  @method aliasMethod\n  @static\n  @deprecated Use a shared utility method instead\n  @for @ember/object\n  @param {String} methodName name of the method to alias\n  @public\n*/\n\n\nlet aliasMethod;\n\nif (ALIAS_METHOD) {\n  aliasMethod = function aliasMethod(methodName) {\n    deprecate(`You attempted to alias '${methodName}, but aliasMethod has been deprecated. Consider extracting the method into a shared utility function.`, false, {\n      id: 'object.alias-method',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_object-alias-method',\n      for: 'ember-source',\n      since: {\n        enabled: '3.9.0'\n      }\n    });\n    return new AliasImpl(methodName);\n  };\n}\n\nfunction observer(...args) {\n  let funcOrDef = args.pop();\n  assert('observer must be provided a function or an observer definition', typeof funcOrDef === 'function' || typeof funcOrDef === 'object' && funcOrDef !== null);\n  let func, dependentKeys, sync;\n\n  if (typeof funcOrDef === 'function') {\n    func = funcOrDef;\n    dependentKeys = args;\n    sync = !ENV._DEFAULT_ASYNC_OBSERVERS;\n  } else {\n    func = funcOrDef.fn;\n    dependentKeys = funcOrDef.dependentKeys;\n    sync = funcOrDef.sync;\n  }\n\n  assert('observer called without a function', typeof func === 'function');\n  assert('observer called without valid path', Array.isArray(dependentKeys) && dependentKeys.length > 0 && dependentKeys.every(p => typeof p === 'string' && Boolean(p.length)));\n  assert('observer called without sync', typeof sync === 'boolean');\n  let paths = [];\n\n  for (let i = 0; i < dependentKeys.length; ++i) {\n    expandProperties(dependentKeys[i], path => paths.push(path));\n  }\n\n  setObservers(func, {\n    paths,\n    sync\n  });\n  return func;\n}\n\nlet DEBUG_INJECTION_FUNCTIONS;\n\nif (DEBUG) {\n  DEBUG_INJECTION_FUNCTIONS = new WeakMap();\n}\n\nfunction inject(type, ...args) {\n  assert('a string type must be provided to inject', typeof type === 'string');\n  let calledAsDecorator = isElementDescriptor(args);\n  let name = calledAsDecorator ? undefined : args[0];\n\n  let getInjection = function (propertyName) {\n    let owner = getOwner(this) || this.container; // fallback to `container` for backwards compat\n\n    assert(`Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.`, Boolean(owner));\n    return owner.lookup(`${type}:${name || propertyName}`);\n  };\n\n  if (DEBUG) {\n    DEBUG_INJECTION_FUNCTIONS.set(getInjection, {\n      type,\n      name\n    });\n  }\n\n  let decorator = computed({\n    get: getInjection,\n\n    set(keyName, value) {\n      defineProperty(this, keyName, null, value);\n    }\n\n  });\n\n  if (calledAsDecorator) {\n    return decorator(args[0], args[1], args[2]);\n  } else {\n    return decorator;\n  }\n}\n\nfunction tracked(...args) {\n  assert(`@tracked can only be used directly as a native decorator. If you're using tracked in classic classes, add parenthesis to call it like a function: tracked()`, !(isElementDescriptor(args.slice(0, 3)) && args.length === 5 && args[4] === true));\n\n  if (!isElementDescriptor(args)) {\n    let propertyDesc = args[0];\n    assert(`tracked() may only receive an options object containing 'value' or 'initializer', received ${propertyDesc}`, args.length === 0 || typeof propertyDesc === 'object' && propertyDesc !== null);\n\n    if (DEBUG && propertyDesc) {\n      let keys = Object.keys(propertyDesc);\n      assert(`The options object passed to tracked() may only contain a 'value' or 'initializer' property, not both. Received: [${keys}]`, keys.length <= 1 && (keys[0] === undefined || keys[0] === 'value' || keys[0] === 'initializer'));\n      assert(`The initializer passed to tracked must be a function. Received ${propertyDesc.initializer}`, !('initializer' in propertyDesc) || typeof propertyDesc.initializer === 'function');\n    }\n\n    let initializer = propertyDesc ? propertyDesc.initializer : undefined;\n    let value = propertyDesc ? propertyDesc.value : undefined;\n\n    let decorator = function (target, key, _desc, _meta, isClassicDecorator$$1) {\n      assert(`You attempted to set a default value for ${key} with the @tracked({ value: 'default' }) syntax. You can only use this syntax with classic classes. For native classes, you can use class initializers: @tracked field = 'default';`, isClassicDecorator$$1);\n      let fieldDesc = {\n        initializer: initializer || (() => value)\n      };\n      return descriptorForField([target, key, fieldDesc]);\n    };\n\n    setClassicDecorator(decorator);\n    return decorator;\n  }\n\n  return descriptorForField(args);\n}\n\nif (DEBUG) {\n  // Normally this isn't a classic decorator, but we want to throw a helpful\n  // error in development so we need it to treat it like one\n  setClassicDecorator(tracked);\n}\n\nfunction descriptorForField([target, key, desc]) {\n  assert(`You attempted to use @tracked on ${key}, but that element is not a class field. @tracked is only usable on class fields. Native getters and setters will autotrack add any tracked fields they encounter, so there is no need mark getters and setters with @tracked.`, !desc || !desc.value && !desc.get && !desc.set);\n  let {\n    getter,\n    setter\n  } = trackedData(key, desc ? desc.initializer : undefined);\n\n  function get() {\n    let value = getter(this); // Add the tag of the returned value if it is an array, since arrays\n    // should always cause updates if they are consumed and then changed\n\n    if (Array.isArray(value) || isEmberArray(value)) {\n      consumeTag(tagFor(value, '[]'));\n    }\n\n    return value;\n  }\n\n  function set(newValue) {\n    setter(this, newValue);\n    dirtyTagFor(this, SELF_TAG);\n  }\n\n  let newDesc = {\n    enumerable: true,\n    configurable: true,\n    isTracked: true,\n    get,\n    set\n  };\n  COMPUTED_SETTERS.add(set);\n  meta(target).writeDescriptors(key, new TrackedDescriptor(get, set));\n  return newDesc;\n}\n\nclass TrackedDescriptor {\n  constructor(_get, _set) {\n    this._get = _get;\n    this._set = _set;\n    CHAIN_PASS_THROUGH.add(this);\n  }\n\n  get(obj) {\n    return this._get.call(obj);\n  }\n\n  set(obj, _key, value) {\n    this._set.call(obj, value);\n  }\n\n}\n\n/**\n  Ember uses caching based on trackable values to avoid updating large portions\n  of the application. This caching is exposed via a cache primitive that can be\n  used to cache a specific computation, so that it will not update and will\n  return the cached value until a tracked value used in its computation has\n  updated.\n\n  @module @glimmer/tracking/primitives/cache\n  @public\n*/\n\n/**\n  Receives a function, and returns a wrapped version of it that memoizes based on\n  _autotracking_. The function will only rerun whenever any tracked values used\n  within it have changed. Otherwise, it will return the previous value.\n\n  ```js\n  import { tracked } from '@glimmer/tracking';\n  import { createCache, getValue } from '@glimmer/tracking/primitives/cache';\n\n  class State {\n    @tracked value;\n  }\n\n  let state = new State();\n  let computeCount = 0;\n\n  let counter = createCache(() => {\n    // consume the state. Now, `counter` will\n    // only rerun if `state.value` changes.\n    state.value;\n\n    return ++computeCount;\n  });\n\n  getValue(counter); // 1\n\n  // returns the same value because no tracked state has changed\n  getValue(counter); // 1\n\n  state.value = 'foo';\n\n  // reruns because a tracked value used in the function has changed,\n  // incermenting the counter\n  getValue(counter); // 2\n  ```\n\n  @method createCache\n  @static\n  @for @glimmer/tracking/primitives/cache\n  @public\n*/\n\n/**\n  Gets the value of a cache created with `createCache`.\n\n  ```js\n  import { tracked } from '@glimmer/tracking';\n  import { createCache, getValue } from '@glimmer/tracking/primitives/cache';\n\n  let computeCount = 0;\n\n  let counter = createCache(() => {\n    return ++computeCount;\n  });\n\n  getValue(counter); // 1\n  ```\n\n  @method getValue\n  @static\n  @for @glimmer/tracking/primitives/cache\n  @public\n*/\n\n/**\n  Can be used to check if a memoized function is _constant_. If no tracked state\n  was used while running a memoized function, it will never rerun, because nothing\n  can invalidate its result. `isConst` can be used to determine if a memoized\n  function is constant or not, in order to optimize code surrounding that\n  function.\n\n  ```js\n  import { tracked } from '@glimmer/tracking';\n  import { createCache, getValue, isConst } from '@glimmer/tracking/primitives/cache';\n\n  class State {\n    @tracked value;\n  }\n\n  let state = new State();\n  let computeCount = 0;\n\n  let counter = createCache(() => {\n    // consume the state\n    state.value;\n\n    return computeCount++;\n  });\n\n  let constCounter = createCache(() => {\n    return computeCount++;\n  });\n\n  getValue(counter);\n  getValue(constCounter);\n\n  isConst(counter); // false\n  isConst(constCounter); // true\n  ```\n\n  If called on a cache that hasn't been accessed yet, it will throw an\n  error. This is because there's no way to know if the function will be constant\n  or not yet, and so this helps prevent missing an optimization opportunity on\n  accident.\n\n  @method isConst\n  @static\n  @for @glimmer/tracking/primitives/cache\n  @public\n*/\n\nexport { computed, autoComputed, isComputed, ComputedProperty, getCachedValueFor, alias, deprecateProperty, PROXY_CONTENT, _getPath, get, getWithDefault, _getProp, set, _setProp, trySet, objectAt, replace, replaceInNativeArray, addArrayObserver, removeArrayObserver, arrayContentWillChange, arrayContentDidChange, eachProxyArrayWillChange, eachProxyArrayDidChange, addListener, hasListeners, on, removeListener, sendEvent, isNone, isEmpty, isBlank, isPresent, beginPropertyChanges, changeProperties, endPropertyChanges, notifyPropertyChange, PROPERTY_DID_CHANGE, defineProperty, isElementDescriptor, nativeDescDecorator, descriptorForDecorator, descriptorForProperty, isClassicDecorator, setClassicDecorator, LIBRARIES as libraries, Libraries, getProperties, setProperties, expandProperties, ASYNC_OBSERVERS, SYNC_OBSERVERS, addObserver, activateObserver, removeObserver, flushAsyncObservers, Mixin, aliasMethod, mixin, observer, applyMixin, inject, DEBUG_INJECTION_FUNCTIONS, tagForProperty, tagForObject, markObjectAsDirty, tracked, TrackedDescriptor, NAMESPACES, NAMESPACES_BY_ID, addNamespace, findNamespace, findNamespaces, processNamespace, processAllNamespaces, removeNamespace, isSearchDisabled as isNamespaceSearchDisabled, setSearchDisabled as setNamespaceSearchDisabled };\n","\n      export let onEmberGlobalAccess;\n      export let onComputedDotAccess;\n      export let onRunloopDotAccess;\n\n      \n      function once(callback) {\n        let called = false;\n\n        return (...args) => {\n          if (called) {\n            return null;\n          } else {\n            called = true;\n            return callback(...args);\n          }\n        };\n      }\n\n      \n      function onDotAccess(dotKey, importKey, module) {\n        let message =\n          'Using `' + dotKey + '` has been deprecated. Instead, import the value directly from ' + module + ':\\n\\n' +\n          '  import { ' + importKey + ' } from \\'' + module + '\\';\\n\\n' +\n          'These usages may be caused by an outdated ember-cli-babel dependency. ' +\n          'Usages of the Ember Global may be caused by an outdated ember-cli-babel dependency. ' +\n          'The following steps may help:\\n\\n' +\n          \"* Upgrade the following addons to the latest version:\\n  * ember-cli-notifications\\n  * ember-django-adapter\\n  * ember-modal-dialog\\n\";\n\n        if (!false) {\n          message +=\n            '\\n### Important ###\\n\\n' +\n            'In order to avoid repeatedly showing the same deprecation messages, ' +\n            'no further deprecation messages will be shown for theses deprecated usages ' +\n            'until ember-cli-babel is upgraded to v7.26.6 or above.\\n\\n' +\n            'To see all instances of this deprecation message, ' +\n            'set the `EMBER_RUNLOOP_AND_COMPUTED_DOT_ACCESS_DEPRECATIONS` environment variable to \"all\", ' +\n            'e.g. `EMBER_RUNLOOP_AND_COMPUTED_DOT_ACCESS_DEPRECATIONS=all ember test`.\\n';\n        }\n\n        message += \"\\n### Details ###\\n\\nPrior to v7.26.6, ember-cli-babel sometimes transpiled imports into the equivalent Ember Global API, potentially triggering this deprecation message indirectly, even when you did not observe these deprecated usages in your code.\\n\\nThe following outdated versions are found in your project:\\n\\n* ember-cli-babel@6.18.0, currently used by:\\n  * ember-cli-bourbon@2.0.1 (Dormant)\\n    * Depends on ember-cli-babel@^6.6.0\\n  * ember-django-adapter@2.1.1\\n    * Depends on ember-cli-babel@^6.16.0\\n  * ember-get-config@0.2.4\\n    * Depends on ember-cli-babel@^6.3.0\\n    * Added by ember-cli-notifications@6.3.4\\n  * ember-ignore-children-helper@1.0.1\\n    * Depends on ember-cli-babel@^6.8.2\\n    * Added by ember-modal-dialog@3.0.3\\n  * ember-inflector@2.3.0\\n    * Depends on ember-cli-babel@^6.0.0\\n    * Added by ember-django-adapter@2.1.1\\n  * ember-maybe-import-regenerator@0.1.6 (Dormant)\\n    * Depends on ember-cli-babel@^6.0.0-beta.4\\n  * ember-wormhole@0.5.5\\n    * Depends on ember-cli-babel@^6.10.0\\n    * Added by ember-modal-dialog@3.0.3\\n\\nNote: Addons marked as \\\"Dormant\\\" does not appear to have any JavaScript files. Therefore, even if they are using an old version ember-cli-babel, they are unlikely to be the culprit of this deprecation and can likely be ignored.\\n\";\n\n        return message;\n      }\n    \n\n      onEmberGlobalAccess = \n      function onEmberGlobalAccess() {\n        return \"Usage of the Ember Global is deprecated. You should import the Ember module or the specific API instead.\\n\\nSee https://deprecations.emberjs.com/v3.x/#toc_ember-global for details.\\n\\nUsages of the Ember Global may be caused by an outdated ember-cli-babel dependency. The following steps may help:\\n\\n* Upgrade the following addons to the latest version:\\n  * ember-cli-notifications\\n  * ember-django-adapter\\n  * ember-modal-dialog\\n\\n### Important ###\\n\\nIn order to avoid repeatedly showing the same deprecation messages, no further deprecation messages will be shown for usages of the Ember Global until ember-cli-babel is upgraded to v7.26.6 or above.\\n\\nTo see all instances of this deprecation message, set the `EMBER_GLOBAL_DEPRECATIONS` environment variable to \\\"all\\\", e.g. `EMBER_GLOBAL_DEPRECATIONS=all ember test`.\\n\\n### Details ###\\n\\nPrior to v7.26.6, ember-cli-babel sometimes transpiled imports into the equivalent Ember Global API, potentially triggering this deprecation message indirectly, even when you did not observe these deprecated usages in your code.\\n\\nThe following outdated versions are found in your project:\\n\\n* ember-cli-babel@6.18.0, currently used by:\\n  * ember-cli-bourbon@2.0.1 (Dormant)\\n    * Depends on ember-cli-babel@^6.6.0\\n  * ember-django-adapter@2.1.1\\n    * Depends on ember-cli-babel@^6.16.0\\n  * ember-get-config@0.2.4\\n    * Depends on ember-cli-babel@^6.3.0\\n    * Added by ember-cli-notifications@6.3.4\\n  * ember-ignore-children-helper@1.0.1\\n    * Depends on ember-cli-babel@^6.8.2\\n    * Added by ember-modal-dialog@3.0.3\\n  * ember-inflector@2.3.0\\n    * Depends on ember-cli-babel@^6.0.0\\n    * Added by ember-django-adapter@2.1.1\\n  * ember-maybe-import-regenerator@0.1.6 (Dormant)\\n    * Depends on ember-cli-babel@^6.0.0-beta.4\\n  * ember-wormhole@0.5.5\\n    * Depends on ember-cli-babel@^6.10.0\\n    * Added by ember-modal-dialog@3.0.3\\n\\nNote: Addons marked as \\\"Dormant\\\" does not appear to have any JavaScript files. Therefore, even if they are using an old version ember-cli-babel, they are unlikely to be the culprit of this deprecation and can likely be ignored.\\n\";\n      }\n    ;\n      onComputedDotAccess = onDotAccess;\n      onRunloopDotAccess = onDotAccess;\n\n      if (!false) {\n        onEmberGlobalAccess = once(onEmberGlobalAccess);\n      }\n\n      if (!false) {\n        onComputedDotAccess = once(onComputedDotAccess);\n        onRunloopDotAccess = once(onRunloopDotAccess);\n      }\n    ;\n    ","import { getOwner as glimmerGetOwner, setOwner as glimmerSetOwner } from '@glimmer/owner';\nimport { enumerableSymbol } from '@ember/-internals/utils';\nimport { deprecate } from '@ember/debug';\nexport const LEGACY_OWNER = enumerableSymbol('LEGACY_OWNER');\n/**\n  Framework objects in an Ember application (components, services, routes, etc.)\n  are created via a factory and dependency injection system. Each of these\n  objects is the responsibility of an \"owner\", which handled its\n  instantiation and manages its lifetime.\n\n  `getOwner` fetches the owner object responsible for an instance. This can\n  be used to lookup or resolve other class instances, or register new factories\n  into the owner.\n\n  For example, this component dynamically looks up a service based on the\n  `audioType` passed as an argument:\n\n  ```app/components/play-audio.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n  import { getOwner } from '@ember/application';\n\n  // Usage:\n  //\n  //   <PlayAudio @audioType={{@model.audioType}} @audioFile={{@model.file}}/>\n  //\n  export default class extends Component {\n    get audioService() {\n      let owner = getOwner(this);\n      return owner.lookup(`service:${this.args.audioType}`);\n    }\n\n    @action\n    onPlay() {\n      let player = this.audioService;\n      player.play(this.args.audioFile);\n    }\n  }\n  ```\n\n  @method getOwner\n  @static\n  @for @ember/application\n  @param {Object} object An object with an owner.\n  @return {Object} An owner object.\n  @since 2.3.0\n  @public\n*/\n\nexport function getOwner(object) {\n  let owner = glimmerGetOwner(object);\n\n  if (owner === undefined) {\n    owner = object[LEGACY_OWNER];\n    deprecate(`You accessed the owner using \\`getOwner\\` on an object, but it was not set on that object with \\`setOwner\\`. You must use \\`setOwner\\` to set the owner on all objects. You cannot use Object.assign().`, owner === undefined, {\n      id: 'owner.legacy-owner-injection',\n      until: '3.25.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.22.0'\n      }\n    });\n  }\n\n  return owner;\n}\n/**\n  `setOwner` forces a new owner on a given object instance. This is primarily\n  useful in some testing cases.\n\n  @method setOwner\n  @static\n  @for @ember/application\n  @param {Object} object An object instance.\n  @param {Object} object The new owner object of the object instance.\n  @since 2.3.0\n  @public\n*/\n\nexport function setOwner(object, owner) {\n  glimmerSetOwner(object, owner);\n  object[LEGACY_OWNER] = owner;\n}","// ES6TODO: Cleanup modules with side-effects below\nimport './lib/ext/controller';\nexport { default as Location } from './lib/location/api';\nexport { default as NoneLocation } from './lib/location/none_location';\nexport { default as HashLocation } from './lib/location/hash_location';\nexport { default as HistoryLocation } from './lib/location/history_location';\nexport { default as AutoLocation } from './lib/location/auto_location';\nexport { default as generateController, generateControllerFactory } from './lib/system/generate_controller';\nexport { default as controllerFor } from './lib/system/controller_for';\nexport { default as RouterDSL } from './lib/system/dsl';\nexport { default as Router } from './lib/system/router';\nexport { default as Route } from './lib/system/route';\nexport { default as QueryParams } from './lib/system/query_params';\nexport { default as RoutingService } from './lib/services/routing';\nexport { default as RouterService } from './lib/services/router';\nexport { default as RouterState } from './lib/system/router_state';\nexport { default as BucketCache } from './lib/system/cache';","import { get } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\nimport ControllerMixin from '@ember/controller/lib/controller_mixin';\nimport { deprecateTransitionMethods, prefixRouteNameArg } from '../utils';\n/**\n@module ember\n*/\n\nControllerMixin.reopen({\n  concatenatedProperties: ['queryParams'],\n\n  init() {\n    this._super(...arguments);\n\n    let owner = getOwner(this);\n\n    if (owner) {\n      this.namespace = owner.lookup('application:main');\n      this.target = owner.lookup('router:main');\n    }\n  },\n\n  /**\n    Defines which query parameters the controller accepts.\n    If you give the names `['category','page']` it will bind\n    the values of these query parameters to the variables\n    `this.category` and `this.page`.\n       By default, query parameters are parsed as strings. This\n    may cause unexpected behavior if a query parameter is used with `toggleProperty`,\n    because the initial value set for `param=false` will be the string `\"false\"`, which is truthy.\n       To avoid this, you may specify that the query parameter should be parsed as a boolean\n    by using the following verbose form with a `type` property:\n    ```javascript\n      queryParams: [{\n        category: {\n          type: 'boolean'\n        }\n      }]\n    ```\n    Available values for the `type` parameter are `'boolean'`, `'number'`, `'array'`, and `'string'`.\n    If query param type is not specified, it will default to `'string'`.\n       @for Ember.ControllerMixin\n    @property queryParams\n    @public\n  */\n  queryParams: null,\n\n  /**\n   This property is updated to various different callback functions depending on\n   the current \"state\" of the backing route. It is used by\n   `Controller.prototype._qpChanged`.\n      The methods backing each state can be found in the `Route.prototype._qp` computed\n   property return value (the `.states` property). The current values are listed here for\n   the sanity of future travelers:\n      * `inactive` - This state is used when this controller instance is not part of the active\n     route hierarchy. Set in `Route.prototype._reset` (a `router.js` microlib hook) and\n     `Route.prototype.actions.finalizeQueryParamChange`.\n   * `active` - This state is used when this controller instance is part of the active\n     route hierarchy. Set in `Route.prototype.actions.finalizeQueryParamChange`.\n   * `allowOverrides` - This state is used in `Route.prototype.setup` (`route.js` microlib hook).\n       @method _qpDelegate\n    @private\n  */\n  _qpDelegate: null,\n\n  /**\n   During `Route#setup` observers are created to invoke this method\n   when any of the query params declared in `Controller#queryParams` property\n   are changed.\n      When invoked this method uses the currently active query param update delegate\n   (see `Controller.prototype._qpDelegate` for details) and invokes it with\n   the QP key/value being changed.\n       @method _qpChanged\n    @private\n  */\n  _qpChanged(controller, _prop) {\n    let dotIndex = _prop.indexOf('.[]');\n\n    let prop = dotIndex === -1 ? _prop : _prop.slice(0, dotIndex);\n    let delegate = controller._qpDelegate;\n    let value = get(controller, prop);\n    delegate(prop, value);\n  },\n\n  /**\n    Transition the application into another route. The route may\n    be either a single route or route path:\n       ```javascript\n    aController.transitionToRoute('blogPosts');\n    aController.transitionToRoute('blogPosts.recentEntries');\n    ```\n       Optionally supply a model for the route in question. The model\n    will be serialized into the URL using the `serialize` hook of\n    the route:\n       ```javascript\n    aController.transitionToRoute('blogPost', aPost);\n    ```\n       If a literal is passed (such as a number or a string), it will\n    be treated as an identifier instead. In this case, the `model`\n    hook of the route will be triggered:\n       ```javascript\n    aController.transitionToRoute('blogPost', 1);\n    ```\n       Multiple models will be applied last to first recursively up the\n    route tree.\n       ```app/router.js\n    Router.map(function() {\n      this.route('blogPost', { path: ':blogPostId' }, function() {\n        this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n      });\n    });\n    ```\n       ```javascript\n    aController.transitionToRoute('blogComment', aPost, aComment);\n    aController.transitionToRoute('blogComment', 1, 13);\n    ```\n       It is also possible to pass a URL (a string that starts with a\n    `/`).\n       ```javascript\n    aController.transitionToRoute('/');\n    aController.transitionToRoute('/blog/post/1/comment/13');\n    aController.transitionToRoute('/blog/posts?sort=title');\n    ```\n       An options hash with a `queryParams` property may be provided as\n    the final argument to add query parameters to the destination URL.\n       ```javascript\n    aController.transitionToRoute('blogPost', 1, {\n      queryParams: { showComments: 'true' }\n    });\n       // if you just want to transition the query parameters without changing the route\n    aController.transitionToRoute({ queryParams: { sort: 'date' } });\n    ```\n       See also [replaceRoute](/ember/release/classes/Ember.ControllerMixin/methods/replaceRoute?anchor=replaceRoute).\n       @param {String} name the name of the route or a URL\n    @param {...Object} models the model(s) or identifier(s) to be used\n      while transitioning to the route.\n    @param {Object} [options] optional hash with a queryParams property\n      containing a mapping of query parameters\n    @for Ember.ControllerMixin\n    @method transitionToRoute\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @deprecated Use transitionTo from the Router service instead.\n    @public\n  */\n  transitionToRoute(...args) {\n    deprecateTransitionMethods('controller', 'transitionToRoute'); // target may be either another controller or a router\n\n    let target = get(this, 'target');\n    let method = target.transitionToRoute || target.transitionTo;\n    return method.apply(target, prefixRouteNameArg(this, args));\n  },\n\n  /**\n    Transition into another route while replacing the current URL, if possible.\n    This will replace the current history entry instead of adding a new one.\n    Beside that, it is identical to `transitionToRoute` in all other respects.\n       ```javascript\n    aController.replaceRoute('blogPosts');\n    aController.replaceRoute('blogPosts.recentEntries');\n    ```\n       Optionally supply a model for the route in question. The model\n    will be serialized into the URL using the `serialize` hook of\n    the route:\n       ```javascript\n    aController.replaceRoute('blogPost', aPost);\n    ```\n       If a literal is passed (such as a number or a string), it will\n    be treated as an identifier instead. In this case, the `model`\n    hook of the route will be triggered:\n       ```javascript\n    aController.replaceRoute('blogPost', 1);\n    ```\n       Multiple models will be applied last to first recursively up the\n    route tree.\n       ```app/router.js\n    Router.map(function() {\n      this.route('blogPost', { path: ':blogPostId' }, function() {\n        this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n      });\n    });\n    ```\n       ```\n    aController.replaceRoute('blogComment', aPost, aComment);\n    aController.replaceRoute('blogComment', 1, 13);\n    ```\n       It is also possible to pass a URL (a string that starts with a\n    `/`).\n       ```javascript\n    aController.replaceRoute('/');\n    aController.replaceRoute('/blog/post/1/comment/13');\n    ```\n       @param {String} name the name of the route or a URL\n    @param {...Object} models the model(s) or identifier(s) to be used\n    while transitioning to the route.\n    @for Ember.ControllerMixin\n    @method replaceRoute\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @public\n  */\n  replaceRoute(...args) {\n    deprecateTransitionMethods('controller', 'replaceRoute'); // target may be either another controller or a router\n\n    let target = get(this, 'target');\n    let method = target.replaceRoute || target.replaceWith;\n    return method.apply(target, prefixRouteNameArg(this, args));\n  }\n\n});\nexport default ControllerMixin;","import { assert } from '@ember/debug';\n/**\n@module @ember/routing\n*/\n\n/**\n  Location returns an instance of the correct implementation of\n  the `location` API.\n\n  ## Implementations\n\n  You can pass an implementation name (`hash`, `history`, `none`, `auto`) to force a\n  particular implementation to be used in your application.\n\n  See [HashLocation](/ember/release/classes/HashLocation).\n  See [HistoryLocation](/ember/release/classes/HistoryLocation).\n  See [NoneLocation](/ember/release/classes/NoneLocation).\n  See [AutoLocation](/ember/release/classes/AutoLocation).\n\n  ## Location API\n\n  Each location implementation must provide the following methods:\n\n  * implementation: returns the string name used to reference the implementation.\n  * getURL: returns the current URL.\n  * setURL(path): sets the current URL.\n  * replaceURL(path): replace the current URL (optional).\n  * onUpdateURL(callback): triggers the callback when the URL changes.\n  * formatURL(url): formats `url` to be placed into `href` attribute.\n  * detect() (optional): instructs the location to do any feature detection\n      necessary. If the location needs to redirect to a different URL, it\n      can cancel routing by setting the `cancelRouterSetup` property on itself\n      to `false`.\n\n  Calling setURL or replaceURL will not trigger onUpdateURL callbacks.\n\n  ## Custom implementation\n\n  Ember scans `app/locations/*` for extending the Location API.\n\n  Example:\n\n  ```javascript\n  import HistoryLocation from '@ember/routing/history-location';\n\n  export default class MyHistory {\n    implementation = 'my-custom-history';\n\n    constructor() {\n      this._history = HistoryLocation.create(...arguments);\n    }\n\n    create() {\n      return new this(...arguments);\n    }\n\n    pushState(path) {\n       this._history.pushState(path);\n    }\n  }\n  ```\n\n  @class Location\n  @private\n*/\n\nexport default {\n  /**\n   This is deprecated in favor of using the container to lookup the location\n   implementation as desired.\n      For example:\n      ```javascript\n   // Given a location registered as follows:\n   container.register('location:history-test', HistoryTestLocation);\n      // You could create a new instance via:\n   container.lookup('location:history-test');\n   ```\n       @method create\n    @param {Object} options\n    @return {Object} an instance of an implementation of the `location` API\n    @deprecated Use the container to lookup the location implementation that you\n    need.\n    @private\n  */\n  create(options) {\n    let implementation = options && options.implementation;\n    assert(\"Location.create: you must specify a 'implementation' option\", Boolean(implementation));\n    let implementationClass = this.implementations[implementation];\n    assert(`Location.create: ${implementation} is not a valid implementation`, Boolean(implementationClass));\n    return implementationClass.create(...arguments);\n  },\n\n  implementations: {}\n};","import { history, location, userAgent, window } from '@ember/-internals/browser-environment';\nimport { set } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\nimport { Object as EmberObject } from '@ember/-internals/runtime';\nimport { assert } from '@ember/debug';\nimport { getFullPath, getHash, getPath, getQuery, replacePath, supportsHashChange, supportsHistory } from './util';\n/**\n@module @ember/routing\n*/\n\n/**\n  AutoLocation will select the best location option based off browser\n  support with the priority order: history, hash, none.\n\n  Clean pushState paths accessed by hashchange-only browsers will be redirected\n  to the hash-equivalent and vice versa so future transitions are consistent.\n\n  Keep in mind that since some of your users will use `HistoryLocation`, your\n  server must serve the Ember app at all the routes you define.\n\n  Browsers that support the `history` API will use `HistoryLocation`, those that\n  do not, but still support the `hashchange` event will use `HashLocation`, and\n  in the rare case neither is supported will use `NoneLocation`.\n\n  Example:\n\n  ```app/router.js\n  Router.map(function() {\n    this.route('posts', function() {\n      this.route('new');\n    });\n  });\n\n  Router.reopen({\n    location: 'auto'\n  });\n  ```\n\n  This will result in a posts.new url of `/posts/new` for modern browsers that\n  support the `history` api or `/#/posts/new` for older ones, like Internet\n  Explorer 9 and below.\n\n  When a user visits a link to your application, they will be automatically\n  upgraded or downgraded to the appropriate `Location` class, with the URL\n  transformed accordingly, if needed.\n\n  Keep in mind that since some of your users will use `HistoryLocation`, your\n  server must serve the Ember app at all the routes you define.\n\n  @class AutoLocation\n  @static\n  @protected\n*/\n\nexport default class AutoLocation extends EmberObject {\n  constructor() {\n    super(...arguments);\n    this.implementation = 'auto';\n  }\n  /**\n   Called by the router to instruct the location to do any feature detection\n   necessary. In the case of AutoLocation, we detect whether to use history\n   or hash concrete implementations.\n      @private\n  */\n\n\n  detect() {\n    let rootURL = this.rootURL;\n    assert('rootURL must end with a trailing forward slash e.g. \"/app/\"', rootURL.charAt(rootURL.length - 1) === '/');\n    let implementation = detectImplementation({\n      location: this.location,\n      history: this.history,\n      userAgent: this.userAgent,\n      rootURL,\n      documentMode: this.documentMode,\n      global: this.global\n    });\n\n    if (implementation === false) {\n      set(this, 'cancelRouterSetup', true);\n      implementation = 'none';\n    }\n\n    let concrete = getOwner(this).lookup(`location:${implementation}`);\n    assert(`Could not find location '${implementation}'.`, concrete !== undefined);\n    set(concrete, 'rootURL', rootURL);\n    set(this, 'concreteImplementation', concrete);\n  }\n\n  willDestroy() {\n    let {\n      concreteImplementation\n    } = this;\n\n    if (concreteImplementation) {\n      concreteImplementation.destroy();\n    }\n  }\n\n}\nAutoLocation.reopen({\n  /**\n    @private\n       Will be pre-pended to path upon state change.\n       @since 1.5.1\n    @property rootURL\n    @default '/'\n  */\n  rootURL: '/',\n  initState: delegateToConcreteImplementation('initState'),\n  getURL: delegateToConcreteImplementation('getURL'),\n  setURL: delegateToConcreteImplementation('setURL'),\n  replaceURL: delegateToConcreteImplementation('replaceURL'),\n  onUpdateURL: delegateToConcreteImplementation('onUpdateURL'),\n  formatURL: delegateToConcreteImplementation('formatURL'),\n\n  /**\n    @private\n       The browser's `location` object. This is typically equivalent to\n    `window.location`, but may be overridden for testing.\n       @property location\n    @default environment.location\n  */\n  location: location,\n\n  /**\n    @private\n       The browser's `history` object. This is typically equivalent to\n    `window.history`, but may be overridden for testing.\n       @since 1.5.1\n    @property history\n    @default environment.history\n  */\n  history: history,\n\n  /**\n   @private\n      The user agent's global variable. In browsers, this will be `window`.\n      @since 1.11\n   @property global\n   @default window\n  */\n  global: window,\n\n  /**\n    @private\n       The browser's `userAgent`. This is typically equivalent to\n    `navigator.userAgent`, but may be overridden for testing.\n       @since 1.5.1\n    @property userAgent\n    @default environment.history\n  */\n  userAgent: userAgent,\n\n  /**\n    @private\n       This property is used by the router to know whether to cancel the routing\n    setup process, which is needed while we redirect the browser.\n       @since 1.5.1\n    @property cancelRouterSetup\n    @default false\n  */\n  cancelRouterSetup: false\n});\n\nfunction delegateToConcreteImplementation(methodName) {\n  return function (...args) {\n    var _a;\n\n    let {\n      concreteImplementation\n    } = this;\n    assert(\"AutoLocation's detect() method should be called before calling any other hooks.\", Boolean(concreteImplementation));\n    return (_a = concreteImplementation[methodName]) === null || _a === void 0 ? void 0 : _a.call(concreteImplementation, ...args);\n  };\n}\n\nfunction detectImplementation(options) {\n  let {\n    location,\n    userAgent,\n    history,\n    documentMode,\n    global,\n    rootURL\n  } = options;\n  let implementation = 'none';\n  let cancelRouterSetup = false;\n  let currentPath = getFullPath(location);\n\n  if (supportsHistory(userAgent, history)) {\n    let historyPath = getHistoryPath(rootURL, location); // If the browser supports history and we have a history path, we can use\n    // the history location with no redirects.\n\n    if (currentPath === historyPath) {\n      implementation = 'history';\n    } else if (currentPath.substr(0, 2) === '/#') {\n      history.replaceState({\n        path: historyPath\n      }, '', historyPath);\n      implementation = 'history';\n    } else {\n      cancelRouterSetup = true;\n      replacePath(location, historyPath);\n    }\n  } else if (supportsHashChange(documentMode, global)) {\n    let hashPath = getHashPath(rootURL, location); // Be sure we're using a hashed path, otherwise let's switch over it to so\n    // we start off clean and consistent. We'll count an index path with no\n    // hash as \"good enough\" as well.\n\n    if (currentPath === hashPath || currentPath === '/' && hashPath === '/#/') {\n      implementation = 'hash';\n    } else {\n      // Our URL isn't in the expected hash-supported format, so we want to\n      // cancel the router setup and replace the URL to start off clean\n      cancelRouterSetup = true;\n      replacePath(location, hashPath);\n    }\n  }\n\n  if (cancelRouterSetup) {\n    return false;\n  }\n\n  return implementation;\n}\n/**\n  @private\n\n  Returns the current path as it should appear for HistoryLocation supported\n  browsers. This may very well differ from the real current path (e.g. if it\n  starts off as a hashed URL)\n*/\n\n\nexport function getHistoryPath(rootURL, location) {\n  let path = getPath(location);\n  let hash = getHash(location);\n  let query = getQuery(location);\n  let rootURLIndex = path.indexOf(rootURL);\n  let routeHash;\n  let hashParts;\n  assert(`Path ${path} does not start with the provided rootURL ${rootURL}`, rootURLIndex === 0); // By convention, Ember.js routes using HashLocation are required to start\n  // with `#/`. Anything else should NOT be considered a route and should\n  // be passed straight through, without transformation.\n\n  if (hash.substr(0, 2) === '#/') {\n    // There could be extra hash segments after the route\n    hashParts = hash.substr(1).split('#'); // The first one is always the route url\n\n    routeHash = hashParts.shift(); // If the path already has a trailing slash, remove the one\n    // from the hashed route so we don't double up.\n\n    if (path.charAt(path.length - 1) === '/') {\n      routeHash = routeHash.substr(1);\n    } // This is the \"expected\" final order\n\n\n    path += routeHash + query;\n\n    if (hashParts.length) {\n      path += `#${hashParts.join('#')}`;\n    }\n  } else {\n    path += query + hash;\n  }\n\n  return path;\n}\n/**\n  @private\n\n  Returns the current path as it should appear for HashLocation supported\n  browsers. This may very well differ from the real current path.\n\n  @method _getHashPath\n*/\n\nexport function getHashPath(rootURL, location) {\n  let path = rootURL;\n  let historyPath = getHistoryPath(rootURL, location);\n  let routePath = historyPath.substr(rootURL.length);\n\n  if (routePath !== '') {\n    if (routePath[0] !== '/') {\n      routePath = `/${routePath}`;\n    }\n\n    path += `#${routePath}`;\n  }\n\n  return path;\n}","import { set } from '@ember/-internals/metal';\nimport { Object as EmberObject } from '@ember/-internals/runtime';\nimport { bind } from '@ember/runloop';\nimport { getHash } from './util';\n/**\n@module @ember/routing\n*/\n\n/**\n  `HashLocation` implements the location API using the browser's\n  hash. At present, it relies on a `hashchange` event existing in the\n  browser.\n\n  Using `HashLocation` results in URLs with a `#` (hash sign) separating the\n  server side URL portion of the URL from the portion that is used by Ember.\n\n  Example:\n\n  ```app/router.js\n  Router.map(function() {\n    this.route('posts', function() {\n      this.route('new');\n    });\n  });\n\n  Router.reopen({\n    location: 'hash'\n  });\n  ```\n\n  This will result in a posts.new url of `/#/posts/new`.\n\n  @class HashLocation\n  @extends EmberObject\n  @protected\n*/\n\nexport default class HashLocation extends EmberObject {\n  constructor() {\n    super(...arguments);\n    this.implementation = 'hash';\n  }\n\n  init() {\n    set(this, 'location', this._location || window.location);\n    this._hashchangeHandler = undefined;\n  }\n  /**\n    @private\n       Returns normalized location.hash\n       @since 1.5.1\n    @method getHash\n  */\n\n\n  getHash() {\n    return getHash(this.location);\n  }\n  /**\n    Returns the normalized URL, constructed from `location.hash`.\n       e.g. `#/foo` => `/foo` as well as `#/foo#bar` => `/foo#bar`.\n       By convention, hashed paths must begin with a forward slash, otherwise they\n    are not treated as a path so we can distinguish intent.\n       @private\n    @method getURL\n  */\n\n\n  getURL() {\n    let originalPath = this.getHash().substr(1);\n    let outPath = originalPath;\n\n    if (outPath[0] !== '/') {\n      outPath = '/'; // Only add the # if the path isn't empty.\n      // We do NOT want `/#` since the ampersand\n      // is only included (conventionally) when\n      // the location.hash has a value\n\n      if (originalPath) {\n        outPath += `#${originalPath}`;\n      }\n    }\n\n    return outPath;\n  }\n  /**\n    Set the `location.hash` and remembers what was set. This prevents\n    `onUpdateURL` callbacks from triggering when the hash was set by\n    `HashLocation`.\n       @private\n    @method setURL\n    @param path {String}\n  */\n\n\n  setURL(path) {\n    this.location.hash = path;\n    set(this, 'lastSetURL', path);\n  }\n  /**\n    Uses location.replace to update the url without a page reload\n    or history modification.\n       @private\n    @method replaceURL\n    @param path {String}\n  */\n\n\n  replaceURL(path) {\n    this.location.replace(`#${path}`);\n    set(this, 'lastSetURL', path);\n  }\n  /**\n    Register a callback to be invoked when the hash changes. These\n    callbacks will execute when the user presses the back or forward\n    button, but not after `setURL` is invoked.\n       @private\n    @method onUpdateURL\n    @param callback {Function}\n  */\n\n\n  onUpdateURL(callback) {\n    this._removeEventListener();\n\n    this._hashchangeHandler = bind(this, function () {\n      let path = this.getURL();\n\n      if (this.lastSetURL === path) {\n        return;\n      }\n\n      set(this, 'lastSetURL', null);\n      callback(path);\n    });\n    window.addEventListener('hashchange', this._hashchangeHandler);\n  }\n  /**\n    Given a URL, formats it to be placed into the page as part\n    of an element's `href` attribute.\n       This is used, for example, when using the {{action}} helper\n    to generate a URL based on an event.\n       @private\n    @method formatURL\n    @param url {String}\n  */\n\n\n  formatURL(url) {\n    return `#${url}`;\n  }\n  /**\n    Cleans up the HashLocation event listener.\n       @private\n    @method willDestroy\n  */\n\n\n  willDestroy() {\n    this._removeEventListener();\n  }\n\n  _removeEventListener() {\n    if (this._hashchangeHandler) {\n      window.removeEventListener('hashchange', this._hashchangeHandler);\n    }\n  }\n\n}","import { set } from '@ember/-internals/metal';\nimport { Object as EmberObject } from '@ember/-internals/runtime';\nimport { getHash } from './util';\n/**\n@module @ember/routing\n*/\n\nlet popstateFired = false;\n\nfunction _uuid() {\n  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n    let r, v;\n    r = Math.random() * 16 | 0;\n    v = c === 'x' ? r : r & 3 | 8;\n    return v.toString(16);\n  });\n}\n/**\n  HistoryLocation implements the location API using the browser's\n  history.pushState API.\n\n  Using `HistoryLocation` results in URLs that are indistinguishable from a\n  standard URL. This relies upon the browser's `history` API.\n\n  Example:\n\n  ```app/router.js\n  Router.map(function() {\n    this.route('posts', function() {\n      this.route('new');\n    });\n  });\n\n  Router.reopen({\n    location: 'history'\n  });\n  ```\n\n  This will result in a posts.new url of `/posts/new`.\n\n  Keep in mind that your server must serve the Ember app at all the routes you\n  define.\n\n  Using `HistoryLocation` will also result in location states being recorded by\n  the browser `history` API with the following schema:\n\n  ```\n  window.history.state -> { path: '/', uuid: '3552e730-b4a6-46bd-b8bf-d8c3c1a97e0a' }\n  ```\n\n  This allows each in-app location state to be tracked uniquely across history\n  state changes via the `uuid` field.\n\n  @class HistoryLocation\n  @extends EmberObject\n  @protected\n*/\n\n\nexport default class HistoryLocation extends EmberObject {\n  constructor() {\n    super(...arguments);\n    this.implementation = 'history';\n    /**\n      Will be pre-pended to path upon state change\n             @property rootURL\n      @default '/'\n      @private\n    */\n\n    this.rootURL = '/';\n  }\n  /**\n    @private\n       Returns normalized location.hash\n       @method getHash\n  */\n\n\n  getHash() {\n    return getHash(this.location);\n  }\n\n  init() {\n    this._super(...arguments);\n\n    let base = document.querySelector('base');\n    let baseURL = '';\n\n    if (base !== null && base.hasAttribute('href')) {\n      baseURL = base.getAttribute('href');\n    }\n\n    set(this, 'baseURL', baseURL);\n    set(this, 'location', this.location || window.location);\n    this._popstateHandler = undefined;\n  }\n  /**\n    Used to set state on first call to setURL\n       @private\n    @method initState\n  */\n\n\n  initState() {\n    let history = this.history || window.history;\n    set(this, 'history', history);\n    let {\n      state\n    } = history;\n    let path = this.formatURL(this.getURL());\n\n    if (state && state.path === path) {\n      // preserve existing state\n      // used for webkit workaround, since there will be no initial popstate event\n      this._previousURL = this.getURL();\n    } else {\n      this.replaceState(path);\n    }\n  }\n  /**\n    Returns the current `location.pathname` without `rootURL` or `baseURL`\n       @private\n    @method getURL\n    @return url {String}\n  */\n\n\n  getURL() {\n    let {\n      location,\n      rootURL,\n      baseURL\n    } = this;\n    let path = location.pathname; // remove trailing slashes if they exists\n\n    rootURL = rootURL.replace(/\\/$/, '');\n    baseURL = baseURL.replace(/\\/$/, ''); // remove baseURL and rootURL from start of path\n\n    let url = path.replace(new RegExp(`^${baseURL}(?=/|$)`), '').replace(new RegExp(`^${rootURL}(?=/|$)`), '').replace(/\\/\\//g, '/'); // remove extra slashes\n\n    let search = location.search || '';\n    url += search + this.getHash();\n    return url;\n  }\n  /**\n    Uses `history.pushState` to update the url without a page reload.\n       @private\n    @method setURL\n    @param path {String}\n  */\n\n\n  setURL(path) {\n    let {\n      state\n    } = this.history;\n    path = this.formatURL(path);\n\n    if (!state || state.path !== path) {\n      this.pushState(path);\n    }\n  }\n  /**\n    Uses `history.replaceState` to update the url without a page reload\n    or history modification.\n       @private\n    @method replaceURL\n    @param path {String}\n  */\n\n\n  replaceURL(path) {\n    let {\n      state\n    } = this.history;\n    path = this.formatURL(path);\n\n    if (!state || state.path !== path) {\n      this.replaceState(path);\n    }\n  }\n  /**\n   Pushes a new state.\n      @private\n   @method pushState\n   @param path {String}\n  */\n\n\n  pushState(path) {\n    let state = {\n      path,\n      uuid: _uuid()\n    };\n    this.history.pushState(state, null, path); // used for webkit workaround\n\n    this._previousURL = this.getURL();\n  }\n  /**\n   Replaces the current state.\n      @private\n   @method replaceState\n   @param path {String}\n  */\n\n\n  replaceState(path) {\n    let state = {\n      path,\n      uuid: _uuid()\n    };\n    this.history.replaceState(state, null, path); // used for webkit workaround\n\n    this._previousURL = this.getURL();\n  }\n  /**\n    Register a callback to be invoked whenever the browser\n    history changes, including using forward and back buttons.\n       @private\n    @method onUpdateURL\n    @param callback {Function}\n  */\n\n\n  onUpdateURL(callback) {\n    this._removeEventListener();\n\n    this._popstateHandler = () => {\n      // Ignore initial page load popstate event in Chrome\n      if (!popstateFired) {\n        popstateFired = true;\n\n        if (this.getURL() === this._previousURL) {\n          return;\n        }\n      }\n\n      callback(this.getURL());\n    };\n\n    window.addEventListener('popstate', this._popstateHandler);\n  }\n  /**\n    Used when using `{{action}}` helper.  The url is always appended to the rootURL.\n       @private\n    @method formatURL\n    @param url {String}\n    @return formatted url {String}\n  */\n\n\n  formatURL(url) {\n    let {\n      rootURL,\n      baseURL\n    } = this;\n\n    if (url !== '') {\n      // remove trailing slashes if they exists\n      rootURL = rootURL.replace(/\\/$/, '');\n      baseURL = baseURL.replace(/\\/$/, '');\n    } else if (baseURL[0] === '/' && rootURL[0] === '/') {\n      // if baseURL and rootURL both start with a slash\n      // ... remove trailing slash from baseURL if it exists\n      baseURL = baseURL.replace(/\\/$/, '');\n    }\n\n    return baseURL + rootURL + url;\n  }\n  /**\n    Cleans up the HistoryLocation event listener.\n       @private\n    @method willDestroy\n  */\n\n\n  willDestroy() {\n    this._removeEventListener();\n  }\n\n  _removeEventListener() {\n    if (this._popstateHandler) {\n      window.removeEventListener('popstate', this._popstateHandler);\n    }\n  }\n\n}","import { set } from '@ember/-internals/metal';\nimport { Object as EmberObject } from '@ember/-internals/runtime';\nimport { assert } from '@ember/debug';\n/**\n@module @ember/routing\n*/\n\n/**\n  NoneLocation does not interact with the browser. It is useful for\n  testing, or when you need to manage state with your Router, but temporarily\n  don't want it to muck with the URL (for example when you embed your\n  application in a larger page).\n\n  Using `NoneLocation` causes Ember to not store the applications URL state\n  in the actual URL. This is generally used for testing purposes, and is one\n  of the changes made when calling `App.setupForTesting()`.\n\n  @class NoneLocation\n  @extends EmberObject\n  @protected\n*/\n\nexport default class NoneLocation extends EmberObject {\n  constructor() {\n    super(...arguments);\n    this.implementation = 'none';\n  }\n\n  detect() {\n    let {\n      rootURL\n    } = this;\n    assert('rootURL must end with a trailing forward slash e.g. \"/app/\"', rootURL.charAt(rootURL.length - 1) === '/');\n  }\n  /**\n    Returns the current path without `rootURL`.\n       @private\n    @method getURL\n    @return {String} path\n  */\n\n\n  getURL() {\n    let {\n      path,\n      rootURL\n    } = this; // remove trailing slashes if they exists\n\n    rootURL = rootURL.replace(/\\/$/, ''); // remove rootURL from url\n\n    return path.replace(new RegExp(`^${rootURL}(?=/|$)`), '');\n  }\n  /**\n    Set the path and remembers what was set. Using this method\n    to change the path will not invoke the `updateURL` callback.\n       @private\n    @method setURL\n    @param path {String}\n  */\n\n\n  setURL(path) {\n    set(this, 'path', path);\n  }\n  /**\n    Register a callback to be invoked when the path changes. These\n    callbacks will execute when the user presses the back or forward\n    button, but not after `setURL` is invoked.\n       @private\n    @method onUpdateURL\n    @param callback {Function}\n  */\n\n\n  onUpdateURL(callback) {\n    this.updateCallback = callback;\n  }\n  /**\n    Sets the path and calls the `updateURL` callback.\n       @private\n    @method handleURL\n    @param url {String}\n  */\n\n\n  handleURL(url) {\n    set(this, 'path', url);\n    this.updateCallback(url);\n  }\n  /**\n    Given a URL, formats it to be placed into the page as part\n    of an element's `href` attribute.\n       This is used, for example, when using the {{action}} helper\n    to generate a URL based on an event.\n       @private\n    @method formatURL\n    @param url {String}\n    @return {String} url\n  */\n\n\n  formatURL(url) {\n    let {\n      rootURL\n    } = this;\n\n    if (url !== '') {\n      // remove trailing slashes if they exists\n      rootURL = rootURL.replace(/\\/$/, '');\n    }\n\n    return rootURL + url;\n  }\n\n}\nNoneLocation.reopen({\n  path: '',\n\n  /**\n    Will be pre-pended to path.\n       @private\n    @property rootURL\n    @default '/'\n  */\n  rootURL: '/'\n});","/**\n  @private\n\n  Returns the current `location.pathname`, normalized for IE inconsistencies.\n*/\nexport function getPath(location) {\n  let pathname = location.pathname; // Various versions of IE/Opera don't always return a leading slash\n\n  if (pathname[0] !== '/') {\n    pathname = `/${pathname}`;\n  }\n\n  return pathname;\n}\n/**\n  @private\n\n  Returns the current `location.search`.\n*/\n\nexport function getQuery(location) {\n  return location.search;\n}\n/**\n  @private\n\n  Returns the hash or empty string\n*/\n\nexport function getHash(location) {\n  if (location.hash !== undefined) {\n    return location.hash.substr(0);\n  }\n\n  return '';\n}\nexport function getFullPath(location) {\n  return getPath(location) + getQuery(location) + getHash(location);\n}\nexport function getOrigin(location) {\n  let origin = location.origin; // Older browsers, especially IE, don't have origin\n\n  if (!origin) {\n    origin = `${location.protocol}//${location.hostname}`;\n\n    if (location.port) {\n      origin += `:${location.port}`;\n    }\n  }\n\n  return origin;\n}\n/*\n  `documentMode` only exist in Internet Explorer, and it's tested because IE8 running in\n  IE7 compatibility mode claims to support `onhashchange` but actually does not.\n\n  `global` is an object that may have an `onhashchange` property.\n\n  @private\n  @function supportsHashChange\n*/\n\nexport function supportsHashChange(documentMode, global) {\n  return Boolean(global && 'onhashchange' in global && (documentMode === undefined || documentMode > 7));\n}\n/*\n  `userAgent` is a user agent string. We use user agent testing here, because\n  the stock Android browser is known to have buggy versions of the History API,\n  in some Android versions.\n\n  @private\n  @function supportsHistory\n*/\n\nexport function supportsHistory(userAgent, history) {\n  // Boosted from Modernizr: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js\n  // The stock browser on Android 2.2 & 2.3, and 4.0.x returns positive on history support\n  // Unfortunately support is really buggy and there is no clean way to detect\n  // these bugs, so we fall back to a user agent sniff :(\n  // We only want Android 2 and 4.0, stock browser, and not Chrome which identifies\n  // itself as 'Mobile Safari' as well, nor Windows Phone.\n  if ((userAgent.indexOf('Android 2.') !== -1 || userAgent.indexOf('Android 4.0') !== -1) && userAgent.indexOf('Mobile Safari') !== -1 && userAgent.indexOf('Chrome') === -1 && userAgent.indexOf('Windows Phone') === -1) {\n    return false;\n  }\n\n  return Boolean(history && 'pushState' in history);\n}\n/**\n  Replaces the current location, making sure we explicitly include the origin\n  to prevent redirecting to a different origin.\n\n  @private\n*/\n\nexport function replacePath(location, path) {\n  location.replace(getOrigin(location) + path);\n}","import { getOwner } from '@ember/-internals/owner';\nimport { Evented } from '@ember/-internals/runtime';\nimport { symbol } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport { readOnly } from '@ember/object/computed';\nimport { assign } from '@ember/polyfills';\nimport Service from '@ember/service';\nimport { consumeTag, tagFor } from '@glimmer/validator';\nimport { extractRouteArgs, resemblesURL, shallowEqual } from '../utils';\nconst ROUTER = symbol('ROUTER');\n\nfunction cleanURL(url, rootURL) {\n  if (rootURL === '/') {\n    return url;\n  }\n\n  return url.substr(rootURL.length, url.length);\n}\n/**\n   The Router service is the public API that provides access to the router.\n\n   The immediate benefit of the Router service is that you can inject it into components,\n   giving them a friendly way to initiate transitions and ask questions about the current\n   global router state.\n\n   In this example, the Router service is injected into a component to initiate a transition\n   to a dedicated route:\n\n   ```app/components/example.js\n   import Component from '@glimmer/component';\n   import { action } from '@ember/object';\n   import { inject as service } from '@ember/service';\n\n   export default class ExampleComponent extends Component {\n     @service router;\n\n     @action\n     next() {\n       this.router.transitionTo('other.route');\n     }\n   }\n   ```\n\n   Like any service, it can also be injected into helpers, routes, etc.\n\n   @public\n   @extends Service\n   @class RouterService\n */\n\n\nexport default class RouterService extends Service {\n  get _router() {\n    let router = this[ROUTER];\n\n    if (router !== undefined) {\n      return router;\n    }\n\n    const owner = getOwner(this);\n    router = owner.lookup('router:main');\n    return this[ROUTER] = router;\n  }\n\n  willDestroy() {\n    super.willDestroy(...arguments);\n    this[ROUTER] = null;\n  }\n  /**\n     Transition the application into another route. The route may\n     be either a single route or route path:\n        See [transitionTo](/ember/release/classes/Route/methods/transitionTo?anchor=transitionTo) for more info.\n        Calling `transitionTo` from the Router service will cause default query parameter values to be included in the URL.\n     This behavior is different from calling `transitionTo` on a route or `transitionToRoute` on a controller.\n     See the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n        In the following example we use the Router service to navigate to a route with a\n     specific model from a Component in the first action, and in the second we trigger\n     a query-params only transition.\n        ```app/components/example.js\n     import Component from '@glimmer/component';\n     import { action } from '@ember/object';\n     import { inject as service } from '@ember/service';\n        export default class extends Component {\n       @service router;\n          @action\n       goToComments(post) {\n         this.router.transitionTo('comments', post);\n       }\n          @action\n       fetchMoreComments(latestComment) {\n         this.router.transitionTo({\n           queryParams: { commentsAfter: latestComment }\n         });\n       }\n     }\n     ```\n        @method transitionTo\n     @param {String} [routeNameOrUrl] the name of the route or a URL\n     @param {...Object} [models] the model(s) or identifier(s) to be used while\n       transitioning to the route.\n     @param {Object} [options] optional hash with a queryParams property\n       containing a mapping of query parameters. May be supplied as the only\n      parameter to trigger a query-parameter-only transition.\n     @return {Transition} the transition object associated with this\n       attempted transition\n     @public\n   */\n\n\n  transitionTo(...args) {\n    if (resemblesURL(args[0])) {\n      // NOTE: this `args[0] as string` cast is safe and TS correctly infers it\n      // in 3.6+, so it can be removed when TS is upgraded.\n      return this._router._doURLTransition('transitionTo', args[0]);\n    }\n\n    let {\n      routeName,\n      models,\n      queryParams\n    } = extractRouteArgs(args);\n\n    let transition = this._router._doTransition(routeName, models, queryParams, true);\n\n    transition['_keepDefaultQueryParamValues'] = true;\n    return transition;\n  }\n  /**\n     Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\n     it replaces the entry for the current route.\n     When the user clicks the \"back\" button in the browser, there will be fewer steps.\n     This is most commonly used to manage redirects in a way that does not cause confusing additions\n     to the user's browsing history.\n        See [replaceWith](/ember/release/classes/Route/methods/replaceWith?anchor=replaceWith) for more info.\n        Calling `replaceWith` from the Router service will cause default query parameter values to be included in the URL.\n     This behavior is different from calling `replaceWith` on a route.\n     See the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n        Usage example:\n        ```app/routes/application.js\n     import Route from '@ember/routing/route';\n        export default class extends Route {\n       beforeModel() {\n         if (!authorized()){\n           this.replaceWith('unauthorized');\n         }\n       }\n     });\n     ```\n        @method replaceWith\n     @param {String} routeNameOrUrl the name of the route or a URL of the desired destination\n     @param {...Object} models the model(s) or identifier(s) to be used while\n       transitioning to the route i.e. an object of params to pass to the destination route\n     @param {Object} [options] optional hash with a queryParams property\n       containing a mapping of query parameters\n     @return {Transition} the transition object associated with this\n       attempted transition\n     @public\n   */\n\n\n  replaceWith()\n  /* routeNameOrUrl, ...models, options */\n  {\n    return this.transitionTo(...arguments).method('replace');\n  }\n  /**\n    Generate a URL based on the supplied route name and optionally a model. The\n    URL is returned as a string that can be used for any purpose.\n       In this example, the URL for the `author.books` route for a given author\n    is copied to the clipboard.\n       ```app/templates/application.hbs\n    <CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n    ```\n       ```app/components/copy-link.js\n    import Component from '@glimmer/component';\n    import { inject as service } from '@ember/service';\n    import { action } from '@ember/object';\n       export default class CopyLinkComponent extends Component {\n      @service router;\n      @service clipboard;\n         @action\n      copyBooksURL() {\n        if (this.author) {\n          const url = this.router.urlFor('author.books', this.args.author);\n          this.clipboard.set(url);\n          // Clipboard now has /author/tomster/books\n        }\n      }\n    }\n    ```\n       Just like with `transitionTo` and `replaceWith`, `urlFor` can also handle\n    query parameters.\n       ```app/templates/application.hbs\n    <CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n    ```\n       ```app/components/copy-link.js\n    import Component from '@glimmer/component';\n    import { inject as service } from '@ember/service';\n    import { action } from '@ember/object';\n       export default class CopyLinkComponent extends Component {\n      @service router;\n      @service clipboard;\n         @action\n      copyOnlyEmberBooksURL() {\n        if (this.author) {\n          const url = this.router.urlFor('author.books', this.author, {\n            queryParams: { filter: 'emberjs' }\n          });\n          this.clipboard.set(url);\n          // Clipboard now has /author/tomster/books?filter=emberjs\n        }\n      }\n    }\n    ```\n        @method urlFor\n     @param {String} routeName the name of the route\n     @param {...Object} models the model(s) or identifier(s) to be used while\n       transitioning to the route.\n     @param {Object} [options] optional hash with a queryParams property\n       containing a mapping of query parameters\n     @return {String} the string representing the generated URL\n     @public\n   */\n\n\n  urlFor(routeName, ...args) {\n    this._router.setupRouter();\n\n    return this._router.generate(routeName, ...args);\n  }\n  /**\n     Returns `true` if `routeName/models/queryParams` is the active route, where `models` and `queryParams` are optional.\n     See [model](api/ember/release/classes/Route/methods/model?anchor=model) and\n     [queryParams](/api/ember/3.7/classes/Route/properties/queryParams?anchor=queryParams) for more information about these arguments.\n        In the following example, `isActive` will return `true` if the current route is `/posts`.\n        ```app/components/posts.js\n     import Component from '@glimmer/component';\n     import { inject as service } from '@ember/service';\n        export default class extends Component {\n       @service router;\n          displayComments() {\n         return this.router.isActive('posts');\n       }\n     });\n     ```\n        The next example includes a dynamic segment, and will return `true` if the current route is `/posts/1`,\n     assuming the post has an id of 1:\n        ```app/components/posts.js\n     import Component from '@glimmer/component';\n     import { inject as service } from '@ember/service';\n        export default class extends Component {\n       @service router;\n          displayComments(post) {\n         return this.router.isActive('posts', post.id);\n       }\n     });\n     ```\n        Where `post.id` is the id of a specific post, which is represented in the route as /posts/[post.id].\n     If `post.id` is equal to 1, then isActive will return true if the current route is /posts/1, and false if the route is anything else.\n        @method isActive\n     @param {String} routeName the name of the route\n     @param {...Object} models the model(s) or identifier(s) to be used when determining the active route.\n     @param {Object} [options] optional hash with a queryParams property\n       containing a mapping of query parameters\n     @return {boolean} true if the provided routeName/models/queryParams are active\n     @public\n   */\n\n\n  isActive(...args) {\n    let {\n      routeName,\n      models,\n      queryParams\n    } = extractRouteArgs(args);\n    let routerMicrolib = this._router._routerMicrolib; // When using isActive() in a getter, we want to entagle with the auto-tracking system\n    // for example,\n    // in\n    // get isBarActive() {\n    //   return isActive('foo.bar');\n    // }\n    //\n    // you'd expect isBarActive to be dirtied when the route changes.\n    //\n    // https://github.com/emberjs/ember.js/issues/19004\n\n    consumeTag(tagFor(this._router, 'currentURL')); // UNSAFE: casting `routeName as string` here encodes the existing\n    // assumption but may be wrong: `extractRouteArgs` correctly returns it as\n    // `string | undefined`. There may be bugs if `isActiveIntent` does\n    // not correctly account for `undefined` values for `routeName`. Spoilers:\n    // it *does not* account for this being `undefined`.\n\n    if (!routerMicrolib.isActiveIntent(routeName, models)) {\n      return false;\n    }\n\n    let hasQueryParams = Object.keys(queryParams).length > 0;\n\n    if (hasQueryParams) {\n      queryParams = assign({}, queryParams);\n\n      this._router._prepareQueryParams( // UNSAFE: casting `routeName as string` here encodes the existing\n      // assumption but may be wrong: `extractRouteArgs` correctly returns it\n      // as `string | undefined`. There may be bugs if `_prepareQueryParams`\n      // does not correctly account for `undefined` values for `routeName`.\n      //  Spoilers: under the hood this currently uses router.js APIs which\n      // *do not* account for this being `undefined`.\n      routeName, models, // UNSAFE: downstream consumers treat this as `QueryParam`, which the\n      // type system here *correctly* reports as incorrect, because it may be\n      // just an empty object.\n      queryParams, true\n      /* fromRouterService */\n      );\n\n      return shallowEqual(queryParams, routerMicrolib.state.queryParams);\n    }\n\n    return true;\n  }\n  /**\n     Takes a string URL and returns a `RouteInfo` for the leafmost route represented\n     by the URL. Returns `null` if the URL is not recognized. This method expects to\n     receive the actual URL as seen by the browser including the app's `rootURL`.\n        See [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n        In the following example `recognize` is used to verify if a path belongs to our\n     application before transitioning to it.\n        ```\n     import Component from '@ember/component';\n     import { inject as service } from '@ember/service';\n        export default class extends Component {\n       @service router;\n       path = '/';\n          click() {\n         if (this.router.recognize(this.path)) {\n           this.router.transitionTo(this.path);\n         }\n       }\n     }\n     ```\n         @method recognize\n      @param {String} url\n      @public\n    */\n\n\n  recognize(url) {\n    assert(`You must pass a url that begins with the application's rootURL \"${this.rootURL}\"`, url.indexOf(this.rootURL) === 0);\n\n    this._router.setupRouter();\n\n    let internalURL = cleanURL(url, this.rootURL);\n    return this._router._routerMicrolib.recognize(internalURL);\n  }\n  /**\n    Takes a string URL and returns a promise that resolves to a\n    `RouteInfoWithAttributes` for the leafmost route represented by the URL.\n    The promise rejects if the URL is not recognized or an unhandled exception\n    is encountered. This method expects to receive the actual URL as seen by\n    the browser including the app's `rootURL`.\n         @method recognizeAndLoad\n      @param {String} url\n      @public\n   */\n\n\n  recognizeAndLoad(url) {\n    assert(`You must pass a url that begins with the application's rootURL \"${this.rootURL}\"`, url.indexOf(this.rootURL) === 0);\n\n    this._router.setupRouter();\n\n    let internalURL = cleanURL(url, this.rootURL);\n    return this._router._routerMicrolib.recognizeAndLoad(internalURL);\n  }\n\n}\nRouterService.reopen(Evented, {\n  /**\n     Name of the current route.\n        This property represents the logical name of the route,\n     which is comma separated.\n     For the following router:\n        ```app/router.js\n     Router.map(function() {\n       this.route('about');\n       this.route('blog', function () {\n         this.route('post', { path: ':post_id' });\n       });\n     });\n     ```\n        It will return:\n        * `index` when you visit `/`\n     * `about` when you visit `/about`\n     * `blog.index` when you visit `/blog`\n     * `blog.post` when you visit `/blog/some-post-id`\n        @property currentRouteName\n     @type String\n     @public\n   */\n  currentRouteName: readOnly('_router.currentRouteName'),\n\n  /**\n     Current URL for the application.\n       This property represents the URL path for this route.\n    For the following router:\n        ```app/router.js\n     Router.map(function() {\n       this.route('about');\n       this.route('blog', function () {\n         this.route('post', { path: ':post_id' });\n       });\n     });\n     ```\n        It will return:\n        * `/` when you visit `/`\n     * `/about` when you visit `/about`\n     * `/blog` when you visit `/blog`\n     * `/blog/some-post-id` when you visit `/blog/some-post-id`\n        @property currentURL\n     @type String\n     @public\n   */\n  currentURL: readOnly('_router.currentURL'),\n\n  /**\n    The `location` property returns what implementation of the `location` API\n    your application is using, which determines what type of URL is being used.\n       See [Location](/ember/release/classes/Location) for more information.\n       To force a particular `location` API implementation to be used in your\n    application you can set a location type on your `config/environment`.\n    For example, to set the `history` type:\n       ```config/environment.js\n    'use strict';\n       module.exports = function(environment) {\n      let ENV = {\n        modulePrefix: 'router-service',\n        environment,\n        rootURL: '/',\n        locationType: 'history',\n        ...\n      }\n    }\n    ```\n       The following location types are available by default:\n    `auto`, `hash`, `history`, `none`.\n       See [HashLocation](/ember/release/classes/HashLocation).\n    See [HistoryLocation](/ember/release/classes/HistoryLocation).\n    See [NoneLocation](/ember/release/classes/NoneLocation).\n    See [AutoLocation](/ember/release/classes/AutoLocation).\n       @property location\n    @default 'hash'\n    @see {Location}\n    @public\n  */\n  location: readOnly('_router.location'),\n\n  /**\n    The `rootURL` property represents the URL of the root of\n    the application, '/' by default.\n    This prefix is assumed on all routes defined on this app.\n       If you change the `rootURL` in your environment configuration\n    like so:\n       ```config/environment.js\n    'use strict';\n       module.exports = function(environment) {\n      let ENV = {\n        modulePrefix: 'router-service',\n        environment,\n        rootURL: '/my-root',\n      …\n      }\n    ]\n    ```\n       This property will return `/my-root`.\n       @property rootURL\n    @default '/'\n    @public\n  */\n  rootURL: readOnly('_router.rootURL'),\n\n  /**\n    The `currentRoute` property contains metadata about the current leaf route.\n    It returns a `RouteInfo` object that has information like the route name,\n    params, query params and more.\n       See [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n       This property is guaranteed to change whenever a route transition\n    happens (even when that transition only changes parameters\n    and doesn't change the active route).\n       Usage example:\n    ```app/components/header.js\n      import Component from '@glimmer/component';\n      import { inject as service } from '@ember/service';\n      import { notEmpty } from '@ember/object/computed';\n         export default class extends Component {\n        @service router;\n           @notEmpty('router.currentRoute.child') isChildRoute;\n      });\n    ```\n        @property currentRoute\n     @type RouteInfo\n     @public\n   */\n  currentRoute: readOnly('_router.currentRoute')\n});","/**\n@module ember\n*/\nimport { getOwner } from '@ember/-internals/owner';\nimport { symbol } from '@ember/-internals/utils';\nimport { readOnly } from '@ember/object/computed';\nimport { assign } from '@ember/polyfills';\nimport Service from '@ember/service';\nconst ROUTER = symbol('ROUTER');\n/**\n  The Routing service is used by LinkComponent, and provides facilities for\n  the component/view layer to interact with the router.\n\n  This is a private service for internal usage only. For public usage,\n  refer to the `Router` service.\n\n  @private\n  @class RoutingService\n*/\n\nexport default class RoutingService extends Service {\n  get router() {\n    let router = this[ROUTER];\n\n    if (router !== undefined) {\n      return router;\n    }\n\n    const owner = getOwner(this);\n    router = owner.lookup('router:main');\n    router.setupRouter();\n    return this[ROUTER] = router;\n  }\n\n  hasRoute(routeName) {\n    return this.router.hasRoute(routeName);\n  }\n\n  transitionTo(routeName, models, queryParams, shouldReplace) {\n    let transition = this.router._doTransition(routeName, models, queryParams);\n\n    if (shouldReplace) {\n      transition.method('replace');\n    }\n\n    return transition;\n  }\n\n  normalizeQueryParams(routeName, models, queryParams) {\n    this.router._prepareQueryParams(routeName, models, queryParams);\n  }\n\n  _generateURL(routeName, models, queryParams) {\n    let visibleQueryParams = {};\n\n    if (queryParams) {\n      assign(visibleQueryParams, queryParams);\n      this.normalizeQueryParams(routeName, models, visibleQueryParams);\n    }\n\n    return this.router.generate(routeName, ...models, {\n      queryParams: visibleQueryParams\n    });\n  }\n\n  generateURL(routeName, models, queryParams) {\n    if (this.router._initialTransitionStarted) {\n      return this._generateURL(routeName, models, queryParams);\n    } else {\n      // Swallow error when transition has not started.\n      // When rendering in tests without visit(), we cannot infer the route context which <LinkTo/> needs be aware of\n      try {\n        return this._generateURL(routeName, models, queryParams);\n      } catch (_e) {\n        return;\n      }\n    }\n  }\n\n  isActiveForRoute(contexts, queryParams, routeName, routerState) {\n    let handlers = this.router._routerMicrolib.recognizer.handlersFor(routeName);\n\n    let leafName = handlers[handlers.length - 1].handler;\n    let maximumContexts = numberOfContextsAcceptedByHandler(routeName, handlers); // NOTE: any ugliness in the calculation of activeness is largely\n    // due to the fact that we support automatic normalizing of\n    // `resource` -> `resource.index`, even though there might be\n    // dynamic segments / query params defined on `resource.index`\n    // which complicates (and makes somewhat ambiguous) the calculation\n    // of activeness for links that link to `resource` instead of\n    // directly to `resource.index`.\n    // if we don't have enough contexts revert back to full route name\n    // this is because the leaf route will use one of the contexts\n\n    if (contexts.length > maximumContexts) {\n      routeName = leafName;\n    }\n\n    return routerState.isActiveIntent(routeName, contexts, queryParams);\n  }\n\n}\nRoutingService.reopen({\n  targetState: readOnly('router.targetState'),\n  currentState: readOnly('router.currentState'),\n  currentRouteName: readOnly('router.currentRouteName'),\n  currentPath: readOnly('router.currentPath')\n});\n\nfunction numberOfContextsAcceptedByHandler(handlerName, handlerInfos) {\n  let req = 0;\n\n  for (let i = 0; i < handlerInfos.length; i++) {\n    req += handlerInfos[i].names.length;\n\n    if (handlerInfos[i].handler === handlerName) {\n      break;\n    }\n  }\n\n  return req;\n}","/**\n  A two-tiered cache with support for fallback values when doing lookups.\n  Uses \"buckets\" and then \"keys\" to cache values.\n\n  @private\n  @class BucketCache\n*/\nexport default class BucketCache {\n  constructor() {\n    this.cache = new Map();\n  }\n\n  has(bucketKey) {\n    return this.cache.has(bucketKey);\n  }\n\n  stash(bucketKey, key, value) {\n    let bucket = this.cache.get(bucketKey);\n\n    if (bucket === undefined) {\n      bucket = new Map();\n      this.cache.set(bucketKey, bucket);\n    }\n\n    bucket.set(key, value);\n  }\n\n  lookup(bucketKey, prop, defaultValue) {\n    if (!this.has(bucketKey)) {\n      return defaultValue;\n    }\n\n    let bucket = this.cache.get(bucketKey);\n\n    if (bucket.has(prop)) {\n      return bucket.get(prop);\n    } else {\n      return defaultValue;\n    }\n  }\n\n}","/**\n@module ember\n*/\n\n/**\n  Finds a controller instance.\n\n  @for Ember\n  @method controllerFor\n  @private\n*/\nexport default function controllerFor(container, controllerName, lookupOptions) {\n  return container.lookup(`controller:${controllerName}`, lookupOptions);\n}","import { assert } from '@ember/debug';\nimport { assign } from '@ember/polyfills';\nlet uuid = 0;\n\nfunction isCallback(value) {\n  return typeof value === 'function';\n}\n\nfunction isOptions(value) {\n  return value !== null && typeof value === 'object';\n}\n\nexport default class DSLImpl {\n  constructor(name = null, options) {\n    this.explicitIndex = false;\n    this.parent = name;\n    this.enableLoadingSubstates = Boolean(options && options.enableLoadingSubstates);\n    this.matches = [];\n    this.options = options;\n  }\n\n  route(name, _options, _callback) {\n    let options;\n    let callback = null;\n    let dummyErrorRoute = `/_unused_dummy_error_path_route_${name}/:error`;\n\n    if (isCallback(_options)) {\n      assert('Unexpected arguments', arguments.length === 2);\n      options = {};\n      callback = _options;\n    } else if (isCallback(_callback)) {\n      assert('Unexpected arguments', arguments.length === 3);\n      assert('Unexpected arguments', isOptions(_options));\n      options = _options;\n      callback = _callback;\n    } else {\n      options = _options || {};\n    }\n\n    assert(`'${name}' cannot be used as a route name.`, (() => {\n      if (options.overrideNameAssertion === true) {\n        return true;\n      }\n\n      return ['basic', 'application'].indexOf(name) === -1;\n    })());\n    assert(`'${name}' is not a valid route name. It cannot contain a ':'. You may want to use the 'path' option instead.`, name.indexOf(':') === -1);\n\n    if (this.enableLoadingSubstates) {\n      createRoute(this, `${name}_loading`, {\n        resetNamespace: options.resetNamespace\n      });\n      createRoute(this, `${name}_error`, {\n        resetNamespace: options.resetNamespace,\n        path: dummyErrorRoute\n      });\n    }\n\n    if (callback) {\n      let fullName = getFullName(this, name, options.resetNamespace);\n      let dsl = new DSLImpl(fullName, this.options);\n      createRoute(dsl, 'loading');\n      createRoute(dsl, 'error', {\n        path: dummyErrorRoute\n      });\n      callback.call(dsl);\n      createRoute(this, name, options, dsl.generate());\n    } else {\n      createRoute(this, name, options);\n    }\n  }\n\n  push(url, name, callback, serialize) {\n    let parts = name.split('.');\n\n    if (this.options.engineInfo) {\n      let localFullName = name.slice(this.options.engineInfo.fullName.length + 1);\n      let routeInfo = assign({\n        localFullName\n      }, this.options.engineInfo);\n\n      if (serialize) {\n        routeInfo.serializeMethod = serialize;\n      }\n\n      this.options.addRouteForEngine(name, routeInfo);\n    } else if (serialize) {\n      throw new Error(`Defining a route serializer on route '${name}' outside an Engine is not allowed.`);\n    }\n\n    if (url === '' || url === '/' || parts[parts.length - 1] === 'index') {\n      this.explicitIndex = true;\n    }\n\n    this.matches.push(url, name, callback);\n  }\n\n  generate() {\n    let dslMatches = this.matches;\n\n    if (!this.explicitIndex) {\n      this.route('index', {\n        path: '/'\n      });\n    }\n\n    return match => {\n      for (let i = 0; i < dslMatches.length; i += 3) {\n        match(dslMatches[i]).to(dslMatches[i + 1], dslMatches[i + 2]);\n      }\n    };\n  }\n\n  mount(_name, options = {}) {\n    let engineRouteMap = this.options.resolveRouteMap(_name);\n    let name = _name;\n\n    if (options.as) {\n      name = options.as;\n    }\n\n    let fullName = getFullName(this, name, options.resetNamespace);\n    let engineInfo = {\n      name: _name,\n      instanceId: uuid++,\n      mountPoint: fullName,\n      fullName\n    };\n    let path = options.path;\n\n    if (typeof path !== 'string') {\n      path = `/${name}`;\n    }\n\n    let callback;\n    let dummyErrorRoute = `/_unused_dummy_error_path_route_${name}/:error`;\n\n    if (engineRouteMap) {\n      let shouldResetEngineInfo = false;\n      let oldEngineInfo = this.options.engineInfo;\n\n      if (oldEngineInfo) {\n        shouldResetEngineInfo = true;\n        this.options.engineInfo = engineInfo;\n      }\n\n      let optionsForChild = assign({\n        engineInfo\n      }, this.options);\n      let childDSL = new DSLImpl(fullName, optionsForChild);\n      createRoute(childDSL, 'loading');\n      createRoute(childDSL, 'error', {\n        path: dummyErrorRoute\n      });\n      engineRouteMap.class.call(childDSL);\n      callback = childDSL.generate();\n\n      if (shouldResetEngineInfo) {\n        this.options.engineInfo = oldEngineInfo;\n      }\n    }\n\n    let localFullName = 'application';\n    let routeInfo = assign({\n      localFullName\n    }, engineInfo);\n\n    if (this.enableLoadingSubstates) {\n      // These values are important to register the loading routes under their\n      // proper names for the Router and within the Engine's registry.\n      let substateName = `${name}_loading`;\n      let localFullName = `application_loading`;\n      let routeInfo = assign({\n        localFullName\n      }, engineInfo);\n      createRoute(this, substateName, {\n        resetNamespace: options.resetNamespace\n      });\n      this.options.addRouteForEngine(substateName, routeInfo);\n      substateName = `${name}_error`;\n      localFullName = `application_error`;\n      routeInfo = assign({\n        localFullName\n      }, engineInfo);\n      createRoute(this, substateName, {\n        resetNamespace: options.resetNamespace,\n        path: dummyErrorRoute\n      });\n      this.options.addRouteForEngine(substateName, routeInfo);\n    }\n\n    this.options.addRouteForEngine(fullName, routeInfo);\n    this.push(path, fullName, callback);\n  }\n\n}\n\nfunction canNest(dsl) {\n  return dsl.parent !== 'application';\n}\n\nfunction getFullName(dsl, name, resetNamespace) {\n  if (canNest(dsl) && resetNamespace !== true) {\n    return `${dsl.parent}.${name}`;\n  } else {\n    return name;\n  }\n}\n\nfunction createRoute(dsl, name, options = {}, callback) {\n  let fullName = getFullName(dsl, name, options.resetNamespace);\n\n  if (typeof options.path !== 'string') {\n    options.path = `/${name}`;\n  }\n\n  dsl.push(options.path, fullName, callback, options.serialize);\n}","export {};","import { get } from '@ember/-internals/metal';\nimport { info } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\n/**\n@module ember\n*/\n\n/**\n  Generates a controller factory\n\n  @for Ember\n  @method generateControllerFactory\n  @private\n*/\n\nexport function generateControllerFactory(owner, controllerName) {\n  let Factory = owner.factoryFor('controller:basic').class;\n  Factory = Factory.extend({\n    toString() {\n      return `(generated ${controllerName} controller)`;\n    }\n\n  });\n  let fullName = `controller:${controllerName}`;\n  owner.register(fullName, Factory);\n  return owner.factoryFor(fullName);\n}\n/**\n  Generates and instantiates a controller extending from `controller:basic`\n  if present, or `Controller` if not.\n\n  @for Ember\n  @method generateController\n  @private\n  @since 1.3.0\n*/\n\nexport default function generateController(owner, controllerName) {\n  generateControllerFactory(owner, controllerName);\n  let fullName = `controller:${controllerName}`;\n  let instance = owner.lookup(fullName);\n\n  if (DEBUG) {\n    if (get(instance, 'namespace.LOG_ACTIVE_GENERATION')) {\n      info(`generated -> ${fullName}`, {\n        fullName\n      });\n    }\n  }\n\n  return instance;\n}","export default class QueryParams {\n  constructor(values = null) {\n    this.isQueryParams = true;\n    this.values = values;\n  }\n\n}","\"use strict\";\n/**\n  A `RouteInfoWithAttributes` is an object that contains\n  metadata, including the resolved value from the routes\n  `model` hook. Like `RouteInfo`, a `RouteInfoWithAttributes`\n  represents a specific route within a Transition.\n  It is read-only and internally immutable. It is also not\n  observable, because a Transition instance is never\n  changed after creation.\n\n  @class RouteInfoWithAttributes\n  @public\n*/\n\n/**\n  The dot-separated, fully-qualified name of the\n  route, like \"people.index\".\n  @property {String} name\n  @public\n*/\n\n/**\n  The final segment of the fully-qualified name of\n  the route, like \"index\"\n  @property {String} localName\n  @public\n*/\n\n/**\n  The values of the route's parameters. These are the\n  same params that are received as arguments to the\n  route's model hook. Contains only the parameters\n  valid for this route, if any (params for parent or\n  child routes are not merged).\n  @property {Object} params\n  @public\n*/\n\n/**\n  The ordered list of the names of the params\n  required for this route. It will contain the same\n  strings as `Object.keys(params)`, but here the order\n  is significant. This allows users to correctly pass\n  params into routes programmatically.\n  @property {Array} paramNames\n  @public\n*/\n\n/**\n  The values of any queryParams on this route.\n  @property {Object} queryParams\n  @public\n*/\n\n/**\n  This is the resolved return value from the\n  route's model hook.\n  @property {Object|Array|String} attributes\n  @public\n*/\n\n/**\n  Will contain the result `Route#buildRouteInfoMetadata`\n  for the corresponding Route.\n  @property {Any} metadata\n  @public\n*/\n\n/**\n  A reference to the parent route's RouteInfo.\n  This can be used to traverse upward to the topmost\n  `RouteInfo`.\n  @property {RouteInfo|null} parent\n  @public\n*/\n\n/**\n  A reference to the child route's RouteInfo.\n  This can be used to traverse downward to the\n  leafmost `RouteInfo`.\n  @property {RouteInfo|null} child\n  @public\n*/\n\n/**\n  Allows you to traverse through the linked list\n  of `RouteInfo`s from the topmost to leafmost.\n  Returns the first `RouteInfo` in the linked list\n  for which the callback returns true.\n\n    This method is similar to the `find()` method\n    defined in ECMAScript 2015.\n\n    The callback method you provide should have the\n    following signature (all parameters are optional):\n\n    ```javascript\n    function(item, index, array);\n    ```\n\n    - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n\n    It should return the `true` to include the item in\n    the results, `false` otherwise.\n\n    Note that in addition to a callback, you can also\n    pass an optional target object that will be set as\n    `this` on the context.\n\n  @method find\n  @param {Function} callback the callback to execute\n  @param {Object} [target*] optional target to use\n  @returns {Object} Found item or undefined\n  @public\n*/\n\n/**\n  A RouteInfo is an object that contains metadata\n  about a specific route within a Transition. It is\n  read-only and internally immutable. It is also not\n  observable, because a Transition instance is never\n  changed after creation.\n\n  @class RouteInfo\n  @public\n*/\n\n/**\n  The dot-separated, fully-qualified name of the\n  route, like \"people.index\".\n  @property {String} name\n  @public\n*/\n\n/**\n  The final segment of the fully-qualified name of\n  the route, like \"index\"\n  @property {String} localName\n  @public\n*/\n\n/**\n  The values of the route's parameters. These are the\n  same params that are received as arguments to the\n  route's `model` hook. Contains only the parameters\n  valid for this route, if any (params for parent or\n  child routes are not merged).\n  @property {Object} params\n  @public\n*/\n\n/**\n  The ordered list of the names of the params\n  required for this route. It will contain the same\n  strings as Object.keys(params), but here the order\n  is significant. This allows users to correctly pass\n  params into routes programmatically.\n  @property {Array} paramNames\n  @public\n*/\n\n/**\n  The values of any queryParams on this route.\n  @property {Object} queryParams\n  @public\n*/\n\n/**\n  Will contain the result `Route#buildRouteInfoMetadata`\n  for the corresponding Route.\n  @property {Any} metadata\n  @public\n*/\n\n/**\n  A reference to the parent route's `RouteInfo`.\n  This can be used to traverse upward to the topmost\n  `RouteInfo`.\n  @property {RouteInfo|null} parent\n  @public\n*/\n\n/**\n  A reference to the child route's `RouteInfo`.\n  This can be used to traverse downward to the\n  leafmost `RouteInfo`.\n  @property {RouteInfo|null} child\n  @public\n*/\n\n/**\n  Allows you to traverse through the linked list\n  of `RouteInfo`s from the topmost to leafmost.\n  Returns the first `RouteInfo` in the linked list\n  for which the callback returns true.\n\n    This method is similar to the `find()` method\n    defined in ECMAScript 2015.\n\n    The callback method you provide should have the\n    following signature (all parameters are optional):\n\n    ```javascript\n    function(item, index, array);\n    ```\n\n    - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n\n    It should return the `true` to include the item in\n    the results, `false` otherwise.\n\n    Note that in addition to a callback, you can also\n    pass an optional target object that will be set as\n    `this` on the context.\n\n  @method find\n  @param {Function} callback the callback to execute\n  @param {Object} [target*] optional target to use\n  @returns {Object} Found item or undefined\n  @public\n*/","import { deprecatedStoreInjections, privatize as P } from '@ember/-internals/container';\nimport { addObserver, computed, defineProperty, descriptorForProperty, flushAsyncObservers, get, getProperties, isEmpty, set, setProperties } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\nimport { A as emberA, ActionHandler, Evented, Object as EmberObject, typeOf } from '@ember/-internals/runtime';\nimport { isProxy, lookupDescriptor, symbol } from '@ember/-internals/utils';\nimport { assert, deprecate, info, isTesting } from '@ember/debug';\nimport { ROUTER_EVENTS } from '@ember/deprecated-features';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport { assign } from '@ember/polyfills';\nimport { once } from '@ember/runloop';\nimport { DEBUG } from '@glimmer/env';\nimport { PARAMS_SYMBOL, STATE_SYMBOL } from 'router_js';\nimport { calculateCacheKey, deprecateTransitionMethods, normalizeControllerQueryParams, prefixRouteNameArg, stashParamNames } from '../utils';\nimport generateController from './generate_controller';\nexport const ROUTE_CONNECTIONS = new WeakMap();\nconst RENDER = symbol('render');\nexport function defaultSerialize(model, params) {\n  if (params.length < 1 || !model) {\n    return;\n  }\n\n  let object = {};\n\n  if (params.length === 1) {\n    let [name] = params;\n\n    if (name in model) {\n      object[name] = get(model, name);\n    } else if (/_id$/.test(name)) {\n      object[name] = get(model, 'id');\n    } else if (isProxy(model)) {\n      object[name] = get(model, name);\n    }\n  } else {\n    object = getProperties(model, params);\n  }\n\n  return object;\n}\nexport function hasDefaultSerialize(route) {\n  return route.serialize === defaultSerialize;\n}\n/**\n@module @ember/routing\n*/\n\n/**\n  The `Route` class is used to define individual routes. Refer to\n  the [routing guide](https://guides.emberjs.com/release/routing/) for documentation.\n\n  @class Route\n  @extends EmberObject\n  @uses ActionHandler\n  @uses Evented\n  @since 1.0.0\n  @public\n*/\n\nclass Route extends EmberObject {\n  constructor(owner) {\n    super(...arguments);\n    this.context = {};\n\n    if (owner) {\n      let router = owner.lookup('router:main');\n      let bucketCache = owner.lookup(P`-bucket-cache:main`);\n      assert('ROUTER BUG: Expected route injections to be defined on the route. This is an internal bug, please open an issue on Github if you see this message!', router && bucketCache);\n      this._router = router;\n      this._bucketCache = bucketCache;\n      this._topLevelViewTemplate = owner.lookup('template:-outlet');\n      this._environment = owner.lookup('-environment:main');\n    }\n  }\n  /**\n    The name of the route, dot-delimited.\n       For example, a route found at `app/routes/posts/post.js` will have\n    a `routeName` of `posts.post`.\n       @property routeName\n    @for Route\n    @type String\n    @since 1.0.0\n    @public\n  */\n\n  /**\n    The name of the route, dot-delimited, including the engine prefix\n    if applicable.\n       For example, a route found at `addon/routes/posts/post.js` within an\n    engine named `admin` will have a `fullRouteName` of `admin.posts.post`.\n       @property fullRouteName\n    @for Route\n    @type String\n    @since 2.10.0\n    @public\n  */\n\n  /**\n    Sets the name for this route, including a fully resolved name for routes\n    inside engines.\n       @private\n    @method _setRouteName\n    @param {String} name\n  */\n\n\n  _setRouteName(name) {\n    this.routeName = name;\n    this.fullRouteName = getEngineRouteName(getOwner(this), name);\n  }\n  /**\n    @private\n       @method _stashNames\n  */\n\n\n  _stashNames(routeInfo, dynamicParent) {\n    if (this._names) {\n      return;\n    }\n\n    let names = this._names = routeInfo['_names'];\n\n    if (!names.length) {\n      routeInfo = dynamicParent;\n      names = routeInfo && routeInfo['_names'] || [];\n    }\n\n    let qps = get(this, '_qp.qps');\n    let namePaths = new Array(names.length);\n\n    for (let a = 0; a < names.length; ++a) {\n      namePaths[a] = `${routeInfo.name}.${names[a]}`;\n    }\n\n    for (let i = 0; i < qps.length; ++i) {\n      let qp = qps[i];\n\n      if (qp.scope === 'model') {\n        qp.parts = namePaths;\n      }\n    }\n  }\n  /**\n    @private\n       @property _activeQPChanged\n  */\n\n\n  _activeQPChanged(qp, value) {\n    this._router._activeQPChanged(qp.scopedPropertyName, value);\n  }\n  /**\n    @private\n    @method _updatingQPChanged\n  */\n\n\n  _updatingQPChanged(qp) {\n    this._router._updatingQPChanged(qp.urlKey);\n  }\n  /**\n    Returns a hash containing the parameters of an ancestor route.\n       You may notice that `this.paramsFor` sometimes works when referring to a\n    child route, but this behavior should not be relied upon as only ancestor\n    routes are certain to be loaded in time.\n       Example\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('member', { path: ':name' }, function() {\n        this.route('interest', { path: ':interest' });\n      });\n    });\n    ```\n       ```app/routes/member.js\n    import Route from '@ember/routing/route';\n       export default class MemberRoute extends Route {\n      queryParams = {\n        memberQp: { refreshModel: true }\n      }\n    }\n    ```\n       ```app/routes/member/interest.js\n    import Route from '@ember/routing/route';\n       export default class MemberInterestRoute extends Route {\n      queryParams = {\n        interestQp: { refreshModel: true }\n      }\n         model() {\n        return this.paramsFor('member');\n      }\n    }\n    ```\n       If we visit `/turing/maths?memberQp=member&interestQp=interest` the model for\n    the `member.interest` route is a hash with:\n       * `name`: `turing`\n    * `memberQp`: `member`\n       @method paramsFor\n    @param {String} name\n    @return {Object} hash containing the parameters of the route `name`\n    @since 1.4.0\n    @public\n  */\n\n\n  paramsFor(name) {\n    let route = getOwner(this).lookup(`route:${name}`);\n\n    if (route === undefined) {\n      return {};\n    }\n\n    let transition = this._router._routerMicrolib.activeTransition;\n    let state = transition ? transition[STATE_SYMBOL] : this._router._routerMicrolib.state;\n    let fullName = route.fullRouteName;\n    let params = assign({}, state.params[fullName]);\n    let queryParams = getQueryParamsFor(route, state);\n    return Object.keys(queryParams).reduce((params, key) => {\n      assert(`The route '${this.routeName}' has both a dynamic segment and query param with name '${key}'. Please rename one to avoid collisions.`, !params[key]);\n      params[key] = queryParams[key];\n      return params;\n    }, params);\n  }\n  /**\n    Serializes the query parameter key\n       @method serializeQueryParamKey\n    @param {String} controllerPropertyName\n    @private\n  */\n\n\n  serializeQueryParamKey(controllerPropertyName) {\n    return controllerPropertyName;\n  }\n  /**\n    Serializes value of the query parameter based on defaultValueType\n       @method serializeQueryParam\n    @param {Object} value\n    @param {String} urlKey\n    @param {String} defaultValueType\n    @private\n  */\n\n\n  serializeQueryParam(value, _urlKey, defaultValueType) {\n    // urlKey isn't used here, but anyone overriding\n    // can use it to provide serialization specific\n    // to a certain query param.\n    return this._router._serializeQueryParam(value, defaultValueType);\n  }\n  /**\n    Deserializes value of the query parameter based on defaultValueType\n       @method deserializeQueryParam\n    @param {Object} value\n    @param {String} urlKey\n    @param {String} defaultValueType\n    @private\n  */\n\n\n  deserializeQueryParam(value, _urlKey, defaultValueType) {\n    // urlKey isn't used here, but anyone overriding\n    // can use it to provide deserialization specific\n    // to a certain query param.\n    return this._router._deserializeQueryParam(value, defaultValueType);\n  }\n  /**\n    @private\n       @property _optionsForQueryParam\n  */\n\n\n  _optionsForQueryParam(qp) {\n    return get(this, `queryParams.${qp.urlKey}`) || get(this, `queryParams.${qp.prop}`) || {};\n  }\n  /**\n    A hook you can use to reset controller values either when the model\n    changes or the route is exiting.\n       ```app/routes/articles.js\n    import Route from '@ember/routing/route';\n       export default class ArticlesRoute extends Route {\n      resetController(controller, isExiting, transition) {\n        if (isExiting && transition.targetName !== 'error') {\n          controller.set('page', 1);\n        }\n      }\n    }\n    ```\n       @method resetController\n    @param {Controller} controller instance\n    @param {Boolean} isExiting\n    @param {Object} transition\n    @since 1.7.0\n    @public\n  */\n\n\n  resetController(_controller, _isExiting, _transition) {\n    return this;\n  }\n  /**\n    @private\n       @method exit\n  */\n\n\n  exit(transition) {\n    this.deactivate(transition);\n    this.trigger('deactivate', transition);\n    this.teardownViews();\n  }\n  /**\n    @private\n       @method _internalReset\n    @since 3.6.0\n  */\n\n\n  _internalReset(isExiting, transition) {\n    let controller = this.controller;\n    controller['_qpDelegate'] = get(this, '_qp.states.inactive');\n    this.resetController(controller, isExiting, transition);\n  }\n  /**\n    @private\n       @method enter\n  */\n\n\n  enter(transition) {\n    ROUTE_CONNECTIONS.set(this, []);\n    this.activate(transition);\n    this.trigger('activate', transition);\n  }\n  /**\n    The `willTransition` action is fired at the beginning of any\n    attempted transition with a `Transition` object as the sole\n    argument. This action can be used for aborting, redirecting,\n    or decorating the transition from the currently active routes.\n       A good example is preventing navigation when a form is\n    half-filled out:\n       ```app/routes/contact-form.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class ContactFormRoute extends Route {\n      @action\n      willTransition(transition) {\n        if (this.controller.get('userHasEnteredData')) {\n          this.controller.displayNavigationConfirm();\n          transition.abort();\n        }\n      }\n    }\n    ```\n       You can also redirect elsewhere by calling\n    `this.transitionTo('elsewhere')` from within `willTransition`.\n    Note that `willTransition` will not be fired for the\n    redirecting `transitionTo`, since `willTransition` doesn't\n    fire when there is already a transition underway. If you want\n    subsequent `willTransition` actions to fire for the redirecting\n    transition, you must first explicitly call\n    `transition.abort()`.\n       To allow the `willTransition` event to continue bubbling to the parent\n    route, use `return true;`. When the `willTransition` method has a\n    return value of `true` then the parent route's `willTransition` method\n    will be fired, enabling \"bubbling\" behavior for the event.\n       @event willTransition\n    @param {Transition} transition\n    @since 1.0.0\n    @public\n  */\n\n  /**\n    The `didTransition` action is fired after a transition has\n    successfully been completed. This occurs after the normal model\n    hooks (`beforeModel`, `model`, `afterModel`, `setupController`)\n    have resolved. The `didTransition` action has no arguments,\n    however, it can be useful for tracking page views or resetting\n    state on the controller.\n       ```app/routes/login.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class LoginRoute extends Route {\n      @action\n      didTransition() {\n        this.controller.get('errors.base').clear();\n        return true; // Bubble the didTransition event\n      }\n    }\n    ```\n       @event didTransition\n    @since 1.2.0\n    @public\n  */\n\n  /**\n    The `loading` action is fired on the route when a route's `model`\n    hook returns a promise that is not already resolved. The current\n    `Transition` object is the first parameter and the route that\n    triggered the loading event is the second parameter.\n       ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class ApplicationRoute extends Route {\n      @action\n      loading(transition, route) {\n        let controller = this.controllerFor('foo');\n           // The controller may not be instantiated when initially loading\n        if (controller) {\n          controller.currentlyLoading = true;\n             transition.finally(function() {\n            controller.currentlyLoading = false;\n          });\n        }\n      }\n    }\n    ```\n       @event loading\n    @param {Transition} transition\n    @param {Route} route The route that triggered the loading event\n    @since 1.2.0\n    @public\n  */\n\n  /**\n    When attempting to transition into a route, any of the hooks\n    may return a promise that rejects, at which point an `error`\n    action will be fired on the partially-entered routes, allowing\n    for per-route error handling logic, or shared error handling\n    logic defined on a parent route.\n       Here is an example of an error handler that will be invoked\n    for rejected promises from the various hooks on the route,\n    as well as any unhandled errors from child routes:\n       ```app/routes/admin.js\n    import { reject } from 'rsvp';\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class AdminRoute extends Route {\n      beforeModel() {\n        return reject('bad things!');\n      }\n         @action\n      error(error, transition) {\n        // Assuming we got here due to the error in `beforeModel`,\n        // we can expect that error === \"bad things!\",\n        // but a promise model rejecting would also\n        // call this hook, as would any errors encountered\n        // in `afterModel`.\n           // The `error` hook is also provided the failed\n        // `transition`, which can be stored and later\n        // `.retry()`d if desired.\n           this.transitionTo('login');\n      }\n    }\n    ```\n       `error` actions that bubble up all the way to `ApplicationRoute`\n    will fire a default error handler that logs the error. You can\n    specify your own global default error handler by overriding the\n    `error` handler on `ApplicationRoute`:\n       ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class ApplicationRoute extends Route {\n      @action\n      error(error, transition) {\n        this.controllerFor('banner').displayError(error.message);\n      }\n    }\n    ```\n    @event error\n    @param {Error} error\n    @param {Transition} transition\n    @since 1.0.0\n    @public\n  */\n\n  /**\n    This event is triggered when the router enters the route. It is\n    not executed when the model for the route changes.\n       ```app/routes/application.js\n    import { on } from '@ember/object/evented';\n    import Route from '@ember/routing/route';\n       export default Route.extend({\n      collectAnalytics: on('activate', function(){\n        collectAnalytics();\n      })\n    });\n    ```\n       @event activate\n    @since 1.9.0\n    @public\n  */\n\n  /**\n    This event is triggered when the router completely exits this\n    route. It is not executed when the model for the route changes.\n       ```app/routes/index.js\n    import { on } from '@ember/object/evented';\n    import Route from '@ember/routing/route';\n       export default Route.extend({\n      trackPageLeaveAnalytics: on('deactivate', function(){\n        trackPageLeaveAnalytics();\n      })\n    });\n    ```\n       @event deactivate\n    @since 1.9.0\n    @public\n  */\n\n  /**\n    This hook is executed when the router completely exits this route. It is\n    not executed when the model for the route changes.\n       @method deactivate\n    @param {Transition} transition\n    @since 1.0.0\n    @public\n  */\n\n\n  deactivate(_transition) {}\n  /**\n    This hook is executed when the router enters the route. It is not executed\n    when the model for the route changes.\n       @method activate\n    @param {Transition} transition\n    @since 1.0.0\n    @public\n  */\n\n\n  activate(_transition) {}\n  /**\n    Transition the application into another route. The route may\n    be either a single route or route path:\n       ```javascript\n    this.transitionTo('blogPosts');\n    this.transitionTo('blogPosts.recentEntries');\n    ```\n       Optionally supply a model for the route in question. The model\n    will be serialized into the URL using the `serialize` hook of\n    the route:\n       ```javascript\n    this.transitionTo('blogPost', aPost);\n    ```\n       If a literal is passed (such as a number or a string), it will\n    be treated as an identifier instead. In this case, the `model`\n    hook of the route will be triggered:\n       ```javascript\n    this.transitionTo('blogPost', 1);\n    ```\n       Multiple models will be applied last to first recursively up the\n    route tree.\n       ```app/routes.js\n    // ...\n       Router.map(function() {\n      this.route('blogPost', { path:':blogPostId' }, function() {\n        this.route('blogComment', { path: ':blogCommentId' });\n      });\n    });\n       export default Router;\n    ```\n       ```javascript\n    this.transitionTo('blogComment', aPost, aComment);\n    this.transitionTo('blogComment', 1, 13);\n    ```\n       It is also possible to pass a URL (a string that starts with a\n    `/`).\n       ```javascript\n    this.transitionTo('/');\n    this.transitionTo('/blog/post/1/comment/13');\n    this.transitionTo('/blog/posts?sort=title');\n    ```\n       An options hash with a `queryParams` property may be provided as\n    the final argument to add query parameters to the destination URL.\n       ```javascript\n    this.transitionTo('blogPost', 1, {\n      queryParams: { showComments: 'true' }\n    });\n       // if you just want to transition the query parameters without changing the route\n    this.transitionTo({ queryParams: { sort: 'date' } });\n    ```\n       See also [replaceWith](#method_replaceWith).\n       Simple Transition Example\n       ```app/routes.js\n    // ...\n       Router.map(function() {\n      this.route('index');\n      this.route('secret');\n      this.route('fourOhFour', { path: '*:' });\n    });\n       export default Router;\n    ```\n       ```app/routes/index.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class IndexRoute extends Route {\n      @action\n      moveToSecret(context) {\n        if (authorized()) {\n          this.transitionTo('secret', context);\n        } else {\n          this.transitionTo('fourOhFour');\n        }\n      }\n    }\n    ```\n       Transition to a nested route\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('articles', { path: '/articles' }, function() {\n        this.route('new');\n      });\n    });\n       export default Router;\n    ```\n       ```app/routes/index.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class IndexRoute extends Route {\n      @action\n      transitionToNewArticle() {\n        this.transitionTo('articles.new');\n      }\n    }\n    ```\n       Multiple Models Example\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('index');\n         this.route('breakfast', { path: ':breakfastId' }, function() {\n        this.route('cereal', { path: ':cerealId' });\n      });\n    });\n       export default Router;\n    ```\n       ```app/routes/index.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class IndexRoute extends Route {\n      @action\n      moveToChocolateCereal() {\n        let cereal = { cerealId: 'ChocolateYumminess' };\n        let breakfast = { breakfastId: 'CerealAndMilk' };\n           this.transitionTo('breakfast.cereal', breakfast, cereal);\n      }\n    }\n    ```\n       Nested Route with Query String Example\n       ```app/routes.js\n    // ...\n       Router.map(function() {\n      this.route('fruits', function() {\n        this.route('apples');\n      });\n    });\n       export default Router;\n    ```\n       ```app/routes/index.js\n    import Route from '@ember/routing/route';\n       export default class IndexRoute extends Route {\n      @action\n      transitionToApples() {\n        this.transitionTo('fruits.apples', { queryParams: { color: 'red' } });\n      }\n    }\n    ```\n       @method transitionTo\n    @param {String} [name] the name of the route or a URL.\n    @param {...Object} [models] the model(s) or identifier(s) to be used while\n      transitioning to the route.\n    @param {Object} [options] optional hash with a queryParams property\n      containing a mapping of query parameters. May be supplied as the only\n      parameter to trigger a query-parameter-only transition.\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @since 1.0.0\n    @deprecated Use transitionTo from the Router service instead.\n    @public\n  */\n\n\n  transitionTo(...args) {\n    deprecateTransitionMethods('route', 'transitionTo');\n    return this._router.transitionTo(...prefixRouteNameArg(this, args));\n  }\n  /**\n    Perform a synchronous transition into another route without attempting\n    to resolve promises, update the URL, or abort any currently active\n    asynchronous transitions (i.e. regular transitions caused by\n    `transitionTo` or URL changes).\n       This method is handy for performing intermediate transitions on the\n    way to a final destination route, and is called internally by the\n    default implementations of the `error` and `loading` handlers.\n       @method intermediateTransitionTo\n    @param {String} name the name of the route\n    @param {...Object} models the model(s) to be used while transitioning\n    to the route.\n    @since 1.2.0\n    @public\n   */\n\n\n  intermediateTransitionTo(...args) {\n    let [name, ...preparedArgs] = prefixRouteNameArg(this, args);\n\n    this._router.intermediateTransitionTo(name, ...preparedArgs);\n  }\n  /**\n    Refresh the model on this route and any child routes, firing the\n    `beforeModel`, `model`, and `afterModel` hooks in a similar fashion\n    to how routes are entered when transitioning in from other route.\n    The current route params (e.g. `article_id`) will be passed in\n    to the respective model hooks, and if a different model is returned,\n    `setupController` and associated route hooks will re-fire as well.\n       An example usage of this method is re-querying the server for the\n    latest information using the same parameters as when the route\n    was first entered.\n       Note that this will cause `model` hooks to fire even on routes\n    that were provided a model object when the route was initially\n    entered.\n       @method refresh\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @since 1.4.0\n    @public\n   */\n\n\n  refresh() {\n    return this._router._routerMicrolib.refresh(this);\n  }\n  /**\n    Transition into another route while replacing the current URL, if possible.\n    This will replace the current history entry instead of adding a new one.\n    Beside that, it is identical to `transitionTo` in all other respects. See\n    'transitionTo' for additional information regarding multiple models.\n       Example\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('index');\n      this.route('secret');\n    });\n       export default Router;\n    ```\n       ```app/routes/secret.js\n    import Route from '@ember/routing/route';\n       export default class SecretRoute Route {\n      afterModel() {\n        if (!authorized()){\n          this.replaceWith('index');\n        }\n      }\n    }\n    ```\n       @method replaceWith\n    @param {String} name the name of the route or a URL\n    @param {...Object} models the model(s) or identifier(s) to be used while\n      transitioning to the route.\n    @param {Object} [options] optional hash with a queryParams property\n      containing a mapping of query parameters\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @since 1.0.0\n    @public\n  */\n\n\n  replaceWith(...args) {\n    deprecateTransitionMethods('route', 'replaceWith');\n    return this._router.replaceWith(...prefixRouteNameArg(this, args));\n  }\n  /**\n    This hook is the entry point for router.js\n       @private\n    @method setup\n  */\n\n\n  setup(context, transition) {\n    let controllerName = this.controllerName || this.routeName;\n    let definedController = this.controllerFor(controllerName, true);\n    let controller;\n\n    if (definedController) {\n      controller = definedController;\n    } else {\n      controller = this.generateController(controllerName);\n    } // Assign the route's controller so that it can more easily be\n    // referenced in action handlers. Side effects. Side effects everywhere.\n\n\n    if (!this.controller) {\n      let qp = get(this, '_qp');\n      let propNames = qp !== undefined ? get(qp, 'propertyNames') : [];\n      addQueryParamsObservers(controller, propNames);\n      this.controller = controller;\n    }\n\n    let queryParams = get(this, '_qp');\n    let states = queryParams.states;\n    controller._qpDelegate = states.allowOverrides;\n\n    if (transition) {\n      // Update the model dep values used to calculate cache keys.\n      stashParamNames(this._router, transition[STATE_SYMBOL].routeInfos);\n      let cache = this._bucketCache;\n      let params = transition[PARAMS_SYMBOL];\n      let allParams = queryParams.propertyNames;\n      allParams.forEach(prop => {\n        let aQp = queryParams.map[prop];\n        aQp.values = params;\n        let cacheKey = calculateCacheKey(aQp.route.fullRouteName, aQp.parts, aQp.values);\n        let value = cache.lookup(cacheKey, prop, aQp.undecoratedDefaultValue);\n        set(controller, prop, value);\n      });\n      let qpValues = getQueryParamsFor(this, transition[STATE_SYMBOL]);\n      setProperties(controller, qpValues);\n    }\n\n    this.setupController(controller, context, transition);\n\n    if (this._environment.options.shouldRender) {\n      deprecate('Usage of `renderTemplate` is deprecated.', this.renderTemplate === Route.prototype.renderTemplate, {\n        id: 'route-render-template',\n        until: '4.0.0',\n        url: 'https://deprecations.emberjs.com/v3.x/#toc_route-render-template',\n        for: 'ember-source',\n        since: {\n          enabled: '3.27.0'\n        }\n      });\n      this.renderTemplate(controller, context);\n    } // Setup can cause changes to QPs which need to be propogated immediately in\n    // some situations. Eventually, we should work on making these async somehow.\n\n\n    flushAsyncObservers(false);\n  }\n  /*\n    Called when a query parameter for this route changes, regardless of whether the route\n    is currently part of the active route hierarchy. This will update the query parameter's\n    value in the cache so if this route becomes active, the cache value has been updated.\n  */\n\n\n  _qpChanged(prop, value, qp) {\n    if (!qp) {\n      return;\n    } // Update model-dep cache\n\n\n    let cache = this._bucketCache;\n    let cacheKey = calculateCacheKey(qp.route.fullRouteName, qp.parts, qp.values);\n    cache.stash(cacheKey, prop, value);\n  }\n  /**\n    This hook is the first of the route entry validation hooks\n    called when an attempt is made to transition into a route\n    or one of its children. It is called before `model` and\n    `afterModel`, and is appropriate for cases when:\n       1) A decision can be made to redirect elsewhere without\n       needing to resolve the model first.\n    2) Any async operations need to occur first before the\n       model is attempted to be resolved.\n       This hook is provided the current `transition` attempt\n    as a parameter, which can be used to `.abort()` the transition,\n    save it for a later `.retry()`, or retrieve values set\n    on it from a previous hook. You can also just call\n    `this.transitionTo` to another route to implicitly\n    abort the `transition`.\n       You can return a promise from this hook to pause the\n    transition until the promise resolves (or rejects). This could\n    be useful, for instance, for retrieving async code from\n    the server that is required to enter a route.\n       @method beforeModel\n    @param {Transition} transition\n    @return {any | Promise<any>} if the value returned from this hook is\n      a promise, the transition will pause until the transition\n      resolves. Otherwise, non-promise return values are not\n      utilized in any way.\n    @since 1.0.0\n    @public\n  */\n\n\n  beforeModel() {}\n  /**\n    This hook is called after this route's model has resolved.\n    It follows identical async/promise semantics to `beforeModel`\n    but is provided the route's resolved model in addition to\n    the `transition`, and is therefore suited to performing\n    logic that can only take place after the model has already\n    resolved.\n       ```app/routes/posts.js\n    import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n      afterModel(posts, transition) {\n        if (posts.get('length') === 1) {\n          this.transitionTo('post.show', posts.get('firstObject'));\n        }\n      }\n    }\n    ```\n       Refer to documentation for `beforeModel` for a description\n    of transition-pausing semantics when a promise is returned\n    from this hook.\n       @method afterModel\n    @param {Object} resolvedModel the value returned from `model`,\n      or its resolved value if it was a promise\n    @param {Transition} transition\n    @return {any | Promise<any>} if the value returned from this hook is\n      a promise, the transition will pause until the transition\n      resolves. Otherwise, non-promise return values are not\n      utilized in any way.\n    @since 1.0.0\n    @public\n   */\n\n\n  afterModel() {}\n  /**\n    A hook you can implement to optionally redirect to another route.\n       Calling `this.transitionTo` from inside of the `redirect` hook will\n    abort the current transition (into the route that has implemented `redirect`).\n       `redirect` and `afterModel` behave very similarly and are\n    called almost at the same time, but they have an important\n    distinction when calling `this.transitionTo` to a child route\n    of the current route. From `afterModel`, this new transition\n    invalidates the current transition, causing `beforeModel`,\n    `model`, and `afterModel` hooks to be called again. But the\n    same transition started from `redirect` does _not_ invalidate\n    the current transition. In other words, by the time the `redirect`\n    hook has been called, both the resolved model and the attempted\n    entry into this route are considered fully validated.\n       @method redirect\n    @param {Object} model the model for this route\n    @param {Transition} transition the transition object associated with the current transition\n    @since 1.0.0\n    @public\n  */\n\n\n  redirect() {}\n  /**\n    Called when the context is changed by router.js.\n       @private\n    @method contextDidChange\n  */\n\n\n  contextDidChange() {\n    this.currentModel = this.context;\n  }\n  /**\n    A hook you can implement to convert the URL into the model for\n    this route.\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' });\n    });\n       export default Router;\n    ```\n       The model for the `post` route is `store.findRecord('post', params.post_id)`.\n       By default, if your route has a dynamic segment ending in `_id`:\n       * The model class is determined from the segment (`post_id`'s\n      class is `App.Post`)\n    * The find method is called on the model class with the value of\n      the dynamic segment.\n       Note that for routes with dynamic segments, this hook is not always\n    executed. If the route is entered through a transition (e.g. when\n    using the `link-to` Handlebars helper or the `transitionTo` method\n    of routes), and a model context is already provided this hook\n    is not called.\n       A model context does not include a primitive string or number,\n    which does cause the model hook to be called.\n       Routes without dynamic segments will always execute the model hook.\n       ```javascript\n    // no dynamic segment, model hook always called\n    this.transitionTo('posts');\n       // model passed in, so model hook not called\n    thePost = store.findRecord('post', 1);\n    this.transitionTo('post', thePost);\n       // integer passed in, model hook is called\n    this.transitionTo('post', 1);\n       // model id passed in, model hook is called\n    // useful for forcing the hook to execute\n    thePost = store.findRecord('post', 1);\n    this.transitionTo('post', thePost.id);\n    ```\n       This hook follows the asynchronous/promise semantics\n    described in the documentation for `beforeModel`. In particular,\n    if a promise returned from `model` fails, the error will be\n    handled by the `error` hook on `Route`.\n       Example\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n      model(params) {\n        return this.store.findRecord('post', params.post_id);\n      }\n    }\n    ```\n       @method model\n    @param {Object} params the parameters extracted from the URL\n    @param {Transition} transition\n    @return {any | Promise<any>} the model for this route. If\n      a promise is returned, the transition will pause until\n      the promise resolves, and the resolved value of the promise\n      will be used as the model for this route.\n    @since 1.0.0\n    @public\n  */\n\n\n  model(params, transition) {\n    let name, sawParams, value;\n    let queryParams = get(this, '_qp.map');\n\n    for (let prop in params) {\n      if (prop === 'queryParams' || queryParams && prop in queryParams) {\n        continue;\n      }\n\n      let match = prop.match(/^(.*)_id$/);\n\n      if (match !== null) {\n        name = match[1];\n        value = params[prop];\n      }\n\n      sawParams = true;\n    }\n\n    if (!name) {\n      if (sawParams) {\n        return Object.assign({}, params);\n      } else {\n        if (transition.resolveIndex < 1) {\n          return;\n        }\n\n        return transition[STATE_SYMBOL].routeInfos[transition.resolveIndex - 1].context;\n      }\n    }\n\n    return this.findModel(name, value);\n  }\n  /**\n    @private\n    @method deserialize\n    @param {Object} params the parameters extracted from the URL\n    @param {Transition} transition\n    @return {any | Promise<any>} the model for this route.\n       Router.js hook.\n   */\n\n\n  deserialize(_params, transition) {\n    return this.model(this._paramsFor(this.routeName, _params), transition);\n  }\n  /**\n       @method findModel\n    @param {String} type the model type\n    @param {Object} value the value passed to find\n    @private\n  */\n\n\n  findModel(...args) {\n    return get(this, 'store').find(...args);\n  }\n  /**\n    A hook you can use to setup the controller for the current route.\n       This method is called with the controller for the current route and the\n    model supplied by the `model` hook.\n       By default, the `setupController` hook sets the `model` property of\n    the controller to the specified `model` when it is not `undefined`.\n       If you implement the `setupController` hook in your Route, it will\n    prevent this default behavior. If you want to preserve that behavior\n    when implementing your `setupController` function, make sure to call\n    `super`:\n       ```app/routes/photos.js\n    import Route from '@ember/routing/route';\n       export default class PhotosRoute extends Route {\n      model() {\n        return this.store.findAll('photo');\n      }\n         setupController(controller, model) {\n        super.setupController(controller, model);\n           this.controllerFor('application').set('showingPhotos', true);\n      }\n    }\n    ```\n       The provided controller will be one resolved based on the name\n    of this route.\n       If no explicit controller is defined, Ember will automatically create one.\n       As an example, consider the router:\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' });\n    });\n       export default Router;\n    ```\n       If you have defined a file for the post controller,\n    the framework will use it.\n    If it is not defined, a basic `Controller` instance would be used.\n       @example Behavior of a basic Controller\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n      setupController(controller, model) {\n        controller.set('model', model);\n      }\n    });\n    ```\n       @method setupController\n    @param {Controller} controller instance\n    @param {Object} model\n    @param {Object} transition\n    @since 1.0.0\n    @public\n  */\n\n\n  setupController(controller, context, _transition) {\n    // eslint-disable-line no-unused-vars\n    if (controller && context !== undefined) {\n      set(controller, 'model', context);\n    }\n  }\n  /**\n    Returns the controller of the current route, or a parent (or any ancestor)\n    route in a route hierarchy.\n       The controller instance must already have been created, either through entering the\n    associated route or using `generateController`.\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n      setupController(controller, post) {\n        super.setupController(controller, post);\n           this.controllerFor('posts').set('currentPost', post);\n      }\n    }\n    ```\n       @method controllerFor\n    @param {String} name the name of the route or controller\n    @return {Controller}\n    @since 1.0.0\n    @public\n  */\n\n\n  controllerFor(name, _skipAssert) {\n    let owner = getOwner(this);\n    let route = owner.lookup(`route:${name}`);\n\n    if (route && route.controllerName) {\n      name = route.controllerName;\n    }\n\n    let controller = owner.lookup(`controller:${name}`); // NOTE: We're specifically checking that skipAssert is true, because according\n    //   to the old API the second parameter was model. We do not want people who\n    //   passed a model to skip the assertion.\n\n    assert(`The controller named '${name}' could not be found. Make sure that this route exists and has already been entered at least once. If you are accessing a controller not associated with a route, make sure the controller class is explicitly defined.`, controller !== undefined || _skipAssert === true);\n    return controller;\n  }\n  /**\n    Generates a controller for a route.\n       Example\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class Post extends Route {\n      setupController(controller, post) {\n        super.setupController(controller, post);\n           this.generateController('posts');\n      }\n    }\n    ```\n       @method generateController\n    @param {String} name the name of the controller\n    @private\n  */\n\n\n  generateController(name) {\n    let owner = getOwner(this);\n    return generateController(owner, name);\n  }\n  /**\n    Returns the resolved model of a parent (or any ancestor) route\n    in a route hierarchy.  During a transition, all routes\n    must resolve a model object, and if a route\n    needs access to a parent route's model in order to\n    resolve a model (or just reuse the model from a parent),\n    it can call `this.modelFor(theNameOfParentRoute)` to\n    retrieve it. If the ancestor route's model was a promise,\n    its resolved result is returned.\n       Example\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' }, function() {\n        this.route('comments');\n      });\n    });\n       export default Router;\n    ```\n       ```app/routes/post/comments.js\n    import Route from '@ember/routing/route';\n       export default class PostCommentsRoute extends Route {\n      model() {\n        let post = this.modelFor('post');\n           return post.comments;\n      }\n    }\n    ```\n       @method modelFor\n    @param {String} name the name of the route\n    @return {Object} the model object\n    @since 1.0.0\n    @public\n  */\n\n\n  modelFor(_name) {\n    let name;\n    let owner = getOwner(this);\n    let transition = this._router && this._router._routerMicrolib ? this._router._routerMicrolib.activeTransition : undefined; // Only change the route name when there is an active transition.\n    // Otherwise, use the passed in route name.\n\n    if (owner.routable && transition !== undefined) {\n      name = getEngineRouteName(owner, _name);\n    } else {\n      name = _name;\n    }\n\n    let route = owner.lookup(`route:${name}`); // If we are mid-transition, we want to try and look up\n    // resolved parent contexts on the current transitionEvent.\n\n    if (transition !== undefined && transition !== null) {\n      let modelLookupName = route && route.routeName || name;\n\n      if (Object.prototype.hasOwnProperty.call(transition.resolvedModels, modelLookupName)) {\n        return transition.resolvedModels[modelLookupName];\n      }\n    }\n\n    return route && route.currentModel;\n  }\n  /**\n    `this[RENDER]` is used to render a template into a region of another template\n    (indicated by an `{{outlet}}`).\n       @method this[RENDER]\n    @param {String} name the name of the template to render\n    @param {Object} [options] the options\n    @param {String} [options.into] the template to render into,\n                    referenced by name. Defaults to the parent template\n    @param {String} [options.outlet] the outlet inside `options.into` to render into.\n                    Defaults to 'main'\n    @param {String|Object} [options.controller] the controller to use for this template,\n                    referenced by name or as a controller instance. Defaults to the Route's paired controller\n    @param {Object} [options.model] the model object to set on `options.controller`.\n                    Defaults to the return value of the Route's model hook\n    @private\n   */\n\n\n  [RENDER](name, options) {\n    let renderOptions = buildRenderOptions(this, name, options);\n    ROUTE_CONNECTIONS.get(this).push(renderOptions);\n    once(this._router, '_setOutlets');\n  }\n  /**\n    A hook you can use to render the template for the current route.\n       This method is called with the controller for the current route and the\n    model supplied by the `model` hook. By default, it renders the route's\n    template, configured with the controller for the route.\n       This method can be overridden to set up and render additional or\n    alternative templates.\n       ```app/routes/posts.js\n    import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n      renderTemplate(controller, model) {\n        let favController = this.controllerFor('favoritePost');\n           // Render the `favoritePost` template into\n        // the outlet `posts`, and display the `favoritePost`\n        // controller.\n        this.render('favoritePost', {\n          outlet: 'posts',\n          controller: favController\n        });\n      }\n    }\n    ```\n       @method renderTemplate\n    @param {Object} controller the route's controller\n    @param {Object} model the route's model\n    @since 1.0.0\n    @public\n  */\n\n\n  renderTemplate(_controller, _model) {\n    // eslint-disable-line no-unused-vars\n    this[RENDER]();\n  }\n  /**\n    `render` is used to render a template into a region of another template\n    (indicated by an `{{outlet}}`). `render` is used both during the entry\n    phase of routing (via the `renderTemplate` hook) and later in response to\n    user interaction.\n       For example, given the following minimal router and templates:\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('photos');\n    });\n       export default Router;\n    ```\n       ```handlebars\n    <!-- application.hbs -->\n    <div class='something-in-the-app-hbs'>\n      {{outlet \"anOutletName\"}}\n    </div>\n    ```\n       ```handlebars\n    <!-- photos.hbs -->\n    <h1>Photos</h1>\n    ```\n       You can render `photos.hbs` into the `\"anOutletName\"` outlet of\n    `application.hbs` by calling `render`:\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n      renderTemplate() {\n        this.render('photos', {\n          into: 'application',\n          outlet: 'anOutletName'\n        })\n      }\n    }\n    ```\n       `render` additionally allows you to supply which `controller` and\n    `model` objects should be loaded and associated with the rendered template.\n       ```app/routes/posts.js\n    import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n      renderTemplate(controller, model) {\n        this.render('posts', {    // the template to render, referenced by name\n          into: 'application',    // the template to render into, referenced by name\n          outlet: 'anOutletName', // the outlet inside `options.into` to render into.\n          controller: 'someControllerName', // the controller to use for this template, referenced by name\n          model: model            // the model to set on `options.controller`.\n        })\n      }\n    }\n    ```\n       The string values provided for the template name, and controller\n    will eventually pass through to the resolver for lookup. See\n    Resolver for how these are mapped to JavaScript objects in your\n    application. The template to render into needs to be related to  either the\n    current route or one of its ancestors.\n       Not all options need to be passed to `render`. Default values will be used\n    based on the name of the route specified in the router or the Route's\n    `controllerName` and `templateName` properties.\n       For example:\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('index');\n      this.route('post', { path: '/posts/:post_id' });\n    });\n       export default Router;\n    ```\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n      renderTemplate() {\n        this.render(); // all defaults apply\n      }\n    }\n    ```\n       The name of the route, defined by the router, is `post`.\n       The following equivalent default options will be applied when\n    the Route calls `render`:\n       ```javascript\n    this.render('post', {  // the template name associated with 'post' Route\n      into: 'application', // the parent route to 'post' Route\n      outlet: 'main',      // {{outlet}} and {{outlet 'main'}} are synonymous,\n      controller: 'post',  // the controller associated with the 'post' Route\n    })\n    ```\n       By default the controller's `model` will be the route's model, so it does not\n    need to be passed unless you wish to change which model is being used.\n       @method render\n    @param {String} name the name of the template to render\n    @param {Object} [options] the options\n    @param {String} [options.into] the template to render into,\n                    referenced by name. Defaults to the parent template\n    @param {String} [options.outlet] the outlet inside `options.into` to render into.\n                    Defaults to 'main'\n    @param {String|Object} [options.controller] the controller to use for this template,\n                    referenced by name or as a controller instance. Defaults to the Route's paired controller\n    @param {Object} [options.model] the model object to set on `options.controller`.\n                    Defaults to the return value of the Route's model hook\n    @since 1.0.0\n    @public\n  */\n\n\n  render(name, options) {\n    deprecate(`Usage of \\`render\\` is deprecated. Route: \\`${this.routeName}\\``, false, {\n      id: 'route-render-template',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x/#toc_route-render-template',\n      for: 'ember-source',\n      since: {\n        enabled: '3.27.0'\n      }\n    });\n    this[RENDER](name, options);\n  }\n  /**\n    Disconnects a view that has been rendered into an outlet.\n       You may pass any or all of the following options to `disconnectOutlet`:\n       * `outlet`: the name of the outlet to clear (default: 'main')\n    * `parentView`: the name of the view containing the outlet to clear\n       (default: the view rendered by the parent route)\n       Example:\n       ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class ApplicationRoute extends Route {\n      @action\n      showModal(evt) {\n        this.render(evt.modalName, {\n          outlet: 'modal',\n          into: 'application'\n        });\n      }\n         @action\n      hideModal() {\n        this.disconnectOutlet({\n          outlet: 'modal',\n          parentView: 'application'\n        });\n      }\n    }\n    ```\n       Alternatively, you can pass the `outlet` name directly as a string.\n       Example:\n       ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class ApplicationRoute extends Route {\n      @action\n      showModal(evt) {\n        // ...\n      }\n         @action\n      hideModal(evt) {\n        this.disconnectOutlet('modal');\n      }\n    }\n    ```\n       @method disconnectOutlet\n    @param {Object|String} options the options hash or outlet name\n    @since 1.0.0\n    @public\n  */\n\n\n  disconnectOutlet(options) {\n    deprecate('The usage of `disconnectOutlet` is deprecated.', false, {\n      id: 'route-disconnect-outlet',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x/#toc_route-disconnect-outlet',\n      for: 'ember-source',\n      since: {\n        enabled: '3.27.0'\n      }\n    });\n    let outletName;\n    let parentView;\n\n    if (options) {\n      if (typeof options === 'string') {\n        outletName = options;\n      } else {\n        outletName = options.outlet;\n        parentView = options.parentView ? options.parentView.replace(/\\//g, '.') : undefined;\n        assert('You passed undefined as the outlet name.', !('outlet' in options && options.outlet === undefined));\n      }\n    }\n\n    outletName = outletName || 'main';\n\n    this._disconnectOutlet(outletName, parentView);\n\n    let routeInfos = this._router._routerMicrolib.currentRouteInfos;\n\n    for (let i = 0; i < routeInfos.length; i++) {\n      // This non-local state munging is sadly necessary to maintain\n      // backward compatibility with our existing semantics, which allow\n      // any route to disconnectOutlet things originally rendered by any\n      // other route. This should all get cut in 2.0.\n      routeInfos[i].route._disconnectOutlet(outletName, parentView);\n    }\n  }\n\n  _disconnectOutlet(outletName, parentView) {\n    let parent = parentRoute(this);\n\n    if (parent && parentView === parent.routeName) {\n      parentView = undefined;\n    }\n\n    let connections = ROUTE_CONNECTIONS.get(this);\n\n    for (let i = 0; i < connections.length; i++) {\n      let connection = connections[i];\n\n      if (connection.outlet === outletName && connection.into === parentView) {\n        // This neuters the disconnected outlet such that it doesn't\n        // render anything, but it leaves an entry in the outlet\n        // hierarchy so that any existing other renders that target it\n        // don't suddenly blow up. They will still stick themselves\n        // into its outlets, which won't render anywhere. All of this\n        // statefulness should get the machete in 2.0.\n        connections[i] = {\n          owner: connection.owner,\n          into: connection.into,\n          outlet: connection.outlet,\n          name: connection.name,\n          controller: undefined,\n          template: undefined,\n          model: undefined\n        };\n        once(this._router, '_setOutlets');\n      }\n    }\n  }\n\n  willDestroy() {\n    this.teardownViews();\n  }\n  /**\n    @private\n       @method teardownViews\n  */\n\n\n  teardownViews() {\n    let connections = ROUTE_CONNECTIONS.get(this);\n\n    if (connections !== undefined && connections.length > 0) {\n      ROUTE_CONNECTIONS.set(this, []);\n      once(this._router, '_setOutlets');\n    }\n  }\n  /**\n    Allows you to produce custom metadata for the route.\n    The return value of this method will be attached to\n    its corresponding RouteInfoWithAttributes object.\n       Example\n       ```app/routes/posts/index.js\n    import Route from '@ember/routing/route';\n       export default class PostsIndexRoute extends Route {\n      buildRouteInfoMetadata() {\n        return { title: 'Posts Page' }\n      }\n    }\n    ```\n       ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { inject as service } from '@ember/service';\n       export default class ApplicationRoute extends Route {\n      @service router\n         constructor() {\n        super(...arguments);\n           this.router.on('routeDidChange', transition => {\n          document.title = transition.to.metadata.title;\n          // would update document's title to \"Posts Page\"\n        });\n      }\n    }\n    ```\n    @method buildRouteInfoMetadata\n    @return any\n    @since 3.10.0\n    @public\n   */\n\n\n  buildRouteInfoMetadata() {}\n\n}\n\nRoute.reopenClass({\n  isRouteFactory: true\n});\n\nfunction parentRoute(route) {\n  let routeInfo = routeInfoFor(route, route._router._routerMicrolib.state.routeInfos, -1);\n  return routeInfo && routeInfo.route;\n}\n\nfunction routeInfoFor(route, routeInfos, offset = 0) {\n  if (!routeInfos) {\n    return;\n  }\n\n  let current;\n\n  for (let i = 0; i < routeInfos.length; i++) {\n    current = routeInfos[i].route;\n\n    if (current === route) {\n      return routeInfos[i + offset];\n    }\n  }\n\n  return;\n}\n\nfunction buildRenderOptions(route, nameOrOptions, options) {\n  let isDefaultRender = !nameOrOptions && !options;\n\n  let _name;\n\n  if (!isDefaultRender) {\n    if (typeof nameOrOptions === 'object' && !options) {\n      _name = route.templateName || route.routeName;\n      options = nameOrOptions;\n    } else {\n      assert('The name in the given arguments is undefined or empty string', !isEmpty(nameOrOptions));\n      _name = nameOrOptions;\n    }\n  }\n\n  assert('You passed undefined as the outlet name.', isDefaultRender || !(options && 'outlet' in options && options.outlet === undefined));\n  let owner = getOwner(route);\n  let name, templateName, into, outlet, model;\n  let controller = undefined;\n\n  if (options) {\n    into = options.into && options.into.replace(/\\//g, '.');\n    outlet = options.outlet;\n    controller = options.controller;\n    model = options.model;\n  }\n\n  outlet = outlet || 'main';\n\n  if (isDefaultRender) {\n    name = route.routeName;\n    templateName = route.templateName || name;\n  } else {\n    name = _name.replace(/\\//g, '.');\n    templateName = name;\n  }\n\n  if (controller === undefined) {\n    if (isDefaultRender) {\n      controller = route.controllerName || owner.lookup(`controller:${name}`);\n    } else {\n      controller = owner.lookup(`controller:${name}`) || route.controllerName || route.routeName;\n    }\n  }\n\n  if (typeof controller === 'string') {\n    let controllerName = controller;\n    controller = owner.lookup(`controller:${controllerName}`);\n    assert(`You passed \\`controller: '${controllerName}'\\` into the \\`render\\` method, but no such controller could be found.`, isDefaultRender || controller !== undefined);\n  }\n\n  if (model === undefined) {\n    model = route.currentModel;\n  } else {\n    controller.set('model', model);\n  }\n\n  let template = owner.lookup(`template:${templateName}`);\n  assert(`Could not find \"${templateName}\" template, view, or component.`, isDefaultRender || template !== undefined);\n  let parent;\n\n  if (into && (parent = parentRoute(route)) && into === parent.routeName) {\n    into = undefined;\n  }\n\n  let renderOptions = {\n    owner,\n    into,\n    outlet,\n    name,\n    controller,\n    model,\n    template: template !== undefined ? template(owner) : route._topLevelViewTemplate(owner)\n  };\n\n  if (DEBUG) {\n    let LOG_VIEW_LOOKUPS = get(route._router, 'namespace.LOG_VIEW_LOOKUPS');\n\n    if (LOG_VIEW_LOOKUPS && !template) {\n      info(`Could not find \"${name}\" template. Nothing will be rendered`, {\n        fullName: `template:${name}`\n      });\n    }\n  }\n\n  return renderOptions;\n}\n\nexport function getFullQueryParams(router, state) {\n  if (state['fullQueryParams']) {\n    return state['fullQueryParams'];\n  }\n\n  let fullQueryParamsState = {};\n  let haveAllRouteInfosResolved = state.routeInfos.every(routeInfo => routeInfo.route);\n  assign(fullQueryParamsState, state.queryParams);\n\n  router._deserializeQueryParams(state.routeInfos, fullQueryParamsState); // only cache query params state if all routeinfos have resolved; it's possible\n  // for lazy routes to not have resolved when `getFullQueryParams` is called, so\n  // we wait until all routes have resolved prior to caching query params state\n\n\n  if (haveAllRouteInfosResolved) {\n    state['fullQueryParams'] = fullQueryParamsState;\n  }\n\n  return fullQueryParamsState;\n}\n\nfunction getQueryParamsFor(route, state) {\n  state['queryParamsFor'] = state['queryParamsFor'] || {};\n  let name = route.fullRouteName;\n\n  if (state['queryParamsFor'][name]) {\n    return state['queryParamsFor'][name];\n  }\n\n  let fullQueryParams = getFullQueryParams(route._router, state);\n  let params = state['queryParamsFor'][name] = {}; // Copy over all the query params for this route/controller into params hash.\n\n  let qps = get(route, '_qp.qps');\n\n  for (let i = 0; i < qps.length; ++i) {\n    // Put deserialized qp on params hash.\n    let qp = qps[i];\n    let qpValueWasPassedIn = (qp.prop in fullQueryParams);\n    params[qp.prop] = qpValueWasPassedIn ? fullQueryParams[qp.prop] : copyDefaultValue(qp.defaultValue);\n  }\n\n  return params;\n}\n\nfunction copyDefaultValue(value) {\n  if (Array.isArray(value)) {\n    return emberA(value.slice());\n  }\n\n  return value;\n}\n/*\n  Merges all query parameters from a controller with those from\n  a route, returning a new object and avoiding any mutations to\n  the existing objects.\n*/\n\n\nfunction mergeEachQueryParams(controllerQP, routeQP) {\n  let qps = {};\n  let keysAlreadyMergedOrSkippable = {\n    defaultValue: true,\n    type: true,\n    scope: true,\n    as: true\n  }; // first loop over all controller qps, merging them with any matching route qps\n  // into a new empty object to avoid mutating.\n\n  for (let cqpName in controllerQP) {\n    if (!Object.prototype.hasOwnProperty.call(controllerQP, cqpName)) {\n      continue;\n    }\n\n    let newControllerParameterConfiguration = {};\n    assign(newControllerParameterConfiguration, controllerQP[cqpName], routeQP[cqpName]);\n    qps[cqpName] = newControllerParameterConfiguration; // allows us to skip this QP when we check route QPs.\n\n    keysAlreadyMergedOrSkippable[cqpName] = true;\n  } // loop over all route qps, skipping those that were merged in the first pass\n  // because they also appear in controller qps\n\n\n  for (let rqpName in routeQP) {\n    if (!Object.prototype.hasOwnProperty.call(routeQP, rqpName) || keysAlreadyMergedOrSkippable[rqpName]) {\n      continue;\n    }\n\n    let newRouteParameterConfiguration = {};\n    assign(newRouteParameterConfiguration, routeQP[rqpName], controllerQP[rqpName]);\n    qps[rqpName] = newRouteParameterConfiguration;\n  }\n\n  return qps;\n}\n\nfunction addQueryParamsObservers(controller, propNames) {\n  propNames.forEach(prop => {\n    if (descriptorForProperty(controller, prop) === undefined) {\n      let desc = lookupDescriptor(controller, prop);\n\n      if (desc !== null && (typeof desc.get === 'function' || typeof desc.set === 'function')) {\n        defineProperty(controller, prop, dependentKeyCompat({\n          get: desc.get,\n          set: desc.set\n        }));\n      }\n    }\n\n    addObserver(controller, `${prop}.[]`, controller, controller._qpChanged, false);\n  });\n}\n\nfunction getEngineRouteName(engine, routeName) {\n  if (engine.routable) {\n    let prefix = engine.mountPoint;\n\n    if (routeName === 'application') {\n      return prefix;\n    } else {\n      return `${prefix}.${routeName}`;\n    }\n  }\n\n  return routeName;\n}\n/**\n    A hook you can implement to convert the route's model into parameters\n    for the URL.\n\n    ```app/router.js\n    // ...\n\n    Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' });\n    });\n\n    ```\n\n    ```app/routes/post.js\n    import Route from '@ember/routing/route';\n\n    export default class PostRoute extends Route {\n      model({ post_id }) {\n        // the server returns `{ id: 12 }`\n        return fetch(`/posts/${post_id}`;\n      }\n\n      serialize(model) {\n        // this will make the URL `/posts/12`\n        return { post_id: model.id };\n      }\n    }\n    ```\n\n    The default `serialize` method will insert the model's `id` into the\n    route's dynamic segment (in this case, `:post_id`) if the segment contains '_id'.\n    If the route has multiple dynamic segments or does not contain '_id', `serialize`\n    will return `getProperties(model, params)`\n\n    This method is called when `transitionTo` is called with a context\n    in order to populate the URL.\n\n    @method serialize\n    @param {Object} model the routes model\n    @param {Array} params an Array of parameter names for the current\n      route (in the example, `['post_id']`.\n    @return {Object} the serialized parameters\n    @since 1.0.0\n    @public\n  */\n\n\nRoute.prototype.serialize = defaultSerialize;\nRoute.reopen(ActionHandler, Evented, {\n  mergedProperties: ['queryParams'],\n\n  /**\n    Configuration hash for this route's queryParams. The possible\n    configuration options and their defaults are as follows\n    (assuming a query param whose controller property is `page`):\n       ```javascript\n    queryParams: {\n      page: {\n        // By default, controller query param properties don't\n        // cause a full transition when they are changed, but\n        // rather only cause the URL to update. Setting\n        // `refreshModel` to true will cause an \"in-place\"\n        // transition to occur, whereby the model hooks for\n        // this route (and any child routes) will re-fire, allowing\n        // you to reload models (e.g., from the server) using the\n        // updated query param values.\n        refreshModel: false,\n           // By default, changes to controller query param properties\n        // cause the URL to update via `pushState`, which means an\n        // item will be added to the browser's history, allowing\n        // you to use the back button to restore the app to the\n        // previous state before the query param property was changed.\n        // Setting `replace` to true will use `replaceState` (or its\n        // hash location equivalent), which causes no browser history\n        // item to be added. This options name and default value are\n        // the same as the `link-to` helper's `replace` option.\n        replace: false,\n           // By default, the query param URL key is the same name as\n        // the controller property name. Use `as` to specify a\n        // different URL key.\n        as: 'page'\n      }\n    }\n    ```\n       @property queryParams\n    @for Route\n    @type Object\n    @since 1.6.0\n    @public\n  */\n  queryParams: {},\n\n  /**\n    The name of the template to use by default when rendering this routes\n    template.\n       ```app/routes/posts/list.js\n    import Route from '@ember/routing/route';\n       export default class extends Route {\n      templateName = 'posts/list'\n    });\n    ```\n       ```app/routes/posts/index.js\n    import PostsList from '../posts/list';\n       export default class extends PostsList {};\n    ```\n       ```app/routes/posts/archived.js\n    import PostsList from '../posts/list';\n       export default class extends PostsList {};\n    ```\n       @property templateName\n    @type String\n    @default null\n    @since 1.4.0\n    @public\n  */\n  templateName: null,\n\n  /**\n    @private\n       @property _names\n  */\n  _names: null,\n\n  /**\n    The name of the controller to associate with this route.\n       By default, Ember will lookup a route's controller that matches the name\n    of the route (i.e. `posts.new`). However,\n    if you would like to define a specific controller to use, you can do so\n    using this property.\n       This is useful in many ways, as the controller specified will be:\n       * passed to the `setupController` method.\n    * used as the controller for the template being rendered by the route.\n    * returned from a call to `controllerFor` for the route.\n       @property controllerName\n    @type String\n    @default null\n    @since 1.4.0\n    @public\n  */\n  controllerName: null,\n\n  /**\n    Store property provides a hook for data persistence libraries to inject themselves.\n       By default, this store property provides the exact same functionality previously\n    in the model hook.\n       Currently, the required interface is:\n       `store.find(modelName, findArguments)`\n       @property store\n    @type {Object}\n    @private\n  */\n  store: computed({\n    get() {\n      let owner = getOwner(this);\n      let routeName = this.routeName;\n      return {\n        find(name, value) {\n          let modelClass = owner.factoryFor(`model:${name}`);\n          assert(`You used the dynamic segment \\`${name}_id\\` in your route ` + `\\`${routeName}\\` for which Ember requires you provide a ` + `data-loading implementation. Commonly, that is done by ` + `adding a model hook implementation on the route ` + `(\\`model({${name}_id}) {\\`) or by injecting an implemention of ` + `a data store: \\`@service store;\\`.`, Boolean(modelClass));\n\n          if (!modelClass) {\n            return;\n          }\n\n          modelClass = modelClass.class;\n          assert(`You used the dynamic segment \\`${name}_id\\` in your route ` + `\\`${routeName}\\` for which Ember requires you provide a ` + `data-loading implementation. Commonly, that is done by ` + `adding a model hook implementation on the route ` + `(\\`model({${name}_id}) {\\`) or by injecting an implemention of ` + `a data store: \\`@service store;\\`.\\n\\n` + `Rarely, applications may attempt to use a legacy behavior where ` + `the model class (in this case \\`${name}\\`) is resolved and the ` + `\\`find\\` method on that class is invoked to load data. In this ` + `application, a model of \\`${name}\\` was found but it did not ` + `provide a \\`find\\` method. You should not add a \\`find\\` ` + `method to your model. Instead, please implement an appropriate ` + `\\`model\\` hook on the \\`${routeName}\\` route.`, typeof modelClass.find === 'function');\n          return modelClass.find(value);\n        }\n\n      };\n    },\n\n    set(key, value) {\n      if (DEBUG && (deprecatedStoreInjections === null || deprecatedStoreInjections === void 0 ? void 0 : deprecatedStoreInjections.has(value))) {\n        Object.defineProperty(this, key, {\n          configurable: true,\n          enumerable: false,\n\n          get() {\n            deprecate(`A value for the \\`store\\` property was injected onto a route via the owner API. Implicit injection via the owner API is now deprecated, please add an explicit injection for this value. If the injected value is a service, consider using the @service decorator.`, false, {\n              id: 'implicit-injections',\n              until: '4.0.0',\n              url: 'https://deprecations.emberjs.com/v3.x/#toc_implicit-injections',\n              for: 'ember-source',\n              since: {\n                enabled: '3.28.7'\n              }\n            });\n            return value;\n          }\n\n        });\n      } else {\n        defineProperty(this, key, null, value);\n      }\n    }\n\n  }),\n\n  /**\n      @private\n         @property _qp\n    */\n  _qp: computed(function () {\n    let combinedQueryParameterConfiguration;\n    let controllerName = this.controllerName || this.routeName;\n    let owner = getOwner(this);\n    let controller = owner.lookup(`controller:${controllerName}`);\n    let queryParameterConfiguraton = get(this, 'queryParams');\n    let hasRouterDefinedQueryParams = Object.keys(queryParameterConfiguraton).length > 0;\n\n    if (controller) {\n      // the developer has authored a controller class in their application for\n      // this route find its query params and normalize their object shape them\n      // merge in the query params for the route. As a mergedProperty,\n      // Route#queryParams is always at least `{}`\n      let controllerDefinedQueryParameterConfiguration = get(controller, 'queryParams') || {};\n      let normalizedControllerQueryParameterConfiguration = normalizeControllerQueryParams(controllerDefinedQueryParameterConfiguration);\n      combinedQueryParameterConfiguration = mergeEachQueryParams(normalizedControllerQueryParameterConfiguration, queryParameterConfiguraton);\n    } else if (hasRouterDefinedQueryParams) {\n      // the developer has not defined a controller but *has* supplied route query params.\n      // Generate a class for them so we can later insert default values\n      controller = generateController(owner, controllerName);\n      combinedQueryParameterConfiguration = queryParameterConfiguraton;\n    }\n\n    let qps = [];\n    let map = {};\n    let propertyNames = [];\n\n    for (let propName in combinedQueryParameterConfiguration) {\n      if (!Object.prototype.hasOwnProperty.call(combinedQueryParameterConfiguration, propName)) {\n        continue;\n      } // to support the dubious feature of using unknownProperty\n      // on queryParams configuration\n\n\n      if (propName === 'unknownProperty' || propName === '_super') {\n        // possible todo: issue deprecation warning?\n        continue;\n      }\n\n      let desc = combinedQueryParameterConfiguration[propName];\n      let scope = desc.scope || 'model';\n      let parts;\n\n      if (scope === 'controller') {\n        parts = [];\n      }\n\n      let urlKey = desc.as || this.serializeQueryParamKey(propName);\n      let defaultValue = get(controller, propName);\n      defaultValue = copyDefaultValue(defaultValue);\n      let type = desc.type || typeOf(defaultValue);\n      let defaultValueSerialized = this.serializeQueryParam(defaultValue, urlKey, type);\n      let scopedPropertyName = `${controllerName}:${propName}`;\n      let qp = {\n        undecoratedDefaultValue: get(controller, propName),\n        defaultValue,\n        serializedDefaultValue: defaultValueSerialized,\n        serializedValue: defaultValueSerialized,\n        type,\n        urlKey,\n        prop: propName,\n        scopedPropertyName,\n        controllerName,\n        route: this,\n        parts,\n        values: null,\n        scope\n      };\n      map[propName] = map[urlKey] = map[scopedPropertyName] = qp;\n      qps.push(qp);\n      propertyNames.push(propName);\n    }\n\n    return {\n      qps,\n      map,\n      propertyNames,\n      states: {\n        /*\n          Called when a query parameter changes in the URL, this route cares\n          about that query parameter, but the route is not currently\n          in the active route hierarchy.\n        */\n        inactive: (prop, value) => {\n          let qp = map[prop];\n\n          this._qpChanged(prop, value, qp);\n        },\n\n        /*\n          Called when a query parameter changes in the URL, this route cares\n          about that query parameter, and the route is currently\n          in the active route hierarchy.\n        */\n        active: (prop, value) => {\n          let qp = map[prop];\n\n          this._qpChanged(prop, value, qp);\n\n          return this._activeQPChanged(qp, value);\n        },\n\n        /*\n          Called when a value of a query parameter this route handles changes in a controller\n          and the route is currently in the active route hierarchy.\n        */\n        allowOverrides: (prop, value) => {\n          let qp = map[prop];\n\n          this._qpChanged(prop, value, qp);\n\n          return this._updatingQPChanged(qp);\n        }\n      }\n    };\n  }),\n\n  /**\n    Sends an action to the router, which will delegate it to the currently\n    active route hierarchy per the bubbling rules explained under `actions`.\n       Example\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('index');\n    });\n       export default Router;\n    ```\n       ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class ApplicationRoute extends Route {\n      @action\n      track(arg) {\n        console.log(arg, 'was clicked');\n      }\n    }\n    ```\n       ```app/routes/index.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class IndexRoute extends Route {\n      @action\n      trackIfDebug(arg) {\n        if (debug) {\n          this.send('track', arg);\n        }\n      }\n    }\n    ```\n       @method send\n    @param {String} name the name of the action to trigger\n    @param {...*} args\n    @since 1.0.0\n    @public\n  */\n  send(...args) {\n    assert(`Attempted to call .send() with the action '${args[0]}' on the destroyed route '${this.routeName}'.`, !this.isDestroying && !this.isDestroyed);\n\n    if (this._router && this._router._routerMicrolib || !isTesting()) {\n      this._router.send(...args);\n    } else {\n      let name = args.shift();\n      let action = this.actions[name];\n\n      if (action) {\n        return action.apply(this, args);\n      }\n    }\n  },\n\n  /**\n    The controller associated with this route.\n       Example\n       ```app/routes/form.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class FormRoute extends Route {\n      @action\n      willTransition(transition) {\n        if (this.controller.get('userHasEnteredData') &&\n            !confirm('Are you sure you want to abandon progress?')) {\n          transition.abort();\n        } else {\n          // Bubble the `willTransition` action so that\n          // parent routes can decide whether or not to abort.\n          return true;\n        }\n      }\n    }\n    ```\n       @property controller\n    @type Controller\n    @since 1.6.0\n    @public\n  */\n  actions: {\n    /**\n    This action is called when one or more query params have changed. Bubbles.\n         @method queryParamsDidChange\n    @param changed {Object} Keys are names of query params that have changed.\n    @param totalPresent {Object} Keys are names of query params that are currently set.\n    @param removed {Object} Keys are names of query params that have been removed.\n    @returns {boolean}\n    @private\n    */\n    queryParamsDidChange(changed, _totalPresent, removed) {\n      let qpMap = get(this, '_qp').map;\n      let totalChanged = Object.keys(changed).concat(Object.keys(removed));\n\n      for (let i = 0; i < totalChanged.length; ++i) {\n        let qp = qpMap[totalChanged[i]];\n\n        if (qp && get(this._optionsForQueryParam(qp), 'refreshModel') && this._router.currentState) {\n          this.refresh();\n          break;\n        }\n      }\n\n      return true;\n    },\n\n    finalizeQueryParamChange(params, finalParams, transition) {\n      if (this.fullRouteName !== 'application') {\n        return true;\n      } // Transition object is absent for intermediate transitions.\n\n\n      if (!transition) {\n        return;\n      }\n\n      let routeInfos = transition[STATE_SYMBOL].routeInfos;\n      let router = this._router;\n\n      let qpMeta = router._queryParamsFor(routeInfos);\n\n      let changes = router._qpUpdates;\n      let qpUpdated = false;\n      let replaceUrl;\n      stashParamNames(router, routeInfos);\n\n      for (let i = 0; i < qpMeta.qps.length; ++i) {\n        let qp = qpMeta.qps[i];\n        let route = qp.route;\n        let controller = route.controller;\n        let presentKey = qp.urlKey in params && qp.urlKey; // Do a reverse lookup to see if the changed query\n        // param URL key corresponds to a QP property on\n        // this controller.\n\n        let value, svalue;\n\n        if (changes.has(qp.urlKey)) {\n          // Value updated in/before setupController\n          value = get(controller, qp.prop);\n          svalue = route.serializeQueryParam(value, qp.urlKey, qp.type);\n        } else {\n          if (presentKey) {\n            svalue = params[presentKey];\n\n            if (svalue !== undefined) {\n              value = route.deserializeQueryParam(svalue, qp.urlKey, qp.type);\n            }\n          } else {\n            // No QP provided; use default value.\n            svalue = qp.serializedDefaultValue;\n            value = copyDefaultValue(qp.defaultValue);\n          }\n        }\n\n        controller._qpDelegate = get(route, '_qp.states.inactive');\n        let thisQueryParamChanged = svalue !== qp.serializedValue;\n\n        if (thisQueryParamChanged) {\n          if (transition.queryParamsOnly && replaceUrl !== false) {\n            let options = route._optionsForQueryParam(qp);\n\n            let replaceConfigValue = get(options, 'replace');\n\n            if (replaceConfigValue) {\n              replaceUrl = true;\n            } else if (replaceConfigValue === false) {\n              // Explicit pushState wins over any other replaceStates.\n              replaceUrl = false;\n            }\n          }\n\n          set(controller, qp.prop, value);\n          qpUpdated = true;\n        } // Stash current serialized value of controller.\n\n\n        qp.serializedValue = svalue;\n        let thisQueryParamHasDefaultValue = qp.serializedDefaultValue === svalue;\n\n        if (!thisQueryParamHasDefaultValue || transition._keepDefaultQueryParamValues) {\n          finalParams.push({\n            value: svalue,\n            visible: true,\n            key: presentKey || qp.urlKey\n          });\n        }\n      } // Some QPs have been updated, and those changes need to be propogated\n      // immediately. Eventually, we should work on making this async somehow.\n\n\n      if (qpUpdated === true) {\n        flushAsyncObservers(false);\n      }\n\n      if (replaceUrl) {\n        transition.method('replace');\n      }\n\n      qpMeta.qps.forEach(qp => {\n        let routeQpMeta = get(qp.route, '_qp');\n        let finalizedController = qp.route.controller;\n        finalizedController['_qpDelegate'] = get(routeQpMeta, 'states.active');\n      });\n\n      router._qpUpdates.clear();\n\n      return;\n    }\n\n  }\n});\nexport let ROUTER_EVENT_DEPRECATIONS;\n\nif (ROUTER_EVENTS) {\n  ROUTER_EVENT_DEPRECATIONS = {\n    on(name) {\n      this._super(...arguments);\n\n      let hasDidTransition = name === 'didTransition';\n      let hasWillTransition = name === 'willTransition';\n\n      if (hasDidTransition) {\n        deprecate('You attempted to listen to the \"didTransition\" event which is deprecated. Please inject the router service and listen to the \"routeDidChange\" event.', false, {\n          id: 'deprecate-router-events',\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_deprecate-router-events',\n          for: 'ember-source',\n          since: {\n            enabled: '3.11.0'\n          }\n        });\n      }\n\n      if (hasWillTransition) {\n        deprecate('You attempted to listen to the \"willTransition\" event which is deprecated. Please inject the router service and listen to the \"routeWillChange\" event.', false, {\n          id: 'deprecate-router-events',\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_deprecate-router-events',\n          for: 'ember-source',\n          since: {\n            enabled: '3.11.0'\n          }\n        });\n      }\n    }\n\n  };\n  Route.reopen(ROUTER_EVENT_DEPRECATIONS, {\n    _paramsFor(routeName, params) {\n      let transition = this._router._routerMicrolib.activeTransition;\n\n      if (transition !== undefined) {\n        return this.paramsFor(routeName);\n      }\n\n      return params;\n    }\n\n  });\n}\n\nexport default Route;","import { privatize as P } from '@ember/-internals/container';\nimport { computed, get, notifyPropertyChange, set } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\nimport { A as emberA, Evented, Object as EmberObject, typeOf } from '@ember/-internals/runtime';\nimport { assert, deprecate, info } from '@ember/debug';\nimport { APP_CTRL_ROUTER_PROPS, ROUTER_EVENTS } from '@ember/deprecated-features';\nimport EmberError from '@ember/error';\nimport { assign } from '@ember/polyfills';\nimport { cancel, once, run, scheduleOnce } from '@ember/runloop';\nimport { DEBUG } from '@glimmer/env';\nimport EmberLocation from '../location/api';\nimport { calculateCacheKey, extractRouteArgs, getActiveTargetName, resemblesURL } from '../utils';\nimport DSL from './dsl';\nimport { defaultSerialize, getFullQueryParams, hasDefaultSerialize, ROUTE_CONNECTIONS, ROUTER_EVENT_DEPRECATIONS } from './route';\nimport RouterState from './router_state';\nimport Router, { logAbort, STATE_SYMBOL } from 'router_js';\n\nfunction defaultDidTransition(infos) {\n  updatePaths(this);\n\n  this._cancelSlowTransitionTimer();\n\n  this.notifyPropertyChange('url');\n  this.set('currentState', this.targetState); // Put this in the runloop so url will be accurate. Seems\n  // less surprising than didTransition being out of sync.\n\n  once(this, this.trigger, 'didTransition');\n\n  if (DEBUG) {\n    if (this.namespace.LOG_TRANSITIONS) {\n      // eslint-disable-next-line no-console\n      console.log(`Transitioned into '${EmberRouter._routePath(infos)}'`);\n    }\n  }\n}\n\nfunction defaultWillTransition(oldInfos, newInfos, transition) {\n  once(this, this.trigger, 'willTransition', transition);\n\n  if (DEBUG) {\n    if (this.namespace.LOG_TRANSITIONS) {\n      // eslint-disable-next-line no-console\n      console.log(`Preparing to transition from '${EmberRouter._routePath(oldInfos)}' to '${EmberRouter._routePath(newInfos)}'`);\n    }\n  }\n}\n\nlet freezeRouteInfo;\n\nif (DEBUG) {\n  freezeRouteInfo = transition => {\n    if (transition.from !== null && !Object.isFrozen(transition.from)) {\n      Object.freeze(transition.from);\n    }\n\n    if (transition.to !== null && !Object.isFrozen(transition.to)) {\n      Object.freeze(transition.to);\n    }\n  };\n}\n\nfunction K() {\n  return this;\n}\n\nconst {\n  slice\n} = Array.prototype;\n/**\n  The `EmberRouter` class manages the application state and URLs. Refer to\n  the [routing guide](https://guides.emberjs.com/release/routing/) for documentation.\n\n  @class EmberRouter\n  @extends EmberObject\n  @uses Evented\n  @public\n*/\n\nclass EmberRouter extends EmberObject {\n  constructor(owner) {\n    super(...arguments);\n    this._didSetupRouter = false;\n    this._initialTransitionStarted = false;\n    this.currentURL = null;\n    this.currentRouteName = null;\n    this.currentPath = null;\n    this.currentRoute = null;\n    this._qpCache = Object.create(null);\n    this._qpUpdates = new Set();\n    this._queuedQPChanges = {};\n    this._toplevelView = null;\n    this._handledErrors = new Set();\n    this._engineInstances = Object.create(null);\n    this._engineInfoByRoute = Object.create(null);\n    this.currentState = null;\n    this.targetState = null;\n\n    this._resetQueuedQueryParameterChanges();\n\n    this.namespace = owner.lookup('application:main');\n    let bucketCache = owner.lookup(P`-bucket-cache:main`);\n    assert('BUG: BucketCache should always be present', bucketCache !== undefined);\n    this._bucketCache = bucketCache;\n    let routerService = owner.lookup('service:router');\n    assert('BUG: RouterService should always be present', routerService !== undefined);\n    this._routerService = routerService;\n  }\n\n  _initRouterJs() {\n    let location = get(this, 'location');\n    let router = this;\n    let owner = getOwner(this);\n    let seen = Object.create(null);\n\n    class PrivateRouter extends Router {\n      getRoute(name) {\n        let routeName = name;\n        let routeOwner = owner;\n        let engineInfo = router._engineInfoByRoute[routeName];\n\n        if (engineInfo) {\n          let engineInstance = router._getEngineInstance(engineInfo);\n\n          routeOwner = engineInstance;\n          routeName = engineInfo.localFullName;\n        }\n\n        let fullRouteName = `route:${routeName}`;\n        let route = routeOwner.lookup(fullRouteName);\n\n        if (seen[name]) {\n          return route;\n        }\n\n        seen[name] = true;\n\n        if (!route) {\n          let DefaultRoute = routeOwner.factoryFor('route:basic').class;\n          routeOwner.register(fullRouteName, DefaultRoute.extend());\n          route = routeOwner.lookup(fullRouteName);\n\n          if (DEBUG) {\n            if (router.namespace.LOG_ACTIVE_GENERATION) {\n              info(`generated -> ${fullRouteName}`, {\n                fullName: fullRouteName\n              });\n            }\n          }\n        }\n\n        route._setRouteName(routeName);\n\n        if (engineInfo && !hasDefaultSerialize(route)) {\n          throw new Error('Defining a custom serialize method on an Engine route is not supported.');\n        }\n\n        return route;\n      }\n\n      getSerializer(name) {\n        let engineInfo = router._engineInfoByRoute[name]; // If this is not an Engine route, we fall back to the handler for serialization\n\n        if (!engineInfo) {\n          return;\n        }\n\n        return engineInfo.serializeMethod || defaultSerialize;\n      }\n\n      updateURL(path) {\n        once(() => {\n          location.setURL(path);\n          set(router, 'currentURL', path);\n        });\n      }\n\n      didTransition(infos) {\n        if (ROUTER_EVENTS) {\n          if (router.didTransition !== defaultDidTransition) {\n            deprecate('You attempted to override the \"didTransition\" method which is deprecated. Please inject the router service and listen to the \"routeDidChange\" event.', false, {\n              id: 'deprecate-router-events',\n              until: '4.0.0',\n              url: 'https://deprecations.emberjs.com/v3.x#toc_deprecate-router-events',\n              for: 'ember-source',\n              since: {\n                enabled: '3.11.0'\n              }\n            });\n          }\n        }\n\n        router.didTransition(infos);\n      }\n\n      willTransition(oldInfos, newInfos, transition) {\n        if (ROUTER_EVENTS) {\n          if (router.willTransition !== defaultWillTransition) {\n            deprecate('You attempted to override the \"willTransition\" method which is deprecated. Please inject the router service and listen to the \"routeWillChange\" event.', false, {\n              id: 'deprecate-router-events',\n              until: '4.0.0',\n              url: 'https://deprecations.emberjs.com/v3.x#toc_deprecate-router-events',\n              for: 'ember-source',\n              since: {\n                enabled: '3.11.0'\n              }\n            });\n          }\n        }\n\n        router.willTransition(oldInfos, newInfos, transition);\n      }\n\n      triggerEvent(routeInfos, ignoreFailure, name, args) {\n        return triggerEvent.bind(router)(routeInfos, ignoreFailure, name, args);\n      }\n\n      routeWillChange(transition) {\n        router.trigger('routeWillChange', transition);\n\n        if (DEBUG) {\n          freezeRouteInfo(transition);\n        }\n\n        router._routerService.trigger('routeWillChange', transition); // in case of intermediate transition we update the current route\n        // to make router.currentRoute.name consistent with router.currentRouteName\n        // see https://github.com/emberjs/ember.js/issues/19449\n\n\n        if (transition.isIntermediate) {\n          router.set('currentRoute', transition.to);\n        }\n      }\n\n      routeDidChange(transition) {\n        router.set('currentRoute', transition.to);\n        once(() => {\n          router.trigger('routeDidChange', transition);\n\n          if (DEBUG) {\n            freezeRouteInfo(transition);\n          }\n\n          router._routerService.trigger('routeDidChange', transition);\n        });\n      }\n\n      transitionDidError(error, transition) {\n        if (error.wasAborted || transition.isAborted) {\n          // If the error was a transition erorr or the transition aborted\n          // log the abort.\n          return logAbort(transition);\n        } else {\n          // Otherwise trigger the \"error\" event to attempt an intermediate\n          // transition into an error substate\n          transition.trigger(false, 'error', error.error, transition, error.route);\n\n          if (router._isErrorHandled(error.error)) {\n            // If we handled the error with a substate just roll the state back on\n            // the transition and send the \"routeDidChange\" event for landing on\n            // the error substate and return the error.\n            transition.rollback();\n            this.routeDidChange(transition);\n            return error.error;\n          } else {\n            // If it was not handled, abort the transition completely and return\n            // the error.\n            transition.abort();\n            return error.error;\n          }\n        }\n      }\n\n      replaceURL(url) {\n        if (location.replaceURL) {\n          let doReplaceURL = () => {\n            location.replaceURL(url);\n            set(router, 'currentURL', url);\n          };\n\n          once(doReplaceURL);\n        } else {\n          this.updateURL(url);\n        }\n      }\n\n    }\n\n    let routerMicrolib = this._routerMicrolib = new PrivateRouter();\n    let dslCallbacks = this.constructor.dslCallbacks || [K];\n\n    let dsl = this._buildDSL();\n\n    dsl.route('application', {\n      path: '/',\n      resetNamespace: true,\n      overrideNameAssertion: true\n    }, function () {\n      for (let i = 0; i < dslCallbacks.length; i++) {\n        dslCallbacks[i].call(this);\n      }\n    });\n\n    if (DEBUG) {\n      if (this.namespace.LOG_TRANSITIONS_INTERNAL) {\n        routerMicrolib.log = console.log.bind(console); // eslint-disable-line no-console\n      }\n    }\n\n    routerMicrolib.map(dsl.generate());\n  }\n\n  _buildDSL() {\n    let enableLoadingSubstates = this._hasModuleBasedResolver();\n\n    let router = this;\n    let owner = getOwner(this);\n    let options = {\n      enableLoadingSubstates,\n\n      resolveRouteMap(name) {\n        return owner.factoryFor(`route-map:${name}`);\n      },\n\n      addRouteForEngine(name, engineInfo) {\n        if (!router._engineInfoByRoute[name]) {\n          router._engineInfoByRoute[name] = engineInfo;\n        }\n      }\n\n    };\n    return new DSL(null, options);\n  }\n  /*\n    Resets all pending query parameter changes.\n    Called after transitioning to a new route\n    based on query parameter changes.\n  */\n\n\n  _resetQueuedQueryParameterChanges() {\n    this._queuedQPChanges = {};\n  }\n\n  _hasModuleBasedResolver() {\n    let owner = getOwner(this);\n    let resolver = get(owner, 'application.__registry__.resolver.moduleBasedResolver');\n    return Boolean(resolver);\n  }\n  /**\n    Initializes the current router instance and sets up the change handling\n    event listeners used by the instances `location` implementation.\n       A property named `initialURL` will be used to determine the initial URL.\n    If no value is found `/` will be used.\n       @method startRouting\n    @private\n  */\n\n\n  startRouting() {\n    if (this.setupRouter()) {\n      let initialURL = get(this, 'initialURL');\n\n      if (initialURL === undefined) {\n        initialURL = get(this, 'location').getURL();\n      }\n\n      let initialTransition = this.handleURL(initialURL);\n\n      if (initialTransition && initialTransition.error) {\n        throw initialTransition.error;\n      }\n    }\n  }\n\n  setupRouter() {\n    if (this._didSetupRouter) {\n      return false;\n    }\n\n    this._didSetupRouter = true;\n\n    this._setupLocation();\n\n    let location = get(this, 'location'); // Allow the Location class to cancel the router setup while it refreshes\n    // the page\n\n    if (get(location, 'cancelRouterSetup')) {\n      return false;\n    }\n\n    this._initRouterJs();\n\n    location.onUpdateURL(url => {\n      this.handleURL(url);\n    });\n    return true;\n  }\n\n  _setOutlets() {\n    // This is triggered async during Route#willDestroy.\n    // If the router is also being destroyed we do not want to\n    // to create another this._toplevelView (and leak the renderer)\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    let routeInfos = this._routerMicrolib.currentRouteInfos;\n\n    if (!routeInfos) {\n      return;\n    }\n\n    let defaultParentState;\n    let liveRoutes = null;\n\n    for (let i = 0; i < routeInfos.length; i++) {\n      let route = routeInfos[i].route;\n      let connections = ROUTE_CONNECTIONS.get(route);\n      let ownState;\n\n      if (connections.length === 0) {\n        ownState = representEmptyRoute(liveRoutes, defaultParentState, route);\n      } else {\n        for (let j = 0; j < connections.length; j++) {\n          let appended = appendLiveRoute(liveRoutes, defaultParentState, connections[j]);\n          liveRoutes = appended.liveRoutes;\n          let {\n            name,\n            outlet\n          } = appended.ownState.render;\n\n          if (name === route.routeName || outlet === 'main') {\n            ownState = appended.ownState;\n          }\n        }\n      }\n\n      defaultParentState = ownState;\n    } // when a transitionTo happens after the validation phase\n    // during the initial transition _setOutlets is called\n    // when no routes are active. However, it will get called\n    // again with the correct values during the next turn of\n    // the runloop\n\n\n    if (!liveRoutes) {\n      return;\n    }\n\n    if (!this._toplevelView) {\n      let owner = getOwner(this);\n      let OutletView = owner.factoryFor('view:-outlet');\n      this._toplevelView = OutletView.create();\n\n      this._toplevelView.setOutletState(liveRoutes);\n\n      let instance = owner.lookup('-application-instance:main');\n\n      if (instance) {\n        instance.didCreateRootView(this._toplevelView);\n      }\n    } else {\n      this._toplevelView.setOutletState(liveRoutes);\n    }\n  }\n\n  handleURL(url) {\n    // Until we have an ember-idiomatic way of accessing #hashes, we need to\n    // remove it because router.js doesn't know how to handle it.\n    let _url = url.split(/#(.+)?/)[0];\n    return this._doURLTransition('handleURL', _url);\n  }\n\n  _doURLTransition(routerJsMethod, url) {\n    this._initialTransitionStarted = true;\n\n    let transition = this._routerMicrolib[routerJsMethod](url || '/');\n\n    didBeginTransition(transition, this);\n    return transition;\n  }\n  /**\n    Transition the application into another route. The route may\n    be either a single route or route path:\n       See [transitionTo](/ember/release/classes/Route/methods/transitionTo?anchor=transitionTo) for more info.\n       @method transitionTo\n    @param {String} name the name of the route or a URL\n    @param {...Object} models the model(s) or identifier(s) to be used while\n      transitioning to the route.\n    @param {Object} [options] optional hash with a queryParams property\n      containing a mapping of query parameters\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @public\n  */\n\n\n  transitionTo(...args) {\n    if (resemblesURL(args[0])) {\n      assert(`A transition was attempted from '${this.currentRouteName}' to '${args[0]}' but the application instance has already been destroyed.`, !this.isDestroying && !this.isDestroyed);\n      return this._doURLTransition('transitionTo', args[0]);\n    }\n\n    let {\n      routeName,\n      models,\n      queryParams\n    } = extractRouteArgs(args);\n    assert(`A transition was attempted from '${this.currentRouteName}' to '${routeName}' but the application instance has already been destroyed.`, !this.isDestroying && !this.isDestroyed);\n    return this._doTransition(routeName, models, queryParams);\n  }\n\n  intermediateTransitionTo(name, ...args) {\n    this._routerMicrolib.intermediateTransitionTo(name, ...args);\n\n    updatePaths(this);\n\n    if (DEBUG) {\n      let infos = this._routerMicrolib.currentRouteInfos;\n\n      if (this.namespace.LOG_TRANSITIONS) {\n        // eslint-disable-next-line no-console\n        console.log(`Intermediate-transitioned into '${EmberRouter._routePath(infos)}'`);\n      }\n    }\n  }\n\n  replaceWith(...args) {\n    return this.transitionTo(...args).method('replace');\n  }\n\n  generate(name, ...args) {\n    let url = this._routerMicrolib.generate(name, ...args);\n\n    return this.location.formatURL(url);\n  }\n  /**\n    Determines if the supplied route is currently active.\n       @method isActive\n    @param routeName\n    @return {Boolean}\n    @private\n  */\n\n\n  isActive(routeName) {\n    return this._routerMicrolib.isActive(routeName);\n  }\n  /**\n    An alternative form of `isActive` that doesn't require\n    manual concatenation of the arguments into a single\n    array.\n       @method isActiveIntent\n    @param routeName\n    @param models\n    @param queryParams\n    @return {Boolean}\n    @private\n    @since 1.7.0\n  */\n\n\n  isActiveIntent(routeName, models, queryParams) {\n    return this.currentState.isActiveIntent(routeName, models, queryParams);\n  }\n\n  send(name, ...args) {\n    /*name, context*/\n    this._routerMicrolib.trigger(name, ...args);\n  }\n  /**\n    Does this router instance have the given route.\n       @method hasRoute\n    @return {Boolean}\n    @private\n  */\n\n\n  hasRoute(route) {\n    return this._routerMicrolib.hasRoute(route);\n  }\n  /**\n    Resets the state of the router by clearing the current route\n    handlers and deactivating them.\n       @private\n    @method reset\n   */\n\n\n  reset() {\n    this._didSetupRouter = false;\n    this._initialTransitionStarted = false;\n\n    if (this._routerMicrolib) {\n      this._routerMicrolib.reset();\n    }\n  }\n\n  willDestroy() {\n    if (this._toplevelView) {\n      this._toplevelView.destroy();\n\n      this._toplevelView = null;\n    }\n\n    super.willDestroy();\n    this.reset();\n    let instances = this._engineInstances;\n\n    for (let name in instances) {\n      for (let id in instances[name]) {\n        run(instances[name][id], 'destroy');\n      }\n    }\n  }\n  /*\n    Called when an active route's query parameter has changed.\n    These changes are batched into a runloop run and trigger\n    a single transition.\n  */\n\n\n  _activeQPChanged(queryParameterName, newValue) {\n    this._queuedQPChanges[queryParameterName] = newValue;\n    once(this, this._fireQueryParamTransition);\n  }\n\n  _updatingQPChanged(queryParameterName) {\n    this._qpUpdates.add(queryParameterName);\n  }\n  /*\n    Triggers a transition to a route based on query parameter changes.\n    This is called once per runloop, to batch changes.\n       e.g.\n       if these methods are called in succession:\n    this._activeQPChanged('foo', '10');\n      // results in _queuedQPChanges = { foo: '10' }\n    this._activeQPChanged('bar', false);\n      // results in _queuedQPChanges = { foo: '10', bar: false }\n       _queuedQPChanges will represent both of these changes\n    and the transition using `transitionTo` will be triggered\n    once.\n  */\n\n\n  _fireQueryParamTransition() {\n    this.transitionTo({\n      queryParams: this._queuedQPChanges\n    });\n\n    this._resetQueuedQueryParameterChanges();\n  }\n\n  _setupLocation() {\n    let location = this.location;\n    let rootURL = this.rootURL;\n    let owner = getOwner(this);\n\n    if ('string' === typeof location) {\n      let resolvedLocation = owner.lookup(`location:${location}`);\n\n      if (resolvedLocation !== undefined) {\n        location = set(this, 'location', resolvedLocation);\n      } else {\n        // Allow for deprecated registration of custom location API's\n        let options = {\n          implementation: location\n        };\n        location = set(this, 'location', EmberLocation.create(options));\n      }\n    }\n\n    if (location !== null && typeof location === 'object') {\n      if (rootURL) {\n        set(location, 'rootURL', rootURL);\n      } // Allow the location to do any feature detection, such as AutoLocation\n      // detecting history support. This gives it a chance to set its\n      // `cancelRouterSetup` property which aborts routing.\n\n\n      if (typeof location.detect === 'function') {\n        location.detect();\n      } // ensure that initState is called AFTER the rootURL is set on\n      // the location instance\n\n\n      if (typeof location.initState === 'function') {\n        location.initState();\n      }\n    }\n  }\n  /**\n    Serializes the given query params according to their QP meta information.\n       @private\n    @method _serializeQueryParams\n    @param {Arrray<RouteInfo>} routeInfos\n    @param {Object} queryParams\n    @return {Void}\n  */\n\n\n  _serializeQueryParams(routeInfos, queryParams) {\n    forEachQueryParam(this, routeInfos, queryParams, (key, value, qp) => {\n      if (qp) {\n        delete queryParams[key];\n        queryParams[qp.urlKey] = qp.route.serializeQueryParam(value, qp.urlKey, qp.type);\n      } else if (value === undefined) {\n        return; // We don't serialize undefined values\n      } else {\n        queryParams[key] = this._serializeQueryParam(value, typeOf(value));\n      }\n    });\n  }\n  /**\n    Serializes the value of a query parameter based on a type\n       @private\n    @method _serializeQueryParam\n    @param {Object} value\n    @param {String} type\n  */\n\n\n  _serializeQueryParam(value, type) {\n    if (value === null || value === undefined) {\n      return value;\n    } else if (type === 'array') {\n      return JSON.stringify(value);\n    }\n\n    return `${value}`;\n  }\n  /**\n    Deserializes the given query params according to their QP meta information.\n       @private\n    @method _deserializeQueryParams\n    @param {Array<RouteInfo>} routeInfos\n    @param {Object} queryParams\n    @return {Void}\n  */\n\n\n  _deserializeQueryParams(routeInfos, queryParams) {\n    forEachQueryParam(this, routeInfos, queryParams, (key, value, qp) => {\n      // If we don't have QP meta info for a given key, then we do nothing\n      // because all values will be treated as strings\n      if (qp) {\n        delete queryParams[key];\n        queryParams[qp.prop] = qp.route.deserializeQueryParam(value, qp.urlKey, qp.type);\n      }\n    });\n  }\n  /**\n    Deserializes the value of a query parameter based on a default type\n       @private\n    @method _deserializeQueryParam\n    @param {Object} value\n    @param {String} defaultType\n  */\n\n\n  _deserializeQueryParam(value, defaultType) {\n    if (value === null || value === undefined) {\n      return value;\n    } else if (defaultType === 'boolean') {\n      return value === 'true';\n    } else if (defaultType === 'number') {\n      return Number(value).valueOf();\n    } else if (defaultType === 'array') {\n      return emberA(JSON.parse(value));\n    }\n\n    return value;\n  }\n  /**\n    Removes (prunes) any query params with default values from the given QP\n    object. Default values are determined from the QP meta information per key.\n       @private\n    @method _pruneDefaultQueryParamValues\n    @param {Array<RouteInfo>} routeInfos\n    @param {Object} queryParams\n    @return {Void}\n  */\n\n\n  _pruneDefaultQueryParamValues(routeInfos, queryParams) {\n    let qps = this._queryParamsFor(routeInfos);\n\n    for (let key in queryParams) {\n      let qp = qps.map[key];\n\n      if (qp && qp.serializedDefaultValue === queryParams[key]) {\n        delete queryParams[key];\n      }\n    }\n  }\n\n  _doTransition(_targetRouteName, models, _queryParams, _keepDefaultQueryParamValues) {\n    let targetRouteName = _targetRouteName || getActiveTargetName(this._routerMicrolib);\n\n    assert(`The route ${targetRouteName} was not found`, Boolean(targetRouteName) && this._routerMicrolib.hasRoute(targetRouteName));\n    this._initialTransitionStarted = true;\n    let queryParams = {};\n\n    this._processActiveTransitionQueryParams(targetRouteName, models, queryParams, _queryParams);\n\n    assign(queryParams, _queryParams);\n\n    this._prepareQueryParams(targetRouteName, models, queryParams, Boolean(_keepDefaultQueryParamValues));\n\n    let transition = this._routerMicrolib.transitionTo(targetRouteName, ...models, {\n      queryParams\n    });\n\n    didBeginTransition(transition, this);\n    return transition;\n  }\n\n  _processActiveTransitionQueryParams(targetRouteName, models, queryParams, _queryParams) {\n    // merge in any queryParams from the active transition which could include\n    // queryParams from the url on initial load.\n    if (!this._routerMicrolib.activeTransition) {\n      return;\n    }\n\n    let unchangedQPs = {};\n    let qpUpdates = this._qpUpdates;\n    let params = getFullQueryParams(this, this._routerMicrolib.activeTransition[STATE_SYMBOL]);\n\n    for (let key in params) {\n      if (!qpUpdates.has(key)) {\n        unchangedQPs[key] = params[key];\n      }\n    } // We need to fully scope queryParams so that we can create one object\n    // that represents both passed-in queryParams and ones that aren't changed\n    // from the active transition.\n\n\n    this._fullyScopeQueryParams(targetRouteName, models, _queryParams);\n\n    this._fullyScopeQueryParams(targetRouteName, models, unchangedQPs);\n\n    assign(queryParams, unchangedQPs);\n  }\n  /**\n    Prepares the query params for a URL or Transition. Restores any undefined QP\n    keys/values, serializes all values, and then prunes any default values.\n       @private\n    @method _prepareQueryParams\n    @param {String} targetRouteName\n    @param {Array<Object>} models\n    @param {Object} queryParams\n    @param {boolean} keepDefaultQueryParamValues\n    @return {Void}\n  */\n\n\n  _prepareQueryParams(targetRouteName, models, queryParams, _fromRouterService) {\n    let state = calculatePostTransitionState(this, targetRouteName, models);\n\n    this._hydrateUnsuppliedQueryParams(state, queryParams, Boolean(_fromRouterService));\n\n    this._serializeQueryParams(state.routeInfos, queryParams);\n\n    if (!_fromRouterService) {\n      this._pruneDefaultQueryParamValues(state.routeInfos, queryParams);\n    }\n  }\n  /**\n    Returns the meta information for the query params of a given route. This\n    will be overridden to allow support for lazy routes.\n       @private\n    @method _getQPMeta\n    @param {RouteInfo} routeInfo\n    @return {Object}\n  */\n\n\n  _getQPMeta(routeInfo) {\n    let route = routeInfo.route;\n    return route && get(route, '_qp');\n  }\n  /**\n    Returns a merged query params meta object for a given set of routeInfos.\n    Useful for knowing what query params are available for a given route hierarchy.\n       @private\n    @method _queryParamsFor\n    @param {Array<RouteInfo>} routeInfos\n    @return {Object}\n   */\n\n\n  _queryParamsFor(routeInfos) {\n    let routeInfoLength = routeInfos.length;\n    let leafRouteName = routeInfos[routeInfoLength - 1].name;\n    let cached = this._qpCache[leafRouteName];\n\n    if (cached !== undefined) {\n      return cached;\n    }\n\n    let shouldCache = true;\n    let map = {};\n    let qps = [];\n    let qpsByUrlKey = DEBUG ? {} : null;\n    let qpMeta;\n    let qp;\n    let urlKey;\n    let qpOther;\n\n    for (let i = 0; i < routeInfoLength; ++i) {\n      qpMeta = this._getQPMeta(routeInfos[i]);\n\n      if (!qpMeta) {\n        shouldCache = false;\n        continue;\n      } // Loop over each QP to make sure we don't have any collisions by urlKey\n\n\n      for (let i = 0; i < qpMeta.qps.length; i++) {\n        qp = qpMeta.qps[i];\n\n        if (DEBUG) {\n          urlKey = qp.urlKey;\n          qpOther = qpsByUrlKey[urlKey];\n\n          if (qpOther && qpOther.controllerName !== qp.controllerName) {\n            assert(`You're not allowed to have more than one controller property map to the same query param key, but both \\`${qpOther.scopedPropertyName}\\` and \\`${qp.scopedPropertyName}\\` map to \\`${urlKey}\\`. You can fix this by mapping one of the controller properties to a different query param key via the \\`as\\` config option, e.g. \\`${qpOther.prop}: { as: 'other-${qpOther.prop}' }\\``, false);\n          }\n\n          qpsByUrlKey[urlKey] = qp;\n        }\n\n        qps.push(qp);\n      }\n\n      assign(map, qpMeta.map);\n    }\n\n    let finalQPMeta = {\n      qps,\n      map\n    };\n\n    if (shouldCache) {\n      this._qpCache[leafRouteName] = finalQPMeta;\n    }\n\n    return finalQPMeta;\n  }\n  /**\n    Maps all query param keys to their fully scoped property name of the form\n    `controllerName:propName`.\n       @private\n    @method _fullyScopeQueryParams\n    @param {String} leafRouteName\n    @param {Array<Object>} contexts\n    @param {Object} queryParams\n    @return {Void}\n  */\n\n\n  _fullyScopeQueryParams(leafRouteName, contexts, queryParams) {\n    let state = calculatePostTransitionState(this, leafRouteName, contexts);\n    let routeInfos = state.routeInfos;\n    let qpMeta;\n\n    for (let i = 0, len = routeInfos.length; i < len; ++i) {\n      qpMeta = this._getQPMeta(routeInfos[i]);\n\n      if (!qpMeta) {\n        continue;\n      }\n\n      let qp;\n      let presentProp;\n\n      for (let j = 0, qpLen = qpMeta.qps.length; j < qpLen; ++j) {\n        qp = qpMeta.qps[j];\n        presentProp = qp.prop in queryParams && qp.prop || qp.scopedPropertyName in queryParams && qp.scopedPropertyName || qp.urlKey in queryParams && qp.urlKey;\n\n        if (presentProp) {\n          if (presentProp !== qp.scopedPropertyName) {\n            queryParams[qp.scopedPropertyName] = queryParams[presentProp];\n            delete queryParams[presentProp];\n          }\n        }\n      }\n    }\n  }\n  /**\n    Hydrates (adds/restores) any query params that have pre-existing values into\n    the given queryParams hash. This is what allows query params to be \"sticky\"\n    and restore their last known values for their scope.\n       @private\n    @method _hydrateUnsuppliedQueryParams\n    @param {TransitionState} state\n    @param {Object} queryParams\n    @return {Void}\n  */\n\n\n  _hydrateUnsuppliedQueryParams(state, queryParams, _fromRouterService) {\n    let routeInfos = state.routeInfos;\n    let appCache = this._bucketCache;\n    let qpMeta;\n    let qp;\n    let presentProp;\n\n    for (let i = 0; i < routeInfos.length; ++i) {\n      qpMeta = this._getQPMeta(routeInfos[i]);\n\n      if (!qpMeta) {\n        continue;\n      }\n\n      for (let j = 0, qpLen = qpMeta.qps.length; j < qpLen; ++j) {\n        qp = qpMeta.qps[j];\n        presentProp = qp.prop in queryParams && qp.prop || qp.scopedPropertyName in queryParams && qp.scopedPropertyName || qp.urlKey in queryParams && qp.urlKey;\n        assert(`You passed the \\`${presentProp}\\` query parameter during a transition into ${qp.route.routeName}, please update to ${qp.urlKey}`, function () {\n          if (qp.urlKey === presentProp || qp.scopedPropertyName === presentProp) {\n            return true;\n          }\n\n          if (_fromRouterService && presentProp !== false && qp.urlKey !== qp.prop) {\n            // assumptions (mainly from current transitionTo_test):\n            // - this is only supposed to be run when there is an alias to a query param and the alias is used to set the param\n            // - when there is no alias: qp.urlKey == qp.prop\n            return false;\n          }\n\n          return true;\n        }());\n\n        if (presentProp) {\n          if (presentProp !== qp.scopedPropertyName) {\n            queryParams[qp.scopedPropertyName] = queryParams[presentProp];\n            delete queryParams[presentProp];\n          }\n        } else {\n          let cacheKey = calculateCacheKey(qp.route.fullRouteName, qp.parts, state.params);\n          assert('ROUTER BUG: expected appCache to be defined. This is an internal bug, please open an issue on Github if you see this message!', appCache);\n          queryParams[qp.scopedPropertyName] = appCache.lookup(cacheKey, qp.prop, qp.defaultValue);\n        }\n      }\n    }\n  }\n\n  _scheduleLoadingEvent(transition, originRoute) {\n    this._cancelSlowTransitionTimer();\n\n    this._slowTransitionTimer = scheduleOnce('routerTransitions', this, '_handleSlowTransition', transition, originRoute);\n  }\n\n  _handleSlowTransition(transition, originRoute) {\n    if (!this._routerMicrolib.activeTransition) {\n      // Don't fire an event if we've since moved on from\n      // the transition that put us in a loading state.\n      return;\n    }\n\n    let targetState = new RouterState(this, this._routerMicrolib, this._routerMicrolib.activeTransition[STATE_SYMBOL]);\n    this.set('targetState', targetState);\n    transition.trigger(true, 'loading', transition, originRoute);\n  }\n\n  _cancelSlowTransitionTimer() {\n    if (this._slowTransitionTimer) {\n      cancel(this._slowTransitionTimer);\n    }\n\n    this._slowTransitionTimer = null;\n  } // These three helper functions are used to ensure errors aren't\n  // re-raised if they're handled in a route's error action.\n\n\n  _markErrorAsHandled(error) {\n    this._handledErrors.add(error);\n  }\n\n  _isErrorHandled(error) {\n    return this._handledErrors.has(error);\n  }\n\n  _clearHandledError(error) {\n    this._handledErrors.delete(error);\n  }\n\n  _getEngineInstance({\n    name,\n    instanceId,\n    mountPoint\n  }) {\n    let engineInstances = this._engineInstances;\n\n    if (!engineInstances[name]) {\n      engineInstances[name] = Object.create(null);\n    }\n\n    let engineInstance = engineInstances[name][instanceId];\n\n    if (!engineInstance) {\n      let owner = getOwner(this);\n      assert(`You attempted to mount the engine '${name}' in your router map, but the engine can not be found.`, owner.hasRegistration(`engine:${name}`));\n      engineInstance = owner.buildChildEngineInstance(name, {\n        routable: true,\n        mountPoint\n      });\n      engineInstance.boot();\n      engineInstances[name][instanceId] = engineInstance;\n    }\n\n    return engineInstance;\n  }\n\n}\n/*\n  Helper function for iterating over routes in a set of routeInfos that are\n  at or above the given origin route. Example: if `originRoute` === 'foo.bar'\n  and the routeInfos given were for 'foo.bar.baz', then the given callback\n  will be invoked with the routes for 'foo.bar', 'foo', and 'application'\n  individually.\n\n  If the callback returns anything other than `true`, then iteration will stop.\n\n  @private\n  @param {Route} originRoute\n  @param {Array<RouteInfo>} routeInfos\n  @param {Function} callback\n  @return {Void}\n */\n\n\nfunction forEachRouteAbove(routeInfos, callback) {\n  for (let i = routeInfos.length - 1; i >= 0; --i) {\n    let routeInfo = routeInfos[i];\n    let route = routeInfo.route; // routeInfo.handler being `undefined` generally means either:\n    //\n    // 1. an error occurred during creation of the route in question\n    // 2. the route is across an async boundary (e.g. within an engine)\n    //\n    // In both of these cases, we cannot invoke the callback on that specific\n    // route, because it just doesn't exist...\n\n    if (route === undefined) {\n      continue;\n    }\n\n    if (callback(route, routeInfo) !== true) {\n      return;\n    }\n  }\n} // These get invoked when an action bubbles above ApplicationRoute\n// and are not meant to be overridable.\n\n\nlet defaultActionHandlers = {\n  willResolveModel(_routeInfos, transition, originRoute) {\n    this._scheduleLoadingEvent(transition, originRoute);\n  },\n\n  // Attempt to find an appropriate error route or substate to enter.\n  error(routeInfos, error, transition) {\n    let router = this;\n    let routeInfoWithError = routeInfos[routeInfos.length - 1];\n    forEachRouteAbove(routeInfos, (route, routeInfo) => {\n      // We don't check the leaf most routeInfo since that would\n      // technically be below where we're at in the route hierarchy.\n      if (routeInfo !== routeInfoWithError) {\n        // Check for the existence of an 'error' route.\n        let errorRouteName = findRouteStateName(route, 'error');\n\n        if (errorRouteName) {\n          router._markErrorAsHandled(error);\n\n          router.intermediateTransitionTo(errorRouteName, error);\n          return false;\n        }\n      } // Check for an 'error' substate route\n\n\n      let errorSubstateName = findRouteSubstateName(route, 'error');\n\n      if (errorSubstateName) {\n        router._markErrorAsHandled(error);\n\n        router.intermediateTransitionTo(errorSubstateName, error);\n        return false;\n      }\n\n      return true;\n    });\n    logError(error, `Error while processing route: ${transition.targetName}`);\n  },\n\n  // Attempt to find an appropriate loading route or substate to enter.\n  loading(routeInfos, transition) {\n    let router = this;\n    let routeInfoWithSlowLoading = routeInfos[routeInfos.length - 1];\n    forEachRouteAbove(routeInfos, (route, routeInfo) => {\n      // We don't check the leaf most routeInfos since that would\n      // technically be below where we're at in the route hierarchy.\n      if (routeInfo !== routeInfoWithSlowLoading) {\n        // Check for the existence of a 'loading' route.\n        let loadingRouteName = findRouteStateName(route, 'loading');\n\n        if (loadingRouteName) {\n          router.intermediateTransitionTo(loadingRouteName);\n          return false;\n        }\n      } // Check for loading substate\n\n\n      let loadingSubstateName = findRouteSubstateName(route, 'loading');\n\n      if (loadingSubstateName) {\n        router.intermediateTransitionTo(loadingSubstateName);\n        return false;\n      } // Don't bubble above pivot route.\n\n\n      return transition.pivotHandler !== route;\n    });\n  }\n\n};\n\nfunction logError(_error, initialMessage) {\n  let errorArgs = [];\n  let error;\n\n  if (_error && typeof _error === 'object' && typeof _error.errorThrown === 'object') {\n    error = _error.errorThrown;\n  } else {\n    error = _error;\n  }\n\n  if (initialMessage) {\n    errorArgs.push(initialMessage);\n  }\n\n  if (error) {\n    if (error.message) {\n      errorArgs.push(error.message);\n    }\n\n    if (error.stack) {\n      errorArgs.push(error.stack);\n    }\n\n    if (typeof error === 'string') {\n      errorArgs.push(error);\n    }\n  }\n\n  console.error(...errorArgs); //eslint-disable-line no-console\n}\n/**\n  Finds the name of the substate route if it exists for the given route. A\n  substate route is of the form `route_state`, such as `foo_loading`.\n\n  @private\n  @param {Route} route\n  @param {String} state\n  @return {String}\n*/\n\n\nfunction findRouteSubstateName(route, state) {\n  let owner = getOwner(route);\n  let {\n    routeName,\n    fullRouteName,\n    _router: router\n  } = route;\n  let substateName = `${routeName}_${state}`;\n  let substateNameFull = `${fullRouteName}_${state}`;\n  return routeHasBeenDefined(owner, router, substateName, substateNameFull) ? substateNameFull : '';\n}\n/**\n  Finds the name of the state route if it exists for the given route. A state\n  route is of the form `route.state`, such as `foo.loading`. Properly Handles\n  `application` named routes.\n\n  @private\n  @param {Route} route\n  @param {String} state\n  @return {String}\n*/\n\n\nfunction findRouteStateName(route, state) {\n  let owner = getOwner(route);\n  let {\n    routeName,\n    fullRouteName,\n    _router: router\n  } = route;\n  let stateName = routeName === 'application' ? state : `${routeName}.${state}`;\n  let stateNameFull = fullRouteName === 'application' ? state : `${fullRouteName}.${state}`;\n  return routeHasBeenDefined(owner, router, stateName, stateNameFull) ? stateNameFull : '';\n}\n/**\n  Determines whether or not a route has been defined by checking that the route\n  is in the Router's map and the owner has a registration for that route.\n\n  @private\n  @param {Owner} owner\n  @param {Router} router\n  @param {String} localName\n  @param {String} fullName\n  @return {Boolean}\n*/\n\n\nfunction routeHasBeenDefined(owner, router, localName, fullName) {\n  let routerHasRoute = router.hasRoute(fullName);\n  let ownerHasRoute = owner.hasRegistration(`template:${localName}`) || owner.hasRegistration(`route:${localName}`);\n  return routerHasRoute && ownerHasRoute;\n}\n\nexport function triggerEvent(routeInfos, ignoreFailure, name, args) {\n  if (!routeInfos) {\n    if (ignoreFailure) {\n      return;\n    }\n\n    throw new EmberError(`Can't trigger action '${name}' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call \\`.send()\\` on the \\`Transition\\` object passed to the \\`model/beforeModel/afterModel\\` hooks.`);\n  }\n\n  let eventWasHandled = false;\n  let routeInfo, handler, actionHandler;\n\n  for (let i = routeInfos.length - 1; i >= 0; i--) {\n    routeInfo = routeInfos[i];\n    handler = routeInfo.route;\n    actionHandler = handler && handler.actions && handler.actions[name];\n\n    if (actionHandler) {\n      if (actionHandler.apply(handler, args) === true) {\n        eventWasHandled = true;\n      } else {\n        // Should only hit here if a non-bubbling error action is triggered on a route.\n        if (name === 'error') {\n          handler._router._markErrorAsHandled(args[0]);\n        }\n\n        return;\n      }\n    }\n  }\n\n  let defaultHandler = defaultActionHandlers[name];\n\n  if (defaultHandler) {\n    defaultHandler.apply(this, [routeInfos, ...args]);\n    return;\n  }\n\n  if (!eventWasHandled && !ignoreFailure) {\n    throw new EmberError(`Nothing handled the action '${name}'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.`);\n  }\n}\n\nfunction calculatePostTransitionState(emberRouter, leafRouteName, contexts) {\n  let state = emberRouter._routerMicrolib.applyIntent(leafRouteName, contexts);\n\n  let {\n    routeInfos,\n    params\n  } = state;\n\n  for (let i = 0; i < routeInfos.length; ++i) {\n    let routeInfo = routeInfos[i]; // If the routeInfo is not resolved, we serialize the context into params\n\n    if (!routeInfo.isResolved) {\n      params[routeInfo.name] = routeInfo.serialize(routeInfo.context);\n    } else {\n      params[routeInfo.name] = routeInfo.params;\n    }\n  }\n\n  return state;\n}\n\nfunction updatePaths(router) {\n  let infos = router._routerMicrolib.currentRouteInfos;\n\n  if (infos.length === 0) {\n    return;\n  }\n\n  let path = EmberRouter._routePath(infos);\n\n  let currentRouteName = infos[infos.length - 1].name;\n  let currentURL = router.get('location').getURL();\n  set(router, 'currentPath', path);\n  set(router, 'currentRouteName', currentRouteName);\n  set(router, 'currentURL', currentURL);\n  let appController = getOwner(router).lookup('controller:application');\n\n  if (!appController) {\n    // appController might not exist when top-level loading/error\n    // substates have been entered since ApplicationRoute hasn't\n    // actually been entered at that point.\n    return;\n  }\n\n  if (APP_CTRL_ROUTER_PROPS) {\n    if (!('currentPath' in appController)) {\n      Object.defineProperty(appController, 'currentPath', {\n        get() {\n          deprecate('Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.', false, {\n            id: 'application-controller.router-properties',\n            until: '4.0.0',\n            url: 'https://deprecations.emberjs.com/v3.x#toc_application-controller-router-properties',\n            for: 'ember-source',\n            since: {\n              enabled: '3.10.0-beta.1'\n            }\n          });\n          return get(router, 'currentPath');\n        }\n\n      });\n    }\n\n    notifyPropertyChange(appController, 'currentPath');\n\n    if (!('currentRouteName' in appController)) {\n      Object.defineProperty(appController, 'currentRouteName', {\n        get() {\n          deprecate('Accessing `currentRouteName` on `controller:application` is deprecated, use the `currentRouteName` property on `service:router` instead.', false, {\n            id: 'application-controller.router-properties',\n            until: '4.0.0',\n            url: 'https://deprecations.emberjs.com/v3.x#toc_application-controller-router-properties',\n            for: 'ember-source',\n            since: {\n              enabled: '3.10.0-beta.1'\n            }\n          });\n          return get(router, 'currentRouteName');\n        }\n\n      });\n    }\n\n    notifyPropertyChange(appController, 'currentRouteName');\n  }\n}\n\nEmberRouter.reopenClass({\n  /**\n    The `Router.map` function allows you to define mappings from URLs to routes\n    in your application. These mappings are defined within the\n    supplied callback function using `this.route`.\n       The first parameter is the name of the route which is used by default as the\n    path name as well.\n       The second parameter is the optional options hash. Available options are:\n         * `path`: allows you to provide your own path as well as mark dynamic\n        segments.\n      * `resetNamespace`: false by default; when nesting routes, ember will\n        combine the route names to form the fully-qualified route name, which is\n        used with `{{link-to}}` or manually transitioning to routes. Setting\n        `resetNamespace: true` will cause the route not to inherit from its\n        parent route's names. This is handy for preventing extremely long route names.\n        Keep in mind that the actual URL path behavior is still retained.\n       The third parameter is a function, which can be used to nest routes.\n    Nested routes, by default, will have the parent route tree's route name and\n    path prepended to it's own.\n       ```app/router.js\n    Router.map(function(){\n      this.route('post', { path: '/post/:post_id' }, function() {\n        this.route('edit');\n        this.route('comments', { resetNamespace: true }, function() {\n          this.route('new');\n        });\n      });\n    });\n    ```\n       @method map\n    @param callback\n    @public\n  */\n  map(callback) {\n    if (!this.dslCallbacks) {\n      this.dslCallbacks = [];\n      this.reopenClass({\n        dslCallbacks: this.dslCallbacks\n      });\n    }\n\n    this.dslCallbacks.push(callback);\n    return this;\n  },\n\n  _routePath(routeInfos) {\n    let path = []; // We have to handle coalescing resource names that\n    // are prefixed with their parent's names, e.g.\n    // ['foo', 'foo.bar.baz'] => 'foo.bar.baz', not 'foo.foo.bar.baz'\n\n    function intersectionMatches(a1, a2) {\n      for (let i = 0; i < a1.length; ++i) {\n        if (a1[i] !== a2[i]) {\n          return false;\n        }\n      }\n\n      return true;\n    }\n\n    let name, nameParts, oldNameParts;\n\n    for (let i = 1; i < routeInfos.length; i++) {\n      name = routeInfos[i].name;\n      nameParts = name.split('.');\n      oldNameParts = slice.call(path);\n\n      while (oldNameParts.length) {\n        if (intersectionMatches(oldNameParts, nameParts)) {\n          break;\n        }\n\n        oldNameParts.shift();\n      }\n\n      path.push(...nameParts.slice(oldNameParts.length));\n    }\n\n    return path.join('.');\n  }\n\n});\n\nfunction didBeginTransition(transition, router) {\n  let routerState = new RouterState(router, router._routerMicrolib, transition[STATE_SYMBOL]);\n\n  if (!router.currentState) {\n    router.set('currentState', routerState);\n  }\n\n  router.set('targetState', routerState);\n  transition.promise = transition.catch(error => {\n    if (router._isErrorHandled(error)) {\n      router._clearHandledError(error);\n    } else {\n      throw error;\n    }\n  }, 'Transition Error');\n}\n\nfunction forEachQueryParam(router, routeInfos, queryParams, callback) {\n  let qpCache = router._queryParamsFor(routeInfos);\n\n  for (let key in queryParams) {\n    if (!Object.prototype.hasOwnProperty.call(queryParams, key)) {\n      continue;\n    }\n\n    let value = queryParams[key];\n    let qp = qpCache.map[key];\n    callback(key, value, qp);\n  }\n}\n\nfunction findLiveRoute(liveRoutes, name) {\n  if (!liveRoutes) {\n    return;\n  }\n\n  let stack = [liveRoutes];\n\n  while (stack.length > 0) {\n    let test = stack.shift();\n\n    if (test.render.name === name) {\n      return test;\n    }\n\n    let outlets = test.outlets;\n\n    for (let outletName in outlets) {\n      stack.push(outlets[outletName]);\n    }\n  }\n\n  return;\n}\n\nfunction appendLiveRoute(liveRoutes, defaultParentState, renderOptions) {\n  let ownState = {\n    render: renderOptions,\n    outlets: Object.create(null),\n    wasUsed: false\n  };\n  let target;\n\n  if (renderOptions.into) {\n    target = findLiveRoute(liveRoutes, renderOptions.into);\n  } else {\n    target = defaultParentState;\n  }\n\n  if (target) {\n    set(target.outlets, renderOptions.outlet, ownState);\n  } else {\n    liveRoutes = ownState;\n  }\n\n  return {\n    liveRoutes,\n    ownState\n  };\n}\n\nfunction representEmptyRoute(liveRoutes, defaultParentState, {\n  routeName\n}) {\n  // the route didn't render anything\n  let alreadyAppended = findLiveRoute(liveRoutes, routeName);\n\n  if (alreadyAppended) {\n    // But some other route has already rendered our default\n    // template, so that becomes the default target for any\n    // children we may have.\n    return alreadyAppended;\n  } else {\n    // Create an entry to represent our default template name,\n    // just so other routes can target it and inherit its place\n    // in the outlet hierarchy.\n    defaultParentState.outlets.main = {\n      render: {\n        name: routeName,\n        outlet: 'main'\n      },\n      outlets: {}\n    };\n    return defaultParentState;\n  }\n}\n\nEmberRouter.reopen(Evented, {\n  /**\n    Handles updating the paths and notifying any listeners of the URL\n    change.\n       Triggers the router level `didTransition` hook.\n       For example, to notify google analytics when the route changes,\n    you could use this hook.  (Note: requires also including GA scripts, etc.)\n       ```javascript\n    import config from './config/environment';\n    import EmberRouter from '@ember/routing/router';\n    import { inject as service } from '@ember/service';\n       let Router = EmberRouter.extend({\n      location: config.locationType,\n         router: service(),\n         didTransition: function() {\n        this._super(...arguments);\n           ga('send', 'pageview', {\n          page: this.router.currentURL,\n          title: this.router.currentRouteName,\n        });\n      }\n    });\n    ```\n       @method didTransition\n    @public\n    @since 1.2.0\n  */\n  didTransition: defaultDidTransition,\n\n  /**\n    Handles notifying any listeners of an impending URL\n    change.\n       Triggers the router level `willTransition` hook.\n       @method willTransition\n    @public\n    @since 1.11.0\n  */\n  willTransition: defaultWillTransition,\n\n  /**\n   Represents the URL of the root of the application, often '/'. This prefix is\n   assumed on all routes defined on this router.\n      @property rootURL\n   @default '/'\n   @public\n  */\n  rootURL: '/',\n\n  /**\n   The `location` property determines the type of URL's that your\n   application will use.\n      The following location types are currently available:\n      * `history` - use the browser's history API to make the URLs look just like any standard URL\n   * `hash` - use `#` to separate the server part of the URL from the Ember part: `/blog/#/posts/new`\n   * `none` - do not store the Ember URL in the actual browser URL (mainly used for testing)\n   * `auto` - use the best option based on browser capabilities: `history` if possible, then `hash` if possible, otherwise `none`\n      This value is defaulted to `auto` by the `locationType` setting of `/config/environment.js`\n      @property location\n   @default 'hash'\n   @see {Location}\n   @public\n  */\n  location: 'hash',\n\n  /**\n   Represents the current URL.\n      @property url\n   @type {String}\n   @private\n  */\n  url: computed(function () {\n    let location = get(this, 'location');\n\n    if (typeof location === 'string') {\n      return undefined;\n    }\n\n    return location.getURL();\n  })\n});\n\nif (ROUTER_EVENTS) {\n  EmberRouter.reopen(ROUTER_EVENT_DEPRECATIONS);\n}\n\nexport default EmberRouter;","import { assign } from '@ember/polyfills';\nimport { shallowEqual } from '../utils';\nexport default class RouterState {\n  constructor(emberRouter, router, routerJsState) {\n    this.emberRouter = emberRouter;\n    this.router = router;\n    this.routerJsState = routerJsState;\n  }\n\n  isActiveIntent(routeName, models, queryParams) {\n    let state = this.routerJsState;\n\n    if (!this.router.isActiveIntent(routeName, models, undefined, state)) {\n      return false;\n    }\n\n    if (queryParams !== undefined && Object.keys(queryParams).length > 0) {\n      let visibleQueryParams = assign({}, queryParams);\n\n      this.emberRouter._prepareQueryParams(routeName, models, visibleQueryParams);\n\n      return shallowEqual(visibleQueryParams, state.queryParams);\n    }\n\n    return true;\n  }\n\n}","\"use strict\";\n/**\n  A Transition is a thennable (a promise-like object) that represents\n  an attempt to transition to another route. It can be aborted, either\n  explicitly via `abort` or by attempting another transition while a\n  previous one is still underway. An aborted transition can also\n  be `retry()`d later.\n\n  @class Transition\n  @public\n*/\n\n/**\n  The Transition's internal promise. Calling `.then` on this property\n  is that same as calling `.then` on the Transition object itself, but\n  this property is exposed for when you want to pass around a\n  Transition's promise, but not the Transition object itself, since\n  Transition object can be externally `abort`ed, while the promise\n  cannot.\n\n  @property promise\n  @type {Object}\n  @public\n  */\n\n/**\n  Custom state can be stored on a Transition's `data` object.\n  This can be useful for decorating a Transition within an earlier\n  hook and shared with a later hook. Properties set on `data` will\n  be copied to new transitions generated by calling `retry` on this\n  transition.\n\n  @property data\n  @type {Object}\n  @public\n*/\n\n/**\n  A standard promise hook that resolves if the transition\n  succeeds and rejects if it fails/redirects/aborts.\n\n  Forwards to the internal `promise` property which you can\n  use in situations where you want to pass around a thennable,\n  but not the Transition itself.\n\n  @method then\n  @param {Function} onFulfilled\n  @param {Function} onRejected\n  @param {String} label optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n  @public\n*/\n\n/**\n\n  Forwards to the internal `promise` property which you can\n  use in situations where you want to pass around a thennable,\n  but not the Transition itself.\n\n  @method catch\n  @param {Function} onRejection\n  @param {String} label optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n  @public\n*/\n\n/**\n\n  Forwards to the internal `promise` property which you can\n  use in situations where you want to pass around a thennable,\n  but not the Transition itself.\n\n  @method finally\n  @param {Function} callback\n  @param {String} label optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n  @public\n*/\n\n/**\n  Aborts the Transition. Note you can also implicitly abort a transition\n  by initiating another transition while a previous one is underway.\n\n  @method abort\n  @return {Transition} this transition\n  @public\n*/\n\n/**\n\n  Retries a previously-aborted transition (making sure to abort the\n  transition if it's still active). Returns a new transition that\n  represents the new attempt to transition.\n\n  @method retry\n  @return {Transition} new transition\n  @public\n  */\n\n/**\n\n  Sets the URL-changing method to be employed at the end of a\n  successful transition. By default, a new Transition will just\n  use `updateURL`, but passing 'replace' to this method will\n  cause the URL to update using 'replaceWith' instead. Omitting\n  a parameter will disable the URL change, allowing for transitions\n  that don't update the URL at completion (this is also used for\n  handleURL, since the URL has already changed before the\n  transition took place).\n\n  @method method\n  @param {String} method the type of URL-changing method to use\n    at the end of a transition. Accepted values are 'replace',\n    falsy values, or any other non-falsy value (which is\n    interpreted as an updateURL transition).\n\n  @return {Transition} this transition\n  @public\n*/\n\n/**\n\n  Fires an event on the current list of resolved/resolving\n  handlers within this transition. Useful for firing events\n  on route hierarchies that haven't fully been entered yet.\n\n  Note: This method is also aliased as `send`\n\n  @method trigger\n  @param {Boolean} [ignoreFailure=false] a boolean specifying whether unhandled events throw an error\n  @param {String} name the name of the event to fire\n  @public\n*/\n\n/**\n * This property is a `RouteInfo` object that represents\n * where the router is transitioning to. It's important\n * to note that a `RouteInfo` is a linked list and this\n * property represents the leafmost route.\n * @property {null|RouteInfo|RouteInfoWithAttributes} to\n * @public\n */\n\n/**\n * This property is a `RouteInfo` object that represents\n * where transition originated from. It's important\n * to note that a `RouteInfo` is a linked list and this\n * property represents the head node of the list.\n * In the case of an initial render, `from` will be set to\n * `null`.\n * @property {null|RouteInfoWithAttributes} from\n * @public\n */\n\n/**\n  Transitions are aborted and their promises rejected\n  when redirects occur; this method returns a promise\n  that will follow any redirects that occur and fulfill\n  with the value fulfilled by any redirecting transitions\n  that occur.\n\n  @method followRedirects\n  @return {Promise} a promise that fulfills with the same\n    value that the final redirecting transition fulfills with\n  @public\n*/\n\n/**\n  In non-production builds, this function will return the stack that this Transition was\n  created within. In production builds, this function will not be present.\n\n  @method debugCreationStack\n  @return string\n*/\n\n/**\n  In non-production builds, this function will return the stack that this Transition was\n  aborted within (or `undefined` if the Transition has not been aborted yet). In production\n  builds, this function will not be present.\n\n  @method debugAbortStack\n  @return string\n*/\n\n/**\n  In non-production builds, this property references the Transition that _this_ Transition\n  was derived from or `undefined` if this transition did not derive from another. In\n  production builds, this property will not be present.\n\n  @property debugPreviousTransition\n  @type {Transition | undefined}\n*/","import { get } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\nimport { deprecate } from '@ember/debug';\nimport EmberError from '@ember/error';\nimport { assign } from '@ember/polyfills';\nimport { STATE_SYMBOL } from 'router_js';\nconst ALL_PERIODS_REGEX = /\\./g;\nexport function extractRouteArgs(args) {\n  args = args.slice();\n  let possibleQueryParams = args[args.length - 1];\n  let queryParams;\n\n  if (possibleQueryParams && Object.prototype.hasOwnProperty.call(possibleQueryParams, 'queryParams')) {\n    // SAFETY: this cast is safe because we have just checked whether\n    // `possibleQueryParams` -- defined as the last item in args -- both exists\n    // and has the property `queryParams`. If either of these invariants change,\n    // ***this is unsafe and should be changed***.\n    queryParams = args.pop().queryParams;\n  } else {\n    queryParams = {};\n  } // UNSAFE: these are simply assumed as the existing behavior of the system.\n  // However, this could break if upstream refactors change it, and the types\n  // here would not be able to tell us; we would lie to everything downstream.\n\n\n  let routeName = args.shift();\n  let models = args;\n  return {\n    routeName,\n    models,\n    queryParams\n  };\n}\nexport function getActiveTargetName(router) {\n  let routeInfos = router.activeTransition ? router.activeTransition[STATE_SYMBOL].routeInfos : router.state.routeInfos;\n  return routeInfos[routeInfos.length - 1].name;\n}\nexport function stashParamNames(router, routeInfos) {\n  if (routeInfos['_namesStashed']) {\n    return;\n  } // This helper exists because router.js/route-recognizer.js awkwardly\n  // keeps separate a routeInfo's list of parameter names depending\n  // on whether a URL transition or named transition is happening.\n  // Hopefully we can remove this in the future.\n\n\n  let targetRouteName = routeInfos[routeInfos.length - 1].name;\n\n  let recogHandlers = router._routerMicrolib.recognizer.handlersFor(targetRouteName);\n\n  let dynamicParent;\n\n  for (let i = 0; i < routeInfos.length; ++i) {\n    let routeInfo = routeInfos[i];\n    let names = recogHandlers[i].names;\n\n    if (names.length) {\n      dynamicParent = routeInfo;\n    }\n\n    routeInfo['_names'] = names;\n    let route = routeInfo.route;\n\n    route._stashNames(routeInfo, dynamicParent);\n  }\n\n  routeInfos['_namesStashed'] = true;\n}\n\nfunction _calculateCacheValuePrefix(prefix, part) {\n  // calculates the dot separated sections from prefix that are also\n  // at the start of part - which gives us the route name\n  // given : prefix = site.article.comments, part = site.article.id\n  //      - returns: site.article (use get(values[site.article], 'id') to get the dynamic part - used below)\n  // given : prefix = site.article, part = site.article.id\n  //      - returns: site.article. (use get(values[site.article], 'id') to get the dynamic part - used below)\n  let prefixParts = prefix.split('.');\n  let currPrefix = '';\n\n  for (let i = 0; i < prefixParts.length; i++) {\n    let currPart = prefixParts.slice(0, i + 1).join('.');\n\n    if (part.indexOf(currPart) !== 0) {\n      break;\n    }\n\n    currPrefix = currPart;\n  }\n\n  return currPrefix;\n}\n/*\n  Stolen from Controller\n*/\n\n\nexport function calculateCacheKey(prefix, parts = [], values) {\n  let suffixes = '';\n\n  for (let i = 0; i < parts.length; ++i) {\n    let part = parts[i];\n\n    let cacheValuePrefix = _calculateCacheValuePrefix(prefix, part);\n\n    let value;\n\n    if (values) {\n      if (cacheValuePrefix && cacheValuePrefix in values) {\n        let partRemovedPrefix = part.indexOf(cacheValuePrefix) === 0 ? part.substr(cacheValuePrefix.length + 1) : part;\n        value = get(values[cacheValuePrefix], partRemovedPrefix);\n      } else {\n        value = get(values, part);\n      }\n    }\n\n    suffixes += `::${part}:${value}`;\n  }\n\n  return prefix + suffixes.replace(ALL_PERIODS_REGEX, '-');\n}\n/*\n  Controller-defined query parameters can come in three shapes:\n\n  Array\n    queryParams: ['foo', 'bar']\n  Array of simple objects where value is an alias\n    queryParams: [\n      {\n        'foo': 'rename_foo_to_this'\n      },\n      {\n        'bar': 'call_bar_this_instead'\n      }\n    ]\n  Array of fully defined objects\n    queryParams: [\n      {\n        'foo': {\n          as: 'rename_foo_to_this'\n        },\n      }\n      {\n        'bar': {\n          as: 'call_bar_this_instead',\n          scope: 'controller'\n        }\n      }\n    ]\n\n  This helper normalizes all three possible styles into the\n  'Array of fully defined objects' style.\n*/\n\nexport function normalizeControllerQueryParams(queryParams) {\n  let qpMap = {};\n\n  for (let i = 0; i < queryParams.length; ++i) {\n    accumulateQueryParamDescriptors(queryParams[i], qpMap);\n  }\n\n  return qpMap;\n}\n\nfunction accumulateQueryParamDescriptors(_desc, accum) {\n  let desc = _desc;\n  let tmp;\n\n  if (typeof desc === 'string') {\n    tmp = {};\n    tmp[desc] = {\n      as: null\n    };\n    desc = tmp;\n  }\n\n  for (let key in desc) {\n    if (!Object.prototype.hasOwnProperty.call(desc, key)) {\n      return;\n    }\n\n    let singleDesc = desc[key];\n\n    if (typeof singleDesc === 'string') {\n      singleDesc = {\n        as: singleDesc\n      };\n    }\n\n    tmp = accum[key] || {\n      as: null,\n      scope: 'model'\n    };\n    assign(tmp, singleDesc);\n    accum[key] = tmp;\n  }\n}\n/*\n  Check if a routeName resembles a url instead\n\n  @private\n*/\n\n\nexport function resemblesURL(str) {\n  return typeof str === 'string' && (str === '' || str[0] === '/');\n}\n/*\n  Returns an arguments array where the route name arg is prefixed based on the mount point\n\n  @private\n*/\n\nexport function prefixRouteNameArg(route, args) {\n  let routeName = args[0];\n  let owner = getOwner(route);\n  let prefix = owner.mountPoint; // only alter the routeName if it's actually referencing a route.\n\n  if (owner.routable && typeof routeName === 'string') {\n    if (resemblesURL(routeName)) {\n      throw new EmberError('Programmatic transitions by URL cannot be used within an Engine. Please use the route name instead.');\n    } else {\n      routeName = `${prefix}.${routeName}`;\n      args[0] = routeName;\n    }\n  }\n\n  return args;\n}\nexport function shallowEqual(a, b) {\n  let k;\n  let aCount = 0;\n  let bCount = 0;\n\n  for (k in a) {\n    if (Object.prototype.hasOwnProperty.call(a, k)) {\n      if (a[k] !== b[k]) {\n        return false;\n      }\n\n      aCount++;\n    }\n  }\n\n  for (k in b) {\n    if (Object.prototype.hasOwnProperty.call(b, k)) {\n      bCount++;\n    }\n  }\n\n  return aCount === bCount;\n}\nexport function deprecateTransitionMethods(frameworkClass, methodName) {\n  deprecate(`Calling ${methodName} on a ${frameworkClass} is deprecated. Use the RouterService instead.`, false, {\n    id: 'routing.transition-methods',\n    for: 'ember-source',\n    since: {\n      enabled: '3.26.0'\n    },\n    until: '5.0.0',\n    url: 'https://deprecations.emberjs.com/v3.x/#toc_routing-transition-methods'\n  });\n}","export { default as Object, FrameworkObject } from './lib/system/object';\nexport { default as RegistryProxyMixin } from './lib/mixins/registry_proxy';\nexport { default as ContainerProxyMixin } from './lib/mixins/container_proxy';\nexport { default as copy } from './lib/copy';\nexport { default as compare } from './lib/compare';\nexport { default as isEqual } from './lib/is-equal';\nexport { default as Array, NativeArray, A, MutableArray, removeAt, uniqBy, isArray } from './lib/mixins/array';\nexport { default as Comparable } from './lib/mixins/comparable';\nexport { default as Namespace } from './lib/system/namespace';\nexport { default as ArrayProxy } from './lib/system/array_proxy';\nexport { default as ObjectProxy } from './lib/system/object_proxy';\nexport { default as CoreObject } from './lib/system/core_object';\nexport { default as ActionHandler } from './lib/mixins/action_handler';\nexport { default as Copyable } from './lib/mixins/copyable';\nexport { default as Enumerable } from './lib/mixins/enumerable';\nexport { default as _ProxyMixin, contentFor as _contentFor } from './lib/mixins/-proxy';\nexport { default as Observable } from './lib/mixins/observable';\nexport { default as MutableEnumerable } from './lib/mixins/mutable_enumerable';\nexport { default as TargetActionSupport } from './lib/mixins/target_action_support';\nexport { default as Evented } from './lib/mixins/evented';\nexport { default as PromiseProxyMixin } from './lib/mixins/promise_proxy';\nexport { default as RSVP, onerrorDefault } from './lib/ext/rsvp'; // just for side effect of extending Ember.RSVP\n\nexport { typeOf } from './lib/type-of';\nimport './lib/ext/function'; // just for side effect of extending Function.prototype","import { typeOf } from './type-of';\nimport Comparable from './mixins/comparable';\nconst TYPE_ORDER = {\n  undefined: 0,\n  null: 1,\n  boolean: 2,\n  number: 3,\n  string: 4,\n  array: 5,\n  object: 6,\n  instance: 7,\n  function: 8,\n  class: 9,\n  date: 10\n}; //\n// the spaceship operator\n//\n//                      `. ___\n//                     __,' __`.                _..----....____\n//         __...--.'``;.   ,.   ;``--..__     .'    ,-._    _.-'\n//   _..-''-------'   `'   `'   `'     O ``-''._   (,;') _,'\n// ,'________________                          \\`-._`-','\n//  `._              ```````````------...___   '-.._'-:\n//     ```--.._      ,.                     ````--...__\\-.\n//             `.--. `-` \"INFINITY IS LESS     ____    |  |`\n//               `. `.   THAN BEYOND\"        ,'`````.  ;  ;`\n//                 `._`.        __________   `.      \\'__/`\n//                    `-:._____/______/___/____`.     \\  `\n//                                |       `._    `.    \\\n//                                `._________`-.   `.   `.___\n//                                              SSt  `------'`\n\nfunction spaceship(a, b) {\n  let diff = a - b;\n  return (diff > 0) - (diff < 0);\n}\n/**\n @module @ember/utils\n*/\n\n/**\n Compares two javascript values and returns:\n\n  - -1 if the first is smaller than the second,\n  - 0 if both are equal,\n  - 1 if the first is greater than the second.\n\n  ```javascript\n  import { compare } from '@ember/utils';\n\n  compare('hello', 'hello');  // 0\n  compare('abc', 'dfg');      // -1\n  compare(2, 1);              // 1\n  ```\n\n If the types of the two objects are different precedence occurs in the\n following order, with types earlier in the list considered `<` types\n later in the list:\n\n  - undefined\n  - null\n  - boolean\n  - number\n  - string\n  - array\n  - object\n  - instance\n  - function\n  - class\n  - date\n\n  ```javascript\n  import { compare } from '@ember/utils';\n\n  compare('hello', 50);       // 1\n  compare(50, 'hello');       // -1\n  ```\n\n @method compare\n @for @ember/utils\n @static\n @param {Object} v First value to compare\n @param {Object} w Second value to compare\n @return {Number} -1 if v < w, 0 if v = w and 1 if v > w.\n @public\n*/\n\n\nexport default function compare(v, w) {\n  if (v === w) {\n    return 0;\n  }\n\n  let type1 = typeOf(v);\n  let type2 = typeOf(w);\n\n  if (type1 === 'instance' && Comparable.detect(v) && v.constructor.compare) {\n    return v.constructor.compare(v, w);\n  }\n\n  if (type2 === 'instance' && Comparable.detect(w) && w.constructor.compare) {\n    return w.constructor.compare(w, v) * -1;\n  }\n\n  let res = spaceship(TYPE_ORDER[type1], TYPE_ORDER[type2]);\n\n  if (res !== 0) {\n    return res;\n  } // types are equal - so we have to check values now\n\n\n  switch (type1) {\n    case 'boolean':\n    case 'number':\n      return spaceship(v, w);\n\n    case 'string':\n      return spaceship(v.localeCompare(w), 0);\n\n    case 'array':\n      {\n        let vLen = v.length;\n        let wLen = w.length;\n        let len = Math.min(vLen, wLen);\n\n        for (let i = 0; i < len; i++) {\n          let r = compare(v[i], w[i]);\n\n          if (r !== 0) {\n            return r;\n          }\n        } // all elements are equal now\n        // shorter array should be ordered first\n\n\n        return spaceship(vLen, wLen);\n      }\n\n    case 'instance':\n      if (Comparable.detect(v)) {\n        return v.compare(v, w);\n      }\n\n      return 0;\n\n    case 'date':\n      return spaceship(v.getTime(), w.getTime());\n\n    default:\n      return 0;\n  }\n}","import { assert, deprecate } from '@ember/debug';\nimport EmberObject from './system/object';\nimport Copyable from './mixins/copyable';\n/**\n @module @ember/object\n*/\n\nfunction _copy(obj, deep, seen, copies) {\n  // primitive data types are immutable, just return them.\n  if (typeof obj !== 'object' || obj === null) {\n    return obj;\n  }\n\n  let ret, loc; // avoid cyclical loops\n\n  if (deep && (loc = seen.indexOf(obj)) >= 0) {\n    return copies[loc];\n  }\n\n  if (deep) {\n    seen.push(obj);\n  } // IMPORTANT: this specific test will detect a native array only. Any other\n  // object will need to implement Copyable.\n\n\n  if (Array.isArray(obj)) {\n    ret = obj.slice();\n\n    if (deep) {\n      copies.push(ret);\n      loc = ret.length;\n\n      while (--loc >= 0) {\n        ret[loc] = _copy(ret[loc], deep, seen, copies);\n      }\n    }\n  } else if (Copyable.detect(obj)) {\n    ret = obj.copy(deep, seen, copies);\n\n    if (deep) {\n      copies.push(ret);\n    }\n  } else if (obj instanceof Date) {\n    ret = new Date(obj.getTime());\n\n    if (deep) {\n      copies.push(ret);\n    }\n  } else {\n    assert('Cannot clone an EmberObject that does not implement Copyable', !(obj instanceof EmberObject) || Copyable.detect(obj));\n    ret = {};\n\n    if (deep) {\n      copies.push(ret);\n    }\n\n    let key;\n\n    for (key in obj) {\n      // support Null prototype\n      if (!Object.prototype.hasOwnProperty.call(obj, key)) {\n        continue;\n      } // Prevents browsers that don't respect non-enumerability from\n      // copying internal Ember properties\n\n\n      if (key.substring(0, 2) === '__') {\n        continue;\n      }\n\n      ret[key] = deep ? _copy(obj[key], deep, seen, copies) : obj[key];\n    }\n  }\n\n  return ret;\n}\n/**\n  Creates a shallow copy of the passed object. A deep copy of the object is\n  returned if the optional `deep` argument is `true`.\n\n  If the passed object implements the `Copyable` interface, then this\n  function will delegate to the object's `copy()` method and return the\n  result. See `Copyable` for further details.\n\n  For primitive values (which are immutable in JavaScript), the passed object\n  is simply returned.\n\n  @method copy\n  @deprecated Use 'ember-copy' addon instead\n  @static\n  @for @ember/object/internals\n  @param {Object} obj The object to clone\n  @param {Boolean} [deep=false] If true, a deep copy of the object is made.\n  @return {Object} The copied object\n  @public\n*/\n\n\nexport default function copy(obj, deep) {\n  deprecate('Use ember-copy addon instead of copy method and Copyable mixin.', false, {\n    id: 'ember-runtime.deprecate-copy-copyable',\n    until: '4.0.0',\n    url: 'https://deprecations.emberjs.com/v3.x/#toc_ember-runtime-deprecate-copy-copyable',\n    for: 'ember-source',\n    since: {\n      enabled: '3.3.0'\n    }\n  }); // fast paths\n\n  if ('object' !== typeof obj || obj === null) {\n    return obj; // can't copy primitives\n  }\n\n  if (!Array.isArray(obj) && Copyable.detect(obj)) {\n    return obj.copy(deep);\n  }\n\n  return _copy(obj, deep, deep ? [] : null, deep ? [] : null);\n}","/**\n@module ember\n*/\nimport { ENV } from '@ember/-internals/environment';\nimport { on, computed, observer } from '@ember/-internals/metal';\nimport { deprecate } from '@ember/debug';\nimport { FUNCTION_PROTOTYPE_EXTENSIONS } from '@ember/deprecated-features';\n\nif (FUNCTION_PROTOTYPE_EXTENSIONS && ENV.EXTEND_PROTOTYPES.Function) {\n  Object.defineProperties(Function.prototype, {\n    /**\n      The `property` extension of Javascript's Function prototype is available\n      when `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Function` is\n      `true`, which is the default.\n       Computed properties allow you to treat a function like a property:\n       ```app/utils/president.js\n      import EmberObject from '@ember/object';\n       export default EmberObject.extend({\n        firstName: '',\n        lastName:  '',\n         fullName: function() {\n          return this.get('firstName') + ' ' + this.get('lastName');\n        }.property() // Call this flag to mark the function as a property\n      });\n      ```\n       ```javascript\n      let president = President.create({\n        firstName: 'Barack',\n        lastName: 'Obama'\n      });\n       president.get('fullName'); // 'Barack Obama'\n      ```\n       Treating a function like a property is useful because they can work with\n      bindings, just like any other property.\n       Many computed properties have dependencies on other properties. For\n      example, in the above example, the `fullName` property depends on\n      `firstName` and `lastName` to determine its value. You can tell Ember\n      about these dependencies like this:\n       ```app/utils/president.js\n      import EmberObject from '@ember/object';\n       export default EmberObject.extend({\n        firstName: '',\n        lastName:  '',\n         fullName: function() {\n          return this.get('firstName') + ' ' + this.get('lastName');\n           // Tell Ember.js that this computed property depends on firstName\n          // and lastName\n        }.property('firstName', 'lastName')\n      });\n      ```\n       Make sure you list these dependencies so Ember knows when to update\n      bindings that connect to a computed property. Changing a dependency\n      will not immediately trigger an update of the computed property, but\n      will instead clear the cache so that it is updated when the next `get`\n      is called on the property.\n       See [ComputedProperty](/ember/release/classes/ComputedProperty), [@ember/object/computed](/ember/release/classes/@ember%2Fobject%2Fcomputed).\n       @method property\n      @for Function\n      @public\n    */\n    property: {\n      configurable: true,\n      enumerable: false,\n      writable: true,\n      value: function () {\n        deprecate(`Function prototype extensions have been deprecated, please migrate from function(){}.property('bar') to computed('bar', function() {}).`, false, {\n          id: 'function-prototype-extensions.property',\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-property',\n          for: 'ember-source',\n          since: {\n            enabled: '3.11.0'\n          }\n        });\n        return computed(...arguments, this);\n      }\n    },\n\n    /**\n      The `observes` extension of Javascript's Function prototype is available\n      when `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Function` is\n      true, which is the default.\n       You can observe property changes simply by adding the `observes`\n      call to the end of your method declarations in classes that you write.\n      For example:\n       ```javascript\n      import EmberObject from '@ember/object';\n       EmberObject.extend({\n        valueObserver: function() {\n          // Executes whenever the \"value\" property changes\n        }.observes('value')\n      });\n      ```\n       In the future this method may become asynchronous.\n       See `observer`.\n       @method observes\n      @for Function\n      @public\n    */\n    observes: {\n      configurable: true,\n      enumerable: false,\n      writable: true,\n      value: function () {\n        deprecate(`Function prototype extensions have been deprecated, please migrate from function(){}.observes('foo') to observer('foo', function() {}).`, false, {\n          id: 'function-prototype-extensions.observes',\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-observes',\n          for: 'ember-source',\n          since: {\n            enabled: '3.11.0'\n          }\n        });\n        return observer(...arguments, this);\n      }\n    },\n\n    /**\n      The `on` extension of Javascript's Function prototype is available\n      when `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Function` is\n      true, which is the default.\n       You can listen for events simply by adding the `on` call to the end of\n      your method declarations in classes or mixins that you write. For example:\n       ```javascript\n      import Mixin from '@ember/mixin';\n       Mixin.create({\n        doSomethingWithElement: function() {\n          // Executes whenever the \"didInsertElement\" event fires\n        }.on('didInsertElement')\n      });\n      ```\n       See `@ember/object/evented/on`.\n       @method on\n      @for Function\n      @public\n    */\n    on: {\n      configurable: true,\n      enumerable: false,\n      writable: true,\n      value: function () {\n        deprecate(`Function prototype extensions have been deprecated, please migrate from function(){}.on('foo') to on('foo', function() {}).`, false, {\n          id: 'function-prototype-extensions.on',\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-on',\n          for: 'ember-source',\n          since: {\n            enabled: '3.11.0'\n          }\n        });\n        return on(...arguments, this);\n      }\n    }\n  });\n}","import * as RSVP from 'rsvp';\nimport { _backburner, _rsvpErrorQueue } from '@ember/runloop';\nimport { getDispatchOverride } from '@ember/-internals/error-handling';\nimport { assert } from '@ember/debug';\nRSVP.configure('async', (callback, promise) => {\n  _backburner.schedule('actions', null, callback, promise);\n});\nRSVP.configure('after', cb => {\n  _backburner.schedule(_rsvpErrorQueue, null, cb);\n});\nRSVP.on('error', onerrorDefault);\nexport function onerrorDefault(reason) {\n  let error = errorFor(reason);\n\n  if (error) {\n    let overrideDispatch = getDispatchOverride();\n\n    if (overrideDispatch) {\n      overrideDispatch(error);\n    } else {\n      throw error;\n    }\n  }\n}\n\nfunction errorFor(reason) {\n  if (!reason) return;\n\n  if (reason.errorThrown) {\n    return unwrapErrorThrown(reason);\n  }\n\n  if (reason.name === 'UnrecognizedURLError') {\n    assert(`The URL '${reason.message}' did not match any routes in your application`, false);\n    return;\n  }\n\n  if (reason.name === 'TransitionAborted') {\n    return;\n  }\n\n  return reason;\n}\n\nfunction unwrapErrorThrown(reason) {\n  let error = reason.errorThrown;\n\n  if (typeof error === 'string') {\n    error = new Error(error);\n  }\n\n  Object.defineProperty(error, '__reason_with_error_thrown__', {\n    value: reason,\n    enumerable: false\n  });\n  return error;\n}\n\nexport default RSVP;","/**\n @module @ember/utils\n*/\n\n/**\n  Compares two objects, returning true if they are equal.\n\n  ```javascript\n  import { isEqual } from '@ember/utils';\n\n  isEqual('hello', 'hello');                   // true\n  isEqual(1, 2);                               // false\n  ```\n\n  `isEqual` is a more specific comparison than a triple equal comparison.\n  It will call the `isEqual` instance method on the objects being\n  compared, allowing finer control over when objects should be considered\n  equal to each other.\n\n  ```javascript\n  import { isEqual } from '@ember/utils';\n  import EmberObject from '@ember/object';\n\n  let Person = EmberObject.extend({\n    isEqual(other) { return this.ssn == other.ssn; }\n  });\n\n  let personA = Person.create({name: 'Muhammad Ali', ssn: '123-45-6789'});\n  let personB = Person.create({name: 'Cassius Clay', ssn: '123-45-6789'});\n\n  isEqual(personA, personB); // true\n  ```\n\n  Due to the expense of array comparisons, collections will never be equal to\n  each other even if each of their items are equal to each other.\n\n  ```javascript\n  import { isEqual } from '@ember/utils';\n\n  isEqual([4, 2], [4, 2]);                     // false\n  ```\n\n  @method isEqual\n  @for @ember/utils\n  @static\n  @param {Object} a first object to compare\n  @param {Object} b second object to compare\n  @return {Boolean}\n  @public\n*/\nexport default function isEqual(a, b) {\n  if (a && typeof a.isEqual === 'function') {\n    return a.isEqual(b);\n  }\n\n  if (a instanceof Date && b instanceof Date) {\n    return a.getTime() === b.getTime();\n  }\n\n  return a === b;\n}","/**\n@module ember\n*/\nimport { meta } from '@ember/-internals/meta';\nimport { get, set, defineProperty, Mixin, tagForObject, computed, tagForProperty } from '@ember/-internals/metal';\nimport { setProxy, setupMandatorySetter, isObject } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { setCustomTagFor } from '@glimmer/manager';\nimport { combine, updateTag, tagFor, tagMetaFor } from '@glimmer/validator';\nexport function contentFor(proxy) {\n  let content = get(proxy, 'content');\n  updateTag(tagForObject(proxy), tagForObject(content));\n  return content;\n}\n\nfunction customTagForProxy(proxy, key, addMandatorySetter) {\n  let meta = tagMetaFor(proxy);\n  let tag = tagFor(proxy, key, meta);\n\n  if (DEBUG) {\n    // TODO: Replace this with something more first class for tracking tags in DEBUG\n    tag._propertyKey = key;\n  }\n\n  if (key in proxy) {\n    if (DEBUG && addMandatorySetter) {\n      setupMandatorySetter(tag, proxy, key);\n    }\n\n    return tag;\n  } else {\n    let tags = [tag, tagFor(proxy, 'content', meta)];\n    let content = contentFor(proxy);\n\n    if (isObject(content)) {\n      tags.push(tagForProperty(content, key, addMandatorySetter));\n    }\n\n    return combine(tags);\n  }\n}\n/**\n  `Ember.ProxyMixin` forwards all properties not defined by the proxy itself\n  to a proxied `content` object.  See ObjectProxy for more details.\n\n  @class ProxyMixin\n  @namespace Ember\n  @private\n*/\n\n\nexport default Mixin.create({\n  /**\n    The object whose properties will be forwarded.\n     @property content\n    @type {unknown}\n    @default null\n    @public\n  */\n  content: null,\n\n  init() {\n    this._super(...arguments);\n\n    setProxy(this);\n    tagForObject(this);\n    setCustomTagFor(this, customTagForProxy);\n  },\n\n  willDestroy() {\n    this.set('content', null);\n\n    this._super(...arguments);\n  },\n\n  isTruthy: computed('content', function () {\n    return Boolean(get(this, 'content'));\n  }),\n\n  unknownProperty(key) {\n    let content = contentFor(this);\n\n    if (content) {\n      return get(content, key);\n    }\n  },\n\n  setUnknownProperty(key, value) {\n    let m = meta(this);\n\n    if (m.isInitializing() || m.isPrototypeMeta(this)) {\n      // if marked as prototype or object is initializing then just\n      // defineProperty rather than delegate\n      defineProperty(this, key, null, value);\n      return value;\n    }\n\n    let content = contentFor(this);\n    assert(`Cannot delegate set('${key}', ${value}) to the 'content' property of object proxy ${this}: its 'content' is undefined.`, content);\n    return set(content, key, value);\n  }\n\n});","/**\n@module ember\n*/\nimport { Mixin, get } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\n/**\n  `Ember.ActionHandler` is available on some familiar classes including\n  `Route`, `Component`, and `Controller`.\n  (Internally the mixin is used by `Ember.CoreView`, `Ember.ControllerMixin`,\n  and `Route` and available to the above classes through\n  inheritance.)\n\n  @class ActionHandler\n  @namespace Ember\n  @private\n*/\n\nconst ActionHandler = Mixin.create({\n  mergedProperties: ['actions'],\n\n  /**\n    The collection of functions, keyed by name, available on this\n    `ActionHandler` as action targets.\n     These functions will be invoked when a matching `{{action}}` is triggered\n    from within a template and the application's current route is this route.\n     Actions can also be invoked from other parts of your application\n    via `ActionHandler#send`.\n     The `actions` hash will inherit action handlers from\n    the `actions` hash defined on extended parent classes\n    or mixins rather than just replace the entire hash, e.g.:\n     ```app/mixins/can-display-banner.js\n    import Mixin from '@ember/mixin';\n     export default Mixin.create({\n      actions: {\n        displayBanner(msg) {\n          // ...\n        }\n      }\n    });\n    ```\n     ```app/routes/welcome.js\n    import Route from '@ember/routing/route';\n    import CanDisplayBanner from '../mixins/can-display-banner';\n     export default Route.extend(CanDisplayBanner, {\n      actions: {\n        playMusic() {\n          // ...\n        }\n      }\n    });\n     // `WelcomeRoute`, when active, will be able to respond\n    // to both actions, since the actions hash is merged rather\n    // then replaced when extending mixins / parent classes.\n    this.send('displayBanner');\n    this.send('playMusic');\n    ```\n     Within a Controller, Route or Component's action handler,\n    the value of the `this` context is the Controller, Route or\n    Component object:\n     ```app/routes/song.js\n    import Route from '@ember/routing/route';\n     export default Route.extend({\n      actions: {\n        myAction() {\n          this.controllerFor(\"song\");\n          this.transitionTo(\"other.route\");\n          ...\n        }\n      }\n    });\n    ```\n     It is also possible to call `this._super(...arguments)` from within an\n    action handler if it overrides a handler defined on a parent\n    class or mixin:\n     Take for example the following routes:\n     ```app/mixins/debug-route.js\n    import Mixin from '@ember/mixin';\n     export default Mixin.create({\n      actions: {\n        debugRouteInformation() {\n          console.debug(\"It's a-me, console.debug!\");\n        }\n      }\n    });\n    ```\n     ```app/routes/annoying-debug.js\n    import Route from '@ember/routing/route';\n    import DebugRoute from '../mixins/debug-route';\n     export default Route.extend(DebugRoute, {\n      actions: {\n        debugRouteInformation() {\n          // also call the debugRouteInformation of mixed in DebugRoute\n          this._super(...arguments);\n           // show additional annoyance\n          window.alert(...);\n        }\n      }\n    });\n    ```\n     ## Bubbling\n     By default, an action will stop bubbling once a handler defined\n    on the `actions` hash handles it. To continue bubbling the action,\n    you must return `true` from the handler:\n     ```app/router.js\n    Router.map(function() {\n      this.route(\"album\", function() {\n        this.route(\"song\");\n      });\n    });\n    ```\n     ```app/routes/album.js\n    import Route from '@ember/routing/route';\n     export default Route.extend({\n      actions: {\n        startPlaying: function() {\n        }\n      }\n    });\n    ```\n     ```app/routes/album-song.js\n    import Route from '@ember/routing/route';\n     export default Route.extend({\n      actions: {\n        startPlaying() {\n          // ...\n           if (actionShouldAlsoBeTriggeredOnParentRoute) {\n            return true;\n          }\n        }\n      }\n    });\n    ```\n     @property actions\n    @type Object\n    @default null\n    @public\n  */\n\n  /**\n    Triggers a named action on the `ActionHandler`. Any parameters\n    supplied after the `actionName` string will be passed as arguments\n    to the action target function.\n     If the `ActionHandler` has its `target` property set, actions may\n    bubble to the `target`. Bubbling happens when an `actionName` can\n    not be found in the `ActionHandler`'s `actions` hash or if the\n    action target function returns `true`.\n     Example\n     ```app/routes/welcome.js\n    import Route from '@ember/routing/route';\n     export default Route.extend({\n      actions: {\n        playTheme() {\n          this.send('playMusic', 'theme.mp3');\n        },\n        playMusic(track) {\n          // ...\n        }\n      }\n    });\n    ```\n     @method send\n    @param {String} actionName The action to trigger\n    @param {*} context a context to send with the action\n    @public\n  */\n  send(actionName, ...args) {\n    assert(`Attempted to call .send() with the action '${actionName}' on the destroyed object '${this}'.`, !this.isDestroying && !this.isDestroyed);\n\n    if (this.actions && this.actions[actionName]) {\n      let shouldBubble = this.actions[actionName].apply(this, args) === true;\n\n      if (!shouldBubble) {\n        return;\n      }\n    }\n\n    let target = get(this, 'target');\n\n    if (target) {\n      assert(`The \\`target\\` for ${this} (${target}) does not have a \\`send\\` method`, typeof target.send === 'function');\n      target.send(...arguments);\n    }\n  }\n\n});\nexport default ActionHandler;","/**\n@module @ember/array\n*/\nimport { DEBUG } from '@glimmer/env';\nimport { PROXY_CONTENT } from '@ember/-internals/metal';\nimport { setEmberArray, HAS_NATIVE_PROXY } from '@ember/-internals/utils';\nimport { get, set, objectAt, replaceInNativeArray, replace, computed, Mixin, hasListeners, beginPropertyChanges, endPropertyChanges, addArrayObserver, removeArrayObserver, arrayContentWillChange, arrayContentDidChange, nativeDescDecorator as descriptor } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nimport Enumerable from './enumerable';\nimport compare from '../compare';\nimport { ENV } from '@ember/-internals/environment';\nimport Observable from '../mixins/observable';\nimport MutableEnumerable from './mutable_enumerable';\nimport { typeOf } from '../type-of';\nconst EMPTY_ARRAY = Object.freeze([]);\n\nconst identityFunction = item => item;\n\nexport function uniqBy(array, key = identityFunction) {\n  assert(`first argument passed to \\`uniqBy\\` should be array`, isArray(array));\n  let ret = A();\n  let seen = new Set();\n  let getter = typeof key === 'function' ? key : item => get(item, key);\n  array.forEach(item => {\n    let val = getter(item);\n\n    if (!seen.has(val)) {\n      seen.add(val);\n      ret.push(item);\n    }\n  });\n  return ret;\n}\n\nfunction iter(key, value) {\n  let valueProvided = arguments.length === 2;\n  return valueProvided ? item => value === get(item, key) : item => Boolean(get(item, key));\n}\n\nfunction findIndex(array, predicate, startAt) {\n  let len = array.length;\n\n  for (let index = startAt; index < len; index++) {\n    let item = objectAt(array, index);\n\n    if (predicate(item, index, array)) {\n      return index;\n    }\n  }\n\n  return -1;\n}\n\nfunction find(array, callback, target) {\n  let predicate = callback.bind(target);\n  let index = findIndex(array, predicate, 0);\n  return index === -1 ? undefined : objectAt(array, index);\n}\n\nfunction any(array, callback, target) {\n  let predicate = callback.bind(target);\n  return findIndex(array, predicate, 0) !== -1;\n}\n\nfunction every(array, callback, target) {\n  let cb = callback.bind(target);\n\n  let predicate = (item, index, array) => !cb(item, index, array);\n\n  return findIndex(array, predicate, 0) === -1;\n}\n\nfunction indexOf(array, val, startAt = 0, withNaNCheck) {\n  let len = array.length;\n\n  if (startAt < 0) {\n    startAt += len;\n  } // SameValueZero comparison (NaN !== NaN)\n\n\n  let predicate = withNaNCheck && val !== val ? item => item !== item : item => item === val;\n  return findIndex(array, predicate, startAt);\n}\n\nexport function removeAt(array, index, len = 1) {\n  assert(`\\`removeAt\\` index provided is out of range`, index > -1 && index < array.length);\n  replace(array, index, len, EMPTY_ARRAY);\n  return array;\n}\n\nfunction insertAt(array, index, item) {\n  assert(`\\`insertAt\\` index provided is out of range`, index > -1 && index <= array.length);\n  replace(array, index, 0, [item]);\n  return item;\n}\n/**\n  Returns true if the passed object is an array or Array-like.\n\n  Objects are considered Array-like if any of the following are true:\n\n    - the object is a native Array\n    - the object has an objectAt property\n    - the object is an Object, and has a length property\n\n  Unlike `typeOf` this method returns true even if the passed object is\n  not formally an array but appears to be array-like (i.e. implements `Array`)\n\n  ```javascript\n  import { isArray } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  isArray();                                      // false\n  isArray([]);                                    // true\n  isArray(ArrayProxy.create({ content: [] }));    // true\n  ```\n\n  @method isArray\n  @static\n  @for @ember/array\n  @param {Object} obj The object to test\n  @return {Boolean} true if the passed object is an array or Array-like\n  @public\n*/\n\n\nexport function isArray(_obj) {\n  let obj = _obj;\n\n  if (DEBUG && HAS_NATIVE_PROXY && typeof _obj === 'object' && _obj !== null) {\n    let possibleProxyContent = _obj[PROXY_CONTENT];\n\n    if (possibleProxyContent !== undefined) {\n      obj = possibleProxyContent;\n    }\n  }\n\n  if (!obj || obj.setInterval) {\n    return false;\n  }\n\n  if (Array.isArray(obj) || ArrayMixin.detect(obj)) {\n    return true;\n  }\n\n  let type = typeOf(obj);\n\n  if ('array' === type) {\n    return true;\n  }\n\n  let length = obj.length;\n\n  if (typeof length === 'number' && length === length && 'object' === type) {\n    return true;\n  }\n\n  return false;\n}\n/*\n  This allows us to define computed properties that are not enumerable.\n  The primary reason this is important is that when `NativeArray` is\n  applied to `Array.prototype` we need to ensure that we do not add _any_\n  new enumerable properties.\n*/\n\nfunction nonEnumerableComputed() {\n  let property = computed(...arguments);\n  property.enumerable = false;\n  return property;\n}\n\nfunction mapBy(key) {\n  return this.map(next => get(next, key));\n} // ..........................................................\n// ARRAY\n//\n\n/**\n  This mixin implements Observer-friendly Array-like behavior. It is not a\n  concrete implementation, but it can be used up by other classes that want\n  to appear like arrays.\n\n  For example, ArrayProxy is a concrete class that can be instantiated to\n  implement array-like behavior. This class uses the Array Mixin by way of\n  the MutableArray mixin, which allows observable changes to be made to the\n  underlying array.\n\n  This mixin defines methods specifically for collections that provide\n  index-ordered access to their contents. When you are designing code that\n  needs to accept any kind of Array-like object, you should use these methods\n  instead of Array primitives because these will properly notify observers of\n  changes to the array.\n\n  Although these methods are efficient, they do add a layer of indirection to\n  your application so it is a good idea to use them only when you need the\n  flexibility of using both true JavaScript arrays and \"virtual\" arrays such\n  as controllers and collections.\n\n  You can use the methods defined in this module to access and modify array\n  contents in an observable-friendly way. You can also be notified whenever\n  the membership of an array changes by using `.observes('myArray.[]')`.\n\n  To support `EmberArray` in your own class, you must override two\n  primitives to use it: `length()` and `objectAt()`.\n\n  @class EmberArray\n  @uses Enumerable\n  @since Ember 0.9.0\n  @public\n*/\n\n\nconst ArrayMixin = Mixin.create(Enumerable, {\n  init() {\n    this._super(...arguments);\n\n    setEmberArray(this);\n  },\n\n  /**\n    __Required.__ You must implement this method to apply this mixin.\n     Your array must support the `length` property. Your replace methods should\n    set this property whenever it changes.\n     @property {Number} length\n    @public\n  */\n\n  /**\n    Returns the object at the given `index`. If the given `index` is negative\n    or is greater or equal than the array length, returns `undefined`.\n     This is one of the primitives you must implement to support `EmberArray`.\n    If your object supports retrieving the value of an array item using `get()`\n    (i.e. `myArray.get(0)`), then you do not need to implement this method\n    yourself.\n     ```javascript\n    let arr = ['a', 'b', 'c', 'd'];\n     arr.objectAt(0);   // 'a'\n    arr.objectAt(3);   // 'd'\n    arr.objectAt(-1);  // undefined\n    arr.objectAt(4);   // undefined\n    arr.objectAt(5);   // undefined\n    ```\n     @method objectAt\n    @param {Number} idx The index of the item to return.\n    @return {*} item at index or undefined\n    @public\n  */\n\n  /**\n    This returns the objects at the specified indexes, using `objectAt`.\n     ```javascript\n    let arr = ['a', 'b', 'c', 'd'];\n     arr.objectsAt([0, 1, 2]);  // ['a', 'b', 'c']\n    arr.objectsAt([2, 3, 4]);  // ['c', 'd', undefined]\n    ```\n     @method objectsAt\n    @param {Array} indexes An array of indexes of items to return.\n    @return {Array}\n    @public\n   */\n  objectsAt(indexes) {\n    return indexes.map(idx => objectAt(this, idx));\n  },\n\n  /**\n    This is the handler for the special array content property. If you get\n    this property, it will return this. If you set this property to a new\n    array, it will replace the current content.\n     ```javascript\n    let peopleToMoon = ['Armstrong', 'Aldrin'];\n     peopleToMoon.get('[]'); // ['Armstrong', 'Aldrin']\n     peopleToMoon.set('[]', ['Collins']); // ['Collins']\n    peopleToMoon.get('[]'); // ['Collins']\n    ```\n     @property []\n    @return this\n    @public\n  */\n  '[]': nonEnumerableComputed({\n    get() {\n      return this;\n    },\n\n    set(key, value) {\n      this.replace(0, this.length, value);\n      return this;\n    }\n\n  }),\n\n  /**\n    The first object in the array, or `undefined` if the array is empty.\n     ```javascript\n    let vowels = ['a', 'e', 'i', 'o', 'u'];\n    vowels.firstObject; // 'a'\n     vowels.shiftObject();\n    vowels.firstObject; // 'e'\n     vowels.reverseObjects();\n    vowels.firstObject; // 'u'\n     vowels.clear();\n    vowels.firstObject; // undefined\n    ```\n     @property firstObject\n    @return {Object | undefined} The first object in the array\n    @public\n  */\n  firstObject: nonEnumerableComputed(function () {\n    return objectAt(this, 0);\n  }).readOnly(),\n\n  /**\n    The last object in the array, or `undefined` if the array is empty.\n     @property lastObject\n    @return {Object | undefined} The last object in the array\n    @public\n  */\n  lastObject: nonEnumerableComputed(function () {\n    return objectAt(this, this.length - 1);\n  }).readOnly(),\n\n  // Add any extra methods to EmberArray that are native to the built-in Array.\n\n  /**\n    Returns a new array that is a slice of the receiver. This implementation\n    uses the observable array methods to retrieve the objects for the new\n    slice.\n     ```javascript\n    let arr = ['red', 'green', 'blue'];\n     arr.slice(0);       // ['red', 'green', 'blue']\n    arr.slice(0, 2);    // ['red', 'green']\n    arr.slice(1, 100);  // ['green', 'blue']\n    ```\n     @method slice\n    @param {Number} beginIndex (Optional) index to begin slicing from.\n    @param {Number} endIndex (Optional) index to end the slice at (but not included).\n    @return {Array} New array with specified slice\n    @public\n  */\n  slice(beginIndex = 0, endIndex) {\n    let ret = A();\n    let length = this.length;\n\n    if (beginIndex < 0) {\n      beginIndex = length + beginIndex;\n    }\n\n    if (endIndex === undefined || endIndex > length) {\n      endIndex = length;\n    } else if (endIndex < 0) {\n      endIndex = length + endIndex;\n    }\n\n    while (beginIndex < endIndex) {\n      ret[ret.length] = objectAt(this, beginIndex++);\n    }\n\n    return ret;\n  },\n\n  /**\n    Used to determine the passed object's first occurrence in the array.\n    Returns the index if found, -1 if no match is found.\n     The optional `startAt` argument can be used to pass a starting\n    index to search from, effectively slicing the searchable portion\n    of the array. If it's negative it will add the array length to\n    the startAt value passed in as the index to search from. If less\n    than or equal to `-1 * array.length` the entire array is searched.\n     ```javascript\n    let arr = ['a', 'b', 'c', 'd', 'a'];\n     arr.indexOf('a');       //  0\n    arr.indexOf('z');       // -1\n    arr.indexOf('a', 2);    //  4\n    arr.indexOf('a', -1);   //  4, equivalent to indexOf('a', 4)\n    arr.indexOf('a', -100); //  0, searches entire array\n    arr.indexOf('b', 3);    // -1\n    arr.indexOf('a', 100);  // -1\n     let people = [{ name: 'Zoey' }, { name: 'Bob' }]\n    let newPerson = { name: 'Tom' };\n    people = [newPerson, ...people, newPerson];\n     people.indexOf(newPerson);     //  0\n    people.indexOf(newPerson, 1);  //  3\n    people.indexOf(newPerson, -4); //  0\n    people.indexOf(newPerson, 10); // -1\n    ```\n     @method indexOf\n    @param {Object} object the item to search for\n    @param {Number} startAt optional starting location to search, default 0\n    @return {Number} index or -1 if not found\n    @public\n  */\n  indexOf(object, startAt) {\n    return indexOf(this, object, startAt, false);\n  },\n\n  /**\n    Returns the index of the given `object`'s last occurrence.\n     - If no `startAt` argument is given, the search starts from\n    the last position.\n    - If it's greater than or equal to the length of the array,\n    the search starts from the last position.\n    - If it's negative, it is taken as the offset from the end\n    of the array i.e. `startAt + array.length`.\n    - If it's any other positive number, will search backwards\n    from that index of the array.\n     Returns -1 if no match is found.\n     ```javascript\n    let arr = ['a', 'b', 'c', 'd', 'a'];\n     arr.lastIndexOf('a');       //  4\n    arr.lastIndexOf('z');       // -1\n    arr.lastIndexOf('a', 2);    //  0\n    arr.lastIndexOf('a', -1);   //  4\n    arr.lastIndexOf('a', -3);   //  0\n    arr.lastIndexOf('b', 3);    //  1\n    arr.lastIndexOf('a', 100);  //  4\n    ```\n     @method lastIndexOf\n    @param {Object} object the item to search for\n    @param {Number} startAt optional starting location to search from\n    backwards, defaults to `(array.length - 1)`\n    @return {Number} The last index of the `object` in the array or -1\n    if not found\n    @public\n  */\n  lastIndexOf(object, startAt) {\n    let len = this.length;\n\n    if (startAt === undefined || startAt >= len) {\n      startAt = len - 1;\n    }\n\n    if (startAt < 0) {\n      startAt += len;\n    }\n\n    for (let idx = startAt; idx >= 0; idx--) {\n      if (objectAt(this, idx) === object) {\n        return idx;\n      }\n    }\n\n    return -1;\n  },\n\n  // ..........................................................\n  // ARRAY OBSERVERS\n  //\n\n  /**\n    Adds an array observer to the receiving array. The array observer object\n    normally must implement two methods:\n     * `willChange(observedObj, start, removeCount, addCount)` - This method will be\n      called just before the array is modified.\n    * `didChange(observedObj, start, removeCount, addCount)` - This method will be\n      called just after the array is modified.\n     Both callbacks will be passed the observed object, starting index of the\n    change as well as a count of the items to be removed and added. You can use\n    these callbacks to optionally inspect the array during the change, clear\n    caches, or do any other bookkeeping necessary.\n     In addition to passing a target, you can also include an options hash\n    which you can use to override the method names that will be invoked on the\n    target.\n     @method addArrayObserver\n    @param {Object} target The observer object.\n    @param {Object} opts Optional hash of configuration options including\n      `willChange` and `didChange` option.\n    @return {EmberArray} receiver\n    @public\n    @example\n        import Service from '@ember/service';\n         export default Service.extend({\n          data: Ember.A(),\n           init() {\n            this._super(...arguments);\n             this.data.addArrayObserver(this, {\n              willChange: 'dataWillChange',\n              didChange: 'dataDidChange'\n            });\n          },\n           dataWillChange(array, start, removeCount, addCount) {\n            console.log('array will change', array, start, removeCount, addCount);\n          },\n           dataDidChange(array, start, removeCount, addCount) {\n            console.log('array did change', array, start, removeCount, addCount);\n          }\n        });\n  */\n  addArrayObserver(target, opts) {\n    return addArrayObserver(this, target, opts);\n  },\n\n  /**\n    Removes an array observer from the object if the observer is current\n    registered. Calling this method multiple times with the same object will\n    have no effect.\n     @method removeArrayObserver\n    @param {Object} target The object observing the array.\n    @param {Object} opts Optional hash of configuration options including\n      `willChange` and `didChange` option.\n    @return {EmberArray} receiver\n    @public\n  */\n  removeArrayObserver(target, opts) {\n    return removeArrayObserver(this, target, opts);\n  },\n\n  /**\n    Becomes true whenever the array currently has observers watching changes\n    on the array.\n     ```javascript\n    let arr = [1, 2, 3, 4, 5];\n    arr.hasArrayObservers; // false\n     arr.addArrayObserver(this, {\n      willChange() {\n        console.log('willChange');\n      }\n    });\n    arr.hasArrayObservers; // true\n    ```\n     @property {Boolean} hasArrayObservers\n    @public\n  */\n  hasArrayObservers: descriptor({\n    configurable: true,\n    enumerable: false,\n\n    get() {\n      return hasListeners(this, '@array:change') || hasListeners(this, '@array:before');\n    }\n\n  }),\n\n  /**\n    If you are implementing an object that supports `EmberArray`, call this\n    method just before the array content changes to notify any observers and\n    invalidate any related properties. Pass the starting index of the change\n    as well as a delta of the amounts to change.\n     ```app/components/show-post.js\n    import Component from '@ember/component';\n    import EmberObject from '@ember/object';\n     const Post = EmberObject.extend({\n      body: '',\n      save() {}\n    })\n     export default Component.extend({\n      attemptsToModify: 0,\n      successfulModifications: 0,\n      posts: null,\n       init() {\n        this._super(...arguments);\n         this.posts = [1, 2, 3].map(i => Post.create({ body: i }));\n        this.posts.addArrayObserver(this, {\n          willChange() {\n            this.incrementProperty('attemptsToModify');\n          },\n          didChange() {\n            this.incrementProperty('successfulModifications');\n          }\n        });\n      },\n       actions: {\n        editPost(post, newContent) {\n          let oldContent = post.body,\n              postIndex = this.posts.indexOf(post);\n           this.posts.arrayContentWillChange(postIndex, 0, 0); // attemptsToModify = 1\n          post.set('body', newContent);\n           post.save()\n            .then(response => {\n              this.posts.arrayContentDidChange(postIndex, 0, 0); // successfulModifications = 1\n            })\n            .catch(error => {\n              post.set('body', oldContent);\n            })\n        }\n      }\n    });\n    ```\n     @method arrayContentWillChange\n    @param {Number} startIdx The starting index in the array that will change.\n    @param {Number} removeAmt The number of items that will be removed. If you\n      pass `null` assumes 0\n    @param {Number} addAmt The number of items that will be added. If you\n      pass `null` assumes 0.\n    @return {EmberArray} receiver\n    @public\n  */\n  arrayContentWillChange(startIdx, removeAmt, addAmt) {\n    return arrayContentWillChange(this, startIdx, removeAmt, addAmt);\n  },\n\n  /**\n    If you are implementing an object that supports `EmberArray`, call this\n    method just after the array content changes to notify any observers and\n    invalidate any related properties. Pass the starting index of the change\n    as well as a delta of the amounts to change.\n     ```javascript\n    let arr = [1, 2, 3, 4, 5];\n     arr.copyWithin(-2); // [1, 2, 3, 1, 2]\n    // arr.lastObject = 5\n    arr.arrayContentDidChange(3, 2, 2);\n    // arr.lastObject = 2\n    ```\n     @method arrayContentDidChange\n    @param {Number} startIdx The starting index in the array that did change.\n    @param {Number} removeAmt The number of items that were removed. If you\n      pass `null` assumes 0\n    @param {Number} addAmt The number of items that were added. If you\n      pass `null` assumes 0.\n    @return {EmberArray} receiver\n    @public\n  */\n  arrayContentDidChange(startIdx, removeAmt, addAmt) {\n    return arrayContentDidChange(this, startIdx, removeAmt, addAmt);\n  },\n\n  /**\n    Iterates through the array, calling the passed function on each\n    item. This method corresponds to the `forEach()` method defined in\n    JavaScript 1.6.\n     The callback method you provide should have the following signature (all\n    parameters are optional):\n     ```javascript\n    function(item, index, array);\n    ```\n     - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n     Note that in addition to a callback, you can also pass an optional target\n    object that will be set as `this` on the context. This is a good way\n    to give your iterator function access to the current object.\n     Example Usage:\n     ```javascript\n    let foods = [\n      { name: 'apple', eaten: false },\n      { name: 'banana', eaten: false },\n      { name: 'carrot', eaten: false }\n    ];\n     foods.forEach((food) => food.eaten = true);\n     let output = '';\n    foods.forEach((item, index, array) =>\n      output += `${index + 1}/${array.length} ${item.name}\\n`;\n    );\n    console.log(output);\n    // 1/3 apple\n    // 2/3 banana\n    // 3/3 carrot\n    ```\n     @method forEach\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Object} receiver\n    @public\n  */\n  forEach(callback, target = null) {\n    assert('`forEach` expects a function as first argument.', typeof callback === 'function');\n    let length = this.length;\n\n    for (let index = 0; index < length; index++) {\n      let item = this.objectAt(index);\n      callback.call(target, item, index, this);\n    }\n\n    return this;\n  },\n\n  /**\n    Alias for `mapBy`.\n     Returns the value of the named\n    property on all items in the enumeration.\n     ```javascript\n    let people = [{name: 'Joe'}, {name: 'Matt'}];\n     people.getEach('name');\n    // ['Joe', 'Matt'];\n     people.getEach('nonexistentProperty');\n    // [undefined, undefined];\n    ```\n     @method getEach\n    @param {String} key name of the property\n    @return {Array} The mapped array.\n    @public\n  */\n  getEach: mapBy,\n\n  /**\n    Sets the value on the named property for each member. This is more\n    ergonomic than using other methods defined on this helper. If the object\n    implements Observable, the value will be changed to `set(),` otherwise\n    it will be set directly. `null` objects are skipped.\n     ```javascript\n    let people = [{name: 'Joe'}, {name: 'Matt'}];\n     people.setEach('zipCode', '10011');\n    // [{name: 'Joe', zipCode: '10011'}, {name: 'Matt', zipCode: '10011'}];\n    ```\n     @method setEach\n    @param {String} key The key to set\n    @param {Object} value The object to set\n    @return {Object} receiver\n    @public\n  */\n  setEach(key, value) {\n    return this.forEach(item => set(item, key, value));\n  },\n\n  /**\n    Maps all of the items in the enumeration to another value, returning\n    a new array. This method corresponds to `map()` defined in JavaScript 1.6.\n     The callback method you provide should have the following signature (all\n    parameters are optional):\n     ```javascript\n    function(item, index, array);\n    let arr = [1, 2, 3, 4, 5, 6];\n     arr.map(element => element * element);\n    // [1, 4, 9, 16, 25, 36];\n     arr.map((element, index) => element + index);\n    // [1, 3, 5, 7, 9, 11];\n    ```\n     - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n     It should return the mapped value.\n     Note that in addition to a callback, you can also pass an optional target\n    object that will be set as `this` on the context. This is a good way\n    to give your iterator function access to the current object.\n     @method map\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Array} The mapped array.\n    @public\n  */\n  map(callback, target = null) {\n    assert('`map` expects a function as first argument.', typeof callback === 'function');\n    let ret = A();\n    this.forEach((x, idx, i) => ret[idx] = callback.call(target, x, idx, i));\n    return ret;\n  },\n\n  /**\n    Similar to map, this specialized function returns the value of the named\n    property on all items in the enumeration.\n     ```javascript\n    let people = [{name: 'Joe'}, {name: 'Matt'}];\n     people.mapBy('name');\n    // ['Joe', 'Matt'];\n     people.mapBy('unknownProperty');\n    // [undefined, undefined];\n    ```\n     @method mapBy\n    @param {String} key name of the property\n    @return {Array} The mapped array.\n    @public\n  */\n  mapBy,\n\n  /**\n    Returns a new array with all of the items in the enumeration that the provided\n    callback function returns true for. This method corresponds to [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter).\n     The callback method should have the following signature:\n     ```javascript\n    function(item, index, array);\n    ```\n     - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n     All parameters are optional. The function should return `true` to include the item\n    in the results, and `false` otherwise.\n     Example:\n     ```javascript\n    function isAdult(person) {\n      return person.age > 18;\n    };\n     let people = Ember.A([{ name: 'John', age: 14 }, { name: 'Joan', age: 45 }]);\n     people.filter(isAdult); // returns [{ name: 'Joan', age: 45 }];\n    ```\n     Note that in addition to a callback, you can pass an optional target object\n    that will be set as `this` on the context. This is a good way to give your\n    iterator function access to the current object. For example:\n     ```javascript\n    function isAdultAndEngineer(person) {\n      return person.age > 18 && this.engineering;\n    }\n     class AdultsCollection {\n      engineering = false;\n       constructor(opts = {}) {\n        super(...arguments);\n         this.engineering = opts.engineering;\n        this.people = Ember.A([{ name: 'John', age: 14 }, { name: 'Joan', age: 45 }]);\n      }\n    }\n     let collection = new AdultsCollection({ engineering: true });\n    collection.people.filter(isAdultAndEngineer, { target: collection });\n    ```\n     @method filter\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Array} A filtered array.\n    @public\n  */\n  filter(callback, target = null) {\n    assert('`filter` expects a function as first argument.', typeof callback === 'function');\n    let ret = A();\n    this.forEach((x, idx, i) => {\n      if (callback.call(target, x, idx, i)) {\n        ret.push(x);\n      }\n    });\n    return ret;\n  },\n\n  /**\n    Returns an array with all of the items in the enumeration where the passed\n    function returns false. This method is the inverse of filter().\n     The callback method you provide should have the following signature (all\n    parameters are optional):\n     ```javascript\n    function(item, index, array);\n    ```\n     - *item* is the current item in the iteration.\n    - *index* is the current index in the iteration\n    - *array* is the array itself.\n     It should return a falsey value to include the item in the results.\n     Note that in addition to a callback, you can also pass an optional target\n    object that will be set as \"this\" on the context. This is a good way\n    to give your iterator function access to the current object.\n     Example Usage:\n     ```javascript\n    const food = [\n      { food: 'apple', isFruit: true },\n      { food: 'bread', isFruit: false },\n      { food: 'banana', isFruit: true }\n    ];\n    const nonFruits = food.reject(function(thing) {\n      return thing.isFruit;\n    }); // [{food: 'bread', isFruit: false}]\n    ```\n     @method reject\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Array} A rejected array.\n    @public\n  */\n  reject(callback, target = null) {\n    assert('`reject` expects a function as first argument.', typeof callback === 'function');\n    return this.filter(function () {\n      return !callback.apply(target, arguments);\n    });\n  },\n\n  /**\n    Filters the array by the property and an optional value. If a value is given, it returns\n    the items that have said value for the property. If not, it returns all the items that\n    have a truthy value for the property.\n     Example Usage:\n     ```javascript\n    let things = Ember.A([{ food: 'apple', isFruit: true }, { food: 'beans', isFruit: false }]);\n     things.filterBy('food', 'beans'); // [{ food: 'beans', isFruit: false }]\n    things.filterBy('isFruit'); // [{ food: 'apple', isFruit: true }]\n    ```\n     @method filterBy\n    @param {String} key the property to test\n    @param {*} [value] optional value to test against.\n    @return {Array} filtered array\n    @public\n  */\n  filterBy() {\n    return this.filter(iter(...arguments));\n  },\n\n  /**\n    Returns an array with the items that do not have truthy values for the provided key.\n    You can pass an optional second argument with a target value to reject for the key.\n    Otherwise this will reject objects where the provided property evaluates to false.\n     Example Usage:\n     ```javascript\n      let food = [\n        { name: \"apple\", isFruit: true },\n        { name: \"carrot\", isFruit: false },\n        { name: \"bread\", isFruit: false },\n      ];\n      food.rejectBy('isFruit'); // [{ name: \"carrot\", isFruit: false }, { name: \"bread\", isFruit: false }]\n      food.rejectBy('name', 'carrot'); // [{ name: \"apple\", isFruit: true }}, { name: \"bread\", isFruit: false }]\n    ```\n     @method rejectBy\n    @param {String} key the property to test\n    @param {*} [value] optional value to test against.\n    @return {Array} rejected array\n    @public\n  */\n  rejectBy() {\n    return this.reject(iter(...arguments));\n  },\n\n  /**\n    Returns the first item in the array for which the callback returns true.\n    This method is similar to the `find()` method defined in ECMAScript 2015.\n     The callback method you provide should have the following signature (all\n    parameters are optional):\n     ```javascript\n    function(item, index, array);\n    ```\n     - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n     It should return the `true` to include the item in the results, `false`\n    otherwise.\n     Note that in addition to a callback, you can also pass an optional target\n    object that will be set as `this` on the context. This is a good way\n    to give your iterator function access to the current object.\n     Example Usage:\n     ```javascript\n    let users = [\n      { id: 1, name: 'Yehuda' },\n      { id: 2, name: 'Tom' },\n      { id: 3, name: 'Melanie' },\n      { id: 4, name: 'Leah' }\n    ];\n     users.find((user) => user.name == 'Tom'); // [{ id: 2, name: 'Tom' }]\n    users.find(({ id }) => id == 3); // [{ id: 3, name: 'Melanie' }]\n    ```\n     @method find\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Object} Found item or `undefined`.\n    @public\n  */\n  find(callback, target = null) {\n    assert('`find` expects a function as first argument.', typeof callback === 'function');\n    return find(this, callback, target);\n  },\n\n  /**\n    Returns the first item with a property matching the passed value. You\n    can pass an optional second argument with the target value. Otherwise\n    this will match any property that evaluates to `true`.\n     This method works much like the more generic `find()` method.\n     Usage Example:\n     ```javascript\n    let users = [\n      { id: 1, name: 'Yehuda', isTom: false },\n      { id: 2, name: 'Tom', isTom: true },\n      { id: 3, name: 'Melanie', isTom: false },\n      { id: 4, name: 'Leah', isTom: false }\n    ];\n     users.findBy('id', 4); // { id: 4, name: 'Leah', isTom: false }\n    users.findBy('name', 'Melanie'); // { id: 3, name: 'Melanie', isTom: false }\n    users.findBy('isTom'); // { id: 2, name: 'Tom', isTom: true }\n    ```\n     @method findBy\n    @param {String} key the property to test\n    @param {String} [value] optional value to test against.\n    @return {Object} found item or `undefined`\n    @public\n  */\n  findBy() {\n    return find(this, iter(...arguments));\n  },\n\n  /**\n    Returns `true` if the passed function returns true for every item in the\n    enumeration. This corresponds with the `Array.prototype.every()` method defined in ES5.\n     The callback method should have the following signature:\n     ```javascript\n    function(item, index, array);\n    ```\n     - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n     All params are optional. The method should return `true` or `false`.\n     Note that in addition to a callback, you can also pass an optional target\n    object that will be set as `this` on the context. This is a good way\n    to give your iterator function access to the current object.\n     Usage example:\n     ```javascript\n    function isAdult(person) {\n      return person.age > 18;\n    };\n     const people = Ember.A([{ name: 'John', age: 24 }, { name: 'Joan', age: 45 }]);\n    const areAllAdults = people.every(isAdult);\n    ```\n     @method every\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Boolean}\n    @public\n  */\n  every(callback, target = null) {\n    assert('`every` expects a function as first argument.', typeof callback === 'function');\n    return every(this, callback, target);\n  },\n\n  /**\n    Returns `true` if the passed property resolves to the value of the second\n    argument for all items in the array. This method is often simpler/faster\n    than using a callback.\n     Note that like the native `Array.every`, `isEvery` will return true when called\n    on any empty array.\n    ```javascript\n    class Language {\n      constructor(name, isProgrammingLanguage) {\n        this.name = name;\n        this.programmingLanguage = isProgrammingLanguage;\n      }\n    }\n     const compiledLanguages = [\n      new Language('Java', true),\n      new Language('Go', true),\n      new Language('Rust', true)\n    ]\n     const languagesKnownByMe = [\n      new Language('Javascript', true),\n      new Language('English', false),\n      new Language('Ruby', true)\n    ]\n     compiledLanguages.isEvery('programmingLanguage'); // true\n    languagesKnownByMe.isEvery('programmingLanguage'); // false\n    ```\n     @method isEvery\n    @param {String} key the property to test\n    @param {String} [value] optional value to test against. Defaults to `true`\n    @return {Boolean}\n    @since 1.3.0\n    @public\n  */\n  isEvery() {\n    return every(this, iter(...arguments));\n  },\n\n  /**\n    The any() method executes the callback function once for each element\n    present in the array until it finds the one where callback returns a truthy\n    value (i.e. `true`). If such an element is found, any() immediately returns\n    true. Otherwise, any() returns false.\n     ```javascript\n    function(item, index, array);\n    ```\n     - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array object itself.\n     Note that in addition to a callback, you can also pass an optional target\n    object that will be set as `this` on the context. It can be a good way\n    to give your iterator function access to an object in cases where an ES6\n    arrow function would not be appropriate.\n     Usage Example:\n     ```javascript\n    let includesManager = people.any(this.findPersonInManagersList, this);\n     let includesStockHolder = people.any(person => {\n      return this.findPersonInStockHoldersList(person)\n    });\n     if (includesManager || includesStockHolder) {\n      Paychecks.addBiggerBonus();\n    }\n    ```\n     @method any\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Boolean} `true` if the passed function returns `true` for any item\n    @public\n  */\n  any(callback, target = null) {\n    assert('`any` expects a function as first argument.', typeof callback === 'function');\n    return any(this, callback, target);\n  },\n\n  /**\n    Returns `true` if the passed property resolves to the value of the second\n    argument for any item in the array. This method is often simpler/faster\n    than using a callback.\n     Example usage:\n     ```javascript\n    const food = [\n      { food: 'apple', isFruit: true },\n      { food: 'bread', isFruit: false },\n      { food: 'banana', isFruit: true }\n    ];\n     food.isAny('isFruit'); // true\n    ```\n     @method isAny\n    @param {String} key the property to test\n    @param {String} [value] optional value to test against. Defaults to `true`\n    @return {Boolean}\n    @since 1.3.0\n    @public\n  */\n  isAny() {\n    return any(this, iter(...arguments));\n  },\n\n  /**\n    This will combine the values of the array into a single value. It\n    is a useful way to collect a summary value from an array. This\n    corresponds to the `reduce()` method defined in JavaScript 1.8.\n     The callback method you provide should have the following signature (all\n    parameters are optional):\n     ```javascript\n    function(previousValue, item, index, array);\n    ```\n     - `previousValue` is the value returned by the last call to the iterator.\n    - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n     Return the new cumulative value.\n     In addition to the callback you can also pass an `initialValue`. An error\n    will be raised if you do not pass an initial value and the enumerator is\n    empty.\n     Note that unlike the other methods, this method does not allow you to\n    pass a target object to set as this for the callback. It's part of the\n    spec. Sorry.\n     Example Usage:\n     ```javascript\n      let numbers = [1, 2, 3, 4, 5];\n       numbers.reduce(function(summation, current) {\n        return summation + current;\n      }); // 15 (1 + 2 + 3 + 4 + 5)\n       numbers.reduce(function(summation, current) {\n        return summation + current;\n      }, -15); // 0 (-15 + 1 + 2 + 3 + 4 + 5)\n        let binaryValues = [true, false, false];\n       binaryValues.reduce(function(truthValue, current) {\n        return truthValue && current;\n      }); // false (true && false && false)\n    ```\n     @method reduce\n    @param {Function} callback The callback to execute\n    @param {Object} initialValue Initial value for the reduce\n    @return {Object} The reduced value.\n    @public\n  */\n  reduce(callback, initialValue) {\n    assert('`reduce` expects a function as first argument.', typeof callback === 'function');\n    let ret = initialValue;\n    this.forEach(function (item, i) {\n      ret = callback(ret, item, i, this);\n    }, this);\n    return ret;\n  },\n\n  /**\n    Invokes the named method on every object in the receiver that\n    implements it. This method corresponds to the implementation in\n    Prototype 1.6.\n     ```javascript\n    class Person {\n      name = null;\n       constructor(name) {\n        this.name = name;\n      }\n       greet(prefix='Hello') {\n        return `${prefix} ${this.name}`;\n      }\n    }\n     let people = [new Person('Joe'), new Person('Matt')];\n     people.invoke('greet'); // ['Hello Joe', 'Hello Matt']\n    people.invoke('greet', 'Bonjour'); // ['Bonjour Joe', 'Bonjour Matt']\n    ```\n     @method invoke\n    @param {String} methodName the name of the method\n    @param {Object...} args optional arguments to pass as well.\n    @return {Array} return values from calling invoke.\n    @public\n  */\n  invoke(methodName, ...args) {\n    let ret = A();\n    this.forEach(item => ret.push(item[methodName]?.(...args)));\n    return ret;\n  },\n\n  /**\n    Simply converts the object into a genuine array. The order is not\n    guaranteed. Corresponds to the method implemented by Prototype.\n     @method toArray\n    @return {Array} the object as an array.\n    @public\n  */\n  toArray() {\n    return this.map(item => item);\n  },\n\n  /**\n    Returns a copy of the array with all `null` and `undefined` elements removed.\n     ```javascript\n    let arr = ['a', null, 'c', undefined];\n    arr.compact();  // ['a', 'c']\n    ```\n     @method compact\n    @return {Array} the array without null and undefined elements.\n    @public\n  */\n  compact() {\n    return this.filter(value => value != null);\n  },\n\n  /**\n    Used to determine if the array contains the passed object.\n    Returns `true` if found, `false` otherwise.\n     The optional `startAt` argument can be used to pass a starting\n    index to search from, effectively slicing the searchable portion\n    of the array. If it's negative it will add the array length to\n    the startAt value passed in as the index to search from. If less\n    than or equal to `-1 * array.length` the entire array is searched.\n     This method has the same behavior of JavaScript's [Array.includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes).\n     ```javascript\n    [1, 2, 3].includes(2);     // true\n    [1, 2, 3].includes(4);     // false\n    [1, 2, 3].includes(3, 2);  // true\n    [1, 2, 3].includes(3, 3);  // false\n    [1, 2, 3].includes(3, -1); // true\n    [1, 2, 3].includes(1, -1); // false\n    [1, 2, 3].includes(1, -4); // true\n    [1, 2, NaN].includes(NaN); // true\n    ```\n     @method includes\n    @param {Object} object The object to search for.\n    @param {Number} startAt optional starting location to search, default 0\n    @return {Boolean} `true` if object is found in the array.\n    @public\n  */\n  includes(object, startAt) {\n    return indexOf(this, object, startAt, true) !== -1;\n  },\n\n  /**\n    Sorts the array by the keys specified in the argument.\n     You may provide multiple arguments to sort by multiple properties.\n     ```javascript\n   let colors = [\n     { name: 'red', weight: 500 },\n     { name: 'green', weight: 600 },\n     { name: 'blue', weight: 500 }\n    ];\n    colors.sortBy('name');\n   // [{name: 'blue', weight: 500}, {name: 'green', weight: 600}, {name: 'red', weight: 500}]\n    colors.sortBy('weight', 'name');\n   // [{name: 'blue', weight: 500}, {name: 'red', weight: 500}, {name: 'green', weight: 600}]\n   ```\n     @method sortBy\n    @param {String} property name(s) to sort on\n    @return {Array} The sorted array.\n    @since 1.2.0\n    @public\n  */\n  sortBy() {\n    let sortKeys = arguments;\n    return this.toArray().sort((a, b) => {\n      for (let i = 0; i < sortKeys.length; i++) {\n        let key = sortKeys[i];\n        let propA = get(a, key);\n        let propB = get(b, key); // return 1 or -1 else continue to the next sortKey\n\n        let compareValue = compare(propA, propB);\n\n        if (compareValue) {\n          return compareValue;\n        }\n      }\n\n      return 0;\n    });\n  },\n\n  /**\n    Returns a new array that contains only unique values. The default\n    implementation returns an array regardless of the receiver type.\n     ```javascript\n    let arr = ['a', 'a', 'b', 'b'];\n    arr.uniq();  // ['a', 'b']\n    ```\n     This only works on primitive data types, e.g. Strings, Numbers, etc.\n     @method uniq\n    @return {EmberArray}\n    @public\n  */\n  uniq() {\n    return uniqBy(this);\n  },\n\n  /**\n    Returns a new array that contains only items containing a unique property value.\n    The default implementation returns an array regardless of the receiver type.\n     ```javascript\n    let arr = [{ value: 'a' }, { value: 'a' }, { value: 'b' }, { value: 'b' }];\n    arr.uniqBy('value');  // [{ value: 'a' }, { value: 'b' }]\n     let arr = [2.2, 2.1, 3.2, 3.3];\n    arr.uniqBy(Math.floor);  // [2.2, 3.2];\n    ```\n     @method uniqBy\n    @param {String,Function} key\n    @return {EmberArray}\n    @public\n  */\n  uniqBy(key) {\n    return uniqBy(this, key);\n  },\n\n  /**\n    Returns a new array that excludes the passed value. The default\n    implementation returns an array regardless of the receiver type.\n    If the receiver does not contain the value it returns the original array.\n     ```javascript\n    let arr = ['a', 'b', 'a', 'c'];\n    arr.without('a');  // ['b', 'c']\n    ```\n     @method without\n    @param {Object} value\n    @return {EmberArray}\n    @public\n  */\n  without(value) {\n    if (!this.includes(value)) {\n      return this; // nothing to do\n    } // SameValueZero comparison (NaN !== NaN)\n\n\n    let predicate = value === value ? item => item !== value : item => item === item;\n    return this.filter(predicate);\n  }\n\n});\n/**\n  This mixin defines the API for modifying array-like objects. These methods\n  can be applied only to a collection that keeps its items in an ordered set.\n  It builds upon the Array mixin and adds methods to modify the array.\n  One concrete implementations of this class include ArrayProxy.\n\n  It is important to use the methods in this class to modify arrays so that\n  changes are observable. This allows the binding system in Ember to function\n  correctly.\n\n\n  Note that an Array can change even if it does not implement this mixin.\n  For example, one might implement a SparseArray that cannot be directly\n  modified, but if its underlying enumerable changes, it will change also.\n\n  @class MutableArray\n  @uses EmberArray\n  @uses MutableEnumerable\n  @public\n*/\n\nconst MutableArray = Mixin.create(ArrayMixin, MutableEnumerable, {\n  /**\n    __Required.__ You must implement this method to apply this mixin.\n     This is one of the primitives you must implement to support `Array`.\n    You should replace amt objects started at idx with the objects in the\n    passed array. You should also call `this.arrayContentDidChange()`\n     Note that this method is expected to validate the type(s) of objects that it expects.\n     @method replace\n    @param {Number} idx Starting index in the array to replace. If\n      idx >= length, then append to the end of the array.\n    @param {Number} amt Number of elements that should be removed from\n      the array, starting at *idx*.\n    @param {EmberArray} objects An array of zero or more objects that should be\n      inserted into the array at *idx*\n    @public\n  */\n\n  /**\n    Remove all elements from the array. This is useful if you\n    want to reuse an existing array without having to recreate it.\n     ```javascript\n    let colors = ['red', 'green', 'blue'];\n     colors.length;  // 3\n    colors.clear(); // []\n    colors.length;  // 0\n    ```\n     @method clear\n    @return {Array} An empty Array.\n    @public\n  */\n  clear() {\n    let len = this.length;\n\n    if (len === 0) {\n      return this;\n    }\n\n    this.replace(0, len, EMPTY_ARRAY);\n    return this;\n  },\n\n  /**\n    This will use the primitive `replace()` method to insert an object at the\n    specified index.\n     ```javascript\n    let colors = ['red', 'green', 'blue'];\n     colors.insertAt(2, 'yellow');  // ['red', 'green', 'yellow', 'blue']\n    colors.insertAt(5, 'orange');  // Error: Index out of range\n    ```\n     @method insertAt\n    @param {Number} idx index of insert the object at.\n    @param {Object} object object to insert\n    @return {EmberArray} receiver\n    @public\n  */\n  insertAt(idx, object) {\n    insertAt(this, idx, object);\n    return this;\n  },\n\n  /**\n    Remove an object at the specified index using the `replace()` primitive\n    method. You can pass either a single index, or a start and a length.\n     If you pass a start and length that is beyond the\n    length this method will throw an assertion.\n     ```javascript\n    let colors = ['red', 'green', 'blue', 'yellow', 'orange'];\n     colors.removeAt(0);     // ['green', 'blue', 'yellow', 'orange']\n    colors.removeAt(2, 2);  // ['green', 'blue']\n    colors.removeAt(4, 2);  // Error: Index out of range\n    ```\n     @method removeAt\n    @param {Number} start index, start of range\n    @param {Number} len length of passing range\n    @return {EmberArray} receiver\n    @public\n  */\n  removeAt(start, len) {\n    return removeAt(this, start, len);\n  },\n\n  /**\n    Push the object onto the end of the array. Works just like `push()` but it\n    is KVO-compliant.\n     ```javascript\n    let colors = ['red', 'green'];\n     colors.pushObject('black');     // ['red', 'green', 'black']\n    colors.pushObject(['yellow']);  // ['red', 'green', ['yellow']]\n    ```\n     @method pushObject\n    @param {*} obj object to push\n    @return object same object passed as a param\n    @public\n  */\n  pushObject(obj) {\n    return insertAt(this, this.length, obj);\n  },\n\n  /**\n    Add the objects in the passed array to the end of the array. Defers\n    notifying observers of the change until all objects are added.\n     ```javascript\n    let colors = ['red'];\n     colors.pushObjects(['yellow', 'orange']);  // ['red', 'yellow', 'orange']\n    ```\n     @method pushObjects\n    @param {EmberArray} objects the objects to add\n    @return {EmberArray} receiver\n    @public\n  */\n  pushObjects(objects) {\n    this.replace(this.length, 0, objects);\n    return this;\n  },\n\n  /**\n    Pop object from array or nil if none are left. Works just like `pop()` but\n    it is KVO-compliant.\n     ```javascript\n    let colors = ['red', 'green', 'blue'];\n     colors.popObject();   // 'blue'\n    console.log(colors);  // ['red', 'green']\n    ```\n     @method popObject\n    @return object\n    @public\n  */\n  popObject() {\n    let len = this.length;\n\n    if (len === 0) {\n      return null;\n    }\n\n    let ret = objectAt(this, len - 1);\n    this.removeAt(len - 1, 1);\n    return ret;\n  },\n\n  /**\n    Shift an object from start of array or nil if none are left. Works just\n    like `shift()` but it is KVO-compliant.\n     ```javascript\n    let colors = ['red', 'green', 'blue'];\n     colors.shiftObject();  // 'red'\n    console.log(colors);   // ['green', 'blue']\n    ```\n     @method shiftObject\n    @return object\n    @public\n  */\n  shiftObject() {\n    if (this.length === 0) {\n      return null;\n    }\n\n    let ret = objectAt(this, 0);\n    this.removeAt(0);\n    return ret;\n  },\n\n  /**\n    Unshift an object to start of array. Works just like `unshift()` but it is\n    KVO-compliant.\n     ```javascript\n    let colors = ['red'];\n     colors.unshiftObject('yellow');    // ['yellow', 'red']\n    colors.unshiftObject(['black']);   // [['black'], 'yellow', 'red']\n    ```\n     @method unshiftObject\n    @param {*} obj object to unshift\n    @return object same object passed as a param\n    @public\n  */\n  unshiftObject(obj) {\n    return insertAt(this, 0, obj);\n  },\n\n  /**\n    Adds the named objects to the beginning of the array. Defers notifying\n    observers until all objects have been added.\n     ```javascript\n    let colors = ['red'];\n     colors.unshiftObjects(['black', 'white']);   // ['black', 'white', 'red']\n    colors.unshiftObjects('yellow'); // Type Error: 'undefined' is not a function\n    ```\n     @method unshiftObjects\n    @param {Enumberable} objects the objects to add\n    @return {EmberArray} receiver\n    @public\n  */\n  unshiftObjects(objects) {\n    this.replace(0, 0, objects);\n    return this;\n  },\n\n  /**\n    Reverse objects in the array. Works just like `reverse()` but it is\n    KVO-compliant.\n     @method reverseObjects\n    @return {EmberArray} receiver\n     @public\n  */\n  reverseObjects() {\n    let len = this.length;\n\n    if (len === 0) {\n      return this;\n    }\n\n    let objects = this.toArray().reverse();\n    this.replace(0, len, objects);\n    return this;\n  },\n\n  /**\n    Replace all the receiver's content with content of the argument.\n    If argument is an empty array receiver will be cleared.\n     ```javascript\n    let colors = ['red', 'green', 'blue'];\n     colors.setObjects(['black', 'white']);  // ['black', 'white']\n    colors.setObjects([]);                  // []\n    ```\n     @method setObjects\n    @param {EmberArray} objects array whose content will be used for replacing\n        the content of the receiver\n    @return {EmberArray} receiver with the new content\n    @public\n  */\n  setObjects(objects) {\n    if (objects.length === 0) {\n      return this.clear();\n    }\n\n    let len = this.length;\n    this.replace(0, len, objects);\n    return this;\n  },\n\n  /**\n    Remove all occurrences of an object in the array.\n     ```javascript\n    let cities = ['Chicago', 'Berlin', 'Lima', 'Chicago'];\n     cities.removeObject('Chicago');  // ['Berlin', 'Lima']\n    cities.removeObject('Lima');     // ['Berlin']\n    cities.removeObject('Tokyo')     // ['Berlin']\n    ```\n     @method removeObject\n    @param {*} obj object to remove\n    @return {EmberArray} receiver\n    @public\n  */\n  removeObject(obj) {\n    let loc = this.length || 0;\n\n    while (--loc >= 0) {\n      let curObject = objectAt(this, loc);\n\n      if (curObject === obj) {\n        this.removeAt(loc);\n      }\n    }\n\n    return this;\n  },\n\n  /**\n    Removes each object in the passed array from the receiver.\n     @method removeObjects\n    @param {EmberArray} objects the objects to remove\n    @return {EmberArray} receiver\n    @public\n  */\n  removeObjects(objects) {\n    beginPropertyChanges();\n\n    for (let i = objects.length - 1; i >= 0; i--) {\n      this.removeObject(objects[i]);\n    }\n\n    endPropertyChanges();\n    return this;\n  },\n\n  /**\n    Push the object onto the end of the array if it is not already\n    present in the array.\n     ```javascript\n    let cities = ['Chicago', 'Berlin'];\n     cities.addObject('Lima');    // ['Chicago', 'Berlin', 'Lima']\n    cities.addObject('Berlin');  // ['Chicago', 'Berlin', 'Lima']\n    ```\n     @method addObject\n    @param {*} obj object to add, if not already present\n    @return {EmberArray} receiver\n    @public\n  */\n  addObject(obj) {\n    let included = this.includes(obj);\n\n    if (!included) {\n      this.pushObject(obj);\n    }\n\n    return this;\n  },\n\n  /**\n    Adds each object in the passed array to the receiver.\n     @method addObjects\n    @param {EmberArray} objects the objects to add.\n    @return {EmberArray} receiver\n    @public\n  */\n  addObjects(objects) {\n    beginPropertyChanges();\n    objects.forEach(obj => this.addObject(obj));\n    endPropertyChanges();\n    return this;\n  }\n\n});\n/**\n  Creates an `Ember.NativeArray` from an Array-like object.\n  Does not modify the original object's contents. `A()` is not needed if\n  `EmberENV.EXTEND_PROTOTYPES` is `true` (the default value). However,\n  it is recommended that you use `A()` when creating addons for\n  ember or when you can not guarantee that `EmberENV.EXTEND_PROTOTYPES`\n  will be `true`.\n\n  Example\n\n  ```app/components/my-component.js\n  import Component from '@ember/component';\n  import { A } from '@ember/array';\n\n  export default Component.extend({\n    tagName: 'ul',\n    classNames: ['pagination'],\n\n    init() {\n      this._super(...arguments);\n\n      if (!this.get('content')) {\n        this.set('content', A());\n        this.set('otherContent', A([1,2,3]));\n      }\n    }\n  });\n  ```\n\n  @method A\n  @static\n  @for @ember/array\n  @return {Ember.NativeArray}\n  @public\n*/\n// Add Ember.Array to Array.prototype. Remove methods with native\n// implementations and supply some more optimized versions of generic methods\n// because they are so common.\n\n/**\n@module ember\n*/\n\n/**\n  The NativeArray mixin contains the properties needed to make the native\n  Array support MutableArray and all of its dependent APIs. Unless you\n  have `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Array` set to\n  false, this will be applied automatically. Otherwise you can apply the mixin\n  at anytime by calling `Ember.NativeArray.apply(Array.prototype)`.\n\n  @class Ember.NativeArray\n  @uses MutableArray\n  @uses Observable\n  @public\n*/\n\nlet NativeArray = Mixin.create(MutableArray, Observable, {\n  objectAt(idx) {\n    return this[idx];\n  },\n\n  // primitive for array support.\n  replace(start, deleteCount, items = EMPTY_ARRAY) {\n    assert('The third argument to replace needs to be an array.', Array.isArray(items));\n    replaceInNativeArray(this, start, deleteCount, items);\n    return this;\n  }\n\n}); // Remove any methods implemented natively so we don't override them\n\nconst ignore = ['length'];\nNativeArray.keys().forEach(methodName => {\n  if (Array.prototype[methodName]) {\n    ignore.push(methodName);\n  }\n});\nNativeArray = NativeArray.without(...ignore);\nlet A;\n\nif (ENV.EXTEND_PROTOTYPES.Array) {\n  NativeArray.apply(Array.prototype, true);\n\n  A = function (arr) {\n    assert('You cannot create an Ember Array with `new A()`, please update to calling A as a function: `A()`', !(this instanceof A));\n    return arr || [];\n  };\n} else {\n  A = function (arr) {\n    assert('You cannot create an Ember Array with `new A()`, please update to calling A as a function: `A()`', !(this instanceof A));\n\n    if (!arr) {\n      arr = [];\n    }\n\n    return ArrayMixin.detect(arr) ? arr : NativeArray.apply(arr);\n  };\n}\n\nexport { A, NativeArray, MutableArray };\nexport default ArrayMixin;","import { Mixin } from '@ember/-internals/metal';\n/**\n@module ember\n*/\n\n/**\n  Implements some standard methods for comparing objects. Add this mixin to\n  any class you create that can compare its instances.\n\n  You should implement the `compare()` method.\n\n  @class Comparable\n  @namespace Ember\n  @since Ember 0.9\n  @private\n*/\n\nexport default Mixin.create({\n  /**\n    __Required.__ You must implement this method to apply this mixin.\n     Override to return the result of the comparison of the two parameters. The\n    compare method should return:\n     - `-1` if `a < b`\n    - `0` if `a == b`\n    - `1` if `a > b`\n     Default implementation raises an exception.\n     @method compare\n    @param a {Object} the first object to compare\n    @param b {Object} the second object to compare\n    @return {Number} the result of the comparison\n    @private\n  */\n  compare: null\n});","import { schedule, join } from '@ember/runloop';\n/**\n@module ember\n*/\n\nimport { Mixin } from '@ember/-internals/metal';\n/**\n  ContainerProxyMixin is used to provide public access to specific\n  container functionality.\n\n  @class ContainerProxyMixin\n  @private\n*/\n\nlet containerProxyMixin = {\n  /**\n   The container stores state.\n    @private\n   @property {Ember.Container} __container__\n   */\n  __container__: null,\n\n  /**\n   Returns an object that can be used to provide an owner to a\n   manually created instance.\n    Example:\n    ```\n   import { getOwner } from '@ember/application';\n    let owner = getOwner(this);\n    User.create(\n     owner.ownerInjection(),\n     { username: 'rwjblue' }\n   )\n   ```\n    @public\n   @method ownerInjection\n   @since 2.3.0\n   @return {Object}\n  */\n  ownerInjection() {\n    return this.__container__.ownerInjection();\n  },\n\n  /**\n   Given a fullName return a corresponding instance.\n    The default behavior is for lookup to return a singleton instance.\n   The singleton is scoped to the container, allowing multiple containers\n   to all have their own locally scoped singletons.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    registry.register('api:twitter', Twitter);\n    let twitter = container.lookup('api:twitter');\n    twitter instanceof Twitter; // => true\n    // by default the container will return singletons\n   let twitter2 = container.lookup('api:twitter');\n   twitter2 instanceof Twitter; // => true\n    twitter === twitter2; //=> true\n   ```\n    If singletons are not wanted an optional flag can be provided at lookup.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    registry.register('api:twitter', Twitter);\n    let twitter = container.lookup('api:twitter', { singleton: false });\n   let twitter2 = container.lookup('api:twitter', { singleton: false });\n    twitter === twitter2; //=> false\n   ```\n    @public\n   @method lookup\n   @param {String} fullName\n   @param {Object} options\n   @return {any}\n   */\n  lookup(fullName, options) {\n    return this.__container__.lookup(fullName, options);\n  },\n\n  destroy() {\n    let container = this.__container__;\n\n    if (container) {\n      join(() => {\n        container.destroy();\n        schedule('destroy', container, 'finalizeDestroy');\n      });\n    }\n\n    this._super();\n  },\n\n  /**\n  Given a fullName return a factory manager.\n   This method returns a manager which can be used for introspection of the\n  factory's class or for the creation of factory instances with initial\n  properties. The manager is an object with the following properties:\n   * `class` - The registered or resolved class.\n  * `create` - A function that will create an instance of the class with\n    any dependencies injected.\n   For example:\n   ```javascript\n  import { getOwner } from '@ember/application';\n   let owner = getOwner(otherInstance);\n  // the owner is commonly the `applicationInstance`, and can be accessed via\n  // an instance initializer.\n   let factory = owner.factoryFor('service:bespoke');\n   factory.class;\n  // The registered or resolved class. For example when used with an Ember-CLI\n  // app, this would be the default export from `app/services/bespoke.js`.\n   let instance = factory.create({\n    someProperty: 'an initial property value'\n  });\n  // Create an instance with any injections and the passed options as\n  // initial properties.\n  ```\n   Any instances created via the factory's `.create()` method *must* be destroyed\n  manually by the caller of `.create()`. Typically, this is done during the creating\n  objects own `destroy` or `willDestroy` methods.\n   @public\n  @method factoryFor\n  @param {String} fullName\n  @param {Object} options\n  @return {FactoryManager}\n  */\n  factoryFor(fullName, options = {}) {\n    return this.__container__.factoryFor(fullName, options);\n  }\n\n};\nexport default Mixin.create(containerProxyMixin);","/**\n@module ember\n*/\nimport { Mixin } from '@ember/-internals/metal';\n/**\n  Implements some standard methods for copying an object. Add this mixin to\n  any object you create that can create a copy of itself. This mixin is\n  added automatically to the built-in array.\n\n  You should generally implement the `copy()` method to return a copy of the\n  receiver.\n\n  @class Copyable\n  @namespace Ember\n  @since Ember 0.9\n  @deprecated Use 'ember-copy' addon instead\n  @private\n*/\n\nexport default Mixin.create({\n  /**\n    __Required.__ You must implement this method to apply this mixin.\n     Override to return a copy of the receiver. Default implementation raises\n    an exception.\n     @method copy\n    @param {Boolean} deep if `true`, a deep copy of the object should be made\n    @return {Object} copy of receiver\n    @private\n  */\n  copy: null\n});","import { Mixin } from '@ember/-internals/metal';\n/**\n@module @ember/enumerable\n@private\n*/\n\n/**\n  The methods in this mixin have been moved to [MutableArray](/ember/release/classes/MutableArray). This mixin has\n  been intentionally preserved to avoid breaking Enumerable.detect checks\n  until the community migrates away from them.\n\n  @class Enumerable\n  @private\n*/\n\nexport default Mixin.create();","import { Mixin, addListener, removeListener, hasListeners, sendEvent } from '@ember/-internals/metal';\n/**\n@module @ember/object\n*/\n\n/**\n  This mixin allows for Ember objects to subscribe to and emit events.\n\n  ```app/utils/person.js\n  import EmberObject from '@ember/object';\n  import Evented from '@ember/object/evented';\n\n  export default EmberObject.extend(Evented, {\n    greet() {\n      // ...\n      this.trigger('greet');\n    }\n  });\n  ```\n\n  ```javascript\n  var person = Person.create();\n\n  person.on('greet', function() {\n    console.log('Our person has greeted');\n  });\n\n  person.greet();\n\n  // outputs: 'Our person has greeted'\n  ```\n\n  You can also chain multiple event subscriptions:\n\n  ```javascript\n  person.on('greet', function() {\n    console.log('Our person has greeted');\n  }).one('greet', function() {\n    console.log('Offer one-time special');\n  }).off('event', this, forgetThis);\n  ```\n\n  @class Evented\n  @public\n */\n\nexport default Mixin.create({\n  /**\n    Subscribes to a named event with given function.\n     ```javascript\n    person.on('didLoad', function() {\n      // fired once the person has loaded\n    });\n    ```\n     An optional target can be passed in as the 2nd argument that will\n    be set as the \"this\" for the callback. This is a good way to give your\n    function access to the object triggering the event. When the target\n    parameter is used the callback method becomes the third argument.\n     @method on\n    @param {String} name The name of the event\n    @param {Object} [target] The \"this\" binding for the callback\n    @param {Function|String} method A function or the name of a function to be called on `target`\n    @return this\n    @public\n  */\n  on(name, target, method) {\n    addListener(this, name, target, method);\n    return this;\n  },\n\n  /**\n    Subscribes a function to a named event and then cancels the subscription\n    after the first time the event is triggered. It is good to use ``one`` when\n    you only care about the first time an event has taken place.\n     This function takes an optional 2nd argument that will become the \"this\"\n    value for the callback. When the target parameter is used the callback method\n    becomes the third argument.\n     @method one\n    @param {String} name The name of the event\n    @param {Object} [target] The \"this\" binding for the callback\n    @param {Function|String} method A function or the name of a function to be called on `target`\n    @return this\n    @public\n  */\n  one(name, target, method) {\n    addListener(this, name, target, method, true);\n    return this;\n  },\n\n  /**\n    Triggers a named event for the object. Any additional arguments\n    will be passed as parameters to the functions that are subscribed to the\n    event.\n     ```javascript\n    person.on('didEat', function(food) {\n      console.log('person ate some ' + food);\n    });\n     person.trigger('didEat', 'broccoli');\n     // outputs: person ate some broccoli\n    ```\n    @method trigger\n    @param {String} name The name of the event\n    @param {Object...} args Optional arguments to pass on\n    @public\n  */\n  trigger(name, ...args) {\n    sendEvent(this, name, args);\n  },\n\n  /**\n    Cancels subscription for given name, target, and method.\n     @method off\n    @param {String} name The name of the event\n    @param {Object} target The target of the subscription\n    @param {Function|String} method The function or the name of a function of the subscription\n    @return this\n    @public\n  */\n  off(name, target, method) {\n    removeListener(this, name, target, method);\n    return this;\n  },\n\n  /**\n    Checks to see if object has any subscriptions for named event.\n     @method has\n    @param {String} name The name of the event\n    @return {Boolean} does the object have a subscription for event\n    @public\n   */\n  has(name) {\n    return hasListeners(this, name);\n  }\n\n});","import Enumerable from './enumerable';\nimport { Mixin } from '@ember/-internals/metal';\n/**\n@module ember\n*/\n\n/**\n  The methods in this mixin have been moved to MutableArray. This mixin has\n  been intentionally preserved to avoid breaking MutableEnumerable.detect\n  checks until the community migrates away from them.\n\n  @class MutableEnumerable\n  @namespace Ember\n  @uses Enumerable\n  @private\n*/\n\nexport default Mixin.create(Enumerable);","/**\n@module @ember/object\n*/\nimport { peekMeta } from '@ember/-internals/meta';\nimport { get, getWithDefault, set, getProperties, setProperties, Mixin, hasListeners, beginPropertyChanges, notifyPropertyChange, endPropertyChanges, addObserver, removeObserver } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\n/**\n  ## Overview\n\n  This mixin provides properties and property observing functionality, core\n  features of the Ember object model.\n\n  Properties and observers allow one object to observe changes to a\n  property on another object. This is one of the fundamental ways that\n  models, controllers and views communicate with each other in an Ember\n  application.\n\n  Any object that has this mixin applied can be used in observer\n  operations. That includes `EmberObject` and most objects you will\n  interact with as you write your Ember application.\n\n  Note that you will not generally apply this mixin to classes yourself,\n  but you will use the features provided by this module frequently, so it\n  is important to understand how to use it.\n\n  ## Using `get()` and `set()`\n\n  Because of Ember's support for bindings and observers, you will always\n  access properties using the get method, and set properties using the\n  set method. This allows the observing objects to be notified and\n  computed properties to be handled properly.\n\n  More documentation about `get` and `set` are below.\n\n  ## Observing Property Changes\n\n  You typically observe property changes simply by using the `observer`\n  function in classes that you write.\n\n  For example:\n\n  ```javascript\n  import { observer } from '@ember/object';\n  import EmberObject from '@ember/object';\n\n  EmberObject.extend({\n    valueObserver: observer('value', function(sender, key, value, rev) {\n      // Executes whenever the \"value\" property changes\n      // See the addObserver method for more information about the callback arguments\n    })\n  });\n  ```\n\n  Although this is the most common way to add an observer, this capability\n  is actually built into the `EmberObject` class on top of two methods\n  defined in this mixin: `addObserver` and `removeObserver`. You can use\n  these two methods to add and remove observers yourself if you need to\n  do so at runtime.\n\n  To add an observer for a property, call:\n\n  ```javascript\n  object.addObserver('propertyKey', targetObject, targetAction)\n  ```\n\n  This will call the `targetAction` method on the `targetObject` whenever\n  the value of the `propertyKey` changes.\n\n  Note that if `propertyKey` is a computed property, the observer will be\n  called when any of the property dependencies are changed, even if the\n  resulting value of the computed property is unchanged. This is necessary\n  because computed properties are not computed until `get` is called.\n\n  @class Observable\n  @public\n*/\n\nexport default Mixin.create({\n  /**\n    Retrieves the value of a property from the object.\n     This method is usually similar to using `object[keyName]` or `object.keyName`,\n    however it supports both computed properties and the unknownProperty\n    handler.\n     Because `get` unifies the syntax for accessing all these kinds\n    of properties, it can make many refactorings easier, such as replacing a\n    simple property with a computed property, or vice versa.\n     ### Computed Properties\n     Computed properties are methods defined with the `property` modifier\n    declared at the end, such as:\n     ```javascript\n    import { computed } from '@ember/object';\n     fullName: computed('firstName', 'lastName', function() {\n      return this.get('firstName') + ' ' + this.get('lastName');\n    })\n    ```\n     When you call `get` on a computed property, the function will be\n    called and the return value will be returned instead of the function\n    itself.\n     ### Unknown Properties\n     Likewise, if you try to call `get` on a property whose value is\n    `undefined`, the `unknownProperty()` method will be called on the object.\n    If this method returns any value other than `undefined`, it will be returned\n    instead. This allows you to implement \"virtual\" properties that are\n    not defined upfront.\n     @method get\n    @param {String} keyName The property to retrieve\n    @return {Object} The property value or undefined.\n    @public\n  */\n  get(keyName) {\n    return get(this, keyName);\n  },\n\n  /**\n    To get the values of multiple properties at once, call `getProperties`\n    with a list of strings or an array:\n     ```javascript\n    record.getProperties('firstName', 'lastName', 'zipCode');\n    // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n    ```\n     is equivalent to:\n     ```javascript\n    record.getProperties(['firstName', 'lastName', 'zipCode']);\n    // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n    ```\n     @method getProperties\n    @param {String...|Array} list of keys to get\n    @return {Object}\n    @public\n  */\n  getProperties(...args) {\n    return getProperties(...[this].concat(args));\n  },\n\n  /**\n    Sets the provided key or path to the value.\n     ```javascript\n    record.set(\"key\", value);\n    ```\n     This method is generally very similar to calling `object[\"key\"] = value` or\n    `object.key = value`, except that it provides support for computed\n    properties, the `setUnknownProperty()` method and property observers.\n     ### Computed Properties\n     If you try to set a value on a key that has a computed property handler\n    defined (see the `get()` method for an example), then `set()` will call\n    that method, passing both the value and key instead of simply changing\n    the value itself. This is useful for those times when you need to\n    implement a property that is composed of one or more member\n    properties.\n     ### Unknown Properties\n     If you try to set a value on a key that is undefined in the target\n    object, then the `setUnknownProperty()` handler will be called instead. This\n    gives you an opportunity to implement complex \"virtual\" properties that\n    are not predefined on the object. If `setUnknownProperty()` returns\n    undefined, then `set()` will simply set the value on the object.\n     ### Property Observers\n     In addition to changing the property, `set()` will also register a property\n    change with the object. Unless you have placed this call inside of a\n    `beginPropertyChanges()` and `endPropertyChanges(),` any \"local\" observers\n    (i.e. observer methods declared on the same object), will be called\n    immediately. Any \"remote\" observers (i.e. observer methods declared on\n    another object) will be placed in a queue and called at a later time in a\n    coalesced manner.\n     @method set\n    @param {String} keyName The property to set\n    @param {Object} value The value to set or `null`.\n    @return {Object} The passed value\n    @public\n  */\n  set(keyName, value) {\n    return set(this, keyName, value);\n  },\n\n  /**\n    Sets a list of properties at once. These properties are set inside\n    a single `beginPropertyChanges` and `endPropertyChanges` batch, so\n    observers will be buffered.\n     ```javascript\n    record.setProperties({ firstName: 'Charles', lastName: 'Jolley' });\n    ```\n     @method setProperties\n    @param {Object} hash the hash of keys and values to set\n    @return {Object} The passed in hash\n    @public\n  */\n  setProperties(hash) {\n    return setProperties(this, hash);\n  },\n\n  /**\n    Begins a grouping of property changes.\n     You can use this method to group property changes so that notifications\n    will not be sent until the changes are finished. If you plan to make a\n    large number of changes to an object at one time, you should call this\n    method at the beginning of the changes to begin deferring change\n    notifications. When you are done making changes, call\n    `endPropertyChanges()` to deliver the deferred change notifications and end\n    deferring.\n     @method beginPropertyChanges\n    @return {Observable}\n    @private\n  */\n  beginPropertyChanges() {\n    beginPropertyChanges();\n    return this;\n  },\n\n  /**\n    Ends a grouping of property changes.\n     You can use this method to group property changes so that notifications\n    will not be sent until the changes are finished. If you plan to make a\n    large number of changes to an object at one time, you should call\n    `beginPropertyChanges()` at the beginning of the changes to defer change\n    notifications. When you are done making changes, call this method to\n    deliver the deferred change notifications and end deferring.\n     @method endPropertyChanges\n    @return {Observable}\n    @private\n  */\n  endPropertyChanges() {\n    endPropertyChanges();\n    return this;\n  },\n\n  /**\n    Notify the observer system that a property has just changed.\n     Sometimes you need to change a value directly or indirectly without\n    actually calling `get()` or `set()` on it. In this case, you can use this\n    method instead. Calling this method will notify all observers that the\n    property has potentially changed value.\n     @method notifyPropertyChange\n    @param {String} keyName The property key to be notified about.\n    @return {Observable}\n    @public\n  */\n  notifyPropertyChange(keyName) {\n    notifyPropertyChange(this, keyName);\n    return this;\n  },\n\n  /**\n    Adds an observer on a property.\n     This is the core method used to register an observer for a property.\n     Once you call this method, any time the key's value is set, your observer\n    will be notified. Note that the observers are triggered any time the\n    value is set, regardless of whether it has actually changed. Your\n    observer should be prepared to handle that.\n     There are two common invocation patterns for `.addObserver()`:\n     - Passing two arguments:\n      - the name of the property to observe (as a string)\n      - the function to invoke (an actual function)\n    - Passing three arguments:\n      - the name of the property to observe (as a string)\n      - the target object (will be used to look up and invoke a\n        function on)\n      - the name of the function to invoke on the target object\n        (as a string).\n     ```app/components/my-component.js\n    import Component from '@ember/component';\n     export default Component.extend({\n      init() {\n        this._super(...arguments);\n         // the following are equivalent:\n         // using three arguments\n        this.addObserver('foo', this, 'fooDidChange');\n         // using two arguments\n        this.addObserver('foo', (...args) => {\n          this.fooDidChange(...args);\n        });\n      },\n       fooDidChange() {\n        // your custom logic code\n      }\n    });\n    ```\n     ### Observer Methods\n     Observer methods have the following signature:\n     ```app/components/my-component.js\n    import Component from '@ember/component';\n     export default Component.extend({\n      init() {\n        this._super(...arguments);\n        this.addObserver('foo', this, 'fooDidChange');\n      },\n       fooDidChange(sender, key, value, rev) {\n        // your code\n      }\n    });\n    ```\n     The `sender` is the object that changed. The `key` is the property that\n    changes. The `value` property is currently reserved and unused. The `rev`\n    is the last property revision of the object when it changed, which you can\n    use to detect if the key value has really changed or not.\n     Usually you will not need the value or revision parameters at\n    the end. In this case, it is common to write observer methods that take\n    only a sender and key value as parameters or, if you aren't interested in\n    any of these values, to write an observer that has no parameters at all.\n     @method addObserver\n    @param {String} key The key to observe\n    @param {Object} target The target object to invoke\n    @param {String|Function} method The method to invoke\n    @param {Boolean} sync Whether the observer is sync or not\n    @return {Observable}\n    @public\n  */\n  addObserver(key, target, method, sync) {\n    addObserver(this, key, target, method, sync);\n    return this;\n  },\n\n  /**\n    Remove an observer you have previously registered on this object. Pass\n    the same key, target, and method you passed to `addObserver()` and your\n    target will no longer receive notifications.\n     @method removeObserver\n    @param {String} key The key to observe\n    @param {Object} target The target object to invoke\n    @param {String|Function} method The method to invoke\n    @param {Boolean} sync Whether the observer is async or not\n    @return {Observable}\n    @public\n  */\n  removeObserver(key, target, method, sync) {\n    removeObserver(this, key, target, method, sync);\n    return this;\n  },\n\n  /**\n    Returns `true` if the object currently has observers registered for a\n    particular key. You can use this method to potentially defer performing\n    an expensive action until someone begins observing a particular property\n    on the object.\n     @method hasObserverFor\n    @param {String} key Key to check\n    @return {Boolean}\n    @private\n  */\n  hasObserverFor(key) {\n    return hasListeners(this, `${key}:change`);\n  },\n\n  /**\n    Retrieves the value of a property, or a default value in the case that the\n    property returns `undefined`.\n     ```javascript\n    person.getWithDefault('lastName', 'Doe');\n    ```\n     @method getWithDefault\n    @param {String} keyName The name of the property to retrieve\n    @param {Object} defaultValue The value to return if the property value is undefined\n    @return {Object} The property value or the defaultValue.\n    @public\n    @deprecated\n  */\n  getWithDefault(keyName, defaultValue) {\n    return getWithDefault(this, keyName, defaultValue);\n  },\n\n  /**\n    Set the value of a property to the current value plus some amount.\n     ```javascript\n    person.incrementProperty('age');\n    team.incrementProperty('score', 2);\n    ```\n     @method incrementProperty\n    @param {String} keyName The name of the property to increment\n    @param {Number} increment The amount to increment by. Defaults to 1\n    @return {Number} The new property value\n    @public\n  */\n  incrementProperty(keyName, increment = 1) {\n    assert('Must pass a numeric value to incrementProperty', !isNaN(parseFloat(increment)) && isFinite(increment));\n    return set(this, keyName, (parseFloat(get(this, keyName)) || 0) + increment);\n  },\n\n  /**\n    Set the value of a property to the current value minus some amount.\n     ```javascript\n    player.decrementProperty('lives');\n    orc.decrementProperty('health', 5);\n    ```\n     @method decrementProperty\n    @param {String} keyName The name of the property to decrement\n    @param {Number} decrement The amount to decrement by. Defaults to 1\n    @return {Number} The new property value\n    @public\n  */\n  decrementProperty(keyName, decrement = 1) {\n    assert('Must pass a numeric value to decrementProperty', !isNaN(parseFloat(decrement)) && isFinite(decrement));\n    return set(this, keyName, (get(this, keyName) || 0) - decrement);\n  },\n\n  /**\n    Set the value of a boolean property to the opposite of its\n    current value.\n     ```javascript\n    starship.toggleProperty('warpDriveEngaged');\n    ```\n     @method toggleProperty\n    @param {String} keyName The name of the property to toggle\n    @return {Boolean} The new property value\n    @public\n  */\n  toggleProperty(keyName) {\n    return set(this, keyName, !get(this, keyName));\n  },\n\n  /**\n    Returns the cached value of a computed property, if it exists.\n    This allows you to inspect the value of a computed property\n    without accidentally invoking it if it is intended to be\n    generated lazily.\n     @method cacheFor\n    @param {String} keyName\n    @return {Object} The cached value of the computed property, if any\n    @public\n  */\n  cacheFor(keyName) {\n    let meta = peekMeta(this);\n\n    if (meta !== null) {\n      return meta.valueFor(keyName);\n    }\n  }\n\n});","import { get, setProperties, computed, Mixin } from '@ember/-internals/metal';\nimport EmberError from '@ember/error';\n/**\n  @module @ember/object\n*/\n\nfunction tap(proxy, promise) {\n  setProperties(proxy, {\n    isFulfilled: false,\n    isRejected: false\n  });\n  return promise.then(value => {\n    if (!proxy.isDestroyed && !proxy.isDestroying) {\n      setProperties(proxy, {\n        content: value,\n        isFulfilled: true\n      });\n    }\n\n    return value;\n  }, reason => {\n    if (!proxy.isDestroyed && !proxy.isDestroying) {\n      setProperties(proxy, {\n        reason,\n        isRejected: true\n      });\n    }\n\n    throw reason;\n  }, 'Ember: PromiseProxy');\n}\n/**\n  A low level mixin making ObjectProxy promise-aware.\n\n  ```javascript\n  import { resolve } from 'rsvp';\n  import $ from 'jquery';\n  import ObjectProxy from '@ember/object/proxy';\n  import PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n\n  let ObjectPromiseProxy = ObjectProxy.extend(PromiseProxyMixin);\n\n  let proxy = ObjectPromiseProxy.create({\n    promise: resolve($.getJSON('/some/remote/data.json'))\n  });\n\n  proxy.then(function(json){\n     // the json\n  }, function(reason) {\n     // the reason why you have no json\n  });\n  ```\n\n  the proxy has bindable attributes which\n  track the promises life cycle\n\n  ```javascript\n  proxy.get('isPending')   //=> true\n  proxy.get('isSettled')  //=> false\n  proxy.get('isRejected')  //=> false\n  proxy.get('isFulfilled') //=> false\n  ```\n\n  When the $.getJSON completes, and the promise is fulfilled\n  with json, the life cycle attributes will update accordingly.\n  Note that $.getJSON doesn't return an ECMA specified promise,\n  it is useful to wrap this with an `RSVP.resolve` so that it behaves\n  as a spec compliant promise.\n\n  ```javascript\n  proxy.get('isPending')   //=> false\n  proxy.get('isSettled')   //=> true\n  proxy.get('isRejected')  //=> false\n  proxy.get('isFulfilled') //=> true\n  ```\n\n  As the proxy is an ObjectProxy, and the json now its content,\n  all the json properties will be available directly from the proxy.\n\n  ```javascript\n  // Assuming the following json:\n  {\n    firstName: 'Stefan',\n    lastName: 'Penner'\n  }\n\n  // both properties will accessible on the proxy\n  proxy.get('firstName') //=> 'Stefan'\n  proxy.get('lastName')  //=> 'Penner'\n  ```\n\n  @class PromiseProxyMixin\n  @public\n*/\n\n\nexport default Mixin.create({\n  /**\n    If the proxied promise is rejected this will contain the reason\n    provided.\n     @property reason\n    @default null\n    @public\n  */\n  reason: null,\n\n  /**\n    Once the proxied promise has settled this will become `false`.\n     @property isPending\n    @default true\n    @public\n  */\n  isPending: computed('isSettled', function () {\n    return !get(this, 'isSettled');\n  }).readOnly(),\n\n  /**\n    Once the proxied promise has settled this will become `true`.\n     @property isSettled\n    @default false\n    @public\n  */\n  isSettled: computed('isRejected', 'isFulfilled', function () {\n    return get(this, 'isRejected') || get(this, 'isFulfilled');\n  }).readOnly(),\n\n  /**\n    Will become `true` if the proxied promise is rejected.\n     @property isRejected\n    @default false\n    @public\n  */\n  isRejected: false,\n\n  /**\n    Will become `true` if the proxied promise is fulfilled.\n     @property isFulfilled\n    @default false\n    @public\n  */\n  isFulfilled: false,\n\n  /**\n    The promise whose fulfillment value is being proxied by this object.\n     This property must be specified upon creation, and should not be\n    changed once created.\n     Example:\n     ```javascript\n    import ObjectProxy from '@ember/object/proxy';\n    import PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n     ObjectProxy.extend(PromiseProxyMixin).create({\n      promise: <thenable>\n    });\n    ```\n     @property promise\n    @public\n  */\n  promise: computed({\n    get() {\n      throw new EmberError(\"PromiseProxy's promise must be set\");\n    },\n\n    set(key, promise) {\n      return tap(this, promise);\n    }\n\n  }),\n\n  /**\n    An alias to the proxied promise's `then`.\n     See RSVP.Promise.then.\n     @method then\n    @param {Function} callback\n    @return {RSVP.Promise}\n    @public\n  */\n  then: promiseAlias('then'),\n\n  /**\n    An alias to the proxied promise's `catch`.\n     See RSVP.Promise.catch.\n     @method catch\n    @param {Function} callback\n    @return {RSVP.Promise}\n    @since 1.3.0\n    @public\n  */\n  catch: promiseAlias('catch'),\n\n  /**\n    An alias to the proxied promise's `finally`.\n     See RSVP.Promise.finally.\n     @method finally\n    @param {Function} callback\n    @return {RSVP.Promise}\n    @since 1.3.0\n    @public\n  */\n  finally: promiseAlias('finally')\n});\n\nfunction promiseAlias(name) {\n  return function () {\n    let promise = get(this, 'promise');\n    return promise[name](...arguments);\n  };\n}","/**\n@module ember\n*/\nimport { assert } from '@ember/debug';\nimport { Mixin } from '@ember/-internals/metal';\n/**\n  RegistryProxyMixin is used to provide public access to specific\n  registry functionality.\n\n  @class RegistryProxyMixin\n  @private\n*/\n\nexport default Mixin.create({\n  __registry__: null,\n\n  /**\n   Given a fullName return the corresponding factory.\n    @public\n   @method resolveRegistration\n   @param {String} fullName\n   @return {Function} fullName's factory\n   */\n  resolveRegistration(fullName, options) {\n    assert('fullName must be a proper full name', this.__registry__.isValidFullName(fullName));\n    return this.__registry__.resolve(fullName, options);\n  },\n\n  /**\n    Registers a factory that can be used for dependency injection (with\n    `inject`) or for service lookup. Each factory is registered with\n    a full name including two parts: `type:name`.\n     A simple example:\n     ```javascript\n    import Application from '@ember/application';\n    import EmberObject from '@ember/object';\n     let App = Application.create();\n     App.Orange = EmberObject.extend();\n    App.register('fruit:favorite', App.Orange);\n    ```\n     Ember will resolve factories from the `App` namespace automatically.\n    For example `App.CarsController` will be discovered and returned if\n    an application requests `controller:cars`.\n     An example of registering a controller with a non-standard name:\n     ```javascript\n    import Application from '@ember/application';\n    import Controller from '@ember/controller';\n     let App = Application.create();\n    let Session = Controller.extend();\n     App.register('controller:session', Session);\n     // The Session controller can now be treated like a normal controller,\n    // despite its non-standard name.\n    App.ApplicationController = Controller.extend({\n      needs: ['session']\n    });\n    ```\n     Registered factories are **instantiated** by having `create`\n    called on them. Additionally they are **singletons**, each time\n    they are looked up they return the same instance.\n     Some examples modifying that default behavior:\n     ```javascript\n    import Application from '@ember/application';\n    import EmberObject from '@ember/object';\n     let App = Application.create();\n     App.Person = EmberObject.extend();\n    App.Orange = EmberObject.extend();\n    App.Email = EmberObject.extend();\n    App.session = EmberObject.create();\n     App.register('model:user', App.Person, { singleton: false });\n    App.register('fruit:favorite', App.Orange);\n    App.register('communication:main', App.Email, { singleton: false });\n    App.register('session', App.session, { instantiate: false });\n    ```\n     @method register\n    @param  fullName {String} type:name (e.g., 'model:user')\n    @param  factory {any} (e.g., App.Person)\n    @param  options {Object} (optional) disable instantiation or singleton usage\n    @public\n   */\n  register: registryAlias('register'),\n\n  /**\n   Unregister a factory.\n    ```javascript\n   import Application from '@ember/application';\n   import EmberObject from '@ember/object';\n    let App = Application.create();\n   let User = EmberObject.extend();\n   App.register('model:user', User);\n    App.resolveRegistration('model:user').create() instanceof User //=> true\n    App.unregister('model:user')\n   App.resolveRegistration('model:user') === undefined //=> true\n   ```\n    @public\n   @method unregister\n   @param {String} fullName\n   */\n  unregister: registryAlias('unregister'),\n\n  /**\n   Check if a factory is registered.\n    @public\n   @method hasRegistration\n   @param {String} fullName\n   @return {Boolean}\n   */\n  hasRegistration: registryAlias('has'),\n\n  /**\n   Return a specific registered option for a particular factory.\n    @public\n   @method registeredOption\n   @param  {String} fullName\n   @param  {String} optionName\n   @return {Object} options\n   */\n  registeredOption: registryAlias('getOption'),\n\n  /**\n   Register options for a particular factory.\n    @public\n   @method registerOptions\n   @param {String} fullName\n   @param {Object} options\n   */\n  registerOptions: registryAlias('options'),\n\n  /**\n   Return registered options for a particular factory.\n    @public\n   @method registeredOptions\n   @param  {String} fullName\n   @return {Object} options\n   */\n  registeredOptions: registryAlias('getOptions'),\n\n  /**\n   Allow registering options for all factories of a type.\n    ```javascript\n   import Application from '@ember/application';\n    let App = Application.create();\n   let appInstance = App.buildInstance();\n    // if all of type `connection` must not be singletons\n   appInstance.registerOptionsForType('connection', { singleton: false });\n    appInstance.register('connection:twitter', TwitterConnection);\n   appInstance.register('connection:facebook', FacebookConnection);\n    let twitter = appInstance.lookup('connection:twitter');\n   let twitter2 = appInstance.lookup('connection:twitter');\n    twitter === twitter2; // => false\n    let facebook = appInstance.lookup('connection:facebook');\n   let facebook2 = appInstance.lookup('connection:facebook');\n    facebook === facebook2; // => false\n   ```\n    @public\n   @method registerOptionsForType\n   @param {String} type\n   @param {Object} options\n   */\n  registerOptionsForType: registryAlias('optionsForType'),\n\n  /**\n   Return the registered options for all factories of a type.\n    @public\n   @method registeredOptionsForType\n   @param {String} type\n   @return {Object} options\n   */\n  registeredOptionsForType: registryAlias('getOptionsForType'),\n\n  /**\n    Define a dependency injection onto a specific factory or all factories\n    of a type.\n     When Ember instantiates a controller, view, or other framework component\n    it can attach a dependency to that component. This is often used to\n    provide services to a set of framework components.\n     An example of providing a session object to all controllers:\n     ```javascript\n    import { alias } from '@ember/object/computed';\n    import Application from '@ember/application';\n    import Controller from '@ember/controller';\n    import EmberObject from '@ember/object';\n     let App = Application.create();\n    let Session = EmberObject.extend({ isAuthenticated: false });\n     // A factory must be registered before it can be injected\n    App.register('session:main', Session);\n     // Inject 'session:main' onto all factories of the type 'controller'\n    // with the name 'session'\n    App.inject('controller', 'session', 'session:main');\n     App.IndexController = Controller.extend({\n      isLoggedIn: alias('session.isAuthenticated')\n    });\n    ```\n     Injections can also be performed on specific factories.\n     ```javascript\n    App.inject(<full_name or type>, <property name>, <full_name>)\n    App.inject('route', 'source', 'source:main')\n    App.inject('route:application', 'email', 'model:email')\n    ```\n     It is important to note that injections can only be performed on\n    classes that are instantiated by Ember itself. Instantiating a class\n    directly (via `create` or `new`) bypasses the dependency injection\n    system.\n     @public\n    @method inject\n    @param  factoryNameOrType {String}\n    @param  property {String}\n    @param  injectionName {String}\n  **/\n  inject: registryAlias('injection')\n});\n\nfunction registryAlias(name) {\n  return function () {\n    return this.__registry__[name](...arguments);\n  };\n}","/**\n@module ember\n*/\nimport { context } from '@ember/-internals/environment';\nimport { get, Mixin, computed } from '@ember/-internals/metal';\nimport { assert, deprecate } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\n\nif (DEBUG && true\n/* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n) {\n  Mixin._disableDebugSeal = true;\n}\n/**\n`Ember.TargetActionSupport` is a mixin that can be included in a class\nto add a `triggerAction` method with semantics similar to the Handlebars\n`{{action}}` helper. In normal Ember usage, the `{{action}}` helper is\nusually the best choice. This mixin is most often useful when you are\ndoing more complex event handling in Components.\n\n@class TargetActionSupport\n@namespace Ember\n@extends Mixin\n@private\n*/\n\n\nconst TargetActionSupport = Mixin.create({\n  target: null,\n  action: null,\n  actionContext: null,\n  actionContextObject: computed('actionContext', function () {\n    let actionContext = get(this, 'actionContext');\n\n    if (typeof actionContext === 'string') {\n      let value = get(this, actionContext);\n\n      if (value === undefined) {\n        value = get(context.lookup, actionContext);\n      }\n\n      return value;\n    } else {\n      return actionContext;\n    }\n  }),\n\n  /**\n  Send an `action` with an `actionContext` to a `target`. The action, actionContext\n  and target will be retrieved from properties of the object. For example:\n   ```javascript\n  import { alias } from '@ember/object/computed';\n   App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n    target: alias('controller'),\n    action: 'save',\n    actionContext: alias('context'),\n    click() {\n      this.triggerAction(); // Sends the `save` action, along with the current context\n                            // to the current controller\n    }\n  });\n  ```\n   The `target`, `action`, and `actionContext` can be provided as properties of\n  an optional object argument to `triggerAction` as well.\n   ```javascript\n  App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n    click() {\n      this.triggerAction({\n        action: 'save',\n        target: this.get('controller'),\n        actionContext: this.get('context')\n      }); // Sends the `save` action, along with the current context\n          // to the current controller\n    }\n  });\n  ```\n   The `actionContext` defaults to the object you are mixing `TargetActionSupport` into.\n  But `target` and `action` must be specified either as properties or with the argument\n  to `triggerAction`, or a combination:\n   ```javascript\n  import { alias } from '@ember/object/computed';\n   App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n    target: alias('controller'),\n    click() {\n      this.triggerAction({\n        action: 'save'\n      }); // Sends the `save` action, along with a reference to `this`,\n          // to the current controller\n    }\n  });\n  ```\n   @method triggerAction\n  @param opts {Object} (optional, with the optional keys action, target and/or actionContext)\n  @return {Boolean} true if the action was sent successfully and did not return false\n  @private\n  */\n  triggerAction(opts = {}) {\n    let {\n      action,\n      target,\n      actionContext\n    } = opts;\n    action = action || get(this, 'action');\n    target = target || getTarget(this);\n\n    if (actionContext === undefined) {\n      actionContext = get(this, 'actionContextObject') || this;\n    }\n\n    if (target && action) {\n      let ret;\n\n      if (target.send) {\n        ret = target.send(...[action].concat(actionContext));\n      } else {\n        assert(`The action '${action}' did not exist on ${target}`, typeof target[action] === 'function');\n        ret = target[action](...[].concat(actionContext));\n      }\n\n      if (ret !== false) {\n        return true;\n      }\n    }\n\n    return false;\n  }\n\n});\n\nfunction getTarget(instance) {\n  let target = get(instance, 'target');\n\n  if (target) {\n    if (typeof target === 'string') {\n      let value = get(instance, target);\n\n      if (value === undefined) {\n        value = get(context.lookup, target);\n      }\n\n      return value;\n    } else {\n      return target;\n    }\n  }\n\n  if (instance._target) {\n    return instance._target;\n  }\n\n  return null;\n}\n\nif (true\n/* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n) {\n  Object.defineProperty(TargetActionSupport, '_wasReopened', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: false\n  });\n  Object.defineProperty(TargetActionSupport, 'reopen', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: function reopen(...args) {\n      if (this === TargetActionSupport) {\n        deprecate('Reopening Ember.TargetActionSupport is deprecated.', false, {\n          id: 'ember.built-in-components.reopen',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          },\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-reopen'\n        });\n        TargetActionSupport._wasReopened = true;\n      }\n\n      return Mixin.prototype.reopen.call(this, ...args);\n    }\n  });\n\n  if (DEBUG) {\n    Object.seal(TargetActionSupport);\n    Mixin._disableDebugSeal = false;\n  }\n}\n\nexport default TargetActionSupport;","/**\n@module @ember/array\n*/\nimport { get, objectAt, alias, PROPERTY_DID_CHANGE, addArrayObserver, removeArrayObserver, replace, arrayContentDidChange, tagForProperty } from '@ember/-internals/metal';\nimport { isObject } from '@ember/-internals/utils';\nimport EmberObject from './object';\nimport { isArray, MutableArray } from '../mixins/array';\nimport { assert } from '@ember/debug';\nimport { setCustomTagFor } from '@glimmer/manager';\nimport { combine, consumeTag, validateTag, valueForTag, tagFor } from '@glimmer/validator';\nconst ARRAY_OBSERVER_MAPPING = {\n  willChange: '_arrangedContentArrayWillChange',\n  didChange: '_arrangedContentArrayDidChange'\n};\n\nfunction customTagForArrayProxy(proxy, key) {\n  if (key === '[]') {\n    proxy._revalidate();\n\n    return proxy._arrTag;\n  } else if (key === 'length') {\n    proxy._revalidate();\n\n    return proxy._lengthTag;\n  }\n\n  return tagFor(proxy, key);\n}\n/**\n  An ArrayProxy wraps any other object that implements `Array` and/or\n  `MutableArray,` forwarding all requests. This makes it very useful for\n  a number of binding use cases or other cases where being able to swap\n  out the underlying array is useful.\n\n  A simple example of usage:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  let pets = ['dog', 'cat', 'fish'];\n  let ap = ArrayProxy.create({ content: A(pets) });\n\n  ap.get('firstObject');                        // 'dog'\n  ap.set('content', ['amoeba', 'paramecium']);\n  ap.get('firstObject');                        // 'amoeba'\n  ```\n\n  This class can also be useful as a layer to transform the contents of\n  an array, as they are accessed. This can be done by overriding\n  `objectAtContent`:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  let pets = ['dog', 'cat', 'fish'];\n  let ap = ArrayProxy.create({\n      content: A(pets),\n      objectAtContent: function(idx) {\n          return this.get('content').objectAt(idx).toUpperCase();\n      }\n  });\n\n  ap.get('firstObject'); // . 'DOG'\n  ```\n\n  When overriding this class, it is important to place the call to\n  `_super` *after* setting `content` so the internal observers have\n  a chance to fire properly:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  export default ArrayProxy.extend({\n    init() {\n      this.set('content', A(['dog', 'cat', 'fish']));\n      this._super(...arguments);\n    }\n  });\n  ```\n\n  @class ArrayProxy\n  @extends EmberObject\n  @uses MutableArray\n  @public\n*/\n\n\nexport default class ArrayProxy extends EmberObject {\n  init() {\n    super.init(...arguments);\n    /*\n      `this._objectsDirtyIndex` determines which indexes in the `this._objects`\n      cache are dirty.\n       If `this._objectsDirtyIndex === -1` then no indexes are dirty.\n      Otherwise, an index `i` is dirty if `i >= this._objectsDirtyIndex`.\n       Calling `objectAt` with a dirty index will cause the `this._objects`\n      cache to be recomputed.\n    */\n\n    this._objectsDirtyIndex = 0;\n    this._objects = null;\n    this._lengthDirty = true;\n    this._length = 0;\n    this._arrangedContent = null;\n    this._arrangedContentIsUpdating = false;\n    this._arrangedContentTag = null;\n    this._arrangedContentRevision = null;\n    this._lengthTag = null;\n    this._arrTag = null;\n    setCustomTagFor(this, customTagForArrayProxy);\n  }\n\n  [PROPERTY_DID_CHANGE]() {\n    this._revalidate();\n  }\n\n  willDestroy() {\n    this._removeArrangedContentArrayObserver();\n  }\n  /**\n    The content array. Must be an object that implements `Array` and/or\n    `MutableArray.`\n     @property content\n    @type EmberArray\n    @public\n  */\n\n  /**\n    Should actually retrieve the object at the specified index from the\n    content. You can override this method in subclasses to transform the\n    content item to something new.\n     This method will only be called if content is non-`null`.\n     @method objectAtContent\n    @param {Number} idx The index to retrieve.\n    @return {Object} the value or undefined if none found\n    @public\n  */\n\n\n  objectAtContent(idx) {\n    return objectAt(get(this, 'arrangedContent'), idx);\n  } // See additional docs for `replace` from `MutableArray`:\n  // https://api.emberjs.com/ember/release/classes/MutableArray/methods/replace?anchor=replace\n\n\n  replace(idx, amt, objects) {\n    assert('Mutating an arranged ArrayProxy is not allowed', get(this, 'arrangedContent') === get(this, 'content'));\n    this.replaceContent(idx, amt, objects);\n  }\n  /**\n    Should actually replace the specified objects on the content array.\n    You can override this method in subclasses to transform the content item\n    into something new.\n     This method will only be called if content is non-`null`.\n     @method replaceContent\n    @param {Number} idx The starting index\n    @param {Number} amt The number of items to remove from the content.\n    @param {EmberArray} objects Optional array of objects to insert or null if no\n      objects.\n    @return {void}\n    @public\n  */\n\n\n  replaceContent(idx, amt, objects) {\n    get(this, 'content').replace(idx, amt, objects);\n  } // Overriding objectAt is not supported.\n\n\n  objectAt(idx) {\n    this._revalidate();\n\n    if (this._objects === null) {\n      this._objects = [];\n    }\n\n    if (this._objectsDirtyIndex !== -1 && idx >= this._objectsDirtyIndex) {\n      let arrangedContent = get(this, 'arrangedContent');\n\n      if (arrangedContent) {\n        let length = this._objects.length = get(arrangedContent, 'length');\n\n        for (let i = this._objectsDirtyIndex; i < length; i++) {\n          this._objects[i] = this.objectAtContent(i);\n        }\n      } else {\n        this._objects.length = 0;\n      }\n\n      this._objectsDirtyIndex = -1;\n    }\n\n    return this._objects[idx];\n  } // Overriding length is not supported.\n\n\n  get length() {\n    this._revalidate();\n\n    if (this._lengthDirty) {\n      let arrangedContent = get(this, 'arrangedContent');\n      this._length = arrangedContent ? get(arrangedContent, 'length') : 0;\n      this._lengthDirty = false;\n    }\n\n    consumeTag(this._lengthTag);\n    return this._length;\n  }\n\n  set length(value) {\n    let length = this.length;\n    let removedCount = length - value;\n    let added;\n\n    if (removedCount === 0) {\n      return;\n    } else if (removedCount < 0) {\n      added = new Array(-removedCount);\n      removedCount = 0;\n    }\n\n    let content = get(this, 'content');\n\n    if (content) {\n      replace(content, value, removedCount, added);\n\n      this._invalidate();\n    }\n  }\n\n  _updateArrangedContentArray(arrangedContent) {\n    let oldLength = this._objects === null ? 0 : this._objects.length;\n    let newLength = arrangedContent ? get(arrangedContent, 'length') : 0;\n\n    this._removeArrangedContentArrayObserver();\n\n    this.arrayContentWillChange(0, oldLength, newLength);\n\n    this._invalidate();\n\n    this.arrayContentDidChange(0, oldLength, newLength);\n\n    this._addArrangedContentArrayObserver(arrangedContent);\n  }\n\n  _addArrangedContentArrayObserver(arrangedContent) {\n    if (arrangedContent && !arrangedContent.isDestroyed) {\n      assert(\"Can't set ArrayProxy's content to itself\", arrangedContent !== this);\n      assert(`ArrayProxy expects an Array or ArrayProxy, but you passed ${typeof arrangedContent}`, isArray(arrangedContent) || arrangedContent.isDestroyed);\n      addArrayObserver(arrangedContent, this, ARRAY_OBSERVER_MAPPING, true);\n      this._arrangedContent = arrangedContent;\n    }\n  }\n\n  _removeArrangedContentArrayObserver() {\n    if (this._arrangedContent) {\n      removeArrayObserver(this._arrangedContent, this, ARRAY_OBSERVER_MAPPING, true);\n    }\n  }\n\n  _arrangedContentArrayWillChange() {}\n\n  _arrangedContentArrayDidChange(proxy, idx, removedCnt, addedCnt) {\n    this.arrayContentWillChange(idx, removedCnt, addedCnt);\n    let dirtyIndex = idx;\n\n    if (dirtyIndex < 0) {\n      let length = get(this._arrangedContent, 'length');\n      dirtyIndex += length + removedCnt - addedCnt;\n    }\n\n    if (this._objectsDirtyIndex === -1 || this._objectsDirtyIndex > dirtyIndex) {\n      this._objectsDirtyIndex = dirtyIndex;\n    }\n\n    this._lengthDirty = true;\n    this.arrayContentDidChange(idx, removedCnt, addedCnt);\n  }\n\n  _invalidate() {\n    this._objectsDirtyIndex = 0;\n    this._lengthDirty = true;\n  }\n\n  _revalidate() {\n    if (this._arrangedContentIsUpdating === true) return;\n\n    if (this._arrangedContentTag === null || !validateTag(this._arrangedContentTag, this._arrangedContentRevision)) {\n      let arrangedContent = this.get('arrangedContent');\n\n      if (this._arrangedContentTag === null) {\n        // This is the first time the proxy has been setup, only add the observer\n        // don't trigger any events\n        this._addArrangedContentArrayObserver(arrangedContent);\n      } else {\n        this._arrangedContentIsUpdating = true;\n\n        this._updateArrangedContentArray(arrangedContent);\n\n        this._arrangedContentIsUpdating = false;\n      }\n\n      let arrangedContentTag = this._arrangedContentTag = tagFor(this, 'arrangedContent');\n      this._arrangedContentRevision = valueForTag(this._arrangedContentTag);\n\n      if (isObject(arrangedContent)) {\n        this._lengthTag = combine([arrangedContentTag, tagForProperty(arrangedContent, 'length')]);\n        this._arrTag = combine([arrangedContentTag, tagForProperty(arrangedContent, '[]')]);\n      } else {\n        this._lengthTag = this._arrTag = arrangedContentTag;\n      }\n    }\n  }\n\n}\nArrayProxy.reopen(MutableArray, {\n  /**\n    The array that the proxy pretends to be. In the default `ArrayProxy`\n    implementation, this and `content` are the same. Subclasses of `ArrayProxy`\n    can override this property to provide things like sorting and filtering.\n     @property arrangedContent\n    @public\n  */\n  arrangedContent: alias('content'),\n\n  // Array proxies don't need to notify when they change since their `[]` tag is\n  // already dependent on the `[]` tag of `arrangedContent`\n  arrayContentDidChange(startIdx, removeAmt, addAmt) {\n    return arrayContentDidChange(this, startIdx, removeAmt, addAmt, false);\n  }\n\n});","/**\n  @module @ember/object\n*/\nimport { getFactoryFor, setFactoryFor, INIT_FACTORY } from '@ember/-internals/container';\nimport { getOwner, LEGACY_OWNER } from '@ember/-internals/owner';\nimport { assign } from '@ember/polyfills';\nimport { guidFor, lookupDescriptor, inspect, makeArray, HAS_NATIVE_PROXY, HAS_NATIVE_SYMBOL, isInternalSymbol } from '@ember/-internals/utils';\nimport { meta } from '@ember/-internals/meta';\nimport { PROXY_CONTENT, sendEvent, Mixin, activateObserver, applyMixin, defineProperty, descriptorForProperty, isClassicDecorator, DEBUG_INJECTION_FUNCTIONS, TrackedDescriptor } from '@ember/-internals/metal';\nimport ActionHandler from '../mixins/action_handler';\nimport { assert, deprecate } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { _WeakSet as WeakSet } from '@glimmer/util';\nimport { destroy, isDestroying, isDestroyed, registerDestructor } from '@glimmer/destroyable';\nimport { OWNER } from '@glimmer/owner';\nconst reopen = Mixin.prototype.reopen;\nconst wasApplied = new WeakSet();\nconst prototypeMixinMap = new WeakMap();\nconst initCalled = DEBUG ? new WeakSet() : undefined; // only used in debug builds to enable the proxy trap\n\nconst destroyCalled = new Set();\n\nfunction ensureDestroyCalled(instance) {\n  if (!destroyCalled.has(instance)) {\n    instance.destroy();\n  }\n}\n\nfunction initialize(obj, properties) {\n  let m = meta(obj);\n\n  if (properties !== undefined) {\n    assert('EmberObject.create only accepts objects.', typeof properties === 'object' && properties !== null);\n    assert('EmberObject.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof Mixin));\n    let injectedProperties;\n\n    if (DEBUG) {\n      // these are all the implicit injectinos\n      injectedProperties = [];\n      let factory = getFactoryFor(obj);\n\n      if (factory) {\n        for (let injection in factory.injections) {\n          if (factory.injections[injection] === properties[injection]) {\n            injectedProperties.push(injection);\n          }\n        }\n      }\n    }\n\n    let concatenatedProperties = obj.concatenatedProperties;\n    let mergedProperties = obj.mergedProperties;\n    let hasConcatenatedProps = concatenatedProperties !== undefined && concatenatedProperties.length > 0;\n    let hasMergedProps = mergedProperties !== undefined && mergedProperties.length > 0;\n    let keyNames = Object.keys(properties);\n\n    for (let i = 0; i < keyNames.length; i++) {\n      let keyName = keyNames[i];\n      let value = properties[keyName];\n      assert('EmberObject.create no longer supports defining computed ' + 'properties. Define computed properties using extend() or reopen() ' + 'before calling create().', !isClassicDecorator(value));\n      assert('EmberObject.create no longer supports defining methods that call _super.', !(typeof value === 'function' && value.toString().indexOf('._super') !== -1));\n      assert('`actions` must be provided at extend time, not at create time, ' + 'when Ember.ActionHandler is used (i.e. views, controllers & routes).', !(keyName === 'actions' && ActionHandler.detect(obj)));\n      let possibleDesc = descriptorForProperty(obj, keyName, m);\n      let isDescriptor = possibleDesc !== undefined;\n\n      if (!isDescriptor) {\n        if (hasConcatenatedProps && concatenatedProperties.indexOf(keyName) > -1) {\n          let baseValue = obj[keyName];\n\n          if (baseValue) {\n            value = makeArray(baseValue).concat(value);\n          } else {\n            value = makeArray(value);\n          }\n        }\n\n        if (hasMergedProps && mergedProperties.indexOf(keyName) > -1) {\n          let baseValue = obj[keyName];\n          value = assign({}, baseValue, value);\n        }\n      }\n\n      if (isDescriptor) {\n        if (DEBUG && injectedProperties.indexOf(keyName) !== -1) {\n          // need to check if implicit injection owner.inject('component:my-component', 'foo', 'service:bar') does not match explicit injection @service foo\n          // implicit injection takes precedence so need to tell user to rename property on obj\n          let isInjectedProperty = DEBUG_INJECTION_FUNCTIONS.has(possibleDesc._getter);\n\n          if (isInjectedProperty && value !== possibleDesc.get(obj, keyName)) {\n            implicitInjectionDeprecation(keyName, `You have explicitly defined a service injection for the '${keyName}' property on ${inspect(obj)}. However, a different service or value was injected via implicit injections which overrode your explicit injection. Implicit injections have been deprecated, and will be removed in the near future. In order to prevent breakage, you should inject the same value explicitly that is currently being injected implicitly.`);\n          } else if (possibleDesc instanceof TrackedDescriptor) {\n            let descValue = possibleDesc.get(obj, keyName);\n\n            if (value !== descValue) {\n              implicitInjectionDeprecation(keyName, `A value was injected implicitly on the '${keyName}' tracked property of an instance of ${inspect(obj)}, overwriting the original value which was ${inspect(descValue)}. Implicit injection is now deprecated, please add an explicit injection for this value. If the injected value is a service, consider using the @service decorator.`);\n            }\n          } else if (possibleDesc._setter === undefined) {\n            implicitInjectionDeprecation(keyName, `A value was injected implicitly on the '${keyName}' computed property of an instance of ${inspect(obj)}. Implicit injection is now deprecated, please add an explicit injection for this value. If the injected value is a service, consider using the @service decorator.`);\n          }\n        }\n\n        possibleDesc.set(obj, keyName, value);\n      } else if (typeof obj.setUnknownProperty === 'function' && !(keyName in obj)) {\n        obj.setUnknownProperty(keyName, value);\n      } else {\n        if (DEBUG) {\n          // If deprecation, either 1) an accessor descriptor or 2) class field declaration 3) only an implicit injection\n          let desc = lookupDescriptor(obj, keyName);\n\n          if (injectedProperties.indexOf(keyName) === -1) {\n            // Value was not an injected property, define in like normal\n            defineProperty(obj, keyName, null, value, m); // setup mandatory setter\n          } else if (desc) {\n            // If the property is a value prop, and it isn't the expected value,\n            // then we can warn the user when they attempt to use the value\n            if ('value' in desc && desc.value !== value) {\n              // implicit injection does not match value descriptor set on object\n              defineSelfDestructingImplicitInjectionGetter(obj, keyName, value, `A value was injected implicitly on the '${keyName}' property of an instance of ${inspect(obj)}, overwriting the original value which was ${inspect(desc.value)}. Implicit injection is now deprecated, please add an explicit injection for this value. If the injected value is a service, consider using the @service decorator.`);\n            } else {\n              // Otherwise, the value is either a getter/setter, or it is the correct value.\n              // If it is a getter/setter, then we don't know what activating it might do - it could\n              // be that the user only defined a getter, and so the value will not be set at all. It\n              // could be that the setter is a no-op that does nothing. Both of these are valid ways\n              // to \"override\" an implicit injection, so we can't really warn here. So, assign the\n              // value like we would normally.\n              obj[keyName] = value;\n            }\n          } else {\n            defineSelfDestructingImplicitInjectionGetter(obj, keyName, value, `A value was injected implicitly on the '${keyName}' property of an instance of ${inspect(obj)}. Implicit injection is now deprecated, please add an explicit injection for this value. If the injected value is a service, consider using the @service decorator.`);\n          }\n        } else {\n          obj[keyName] = value;\n        }\n      }\n    }\n  } // using DEBUG here to avoid the extraneous variable when not needed\n\n\n  if (DEBUG) {\n    initCalled.add(obj);\n  }\n\n  obj.init(properties);\n  m.unsetInitializing();\n  let observerEvents = m.observerEvents();\n\n  if (observerEvents !== undefined) {\n    for (let i = 0; i < observerEvents.length; i++) {\n      activateObserver(obj, observerEvents[i].event, observerEvents[i].sync);\n    }\n  }\n\n  sendEvent(obj, 'init', undefined, undefined, undefined, m);\n}\n\nfunction defineSelfDestructingImplicitInjectionGetter(obj, keyName, value, message) {\n  Object.defineProperty(obj, keyName, {\n    configurable: true,\n    enumerable: true,\n\n    get() {\n      // only want to deprecate on first access so we make this self destructing\n      Object.defineProperty(obj, keyName, {\n        value\n      });\n      implicitInjectionDeprecation(keyName, message);\n      return value;\n    }\n\n  });\n}\n/**\n  `CoreObject` is the base class for all Ember constructs. It establishes a\n  class system based on Ember's Mixin system, and provides the basis for the\n  Ember Object Model. `CoreObject` should generally not be used directly,\n  instead you should use `EmberObject`.\n\n  ## Usage\n\n  You can define a class by extending from `CoreObject` using the `extend`\n  method:\n\n  ```js\n  const Person = CoreObject.extend({\n    name: 'Tomster',\n  });\n  ```\n\n  For detailed usage, see the [Object Model](https://guides.emberjs.com/release/object-model/)\n  section of the guides.\n\n  ## Usage with Native Classes\n\n  Native JavaScript `class` syntax can be used to extend from any `CoreObject`\n  based class:\n\n  ```js\n  class Person extends CoreObject {\n    init() {\n      super.init(...arguments);\n      this.name = 'Tomster';\n    }\n  }\n  ```\n\n  Some notes about `class` usage:\n\n  * `new` syntax is not currently supported with classes that extend from\n    `EmberObject` or `CoreObject`. You must continue to use the `create` method\n    when making new instances of classes, even if they are defined using native\n    class syntax. If you want to use `new` syntax, consider creating classes\n    which do _not_ extend from `EmberObject` or `CoreObject`. Ember features,\n    such as computed properties and decorators, will still work with base-less\n    classes.\n  * Instead of using `this._super()`, you must use standard `super` syntax in\n    native classes. See the [MDN docs on classes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Super_class_calls_with_super)\n    for more details.\n  * Native classes support using [constructors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Constructor)\n    to set up newly-created instances. Ember uses these to, among other things,\n    support features that need to retrieve other entities by name, like Service\n    injection and `getOwner`. To ensure your custom instance setup logic takes\n    place after this important work is done, avoid using the `constructor` in\n    favor of `init`.\n  * Properties passed to `create` will be available on the instance by the time\n    `init` runs, so any code that requires these values should work at that\n    time.\n  * Using native classes, and switching back to the old Ember Object model is\n    fully supported.\n\n  @class CoreObject\n  @public\n*/\n\n\nclass CoreObject {\n  constructor(owner) {\n    // setOwner has to set both OWNER and LEGACY_OWNER for backwards compatibility, and\n    // LEGACY_OWNER is enumerable, so setting it would add an enumerable property to the object,\n    // so we just set `OWNER` directly here.\n    this[OWNER] = owner; // prepare prototype...\n\n    this.constructor.proto();\n    let self = this;\n\n    if (DEBUG && HAS_NATIVE_PROXY && typeof self.unknownProperty === 'function') {\n      let messageFor = (obj, property) => {\n        return `You attempted to access the \\`${String(property)}\\` property (of ${obj}).\\n` + `Since Ember 3.1, this is usually fine as you no longer need to use \\`.get()\\`\\n` + `to access computed properties. However, in this case, the object in question\\n` + `is a special kind of Ember object (a proxy). Therefore, it is still necessary\\n` + `to use \\`.get('${String(property)}')\\` in this case.\\n\\n` + `If you encountered this error because of third-party code that you don't control,\\n` + `there is more information at https://github.com/emberjs/ember.js/issues/16148, and\\n` + `you can help us improve this error message by telling us more about what happened in\\n` + `this situation.`;\n      };\n      /* globals Proxy Reflect */\n\n\n      self = new Proxy(this, {\n        get(target, property, receiver) {\n          if (property === PROXY_CONTENT) {\n            return target;\n          } else if ( // init called will be set on the proxy, not the target, so get with the receiver\n          !initCalled.has(receiver) || typeof property === 'symbol' || isInternalSymbol(property) || property === 'toJSON' || property === 'toString' || property === 'toStringExtension' || property === 'didDefineProperty' || property === 'willWatchProperty' || property === 'didUnwatchProperty' || property === 'didAddListener' || property === 'didRemoveListener' || property === 'isDescriptor' || property === '_onLookup' || property in target) {\n            return Reflect.get(target, property, receiver);\n          }\n\n          let value = target.unknownProperty.call(receiver, property);\n\n          if (typeof value !== 'function') {\n            assert(messageFor(receiver, property), value === undefined || value === null);\n          }\n        }\n\n      });\n    }\n\n    registerDestructor(self, ensureDestroyCalled, true);\n    registerDestructor(self, () => self.willDestroy()); // disable chains\n\n    let m = meta(self);\n    m.setInitializing(); // only return when in debug builds and `self` is the proxy created above\n\n    if (DEBUG && self !== this) {\n      return self;\n    }\n  } // Empty setter for absorbing setting the LEGACY_OWNER, which should _not_\n  // become an enumerable property, and should not be used in general.\n\n\n  set [LEGACY_OWNER](value) {}\n\n  reopen(...args) {\n    applyMixin(this, args);\n    return this;\n  }\n  /**\n    An overridable method called when objects are instantiated. By default,\n    does nothing unless it is overridden during class definition.\n     Example:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      init() {\n        alert(`Name is ${this.get('name')}`);\n      }\n    });\n     let steve = Person.create({\n      name: 'Steve'\n    });\n     // alerts 'Name is Steve'.\n    ```\n     NOTE: If you do override `init` for a framework class like `Component`\n    from `@ember/component`, be sure to call `this._super(...arguments)`\n    in your `init` declaration!\n    If you don't, Ember may not have an opportunity to\n    do important setup work, and you'll see strange behavior in your\n    application.\n     @method init\n    @public\n  */\n\n\n  init() {}\n  /**\n    Defines the properties that will be concatenated from the superclass\n    (instead of overridden).\n     By default, when you extend an Ember class a property defined in\n    the subclass overrides a property with the same name that is defined\n    in the superclass. However, there are some cases where it is preferable\n    to build up a property's value by combining the superclass' property\n    value with the subclass' value. An example of this in use within Ember\n    is the `classNames` property of `Component` from `@ember/component`.\n     Here is some sample code showing the difference between a concatenated\n    property and a normal one:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Bar = EmberObject.extend({\n      // Configure which properties to concatenate\n      concatenatedProperties: ['concatenatedProperty'],\n       someNonConcatenatedProperty: ['bar'],\n      concatenatedProperty: ['bar']\n    });\n     const FooBar = Bar.extend({\n      someNonConcatenatedProperty: ['foo'],\n      concatenatedProperty: ['foo']\n    });\n     let fooBar = FooBar.create();\n    fooBar.get('someNonConcatenatedProperty'); // ['foo']\n    fooBar.get('concatenatedProperty'); // ['bar', 'foo']\n    ```\n     This behavior extends to object creation as well. Continuing the\n    above example:\n     ```javascript\n    let fooBar = FooBar.create({\n      someNonConcatenatedProperty: ['baz'],\n      concatenatedProperty: ['baz']\n    })\n    fooBar.get('someNonConcatenatedProperty'); // ['baz']\n    fooBar.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n    ```\n     Adding a single property that is not an array will just add it in the array:\n     ```javascript\n    let fooBar = FooBar.create({\n      concatenatedProperty: 'baz'\n    })\n    view.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n    ```\n     Using the `concatenatedProperties` property, we can tell Ember to mix the\n    content of the properties.\n     In `Component` the `classNames`, `classNameBindings` and\n    `attributeBindings` properties are concatenated.\n     This feature is available for you to use throughout the Ember object model,\n    although typical app developers are likely to use it infrequently. Since\n    it changes expectations about behavior of properties, you should properly\n    document its usage in each individual concatenated property (to not\n    mislead your users to think they can override the property in a subclass).\n     @property concatenatedProperties\n    @type Array\n    @default null\n    @public\n  */\n\n  /**\n    Defines the properties that will be merged from the superclass\n    (instead of overridden).\n     By default, when you extend an Ember class a property defined in\n    the subclass overrides a property with the same name that is defined\n    in the superclass. However, there are some cases where it is preferable\n    to build up a property's value by merging the superclass property value\n    with the subclass property's value. An example of this in use within Ember\n    is the `queryParams` property of routes.\n     Here is some sample code showing the difference between a merged\n    property and a normal one:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Bar = EmberObject.extend({\n      // Configure which properties are to be merged\n      mergedProperties: ['mergedProperty'],\n       someNonMergedProperty: {\n        nonMerged: 'superclass value of nonMerged'\n      },\n      mergedProperty: {\n        page: { replace: false },\n        limit: { replace: true }\n      }\n    });\n     const FooBar = Bar.extend({\n      someNonMergedProperty: {\n        completelyNonMerged: 'subclass value of nonMerged'\n      },\n      mergedProperty: {\n        limit: { replace: false }\n      }\n    });\n     let fooBar = FooBar.create();\n     fooBar.get('someNonMergedProperty');\n    // => { completelyNonMerged: 'subclass value of nonMerged' }\n    //\n    // Note the entire object, including the nonMerged property of\n    // the superclass object, has been replaced\n     fooBar.get('mergedProperty');\n    // => {\n    //   page: {replace: false},\n    //   limit: {replace: false}\n    // }\n    //\n    // Note the page remains from the superclass, and the\n    // `limit` property's value of `false` has been merged from\n    // the subclass.\n    ```\n     This behavior is not available during object `create` calls. It is only\n    available at `extend` time.\n     In `Route` the `queryParams` property is merged.\n     This feature is available for you to use throughout the Ember object model,\n    although typical app developers are likely to use it infrequently. Since\n    it changes expectations about behavior of properties, you should properly\n    document its usage in each individual merged property (to not\n    mislead your users to think they can override the property in a subclass).\n     @property mergedProperties\n    @type Array\n    @default null\n    @public\n  */\n\n  /**\n    Destroyed object property flag.\n     if this property is `true` the observers and bindings were already\n    removed by the effect of calling the `destroy()` method.\n     @property isDestroyed\n    @default false\n    @public\n  */\n\n\n  get isDestroyed() {\n    return isDestroyed(this);\n  }\n\n  set isDestroyed(value) {\n    assert(`You cannot set \\`${this}.isDestroyed\\` directly, please use \\`.destroy()\\`.`, false);\n  }\n  /**\n    Destruction scheduled flag. The `destroy()` method has been called.\n     The object stays intact until the end of the run loop at which point\n    the `isDestroyed` flag is set.\n     @property isDestroying\n    @default false\n    @public\n  */\n\n\n  get isDestroying() {\n    return isDestroying(this);\n  }\n\n  set isDestroying(value) {\n    assert(`You cannot set \\`${this}.isDestroying\\` directly, please use \\`.destroy()\\`.`, false);\n  }\n  /**\n    Destroys an object by setting the `isDestroyed` flag and removing its\n    metadata, which effectively destroys observers and bindings.\n     If you try to set a property on a destroyed object, an exception will be\n    raised.\n     Note that destruction is scheduled for the end of the run loop and does not\n    happen immediately.  It will set an isDestroying flag immediately.\n     @method destroy\n    @return {EmberObject} receiver\n    @public\n  */\n\n\n  destroy() {\n    // Used to ensure that manually calling `.destroy()` does not immediately call destroy again\n    destroyCalled.add(this);\n\n    try {\n      destroy(this);\n    } finally {\n      destroyCalled.delete(this);\n    }\n\n    return this;\n  }\n  /**\n    Override to implement teardown.\n     @method willDestroy\n    @public\n  */\n\n\n  willDestroy() {}\n  /**\n    Returns a string representation which attempts to provide more information\n    than Javascript's `toString` typically does, in a generic way for all Ember\n    objects.\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend();\n    person = Person.create();\n    person.toString(); //=> \"<Person:ember1024>\"\n    ```\n     If the object's class is not defined on an Ember namespace, it will\n    indicate it is a subclass of the registered superclass:\n     ```javascript\n    const Student = Person.extend();\n    let student = Student.create();\n    student.toString(); //=> \"<(subclass of Person):ember1025>\"\n    ```\n     If the method `toStringExtension` is defined, its return value will be\n    included in the output.\n     ```javascript\n    const Teacher = Person.extend({\n      toStringExtension() {\n        return this.get('fullName');\n      }\n    });\n    teacher = Teacher.create();\n    teacher.toString(); //=> \"<Teacher:ember1026:Tom Dale>\"\n    ```\n     @method toString\n    @return {String} string representation\n    @public\n  */\n\n\n  toString() {\n    let hasToStringExtension = typeof this.toStringExtension === 'function';\n    let extension = hasToStringExtension ? `:${this.toStringExtension()}` : '';\n    return `<${getFactoryFor(this) || '(unknown)'}:${guidFor(this)}${extension}>`;\n  }\n  /**\n    Creates a new subclass.\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      say(thing) {\n        alert(thing);\n       }\n    });\n    ```\n     This defines a new subclass of EmberObject: `Person`. It contains one method: `say()`.\n     You can also create a subclass from any existing class by calling its `extend()` method.\n    For example, you might want to create a subclass of Ember's built-in `Component` class:\n     ```javascript\n    import Component from '@ember/component';\n     const PersonComponent = Component.extend({\n      tagName: 'li',\n      classNameBindings: ['isAdministrator']\n    });\n    ```\n     When defining a subclass, you can override methods but still access the\n    implementation of your parent class by calling the special `_super()` method:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      say(thing) {\n        let name = this.get('name');\n        alert(`${name} says: ${thing}`);\n      }\n    });\n     const Soldier = Person.extend({\n      say(thing) {\n        this._super(`${thing}, sir!`);\n      },\n      march(numberOfHours) {\n        alert(`${this.get('name')} marches for ${numberOfHours} hours.`);\n      }\n    });\n     let yehuda = Soldier.create({\n      name: 'Yehuda Katz'\n    });\n     yehuda.say('Yes');  // alerts \"Yehuda Katz says: Yes, sir!\"\n    ```\n     The `create()` on line #17 creates an *instance* of the `Soldier` class.\n    The `extend()` on line #8 creates a *subclass* of `Person`. Any instance\n    of the `Person` class will *not* have the `march()` method.\n     You can also pass `Mixin` classes to add additional properties to the subclass.\n     ```javascript\n    import EmberObject from '@ember/object';\n    import Mixin from '@ember/object/mixin';\n     const Person = EmberObject.extend({\n      say(thing) {\n        alert(`${this.get('name')} says: ${thing}`);\n      }\n    });\n     const SingingMixin = Mixin.create({\n      sing(thing) {\n        alert(`${this.get('name')} sings: la la la ${thing}`);\n      }\n    });\n     const BroadwayStar = Person.extend(SingingMixin, {\n      dance() {\n        alert(`${this.get('name')} dances: tap tap tap tap `);\n      }\n    });\n    ```\n     The `BroadwayStar` class contains three methods: `say()`, `sing()`, and `dance()`.\n     @method extend\n    @static\n    @for @ember/object\n    @param {Mixin} [mixins]* One or more Mixin classes\n    @param {Object} [arguments]* Object containing values to use within the new class\n    @public\n  */\n\n\n  static extend() {\n    let Class = class extends this {};\n    reopen.apply(Class.PrototypeMixin, arguments);\n    return Class;\n  }\n  /**\n    Creates an instance of a class. Accepts either no arguments, or an object\n    containing values to initialize the newly instantiated object with.\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      helloWorld() {\n        alert(`Hi, my name is ${this.get('name')}`);\n      }\n    });\n     let tom = Person.create({\n      name: 'Tom Dale'\n    });\n     tom.helloWorld(); // alerts \"Hi, my name is Tom Dale\".\n    ```\n     `create` will call the `init` function if defined during\n    `AnyObject.extend`\n     If no arguments are passed to `create`, it will not set values to the new\n    instance during initialization:\n     ```javascript\n    let noName = Person.create();\n    noName.helloWorld(); // alerts undefined\n    ```\n     NOTE: For performance reasons, you cannot declare methods or computed\n    properties during `create`. You should instead declare methods and computed\n    properties when using `extend`.\n     @method create\n    @for @ember/object\n    @static\n    @param [arguments]*\n    @public\n  */\n\n\n  static create(props, extra) {\n    let instance;\n\n    if (props !== undefined) {\n      instance = new this(getOwner(props));\n      setFactoryFor(instance, getFactoryFor(props));\n    } else {\n      instance = new this();\n    }\n\n    if (extra === undefined) {\n      initialize(instance, props);\n    } else {\n      initialize(instance, flattenProps.apply(this, arguments));\n    }\n\n    return instance;\n  }\n  /**\n    Augments a constructor's prototype with additional\n    properties and functions:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const MyObject = EmberObject.extend({\n      name: 'an object'\n    });\n     o = MyObject.create();\n    o.get('name'); // 'an object'\n     MyObject.reopen({\n      say(msg) {\n        console.log(msg);\n      }\n    });\n     o2 = MyObject.create();\n    o2.say('hello'); // logs \"hello\"\n     o.say('goodbye'); // logs \"goodbye\"\n    ```\n     To add functions and properties to the constructor itself,\n    see `reopenClass`\n     @method reopen\n    @for @ember/object\n    @static\n    @public\n  */\n\n\n  static reopen() {\n    this.willReopen();\n    reopen.apply(this.PrototypeMixin, arguments);\n    return this;\n  }\n\n  static willReopen() {\n    let p = this.prototype;\n\n    if (wasApplied.has(p)) {\n      wasApplied.delete(p); // If the base mixin already exists and was applied, create a new mixin to\n      // make sure that it gets properly applied. Reusing the same mixin after\n      // the first `proto` call will cause it to get skipped.\n\n      if (prototypeMixinMap.has(this)) {\n        prototypeMixinMap.set(this, Mixin.create(this.PrototypeMixin));\n      }\n    }\n  }\n  /**\n    Augments a constructor's own properties and functions:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const MyObject = EmberObject.extend({\n      name: 'an object'\n    });\n     MyObject.reopenClass({\n      canBuild: false\n    });\n     MyObject.canBuild; // false\n    o = MyObject.create();\n    ```\n     In other words, this creates static properties and functions for the class.\n    These are only available on the class and not on any instance of that class.\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      name: '',\n      sayHello() {\n        alert(`Hello. My name is ${this.get('name')}`);\n      }\n    });\n     Person.reopenClass({\n      species: 'Homo sapiens',\n       createPerson(name) {\n        return Person.create({ name });\n      }\n    });\n     let tom = Person.create({\n      name: 'Tom Dale'\n    });\n    let yehuda = Person.createPerson('Yehuda Katz');\n     tom.sayHello(); // \"Hello. My name is Tom Dale\"\n    yehuda.sayHello(); // \"Hello. My name is Yehuda Katz\"\n    alert(Person.species); // \"Homo sapiens\"\n    ```\n     Note that `species` and `createPerson` are *not* valid on the `tom` and `yehuda`\n    variables. They are only valid on `Person`.\n     To add functions and properties to instances of\n    a constructor by extending the constructor's prototype\n    see `reopen`\n     @method reopenClass\n    @for @ember/object\n    @static\n    @public\n  */\n\n\n  static reopenClass() {\n    applyMixin(this, arguments);\n    return this;\n  }\n\n  static detect(obj) {\n    if ('function' !== typeof obj) {\n      return false;\n    }\n\n    while (obj) {\n      if (obj === this) {\n        return true;\n      }\n\n      obj = obj.superclass;\n    }\n\n    return false;\n  }\n\n  static detectInstance(obj) {\n    return obj instanceof this;\n  }\n  /**\n    In some cases, you may want to annotate computed properties with additional\n    metadata about how they function or what values they operate on. For\n    example, computed property functions may close over variables that are then\n    no longer available for introspection.\n     You can pass a hash of these values to a computed property like this:\n     ```javascript\n    import { computed } from '@ember/object';\n     person: computed(function() {\n      let personId = this.get('personId');\n      return Person.create({ id: personId });\n    }).meta({ type: Person })\n    ```\n     Once you've done this, you can retrieve the values saved to the computed\n    property from your class like this:\n     ```javascript\n    MyClass.metaForProperty('person');\n    ```\n     This will return the original hash that was passed to `meta()`.\n     @static\n    @method metaForProperty\n    @param key {String} property name\n    @private\n  */\n\n\n  static metaForProperty(key) {\n    let proto = this.proto(); // ensure prototype is initialized\n\n    let possibleDesc = descriptorForProperty(proto, key);\n    assert(`metaForProperty() could not find a computed property with key '${key}'.`, possibleDesc !== undefined);\n    return possibleDesc._meta || {};\n  }\n  /**\n    Iterate over each computed property for the class, passing its name\n    and any associated metadata (see `metaForProperty`) to the callback.\n     @static\n    @method eachComputedProperty\n    @param {Function} callback\n    @param {Object} binding\n    @private\n  */\n\n\n  static eachComputedProperty(callback, binding = this) {\n    this.proto(); // ensure prototype is initialized\n\n    let empty = {};\n    meta(this.prototype).forEachDescriptors((name, descriptor) => {\n      if (descriptor.enumerable) {\n        let meta = descriptor._meta || empty;\n        callback.call(binding, name, meta);\n      }\n    });\n  }\n\n  static get PrototypeMixin() {\n    let prototypeMixin = prototypeMixinMap.get(this);\n\n    if (prototypeMixin === undefined) {\n      prototypeMixin = Mixin.create();\n      prototypeMixin.ownerConstructor = this;\n      prototypeMixinMap.set(this, prototypeMixin);\n    }\n\n    return prototypeMixin;\n  }\n\n  static get superclass() {\n    let c = Object.getPrototypeOf(this);\n    return c !== Function.prototype ? c : undefined;\n  }\n\n  static proto() {\n    let p = this.prototype;\n\n    if (!wasApplied.has(p)) {\n      wasApplied.add(p);\n      let parent = this.superclass;\n\n      if (parent) {\n        parent.proto();\n      } // If the prototype mixin exists, apply it. In the case of native classes,\n      // it will not exist (unless the class has been reopened).\n\n\n      if (prototypeMixinMap.has(this)) {\n        this.PrototypeMixin.apply(p);\n      }\n    }\n\n    return p;\n  }\n\n  static toString() {\n    return `<${getFactoryFor(this) || '(unknown)'}:constructor>`;\n  }\n\n}\n\nCoreObject.isClass = true;\nCoreObject.isMethod = false;\n\nfunction flattenProps(...props) {\n  let {\n    concatenatedProperties,\n    mergedProperties\n  } = this;\n  let hasConcatenatedProps = concatenatedProperties !== undefined && concatenatedProperties.length > 0;\n  let hasMergedProps = mergedProperties !== undefined && mergedProperties.length > 0;\n  let initProperties = {};\n\n  for (let i = 0; i < props.length; i++) {\n    let properties = props[i];\n    assert('EmberObject.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof Mixin));\n    let keyNames = Object.keys(properties);\n\n    for (let j = 0, k = keyNames.length; j < k; j++) {\n      let keyName = keyNames[j];\n      let value = properties[keyName];\n\n      if (hasConcatenatedProps && concatenatedProperties.indexOf(keyName) > -1) {\n        let baseValue = initProperties[keyName];\n\n        if (baseValue) {\n          value = makeArray(baseValue).concat(value);\n        } else {\n          value = makeArray(value);\n        }\n      }\n\n      if (hasMergedProps && mergedProperties.indexOf(keyName) > -1) {\n        let baseValue = initProperties[keyName];\n        value = assign({}, baseValue, value);\n      }\n\n      initProperties[keyName] = value;\n    }\n  }\n\n  return initProperties;\n}\n\nif (DEBUG) {\n  /**\n    Provides lookup-time type validation for injected properties.\n     @private\n    @method _onLookup\n  */\n  CoreObject._onLookup = function injectedPropertyAssertion(debugContainerKey) {\n    let [type] = debugContainerKey.split(':');\n    let proto = this.proto();\n\n    for (let key in proto) {\n      let desc = descriptorForProperty(proto, key);\n\n      if (desc && DEBUG_INJECTION_FUNCTIONS.has(desc._getter)) {\n        assert(`Defining \\`${key}\\` as an injected controller property on a non-controller (\\`${debugContainerKey}\\`) is not allowed.`, type === 'controller' || DEBUG_INJECTION_FUNCTIONS.get(desc._getter).type !== 'controller');\n      }\n    }\n  };\n  /**\n    Returns a hash of property names and container names that injected\n    properties will lookup on the container lazily.\n     @method _lazyInjections\n    @return {Object} Hash of all lazy injected property keys to container names\n    @private\n  */\n\n\n  CoreObject._lazyInjections = function () {\n    let injections = {};\n    let proto = this.proto();\n    let key;\n    let desc;\n\n    for (key in proto) {\n      desc = descriptorForProperty(proto, key);\n\n      if (desc && DEBUG_INJECTION_FUNCTIONS.has(desc._getter)) {\n        let {\n          namespace,\n          source,\n          type,\n          name\n        } = DEBUG_INJECTION_FUNCTIONS.get(desc._getter);\n        injections[key] = {\n          namespace,\n          source,\n          specifier: `${type}:${name || key}`\n        };\n      }\n    }\n\n    return injections;\n  };\n}\n\nif (!HAS_NATIVE_SYMBOL) {\n  // Allows OWNER and INIT_FACTORY to be non-enumerable in IE11\n  let instanceOwner = new WeakMap();\n  let instanceFactory = new WeakMap();\n  Object.defineProperty(CoreObject.prototype, OWNER, {\n    get() {\n      return instanceOwner.get(this);\n    },\n\n    set(value) {\n      instanceOwner.set(this, value);\n    }\n\n  });\n  Object.defineProperty(CoreObject.prototype, INIT_FACTORY, {\n    get() {\n      return instanceFactory.get(this);\n    },\n\n    set(value) {\n      instanceFactory.set(this, value);\n    }\n\n  });\n  Object.defineProperty(CoreObject, INIT_FACTORY, {\n    get() {\n      return instanceFactory.get(this);\n    },\n\n    set(value) {\n      instanceFactory.set(this, value);\n    },\n\n    enumerable: false\n  });\n}\n\nfunction implicitInjectionDeprecation(keyName, msg = null) {\n  deprecate(msg, false, {\n    id: 'implicit-injections',\n    until: '4.0.0',\n    url: 'https://deprecations.emberjs.com/v3.x#toc_implicit-injections',\n    for: 'ember-source',\n    since: {\n      enabled: '3.26.0'\n    }\n  });\n}\n\nexport default CoreObject;","/**\n@module ember\n*/\nimport { NAMESPACES, NAMESPACES_BY_ID, addNamespace, findNamespace, findNamespaces, get, processNamespace, processAllNamespaces, removeNamespace } from '@ember/-internals/metal'; // Preloaded into namespaces\n\nimport { getName, guidFor, setName } from '@ember/-internals/utils';\nimport EmberObject from './object';\n/**\n  A Namespace is an object usually used to contain other objects or methods\n  such as an application or framework. Create a namespace anytime you want\n  to define one of these new containers.\n\n  # Example Usage\n\n  ```javascript\n  MyFramework = Ember.Namespace.create({\n    VERSION: '1.0.0'\n  });\n  ```\n\n  @class Namespace\n  @namespace Ember\n  @extends EmberObject\n  @public\n*/\n\nexport default class Namespace extends EmberObject {\n  init() {\n    addNamespace(this);\n  }\n\n  toString() {\n    let name = get(this, 'name') || get(this, 'modulePrefix');\n\n    if (name) {\n      return name;\n    }\n\n    findNamespaces();\n    name = getName(this);\n\n    if (name === undefined) {\n      name = guidFor(this);\n      setName(this, name);\n    }\n\n    return name;\n  }\n\n  nameClasses() {\n    processNamespace(this);\n  }\n\n  destroy() {\n    removeNamespace(this);\n    super.destroy();\n  }\n\n}\nNamespace.prototype.isNamespace = true;\nNamespace.NAMESPACES = NAMESPACES;\nNamespace.NAMESPACES_BY_ID = NAMESPACES_BY_ID;\nNamespace.processAll = processAllNamespaces;\nNamespace.byName = findNamespace;","/**\n@module @ember/object\n*/\nimport { getFactoryFor } from '@ember/-internals/container';\nimport { symbol } from '@ember/-internals/utils';\nimport { addListener } from '@ember/-internals/metal';\nimport CoreObject from './core_object';\nimport Observable from '../mixins/observable';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\n/**\n  `EmberObject` is the main base class for all Ember objects. It is a subclass\n  of `CoreObject` with the `Observable` mixin applied. For details,\n  see the documentation for each of these.\n\n  @class EmberObject\n  @extends CoreObject\n  @uses Observable\n  @public\n*/\n\nexport default class EmberObject extends CoreObject {\n  get _debugContainerKey() {\n    let factory = getFactoryFor(this);\n    return factory !== undefined && factory.fullName;\n  }\n\n}\nObservable.apply(EmberObject.prototype);\nexport let FrameworkObject;\nFrameworkObject = class FrameworkObject extends CoreObject {\n  get _debugContainerKey() {\n    let factory = getFactoryFor(this);\n    return factory !== undefined && factory.fullName;\n  }\n\n};\nObservable.apply(FrameworkObject.prototype);\n\nif (DEBUG) {\n  let INIT_WAS_CALLED = symbol('INIT_WAS_CALLED');\n  let ASSERT_INIT_WAS_CALLED = symbol('ASSERT_INIT_WAS_CALLED');\n  FrameworkObject = class DebugFrameworkObject extends EmberObject {\n    init() {\n      super.init(...arguments);\n      this[INIT_WAS_CALLED] = true;\n    }\n\n    [ASSERT_INIT_WAS_CALLED]() {\n      assert(`You must call \\`super.init(...arguments);\\` or \\`this._super(...arguments)\\` when overriding \\`init\\` on a framework object. Please update ${this} to call \\`super.init(...arguments);\\` from \\`init\\` when using native classes or \\`this._super(...arguments)\\` when using \\`EmberObject.extend()\\`.`, this[INIT_WAS_CALLED]);\n    }\n\n  };\n  addListener(FrameworkObject.prototype, 'init', null, ASSERT_INIT_WAS_CALLED);\n}","import FrameworkObject from './object';\nimport _ProxyMixin from '../mixins/-proxy';\n/**\n  `ObjectProxy` forwards all properties not defined by the proxy itself\n  to a proxied `content` object.\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import ObjectProxy from '@ember/object/proxy';\n\n  let exampleObject = EmberObject.create({\n    name: 'Foo'\n  });\n\n  let exampleProxy = ObjectProxy.create({\n    content: exampleObject\n  });\n\n  // Access and change existing properties\n  exampleProxy.get('name');          // 'Foo'\n  exampleProxy.set('name', 'Bar');\n  exampleObject.get('name');         // 'Bar'\n\n  // Create new 'description' property on `exampleObject`\n  exampleProxy.set('description', 'Foo is a whizboo baz');\n  exampleObject.get('description');  // 'Foo is a whizboo baz'\n  ```\n\n  While `content` is unset, setting a property to be delegated will throw an\n  Error.\n\n  ```javascript\n  import ObjectProxy from '@ember/object/proxy';\n\n  let exampleProxy = ObjectProxy.create({\n    content: null,\n    flag: null\n  });\n  exampleProxy.set('flag', true);\n  exampleProxy.get('flag');         // true\n  exampleProxy.get('foo');          // undefined\n  exampleProxy.set('foo', 'data');  // throws Error\n  ```\n\n  Delegated properties can be bound to and will change when content is updated.\n\n  Computed properties on the proxy itself can depend on delegated properties.\n\n  ```javascript\n  import { computed } from '@ember/object';\n  import ObjectProxy from '@ember/object/proxy';\n\n  ProxyWithComputedProperty = ObjectProxy.extend({\n    fullName: computed('firstName', 'lastName', function() {\n      var firstName = this.get('firstName'),\n          lastName = this.get('lastName');\n      if (firstName && lastName) {\n        return firstName + ' ' + lastName;\n      }\n      return firstName || lastName;\n    })\n  });\n\n  let exampleProxy = ProxyWithComputedProperty.create();\n\n  exampleProxy.get('fullName');  // undefined\n  exampleProxy.set('content', {\n    firstName: 'Tom', lastName: 'Dale'\n  }); // triggers property change for fullName on proxy\n\n  exampleProxy.get('fullName');  // 'Tom Dale'\n  ```\n\n  @class ObjectProxy\n  @extends EmberObject\n  @uses Ember.ProxyMixin\n  @public\n*/\n\nexport default class ObjectProxy extends FrameworkObject {}\nObjectProxy.PrototypeMixin.reopen(_ProxyMixin);","import CoreObject from './system/core_object'; // ........................................\n// TYPING & ARRAY MESSAGING\n//\n\nconst TYPE_MAP = {\n  '[object Boolean]': 'boolean',\n  '[object Number]': 'number',\n  '[object String]': 'string',\n  '[object Function]': 'function',\n  '[object AsyncFunction]': 'function',\n  '[object Array]': 'array',\n  '[object Date]': 'date',\n  '[object RegExp]': 'regexp',\n  '[object Object]': 'object',\n  '[object FileList]': 'filelist'\n};\nconst {\n  toString\n} = Object.prototype;\n/**\n @module @ember/utils\n*/\n\n/**\n  Returns a consistent type for the passed object.\n\n  Use this instead of the built-in `typeof` to get the type of an item.\n  It will return the same result across all browsers and includes a bit\n  more detail. Here is what will be returned:\n\n      | Return Value  | Meaning                                              |\n      |---------------|------------------------------------------------------|\n      | 'string'      | String primitive or String object.                   |\n      | 'number'      | Number primitive or Number object.                   |\n      | 'boolean'     | Boolean primitive or Boolean object.                 |\n      | 'null'        | Null value                                           |\n      | 'undefined'   | Undefined value                                      |\n      | 'function'    | A function                                           |\n      | 'array'       | An instance of Array                                 |\n      | 'regexp'      | An instance of RegExp                                |\n      | 'date'        | An instance of Date                                  |\n      | 'filelist'    | An instance of FileList                              |\n      | 'class'       | An Ember class (created using EmberObject.extend())  |\n      | 'instance'    | An Ember object instance                             |\n      | 'error'       | An instance of the Error object                      |\n      | 'object'      | A JavaScript object not inheriting from EmberObject  |\n\n  Examples:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import { typeOf } from '@ember/utils';\n  import EmberObject from '@ember/object';\n\n  typeOf();                       // 'undefined'\n  typeOf(null);                   // 'null'\n  typeOf(undefined);              // 'undefined'\n  typeOf('michael');              // 'string'\n  typeOf(new String('michael'));  // 'string'\n  typeOf(101);                    // 'number'\n  typeOf(new Number(101));        // 'number'\n  typeOf(true);                   // 'boolean'\n  typeOf(new Boolean(true));      // 'boolean'\n  typeOf(A);                      // 'function'\n  typeOf(A());                    // 'array'\n  typeOf([1, 2, 90]);             // 'array'\n  typeOf(/abc/);                  // 'regexp'\n  typeOf(new Date());             // 'date'\n  typeOf(event.target.files);     // 'filelist'\n  typeOf(EmberObject.extend());   // 'class'\n  typeOf(EmberObject.create());   // 'instance'\n  typeOf(new Error('teamocil'));  // 'error'\n\n  // 'normal' JavaScript object\n  typeOf({ a: 'b' });             // 'object'\n  ```\n\n  @method typeOf\n  @for @ember/utils\n  @param {Object} item the item to check\n  @return {String} the type\n  @public\n  @static\n*/\n\nexport function typeOf(item) {\n  if (item === null) {\n    return 'null';\n  }\n\n  if (item === undefined) {\n    return 'undefined';\n  }\n\n  let ret = TYPE_MAP[toString.call(item)] || 'object';\n\n  if (ret === 'function') {\n    if (CoreObject.detect(item)) {\n      ret = 'class';\n    }\n  } else if (ret === 'object') {\n    if (item instanceof Error) {\n      ret = 'error';\n    } else if (item instanceof CoreObject) {\n      ret = 'instance';\n    } else if (item instanceof Date) {\n      ret = 'date';\n    }\n  }\n\n  return ret;\n}","import { DEBUG } from '@glimmer/env';\nimport { _WeakSet } from '@glimmer/util';\nimport { deprecate, assert } from '@ember/debug';\n\n/**\n  Strongly hint runtimes to intern the provided string.\n\n  When do I need to use this function?\n\n  For the most part, never. Pre-mature optimization is bad, and often the\n  runtime does exactly what you need it to, and more often the trade-off isn't\n  worth it.\n\n  Why?\n\n  Runtimes store strings in at least 2 different representations:\n  Ropes and Symbols (interned strings). The Rope provides a memory efficient\n  data-structure for strings created from concatenation or some other string\n  manipulation like splitting.\n\n  Unfortunately checking equality of different ropes can be quite costly as\n  runtimes must resort to clever string comparison algorithms. These\n  algorithms typically cost in proportion to the length of the string.\n  Luckily, this is where the Symbols (interned strings) shine. As Symbols are\n  unique by their string content, equality checks can be done by pointer\n  comparison.\n\n  How do I know if my string is a rope or symbol?\n\n  Typically (warning general sweeping statement, but truthy in runtimes at\n  present) static strings created as part of the JS source are interned.\n  Strings often used for comparisons can be interned at runtime if some\n  criteria are met.  One of these criteria can be the size of the entire rope.\n  For example, in chrome 38 a rope longer then 12 characters will not\n  intern, nor will segments of that rope.\n\n  Some numbers: http://jsperf.com/eval-vs-keys/8\n\n  Known Trick™\n\n  @private\n  @return {String} interned version of the provided string\n*/\nfunction intern(str) {\n  let obj = {};\n  obj[str] = 1;\n\n  for (let key in obj) {\n    if (key === str) {\n      return key;\n    }\n  }\n\n  return str;\n}\n\n/**\n  Returns whether Type(value) is Object.\n\n  Useful for checking whether a value is a valid WeakMap key.\n\n  Refs: https://tc39.github.io/ecma262/#sec-typeof-operator-runtime-semantics-evaluation\n        https://tc39.github.io/ecma262/#sec-weakmap.prototype.set\n\n  @private\n  @function isObject\n*/\nfunction isObject(value) {\n  return value !== null && (typeof value === 'object' || typeof value === 'function');\n}\n\n/**\n @module @ember/object\n*/\n\n/**\n Previously we used `Ember.$.uuid`, however `$.uuid` has been removed from\n jQuery master. We'll just bootstrap our own uuid now.\n\n @private\n @return {Number} the uuid\n */\n\nlet _uuid = 0;\n/**\n Generates a universally unique identifier. This method\n is used internally by Ember for assisting with\n the generation of GUID's and other unique identifiers.\n\n @public\n @return {Number} [description]\n */\n\nfunction uuid() {\n  return ++_uuid;\n}\n/**\n Prefix used for guids through out Ember.\n @private\n @property GUID_PREFIX\n @for Ember\n @type String\n @final\n */\n\nconst GUID_PREFIX = 'ember'; // Used for guid generation...\n\nconst OBJECT_GUIDS = new WeakMap();\nconst NON_OBJECT_GUIDS = new Map();\n/**\n  A unique key used to assign guids and other private metadata to objects.\n  If you inspect an object in your browser debugger you will often see these.\n  They can be safely ignored.\n\n  On browsers that support it, these properties are added with enumeration\n  disabled so they won't show up when you iterate over your properties.\n\n  @private\n  @property GUID_KEY\n  @for Ember\n  @type String\n  @final\n*/\n\nconst GUID_KEY = intern(`__ember${Date.now()}`);\n/**\n  Generates a new guid, optionally saving the guid to the object that you\n  pass in. You will rarely need to use this method. Instead you should\n  call `guidFor(obj)`, which return an existing guid if available.\n\n  @private\n  @method generateGuid\n  @static\n  @for @ember/object/internals\n  @param {Object} [obj] Object the guid will be used for. If passed in, the guid will\n    be saved on the object and reused whenever you pass the same object\n    again.\n\n    If no object is passed, just generate a new guid.\n  @param {String} [prefix] Prefix to place in front of the guid. Useful when you want to\n    separate the guid into separate namespaces.\n  @return {String} the guid\n*/\n\nfunction generateGuid(obj, prefix = GUID_PREFIX) {\n  let guid = prefix + uuid();\n\n  if (isObject(obj)) {\n    OBJECT_GUIDS.set(obj, guid);\n  }\n\n  return guid;\n}\n/**\n  Returns a unique id for the object. If the object does not yet have a guid,\n  one will be assigned to it. You can call this on any object,\n  `EmberObject`-based or not.\n\n  You can also use this method on DOM Element objects.\n\n  @public\n  @static\n  @method guidFor\n  @for @ember/object/internals\n  @param {Object} obj any object, string, number, Element, or primitive\n  @return {String} the unique guid for this instance.\n*/\n\nfunction guidFor(value) {\n  let guid;\n\n  if (isObject(value)) {\n    guid = OBJECT_GUIDS.get(value);\n\n    if (guid === undefined) {\n      guid = GUID_PREFIX + uuid();\n      OBJECT_GUIDS.set(value, guid);\n    }\n  } else {\n    guid = NON_OBJECT_GUIDS.get(value);\n\n    if (guid === undefined) {\n      let type = typeof value;\n\n      if (type === 'string') {\n        guid = 'st' + uuid();\n      } else if (type === 'number') {\n        guid = 'nu' + uuid();\n      } else if (type === 'symbol') {\n        guid = 'sy' + uuid();\n      } else {\n        guid = '(' + value + ')';\n      }\n\n      NON_OBJECT_GUIDS.set(value, guid);\n    }\n  }\n\n  return guid;\n}\n\nconst HAS_NATIVE_SYMBOL = function () {\n  if (typeof Symbol !== 'function') {\n    return false;\n  }\n\n  return typeof Symbol() === 'symbol';\n}();\n\nconst GENERATED_SYMBOLS = [];\nfunction isInternalSymbol(possibleSymbol) {\n  return GENERATED_SYMBOLS.indexOf(possibleSymbol) !== -1;\n} // Some legacy symbols still need to be enumerable for a variety of reasons.\n// This code exists for that, and as a fallback in IE11. In general, prefer\n// `symbol` below when creating a new symbol.\n\nfunction enumerableSymbol(debugName) {\n  // TODO: Investigate using platform symbols, but we do not\n  // want to require non-enumerability for this API, which\n  // would introduce a large cost.\n  let id = GUID_KEY + Math.floor(Math.random() * Date.now());\n  let symbol = intern(`__${debugName}${id}__`);\n\n  if (DEBUG) {\n    GENERATED_SYMBOLS.push(symbol);\n  }\n\n  return symbol;\n}\nconst symbol = HAS_NATIVE_SYMBOL ? Symbol : enumerableSymbol;\n\n// the delete is meant to hint at runtimes that this object should remain in\n// dictionary mode. This is clearly a runtime specific hack, but currently it\n// appears worthwhile in some usecases. Please note, these deletes do increase\n// the cost of creation dramatically over a plain Object.create. And as this\n// only makes sense for long-lived dictionaries that aren't instantiated often.\nfunction makeDictionary(parent) {\n  let dict = Object.create(parent);\n  dict['_dict'] = null;\n  delete dict['_dict'];\n  return dict;\n}\n\nlet getDebugName;\n\nif (DEBUG) {\n  let getFunctionName = fn => {\n    let functionName = fn.name;\n\n    if (functionName === undefined) {\n      let match = Function.prototype.toString.call(fn).match(/function (\\w+)\\s*\\(/);\n      functionName = match && match[1] || '';\n    }\n\n    return functionName.replace(/^bound /, '');\n  };\n\n  let getObjectName = obj => {\n    let name;\n    let className;\n\n    if (obj.constructor && obj.constructor !== Object) {\n      className = getFunctionName(obj.constructor);\n    }\n\n    if ('toString' in obj && obj.toString !== Object.prototype.toString && obj.toString !== Function.prototype.toString) {\n      name = obj.toString();\n    } // If the class has a decent looking name, and the `toString` is one of the\n    // default Ember toStrings, replace the constructor portion of the toString\n    // with the class name. We check the length of the class name to prevent doing\n    // this when the value is minified.\n\n\n    if (name && name.match(/<.*:ember\\d+>/) && className && className[0] !== '_' && className.length > 2 && className !== 'Class') {\n      return name.replace(/<.*:/, `<${className}:`);\n    }\n\n    return name || className;\n  };\n\n  let getPrimitiveName = value => {\n    return String(value);\n  };\n\n  getDebugName = value => {\n    if (typeof value === 'function') {\n      return getFunctionName(value) || `(unknown function)`;\n    } else if (typeof value === 'object' && value !== null) {\n      return getObjectName(value) || `(unknown object)`;\n    } else {\n      return getPrimitiveName(value);\n    }\n  };\n}\n\nvar getDebugName$1 = getDebugName;\n\nconst HAS_SUPER_PATTERN = /\\.(_super|call\\(this|apply\\(this)/;\nconst fnToString = Function.prototype.toString;\nconst checkHasSuper = (() => {\n  let sourceAvailable = fnToString.call(function () {\n    return this;\n  }).indexOf('return this') > -1;\n\n  if (sourceAvailable) {\n    return function checkHasSuper(func) {\n      return HAS_SUPER_PATTERN.test(fnToString.call(func));\n    };\n  }\n\n  return function checkHasSuper() {\n    return true;\n  };\n})();\nconst HAS_SUPER_MAP = new WeakMap();\nconst ROOT = Object.freeze(function () {});\nHAS_SUPER_MAP.set(ROOT, false);\n\nfunction hasSuper(func) {\n  let hasSuper = HAS_SUPER_MAP.get(func);\n\n  if (hasSuper === undefined) {\n    hasSuper = checkHasSuper(func);\n    HAS_SUPER_MAP.set(func, hasSuper);\n  }\n\n  return hasSuper;\n}\n\nclass ObserverListenerMeta {\n  constructor() {\n    this.listeners = undefined;\n    this.observers = undefined;\n  }\n\n}\n\nconst OBSERVERS_LISTENERS_MAP = new WeakMap();\n\nfunction createObserverListenerMetaFor(fn) {\n  let meta = OBSERVERS_LISTENERS_MAP.get(fn);\n\n  if (meta === undefined) {\n    meta = new ObserverListenerMeta();\n    OBSERVERS_LISTENERS_MAP.set(fn, meta);\n  }\n\n  return meta;\n}\n\nfunction observerListenerMetaFor(fn) {\n  return OBSERVERS_LISTENERS_MAP.get(fn);\n}\nfunction setObservers(func, observers) {\n  let meta = createObserverListenerMetaFor(func);\n  meta.observers = observers;\n}\nfunction setListeners(func, listeners) {\n  let meta = createObserverListenerMetaFor(func);\n  meta.listeners = listeners;\n}\nconst IS_WRAPPED_FUNCTION_SET = new _WeakSet();\n/**\n  Wraps the passed function so that `this._super` will point to the superFunc\n  when the function is invoked. This is the primitive we use to implement\n  calls to super.\n\n  @private\n  @method wrap\n  @for Ember\n  @param {Function} func The function to call\n  @param {Function} superFunc The super function.\n  @return {Function} wrapped function.\n*/\n\nfunction wrap(func, superFunc) {\n  if (!hasSuper(func)) {\n    return func;\n  } // ensure an unwrapped super that calls _super is wrapped with a terminal _super\n\n\n  if (!IS_WRAPPED_FUNCTION_SET.has(superFunc) && hasSuper(superFunc)) {\n    return _wrap(func, _wrap(superFunc, ROOT));\n  }\n\n  return _wrap(func, superFunc);\n}\n\nfunction _wrap(func, superFunc) {\n  function superWrapper() {\n    let orig = this._super;\n    this._super = superFunc;\n    let ret = func.apply(this, arguments);\n    this._super = orig;\n    return ret;\n  }\n\n  IS_WRAPPED_FUNCTION_SET.add(superWrapper);\n  let meta = OBSERVERS_LISTENERS_MAP.get(func);\n\n  if (meta !== undefined) {\n    OBSERVERS_LISTENERS_MAP.set(superWrapper, meta);\n  }\n\n  return superWrapper;\n}\n\nconst {\n  toString: objectToString\n} = Object.prototype;\nconst {\n  toString: functionToString\n} = Function.prototype;\nconst {\n  isArray\n} = Array;\nconst {\n  keys: objectKeys\n} = Object;\nconst {\n  stringify\n} = JSON;\nconst LIST_LIMIT = 100;\nconst DEPTH_LIMIT = 4;\nconst SAFE_KEY = /^[\\w$]+$/;\n/**\n @module @ember/debug\n*/\n\n/**\n  Convenience method to inspect an object. This method will attempt to\n  convert the object into a useful string description.\n\n  It is a pretty simple implementation. If you want something more robust,\n  use something like JSDump: https://github.com/NV/jsDump\n\n  @method inspect\n  @static\n  @param {Object} obj The object you want to inspect.\n  @return {String} A description of the object\n  @since 1.4.0\n  @private\n*/\n\nfunction inspect(obj) {\n  // detect Node util.inspect call inspect(depth: number, opts: object)\n  if (typeof obj === 'number' && arguments.length === 2) {\n    return this;\n  }\n\n  return inspectValue(obj, 0);\n}\n\nfunction inspectValue(value, depth, seen) {\n  let valueIsArray = false;\n\n  switch (typeof value) {\n    case 'undefined':\n      return 'undefined';\n\n    case 'object':\n      if (value === null) return 'null';\n\n      if (isArray(value)) {\n        valueIsArray = true;\n        break;\n      } // is toString Object.prototype.toString or undefined then traverse\n\n\n      if (value.toString === objectToString || value.toString === undefined) {\n        break;\n      } // custom toString\n\n\n      return value.toString();\n\n    case 'function':\n      return value.toString === functionToString ? value.name ? `[Function:${value.name}]` : `[Function]` : value.toString();\n\n    case 'string':\n      return stringify(value);\n\n    case 'symbol':\n    case 'boolean':\n    case 'number':\n    default:\n      return value.toString();\n  }\n\n  if (seen === undefined) {\n    seen = new _WeakSet();\n  } else {\n    if (seen.has(value)) return `[Circular]`;\n  }\n\n  seen.add(value);\n  return valueIsArray ? inspectArray(value, depth + 1, seen) : inspectObject(value, depth + 1, seen);\n}\n\nfunction inspectKey(key) {\n  return SAFE_KEY.test(key) ? key : stringify(key);\n}\n\nfunction inspectObject(obj, depth, seen) {\n  if (depth > DEPTH_LIMIT) {\n    return '[Object]';\n  }\n\n  let s = '{';\n  let keys = objectKeys(obj);\n\n  for (let i = 0; i < keys.length; i++) {\n    s += i === 0 ? ' ' : ', ';\n\n    if (i >= LIST_LIMIT) {\n      s += `... ${keys.length - LIST_LIMIT} more keys`;\n      break;\n    }\n\n    let key = keys[i];\n    s += inspectKey(key) + ': ' + inspectValue(obj[key], depth, seen);\n  }\n\n  s += ' }';\n  return s;\n}\n\nfunction inspectArray(arr, depth, seen) {\n  if (depth > DEPTH_LIMIT) {\n    return '[Array]';\n  }\n\n  let s = '[';\n\n  for (let i = 0; i < arr.length; i++) {\n    s += i === 0 ? ' ' : ', ';\n\n    if (i >= LIST_LIMIT) {\n      s += `... ${arr.length - LIST_LIMIT} more items`;\n      break;\n    }\n\n    s += inspectValue(arr[i], depth, seen);\n  }\n\n  s += ' ]';\n  return s;\n}\n\nfunction lookupDescriptor(obj, keyName) {\n  let current = obj;\n\n  do {\n    let descriptor = Object.getOwnPropertyDescriptor(current, keyName);\n\n    if (descriptor !== undefined) {\n      return descriptor;\n    }\n\n    current = Object.getPrototypeOf(current);\n  } while (current !== null);\n\n  return null;\n}\n\n/**\n  Checks to see if the `methodName` exists on the `obj`.\n\n  ```javascript\n  let foo = { bar: function() { return 'bar'; }, baz: null };\n\n  Ember.canInvoke(foo, 'bar'); // true\n  Ember.canInvoke(foo, 'baz'); // false\n  Ember.canInvoke(foo, 'bat'); // false\n  ```\n\n  @method canInvoke\n  @for Ember\n  @param {Object} obj The object to check for the method\n  @param {String} methodName The method name to check for\n  @return {Boolean}\n  @private\n*/\n\nfunction canInvoke(obj, methodName) {\n  return obj !== null && obj !== undefined && typeof obj[methodName] === 'function';\n}\n/**\n  @module @ember/utils\n*/\n\n/**\n  Checks to see if the `methodName` exists on the `obj`,\n  and if it does, invokes it with the arguments passed.\n\n  ```javascript\n  import { tryInvoke } from '@ember/utils';\n\n  let d = new Date('03/15/2013');\n\n  tryInvoke(d, 'getTime');              // 1363320000000\n  tryInvoke(d, 'setFullYear', [2014]);  // 1394856000000\n  tryInvoke(d, 'noSuchMethod', [2014]); // undefined\n  ```\n\n  @method tryInvoke\n  @for @ember/utils\n  @static\n  @param {Object} obj The object to check for the method\n  @param {String} methodName The method name to check for\n  @param {Array} [args] The arguments to pass to the method\n  @return {*} the return value of the invoked method or undefined if it cannot be invoked\n  @public\n  @deprecated Use Javascript's optional chaining instead.\n*/\n\nfunction tryInvoke(obj, methodName, args) {\n  deprecate(`Use of tryInvoke is deprecated. Instead, consider using JavaScript's optional chaining.`, false, {\n    id: 'ember-utils.try-invoke',\n    until: '4.0.0',\n    for: 'ember-source',\n    since: {\n      enabled: '3.24.0'\n    },\n    url: 'https://deprecations.emberjs.com/v3.x#toc_ember-utils-try-invoke'\n  });\n\n  if (canInvoke(obj, methodName)) {\n    let method = obj[methodName];\n    return method.apply(obj, args);\n  }\n}\n\nconst {\n  isArray: isArray$1\n} = Array;\n\nfunction makeArray(obj) {\n  if (obj === null || obj === undefined) {\n    return [];\n  }\n\n  return isArray$1(obj) ? obj : [obj];\n}\n\nconst NAMES = new WeakMap();\nfunction setName(obj, name) {\n  if (isObject(obj)) NAMES.set(obj, name);\n}\nfunction getName(obj) {\n  return NAMES.get(obj);\n}\n\nconst objectToString$1 = Object.prototype.toString;\n\nfunction isNone(obj) {\n  return obj === null || obj === undefined;\n}\n/*\n A `toString` util function that supports objects without a `toString`\n method, e.g. an object created with `Object.create(null)`.\n*/\n\n\nfunction toString(obj) {\n  if (typeof obj === 'string') {\n    return obj;\n  }\n\n  if (null === obj) return 'null';\n  if (undefined === obj) return 'undefined';\n\n  if (Array.isArray(obj)) {\n    // Reimplement Array.prototype.join according to spec (22.1.3.13)\n    // Changing ToString(element) with this safe version of ToString.\n    let r = '';\n\n    for (let k = 0; k < obj.length; k++) {\n      if (k > 0) {\n        r += ',';\n      }\n\n      if (!isNone(obj[k])) {\n        r += toString(obj[k]);\n      }\n    }\n\n    return r;\n  }\n\n  if (typeof obj.toString === 'function') {\n    return obj.toString();\n  }\n\n  return objectToString$1.call(obj);\n}\n\nconst HAS_NATIVE_PROXY = typeof Proxy === 'function';\n\nconst PROXIES = new _WeakSet();\nfunction isProxy(value) {\n  if (isObject(value)) {\n    return PROXIES.has(value);\n  }\n\n  return false;\n}\nfunction setProxy(object) {\n  if (isObject(object)) {\n    PROXIES.add(object);\n  }\n}\n\nclass Cache {\n  constructor(limit, func, store) {\n    this.limit = limit;\n    this.func = func;\n    this.store = store;\n    this.size = 0;\n    this.misses = 0;\n    this.hits = 0;\n    this.store = store || new Map();\n  }\n\n  get(key) {\n    if (this.store.has(key)) {\n      this.hits++;\n      return this.store.get(key);\n    } else {\n      this.misses++;\n      return this.set(key, this.func(key));\n    }\n  }\n\n  set(key, value) {\n    if (this.limit > this.size) {\n      this.size++;\n      this.store.set(key, value);\n    }\n\n    return value;\n  }\n\n  purge() {\n    this.store.clear();\n    this.size = 0;\n    this.hits = 0;\n    this.misses = 0;\n  }\n\n}\n\nconst EMBER_ARRAYS = new _WeakSet();\nfunction setEmberArray(obj) {\n  EMBER_ARRAYS.add(obj);\n}\nfunction isEmberArray(obj) {\n  return EMBER_ARRAYS.has(obj);\n}\n\nlet setupMandatorySetter;\nlet teardownMandatorySetter;\nlet setWithMandatorySetter;\n\nfunction isElementKey(key) {\n  return typeof key === 'number' ? isPositiveInt(key) : isStringInt(key);\n}\n\nfunction isStringInt(str) {\n  let num = parseInt(str, 10);\n  return isPositiveInt(num) && str === String(num);\n}\n\nfunction isPositiveInt(num) {\n  return num >= 0 && num % 1 === 0;\n}\n\nif (DEBUG) {\n  let SEEN_TAGS = new _WeakSet();\n  let MANDATORY_SETTERS = new WeakMap();\n\n  let propertyIsEnumerable = function (obj, key) {\n    return Object.prototype.propertyIsEnumerable.call(obj, key);\n  };\n\n  setupMandatorySetter = function (tag, obj, keyName) {\n    if (SEEN_TAGS.has(tag)) {\n      return;\n    }\n\n    SEEN_TAGS.add(tag);\n\n    if (Array.isArray(obj) && isElementKey(keyName)) {\n      return;\n    }\n\n    let desc = lookupDescriptor(obj, keyName) || {};\n\n    if (desc.get || desc.set) {\n      // if it has a getter or setter, we can't install the mandatory setter.\n      // native setters are allowed, we have to assume that they will resolve\n      // to tracked properties.\n      return;\n    }\n\n    if (desc && (!desc.configurable || !desc.writable)) {\n      // if it isn't writable anyways, so we shouldn't provide the setter.\n      // if it isn't configurable, we can't overwrite it anyways.\n      return;\n    }\n\n    let setters = MANDATORY_SETTERS.get(obj);\n\n    if (setters === undefined) {\n      setters = {};\n      MANDATORY_SETTERS.set(obj, setters);\n    }\n\n    desc.hadOwnProperty = Object.hasOwnProperty.call(obj, keyName);\n    setters[keyName] = desc;\n    Object.defineProperty(obj, keyName, {\n      configurable: true,\n      enumerable: propertyIsEnumerable(obj, keyName),\n\n      get() {\n        if (desc.get) {\n          return desc.get.call(this);\n        } else {\n          return desc.value;\n        }\n      },\n\n      set(value) {\n        assert(`You attempted to update ${this}.${String(keyName)} to \"${String(value)}\", but it is being tracked by a tracking context, such as a template, computed property, or observer. In order to make sure the context updates properly, you must invalidate the property when updating it. You can mark the property as \\`@tracked\\`, or use \\`@ember/object#set\\` to do this.`);\n      }\n\n    });\n  };\n\n  teardownMandatorySetter = function (obj, keyName) {\n    let setters = MANDATORY_SETTERS.get(obj);\n\n    if (setters !== undefined && setters[keyName] !== undefined) {\n      Object.defineProperty(obj, keyName, setters[keyName]);\n      setters[keyName] = undefined;\n    }\n  };\n\n  setWithMandatorySetter = function (obj, keyName, value) {\n    let setters = MANDATORY_SETTERS.get(obj);\n\n    if (setters !== undefined && setters[keyName] !== undefined) {\n      let setter = setters[keyName];\n\n      if (setter.set) {\n        setter.set.call(obj, value);\n      } else {\n        setter.value = value; // If the object didn't have own property before, it would have changed\n        // the enumerability after setting the value the first time.\n\n        if (!setter.hadOwnProperty) {\n          let desc = lookupDescriptor(obj, keyName);\n          desc.enumerable = true;\n          Object.defineProperty(obj, keyName, desc);\n        }\n      }\n    } else {\n      obj[keyName] = value;\n    }\n  };\n}\n\n/*\n This package will be eagerly parsed and should have no dependencies on external\n packages.\n\n It is intended to be used to share utility methods that will be needed\n by every Ember application (and is **not** a dumping ground of useful utilities).\n\n Utility methods that are needed in < 80% of cases should be placed\n elsewhere (so they can be lazily evaluated / parsed).\n*/\n\nexport { symbol, enumerableSymbol, isInternalSymbol, makeDictionary as dictionary, getDebugName$1 as getDebugName, uuid, GUID_KEY, generateGuid, guidFor, intern, checkHasSuper, ROOT, wrap, observerListenerMetaFor, setObservers, setListeners, inspect, lookupDescriptor, canInvoke, tryInvoke, makeArray, getName, setName, toString, isObject, HAS_NATIVE_SYMBOL, HAS_NATIVE_PROXY, isProxy, setProxy, Cache, setEmberArray, isEmberArray, setupMandatorySetter, teardownMandatorySetter, setWithMandatorySetter };\n","export { jQuery, jQueryDisabled } from './lib/system/jquery';\nexport { addChildView, isSimpleClick, getViewBounds, getViewClientRects, getViewBoundingClientRect, getRootViews, getChildViews, getViewId, getElementView, getViewElement, setElementView, setViewElement, clearElementView, clearViewElement, constructStyleDeprecationMessage } from './lib/system/utils';\nexport { default as EventDispatcher } from './lib/system/event_dispatcher';\nexport { default as ComponentLookup } from './lib/component_lookup';\nexport { default as TextSupport } from './lib/mixins/text_support';\nexport { default as CoreView } from './lib/views/core_view';\nexport { default as ClassNamesSupport } from './lib/mixins/class_names_support';\nexport { default as ChildViewsSupport } from './lib/mixins/child_views_support';\nexport { default as ViewStateSupport } from './lib/mixins/view_state_support';\nexport { default as ViewMixin } from './lib/mixins/view_support';\nexport { default as ActionSupport } from './lib/mixins/action_support';\nexport { MUTABLE_CELL } from './lib/compat/attrs';\nexport { default as ActionManager } from './lib/system/action_manager';","import { symbol } from '@ember/-internals/utils';\nexport let MUTABLE_CELL = symbol('MUTABLE_CELL');","import { dictionary } from '@ember/-internals/utils';\nexport default dictionary(null);","import { Object as EmberObject } from '@ember/-internals/runtime';\nexport default EmberObject.extend({\n  componentFor(name, owner, options) {\n    let fullName = `component:${name}`;\n    return owner.factoryFor(fullName, options);\n  },\n\n  layoutFor(name, owner, options) {\n    let templateFullName = `template:components/${name}`;\n    return owner.lookup(templateFullName, options);\n  }\n\n});","/**\n @module ember\n*/\nimport { inspect } from '@ember/-internals/utils';\nimport { Mixin, get } from '@ember/-internals/metal';\nimport { assert, deprecate } from '@ember/debug';\nimport { MUTABLE_CELL } from '../compat/attrs';\nimport { SEND_ACTION } from '@ember/deprecated-features';\nconst mixinObj = {\n  send(actionName, ...args) {\n    assert(`Attempted to call .send() with the action '${actionName}' on the destroyed object '${this}'.`, !this.isDestroying && !this.isDestroyed);\n    let action = this.actions && this.actions[actionName];\n\n    if (action) {\n      let shouldBubble = action.apply(this, args) === true;\n\n      if (!shouldBubble) {\n        return;\n      }\n    }\n\n    let target = get(this, 'target');\n\n    if (target) {\n      assert(`The \\`target\\` for ${this} (${target}) does not have a \\`send\\` method`, typeof target.send === 'function');\n      target.send(...arguments);\n    } else {\n      assert(`${inspect(this)} had no action handler for: ${actionName}`, action);\n    }\n  }\n\n};\n\nif (SEND_ACTION) {\n  /**\n    Calls an action passed to a component.\n     For example a component for playing or pausing music may translate click events\n    into action notifications of \"play\" or \"stop\" depending on some internal state\n    of the component:\n     ```app/components/play-button.js\n    import Component from '@ember/component';\n     export default Component.extend({\n      click() {\n        if (this.get('isPlaying')) {\n          this.sendAction('play');\n        } else {\n          this.sendAction('stop');\n        }\n      }\n    });\n    ```\n     The actions \"play\" and \"stop\" must be passed to this `play-button` component:\n     ```handlebars\n    {{! app/templates/application.hbs }}\n    {{play-button play=(action \"musicStarted\") stop=(action \"musicStopped\")}}\n    ```\n     When the component receives a browser `click` event it translate this\n    interaction into application-specific semantics (\"play\" or \"stop\") and\n    calls the specified action.\n     ```app/controller/application.js\n    import Controller from '@ember/controller';\n     export default Controller.extend({\n      actions: {\n        musicStarted() {\n          // called when the play button is clicked\n          // and the music started playing\n        },\n        musicStopped() {\n          // called when the play button is clicked\n          // and the music stopped playing\n        }\n      }\n    });\n    ```\n     If no action is passed to `sendAction` a default name of \"action\"\n    is assumed.\n     ```app/components/next-button.js\n    import Component from '@ember/component';\n     export default Component.extend({\n      click() {\n        this.sendAction();\n      }\n    });\n    ```\n     ```handlebars\n    {{! app/templates/application.hbs }}\n    {{next-button action=(action \"playNextSongInAlbum\")}}\n    ```\n     ```app/controllers/application.js\n    import Controller from '@ember/controller';\n     export default Controller.extend({\n      actions: {\n        playNextSongInAlbum() {\n          ...\n        }\n      }\n    });\n    ```\n     @method sendAction\n    @param [action] {String} the action to call\n    @param [params] {*} arguments for the action\n    @public\n    @deprecated\n  */\n  let sendAction = function sendAction(action, ...contexts) {\n    assert(`Attempted to call .sendAction() with the action '${action}' on the destroyed object '${this}'.`, !this.isDestroying && !this.isDestroyed);\n    deprecate(`You called ${inspect(this)}.sendAction(${typeof action === 'string' ? `\"${action}\"` : ''}) but Component#sendAction is deprecated. Please use closure actions instead.`, false, {\n      id: 'ember-component.send-action',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_ember-component-send-action',\n      for: 'ember-source',\n      since: {\n        enabled: '3.4.0'\n      }\n    });\n    let actionName; // Send the default action\n\n    if (action === undefined) {\n      action = 'action';\n    }\n\n    actionName = get(this, `attrs.${action}`) || get(this, action);\n    actionName = validateAction(this, actionName); // If no action name for that action could be found, just abort.\n\n    if (actionName === undefined) {\n      return;\n    }\n\n    if (typeof actionName === 'function') {\n      actionName(...contexts);\n    } else {\n      this.triggerAction({\n        action: actionName,\n        actionContext: contexts\n      });\n    }\n  };\n\n  let validateAction = function validateAction(component, actionName) {\n    if (actionName && actionName[MUTABLE_CELL]) {\n      actionName = actionName.value;\n    }\n\n    assert(`The default action was triggered on the component ${component.toString()}, but the action name (${actionName}) was not a string.`, actionName === null || actionName === undefined || typeof actionName === 'string' || typeof actionName === 'function');\n    return actionName;\n  };\n\n  mixinObj.sendAction = sendAction;\n}\n/**\n @class ActionSupport\n @namespace Ember\n @private\n*/\n\n\nexport default Mixin.create(mixinObj);","/**\n@module ember\n*/\nimport { Mixin, nativeDescDecorator } from '@ember/-internals/metal';\nimport { getChildViews, addChildView } from '../system/utils';\nexport default Mixin.create({\n  /**\n    Array of child views. You should never edit this array directly.\n     @property childViews\n    @type Array\n    @default []\n    @private\n  */\n  childViews: nativeDescDecorator({\n    configurable: false,\n    enumerable: false,\n\n    get() {\n      return getChildViews(this);\n    }\n\n  }),\n\n  appendChild(view) {\n    addChildView(this, view);\n  }\n\n});","/**\n@module ember\n*/\nimport { descriptorForProperty, Mixin } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nconst EMPTY_ARRAY = Object.freeze([]);\n/**\n  @class ClassNamesSupport\n  @namespace Ember\n  @private\n*/\n\nexport default Mixin.create({\n  concatenatedProperties: ['classNames', 'classNameBindings'],\n\n  init() {\n    this._super(...arguments);\n\n    assert(`Only arrays are allowed for 'classNameBindings'`, descriptorForProperty(this, 'classNameBindings') === undefined && Array.isArray(this.classNameBindings));\n    assert(`Only arrays of static class strings are allowed for 'classNames'. For dynamic classes, use 'classNameBindings'.`, descriptorForProperty(this, 'classNames') === undefined && Array.isArray(this.classNames));\n  },\n\n  /**\n    Standard CSS class names to apply to the view's outer element. This\n    property automatically inherits any class names defined by the view's\n    superclasses as well.\n     @property classNames\n    @type Array\n    @default ['ember-view']\n    @public\n  */\n  classNames: EMPTY_ARRAY,\n\n  /**\n    A list of properties of the view to apply as class names. If the property\n    is a string value, the value of that string will be applied as a class\n    name.\n     ```javascript\n    // Applies the 'high' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['priority'],\n      priority: 'high'\n    });\n    ```\n     If the value of the property is a Boolean, the name of that property is\n    added as a dasherized class name.\n     ```javascript\n    // Applies the 'is-urgent' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['isUrgent'],\n      isUrgent: true\n    });\n    ```\n     If you would prefer to use a custom value instead of the dasherized\n    property name, you can pass a binding like this:\n     ```javascript\n    // Applies the 'urgent' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['isUrgent:urgent'],\n      isUrgent: true\n    });\n    ```\n     If you would like to specify a class that should only be added when the\n    property is false, you can declare a binding like this:\n     ```javascript\n    // Applies the 'disabled' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['isEnabled::disabled'],\n      isEnabled: false\n    });\n    ```\n     This list of properties is inherited from the component's superclasses as well.\n     @property classNameBindings\n    @type Array\n    @default []\n    @public\n  */\n  classNameBindings: EMPTY_ARRAY\n});","/**\n@module ember\n*/\nimport { get, set, Mixin } from '@ember/-internals/metal';\nimport { deprecate } from '@ember/debug';\nimport { SEND_ACTION } from '@ember/deprecated-features';\nimport { MUTABLE_CELL } from '@ember/-internals/views';\nimport { DEBUG } from '@glimmer/env';\n\nif (DEBUG && true\n/* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n) {\n  Mixin._disableDebugSeal = true;\n}\n\nconst KEY_EVENTS = {\n  Enter: 'insertNewline',\n  Escape: 'cancel'\n};\n/**\n  `TextSupport` is a shared mixin used by both `TextField` and\n  `TextArea`. `TextSupport` adds a number of methods that allow you to\n  specify a controller action to invoke when a certain event is fired on your\n  text field or textarea. The specified controller action would get the current\n  value of the field passed in as the only argument unless the value of\n  the field is empty. In that case, the instance of the field itself is passed\n  in as the only argument.\n\n  Let's use the pressing of the escape key as an example. If you wanted to\n  invoke a controller action when a user presses the escape key while on your\n  field, you would use the `escape-press` attribute on your field like so:\n\n  ```handlebars\n    {{! application.hbs}}\n\n    {{input escape-press='alertUser'}}\n  ```\n\n  ```javascript\n      import Application from '@ember/application';\n      import Controller from '@ember/controller';\n      App = Application.create();\n\n      App.ApplicationController = Controller.extend({\n        actions: {\n          alertUser: function ( currentValue ) {\n            alert( 'escape pressed, current value: ' + currentValue );\n          }\n        }\n      });\n  ```\n\n  The following chart is a visual representation of what takes place when the\n  escape key is pressed in this scenario:\n\n  ```\n  The Template\n  +---------------------------+\n  |                           |\n  | escape-press='alertUser'  |\n  |                           |          TextSupport Mixin\n  +----+----------------------+          +-------------------------------+\n       |                                 | cancel method                 |\n       |      escape button pressed      |                               |\n       +-------------------------------> | checks for the `escape-press` |\n                                         | attribute and pulls out the   |\n       +-------------------------------+ | `alertUser` value             |\n       |     action name 'alertUser'     +-------------------------------+\n       |     sent to controller\n       v\n  Controller\n  +------------------------------------------ +\n  |                                           |\n  |  actions: {                               |\n  |     alertUser: function( currentValue ){  |\n  |       alert( 'the esc key was pressed!' ) |\n  |     }                                     |\n  |  }                                        |\n  |                                           |\n  +-------------------------------------------+\n  ```\n\n  Here are the events that we currently support along with the name of the\n  attribute you would need to use on your field. To reiterate, you would use the\n  attribute name like so:\n\n  ```handlebars\n    {{input attribute-name='controllerAction'}}\n  ```\n\n  ```\n  +--------------------+----------------+\n  |                    |                |\n  | event              | attribute name |\n  +--------------------+----------------+\n  | new line inserted  | insert-newline |\n  |                    |                |\n  | enter key pressed  | enter          |\n  |                    |                |\n  | cancel key pressed | escape-press   |\n  |                    |                |\n  | focusin            | focus-in       |\n  |                    |                |\n  | focusout           | focus-out      |\n  |                    |                |\n  | keypress           | key-press      |\n  |                    |                |\n  | keyup              | key-up         |\n  |                    |                |\n  | keydown            | key-down       |\n  +--------------------+----------------+\n  ```\n\n  @class TextSupport\n  @namespace Ember\n  @uses Ember.TargetActionSupport\n  @extends Mixin\n  @private\n*/\n\nconst TextSupport = Mixin.create({\n  value: '',\n  attributeBindings: ['autocapitalize', 'autocorrect', 'autofocus', 'disabled', 'form', 'maxlength', 'minlength', 'placeholder', 'readonly', 'required', 'selectionDirection', 'spellcheck', 'tabindex', 'title'],\n  placeholder: null,\n  disabled: false,\n  maxlength: null,\n\n  init() {\n    this._super(...arguments);\n\n    this.on('paste', this, this._elementValueDidChange);\n    this.on('cut', this, this._elementValueDidChange);\n    this.on('input', this, this._elementValueDidChange);\n  },\n\n  /**\n    Whether the `keyUp` event that triggers an `action` to be sent continues\n    propagating to other views.\n     By default, when the user presses the return key on their keyboard and\n    the text field has an `action` set, the action will be sent to the view's\n    controller and the key event will stop propagating.\n     If you would like parent views to receive the `keyUp` event even after an\n    action has been dispatched, set `bubbles` to true.\n     @property bubbles\n    @type Boolean\n    @default false\n    @private\n  */\n  bubbles: false,\n\n  interpretKeyEvents(event) {\n    let method = KEY_EVENTS[event.key];\n\n    this._elementValueDidChange();\n\n    if (method) {\n      return this[method](event);\n    }\n  },\n\n  _elementValueDidChange() {\n    set(this, 'value', this.element.value);\n  },\n\n  change(event) {\n    this._elementValueDidChange(event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when either the `enter`\n    key is pressed or, in the case of the field being a textarea, when a newline\n    is inserted. To use this method, give your field an `insert-newline`\n    attribute. The value of that attribute should be the name of the action\n    in your controller that you wish to invoke.\n     For an example on how to use the `insert-newline` attribute, please\n    reference the example near the top of this file.\n     @method insertNewline\n    @param {Event} event\n    @private\n  */\n  insertNewline(event) {\n    sendAction('enter', this, event);\n    sendAction('insert-newline', this, event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when the escape button\n    is pressed. To use this method, give your field an `escape-press`\n    attribute. The value of that attribute should be the name of the action\n    in your controller that you wish to invoke.\n     For an example on how to use the `escape-press` attribute, please reference\n    the example near the top of this file.\n     @method cancel\n    @param {Event} event\n    @private\n  */\n  cancel(event) {\n    sendAction('escape-press', this, event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when a field receives\n    focus. To use this method, give your field a `focus-in` attribute. The value\n    of that attribute should be the name of the action in your controller\n    that you wish to invoke.\n     For an example on how to use the `focus-in` attribute, please reference the\n    example near the top of this file.\n     @method focusIn\n    @param {Event} event\n    @private\n  */\n  focusIn(event) {\n    sendAction('focus-in', this, event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when a field loses\n    focus. To use this method, give your field a `focus-out` attribute. The value\n    of that attribute should be the name of the action in your controller\n    that you wish to invoke.\n     For an example on how to use the `focus-out` attribute, please reference the\n    example near the top of this file.\n     @method focusOut\n    @param {Event} event\n    @private\n  */\n  focusOut(event) {\n    this._elementValueDidChange(event);\n\n    sendAction('focus-out', this, event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when a key is pressed.\n    To use this method, give your field a `key-press` attribute. The value of\n    that attribute should be the name of the action in your controller you\n    that wish to invoke.\n     For an example on how to use the `key-press` attribute, please reference the\n    example near the top of this file.\n     @method keyPress\n    @param {Event} event\n    @private\n  */\n  keyPress(event) {\n    sendAction('key-press', this, event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when a key-up event is\n    fired. To use this method, give your field a `key-up` attribute. The value\n    of that attribute should be the name of the action in your controller\n    that you wish to invoke.\n     For an example on how to use the `key-up` attribute, please reference the\n    example near the top of this file.\n     @method keyUp\n    @param {Event} event\n    @private\n  */\n  keyUp(event) {\n    this.interpretKeyEvents(event);\n    sendAction('key-up', this, event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when a key-down event is\n    fired. To use this method, give your field a `key-down` attribute. The value\n    of that attribute should be the name of the action in your controller that\n    you wish to invoke.\n     For an example on how to use the `key-down` attribute, please reference the\n    example near the top of this file.\n     @method keyDown\n    @param {Event} event\n    @private\n  */\n  keyDown(event) {\n    sendAction('key-down', this, event);\n  }\n\n}); // In principle, this shouldn't be necessary, but the legacy\n// sendAction semantics for TextField are different from\n// the component semantics so this method normalizes them.\n\nfunction sendAction(eventName, view, event) {\n  let action = get(view, `attrs.${eventName}`);\n\n  if (action !== null && typeof action === 'object' && action[MUTABLE_CELL] === true) {\n    action = action.value;\n  }\n\n  if (action === undefined) {\n    action = get(view, eventName);\n  }\n\n  let value = get(view, 'value');\n\n  if (SEND_ACTION && typeof action === 'string') {\n    let message = `Passing actions to components as strings (like \\`<Input @${eventName}=\"${action}\" />\\`) is deprecated. Please use closure actions instead (\\`<Input @${eventName}={{action \"${action}\"}} />\\`).`;\n    deprecate(message, false, {\n      id: 'ember-component.send-action',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_ember-component-send-action',\n      for: 'ember-source',\n      since: {\n        enabled: '3.4.0'\n      }\n    });\n    view.triggerAction({\n      action: action,\n      actionContext: [value, event]\n    });\n  } else if (typeof action === 'function') {\n    action(value, event);\n  }\n\n  if (action && !get(view, 'bubbles')) {\n    event.stopPropagation();\n  }\n}\n\nif (true\n/* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n) {\n  Object.defineProperty(TextSupport, '_wasReopened', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: false\n  });\n  Object.defineProperty(TextSupport, 'reopen', {\n    configurable: true,\n    enumerable: false,\n    writable: true,\n    value: function reopen(...args) {\n      if (this === TextSupport) {\n        deprecate('Reopening Ember.TextSupport is deprecated.', false, {\n          id: 'ember.built-in-components.reopen',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          },\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-reopen'\n        });\n        TextSupport._wasReopened = true;\n      }\n\n      return Mixin.prototype.reopen.call(this, ...args);\n    }\n  });\n\n  if (DEBUG) {\n    Object.seal(TextSupport);\n    Mixin._disableDebugSeal = false;\n  }\n}\n\nexport default TextSupport;","/**\n@module ember\n*/\nimport { Mixin } from '@ember/-internals/metal';\nexport default Mixin.create({\n  _transitionTo(state) {\n    let priorState = this._currentState;\n    let currentState = this._currentState = this._states[state];\n    this._state = state;\n\n    if (priorState && priorState.exit) {\n      priorState.exit(this);\n    }\n\n    if (currentState.enter) {\n      currentState.enter(this);\n    }\n  }\n\n});","import { guidFor } from '@ember/-internals/utils';\nimport { descriptorForProperty, Mixin, nativeDescDecorator } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nimport { hasDOM } from '@ember/-internals/browser-environment';\nimport { matches } from '../system/utils';\nimport { jQuery, jQueryDisabled } from '../system/jquery';\nimport { deprecate } from '@ember/debug';\nimport { JQUERY_INTEGRATION } from '@ember/deprecated-features';\n\nfunction K() {\n  return this;\n}\n\nlet mixin = {\n  /**\n   A list of properties of the view to apply as attributes. If the property\n   is a string value, the value of that string will be applied as the value\n   for an attribute of the property's name.\n    The following example creates a tag like `<div priority=\"high\" />`.\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    export default Component.extend({\n      attributeBindings: ['priority'],\n      priority: 'high'\n    });\n   ```\n    If the value of the property is a Boolean, the attribute is treated as\n   an HTML Boolean attribute. It will be present if the property is `true`\n   and omitted if the property is `false`.\n    The following example creates markup like `<div visible />`.\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    export default Component.extend({\n      attributeBindings: ['visible'],\n      visible: true\n    });\n   ```\n    If you would prefer to use a custom value instead of the property name,\n   you can create the same markup as the last example with a binding like\n   this:\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    export default Component.extend({\n      attributeBindings: ['isVisible:visible'],\n      isVisible: true\n    });\n   ```\n    This list of attributes is inherited from the component's superclasses,\n   as well.\n    @property attributeBindings\n   @type Array\n   @default []\n   @public\n   */\n  concatenatedProperties: ['attributeBindings'],\n\n  // ..........................................................\n  // TEMPLATE SUPPORT\n  //\n\n  /**\n   Return the nearest ancestor that is an instance of the provided\n   class or mixin.\n    @method nearestOfType\n   @param {Class,Mixin} klass Subclass of Ember.View (or Ember.View itself),\n   or an instance of Mixin.\n   @return Ember.View\n   @deprecated use `yield` and contextual components for composition instead.\n   @private\n   */\n  nearestOfType(klass) {\n    let view = this.parentView;\n    let isOfType = klass instanceof Mixin ? view => klass.detect(view) : view => klass.detect(view.constructor);\n\n    while (view) {\n      if (isOfType(view)) {\n        return view;\n      }\n\n      view = view.parentView;\n    }\n  },\n\n  /**\n   Return the nearest ancestor that has a given property.\n    @method nearestWithProperty\n   @param {String} property A property name\n   @return Ember.View\n   @deprecated use `yield` and contextual components for composition instead.\n   @private\n   */\n  nearestWithProperty(property) {\n    let view = this.parentView;\n\n    while (view) {\n      if (property in view) {\n        return view;\n      }\n\n      view = view.parentView;\n    }\n  },\n\n  /**\n   Renders the view again. This will work regardless of whether the\n   view is already in the DOM or not. If the view is in the DOM, the\n   rendering process will be deferred to give bindings a chance\n   to synchronize.\n    If children were added during the rendering process using `appendChild`,\n   `rerender` will remove them, because they will be added again\n   if needed by the next `render`.\n    In general, if the display of your view changes, you should modify\n   the DOM element directly instead of manually calling `rerender`, which can\n   be slow.\n    @method rerender\n   @public\n   */\n  rerender() {\n    return this._currentState.rerender(this);\n  },\n\n  // ..........................................................\n  // ELEMENT SUPPORT\n  //\n\n  /**\n   Returns the current DOM element for the view.\n     @property element\n    @type DOMElement\n    @public\n  */\n  element: nativeDescDecorator({\n    configurable: false,\n    enumerable: false,\n\n    get() {\n      return this.renderer.getElement(this);\n    }\n\n  }),\n\n  /**\n   Appends the view's element to the specified parent element.\n    Note that this method just schedules the view to be appended; the DOM\n   element will not be appended to the given element until all bindings have\n   finished synchronizing.\n    This is not typically a function that you will need to call directly when\n   building your application. If you do need to use `appendTo`, be sure that\n   the target element you are providing is associated with an `Application`\n   and does not have an ancestor element that is associated with an Ember view.\n    @method appendTo\n   @param {String|DOMElement|jQuery} A selector, element, HTML string, or jQuery object\n   @return {Ember.View} receiver\n   @private\n   */\n  appendTo(selector) {\n    let target;\n\n    if (hasDOM) {\n      target = typeof selector === 'string' ? document.querySelector(selector) : selector;\n      assert(`You tried to append to (${selector}) but that isn't in the DOM`, target);\n      assert('You cannot append to an existing Ember.View.', !matches(target, '.ember-view'));\n      assert('You cannot append to an existing Ember.View.', (() => {\n        let node = target.parentNode;\n\n        while (node) {\n          if (node.nodeType !== 9 && matches(node, '.ember-view')) {\n            return false;\n          }\n\n          node = node.parentNode;\n        }\n\n        return true;\n      })());\n    } else {\n      target = selector;\n      assert(`You tried to append to a selector string (${selector}) in an environment without jQuery`, typeof target !== 'string');\n      assert(`You tried to append to a non-Element (${selector}) in an environment without jQuery`, typeof selector.appendChild === 'function');\n    }\n\n    this.renderer.appendTo(this, target);\n    return this;\n  },\n\n  /**\n   Appends the view's element to the document body. If the view does\n   not have an HTML representation yet\n   the element will be generated automatically.\n    If your application uses the `rootElement` property, you must append\n   the view within that element. Rendering views outside of the `rootElement`\n   is not supported.\n    Note that this method just schedules the view to be appended; the DOM\n   element will not be appended to the document body until all bindings have\n   finished synchronizing.\n    @method append\n   @return {Ember.View} receiver\n   @private\n   */\n  append() {\n    return this.appendTo(document.body);\n  },\n\n  /**\n   The HTML `id` of the view's element in the DOM. You can provide this\n   value yourself but it must be unique (just as in HTML):\n    ```handlebars\n   {{my-component elementId=\"a-really-cool-id\"}}\n   ```\n    If not manually set a default value will be provided by the framework.\n    Once rendered an element's `elementId` is considered immutable and you\n   should never change it. If you need to compute a dynamic value for the\n   `elementId`, you should do this when the component or element is being\n   instantiated:\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    export default Component.extend({\n      init() {\n        this._super(...arguments);\n        let index = this.get('index');\n        this.set('elementId', 'component-id' + index);\n      }\n    });\n   ```\n    @property elementId\n   @type String\n   @public\n   */\n  elementId: null,\n\n  /**\n   Called when a view is going to insert an element into the DOM.\n    @event willInsertElement\n   @public\n   */\n  willInsertElement: K,\n\n  /**\n   Called when the element of the view has been inserted into the DOM.\n   Override this function to do any set up that requires an element\n   in the document body.\n    When a view has children, didInsertElement will be called on the\n   child view(s) first and on itself afterwards.\n    @event didInsertElement\n   @public\n   */\n  didInsertElement: K,\n\n  /**\n   Called when the view is about to rerender, but before anything has\n   been torn down. This is a good opportunity to tear down any manual\n   observers you have installed based on the DOM state\n    @event willClearRender\n   @public\n   */\n  willClearRender: K,\n\n  /**\n   You must call `destroy` on a view to destroy the view (and all of its\n   child views). This will remove the view from any parent node, then make\n   sure that the DOM element managed by the view can be released by the\n   memory manager.\n    @method destroy\n   @private\n   */\n  destroy() {\n    this._super(...arguments);\n\n    this._currentState.destroy(this);\n  },\n\n  /**\n   Called when the element of the view is going to be destroyed. Override\n   this function to do any teardown that requires an element, like removing\n   event listeners.\n    Please note: any property changes made during this event will have no\n   effect on object observers.\n    @event willDestroyElement\n   @public\n   */\n  willDestroyElement: K,\n\n  /**\n   Called after the element of the view is destroyed.\n    @event willDestroyElement\n   @public\n   */\n  didDestroyElement: K,\n\n  /**\n   Called when the parentView property has changed.\n    @event parentViewDidChange\n   @private\n   */\n  parentViewDidChange: K,\n  // ..........................................................\n  // STANDARD RENDER PROPERTIES\n  //\n\n  /**\n   Tag name for the view's outer element. The tag name is only used when an\n   element is first created. If you change the `tagName` for an element, you\n   must destroy and recreate the view element.\n    By default, the render buffer will use a `<div>` tag for views.\n    If the tagName is `''`, the view will be tagless, with no outer element.\n   Component properties that depend on the presence of an outer element, such\n   as `classNameBindings` and `attributeBindings`, do not work with tagless\n   components. Tagless components cannot implement methods to handle events,\n   and have no associated jQuery object to return with `$()`.\n    @property tagName\n   @type String\n   @default null\n   @public\n   */\n  // We leave this null by default so we can tell the difference between\n  // the default case and a user-specified tag.\n  tagName: null,\n\n  // .......................................................\n  // CORE DISPLAY METHODS\n  //\n\n  /**\n   Setup a view, but do not finish waking it up.\n    * configure `childViews`\n   * register the view with the global views hash, which is used for event\n   dispatch\n    @method init\n   @private\n   */\n  init() {\n    this._super(...arguments); // tslint:disable-next-line:max-line-length\n\n\n    assert(`You cannot use a computed property for the component's \\`elementId\\` (${this}).`, descriptorForProperty(this, 'elementId') === undefined); // tslint:disable-next-line:max-line-length\n\n    assert(`You cannot use a computed property for the component's \\`tagName\\` (${this}).`, descriptorForProperty(this, 'tagName') === undefined);\n\n    if (!this.elementId && this.tagName !== '') {\n      this.elementId = guidFor(this);\n    }\n\n    assert('Using a custom `.render` function is no longer supported.', !this.render);\n  },\n\n  // .......................................................\n  // EVENT HANDLING\n  //\n\n  /**\n   Handle events from `EventDispatcher`\n    @method handleEvent\n   @param eventName {String}\n   @param evt {Event}\n   @private\n   */\n  handleEvent(eventName, evt) {\n    return this._currentState.handleEvent(this, eventName, evt);\n  }\n\n};\n\nif (JQUERY_INTEGRATION) {\n  /**\n   Returns a jQuery object for this view's element. If you pass in a selector\n   string, this method will return a jQuery object, using the current element\n   as its buffer.\n    For example, calling `view.$('li')` will return a jQuery object containing\n   all of the `li` elements inside the DOM element of this view.\n    @method $\n   @param {String} [selector] a jQuery-compatible selector string\n   @return {jQuery} the jQuery object for the DOM node\n   @public\n   @deprecated\n   */\n  mixin.$ = function $(sel) {\n    assert(\"You cannot access this.$() on a component with `tagName: ''` specified.\", this.tagName !== '');\n    assert('You cannot access this.$() with `jQuery` disabled.', !jQueryDisabled);\n    deprecate('Using this.$() in a component has been deprecated, consider using this.element', false, {\n      id: 'ember-views.curly-components.jquery-element',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_jquery-apis',\n      for: 'ember-source',\n      since: {\n        enabled: '3.9.0'\n      }\n    });\n\n    if (this.element) {\n      return sel ? jQuery(sel, this.element) : jQuery(this.element);\n    }\n  };\n}\n/**\n @class ViewMixin\n @namespace Ember\n @private\n*/\n\n\nexport default Mixin.create(mixin);","/**\n@module ember\n*/\nexport default function ActionManager() {}\n/**\n  Global action id hash.\n\n  @private\n  @property registeredActions\n  @type Object\n*/\n\nActionManager.registeredActions = {};","import { getOwner } from '@ember/-internals/owner';\nimport { assign } from '@ember/polyfills';\nimport { assert } from '@ember/debug';\nimport { get, set } from '@ember/-internals/metal';\nimport { Object as EmberObject } from '@ember/-internals/runtime';\nimport { getElementView } from '@ember/-internals/views';\nimport { jQuery, jQueryDisabled } from './jquery';\nimport ActionManager from './action_manager';\nimport addJQueryEventDeprecation from './jquery_event_deprecation';\nimport { contains } from './utils';\nimport { JQUERY_INTEGRATION, MOUSE_ENTER_LEAVE_MOVE_EVENTS } from '@ember/deprecated-features';\n/**\n@module ember\n*/\n\nconst ROOT_ELEMENT_CLASS = 'ember-application';\nconst ROOT_ELEMENT_SELECTOR = `.${ROOT_ELEMENT_CLASS}`;\nconst EVENT_MAP = {\n  mouseenter: 'mouseover',\n  mouseleave: 'mouseout'\n};\n/**\n  `Ember.EventDispatcher` handles delegating browser events to their\n  corresponding `Ember.Views.` For example, when you click on a view,\n  `Ember.EventDispatcher` ensures that that view's `mouseDown` method gets\n  called.\n\n  @class EventDispatcher\n  @namespace Ember\n  @private\n  @extends Ember.Object\n*/\n\nexport default EmberObject.extend({\n  /**\n    The set of events names (and associated handler function names) to be setup\n    and dispatched by the `EventDispatcher`. Modifications to this list can be done\n    at setup time, generally via the `Application.customEvents` hash.\n     To add new events to be listened to:\n     ```javascript\n    import Application from '@ember/application';\n     let App = Application.create({\n      customEvents: {\n        paste: 'paste'\n      }\n    });\n    ```\n     To prevent default events from being listened to:\n     ```javascript\n    import Application from '@ember/application';\n     let App = Application.create({\n      customEvents: {\n        mouseenter: null,\n        mouseleave: null\n      }\n    });\n    ```\n    @property events\n    @type Object\n    @private\n  */\n  events: assign({\n    touchstart: 'touchStart',\n    touchmove: 'touchMove',\n    touchend: 'touchEnd',\n    touchcancel: 'touchCancel',\n    keydown: 'keyDown',\n    keyup: 'keyUp',\n    keypress: 'keyPress',\n    mousedown: 'mouseDown',\n    mouseup: 'mouseUp',\n    contextmenu: 'contextMenu',\n    click: 'click',\n    dblclick: 'doubleClick',\n    focusin: 'focusIn',\n    focusout: 'focusOut',\n    submit: 'submit',\n    input: 'input',\n    change: 'change',\n    dragstart: 'dragStart',\n    drag: 'drag',\n    dragenter: 'dragEnter',\n    dragleave: 'dragLeave',\n    dragover: 'dragOver',\n    drop: 'drop',\n    dragend: 'dragEnd'\n  }, MOUSE_ENTER_LEAVE_MOVE_EVENTS ? {\n    mouseenter: 'mouseEnter',\n    mouseleave: 'mouseLeave',\n    mousemove: 'mouseMove'\n  } : {}),\n\n  /**\n    The root DOM element to which event listeners should be attached. Event\n    listeners will be attached to the document unless this is overridden.\n     Can be specified as a DOMElement or a selector string.\n     The default body is a string since this may be evaluated before document.body\n    exists in the DOM.\n     @private\n    @property rootElement\n    @type DOMElement\n    @default 'body'\n  */\n  rootElement: 'body',\n\n  init() {\n    this._super();\n\n    this._eventHandlers = Object.create(null);\n    this._didSetup = false;\n  },\n\n  /**\n    Sets up event listeners for standard browser events.\n     This will be called after the browser sends a `DOMContentReady` event. By\n    default, it will set up all of the listeners on the document body. If you\n    would like to register the listeners on a different element, set the event\n    dispatcher's `root` property.\n     @private\n    @method setup\n    @param addedEvents {Object}\n  */\n  setup(addedEvents, _rootElement) {\n    assert('EventDispatcher should never be setup in fastboot mode. Please report this as an Ember bug.', (() => {\n      let owner = getOwner(this);\n      let environment = owner.lookup('-environment:main');\n      return environment.isInteractive;\n    })());\n    let events = this._finalEvents = assign({}, get(this, 'events'), addedEvents);\n\n    if (_rootElement !== undefined && _rootElement !== null) {\n      set(this, 'rootElement', _rootElement);\n    }\n\n    let rootElementSelector = get(this, 'rootElement');\n    let rootElement;\n\n    if (!JQUERY_INTEGRATION || jQueryDisabled) {\n      if (typeof rootElementSelector !== 'string') {\n        rootElement = rootElementSelector;\n      } else {\n        rootElement = document.querySelector(rootElementSelector);\n      }\n\n      assert(`You cannot use the same root element (${get(this, 'rootElement') || rootElement.tagName}) multiple times in an Ember.Application`, !rootElement.classList.contains(ROOT_ELEMENT_CLASS));\n      assert('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', (() => {\n        let target = rootElement.parentNode;\n\n        do {\n          if (target.classList.contains(ROOT_ELEMENT_CLASS)) {\n            return false;\n          }\n\n          target = target.parentNode;\n        } while (target && target.nodeType === 1);\n\n        return true;\n      })());\n      assert('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.querySelector(ROOT_ELEMENT_SELECTOR));\n      rootElement.classList.add(ROOT_ELEMENT_CLASS);\n      assert(`Unable to add '${ROOT_ELEMENT_CLASS}' class to root element (${get(this, 'rootElement') || rootElement.tagName}). Make sure you set rootElement to the body or an element in the body.`, rootElement.classList.contains(ROOT_ELEMENT_CLASS));\n    } else {\n      rootElement = jQuery(rootElementSelector);\n      assert(`You cannot use the same root element (${rootElement.selector || rootElement[0].tagName}) multiple times in an Ember.Application`, !rootElement.is(ROOT_ELEMENT_SELECTOR));\n      assert('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', !rootElement.closest(ROOT_ELEMENT_SELECTOR).length);\n      assert('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.find(ROOT_ELEMENT_SELECTOR).length);\n      rootElement.addClass(ROOT_ELEMENT_CLASS);\n\n      if (!rootElement.is(ROOT_ELEMENT_SELECTOR)) {\n        throw new TypeError(`Unable to add '${ROOT_ELEMENT_CLASS}' class to root element (${rootElement.selector || rootElement[0].tagName}). Make sure you set rootElement to the body or an element in the body.`);\n      }\n    }\n\n    for (let event in events) {\n      if (Object.prototype.hasOwnProperty.call(events, event)) {\n        this.setupHandler(rootElement, event, events[event]);\n      }\n    }\n\n    this._didSetup = true;\n  },\n\n  /**\n    Registers an event listener on the rootElement. If the given event is\n    triggered, the provided event handler will be triggered on the target view.\n     If the target view does not implement the event handler, or if the handler\n    returns `false`, the parent view will be called. The event will continue to\n    bubble to each successive parent view until it reaches the top.\n     @private\n    @method setupHandler\n    @param {Element} rootElement\n    @param {String} event the browser-originated event to listen to\n    @param {String} eventName the name of the method to call on the view\n  */\n  setupHandler(rootElement, event, eventName) {\n    if (eventName === null) {\n      return;\n    }\n\n    if (!JQUERY_INTEGRATION || jQueryDisabled) {\n      let viewHandler = (target, event) => {\n        let view = getElementView(target);\n        let result = true;\n\n        if (view) {\n          result = view.handleEvent(eventName, event);\n        }\n\n        return result;\n      };\n\n      let actionHandler = (target, event) => {\n        let actionId = target.getAttribute('data-ember-action');\n        let actions = ActionManager.registeredActions[actionId]; // In Glimmer2 this attribute is set to an empty string and an additional\n        // attribute it set for each action on a given element. In this case, the\n        // attributes need to be read so that a proper set of action handlers can\n        // be coalesced.\n\n        if (actionId === '') {\n          let attributes = target.attributes;\n          let attributeCount = attributes.length;\n          actions = [];\n\n          for (let i = 0; i < attributeCount; i++) {\n            let attr = attributes.item(i);\n            let attrName = attr.name;\n\n            if (attrName.indexOf('data-ember-action-') === 0) {\n              actions = actions.concat(ActionManager.registeredActions[attr.value]);\n            }\n          }\n        } // We have to check for actions here since in some cases, jQuery will trigger\n        // an event on `removeChild` (i.e. focusout) after we've already torn down the\n        // action handlers for the view.\n\n\n        if (!actions) {\n          return;\n        }\n\n        let result = true;\n\n        for (let index = 0; index < actions.length; index++) {\n          let action = actions[index];\n\n          if (action && action.eventName === eventName) {\n            // return false if any of the action handlers returns false\n            result = action.handler(event) && result;\n          }\n        }\n\n        return result;\n      }; // Special handling of events that don't bubble (event delegation does not work).\n      // Mimics the way this is handled in jQuery,\n      // see https://github.com/jquery/jquery/blob/899c56f6ada26821e8af12d9f35fa039100e838e/src/event.js#L666-L700\n\n\n      if (MOUSE_ENTER_LEAVE_MOVE_EVENTS && EVENT_MAP[event] !== undefined) {\n        let mappedEventType = EVENT_MAP[event];\n        let origEventType = event;\n\n        let createFakeEvent = (eventType, event) => {\n          let fakeEvent = document.createEvent('MouseEvent');\n          fakeEvent.initMouseEvent(eventType, false, false, event.view, event.detail, event.screenX, event.screenY, event.clientX, event.clientY, event.ctrlKey, event.altKey, event.shiftKey, event.metaKey, event.button, event.relatedTarget); // fake event.target as we don't dispatch the event\n\n          Object.defineProperty(fakeEvent, 'target', {\n            value: event.target,\n            enumerable: true\n          });\n          return fakeEvent;\n        };\n\n        let handleMappedEvent = this._eventHandlers[mappedEventType] = event => {\n          let target = event.target;\n          let related = event.relatedTarget;\n\n          while (target && target.nodeType === 1 && (related === null || related !== target && !contains(target, related))) {\n            // mouseEnter/Leave don't bubble, so there is no logic to prevent it as with other events\n            if (getElementView(target)) {\n              viewHandler(target, createFakeEvent(origEventType, event));\n            } else if (target.hasAttribute('data-ember-action')) {\n              actionHandler(target, createFakeEvent(origEventType, event));\n            } // separate mouseEnter/Leave events are dispatched for each listening element\n            // until the element (related) has been reached that the pointing device exited from/to\n\n\n            target = target.parentNode;\n          }\n        };\n\n        rootElement.addEventListener(mappedEventType, handleMappedEvent);\n      } else {\n        let handleEvent = this._eventHandlers[event] = event => {\n          let target = event.target;\n\n          do {\n            if (getElementView(target)) {\n              if (viewHandler(target, event) === false) {\n                event.preventDefault();\n                event.stopPropagation();\n                break;\n              } else if (event.cancelBubble === true) {\n                break;\n              }\n            } else if (typeof target.hasAttribute === 'function' && target.hasAttribute('data-ember-action')) {\n              if (actionHandler(target, event) === false) {\n                break;\n              }\n            }\n\n            target = target.parentNode;\n          } while (target && target.nodeType === 1);\n        };\n\n        rootElement.addEventListener(event, handleEvent);\n      }\n    } else {\n      rootElement.on(`${event}.ember`, '.ember-view', function (evt) {\n        let view = getElementView(this);\n        let result = true;\n\n        if (view) {\n          result = view.handleEvent(eventName, addJQueryEventDeprecation(evt));\n        }\n\n        return result;\n      });\n      rootElement.on(`${event}.ember`, '[data-ember-action]', evt => {\n        let attributes = evt.currentTarget.attributes;\n        let handledActions = [];\n        evt = addJQueryEventDeprecation(evt);\n\n        for (let i = 0; i < attributes.length; i++) {\n          let attr = attributes.item(i);\n          let attrName = attr.name;\n\n          if (attrName.lastIndexOf('data-ember-action-', 0) !== -1) {\n            let action = ActionManager.registeredActions[attr.value]; // We have to check for action here since in some cases, jQuery will trigger\n            // an event on `removeChild` (i.e. focusout) after we've already torn down the\n            // action handlers for the view.\n\n            if (action && action.eventName === eventName && handledActions.indexOf(action) === -1) {\n              action.handler(evt); // Action handlers can mutate state which in turn creates new attributes on the element.\n              // This effect could cause the `data-ember-action` attribute to shift down and be invoked twice.\n              // To avoid this, we keep track of which actions have been handled.\n\n              handledActions.push(action);\n            }\n          }\n        }\n      });\n    }\n  },\n\n  destroy() {\n    if (this._didSetup === false) {\n      return;\n    }\n\n    let rootElementSelector = get(this, 'rootElement');\n    let rootElement;\n\n    if (rootElementSelector.nodeType) {\n      rootElement = rootElementSelector;\n    } else {\n      rootElement = document.querySelector(rootElementSelector);\n    }\n\n    if (!rootElement) {\n      return;\n    }\n\n    if (!JQUERY_INTEGRATION || jQueryDisabled) {\n      for (let event in this._eventHandlers) {\n        rootElement.removeEventListener(event, this._eventHandlers[event]);\n      }\n    } else {\n      jQuery(rootElementSelector).off('.ember', '**');\n    }\n\n    rootElement.classList.remove(ROOT_ELEMENT_CLASS);\n    return this._super(...arguments);\n  },\n\n  toString() {\n    return '(EventDispatcher)';\n  }\n\n});","import { context } from '@ember/-internals/environment';\nimport { hasDOM } from '@ember/-internals/browser-environment';\nimport { ENV } from '@ember/-internals/environment';\nimport { JQUERY_INTEGRATION } from '@ember/deprecated-features';\nexport let jQuery;\nexport let jQueryDisabled = !JQUERY_INTEGRATION || ENV._JQUERY_INTEGRATION === false;\n\nif (JQUERY_INTEGRATION && hasDOM) {\n  jQuery = context.imports.jQuery;\n\n  if (!jQueryDisabled && jQuery) {\n    if (jQuery.event.addProp) {\n      jQuery.event.addProp('dataTransfer');\n    } else {\n      // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dndevents\n      ['dragstart', 'drag', 'dragenter', 'dragleave', 'dragover', 'drop', 'dragend'].forEach(eventName => {\n        jQuery.event.fixHooks[eventName] = {\n          props: ['dataTransfer']\n        };\n      });\n    }\n  } else {\n    jQuery = undefined;\n    jQueryDisabled = true;\n  }\n}","/* global Proxy */\nimport { deprecate } from '@ember/debug';\nimport { global } from '@ember/-internals/environment';\nimport { HAS_NATIVE_PROXY } from '@ember/-internals/utils';\nimport { DEBUG } from '@glimmer/env';\nimport { JQUERY_INTEGRATION } from '@ember/deprecated-features';\nexport default function addJQueryEventDeprecation(jqEvent) {\n  if (DEBUG && JQUERY_INTEGRATION && HAS_NATIVE_PROXY) {\n    let boundFunctions = new Map(); // wrap the jQuery event in a Proxy to add the deprecation message for originalEvent, according to RFC#294\n    // we need a native Proxy here, so we can make sure that the internal use of originalEvent in jQuery itself does\n    // not trigger a deprecation\n\n    return new Proxy(jqEvent, {\n      get(target, name) {\n        switch (name) {\n          case 'originalEvent':\n            deprecate('Accessing jQuery.Event specific properties is deprecated. Either use the ember-jquery-legacy addon to normalize events to native events, or explicitly opt into jQuery integration using @ember/optional-features.', (EmberENV => {\n              // this deprecation is intentionally checking `global.EmberENV` so\n              // that we can ensure we _only_ deprecate in the case where jQuery\n              // integration is enabled implicitly (e.g. \"defaulted\" to enabled)\n              // as opposed to when the user explicitly opts in to using jQuery\n              if (typeof EmberENV !== 'object' || EmberENV === null) return false;\n              return EmberENV._JQUERY_INTEGRATION === true;\n            })(global.EmberENV), {\n              id: 'ember-views.event-dispatcher.jquery-event',\n              until: '4.0.0',\n              url: 'https://deprecations.emberjs.com/v3.x#toc_jquery-event',\n              for: 'ember-source',\n              since: {\n                enabled: '3.9.0'\n              }\n            });\n            return target[name];\n          // provide an escape hatch for ember-jquery-legacy to access originalEvent without a deprecation\n\n          case '__originalEvent':\n            return target.originalEvent;\n\n          default:\n            if (typeof target[name] === 'function') {\n              // cache functions for reuse\n              if (!boundFunctions.has(name)) {\n                // for jQuery.Event methods call them with `target` as the `this` context, so they will access\n                // `originalEvent` from the original jQuery event, not our proxy, thus not trigger the deprecation\n                boundFunctions.set(name, target[name].bind(target));\n              }\n\n              return boundFunctions.get(name);\n            } // same for jQuery's getter functions for simple properties\n\n\n            return target[name];\n        }\n      }\n\n    });\n  }\n\n  return jqEvent;\n}","import { getOwner } from '@ember/-internals/owner';\n/* globals Element */\n\nimport { guidFor } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\n/**\n@module ember\n*/\n\nexport function isSimpleClick(event) {\n  let modifier = event.shiftKey || event.metaKey || event.altKey || event.ctrlKey;\n  let secondaryClick = event.which > 1; // IE9 may return undefined\n\n  return !modifier && !secondaryClick;\n}\nexport function constructStyleDeprecationMessage(affectedStyle) {\n  return '' + 'Binding style attributes may introduce cross-site scripting vulnerabilities; ' + 'please ensure that values being bound are properly escaped. For more information, ' + 'including how to disable this warning, see ' + 'https://deprecations.emberjs.com/v1.x/#toc_binding-style-attributes. ' + 'Style affected: \"' + affectedStyle + '\"';\n}\n/**\n  @private\n  @method getRootViews\n  @param {Object} owner\n*/\n\nexport function getRootViews(owner) {\n  let registry = owner.lookup('-view-registry:main');\n  let rootViews = [];\n  Object.keys(registry).forEach(id => {\n    let view = registry[id];\n\n    if (view.parentView === null) {\n      rootViews.push(view);\n    }\n  });\n  return rootViews;\n}\n/**\n  @private\n  @method getViewId\n  @param {Ember.View} view\n */\n\nexport function getViewId(view) {\n  if (view.tagName !== '' && view.elementId) {\n    return view.elementId;\n  } else {\n    return guidFor(view);\n  }\n}\nconst ELEMENT_VIEW = new WeakMap();\nconst VIEW_ELEMENT = new WeakMap();\nexport function getElementView(element) {\n  return ELEMENT_VIEW.get(element) || null;\n}\n/**\n  @private\n  @method getViewElement\n  @param {Ember.View} view\n */\n\nexport function getViewElement(view) {\n  return VIEW_ELEMENT.get(view) || null;\n}\nexport function setElementView(element, view) {\n  ELEMENT_VIEW.set(element, view);\n}\nexport function setViewElement(view, element) {\n  VIEW_ELEMENT.set(view, element);\n} // These are not needed for GC, but for correctness. We want to be able to\n// null-out these links while the objects are still live. Specifically, in\n// this case, we want to prevent access to the element (and vice verse) during\n// destruction.\n\nexport function clearElementView(element) {\n  ELEMENT_VIEW.delete(element);\n}\nexport function clearViewElement(view) {\n  VIEW_ELEMENT.delete(view);\n}\nconst CHILD_VIEW_IDS = new WeakMap();\n/**\n  @private\n  @method getChildViews\n  @param {Ember.View} view\n*/\n\nexport function getChildViews(view) {\n  let owner = getOwner(view);\n  let registry = owner.lookup('-view-registry:main');\n  return collectChildViews(view, registry);\n}\nexport function initChildViews(view) {\n  let childViews = new Set();\n  CHILD_VIEW_IDS.set(view, childViews);\n  return childViews;\n}\nexport function addChildView(parent, child) {\n  let childViews = CHILD_VIEW_IDS.get(parent);\n\n  if (childViews === undefined) {\n    childViews = initChildViews(parent);\n  }\n\n  childViews.add(getViewId(child));\n}\nexport function collectChildViews(view, registry) {\n  let views = [];\n  let childViews = CHILD_VIEW_IDS.get(view);\n\n  if (childViews !== undefined) {\n    childViews.forEach(id => {\n      let view = registry[id];\n\n      if (view && !view.isDestroying && !view.isDestroyed) {\n        views.push(view);\n      }\n    });\n  }\n\n  return views;\n}\n/**\n  @private\n  @method getViewBounds\n  @param {Ember.View} view\n*/\n\nexport function getViewBounds(view) {\n  return view.renderer.getBounds(view);\n}\n/**\n  @private\n  @method getViewRange\n  @param {Ember.View} view\n*/\n\nexport function getViewRange(view) {\n  let bounds = getViewBounds(view);\n  let range = document.createRange();\n  range.setStartBefore(bounds.firstNode);\n  range.setEndAfter(bounds.lastNode);\n  return range;\n}\n/**\n  `getViewClientRects` provides information about the position of the border\n  box edges of a view relative to the viewport.\n\n  It is only intended to be used by development tools like the Ember Inspector\n  and may not work on older browsers.\n\n  @private\n  @method getViewClientRects\n  @param {Ember.View} view\n*/\n\nexport function getViewClientRects(view) {\n  let range = getViewRange(view);\n  return range.getClientRects();\n}\n/**\n  `getViewBoundingClientRect` provides information about the position of the\n  bounding border box edges of a view relative to the viewport.\n\n  It is only intended to be used by development tools like the Ember Inspector\n  and may not work on older browsers.\n\n  @private\n  @method getViewBoundingClientRect\n  @param {Ember.View} view\n*/\n\nexport function getViewBoundingClientRect(view) {\n  let range = getViewRange(view);\n  return range.getBoundingClientRect();\n}\n/**\n  Determines if the element matches the specified selector.\n\n  @private\n  @method matches\n  @param {DOMElement} el\n  @param {String} selector\n*/\n\nexport const elMatches = typeof Element !== 'undefined' ? Element.prototype.matches || Element.prototype['matchesSelector'] || Element.prototype['mozMatchesSelector'] || Element.prototype['msMatchesSelector'] || Element.prototype['oMatchesSelector'] || Element.prototype['webkitMatchesSelector'] : undefined;\nexport function matches(el, selector) {\n  assert('cannot call `matches` in fastboot mode', elMatches !== undefined);\n  return elMatches.call(el, selector);\n}\nexport function contains(a, b) {\n  if (a.contains !== undefined) {\n    return a.contains(b);\n  }\n\n  let current = b.parentNode;\n\n  while (current && (current = current.parentNode)) {\n    if (current === a) {\n      return true;\n    }\n  }\n\n  return false;\n}","import { inject } from '@ember/-internals/metal';\nimport { ActionHandler, Evented, FrameworkObject } from '@ember/-internals/runtime';\nimport states from './states';\n/**\n  `Ember.CoreView` is an abstract class that exists to give view-like behavior\n  to both Ember's main view class `Component` and other classes that don't need\n  the full functionality of `Component`.\n\n  Unless you have specific needs for `CoreView`, you will use `Component`\n  in your applications.\n\n  @class CoreView\n  @namespace Ember\n  @extends EmberObject\n  @deprecated Use `Component` instead.\n  @uses Evented\n  @uses Ember.ActionHandler\n  @private\n*/\n\nconst CoreView = FrameworkObject.extend(Evented, ActionHandler, {\n  isView: true,\n  _states: states,\n\n  init() {\n    this._super(...arguments);\n\n    this._state = 'preRender';\n    this._currentState = this._states.preRender;\n  },\n\n  renderer: inject('renderer', '-dom'),\n\n  /**\n    If the view is currently inserted into the DOM of a parent view, this\n    property will point to the parent of the view.\n     @property parentView\n    @type Ember.View\n    @default null\n    @private\n  */\n  parentView: null,\n\n  instrumentDetails(hash) {\n    hash.object = this.toString();\n    hash.containerKey = this._debugContainerKey;\n    hash.view = this;\n    return hash;\n  },\n\n  /**\n    Override the default event firing from `Evented` to\n    also call methods with the given name.\n     @method trigger\n    @param name {String}\n    @private\n  */\n  trigger(name, ...args) {\n    this._super(...arguments);\n\n    let method = this[name];\n\n    if (typeof method === 'function') {\n      return method.apply(this, args);\n    }\n  },\n\n  has(name) {\n    return typeof this[name] === 'function' || this._super(name);\n  }\n\n});\nCoreView.reopenClass({\n  isViewFactory: true\n});\nexport default CoreView;","import preRender from './states/pre_render';\nimport hasElement from './states/has_element';\nimport inDOM from './states/in_dom';\nimport destroying from './states/destroying';\n/*\n  Describe how the specified actions should behave in the various\n  states that a view can exist in. Possible states:\n\n  * preRender: when a view is first instantiated, and after its\n    element was destroyed, it is in the preRender state\n  * hasElement: the DOM representation of the view is created,\n    and is ready to be inserted\n  * inDOM: once a view has been inserted into the DOM it is in\n    the inDOM state. A view spends the vast majority of its\n    existence in this state.\n  * destroyed: once a view has been destroyed (using the destroy\n    method), it is in this state. No further actions can be invoked\n    on a destroyed view.\n*/\n\nconst states = Object.freeze({\n  preRender,\n  inDOM,\n  hasElement,\n  destroying\n});\nexport default states;","import EmberError from '@ember/error';\nconst _default = {\n  // appendChild is only legal while rendering the buffer.\n  appendChild() {\n    throw new EmberError(\"You can't use appendChild outside of the rendering process\");\n  },\n\n  // Handle events from `Ember.EventDispatcher`\n  handleEvent() {\n    return true; // continue event propagation\n  },\n\n  rerender() {},\n\n  destroy() {}\n\n};\nexport default Object.freeze(_default);","import { assign } from '@ember/polyfills';\nimport EmberError from '@ember/error';\nimport _default from './default';\nconst destroying = assign({}, _default, {\n  appendChild() {\n    throw new EmberError(\"You can't call appendChild on a view being destroyed\");\n  },\n\n  rerender() {\n    throw new EmberError(\"You can't call rerender on a view being destroyed\");\n  }\n\n});\nexport default Object.freeze(destroying);","import { assign } from '@ember/polyfills';\nimport _default from './default';\nimport { join } from '@ember/runloop';\nimport { flaggedInstrument } from '@ember/instrumentation';\nconst hasElement = assign({}, _default, {\n  rerender(view) {\n    view.renderer.rerender(view);\n  },\n\n  destroy(view) {\n    view.renderer.remove(view);\n  },\n\n  // Handle events from `Ember.EventDispatcher`\n  handleEvent(view, eventName, event) {\n    if (view.has(eventName)) {\n      // Handler should be able to re-dispatch events, so we don't\n      // preventDefault or stopPropagation.\n      return flaggedInstrument(`interaction.${eventName}`, {\n        event,\n        view\n      }, () => {\n        return join(view, view.trigger, eventName, event);\n      });\n    } else {\n      return true; // continue event propagation\n    }\n  }\n\n});\nexport default Object.freeze(hasElement);","import { teardownMandatorySetter } from '@ember/-internals/utils';\nimport { assign } from '@ember/polyfills';\nimport EmberError from '@ember/error';\nimport { DEBUG } from '@glimmer/env';\nimport hasElement from './has_element';\nconst inDOM = assign({}, hasElement, {\n  enter(view) {\n    // Register the view for event handling. This hash is used by\n    // Ember.EventDispatcher to dispatch incoming events.\n    view.renderer.register(view);\n\n    if (DEBUG) {\n      let elementId = view.elementId;\n      teardownMandatorySetter(view, 'elementId');\n      Object.defineProperty(view, 'elementId', {\n        configurable: true,\n        enumerable: true,\n\n        get() {\n          return elementId;\n        },\n\n        set(value) {\n          if (value !== elementId) {\n            throw new EmberError(\"Changing a view's elementId after creation is not allowed\");\n          }\n        }\n\n      });\n    }\n  }\n\n});\nexport default Object.freeze(inDOM);","import _default from './default';\nimport { assign } from '@ember/polyfills';\nconst preRender = assign({}, _default);\nexport default Object.freeze(preRender);","import { deprecate as _deprecate, deprecateFunc as _deprecateFunc } from '@ember/debug';\nexport function deprecate(message, condition, options) {\n  _deprecate(\"`import { deprecate } from '@ember/application/deprecations';` has been deprecated, please update to `import { deprecate } from '@ember/debug';`\", false, {\n    id: 'old-deprecate-method-paths',\n    until: '4.0.0',\n    for: 'ember-source',\n    since: {\n      enabled: '3.0.0'\n    }\n  });\n\n  _deprecate(message, condition, options);\n}\nexport function deprecateFunc(message, options, func) {\n  _deprecate(\"`import { deprecateFunc } from '@ember/application/deprecations';` has been deprecated, please update to `import { deprecateFunc } from '@ember/debug';`\", false, {\n    id: 'old-deprecate-method-paths',\n    until: '4.0.0',\n    for: 'ember-source',\n    since: {\n      enabled: '3.0.0'\n    }\n  });\n\n  _deprecateFunc(message, options, func);\n}","/**\n@module @ember/application\n*/\nimport { dictionary, getName } from '@ember/-internals/utils';\nimport { get, findNamespace } from '@ember/-internals/metal';\nimport { assert, info, deprecate } from '@ember/debug';\nimport { capitalize, classify, dasherize, decamelize } from '@ember/string';\nimport { Object as EmberObject } from '@ember/-internals/runtime';\nimport { getTemplate } from '@ember/-internals/glimmer';\nimport { DEBUG } from '@glimmer/env';\nimport { GLOBALS_RESOLVER } from '@ember/deprecated-features';\nimport { processAllNamespaces } from '@ember/-internals/metal';\n/**\n  The DefaultResolver defines the default lookup rules to resolve\n  container lookups before consulting the container for registered\n  items:\n\n  * templates are looked up on `Ember.TEMPLATES`\n  * other names are looked up on the application after converting\n    the name. For example, `controller:post` looks up\n    `App.PostController` by default.\n  * there are some nuances (see examples below)\n\n  ### How Resolving Works\n\n  The container calls this object's `resolve` method with the\n  `fullName` argument.\n\n  It first parses the fullName into an object using `parseName`.\n\n  Then it checks for the presence of a type-specific instance\n  method of the form `resolve[Type]` and calls it if it exists.\n  For example if it was resolving 'template:post', it would call\n  the `resolveTemplate` method.\n\n  Its last resort is to call the `resolveOther` method.\n\n  The methods of this object are designed to be easy to override\n  in a subclass. For example, you could enhance how a template\n  is resolved like so:\n\n  ```app/app.js\n  import Application from '@ember/application';\n  import GlobalsResolver from '@ember/application/globals-resolver';\n\n  App = Application.create({\n    Resolver: GlobalsResolver.extend({\n      resolveTemplate(parsedName) {\n        let resolvedTemplate = this._super(parsedName);\n        if (resolvedTemplate) { return resolvedTemplate; }\n\n        return Ember.TEMPLATES['not_found'];\n      }\n    })\n  });\n  ```\n\n  Some examples of how names are resolved:\n\n  ```text\n  'template:post'           //=> Ember.TEMPLATES['post']\n  'template:posts/byline'   //=> Ember.TEMPLATES['posts/byline']\n  'template:posts.byline'   //=> Ember.TEMPLATES['posts/byline']\n  'template:blogPost'       //=> Ember.TEMPLATES['blog-post']\n  'controller:post'         //=> App.PostController\n  'controller:posts.index'  //=> App.PostsIndexController\n  'controller:blog/post'    //=> Blog.PostController\n  'controller:basic'        //=> Controller\n  'route:post'              //=> App.PostRoute\n  'route:posts.index'       //=> App.PostsIndexRoute\n  'route:blog/post'         //=> Blog.PostRoute\n  'route:basic'             //=> Route\n  'foo:post'                //=> App.PostFoo\n  'model:post'              //=> App.Post\n  ```\n\n  @class GlobalsResolver\n  @extends EmberObject\n  @public\n  @deprecated\n*/\n\nlet DefaultResolver;\n\nif (GLOBALS_RESOLVER) {\n  DefaultResolver = class DefaultResolver extends EmberObject {\n    static create(props) {\n      // DO NOT REMOVE even though this doesn't do anything\n      // This is required for a FireFox 60+ JIT bug with our tests.\n      // without it, create(props) in our tests would lose props on a deopt.\n      return super.create(props);\n    }\n    /**\n      This will be set to the Application instance when it is\n      created.\n       @property namespace\n      @public\n      @deprecated\n    */\n\n\n    init() {\n      deprecate('Using the globals resolver is deprecated. Use the ember-resolver package instead. See https://deprecations.emberjs.com/v3.x#toc_ember-deprecate-globals-resolver', false, {\n        until: '4.0.0',\n        id: 'globals-resolver',\n        url: 'https://deprecations.emberjs.com/v3.x#toc_ember-deprecate-globals-resolver',\n        for: 'ember-source',\n        since: {\n          enabled: '3.16.0'\n        }\n      });\n      this._parseNameCache = dictionary(null);\n    }\n\n    normalize(fullName) {\n      let [type, name] = fullName.split(':');\n      assert('Tried to normalize a container name without a colon (:) in it. ' + 'You probably tried to lookup a name that did not contain a type, ' + 'a colon, and a name. A proper lookup name would be `view:post`.', fullName.split(':').length === 2);\n\n      if (type !== 'template') {\n        let result = name.replace(/(\\.|_|-)./g, m => m.charAt(1).toUpperCase());\n        return `${type}:${result}`;\n      } else {\n        return fullName;\n      }\n    }\n    /**\n      This method is called via the container's resolver method.\n      It parses the provided `fullName` and then looks up and\n      returns the appropriate template or class.\n       @method resolve\n      @param {String} fullName the lookup string\n      @return {Object} the resolved factory\n      @public\n    */\n\n\n    resolve(fullName) {\n      let parsedName = this.parseName(fullName);\n      let resolveMethodName = parsedName.resolveMethodName;\n      let resolved;\n\n      if (this[resolveMethodName]) {\n        resolved = this[resolveMethodName](parsedName);\n      }\n\n      resolved = resolved || this.resolveOther(parsedName);\n\n      if (DEBUG) {\n        if (parsedName.root && parsedName.root.LOG_RESOLVER) {\n          this._logLookup(resolved, parsedName);\n        }\n\n        if (resolved) {\n          let VALIDATED_TYPES = {\n            route: ['isRouteFactory', 'Ember.Route'],\n            component: ['isComponentFactory', 'Ember.Component'],\n            view: ['isViewFactory', 'Ember.View'],\n            service: ['isServiceFactory', 'Ember.Service']\n          };\n          let validationAttributes = VALIDATED_TYPES[parsedName.type];\n\n          if (validationAttributes) {\n            let [factoryFlag, expectedType] = validationAttributes;\n            processAllNamespaces();\n            assert(`Expected ${parsedName.fullName} to resolve to an ${expectedType} but ` + `instead it was ${getName(resolved)}.`, Boolean(resolved[factoryFlag]));\n          }\n        }\n      }\n\n      return resolved;\n    }\n    /**\n      Convert the string name of the form 'type:name' to\n      a Javascript object with the parsed aspects of the name\n      broken out.\n       @param {String} fullName the lookup string\n      @method parseName\n      @protected\n    */\n\n\n    parseName(fullName) {\n      return this._parseNameCache[fullName] || (this._parseNameCache[fullName] = this._parseName(fullName));\n    }\n\n    _parseName(fullName) {\n      let [type, fullNameWithoutType] = fullName.split(':');\n      let name = fullNameWithoutType;\n      let namespace = get(this, 'namespace');\n      let root = namespace;\n      let lastSlashIndex = name.lastIndexOf('/');\n      let dirname = lastSlashIndex !== -1 ? name.slice(0, lastSlashIndex) : null;\n\n      if (type !== 'template' && lastSlashIndex !== -1) {\n        let parts = name.split('/');\n        name = parts[parts.length - 1];\n        let namespaceName = capitalize(parts.slice(0, -1).join('.'));\n        root = findNamespace(namespaceName);\n        assert(`You are looking for a ${name} ${type} in the ${namespaceName} namespace, but the namespace could not be found`, root);\n      }\n\n      let resolveMethodName = fullNameWithoutType === 'main' ? 'Main' : classify(type);\n\n      if (!(name && type)) {\n        throw new TypeError(`Invalid fullName: \\`${fullName}\\`, must be of the form \\`type:name\\` `);\n      }\n\n      return {\n        fullName,\n        type,\n        fullNameWithoutType,\n        dirname,\n        name,\n        root,\n        resolveMethodName: `resolve${resolveMethodName}`\n      };\n    }\n    /**\n      Returns a human-readable description for a fullName. Used by the\n      Application namespace in assertions to describe the\n      precise name of the class that Ember is looking for, rather than\n      container keys.\n       @param {String} fullName the lookup string\n      @method lookupDescription\n      @protected\n    */\n\n\n    lookupDescription(fullName) {\n      let parsedName = this.parseName(fullName);\n      let description;\n\n      if (parsedName.type === 'template') {\n        return `template at ${parsedName.fullNameWithoutType.replace(/\\./g, '/')}`;\n      }\n\n      description = `${parsedName.root}.${classify(parsedName.name).replace(/\\./g, '')}`;\n\n      if (parsedName.type !== 'model') {\n        description += classify(parsedName.type);\n      }\n\n      return description;\n    }\n\n    makeToString(factory) {\n      return typeof factory === 'string' ? factory : factory.name ?? '(unknown class)';\n    }\n    /**\n      Given a parseName object (output from `parseName`), apply\n      the conventions expected by `Router`\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method useRouterNaming\n      @protected\n    */\n\n\n    useRouterNaming(parsedName) {\n      if (parsedName.name === 'basic') {\n        parsedName.name = '';\n      } else {\n        parsedName.name = parsedName.name.replace(/\\./g, '_');\n      }\n    }\n    /**\n      Look up the template in Ember.TEMPLATES\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveTemplate\n      @protected\n    */\n\n\n    resolveTemplate(parsedName) {\n      let templateName = parsedName.fullNameWithoutType.replace(/\\./g, '/');\n      return getTemplate(templateName) || getTemplate(decamelize(templateName));\n    }\n    /**\n      Lookup the view using `resolveOther`\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveView\n      @protected\n    */\n\n\n    resolveView(parsedName) {\n      this.useRouterNaming(parsedName);\n      return this.resolveOther(parsedName);\n    }\n    /**\n      Lookup the controller using `resolveOther`\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveController\n      @protected\n    */\n\n\n    resolveController(parsedName) {\n      this.useRouterNaming(parsedName);\n      return this.resolveOther(parsedName);\n    }\n    /**\n      Lookup the route using `resolveOther`\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveRoute\n      @protected\n    */\n\n\n    resolveRoute(parsedName) {\n      this.useRouterNaming(parsedName);\n      return this.resolveOther(parsedName);\n    }\n    /**\n      Lookup the model on the Application namespace\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveModel\n      @protected\n    */\n\n\n    resolveModel(parsedName) {\n      let className = classify(parsedName.name);\n      let factory = get(parsedName.root, className);\n      return factory;\n    }\n    /**\n      Look up the specified object (from parsedName) on the appropriate\n      namespace (usually on the Application)\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveHelper\n      @protected\n    */\n\n\n    resolveHelper(parsedName) {\n      return this.resolveOther(parsedName);\n    }\n    /**\n      Look up the specified object (from parsedName) on the appropriate\n      namespace (usually on the Application)\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveOther\n      @protected\n    */\n\n\n    resolveOther(parsedName) {\n      let className = classify(parsedName.name) + classify(parsedName.type);\n      let factory = get(parsedName.root, className);\n      return factory;\n    }\n\n    resolveMain(parsedName) {\n      let className = classify(parsedName.type);\n      return get(parsedName.root, className);\n    }\n    /**\n      Used to iterate all items of a given type.\n       @method knownForType\n      @param {String} type the type to search for\n      @private\n    */\n\n\n    knownForType(type) {\n      let namespace = get(this, 'namespace');\n      let suffix = classify(type);\n      let typeRegexp = new RegExp(`${suffix}$`);\n      let known = dictionary(null);\n      let knownKeys = Object.keys(namespace);\n\n      for (let index = 0; index < knownKeys.length; index++) {\n        let name = knownKeys[index];\n\n        if (typeRegexp.test(name)) {\n          let containerName = this.translateToContainerFullname(type, name);\n          known[containerName] = true;\n        }\n      }\n\n      return known;\n    }\n    /**\n      Converts provided name from the backing namespace into a container lookup name.\n       Examples:\n       * App.FooBarHelper -> helper:foo-bar\n      * App.THelper -> helper:t\n       @method translateToContainerFullname\n      @param {String} type\n      @param {String} name\n      @private\n    */\n\n\n    translateToContainerFullname(type, name) {\n      let suffix = classify(type);\n      let namePrefix = name.slice(0, suffix.length * -1);\n      let dasherizedName = dasherize(namePrefix);\n      return `${type}:${dasherizedName}`;\n    }\n\n  };\n\n  if (DEBUG) {\n    /**\n        @method _logLookup\n        @param {Boolean} found\n        @param {Object} parsedName\n        @private\n      */\n    DefaultResolver.prototype._logLookup = function (found, parsedName) {\n      let symbol = found ? '[✓]' : '[ ]';\n      let padding;\n\n      if (parsedName.fullName.length > 60) {\n        padding = '.';\n      } else {\n        padding = new Array(60 - parsedName.fullName.length).join('.');\n      }\n\n      info(symbol, parsedName.fullName, padding, this.lookupDescription(parsedName.fullName));\n    };\n  }\n}\n\nexport default DefaultResolver;","export { getOwner, setOwner } from '@ember/-internals/owner';\nexport { onLoad, runLoadHooks, _loaded } from './lib/lazy_load';\nexport { default } from './lib/application';","/**\n@module @ember/application\n*/\nimport { assign } from '@ember/polyfills';\nimport { get, set, computed } from '@ember/-internals/metal';\nimport * as environment from '@ember/-internals/browser-environment';\nimport { jQuery } from '@ember/-internals/views';\nimport EngineInstance from '@ember/engine/instance';\nimport { renderSettled } from '@ember/-internals/glimmer';\n/**\n  The `ApplicationInstance` encapsulates all of the stateful aspects of a\n  running `Application`.\n\n  At a high-level, we break application boot into two distinct phases:\n\n  * Definition time, where all of the classes, templates, and other\n    dependencies are loaded (typically in the browser).\n  * Run time, where we begin executing the application once everything\n    has loaded.\n\n  Definition time can be expensive and only needs to happen once since it is\n  an idempotent operation. For example, between test runs and FastBoot\n  requests, the application stays the same. It is only the state that we want\n  to reset.\n\n  That state is what the `ApplicationInstance` manages: it is responsible for\n  creating the container that contains all application state, and disposing of\n  it once the particular test run or FastBoot request has finished.\n\n  @public\n  @class ApplicationInstance\n  @extends EngineInstance\n*/\n\nconst ApplicationInstance = EngineInstance.extend({\n  /**\n    The `Application` for which this is an instance.\n     @property {Application} application\n    @private\n  */\n  application: null,\n\n  /**\n    The DOM events for which the event dispatcher should listen.\n     By default, the application's `Ember.EventDispatcher` listens\n    for a set of standard DOM events, such as `mousedown` and\n    `keyup`, and delegates them to your application's `Ember.View`\n    instances.\n     @private\n    @property {Object} customEvents\n  */\n  customEvents: null,\n\n  /**\n    The root DOM element of the Application as an element or a\n    [jQuery-compatible selector\n    string](http://api.jquery.com/category/selectors/).\n     @private\n    @property {String|DOMElement} rootElement\n  */\n  rootElement: null,\n\n  init() {\n    this._super(...arguments);\n\n    this.application._watchInstance(this); // Register this instance in the per-instance registry.\n    //\n    // Why do we need to register the instance in the first place?\n    // Because we need a good way for the root route (a.k.a ApplicationRoute)\n    // to notify us when it has created the root-most view. That view is then\n    // appended to the rootElement, in the case of apps, to the fixture harness\n    // in tests, or rendered to a string in the case of FastBoot.\n\n\n    this.register('-application-instance:main', this, {\n      instantiate: false\n    });\n  },\n\n  /**\n    Overrides the base `EngineInstance._bootSync` method with concerns relevant\n    to booting application (instead of engine) instances.\n     This method should only contain synchronous boot concerns. Asynchronous\n    boot concerns should eventually be moved to the `boot` method, which\n    returns a promise.\n     Until all boot code has been made asynchronous, we need to continue to\n    expose this method for use *internally* in places where we need to boot an\n    instance synchronously.\n     @private\n  */\n  _bootSync(options) {\n    if (this._booted) {\n      return this;\n    }\n\n    options = new BootOptions(options);\n    this.setupRegistry(options);\n\n    if (options.rootElement) {\n      this.rootElement = options.rootElement;\n    } else {\n      this.rootElement = this.application.rootElement;\n    }\n\n    if (options.location) {\n      set(this.router, 'location', options.location);\n    }\n\n    this.application.runInstanceInitializers(this);\n\n    if (options.isInteractive) {\n      this.setupEventDispatcher();\n    }\n\n    this._booted = true;\n    return this;\n  },\n\n  setupRegistry(options) {\n    this.constructor.setupRegistry(this.__registry__, options);\n  },\n\n  router: computed(function () {\n    return this.lookup('router:main');\n  }).readOnly(),\n\n  /**\n    This hook is called by the root-most Route (a.k.a. the ApplicationRoute)\n    when it has finished creating the root View. By default, we simply take the\n    view and append it to the `rootElement` specified on the Application.\n     In cases like FastBoot and testing, we can override this hook and implement\n    custom behavior, such as serializing to a string and sending over an HTTP\n    socket rather than appending to DOM.\n     @param view {Ember.View} the root-most view\n    @deprecated\n    @private\n  */\n  didCreateRootView(view) {\n    view.appendTo(this.rootElement);\n  },\n\n  /**\n    Tells the router to start routing. The router will ask the location for the\n    current URL of the page to determine the initial URL to start routing to.\n    To start the app at a specific URL, call `handleURL` instead.\n     @private\n  */\n  startRouting() {\n    this.router.startRouting();\n  },\n\n  /**\n    Sets up the router, initializing the child router and configuring the\n    location before routing begins.\n     Because setup should only occur once, multiple calls to `setupRouter`\n    beyond the first call have no effect.\n     This is commonly used in order to confirm things that rely on the router\n    are functioning properly from tests that are primarily rendering related.\n     For example, from within [ember-qunit](https://github.com/emberjs/ember-qunit)'s\n    `setupRenderingTest` calling `this.owner.setupRouter()` would allow that\n    rendering test to confirm that any `<LinkTo></LinkTo>`'s that are rendered\n    have the correct URL.\n     @public\n  */\n  setupRouter() {\n    this.router.setupRouter();\n  },\n\n  /**\n    Directs the router to route to a particular URL. This is useful in tests,\n    for example, to tell the app to start at a particular URL.\n     @param url {String} the URL the router should route to\n    @private\n  */\n  handleURL(url) {\n    this.setupRouter();\n    return this.router.handleURL(url);\n  },\n\n  /**\n    @private\n  */\n  setupEventDispatcher() {\n    let dispatcher = this.lookup('event_dispatcher:main');\n    let applicationCustomEvents = get(this.application, 'customEvents');\n    let instanceCustomEvents = get(this, 'customEvents');\n    let customEvents = assign({}, applicationCustomEvents, instanceCustomEvents);\n    dispatcher.setup(customEvents, this.rootElement);\n    return dispatcher;\n  },\n\n  /**\n    Returns the current URL of the app instance. This is useful when your\n    app does not update the browsers URL bar (i.e. it uses the `'none'`\n    location adapter).\n     @public\n    @return {String} the current URL\n  */\n  getURL() {\n    return this.router.url;\n  },\n\n  // `instance.visit(url)` should eventually replace `instance.handleURL()`;\n  // the test helpers can probably be switched to use this implementation too\n\n  /**\n    Navigate the instance to a particular URL. This is useful in tests, for\n    example, or to tell the app to start at a particular URL. This method\n    returns a promise that resolves with the app instance when the transition\n    is complete, or rejects if the transion was aborted due to an error.\n     @public\n    @param url {String} the destination URL\n    @return {Promise<ApplicationInstance>}\n  */\n  visit(url) {\n    this.setupRouter();\n\n    let bootOptions = this.__container__.lookup('-environment:main');\n\n    let router = this.router;\n\n    let handleTransitionResolve = () => {\n      if (!bootOptions.options.shouldRender) {\n        // No rendering is needed, and routing has completed, simply return.\n        return this;\n      } else {\n        // Ensure that the visit promise resolves when all rendering has completed\n        return renderSettled().then(() => this);\n      }\n    };\n\n    let handleTransitionReject = error => {\n      if (error.error) {\n        throw error.error;\n      } else if (error.name === 'TransitionAborted' && router._routerMicrolib.activeTransition) {\n        return router._routerMicrolib.activeTransition.then(handleTransitionResolve, handleTransitionReject);\n      } else if (error.name === 'TransitionAborted') {\n        throw new Error(error.message);\n      } else {\n        throw error;\n      }\n    };\n\n    let location = get(router, 'location'); // Keeps the location adapter's internal URL in-sync\n\n    location.setURL(url); // getURL returns the set url with the rootURL stripped off\n\n    return router.handleURL(location.getURL()).then(handleTransitionResolve, handleTransitionReject);\n  },\n\n  willDestroy() {\n    this._super(...arguments);\n\n    this.application._unwatchInstance(this);\n  }\n\n});\nApplicationInstance.reopenClass({\n  /**\n   @private\n   @method setupRegistry\n   @param {Registry} registry\n   @param {BootOptions} options\n  */\n  setupRegistry(registry, options = {}) {\n    if (!options.toEnvironment) {\n      options = new BootOptions(options);\n    }\n\n    registry.register('-environment:main', options.toEnvironment(), {\n      instantiate: false\n    });\n    registry.register('service:-document', options.document, {\n      instantiate: false\n    });\n\n    this._super(registry, options);\n  }\n\n});\n/**\n  A list of boot-time configuration options for customizing the behavior of\n  an `ApplicationInstance`.\n\n  This is an interface class that exists purely to document the available\n  options; you do not need to construct it manually. Simply pass a regular\n  JavaScript object containing the desired options into methods that require\n  one of these options object:\n\n  ```javascript\n  MyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n  ```\n\n  Not all combinations of the supported options are valid. See the documentation\n  on `Application#visit` for the supported configurations.\n\n  Internal, experimental or otherwise unstable flags are marked as private.\n\n  @class BootOptions\n  @namespace ApplicationInstance\n  @public\n*/\n\nclass BootOptions {\n  constructor(options = {}) {\n    /**\n      Provide a specific instance of jQuery. This is useful in conjunction with\n      the `document` option, as it allows you to use a copy of `jQuery` that is\n      appropriately bound to the foreign `document` (e.g. a jsdom).\n       This is highly experimental and support very incomplete at the moment.\n       @property jQuery\n      @type Object\n      @default auto-detected\n      @private\n    */\n    this.jQuery = jQuery; // This default is overridable below\n\n    /**\n      Interactive mode: whether we need to set up event delegation and invoke\n      lifecycle callbacks on Components.\n       @property isInteractive\n      @type boolean\n      @default auto-detected\n      @private\n    */\n\n    this.isInteractive = environment.hasDOM; // This default is overridable below\n\n    /**\n      @property _renderMode\n      @type string\n      @default false\n      @private\n    */\n\n    this._renderMode = options._renderMode;\n    /**\n      Run in a full browser environment.\n       When this flag is set to `false`, it will disable most browser-specific\n      and interactive features. Specifically:\n       * It does not use `jQuery` to append the root view; the `rootElement`\n        (either specified as a subsequent option or on the application itself)\n        must already be an `Element` in the given `document` (as opposed to a\n        string selector).\n       * It does not set up an `EventDispatcher`.\n       * It does not run any `Component` lifecycle hooks (such as `didInsertElement`).\n       * It sets the `location` option to `\"none\"`. (If you would like to use\n        the location adapter specified in the app's router instead, you can also\n        specify `{ location: null }` to specifically opt-out.)\n       @property isBrowser\n      @type boolean\n      @default auto-detected\n      @public\n    */\n\n    if (options.isBrowser !== undefined) {\n      this.isBrowser = Boolean(options.isBrowser);\n    } else {\n      this.isBrowser = environment.hasDOM;\n    }\n\n    if (!this.isBrowser) {\n      this.jQuery = null;\n      this.isInteractive = false;\n      this.location = 'none';\n    }\n    /**\n      Disable rendering completely.\n       When this flag is set to `false`, it will disable the entire rendering\n      pipeline. Essentially, this puts the app into \"routing-only\" mode. No\n      templates will be rendered, and no Components will be created.\n       @property shouldRender\n      @type boolean\n      @default true\n      @public\n    */\n\n\n    if (options.shouldRender !== undefined) {\n      this.shouldRender = Boolean(options.shouldRender);\n    } else {\n      this.shouldRender = true;\n    }\n\n    if (!this.shouldRender) {\n      this.jQuery = null;\n      this.isInteractive = false;\n    }\n    /**\n      If present, render into the given `Document` object instead of the\n      global `window.document` object.\n       In practice, this is only useful in non-browser environment or in\n      non-interactive mode, because Ember's `jQuery` dependency is\n      implicitly bound to the current document, causing event delegation\n      to not work properly when the app is rendered into a foreign\n      document object (such as an iframe's `contentDocument`).\n       In non-browser mode, this could be a \"`Document`-like\" object as\n      Ember only interact with a small subset of the DOM API in non-\n      interactive mode. While the exact requirements have not yet been\n      formalized, the `SimpleDOM` library's implementation is known to\n      work.\n       @property document\n      @type Document\n      @default the global `document` object\n      @public\n    */\n\n\n    if (options.document) {\n      this.document = options.document;\n    } else {\n      this.document = typeof document !== 'undefined' ? document : null;\n    }\n    /**\n      If present, overrides the application's `rootElement` property on\n      the instance. This is useful for testing environment, where you\n      might want to append the root view to a fixture area.\n       In non-browser mode, because Ember does not have access to jQuery,\n      this options must be specified as a DOM `Element` object instead of\n      a selector string.\n       See the documentation on `Application`'s `rootElement` for\n      details.\n       @property rootElement\n      @type String|Element\n      @default null\n      @public\n     */\n\n\n    if (options.rootElement) {\n      this.rootElement = options.rootElement;\n    } // Set these options last to give the user a chance to override the\n    // defaults from the \"combo\" options like `isBrowser` (although in\n    // practice, the resulting combination is probably invalid)\n\n    /**\n      If present, overrides the router's `location` property with this\n      value. This is useful for environments where trying to modify the\n      URL would be inappropriate.\n       @property location\n      @type string\n      @default null\n      @public\n    */\n\n\n    if (options.location !== undefined) {\n      this.location = options.location;\n    }\n\n    if (options.jQuery !== undefined) {\n      this.jQuery = options.jQuery;\n    }\n\n    if (options.isInteractive !== undefined) {\n      this.isInteractive = Boolean(options.isInteractive);\n    }\n  }\n\n  toEnvironment() {\n    // Do we really want to assign all of this!?\n    let env = assign({}, environment); // For compatibility with existing code\n\n    env.hasDOM = this.isBrowser;\n    env.isInteractive = this.isInteractive;\n    env._renderMode = this._renderMode;\n    env.options = this;\n    return env;\n  }\n\n}\n\nexport default ApplicationInstance;","/**\n@module @ember/application\n*/\nimport { dictionary } from '@ember/-internals/utils';\nimport { ENV } from '@ember/-internals/environment';\nimport { hasDOM } from '@ember/-internals/browser-environment';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { join, once, run, schedule } from '@ember/runloop';\nimport { libraries } from '@ember/-internals/metal';\nimport { _loaded, runLoadHooks } from './lazy_load';\nimport { RSVP } from '@ember/-internals/runtime';\nimport { EventDispatcher, jQuery, jQueryDisabled } from '@ember/-internals/views';\nimport { Route, Router, HashLocation, HistoryLocation, AutoLocation, NoneLocation, BucketCache } from '@ember/-internals/routing';\nimport ApplicationInstance from '../instance';\nimport Engine from '@ember/engine';\nimport { privatize as P } from '@ember/-internals/container';\nimport { setupApplicationRegistry } from '@ember/-internals/glimmer';\nimport { RouterService } from '@ember/-internals/routing';\nimport { JQUERY_INTEGRATION } from '@ember/deprecated-features';\nlet librariesRegistered = false;\n/**\n  An instance of `Application` is the starting point for every Ember\n  application. It instantiates, initializes and coordinates the\n  objects that make up your app.\n\n  Each Ember app has one and only one `Application` object. Although\n  Ember CLI creates this object implicitly, the `Application` class\n  is defined in the `app/app.js`. You can define a `ready` method on the\n  `Application` class, which will be run by Ember when the application is\n  initialized.\n\n  ```app/app.js\n  const App = Application.extend({\n    ready() {\n      // your code here\n    }\n  })\n  ```\n\n  Because `Application` ultimately inherits from `Ember.Namespace`, any classes\n  you create will have useful string representations when calling `toString()`.\n  See the `Ember.Namespace` documentation for more information.\n\n  While you can think of your `Application` as a container that holds the\n  other classes in your application, there are several other responsibilities\n  going on under-the-hood that you may want to understand. It is also important\n  to understand that an `Application` is different from an `ApplicationInstance`.\n  Refer to the Guides to understand the difference between these.\n\n  ### Event Delegation\n\n  Ember uses a technique called _event delegation_. This allows the framework\n  to set up a global, shared event listener instead of requiring each view to\n  do it manually. For example, instead of each view registering its own\n  `mousedown` listener on its associated element, Ember sets up a `mousedown`\n  listener on the `body`.\n\n  If a `mousedown` event occurs, Ember will look at the target of the event and\n  start walking up the DOM node tree, finding corresponding views and invoking\n  their `mouseDown` method as it goes.\n\n  `Application` has a number of default events that it listens for, as\n  well as a mapping from lowercase events to camel-cased view method names. For\n  example, the `keypress` event causes the `keyPress` method on the view to be\n  called, the `dblclick` event causes `doubleClick` to be called, and so on.\n\n  If there is a bubbling browser event that Ember does not listen for by\n  default, you can specify custom events and their corresponding view method\n  names by setting the application's `customEvents` property:\n\n  ```app/app.js\n  import Application from '@ember/application';\n\n  let App = Application.extend({\n    customEvents: {\n      // add support for the paste event\n      paste: 'paste'\n    }\n  });\n  ```\n\n  To prevent Ember from setting up a listener for a default event,\n  specify the event name with a `null` value in the `customEvents`\n  property:\n\n  ```app/app.js\n  import Application from '@ember/application';\n\n  let App = Application.extend({\n    customEvents: {\n      // prevent listeners for mouseenter/mouseleave events\n      mouseenter: null,\n      mouseleave: null\n    }\n  });\n  ```\n\n  By default, the application sets up these event listeners on the document\n  body. However, in cases where you are embedding an Ember application inside\n  an existing page, you may want it to set up the listeners on an element\n  inside the body.\n\n  For example, if only events inside a DOM element with the ID of `ember-app`\n  should be delegated, set your application's `rootElement` property:\n\n  ```app/app.js\n  import Application from '@ember/application';\n\n  let App = Application.extend({\n    rootElement: '#ember-app'\n  });\n  ```\n\n  The `rootElement` can be either a DOM element or a jQuery-compatible selector\n  string. Note that *views appended to the DOM outside the root element will\n  not receive events.* If you specify a custom root element, make sure you only\n  append views inside it!\n\n  To learn more about the events Ember components use, see\n\n  [components/handling-events](https://guides.emberjs.com/release/components/handling-events/#toc_event-names).\n\n  ### Initializers\n\n  To add behavior to the Application's boot process, you can define initializers in\n  the `app/initializers` directory, or with `ember generate initializer` using Ember CLI.\n  These files should export a named `initialize` function which will receive the created `application`\n  object as its first argument.\n\n  ```javascript\n  export function initialize(application) {\n    // application.inject('route', 'foo', 'service:foo');\n  }\n  ```\n\n  Application initializers can be used for a variety of reasons including:\n\n  - setting up external libraries\n  - injecting dependencies\n  - setting up event listeners in embedded apps\n  - deferring the boot process using the `deferReadiness` and `advanceReadiness` APIs.\n\n  ### Routing\n\n  In addition to creating your application's router, `Application` is\n  also responsible for telling the router when to start routing. Transitions\n  between routes can be logged with the `LOG_TRANSITIONS` flag, and more\n  detailed intra-transition logging can be logged with\n  the `LOG_TRANSITIONS_INTERNAL` flag:\n\n  ```javascript\n  import Application from '@ember/application';\n\n  let App = Application.create({\n    LOG_TRANSITIONS: true, // basic logging of successful transitions\n    LOG_TRANSITIONS_INTERNAL: true // detailed logging of all routing steps\n  });\n  ```\n\n  By default, the router will begin trying to translate the current URL into\n  application state once the browser emits the `DOMContentReady` event. If you\n  need to defer routing, you can call the application's `deferReadiness()`\n  method. Once routing can begin, call the `advanceReadiness()` method.\n\n  If there is any setup required before routing begins, you can implement a\n  `ready()` method on your app that will be invoked immediately before routing\n  begins.\n\n  @class Application\n  @extends Engine\n  @uses RegistryProxyMixin\n  @public\n*/\n\nconst Application = Engine.extend({\n  /**\n    The root DOM element of the Application. This can be specified as an\n    element or a\n    [jQuery-compatible selector string](http://api.jquery.com/category/selectors/).\n     This is the element that will be passed to the Application's,\n    `eventDispatcher`, which sets up the listeners for event delegation. Every\n    view in your application should be a child of the element you specify here.\n     @property rootElement\n    @type DOMElement\n    @default 'body'\n    @public\n  */\n  rootElement: 'body',\n\n  /**\n     @property _document\n    @type Document | null\n    @default 'window.document'\n    @private\n  */\n  _document: hasDOM ? window.document : null,\n\n  /**\n    The `Ember.EventDispatcher` responsible for delegating events to this\n    application's views.\n     The event dispatcher is created by the application at initialization time\n    and sets up event listeners on the DOM element described by the\n    application's `rootElement` property.\n     See the documentation for `Ember.EventDispatcher` for more information.\n     @property eventDispatcher\n    @type Ember.EventDispatcher\n    @default null\n    @public\n  */\n  eventDispatcher: null,\n\n  /**\n    The DOM events for which the event dispatcher should listen.\n     By default, the application's `Ember.EventDispatcher` listens\n    for a set of standard DOM events, such as `mousedown` and\n    `keyup`, and delegates them to your application's `Ember.View`\n    instances.\n     If you would like additional bubbling events to be delegated to your\n    views, set your `Application`'s `customEvents` property\n    to a hash containing the DOM event name as the key and the\n    corresponding view method name as the value. Setting an event to\n    a value of `null` will prevent a default event listener from being\n    added for that event.\n     To add new events to be listened to:\n     ```app/app.js\n    import Application from '@ember/application';\n     let App = Application.extend({\n      customEvents: {\n        // add support for the paste event\n        paste: 'paste'\n      }\n    });\n    ```\n     To prevent default events from being listened to:\n     ```app/app.js\n    import Application from '@ember/application';\n     let App = Application.extend({\n      customEvents: {\n        // remove support for mouseenter / mouseleave events\n        mouseenter: null,\n        mouseleave: null\n      }\n    });\n    ```\n    @property customEvents\n    @type Object\n    @default null\n    @public\n  */\n  customEvents: null,\n\n  /**\n    Whether the application should automatically start routing and render\n    templates to the `rootElement` on DOM ready. While default by true,\n    other environments such as FastBoot or a testing harness can set this\n    property to `false` and control the precise timing and behavior of the boot\n    process.\n     @property autoboot\n    @type Boolean\n    @default true\n    @private\n  */\n  autoboot: true,\n\n  /**\n    Whether the application should be configured for the legacy \"globals mode\".\n    Under this mode, the Application object serves as a global namespace for all\n    classes.\n     ```javascript\n    import Application from '@ember/application';\n    import Component from '@ember/component';\n     let App = Application.create({\n      ...\n    });\n     App.Router.reopen({\n      location: 'none'\n    });\n     App.Router.map({\n      ...\n    });\n     App.MyComponent = Component.extend({\n      ...\n    });\n    ```\n     This flag also exposes other internal APIs that assumes the existence of\n    a special \"default instance\", like `App.__container__.lookup(...)`.\n     This option is currently not configurable, its value is derived from\n    the `autoboot` flag – disabling `autoboot` also implies opting-out of\n    globals mode support, although they are ultimately orthogonal concerns.\n     Some of the global modes features are already deprecated in 1.x. The\n    existence of this flag is to untangle the globals mode code paths from\n    the autoboot code paths, so that these legacy features can be reviewed\n    for deprecation/removal separately.\n     Forcing the (autoboot=true, _globalsMode=false) here and running the tests\n    would reveal all the places where we are still relying on these legacy\n    behavior internally (mostly just tests).\n     @property _globalsMode\n    @type Boolean\n    @default true\n    @private\n  */\n  _globalsMode: true,\n\n  /**\n    An array of application instances created by `buildInstance()`. Used\n    internally to ensure that all instances get destroyed.\n     @property _applicationInstances\n    @type Array\n    @default null\n    @private\n  */\n  _applicationInstances: null,\n\n  init() {\n    // eslint-disable-line no-unused-vars\n    this._super(...arguments);\n\n    if (!this.$) {\n      this.$ = jQuery;\n    }\n\n    registerLibraries();\n\n    if (DEBUG) {\n      if (ENV.LOG_VERSION) {\n        // we only need to see this once per Application#init\n        ENV.LOG_VERSION = false;\n        libraries.logVersions();\n      }\n    } // Start off the number of deferrals at 1. This will be decremented by\n    // the Application's own `boot` method.\n\n\n    this._readinessDeferrals = 1;\n    this._booted = false;\n    this._applicationInstances = new Set();\n    this.autoboot = this._globalsMode = Boolean(this.autoboot);\n\n    if (this._globalsMode) {\n      this._prepareForGlobalsMode();\n    }\n\n    if (this.autoboot) {\n      this.waitForDOMReady();\n    }\n  },\n\n  /**\n    Create an ApplicationInstance for this application.\n     @public\n    @method buildInstance\n    @return {ApplicationInstance} the application instance\n  */\n  buildInstance(options = {}) {\n    assert('You cannot build new instances of this application since it has already been destroyed', !this.isDestroyed);\n    assert('You cannot build new instances of this application since it is being destroyed', !this.isDestroying);\n    options.base = this;\n    options.application = this;\n    return ApplicationInstance.create(options);\n  },\n\n  /**\n    Start tracking an ApplicationInstance for this application.\n    Used when the ApplicationInstance is created.\n     @private\n    @method _watchInstance\n  */\n  _watchInstance(instance) {\n    this._applicationInstances.add(instance);\n  },\n\n  /**\n    Stop tracking an ApplicationInstance for this application.\n    Used when the ApplicationInstance is about to be destroyed.\n     @private\n    @method _unwatchInstance\n  */\n  _unwatchInstance(instance) {\n    return this._applicationInstances.delete(instance);\n  },\n\n  /**\n    Enable the legacy globals mode by allowing this application to act\n    as a global namespace. See the docs on the `_globalsMode` property\n    for details.\n     Most of these features are already deprecated in 1.x, so we can\n    stop using them internally and try to remove them.\n     @private\n    @method _prepareForGlobalsMode\n  */\n  _prepareForGlobalsMode() {\n    // Create subclass of Router for this Application instance.\n    // This is to ensure that someone reopening `App.Router` does not\n    // tamper with the default `Router`.\n    this.Router = (this.Router || Router).extend();\n\n    this._buildDeprecatedInstance();\n  },\n\n  /*\n    Build the deprecated instance for legacy globals mode support.\n    Called when creating and resetting the application.\n     This is orthogonal to autoboot: the deprecated instance needs to\n    be created at Application construction (not boot) time to expose\n    App.__container__. If autoboot sees that this instance exists,\n    it will continue booting it to avoid doing unncessary work (as\n    opposed to building a new instance at boot time), but they are\n    otherwise unrelated.\n     @private\n    @method _buildDeprecatedInstance\n  */\n  _buildDeprecatedInstance() {\n    // Build a default instance\n    let instance = this.buildInstance(); // Legacy support for App.__container__ and other global methods\n    // on App that rely on a single, default instance.\n\n    this.__deprecatedInstance__ = instance;\n    this.__container__ = instance.__container__;\n  },\n\n  /**\n    Automatically kick-off the boot process for the application once the\n    DOM has become ready.\n     The initialization itself is scheduled on the actions queue which\n    ensures that code-loading finishes before booting.\n     If you are asynchronously loading code, you should call `deferReadiness()`\n    to defer booting, and then call `advanceReadiness()` once all of your code\n    has finished loading.\n     @private\n    @method waitForDOMReady\n  */\n  waitForDOMReady() {\n    if (this._document === null || this._document.readyState !== 'loading') {\n      schedule('actions', this, 'domReady');\n    } else {\n      let callback = () => {\n        this._document.removeEventListener('DOMContentLoaded', callback);\n\n        run(this, 'domReady');\n      };\n\n      this._document.addEventListener('DOMContentLoaded', callback);\n    }\n  },\n\n  /**\n    This is the autoboot flow:\n     1. Boot the app by calling `this.boot()`\n    2. Create an instance (or use the `__deprecatedInstance__` in globals mode)\n    3. Boot the instance by calling `instance.boot()`\n    4. Invoke the `App.ready()` callback\n    5. Kick-off routing on the instance\n     Ideally, this is all we would need to do:\n     ```javascript\n    _autoBoot() {\n      this.boot().then(() => {\n        let instance = (this._globalsMode) ? this.__deprecatedInstance__ : this.buildInstance();\n        return instance.boot();\n      }).then((instance) => {\n        App.ready();\n        instance.startRouting();\n      });\n    }\n    ```\n     Unfortunately, we cannot actually write this because we need to participate\n    in the \"synchronous\" boot process. While the code above would work fine on\n    the initial boot (i.e. DOM ready), when `App.reset()` is called, we need to\n    boot a new instance synchronously (see the documentation on `_bootSync()`\n    for details).\n     Because of this restriction, the actual logic of this method is located\n    inside `didBecomeReady()`.\n     @private\n    @method domReady\n  */\n  domReady() {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    this._bootSync(); // Continues to `didBecomeReady`\n\n  },\n\n  /**\n    Use this to defer readiness until some condition is true.\n     Example:\n     ```javascript\n    import Application from '@ember/application';\n     let App = Application.create();\n     App.deferReadiness();\n     // $ is a reference to the jQuery object/function\n    import $ from 'jquery;\n     $.getJSON('/auth-token', function(token) {\n      App.token = token;\n      App.advanceReadiness();\n    });\n    ```\n     This allows you to perform asynchronous setup logic and defer\n    booting your application until the setup has finished.\n     However, if the setup requires a loading UI, it might be better\n    to use the router for this purpose.\n     @method deferReadiness\n    @public\n  */\n  deferReadiness() {\n    assert('You must call deferReadiness on an instance of Application', this instanceof Application);\n    assert('You cannot defer readiness since application has already destroyed', !this.isDestroyed);\n    assert('You cannot defer readiness since the application is being destroyed', !this.isDestroying);\n    assert('You cannot defer readiness since the `ready()` hook has already been called', this._readinessDeferrals > 0);\n    this._readinessDeferrals++;\n  },\n\n  /**\n    Call `advanceReadiness` after any asynchronous setup logic has completed.\n    Each call to `deferReadiness` must be matched by a call to `advanceReadiness`\n    or the application will never become ready and routing will not begin.\n     @method advanceReadiness\n    @see {Application#deferReadiness}\n    @public\n  */\n  advanceReadiness() {\n    assert('You must call advanceReadiness on an instance of Application', this instanceof Application);\n    assert('You cannot advance readiness since application has already destroyed', !this.isDestroyed);\n    assert('You cannot advance readiness since the application is being destroyed', !this.isDestroying);\n    assert('You cannot advance readiness since the `ready()` hook has already been called', this._readinessDeferrals > 0);\n    this._readinessDeferrals--;\n\n    if (this._readinessDeferrals === 0) {\n      once(this, this.didBecomeReady);\n    }\n  },\n\n  /**\n    Initialize the application and return a promise that resolves with the `Application`\n    object when the boot process is complete.\n     Run any application initializers and run the application load hook. These hooks may\n    choose to defer readiness. For example, an authentication hook might want to defer\n    readiness until the auth token has been retrieved.\n     By default, this method is called automatically on \"DOM ready\"; however, if autoboot\n    is disabled, this is automatically called when the first application instance is\n    created via `visit`.\n     @public\n    @method boot\n    @return {Promise<Application,Error>}\n  */\n  boot() {\n    assert('You cannot boot this application since it has already been destroyed', !this.isDestroyed);\n    assert('You cannot boot this application since it is being destroyed', !this.isDestroying);\n\n    if (this._bootPromise) {\n      return this._bootPromise;\n    }\n\n    try {\n      this._bootSync();\n    } catch (_) {// Ignore the error: in the asynchronous boot path, the error is already reflected\n      // in the promise rejection\n    }\n\n    return this._bootPromise;\n  },\n\n  /**\n    Unfortunately, a lot of existing code assumes the booting process is\n    \"synchronous\". Specifically, a lot of tests assumes the last call to\n    `app.advanceReadiness()` or `app.reset()` will result in the app being\n    fully-booted when the current runloop completes.\n     We would like new code (like the `visit` API) to stop making this assumption,\n    so we created the asynchronous version above that returns a promise. But until\n    we have migrated all the code, we would have to expose this method for use\n    *internally* in places where we need to boot an app \"synchronously\".\n     @private\n  */\n  _bootSync() {\n    if (this._booted || this.isDestroying || this.isDestroyed) {\n      return;\n    } // Even though this returns synchronously, we still need to make sure the\n    // boot promise exists for book-keeping purposes: if anything went wrong in\n    // the boot process, we need to store the error as a rejection on the boot\n    // promise so that a future caller of `boot()` can tell what failed.\n\n\n    let defer = this._bootResolver = RSVP.defer();\n    this._bootPromise = defer.promise;\n\n    try {\n      this.runInitializers();\n      runLoadHooks('application', this);\n      this.advanceReadiness(); // Continues to `didBecomeReady`\n    } catch (error) {\n      // For the asynchronous boot path\n      defer.reject(error); // For the synchronous boot path\n\n      throw error;\n    }\n  },\n\n  /**\n    Reset the application. This is typically used only in tests. It cleans up\n    the application in the following order:\n     1. Deactivate existing routes\n    2. Destroy all objects in the container\n    3. Create a new application container\n    4. Re-route to the existing url\n     Typical Example:\n     ```javascript\n    import Application from '@ember/application';\n    let App;\n     run(function() {\n      App = Application.create();\n    });\n     module('acceptance test', {\n      setup: function() {\n        App.reset();\n      }\n    });\n     test('first test', function() {\n      // App is freshly reset\n    });\n     test('second test', function() {\n      // App is again freshly reset\n    });\n    ```\n     Advanced Example:\n     Occasionally you may want to prevent the app from initializing during\n    setup. This could enable extra configuration, or enable asserting prior\n    to the app becoming ready.\n     ```javascript\n    import Application from '@ember/application';\n    let App;\n     run(function() {\n      App = Application.create();\n    });\n     module('acceptance test', {\n      setup: function() {\n        run(function() {\n          App.reset();\n          App.deferReadiness();\n        });\n      }\n    });\n     test('first test', function() {\n      ok(true, 'something before app is initialized');\n       run(function() {\n        App.advanceReadiness();\n      });\n       ok(true, 'something after app is initialized');\n    });\n    ```\n     @method reset\n    @public\n  */\n  reset() {\n    assert('You cannot reset this application since it has already been destroyed', !this.isDestroyed);\n    assert('You cannot reset this application since it is being destroyed', !this.isDestroying);\n    assert(`Calling reset() on instances of \\`Application\\` is not\n            supported when globals mode is disabled; call \\`visit()\\` to\n            create new \\`ApplicationInstance\\`s and dispose them\n            via their \\`destroy()\\` method instead.`, this._globalsMode && this.autoboot);\n    let instance = this.__deprecatedInstance__;\n    this._readinessDeferrals = 1;\n    this._bootPromise = null;\n    this._bootResolver = null;\n    this._booted = false;\n\n    function handleReset() {\n      run(instance, 'destroy');\n\n      this._buildDeprecatedInstance();\n\n      schedule('actions', this, '_bootSync');\n    }\n\n    join(this, handleReset);\n  },\n\n  /**\n    @private\n    @method didBecomeReady\n  */\n  didBecomeReady() {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    try {\n      // TODO: Is this still needed for _globalsMode = false?\n      // See documentation on `_autoboot()` for details\n      if (this.autoboot) {\n        let instance;\n\n        if (this._globalsMode) {\n          // If we already have the __deprecatedInstance__ lying around, boot it to\n          // avoid unnecessary work\n          instance = this.__deprecatedInstance__;\n        } else {\n          // Otherwise, build an instance and boot it. This is currently unreachable,\n          // because we forced _globalsMode to === autoboot; but having this branch\n          // allows us to locally toggle that flag for weeding out legacy globals mode\n          // dependencies independently\n          instance = this.buildInstance();\n        }\n\n        instance._bootSync(); // TODO: App.ready() is not called when autoboot is disabled, is this correct?\n\n\n        this.ready();\n        instance.startRouting();\n      } // For the asynchronous boot path\n\n\n      this._bootResolver.resolve(this); // For the synchronous boot path\n\n\n      this._booted = true;\n    } catch (error) {\n      // For the asynchronous boot path\n      this._bootResolver.reject(error); // For the synchronous boot path\n\n\n      throw error;\n    }\n  },\n\n  /**\n    Called when the Application has become ready, immediately before routing\n    begins. The call will be delayed until the DOM has become ready.\n     @event ready\n    @public\n  */\n  ready() {\n    return this;\n  },\n\n  // This method must be moved to the application instance object\n  willDestroy() {\n    this._super(...arguments);\n\n    if (_loaded.application === this) {\n      _loaded.application = undefined;\n    }\n\n    if (this._applicationInstances.size) {\n      this._applicationInstances.forEach(i => i.destroy());\n\n      this._applicationInstances.clear();\n    }\n  },\n\n  /**\n    Boot a new instance of `ApplicationInstance` for the current\n    application and navigate it to the given `url`. Returns a `Promise` that\n    resolves with the instance when the initial routing and rendering is\n    complete, or rejects with any error that occurred during the boot process.\n     When `autoboot` is disabled, calling `visit` would first cause the\n    application to boot, which runs the application initializers.\n     This method also takes a hash of boot-time configuration options for\n    customizing the instance's behavior. See the documentation on\n    `ApplicationInstance.BootOptions` for details.\n     `ApplicationInstance.BootOptions` is an interface class that exists\n    purely to document the available options; you do not need to construct it\n    manually. Simply pass a regular JavaScript object containing of the\n    desired options:\n     ```javascript\n    MyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n    ```\n     ### Supported Scenarios\n     While the `BootOptions` class exposes a large number of knobs, not all\n    combinations of them are valid; certain incompatible combinations might\n    result in unexpected behavior.\n     For example, booting the instance in the full browser environment\n    while specifying a foreign `document` object (e.g. `{ isBrowser: true,\n    document: iframe.contentDocument }`) does not work correctly today,\n    largely due to Ember's jQuery dependency.\n     Currently, there are three officially supported scenarios/configurations.\n    Usages outside of these scenarios are not guaranteed to work, but please\n    feel free to file bug reports documenting your experience and any issues\n    you encountered to help expand support.\n     #### Browser Applications (Manual Boot)\n     The setup is largely similar to how Ember works out-of-the-box. Normally,\n    Ember will boot a default instance for your Application on \"DOM ready\".\n    However, you can customize this behavior by disabling `autoboot`.\n     For example, this allows you to render a miniture demo of your application\n    into a specific area on your marketing website:\n     ```javascript\n    import MyApp from 'my-app';\n     $(function() {\n      let App = MyApp.create({ autoboot: false });\n       let options = {\n        // Override the router's location adapter to prevent it from updating\n        // the URL in the address bar\n        location: 'none',\n         // Override the default `rootElement` on the app to render into a\n        // specific `div` on the page\n        rootElement: '#demo'\n      };\n       // Start the app at the special demo URL\n      App.visit('/demo', options);\n    });\n    ```\n     Or perhaps you might want to boot two instances of your app on the same\n    page for a split-screen multiplayer experience:\n     ```javascript\n    import MyApp from 'my-app';\n     $(function() {\n      let App = MyApp.create({ autoboot: false });\n       let sessionId = MyApp.generateSessionID();\n       let player1 = App.visit(`/matches/join?name=Player+1&session=${sessionId}`, { rootElement: '#left', location: 'none' });\n      let player2 = App.visit(`/matches/join?name=Player+2&session=${sessionId}`, { rootElement: '#right', location: 'none' });\n       Promise.all([player1, player2]).then(() => {\n        // Both apps have completed the initial render\n        $('#loading').fadeOut();\n      });\n    });\n    ```\n     Do note that each app instance maintains their own registry/container, so\n    they will run in complete isolation by default.\n     #### Server-Side Rendering (also known as FastBoot)\n     This setup allows you to run your Ember app in a server environment using\n    Node.js and render its content into static HTML for SEO purposes.\n     ```javascript\n    const HTMLSerializer = new SimpleDOM.HTMLSerializer(SimpleDOM.voidMap);\n     function renderURL(url) {\n      let dom = new SimpleDOM.Document();\n      let rootElement = dom.body;\n      let options = { isBrowser: false, document: dom, rootElement: rootElement };\n       return MyApp.visit(options).then(instance => {\n        try {\n          return HTMLSerializer.serialize(rootElement.firstChild);\n        } finally {\n          instance.destroy();\n        }\n      });\n    }\n    ```\n     In this scenario, because Ember does not have access to a global `document`\n    object in the Node.js environment, you must provide one explicitly. In practice,\n    in the non-browser environment, the stand-in `document` object only needs to\n    implement a limited subset of the full DOM API. The `SimpleDOM` library is known\n    to work.\n     Since there is no access to jQuery in the non-browser environment, you must also\n    specify a DOM `Element` object in the same `document` for the `rootElement` option\n    (as opposed to a selector string like `\"body\"`).\n     See the documentation on the `isBrowser`, `document` and `rootElement` properties\n    on `ApplicationInstance.BootOptions` for details.\n     #### Server-Side Resource Discovery\n     This setup allows you to run the routing layer of your Ember app in a server\n    environment using Node.js and completely disable rendering. This allows you\n    to simulate and discover the resources (i.e. AJAX requests) needed to fulfill\n    a given request and eagerly \"push\" these resources to the client.\n     ```app/initializers/network-service.js\n    import BrowserNetworkService from 'app/services/network/browser';\n    import NodeNetworkService from 'app/services/network/node';\n     // Inject a (hypothetical) service for abstracting all AJAX calls and use\n    // the appropriate implementation on the client/server. This also allows the\n    // server to log all the AJAX calls made during a particular request and use\n    // that for resource-discovery purpose.\n     export function initialize(application) {\n      if (window) { // browser\n        application.register('service:network', BrowserNetworkService);\n      } else { // node\n        application.register('service:network', NodeNetworkService);\n      }\n       application.inject('route', 'network', 'service:network');\n    };\n     export default {\n      name: 'network-service',\n      initialize: initialize\n    };\n    ```\n     ```app/routes/post.js\n    import Route from '@ember/routing/route';\n     // An example of how the (hypothetical) service is used in routes.\n     export default Route.extend({\n      model(params) {\n        return this.network.fetch(`/api/posts/${params.post_id}.json`);\n      },\n       afterModel(post) {\n        if (post.isExternalContent) {\n          return this.network.fetch(`/api/external/?url=${post.externalURL}`);\n        } else {\n          return post;\n        }\n      }\n    });\n    ```\n     ```javascript\n    // Finally, put all the pieces together\n     function discoverResourcesFor(url) {\n      return MyApp.visit(url, { isBrowser: false, shouldRender: false }).then(instance => {\n        let networkService = instance.lookup('service:network');\n        return networkService.requests; // => { \"/api/posts/123.json\": \"...\" }\n      });\n    }\n    ```\n     @public\n    @method visit\n    @param url {String} The initial URL to navigate to\n    @param options {ApplicationInstance.BootOptions}\n    @return {Promise<ApplicationInstance, Error>}\n  */\n  visit(url, options) {\n    assert('You cannot visit this application since it has already been destroyed', !this.isDestroyed);\n    assert('You cannot visit this application since it is being destroyed', !this.isDestroying);\n    return this.boot().then(() => {\n      let instance = this.buildInstance();\n      return instance.boot(options).then(() => instance.visit(url)).catch(error => {\n        run(instance, 'destroy');\n        throw error;\n      });\n    });\n  }\n\n});\nApplication.reopenClass({\n  /**\n    This creates a registry with the default Ember naming conventions.\n     It also configures the registry:\n     * registered views are created every time they are looked up (they are\n      not singletons)\n    * registered templates are not factories; the registered value is\n      returned directly.\n    * the router receives the application as its `namespace` property\n    * all controllers receive the router as their `target` and `controllers`\n      properties\n    * all controllers receive the application as their `namespace` property\n    * the application view receives the application controller as its\n      `controller` property\n    * the application view receives the application template as its\n      `defaultTemplate` property\n     @method buildRegistry\n    @static\n    @param {Application} namespace the application for which to\n      build the registry\n    @return {Ember.Registry} the built registry\n    @private\n  */\n  buildRegistry() {\n    // eslint-disable-line no-unused-vars\n    let registry = this._super(...arguments);\n\n    commonSetupRegistry(registry);\n    setupApplicationRegistry(registry);\n    return registry;\n  }\n\n});\n\nfunction commonSetupRegistry(registry) {\n  registry.register('router:main', Router);\n  registry.register('-view-registry:main', {\n    create() {\n      return dictionary(null);\n    }\n\n  });\n  registry.register('route:basic', Route);\n  registry.register('event_dispatcher:main', EventDispatcher);\n  registry.register('location:auto', AutoLocation);\n  registry.register('location:hash', HashLocation);\n  registry.register('location:history', HistoryLocation);\n  registry.register('location:none', NoneLocation);\n  registry.register(P`-bucket-cache:main`, {\n    create() {\n      return new BucketCache();\n    }\n\n  });\n  registry.register('service:router', RouterService);\n}\n\nfunction registerLibraries() {\n  if (!librariesRegistered) {\n    librariesRegistered = true;\n\n    if (JQUERY_INTEGRATION && hasDOM && !jQueryDisabled) {\n      libraries.registerCoreLibrary('jQuery', jQuery().jquery);\n    }\n  }\n}\n\nexport default Application;","/*globals CustomEvent */\nimport { ENV } from '@ember/-internals/environment';\nimport { window } from '@ember/-internals/browser-environment';\n/**\n  @module @ember/application\n*/\n\nconst loadHooks = ENV.EMBER_LOAD_HOOKS || {};\nconst loaded = {};\nexport let _loaded = loaded;\n/**\n  Detects when a specific package of Ember (e.g. 'Application')\n  has fully loaded and is available for extension.\n\n  The provided `callback` will be called with the `name` passed\n  resolved from a string into the object:\n\n  ``` javascript\n  import { onLoad } from '@ember/application';\n\n  onLoad('Ember.Application' function(hbars) {\n    hbars.registerHelper(...);\n  });\n  ```\n\n  @method onLoad\n  @static\n  @for @ember/application\n  @param name {String} name of hook\n  @param callback {Function} callback to be called\n  @private\n*/\n\nexport function onLoad(name, callback) {\n  let object = loaded[name];\n  loadHooks[name] = loadHooks[name] || [];\n  loadHooks[name].push(callback);\n\n  if (object) {\n    callback(object);\n  }\n}\n/**\n  Called when an Ember.js package (e.g Application) has finished\n  loading. Triggers any callbacks registered for this event.\n\n  @method runLoadHooks\n  @static\n  @for @ember/application\n  @param name {String} name of hook\n  @param object {Object} object to pass to callbacks\n  @private\n*/\n\nexport function runLoadHooks(name, object) {\n  loaded[name] = object;\n\n  if (window && typeof CustomEvent === 'function') {\n    let event = new CustomEvent(name, {\n      detail: object,\n      name\n    });\n    window.dispatchEvent(event);\n  }\n\n  if (loadHooks[name]) {\n    loadHooks[name].forEach(callback => callback(object));\n  }\n}","export { Namespace as default } from '@ember/-internals/runtime';","export { default } from './globals-resolver';","export { Array as default, isArray, A } from '@ember/-internals/runtime';\nexport { makeArray } from '@ember/-internals/utils';","export { MutableArray as default } from '@ember/-internals/runtime';","export { ArrayProxy as default } from '@ember/-internals/runtime';","import { ENV } from '@ember/-internals/environment';\nimport { assign } from '@ember/polyfills';\n/**\n  Set `EmberENV.FEATURES` in your application's `config/environment.js` file\n  to enable canary features in your application.\n\n  See the [feature flag guide](https://guides.emberjs.com/release/configuring-ember/feature-flags/)\n  for more details.\n\n  @module @ember/canary-features\n  @public\n*/\n\nexport const DEFAULT_FEATURES = {\n  EMBER_LIBRARIES_ISREGISTERED: false,\n  EMBER_IMPROVED_INSTRUMENTATION: false,\n  EMBER_NAMED_BLOCKS: true,\n  EMBER_GLIMMER_HELPER_MANAGER: true,\n  EMBER_GLIMMER_INVOKE_HELPER: true,\n  EMBER_MODERNIZED_BUILT_IN_COMPONENTS: true,\n  EMBER_STRICT_MODE: true,\n  EMBER_DYNAMIC_HELPERS_AND_MODIFIERS: true\n};\n/**\n  The hash of enabled Canary features. Add to this, any canary features\n  before creating your application.\n\n  @class FEATURES\n  @static\n  @since 1.1.0\n  @public\n*/\n\nexport const FEATURES = assign(DEFAULT_FEATURES, ENV.FEATURES);\n/**\n  Determine whether the specified `feature` is enabled. Used by Ember's\n  build tools to exclude experimental features from beta/stable builds.\n\n  You can define the following configuration options:\n\n  * `EmberENV.ENABLE_OPTIONAL_FEATURES` - enable any features that have not been explicitly\n    enabled/disabled.\n\n  @method isEnabled\n  @param {String} feature The feature to check\n  @return {Boolean}\n  @since 1.1.0\n  @public\n*/\n\nexport function isEnabled(feature) {\n  let value = FEATURES[feature];\n\n  if (value === true || value === false) {\n    return value;\n  } else if (ENV.ENABLE_OPTIONAL_FEATURES) {\n    return true;\n  } else {\n    return false;\n  }\n}\n\nfunction featureValue(value) {\n  if (ENV.ENABLE_OPTIONAL_FEATURES && value === null) {\n    return true;\n  }\n\n  return value;\n}\n\nexport const EMBER_LIBRARIES_ISREGISTERED = featureValue(FEATURES.EMBER_LIBRARIES_ISREGISTERED);\nexport const EMBER_IMPROVED_INSTRUMENTATION = featureValue(FEATURES.EMBER_IMPROVED_INSTRUMENTATION);\nexport const EMBER_NAMED_BLOCKS = featureValue(FEATURES.EMBER_NAMED_BLOCKS);\nexport const EMBER_GLIMMER_HELPER_MANAGER = featureValue(FEATURES.EMBER_GLIMMER_HELPER_MANAGER);\nexport const EMBER_GLIMMER_INVOKE_HELPER = featureValue(FEATURES.EMBER_GLIMMER_INVOKE_HELPER);\nexport const EMBER_MODERNIZED_BUILT_IN_COMPONENTS = featureValue(FEATURES.EMBER_MODERNIZED_BUILT_IN_COMPONENTS);\nexport const EMBER_STRICT_MODE = featureValue(FEATURES.EMBER_STRICT_MODE);\nexport const EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = featureValue(FEATURES.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS);","import { deprecate } from '@ember/debug';\n\nif (true\n/* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n) {\n  deprecate(`Using Ember.Checkbox or importing from 'Checkbox' has been deprecated, install the ` + `\\`@ember/legacy-built-in-components\\` addon and use \\`import { Checkbox } from ` + `'@ember/legacy-built-in-components';\\` instead`, false, {\n    id: 'ember.built-in-components.import',\n    until: '4.0.0',\n    for: 'ember-source',\n    since: {\n      enabled: '3.27.0'\n    },\n    url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-import'\n  });\n}\n\nexport { Checkbox as default } from '@ember/-internals/glimmer';","export { Helper as default, helper } from '@ember/-internals/glimmer';","export { setComponentTemplate, getComponentTemplate } from '@glimmer/manager';\nexport { Component as default, Input } from '@ember/-internals/glimmer';\nexport { componentCapabilities as capabilities, setComponentManager } from '@ember/-internals/glimmer';","/**\n  @module @ember/component/template-only\n  @public\n*/\n\n/**\n  This utility function is used to declare a given component has no backing class. When the rendering engine detects this it\n  is able to perform a number of optimizations. Templates that are associated with `templateOnly()` will be rendered _as is_\n  without adding a wrapping `<div>` (or any of the other element customization behaviors of [@ember/component](/ember/release/classes/Component)).\n  Specifically, this means that the template will be rendered as \"outer HTML\".\n\n  In general, this method will be used by build time tooling and would not be directly written in an application. However,\n  at times it may be useful to use directly to leverage the \"outer HTML\" semantics mentioned above. For example, if an addon would like\n  to use these semantics for its templates but cannot be certain it will only be consumed by applications that have enabled the\n  `template-only-glimmer-components` optional feature.\n\n  @example\n\n  ```js\n  import templateOnly from '@ember/component/template-only';\n\n  export default templateOnly();\n  ```\n\n  @public\n  @method templateOnly\n  @param {String} moduleName the module name that the template only component represents, this will be used for debugging purposes\n  @category EMBER_GLIMMER_SET_COMPONENT_TEMPLATE\n*/\nexport { templateOnlyComponent as default } from '@glimmer/runtime';","import { deprecate } from '@ember/debug';\n\nif (true\n/* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n) {\n  deprecate(`Using Ember.TextArea or importing from 'TextArea' has been deprecated, install the ` + `\\`@ember/legacy-built-in-components\\` addon and use \\`import { TextArea } from ` + `'@ember/legacy-built-in-components';\\` instead`, false, {\n    id: 'ember.built-in-components.import',\n    until: '4.0.0',\n    for: 'ember-source',\n    since: {\n      enabled: '3.27.0'\n    },\n    url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-import'\n  });\n}\n\nexport { TextArea as default } from '@ember/-internals/glimmer';","import { deprecate } from '@ember/debug';\n\nif (true\n/* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n) {\n  deprecate(`Using Ember.TextField or importing from 'TextField' has been deprecated, install the ` + `\\`@ember/legacy-built-in-components\\` addon and use \\`import { TextField } from ` + `'@ember/legacy-built-in-components';\\` instead`, false, {\n    id: 'ember.built-in-components.import',\n    until: '4.0.0',\n    for: 'ember-source',\n    since: {\n      enabled: '3.27.0'\n    },\n    url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-import'\n  });\n}\n\nexport { TextField as default } from '@ember/-internals/glimmer';","import { FrameworkObject } from '@ember/-internals/runtime';\nimport { inject as metalInject } from '@ember/-internals/metal';\nimport ControllerMixin from './lib/controller_mixin';\n/**\n@module @ember/controller\n*/\n\n/**\n  @class Controller\n  @extends EmberObject\n  @uses Ember.ControllerMixin\n  @public\n*/\n\nconst Controller = FrameworkObject.extend(ControllerMixin);\n/**\n  Creates a property that lazily looks up another controller in the container.\n  Can only be used when defining another controller.\n\n  Example:\n\n  ```app/controllers/post.js\n  import Controller, {\n    inject as controller\n  } from '@ember/controller';\n\n  export default class PostController extends Controller {\n    @controller posts;\n  }\n  ```\n\n  Classic Class Example:\n\n  ```app/controllers/post.js\n  import Controller, {\n    inject as controller\n  } from '@ember/controller';\n\n  export default Controller.extend({\n    posts: controller()\n  });\n  ```\n\n  This example will create a `posts` property on the `post` controller that\n  looks up the `posts` controller in the container, making it easy to reference\n  other controllers.\n\n  @method inject\n  @static\n  @for @ember/controller\n  @since 1.10.0\n  @param {String} name (optional) name of the controller to inject, defaults to\n         the property's name\n  @return {ComputedDecorator} injection decorator instance\n  @public\n*/\n\nexport function inject() {\n  return metalInject('controller', ...arguments);\n}\nexport default Controller;","import { Mixin, computed } from '@ember/-internals/metal';\nimport { ActionHandler } from '@ember/-internals/runtime';\nimport { symbol } from '@ember/-internals/utils';\nconst MODEL = symbol('MODEL');\n/**\n@module ember\n*/\n\n/**\n  @class ControllerMixin\n  @namespace Ember\n  @uses Ember.ActionHandler\n  @private\n*/\n\nexport default Mixin.create(ActionHandler, {\n  /* ducktype as a controller */\n  isController: true,\n\n  /**\n    The object to which actions from the view should be sent.\n     For example, when a Handlebars template uses the `{{action}}` helper,\n    it will attempt to send the action to the view's controller's `target`.\n     By default, the value of the target property is set to the router, and\n    is injected when a controller is instantiated. This injection is applied\n    as part of the application's initialization process. In most cases the\n    `target` property will automatically be set to the logical consumer of\n    actions for the controller.\n     @property target\n    @default null\n    @public\n  */\n  target: null,\n  store: null,\n\n  /**\n    The controller's current model. When retrieving or modifying a controller's\n    model, this property should be used instead of the `content` property.\n     @property model\n    @public\n  */\n  model: computed({\n    get() {\n      return this[MODEL];\n    },\n\n    set(key, value) {\n      return this[MODEL] = value;\n    }\n\n  })\n});","export { ContainerDebugAdapter as default } from '@ember/-internals/extension-support';","export { DataAdapter as default } from '@ember/-internals/extension-support';","import { isChrome, isFirefox } from '@ember/-internals/browser-environment';\nimport EmberError from '@ember/error';\nimport { DEBUG } from '@glimmer/env';\nimport _deprecate from './lib/deprecate';\nimport { isTesting } from './lib/testing';\nimport _warn from './lib/warn';\nexport { inspect } from '@ember/-internals/utils';\nexport { registerHandler as registerWarnHandler } from './lib/warn';\nexport { registerHandler as registerDeprecationHandler } from './lib/deprecate';\nexport { isTesting, setTesting } from './lib/testing';\nexport { default as captureRenderTree } from './lib/capture-render-tree'; // These are the default production build versions:\n\nconst noop = () => {};\n\nlet assert = noop;\nlet info = noop;\nlet warn = noop;\nlet debug = noop;\nlet deprecate = noop;\nlet debugSeal = noop;\nlet debugFreeze = noop;\nlet runInDebug = noop;\nlet setDebugFunction = noop;\nlet getDebugFunction = noop;\n\nlet deprecateFunc = function () {\n  return arguments[arguments.length - 1];\n};\n\nif (DEBUG) {\n  setDebugFunction = function (type, callback) {\n    switch (type) {\n      case 'assert':\n        return assert = callback;\n\n      case 'info':\n        return info = callback;\n\n      case 'warn':\n        return warn = callback;\n\n      case 'debug':\n        return debug = callback;\n\n      case 'deprecate':\n        return deprecate = callback;\n\n      case 'debugSeal':\n        return debugSeal = callback;\n\n      case 'debugFreeze':\n        return debugFreeze = callback;\n\n      case 'runInDebug':\n        return runInDebug = callback;\n\n      case 'deprecateFunc':\n        return deprecateFunc = callback;\n    }\n  };\n\n  getDebugFunction = function (type) {\n    switch (type) {\n      case 'assert':\n        return assert;\n\n      case 'info':\n        return info;\n\n      case 'warn':\n        return warn;\n\n      case 'debug':\n        return debug;\n\n      case 'deprecate':\n        return deprecate;\n\n      case 'debugSeal':\n        return debugSeal;\n\n      case 'debugFreeze':\n        return debugFreeze;\n\n      case 'runInDebug':\n        return runInDebug;\n\n      case 'deprecateFunc':\n        return deprecateFunc;\n    }\n  };\n}\n/**\n@module @ember/debug\n*/\n\n\nif (DEBUG) {\n  /**\n    Verify that a certain expectation is met, or throw a exception otherwise.\n       This is useful for communicating assumptions in the code to other human\n    readers as well as catching bugs that accidentally violates these\n    expectations.\n       Assertions are removed from production builds, so they can be freely added\n    for documentation and debugging purposes without worries of incuring any\n    performance penalty. However, because of that, they should not be used for\n    checks that could reasonably fail during normal usage. Furthermore, care\n    should be taken to avoid accidentally relying on side-effects produced from\n    evaluating the condition itself, since the code will not run in production.\n       ```javascript\n    import { assert } from '@ember/debug';\n       // Test for truthiness\n    assert('Must pass a string', typeof str === 'string');\n       // Fail unconditionally\n    assert('This code path should never be run');\n    ```\n       @method assert\n    @static\n    @for @ember/debug\n    @param {String} description Describes the expectation. This will become the\n      text of the Error thrown if the assertion fails.\n    @param {any} condition Must be truthy for the assertion to pass. If\n      falsy, an exception will be thrown.\n    @public\n    @since 1.0.0\n  */\n  setDebugFunction('assert', function assert(desc, test) {\n    if (!test) {\n      throw new EmberError(`Assertion Failed: ${desc}`);\n    }\n  });\n  /**\n    Display a debug notice.\n       Calls to this function are not invoked in production builds.\n       ```javascript\n    import { debug } from '@ember/debug';\n       debug('I\\'m a debug notice!');\n    ```\n       @method debug\n    @for @ember/debug\n    @static\n    @param {String} message A debug message to display.\n    @public\n  */\n\n  setDebugFunction('debug', function debug(message) {\n    /* eslint-disable no-console */\n    if (console.debug) {\n      console.debug(`DEBUG: ${message}`);\n    } else {\n      console.log(`DEBUG: ${message}`);\n    }\n    /* eslint-ensable no-console */\n\n  });\n  /**\n    Display an info notice.\n       Calls to this function are removed from production builds, so they can be\n    freely added for documentation and debugging purposes without worries of\n    incuring any performance penalty.\n       @method info\n    @private\n  */\n\n  setDebugFunction('info', function info() {\n    console.info(...arguments);\n    /* eslint-disable-line no-console */\n  });\n  /**\n   @module @ember/debug\n   @public\n  */\n\n  /**\n    Alias an old, deprecated method with its new counterpart.\n       Display a deprecation warning with the provided message and a stack trace\n    (Chrome and Firefox only) when the assigned method is called.\n       Calls to this function are removed from production builds, so they can be\n    freely added for documentation and debugging purposes without worries of\n    incuring any performance penalty.\n       ```javascript\n    import { deprecateFunc } from '@ember/debug';\n       Ember.oldMethod = deprecateFunc('Please use the new, updated method', options, Ember.newMethod);\n    ```\n       @method deprecateFunc\n    @static\n    @for @ember/debug\n    @param {String} message A description of the deprecation.\n    @param {Object} [options] The options object for `deprecate`.\n    @param {Function} func The new function called to replace its deprecated counterpart.\n    @return {Function} A new function that wraps the original function with a deprecation warning\n    @private\n  */\n\n  setDebugFunction('deprecateFunc', function deprecateFunc(...args) {\n    if (args.length === 3) {\n      let [message, options, func] = args;\n      return function (...args) {\n        deprecate(message, false, options);\n        return func.apply(this, args);\n      };\n    } else {\n      let [message, func] = args;\n      return function () {\n        deprecate(message);\n        return func.apply(this, arguments);\n      };\n    }\n  });\n  /**\n   @module @ember/debug\n   @public\n  */\n\n  /**\n    Run a function meant for debugging.\n       Calls to this function are removed from production builds, so they can be\n    freely added for documentation and debugging purposes without worries of\n    incuring any performance penalty.\n       ```javascript\n    import Component from '@ember/component';\n    import { runInDebug } from '@ember/debug';\n       runInDebug(() => {\n      Component.reopen({\n        didInsertElement() {\n          console.log(\"I'm happy\");\n        }\n      });\n    });\n    ```\n       @method runInDebug\n    @for @ember/debug\n    @static\n    @param {Function} func The function to be executed.\n    @since 1.5.0\n    @public\n  */\n\n  setDebugFunction('runInDebug', function runInDebug(func) {\n    func();\n  });\n  setDebugFunction('debugSeal', function debugSeal(obj) {\n    Object.seal(obj);\n  });\n  setDebugFunction('debugFreeze', function debugFreeze(obj) {\n    // re-freezing an already frozen object introduces a significant\n    // performance penalty on Chrome (tested through 59).\n    //\n    // See: https://bugs.chromium.org/p/v8/issues/detail?id=6450\n    if (!Object.isFrozen(obj)) {\n      Object.freeze(obj);\n    }\n  });\n  setDebugFunction('deprecate', _deprecate);\n  setDebugFunction('warn', _warn);\n}\n\nlet _warnIfUsingStrippedFeatureFlags;\n\nif (DEBUG && !isTesting()) {\n  if (typeof window !== 'undefined' && (isFirefox || isChrome) && window.addEventListener) {\n    window.addEventListener('load', () => {\n      if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset.emberExtension) {\n        let downloadURL;\n\n        if (isChrome) {\n          downloadURL = 'https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi';\n        } else if (isFirefox) {\n          downloadURL = 'https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/';\n        }\n\n        debug(`For more advanced debugging, install the Ember Inspector from ${downloadURL}`);\n      }\n    }, false);\n  }\n}\n\nexport { assert, info, warn, debug, deprecate, debugSeal, debugFreeze, runInDebug, deprecateFunc, setDebugFunction, getDebugFunction, _warnIfUsingStrippedFeatureFlags };","import { expect } from '@glimmer/util';\n/**\n  @module @ember/debug\n*/\n\n/**\n  Ember Inspector calls this function to capture the current render tree.\n\n  In production mode, this requires turning on `ENV._DEBUG_RENDER_TREE`\n  before loading Ember.\n\n  @private\n  @static\n  @method captureRenderTree\n  @for @ember/debug\n  @param app {ApplicationInstance} An `ApplicationInstance`.\n  @since 3.14.0\n*/\n\nexport default function captureRenderTree(app) {\n  let renderer = expect(app.lookup('renderer:-dom'), `BUG: owner is missing renderer`);\n  return renderer.debugRenderTree.capture();\n}","import { ENV } from '@ember/-internals/environment';\nimport { DEBUG } from '@glimmer/env';\nimport { assert } from '../index';\nimport { invoke, registerHandler as genericRegisterHandler } from './handlers';\n/**\n @module @ember/debug\n @public\n*/\n\n/**\n  Allows for runtime registration of handler functions that override the default deprecation behavior.\n  Deprecations are invoked by calls to [@ember/debug/deprecate](/ember/release/classes/@ember%2Fdebug/methods/deprecate?anchor=deprecate).\n  The following example demonstrates its usage by registering a handler that throws an error if the\n  message contains the word \"should\", otherwise defers to the default handler.\n\n  ```javascript\n  import { registerDeprecationHandler } from '@ember/debug';\n\n  registerDeprecationHandler((message, options, next) => {\n    if (message.indexOf('should') !== -1) {\n      throw new Error(`Deprecation message with should: ${message}`);\n    } else {\n      // defer to whatever handler was registered before this one\n      next(message, options);\n    }\n  });\n  ```\n\n  The handler function takes the following arguments:\n\n  <ul>\n    <li> <code>message</code> - The message received from the deprecation call.</li>\n    <li> <code>options</code> - An object passed in with the deprecation call containing additional information including:</li>\n      <ul>\n        <li> <code>id</code> - An id of the deprecation in the form of <code>package-name.specific-deprecation</code>.</li>\n        <li> <code>until</code> - The Ember version number the feature and deprecation will be removed in.</li>\n      </ul>\n    <li> <code>next</code> - A function that calls into the previously registered handler.</li>\n  </ul>\n\n  @public\n  @static\n  @method registerDeprecationHandler\n  @for @ember/debug\n  @param handler {Function} A function to handle deprecation calls.\n  @since 2.1.0\n*/\n\nlet registerHandler = () => {};\n\nlet missingOptionsDeprecation;\nlet missingOptionsIdDeprecation;\nlet missingOptionsUntilDeprecation;\n\nlet missingOptionsForDeprecation = () => '';\n\nlet missingOptionsSinceDeprecation = () => '';\n\nlet deprecate = () => {};\n\nlet FOR_MISSING_DEPRECATIONS = new Set();\nlet SINCE_MISSING_DEPRECATIONS = new Set();\n\nif (DEBUG) {\n  registerHandler = function registerHandler(handler) {\n    genericRegisterHandler('deprecate', handler);\n  };\n\n  let formatMessage = function formatMessage(_message, options) {\n    let message = _message;\n\n    if (options && options.id) {\n      message = message + ` [deprecation id: ${options.id}]`;\n    }\n\n    if (options && options.url) {\n      message += ` See ${options.url} for more details.`;\n    }\n\n    return message;\n  };\n\n  registerHandler(function logDeprecationToConsole(message, options) {\n    let updatedMessage = formatMessage(message, options);\n    console.warn(`DEPRECATION: ${updatedMessage}`); // eslint-disable-line no-console\n  });\n  let captureErrorForStack;\n\n  if (new Error().stack) {\n    captureErrorForStack = () => new Error();\n  } else {\n    captureErrorForStack = () => {\n      try {\n        __fail__.fail();\n      } catch (e) {\n        return e;\n      }\n    };\n  }\n\n  registerHandler(function logDeprecationStackTrace(message, options, next) {\n    if (ENV.LOG_STACKTRACE_ON_DEPRECATION) {\n      let stackStr = '';\n      let error = captureErrorForStack();\n      let stack;\n\n      if (error.stack) {\n        if (error['arguments']) {\n          // Chrome\n          stack = error.stack.replace(/^\\s+at\\s+/gm, '').replace(/^([^(]+?)([\\n$])/gm, '{anonymous}($1)$2').replace(/^Object.<anonymous>\\s*\\(([^)]+)\\)/gm, '{anonymous}($1)').split('\\n');\n          stack.shift();\n        } else {\n          // Firefox\n          stack = error.stack.replace(/(?:\\n@:0)?\\s+$/m, '').replace(/^\\(/gm, '{anonymous}(').split('\\n');\n        }\n\n        stackStr = `\\n    ${stack.slice(2).join('\\n    ')}`;\n      }\n\n      let updatedMessage = formatMessage(message, options);\n      console.warn(`DEPRECATION: ${updatedMessage}${stackStr}`); // eslint-disable-line no-console\n    } else {\n      next(message, options);\n    }\n  });\n  registerHandler(function raiseOnDeprecation(message, options, next) {\n    if (ENV.RAISE_ON_DEPRECATION) {\n      let updatedMessage = formatMessage(message);\n      throw new Error(updatedMessage);\n    } else {\n      next(message, options);\n    }\n  });\n  missingOptionsDeprecation = 'When calling `deprecate` you ' + 'must provide an `options` hash as the third parameter.  ' + '`options` should include `id` and `until` properties.';\n  missingOptionsIdDeprecation = 'When calling `deprecate` you must provide `id` in options.';\n  missingOptionsUntilDeprecation = 'When calling `deprecate` you must provide `until` in options.';\n\n  missingOptionsForDeprecation = id => {\n    return `When calling \\`deprecate\\` you must provide \\`for\\` in options. Missing options.for in \"${id}\" deprecation`;\n  };\n\n  missingOptionsSinceDeprecation = id => {\n    return `When calling \\`deprecate\\` you must provide \\`since\\` in options. Missing options.since in \"${id}\" deprecation`;\n  };\n  /**\n   @module @ember/debug\n   @public\n   */\n\n  /**\n    Display a deprecation warning with the provided message and a stack trace\n    (Chrome and Firefox only).\n       * In a production build, this method is defined as an empty function (NOP).\n    Uses of this method in Ember itself are stripped from the ember.prod.js build.\n       @method deprecate\n    @for @ember/debug\n    @param {String} message A description of the deprecation.\n    @param {Boolean} test A boolean. If falsy, the deprecation will be displayed.\n    @param {Object} options\n    @param {String} options.id A unique id for this deprecation. The id can be\n      used by Ember debugging tools to change the behavior (raise, log or silence)\n      for that specific deprecation. The id should be namespaced by dots, e.g.\n      \"view.helper.select\".\n    @param {string} options.until The version of Ember when this deprecation\n      warning will be removed.\n    @param {String} options.for A namespace for the deprecation, usually the package name\n    @param {Object} options.since Describes when the deprecation became available and enabled.\n    @param {String} [options.url] An optional url to the transition guide on the\n          emberjs.com website.\n    @static\n    @public\n    @since 1.0.0\n  */\n\n\n  deprecate = function deprecate(message, test, options) {\n    assert(missingOptionsDeprecation, Boolean(options && (options.id || options.until)));\n    assert(missingOptionsIdDeprecation, Boolean(options.id));\n    assert(missingOptionsUntilDeprecation, Boolean(options.until));\n\n    if (!options.for && !FOR_MISSING_DEPRECATIONS.has(options.id)) {\n      FOR_MISSING_DEPRECATIONS.add(options.id);\n      deprecate(missingOptionsForDeprecation(options.id), Boolean(options.for), {\n        id: 'ember-source.deprecation-without-for',\n        until: '4.0.0',\n        for: 'ember-source',\n        since: {\n          enabled: '3.24.0'\n        }\n      });\n    }\n\n    if (!options.since && !SINCE_MISSING_DEPRECATIONS.has(options.id)) {\n      SINCE_MISSING_DEPRECATIONS.add(options.id);\n      deprecate(missingOptionsSinceDeprecation(options.id), Boolean(options.since), {\n        id: 'ember-source.deprecation-without-since',\n        until: '4.0.0',\n        for: 'ember-source',\n        since: {\n          enabled: '3.24.0'\n        }\n      });\n    }\n\n    invoke('deprecate', message, test, options);\n  };\n}\n\nexport default deprecate;\nexport { registerHandler, missingOptionsDeprecation, missingOptionsIdDeprecation, missingOptionsUntilDeprecation, missingOptionsForDeprecation, missingOptionsSinceDeprecation, FOR_MISSING_DEPRECATIONS, SINCE_MISSING_DEPRECATIONS };","import { DEBUG } from '@glimmer/env';\nexport let HANDLERS = {};\n\nlet registerHandler = () => {};\n\nlet invoke = () => {};\n\nif (DEBUG) {\n  registerHandler = function registerHandler(type, callback) {\n    let nextHandler = HANDLERS[type] || (() => {});\n\n    HANDLERS[type] = (message, options) => {\n      callback(message, options, nextHandler);\n    };\n  };\n\n  invoke = function invoke(type, message, test, options) {\n    if (test) {\n      return;\n    }\n\n    let handlerForType = HANDLERS[type];\n\n    if (handlerForType) {\n      handlerForType(message, options);\n    }\n  };\n}\n\nexport { registerHandler, invoke };","let testing = false;\nexport function isTesting() {\n  return testing;\n}\nexport function setTesting(value) {\n  testing = Boolean(value);\n}","import { DEBUG } from '@glimmer/env';\nimport { assert } from '../index';\nimport { invoke, registerHandler as genericRegisterHandler } from './handlers';\n\nlet registerHandler = () => {};\n\nlet warn = () => {};\n\nlet missingOptionsDeprecation;\nlet missingOptionsIdDeprecation;\n/**\n@module @ember/debug\n*/\n\nif (DEBUG) {\n  /**\n    Allows for runtime registration of handler functions that override the default warning behavior.\n    Warnings are invoked by calls made to [@ember/debug/warn](/ember/release/classes/@ember%2Fdebug/methods/warn?anchor=warn).\n    The following example demonstrates its usage by registering a handler that does nothing overriding Ember's\n    default warning behavior.\n       ```javascript\n    import { registerWarnHandler } from '@ember/debug';\n       // next is not called, so no warnings get the default behavior\n    registerWarnHandler(() => {});\n    ```\n       The handler function takes the following arguments:\n       <ul>\n      <li> <code>message</code> - The message received from the warn call. </li>\n      <li> <code>options</code> - An object passed in with the warn call containing additional information including:</li>\n        <ul>\n          <li> <code>id</code> - An id of the warning in the form of <code>package-name.specific-warning</code>.</li>\n        </ul>\n      <li> <code>next</code> - A function that calls into the previously registered handler.</li>\n    </ul>\n       @public\n    @static\n    @method registerWarnHandler\n    @for @ember/debug\n    @param handler {Function} A function to handle warnings.\n    @since 2.1.0\n  */\n  registerHandler = function registerHandler(handler) {\n    genericRegisterHandler('warn', handler);\n  };\n\n  registerHandler(function logWarning(message) {\n    /* eslint-disable no-console */\n    console.warn(`WARNING: ${message}`);\n    /* eslint-enable no-console */\n  });\n  missingOptionsDeprecation = 'When calling `warn` you ' + 'must provide an `options` hash as the third parameter.  ' + '`options` should include an `id` property.';\n  missingOptionsIdDeprecation = 'When calling `warn` you must provide `id` in options.';\n  /**\n    Display a warning with the provided message.\n       * In a production build, this method is defined as an empty function (NOP).\n    Uses of this method in Ember itself are stripped from the ember.prod.js build.\n       ```javascript\n    import { warn } from '@ember/debug';\n    import tomsterCount from './tomster-counter'; // a module in my project\n       // Log a warning if we have more than 3 tomsters\n    warn('Too many tomsters!', tomsterCount <= 3, {\n      id: 'ember-debug.too-many-tomsters'\n    });\n    ```\n       @method warn\n    @for @ember/debug\n    @static\n    @param {String} message A warning to display.\n    @param {Boolean} test An optional boolean. If falsy, the warning\n      will be displayed.\n    @param {Object} options An object that can be used to pass a unique\n      `id` for this warning.  The `id` can be used by Ember debugging tools\n      to change the behavior (raise, log, or silence) for that specific warning.\n      The `id` should be namespaced by dots, e.g. \"ember-debug.feature-flag-with-features-stripped\"\n    @public\n    @since 1.0.0\n  */\n\n  warn = function warn(message, test, options) {\n    if (arguments.length === 2 && typeof test === 'object') {\n      options = test;\n      test = false;\n    }\n\n    assert(missingOptionsDeprecation, Boolean(options));\n    assert(missingOptionsIdDeprecation, Boolean(options && options.id));\n    invoke('warn', message, test, options);\n  };\n}\n\nexport default warn;\nexport { registerHandler, missingOptionsIdDeprecation, missingOptionsDeprecation };","/* eslint-disable no-implicit-coercion */\n// These versions should be the version that the deprecation was _introduced_,\n// not the version that the feature will be removed.\nexport const SEND_ACTION = !!'3.4.0';\nexport const EMBER_EXTEND_PROTOTYPES = !!'3.2.0-beta.5';\nexport const LOGGER = !!'3.2.0-beta.1';\nexport const MERGE = !!'3.6.0-beta.1';\nexport const ROUTER_EVENTS = !!'4.0.0';\nexport const COMPONENT_MANAGER_STRING_LOOKUP = !!'3.8.0';\nexport const JQUERY_INTEGRATION = !!'3.9.0';\nexport const ALIAS_METHOD = !!'3.9.0';\nexport const APP_CTRL_ROUTER_PROPS = !!'3.10.0-beta.1';\nexport const FUNCTION_PROTOTYPE_EXTENSIONS = !!'3.11.0-beta.1';\nexport const MOUSE_ENTER_LEAVE_MOVE_EVENTS = !!'3.13.0-beta.1';\nexport const EMBER_COMPONENT_IS_VISIBLE = !!'3.15.0-beta.1';\nexport const PARTIALS = !!'3.15.0-beta.1';\nexport const GLOBALS_RESOLVER = !!'3.16.0-beta.1';","export { assertDestroyablesDestroyed, associateDestroyableChild, destroy, enableDestroyableTracking, isDestroying, isDestroyed } from '@glimmer/destroyable';\nimport { registerDestructor as _registerDestructor, unregisterDestructor as _unregisterDestructor } from '@glimmer/destroyable';\n/**\n  Ember manages the lifecycles and lifetimes of many built in constructs, such\n  as components, and does so in a hierarchical way - when a parent component is\n  destroyed, all of its children are destroyed as well.\n\n  This destroyables API exposes the basic building blocks for destruction:\n\n  * registering a function to be ran when an object is destroyyed\n  * checking if an object is in a destroying state\n  * associate an object as a child of another so that the child object will be destroyed\n    when the associated parent object is destroyed.\n\n  @module @ember/destroyable\n  @public\n*/\n\n/**\n  This function is used to associate a destroyable object with a parent. When the parent\n  is destroyed, all registered children will also be destroyed.\n\n  ```js\n  class CustomSelect extends Component {\n    constructor() {\n      // obj is now a child of the component. When the component is destroyed,\n      // obj will also be destroyed, and have all of its destructors triggered.\n      this.obj = associateDestroyableChild(this, {});\n    }\n  }\n  ```\n\n  Returns the associated child for convenience.\n\n  @method associateDestroyableChild\n  @for @ember/destroyable\n  @param {Object|Function} parent the destroyable to entangle the child destroyables lifetime with\n  @param {Object|Function} child the destroyable to be entangled with the parents lifetime\n  @returns {Object|Function} the child argument\n  @static\n  @public\n*/\n\n/**\n Receives a destroyable, and returns true if the destroyable has begun destroying. Otherwise returns\n false.\n\n  ```js\n  let obj = {};\n  isDestroying(obj); // false\n  destroy(obj);\n  isDestroying(obj); // true\n  // ...sometime later, after scheduled destruction\n  isDestroyed(obj); // true\n  isDestroying(obj); // true\n  ```\n\n  @method isDestroying\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the object to check\n  @returns {Boolean}\n  @static\n  @public\n*/\n\n/**\n  Receives a destroyable, and returns true if the destroyable has finished destroying. Otherwise\n  returns false.\n\n  ```js\n  let obj = {};\n\n  isDestroyed(obj); // false\n  destroy(obj);\n\n  // ...sometime later, after scheduled destruction\n\n  isDestroyed(obj); // true\n  ```\n\n  @method isDestroyed\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the object to check\n  @returns {Boolean}\n  @static\n  @public\n*/\n\n/**\n  Initiates the destruction of a destroyable object. It runs all associated destructors, and then\n  destroys all children recursively.\n\n  ```js\n  let obj = {};\n\n  registerDestructor(obj, () => console.log('destroyed!'));\n\n  destroy(obj); // this will schedule the destructor to be called\n\n  // ...some time later, during scheduled destruction\n\n  // destroyed!\n  ```\n\n  Destruction via `destroy()` follows these steps:\n\n  1, Mark the destroyable such that `isDestroying(destroyable)` returns `true`\n  2, Call `destroy()` on each of the destroyable's associated children\n  3, Schedule calling the destroyable's destructors\n  4, Schedule setting destroyable such that `isDestroyed(destroyable)` returns `true`\n\n  This results in the entire tree of destroyables being first marked as destroying,\n  then having all of their destructors called, and finally all being marked as isDestroyed.\n  There won't be any in between states where some items are marked as `isDestroying` while\n  destroying, while others are not.\n\n  @method destroy\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the object to destroy\n  @static\n  @public\n*/\n\n/**\n  This function asserts that all objects which have associated destructors or associated children\n  have been destroyed at the time it is called. It is meant to be a low level hook that testing\n  frameworks can use to hook into and validate that all destroyables have in fact been destroyed.\n\n  This function requires that `enableDestroyableTracking` was called previously, and is only\n  available in non-production builds.\n\n  @method assertDestroyablesDestroyed\n  @for @ember/destroyable\n  @static\n  @public\n*/\n\n/**\n  This function instructs the destroyable system to keep track of all destroyables (their\n  children, destructors, etc). This enables a future usage of `assertDestroyablesDestroyed`\n  to be used to ensure that all destroyable tasks (registered destructors and associated children)\n  have completed when `assertDestroyablesDestroyed` is called.\n\n  @method enableDestroyableTracking\n  @for @ember/destroyable\n  @static\n  @public\n*/\n\n/**\n  Receives a destroyable object and a destructor function, and associates the\n  function with it. When the destroyable is destroyed with destroy, or when its\n  parent is destroyed, the destructor function will be called.\n\n  ```js\n  import { registerDestructor } from '@ember/destroyable';\n\n  class Modal extends Component {\n    @service resize;\n\n    constructor() {\n      this.resize.register(this, this.layout);\n\n      registerDestructor(this, () => this.resize.unregister(this));\n    }\n  }\n  ```\n\n  Multiple destructors can be associated with a given destroyable, and they can be\n  associated over time, allowing libraries to dynamically add destructors as needed.\n  `registerDestructor` also returns the associated destructor function, for convenience.\n\n  The destructor function is passed a single argument, which is the destroyable itself.\n  This allows the function to be reused multiple times for many destroyables, rather\n  than creating a closure function per destroyable.\n\n  ```js\n  import { registerDestructor } from '@ember/destroyable';\n\n  function unregisterResize(instance) {\n    instance.resize.unregister(instance);\n  }\n\n  class Modal extends Component {\n    @service resize;\n\n    constructor() {\n      this.resize.register(this, this.layout);\n\n      registerDestructor(this, unregisterResize);\n    }\n  }\n  ```\n\n  @method registerDestructor\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the destroyable to register the destructor function with\n  @param {Function} destructor the destructor to run when the destroyable object is destroyed\n  @static\n  @public\n*/\n\nexport function registerDestructor(destroyable, destructor) {\n  return _registerDestructor(destroyable, destructor);\n}\n/**\n  Receives a destroyable and a destructor function, and de-associates the destructor\n  from the destroyable.\n\n  ```js\n  import { registerDestructor, unregisterDestructor } from '@ember/destroyable';\n\n  class Modal extends Component {\n    @service modals;\n\n    constructor() {\n      this.modals.add(this);\n\n      this.modalDestructor = registerDestructor(this, () => this.modals.remove(this));\n    }\n\n    @action pinModal() {\n      unregisterDestructor(this, this.modalDestructor);\n    }\n  }\n  ```\n\n  @method unregisterDestructor\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the destroyable to unregister the destructor function from\n  @param {Function} destructor the destructor to remove from the destroyable\n  @static\n  @public\n*/\n\nexport function unregisterDestructor(destroyable, destructor) {\n  return _unregisterDestructor(destroyable, destructor);\n}","export { getEngineParent, setEngineParent } from './lib/engine-parent';\nimport { canInvoke } from '@ember/-internals/utils';\nimport Controller from '@ember/controller';\nimport { Namespace, RegistryProxyMixin } from '@ember/-internals/runtime';\nimport { Registry } from '@ember/-internals/container';\nimport DAG from 'dag-map';\nimport { assert } from '@ember/debug';\nimport { get, set } from '@ember/-internals/metal';\nimport DefaultResolver from '@ember/application/globals-resolver';\nimport EngineInstance from '@ember/engine/instance';\nimport { RoutingService } from '@ember/-internals/routing';\nimport { ContainerDebugAdapter } from '@ember/-internals/extension-support';\nimport { ComponentLookup } from '@ember/-internals/views';\nimport { setupEngineRegistry } from '@ember/-internals/glimmer';\n\nfunction props(obj) {\n  let properties = [];\n\n  for (let key in obj) {\n    properties.push(key);\n  }\n\n  return properties;\n}\n/**\n@module @ember/engine\n*/\n\n/**\n  The `Engine` class contains core functionality for both applications and\n  engines.\n\n  Each engine manages a registry that's used for dependency injection and\n  exposed through `RegistryProxy`.\n\n  Engines also manage initializers and instance initializers.\n\n  Engines can spawn `EngineInstance` instances via `buildInstance()`.\n\n  @class Engine\n  @extends Ember.Namespace\n  @uses RegistryProxy\n  @public\n*/\n\n\nconst Engine = Namespace.extend(RegistryProxyMixin, {\n  init() {\n    this._super(...arguments);\n\n    this.buildRegistry();\n  },\n\n  /**\n    A private flag indicating whether an engine's initializers have run yet.\n     @private\n    @property _initializersRan\n  */\n  _initializersRan: false,\n\n  /**\n    Ensure that initializers are run once, and only once, per engine.\n     @private\n    @method ensureInitializers\n  */\n  ensureInitializers() {\n    if (!this._initializersRan) {\n      this.runInitializers();\n      this._initializersRan = true;\n    }\n  },\n\n  /**\n    Create an EngineInstance for this engine.\n     @public\n    @method buildInstance\n    @return {EngineInstance} the engine instance\n  */\n  buildInstance(options = {}) {\n    this.ensureInitializers();\n    options.base = this;\n    return EngineInstance.create(options);\n  },\n\n  /**\n    Build and configure the registry for the current engine.\n     @private\n    @method buildRegistry\n    @return {Ember.Registry} the configured registry\n  */\n  buildRegistry() {\n    let registry = this.__registry__ = this.constructor.buildRegistry(this);\n    return registry;\n  },\n\n  /**\n    @private\n    @method initializer\n  */\n  initializer(options) {\n    this.constructor.initializer(options);\n  },\n\n  /**\n    @private\n    @method instanceInitializer\n  */\n  instanceInitializer(options) {\n    this.constructor.instanceInitializer(options);\n  },\n\n  /**\n    @private\n    @method runInitializers\n  */\n  runInitializers() {\n    this._runInitializer('initializers', (name, initializer) => {\n      assert(`No application initializer named '${name}'`, Boolean(initializer));\n      initializer.initialize(this);\n    });\n  },\n\n  /**\n    @private\n    @since 1.12.0\n    @method runInstanceInitializers\n  */\n  runInstanceInitializers(instance) {\n    this._runInitializer('instanceInitializers', (name, initializer) => {\n      assert(`No instance initializer named '${name}'`, Boolean(initializer));\n      initializer.initialize(instance);\n    });\n  },\n\n  _runInitializer(bucketName, cb) {\n    let initializersByName = get(this.constructor, bucketName);\n    let initializers = props(initializersByName);\n    let graph = new DAG();\n    let initializer;\n\n    for (let i = 0; i < initializers.length; i++) {\n      initializer = initializersByName[initializers[i]];\n      graph.add(initializer.name, initializer, initializer.before, initializer.after);\n    }\n\n    graph.topsort(cb);\n  }\n\n});\nEngine.reopenClass({\n  initializers: Object.create(null),\n  instanceInitializers: Object.create(null),\n\n  /**\n    The goal of initializers should be to register dependencies and injections.\n    This phase runs once. Because these initializers may load code, they are\n    allowed to defer application readiness and advance it. If you need to access\n    the container or store you should use an InstanceInitializer that will be run\n    after all initializers and therefore after all code is loaded and the app is\n    ready.\n     Initializer receives an object which has the following attributes:\n    `name`, `before`, `after`, `initialize`. The only required attribute is\n    `initialize`, all others are optional.\n     * `name` allows you to specify under which name the initializer is registered.\n    This must be a unique name, as trying to register two initializers with the\n    same name will result in an error.\n     ```app/initializer/named-initializer.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Running namedInitializer!');\n    }\n     export default {\n      name: 'named-initializer',\n      initialize\n    };\n    ```\n     * `before` and `after` are used to ensure that this initializer is ran prior\n    or after the one identified by the value. This value can be a single string\n    or an array of strings, referencing the `name` of other initializers.\n     An example of ordering initializers, we create an initializer named `first`:\n     ```app/initializer/first.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('First initializer!');\n    }\n     export default {\n      name: 'first',\n      initialize\n    };\n    ```\n     ```bash\n    // DEBUG: First initializer!\n    ```\n     We add another initializer named `second`, specifying that it should run\n    after the initializer named `first`:\n     ```app/initializer/second.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Second initializer!');\n    }\n     export default {\n      name: 'second',\n      after: 'first',\n      initialize\n    };\n    ```\n     ```\n    // DEBUG: First initializer!\n    // DEBUG: Second initializer!\n    ```\n     Afterwards we add a further initializer named `pre`, this time specifying\n    that it should run before the initializer named `first`:\n     ```app/initializer/pre.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Pre initializer!');\n    }\n     export default {\n      name: 'pre',\n      before: 'first',\n      initialize\n    };\n    ```\n     ```bash\n    // DEBUG: Pre initializer!\n    // DEBUG: First initializer!\n    // DEBUG: Second initializer!\n    ```\n     Finally we add an initializer named `post`, specifying it should run after\n    both the `first` and the `second` initializers:\n     ```app/initializer/post.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Post initializer!');\n    }\n     export default {\n      name: 'post',\n      after: ['first', 'second'],\n      initialize\n    };\n    ```\n     ```bash\n    // DEBUG: Pre initializer!\n    // DEBUG: First initializer!\n    // DEBUG: Second initializer!\n    // DEBUG: Post initializer!\n    ```\n     * `initialize` is a callback function that receives one argument,\n      `application`, on which you can operate.\n     Example of using `application` to register an adapter:\n     ```app/initializer/api-adapter.js\n    import ApiAdapter from '../utils/api-adapter';\n     export function initialize(application) {\n      application.register('api-adapter:main', ApiAdapter);\n    }\n     export default {\n      name: 'post',\n      after: ['first', 'second'],\n      initialize\n    };\n    ```\n     @method initializer\n    @param initializer {Object}\n    @public\n  */\n  initializer: buildInitializerMethod('initializers', 'initializer'),\n\n  /**\n    Instance initializers run after all initializers have run. Because\n    instance initializers run after the app is fully set up. We have access\n    to the store, container, and other items. However, these initializers run\n    after code has loaded and are not allowed to defer readiness.\n     Instance initializer receives an object which has the following attributes:\n    `name`, `before`, `after`, `initialize`. The only required attribute is\n    `initialize`, all others are optional.\n     * `name` allows you to specify under which name the instanceInitializer is\n    registered. This must be a unique name, as trying to register two\n    instanceInitializer with the same name will result in an error.\n     ```app/initializer/named-instance-initializer.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Running named-instance-initializer!');\n    }\n     export default {\n      name: 'named-instance-initializer',\n      initialize\n    };\n    ```\n     * `before` and `after` are used to ensure that this initializer is ran prior\n    or after the one identified by the value. This value can be a single string\n    or an array of strings, referencing the `name` of other initializers.\n     * See Application.initializer for discussion on the usage of before\n    and after.\n     Example instanceInitializer to preload data into the store.\n     ```app/initializer/preload-data.js\n    import $ from 'jquery';\n     export function initialize(application) {\n        var userConfig, userConfigEncoded, store;\n        // We have a HTML escaped JSON representation of the user's basic\n        // configuration generated server side and stored in the DOM of the main\n        // index.html file. This allows the app to have access to a set of data\n        // without making any additional remote calls. Good for basic data that is\n        // needed for immediate rendering of the page. Keep in mind, this data,\n        // like all local models and data can be manipulated by the user, so it\n        // should not be relied upon for security or authorization.\n         // Grab the encoded data from the meta tag\n        userConfigEncoded = $('head meta[name=app-user-config]').attr('content');\n         // Unescape the text, then parse the resulting JSON into a real object\n        userConfig = JSON.parse(unescape(userConfigEncoded));\n         // Lookup the store\n        store = application.lookup('service:store');\n         // Push the encoded JSON into the store\n        store.pushPayload(userConfig);\n    }\n     export default {\n      name: 'named-instance-initializer',\n      initialize\n    };\n    ```\n     @method instanceInitializer\n    @param instanceInitializer\n    @public\n  */\n  instanceInitializer: buildInitializerMethod('instanceInitializers', 'instance initializer'),\n\n  /**\n    This creates a registry with the default Ember naming conventions.\n     It also configures the registry:\n     * registered views are created every time they are looked up (they are\n      not singletons)\n    * registered templates are not factories; the registered value is\n      returned directly.\n    * the router receives the application as its `namespace` property\n    * all controllers receive the router as their `target` and `controllers`\n      properties\n    * all controllers receive the application as their `namespace` property\n    * the application view receives the application controller as its\n      `controller` property\n    * the application view receives the application template as its\n      `defaultTemplate` property\n     @method buildRegistry\n    @static\n    @param {Application} namespace the application for which to\n      build the registry\n    @return {Ember.Registry} the built registry\n    @private\n  */\n  buildRegistry(namespace) {\n    let registry = new Registry({\n      resolver: resolverFor(namespace)\n    });\n    registry.set = set;\n    registry.register('application:main', namespace, {\n      instantiate: false\n    });\n    commonSetupRegistry(registry);\n    setupEngineRegistry(registry);\n    return registry;\n  },\n\n  /**\n    Set this to provide an alternate class to `DefaultResolver`\n     @deprecated Use 'Resolver' instead\n    @property resolver\n    @public\n  */\n  resolver: null,\n\n  /**\n    Set this to provide an alternate class to `DefaultResolver`\n     @property resolver\n    @public\n  */\n  Resolver: null\n});\n/**\n  This function defines the default lookup rules for container lookups:\n\n  * templates are looked up on `Ember.TEMPLATES`\n  * other names are looked up on the application after classifying the name.\n    For example, `controller:post` looks up `App.PostController` by default.\n  * if the default lookup fails, look for registered classes on the container\n\n  This allows the application to register default injections in the container\n  that could be overridden by the normal naming convention.\n\n  @private\n  @method resolverFor\n  @param {Ember.Namespace} namespace the namespace to look for classes\n  @return {*} the resolved value for a given lookup\n*/\n\nfunction resolverFor(namespace) {\n  let ResolverClass = get(namespace, 'Resolver') || DefaultResolver;\n  let props = {\n    namespace\n  };\n  return ResolverClass.create(props);\n}\n\nfunction buildInitializerMethod(bucketName, humanName) {\n  return function (initializer) {\n    // If this is the first initializer being added to a subclass, we are going to reopen the class\n    // to make sure we have a new `initializers` object, which extends from the parent class' using\n    // prototypal inheritance. Without this, attempting to add initializers to the subclass would\n    // pollute the parent class as well as other subclasses.\n    if (this.superclass[bucketName] !== undefined && this.superclass[bucketName] === this[bucketName]) {\n      let attrs = {};\n      attrs[bucketName] = Object.create(this[bucketName]);\n      this.reopenClass(attrs);\n    }\n\n    assert(`The ${humanName} '${initializer.name}' has already been registered`, !this[bucketName][initializer.name]);\n    assert(`An ${humanName} cannot be registered without an initialize function`, canInvoke(initializer, 'initialize'));\n    assert(`An ${humanName} cannot be registered without a name property`, initializer.name !== undefined);\n    this[bucketName][initializer.name] = initializer;\n  };\n}\n\nfunction commonSetupRegistry(registry) {\n  registry.optionsForType('component', {\n    singleton: false\n  });\n  registry.optionsForType('view', {\n    singleton: false\n  });\n  registry.register('controller:basic', Controller, {\n    instantiate: false\n  });\n  registry.injection('renderer', '_viewRegistry', '-view-registry:main');\n  registry.injection('view:-outlet', 'namespace', 'application:main'); // Register the routing service...\n\n  registry.register('service:-routing', RoutingService); // DEBUGGING\n\n  registry.register('resolver-for-debugging:main', registry.resolver, {\n    instantiate: false\n  });\n  registry.injection('container-debug-adapter:main', 'resolver', 'resolver-for-debugging:main'); // Custom resolver authors may want to register their own ContainerDebugAdapter with this key\n\n  registry.register('container-debug-adapter:main', ContainerDebugAdapter);\n  registry.register('component-lookup:main', ComponentLookup);\n}\n\nexport default Engine;","/**\n@module @ember/engine\n*/\nimport { Object as EmberObject, ContainerProxyMixin, RegistryProxyMixin, RSVP } from '@ember/-internals/runtime';\nimport { assert } from '@ember/debug';\nimport EmberError from '@ember/error';\nimport { Registry, privatize as P } from '@ember/-internals/container';\nimport { guidFor } from '@ember/-internals/utils';\nimport { getEngineParent, setEngineParent } from './lib/engine-parent';\n/**\n  The `EngineInstance` encapsulates all of the stateful aspects of a\n  running `Engine`.\n\n  @public\n  @class EngineInstance\n  @extends EmberObject\n  @uses RegistryProxyMixin\n  @uses ContainerProxyMixin\n*/\n\nconst EngineInstance = EmberObject.extend(RegistryProxyMixin, ContainerProxyMixin, {\n  /**\n    The base `Engine` for which this is an instance.\n     @property {Engine} engine\n    @private\n  */\n  base: null,\n\n  init() {\n    this._super(...arguments); // Ensure the guid gets setup for this instance\n\n\n    guidFor(this);\n    let base = this.base;\n\n    if (!base) {\n      base = this.application;\n      this.base = base;\n    } // Create a per-instance registry that will use the application's registry\n    // as a fallback for resolving registrations.\n\n\n    let registry = this.__registry__ = new Registry({\n      fallback: base.__registry__\n    }); // Create a per-instance container from the instance's registry\n\n    this.__container__ = registry.container({\n      owner: this\n    });\n    this._booted = false;\n  },\n\n  /**\n    Initialize the `EngineInstance` and return a promise that resolves\n    with the instance itself when the boot process is complete.\n     The primary task here is to run any registered instance initializers.\n     See the documentation on `BootOptions` for the options it takes.\n     @public\n    @method boot\n    @param options {Object}\n    @return {Promise<EngineInstance,Error>}\n  */\n  boot(options) {\n    if (this._bootPromise) {\n      return this._bootPromise;\n    }\n\n    this._bootPromise = new RSVP.Promise(resolve => resolve(this._bootSync(options)));\n    return this._bootPromise;\n  },\n\n  /**\n    Unfortunately, a lot of existing code assumes booting an instance is\n    synchronous – specifically, a lot of tests assume the last call to\n    `app.advanceReadiness()` or `app.reset()` will result in a new instance\n    being fully-booted when the current runloop completes.\n     We would like new code (like the `visit` API) to stop making this\n    assumption, so we created the asynchronous version above that returns a\n    promise. But until we have migrated all the code, we would have to expose\n    this method for use *internally* in places where we need to boot an instance\n    synchronously.\n     @private\n  */\n  _bootSync(options) {\n    if (this._booted) {\n      return this;\n    }\n\n    assert(\"An engine instance's parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.\", getEngineParent(this));\n    this.cloneParentDependencies();\n    this.setupRegistry(options);\n    this.base.runInstanceInitializers(this);\n    this._booted = true;\n    return this;\n  },\n\n  setupRegistry(options = this.__container__.lookup('-environment:main')) {\n    this.constructor.setupRegistry(this.__registry__, options);\n  },\n\n  /**\n   Unregister a factory.\n    Overrides `RegistryProxy#unregister` in order to clear any cached instances\n   of the unregistered factory.\n    @public\n   @method unregister\n   @param {String} fullName\n   */\n  unregister(fullName) {\n    this.__container__.reset(fullName);\n\n    this._super(...arguments);\n  },\n\n  /**\n    Build a new `EngineInstance` that's a child of this instance.\n     Engines must be registered by name with their parent engine\n    (or application).\n     @private\n    @method buildChildEngineInstance\n    @param name {String} the registered name of the engine.\n    @param options {Object} options provided to the engine instance.\n    @return {EngineInstance,Error}\n  */\n  buildChildEngineInstance(name, options = {}) {\n    let Engine = this.lookup(`engine:${name}`);\n\n    if (!Engine) {\n      throw new EmberError(`You attempted to mount the engine '${name}', but it is not registered with its parent.`);\n    }\n\n    let engineInstance = Engine.buildInstance(options);\n    setEngineParent(engineInstance, this);\n    return engineInstance;\n  },\n\n  /**\n    Clone dependencies shared between an engine instance and its parent.\n     @private\n    @method cloneParentDependencies\n  */\n  cloneParentDependencies() {\n    let parent = getEngineParent(this);\n    let registrations = ['route:basic', 'service:-routing'];\n    registrations.forEach(key => this.register(key, parent.resolveRegistration(key)));\n    let env = parent.lookup('-environment:main');\n    this.register('-environment:main', env, {\n      instantiate: false\n    });\n    let singletons = ['router:main', P`-bucket-cache:main`, '-view-registry:main', `renderer:-dom`, 'service:-document'];\n\n    if (env.isInteractive) {\n      singletons.push('event_dispatcher:main');\n    }\n\n    singletons.forEach(key => this.register(key, parent.lookup(key), {\n      instantiate: false\n    }));\n    this.inject('view', '_environment', '-environment:main');\n    this.inject('route', '_environment', '-environment:main');\n  }\n\n});\nEngineInstance.reopenClass({\n  /**\n   @private\n   @method setupRegistry\n   @param {Registry} registry\n   @param {BootOptions} options\n   */\n  setupRegistry(registry, options) {\n    // when no options/environment is present, do nothing\n    if (!options) {\n      return;\n    }\n\n    registry.injection('view', '_environment', '-environment:main');\n  }\n\n});\nexport default EngineInstance;","/**\n@module @ember/engine\n*/\nimport { symbol } from '@ember/-internals/utils';\nconst ENGINE_PARENT = symbol('ENGINE_PARENT');\n/**\n  `getEngineParent` retrieves an engine instance's parent instance.\n\n  @method getEngineParent\n  @param {EngineInstance} engine An engine instance.\n  @return {EngineInstance} The parent engine instance.\n  @for @ember/engine\n  @static\n  @private\n*/\n\nexport function getEngineParent(engine) {\n  return engine[ENGINE_PARENT];\n}\n/**\n  `setEngineParent` sets an engine instance's parent instance.\n\n  @method setEngineParent\n  @param {EngineInstance} engine An engine instance.\n  @param {EngineInstance} parent The parent engine instance.\n  @private\n*/\n\nexport function setEngineParent(engine, parent) {\n  engine[ENGINE_PARENT] = parent;\n}","export { Enumerable as default } from '@ember/-internals/runtime';","/**\n @module @ember/error\n*/\n\n/**\n  The JavaScript Error object used by Ember.assert.\n\n  @class Error\n  @namespace Ember\n  @extends Error\n  @constructor\n  @public\n*/\nexport default Error;","/**\n@module @ember/helper\n*/\n\n/**\n  `capabilities` returns a capabilities configuration which can be used to modify\n  the behavior of the manager. Manager capabilities _must_ be provided using the\n  `capabilities` function, as the underlying implementation can change over time.\n\n  The first argument to capabilities is a version string, which is the version of\n  Ember that the capabilities were defined in. Ember can add new versions at any\n  time, and these may have entirely different behaviors, but it will not remove\n  old versions until the next major version.\n\n  ```js\n  capabilities('3.23');\n  ```\n\n  The second argument is an object of capabilities and boolean values indicating\n  whether they are enabled or disabled.\n\n  ```js\n  capabilities('3.23', {\n    hasValue: true,\n    hasDestructor: true,\n  });\n  ```\n\n  If no value is specified, then the default value will be used.\n\n  ### `3.23` capabilities\n\n  #### `hasDestroyable`\n\n  - Default value: false\n\n  Determines if the helper has a destroyable to include in the destructor\n  hierarchy. If enabled, the `getDestroyable` hook will be called, and its result\n  will be associated with the destroyable parent block.\n\n  #### `hasValue`\n\n  - Default value: false\n\n  Determines if the helper has a value which can be used externally. The helper's\n  `getValue` hook will be run whenever the value of the helper is accessed if this\n  capability is enabled.\n\n  @method capabilities\n  @for @ember/helper\n  @static\n  @param {String} managerApiVersion The version of capabilities that are being used\n  @param options The capabilities values\n  @return {Capabilities} The capabilities object instance\n  @public\n*/\n\n/**\n  Sets the helper manager for an object or function.\n\n  ```js\n  setHelperManager((owner) => new ClassHelperManager(owner), Helper)\n  ```\n\n  When a value is used as a helper in a template, the helper manager is looked up\n  on the object by walking up its prototype chain and finding the first helper\n  manager. This manager then receives the value and can create and manage an\n  instance of a helper from it. This provides a layer of indirection that allows\n  users to design high-level helper APIs, without Ember needing to worry about the\n  details. High-level APIs can be experimented with and iterated on while the\n  core of Ember helpers remains stable, and new APIs can be introduced gradually\n  over time to existing code bases.\n\n  `setHelperManager` receives two arguments:\n\n  1. A factory function, which receives the `owner` and returns an instance of a\n    helper manager.\n  2. A helper definition, which is the object or function to associate the factory function with.\n\n  The first time the object is looked up, the factory function will be called to\n  create the helper manager. It will be cached, and in subsequent lookups the\n  cached helper manager will be used instead.\n\n  Only one helper manager is guaranteed to exist per `owner` and per usage of\n  `setHelperManager`, so many helpers will end up using the same instance of the\n  helper manager. As such, you should only store state that is related to the\n  manager itself. If you want to store state specific to a particular helper\n  definition, you should assign a unique helper manager to that helper. In\n  general, most managers should either be stateless, or only have the `owner` they\n  were created with as state.\n\n  Helper managers must fulfill the following interface (This example uses\n  [TypeScript interfaces](https://www.typescriptlang.org/docs/handbook/interfaces.html)\n  for precision, you do not need to write helper managers using TypeScript):\n\n  ```ts\n  interface HelperManager<HelperStateBucket> {\n    capabilities: HelperCapabilities;\n\n    createHelper(definition: HelperDefinition, args: TemplateArgs): HelperStateBucket;\n\n    getValue?(bucket: HelperStateBucket): unknown;\n\n    runEffect?(bucket: HelperStateBucket): void;\n\n    getDestroyable?(bucket: HelperStateBucket): object;\n  }\n  ```\n\n  The capabilities property _must_ be provided using the `capabilities()` function\n  imported from the same module as `setHelperManager`:\n\n  ```js\n  import { capabilities } from '@ember/helper';\n\n  class MyHelperManager {\n    capabilities = capabilities('3.21.0', { hasValue: true });\n\n    // ...snip...\n  }\n  ```\n\n  Below is a description of each of the methods on the interface and their\n  functions.\n\n  #### `createHelper`\n\n  `createHelper` is a required hook on the HelperManager interface. The hook is\n  passed the definition of the helper that is currently being created, and is\n  expected to return a _state bucket_. This state bucket is what represents the\n  current state of the helper, and will be passed to the other lifecycle hooks at\n  appropriate times. It is not necessarily related to the definition of the\n  helper itself - for instance, you could return an object _containing_ an\n  instance of the helper:\n\n  ```js\n  class MyManager {\n    createHelper(Definition, args) {\n      return {\n        instance: new Definition(args);\n      };\n    }\n  }\n  ```\n\n  This allows the manager to store metadata that it doesn't want to expose to the\n  user.\n\n  This hook is _not_ autotracked - changes to tracked values used within this hook\n  will _not_ result in a call to any of the other lifecycle hooks. This is because\n  it is unclear what should happen if it invalidates, and rather than make a\n  decision at this point, the initial API is aiming to allow as much expressivity\n  as possible. This could change in the future with changes to capabilities and\n  their behaviors.\n\n  If users do want to autotrack some values used during construction, they can\n  either create the instance of the helper in `runEffect` or `getValue`, or they\n  can use the `cache` API to autotrack the `createHelper` hook themselves. This\n  provides maximum flexibility and expressiveness to manager authors.\n\n  This hook has the following timing semantics:\n\n  **Always**\n  - called as discovered during DOM construction\n  - called in definition order in the template\n\n  #### `getValue`\n\n  `getValue` is an optional hook that should return the value of the helper. This\n  is the value that is returned from the helper and passed into the template.\n\n  This hook is called when the value is requested from the helper (e.g. when the\n  template is rendering and the helper value is needed). The hook is autotracked,\n  and will rerun whenever any tracked values used inside of it are updated.\n  Otherwise it does not rerun.\n\n  > Note: This means that arguments which are not _consumed_ within the hook will\n  > not trigger updates.\n\n  This hook is only called for helpers with the `hasValue` capability enabled.\n  This hook has the following timing semantics:\n\n  **Always**\n  - called the first time the helper value is requested\n  - called after autotracked state has changed\n\n  **Never**\n  - called if the `hasValue` capability is disabled\n\n  #### `runEffect`\n\n  `runEffect` is an optional hook that should run the effect that the helper is\n  applying, setting it up or updating it.\n\n  This hook is scheduled to be called some time after render and prior to paint.\n  There is not a guaranteed, 1-to-1 relationship between a render pass and this\n  hook firing. For instance, multiple render passes could occur, and the hook may\n  only trigger once. It may also never trigger if it was dirtied in one render\n  pass and then destroyed in the next.\n\n  The hook is autotracked, and will rerun whenever any tracked values used inside\n  of it are updated. Otherwise it does not rerun.\n\n  The hook is also run during a time period where state mutations are _disabled_\n  in Ember. Any tracked state mutation will throw an error during this time,\n  including changes to tracked properties, changes made using `Ember.set`, updates\n  to computed properties, etc. This is meant to prevent infinite rerenders and\n  other antipatterns.\n\n  This hook is only called for helpers with the `hasScheduledEffect` capability\n  enabled. This hook is also not called in SSR currently, though this could be\n  added as a capability in the future. It has the following timing semantics:\n\n  **Always**\n  - called after the helper was first created, if the helper has not been\n    destroyed since creation\n  - called after autotracked state has changed, if the helper has not been\n    destroyed during render\n\n  **Never**\n  - called if the `hasScheduledEffect` capability is disabled\n  - called in SSR\n\n  #### `getDestroyable`\n\n  `getDestroyable` is an optional hook that users can use to register a\n  destroyable object for the helper. This destroyable will be registered to the\n  containing block or template parent, and will be destroyed when it is destroyed.\n  See the [Destroyables RFC](https://github.com/emberjs/rfcs/blob/master/text/0580-destroyables.md)\n  for more details.\n\n  `getDestroyable` is only called if the `hasDestroyable` capability is enabled.\n\n  This hook has the following timing semantics:\n\n  **Always**\n  - called immediately after the `createHelper` hook is called\n\n  **Never**\n  - called if the `hasDestroyable` capability is disabled\n\n  @method setHelperManager\n  @for @ember/helper\n  @static\n  @param {Function} factory A factory function which receives an optional owner, and returns a helper manager\n  @param {object} definition The definition to associate the manager factory with\n  @return {object} The definition passed into setHelperManager\n  @public\n*/\n\n/**\n  The `invokeHelper` function can be used to create a helper instance in\n  JavaScript.\n\n  ```js\n  // app/components/data-loader.js\n  import Component from '@glimmer/component';\n  import Helper from '@ember/component/helper';\n  import { invokeHelper } from '@ember/helper';\n\n  class PlusOne extends Helper {\n    compute([num]) {\n      return number + 1;\n    }\n  }\n\n  export default class PlusOneComponent extends Component {\n    plusOne = invokeHelper(this, PlusOne, () => {\n      return {\n        positional: [this.args.number],\n      };\n    });\n  }\n  ```\n  ```hbs\n  {{this.plusOne.value}}\n  ```\n\n  It receives three arguments:\n\n  * `context`: The parent context of the helper. When the parent is torn down and\n    removed, the helper will be as well.\n  * `definition`: The definition of the helper.\n  * `computeArgs`: An optional function that produces the arguments to the helper.\n    The function receives the parent context as an argument, and must return an\n    object with a `positional` property that is an array and/or a `named`\n    property that is an object.\n\n  And it returns a Cache instance that contains the most recent value of the\n  helper. You can access the helper using `getValue()` like any other cache. The\n  cache is also destroyable, and using the `destroy()` function on it will cause\n  the helper to be torn down.\n\n  Note that using `getValue()` on helpers that have scheduled effects will not\n  trigger the effect early. Effects will continue to run at their scheduled time.\n\n  @method invokeHelper\n  @for @ember/helper\n  @static\n  @param {object} context The parent context of the helper\n  @param {object} definition The helper definition\n  @param {Function} computeArgs An optional function that produces args\n  @returns\n  @public\n*/\nexport { setHelperManager, helperCapabilities as capabilities } from '@glimmer/manager';\nexport { invokeHelper, hash, array, concat, get, fn } from '@glimmer/runtime';","/* eslint no-console:off */\n\n/* global console */\nimport { ENV } from '@ember/-internals/environment';\n\n/**\n@module @ember/instrumentation\n@private\n*/\n\n/**\n  The purpose of the Ember Instrumentation module is\n  to provide efficient, general-purpose instrumentation\n  for Ember.\n\n  Subscribe to a listener by using `subscribe`:\n\n  ```javascript\n  import { subscribe } from '@ember/instrumentation';\n\n  subscribe(\"render\", {\n    before(name, timestamp, payload) {\n\n    },\n\n    after(name, timestamp, payload) {\n\n    }\n  });\n  ```\n\n  If you return a value from the `before` callback, that same\n  value will be passed as a fourth parameter to the `after`\n  callback.\n\n  Instrument a block of code by using `instrument`:\n\n  ```javascript\n  import { instrument } from '@ember/instrumentation';\n\n  instrument(\"render.handlebars\", payload, function() {\n    // rendering logic\n  }, binding);\n  ```\n\n  Event names passed to `instrument` are namespaced\n  by periods, from more general to more specific. Subscribers\n  can listen for events by whatever level of granularity they\n  are interested in.\n\n  In the above example, the event is `render.handlebars`,\n  and the subscriber listened for all events beginning with\n  `render`. It would receive callbacks for events named\n  `render`, `render.handlebars`, `render.container`, or\n  even `render.handlebars.layout`.\n\n  @class Instrumentation\n  @static\n  @private\n*/\nexport let subscribers = [];\nlet cache = {};\n\nfunction populateListeners(name) {\n  let listeners = [];\n  let subscriber;\n\n  for (let i = 0; i < subscribers.length; i++) {\n    subscriber = subscribers[i];\n\n    if (subscriber.regex.test(name)) {\n      listeners.push(subscriber.object);\n    }\n  }\n\n  cache[name] = listeners;\n  return listeners;\n}\n\nconst time = (() => {\n  let perf = 'undefined' !== typeof window ? window.performance || {} : {};\n  let fn = perf.now || perf.mozNow || perf.webkitNow || perf.msNow || perf.oNow;\n  return fn ? fn.bind(perf) : Date.now;\n})();\n\nfunction isCallback(value) {\n  return typeof value === 'function';\n}\n\nexport function instrument(name, p1, p2, p3) {\n  let _payload;\n\n  let callback;\n  let binding;\n\n  if (arguments.length <= 3 && isCallback(p1)) {\n    callback = p1;\n    binding = p2;\n  } else {\n    _payload = p1;\n    callback = p2;\n    binding = p3;\n  } // fast path\n\n\n  if (subscribers.length === 0) {\n    return callback.call(binding);\n  } // avoid allocating the payload in fast path\n\n\n  let payload = _payload || {};\n\n  let finalizer = _instrumentStart(name, () => payload);\n\n  if (finalizer === NOOP) {\n    return callback.call(binding);\n  } else {\n    return withFinalizer(callback, finalizer, payload, binding);\n  }\n}\nlet flaggedInstrument;\n\nif (false\n/* EMBER_IMPROVED_INSTRUMENTATION */\n) {\n  flaggedInstrument = instrument;\n} else {\n  flaggedInstrument = function instrument(_name, _payload, callback) {\n    return callback();\n  };\n}\n\nexport { flaggedInstrument };\n\nfunction withFinalizer(callback, finalizer, payload, binding) {\n  try {\n    return callback.call(binding);\n  } catch (e) {\n    payload.exception = e;\n    throw e;\n  } finally {\n    finalizer();\n  }\n}\n\nfunction NOOP() {}\n\nexport function _instrumentStart(name, payloadFunc, payloadArg) {\n  if (subscribers.length === 0) {\n    return NOOP;\n  }\n\n  let listeners = cache[name];\n\n  if (!listeners) {\n    listeners = populateListeners(name);\n  }\n\n  if (listeners.length === 0) {\n    return NOOP;\n  }\n\n  let payload = payloadFunc(payloadArg);\n  let STRUCTURED_PROFILE = ENV.STRUCTURED_PROFILE;\n  let timeName;\n\n  if (STRUCTURED_PROFILE) {\n    timeName = `${name}: ${payload.object}`;\n    console.time(timeName);\n  }\n\n  let beforeValues = [];\n  let timestamp = time();\n\n  for (let i = 0; i < listeners.length; i++) {\n    let listener = listeners[i];\n    beforeValues.push(listener.before(name, timestamp, payload));\n  }\n\n  return function _instrumentEnd() {\n    let timestamp = time();\n\n    for (let i = 0; i < listeners.length; i++) {\n      let listener = listeners[i];\n\n      if (typeof listener.after === 'function') {\n        listener.after(name, timestamp, payload, beforeValues[i]);\n      }\n    }\n\n    if (STRUCTURED_PROFILE) {\n      console.timeEnd(timeName);\n    }\n  };\n}\n/**\n  Subscribes to a particular event or instrumented block of code.\n\n  @method subscribe\n  @for @ember/instrumentation\n  @static\n\n  @param {String} [pattern] Namespaced event name.\n  @param {Object} [object] Before and After hooks.\n\n  @return {Subscriber}\n  @private\n*/\n\nexport function subscribe(pattern, object) {\n  let paths = pattern.split('.');\n  let path;\n  let regexes = [];\n\n  for (let i = 0; i < paths.length; i++) {\n    path = paths[i];\n\n    if (path === '*') {\n      regexes.push('[^\\\\.]*');\n    } else {\n      regexes.push(path);\n    }\n  }\n\n  let regex = regexes.join('\\\\.');\n  regex = `${regex}(\\\\..*)?`;\n  let subscriber = {\n    pattern,\n    regex: new RegExp(`^${regex}$`),\n    object\n  };\n  subscribers.push(subscriber);\n  cache = {};\n  return subscriber;\n}\n/**\n  Unsubscribes from a particular event or instrumented block of code.\n\n  @method unsubscribe\n  @for @ember/instrumentation\n  @static\n\n  @param {Object} [subscriber]\n  @private\n*/\n\nexport function unsubscribe(subscriber) {\n  let index = 0;\n\n  for (let i = 0; i < subscribers.length; i++) {\n    if (subscribers[i] === subscriber) {\n      index = i;\n    }\n  }\n\n  subscribers.splice(index, 1);\n  cache = {};\n}\n/**\n  Resets `Instrumentation` by flushing list of subscribers.\n\n  @method reset\n  @for @ember/instrumentation\n  @static\n  @private\n*/\n\nexport function reset() {\n  subscribers.length = 0;\n  cache = {};\n}","export { setModifierManager } from '@glimmer/manager';\nexport { modifierCapabilities as capabilities } from '@ember/-internals/glimmer';\nexport { on } from '@glimmer/runtime';","import { descriptorForProperty, isElementDescriptor, setClassicDecorator } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nimport { consumeTag, tagFor, track, updateTag } from '@glimmer/validator';\n\nlet wrapGetterSetter = function (target, key, desc) {\n  let {\n    get: originalGet\n  } = desc;\n  assert('You attempted to use @dependentKeyCompat on a property that already has been decorated with either @computed or @tracked. @dependentKeyCompat is only necessary for native getters that are not decorated with @computed.', descriptorForProperty(target, key) === undefined);\n\n  if (originalGet !== undefined) {\n    desc.get = function () {\n      let propertyTag = tagFor(this, key);\n      let ret;\n      let tag = track(() => {\n        ret = originalGet.call(this);\n      });\n      updateTag(propertyTag, tag);\n      consumeTag(tag);\n      return ret;\n    };\n  }\n\n  return desc;\n};\n\nexport function dependentKeyCompat(target, key, desc) {\n  if (!isElementDescriptor([target, key, desc])) {\n    desc = target;\n\n    let decorator = function (target, key, _desc, _meta, isClassicDecorator) {\n      assert('The @dependentKeyCompat decorator may only be passed a method when used in classic classes. You should decorate getters/setters directly in native classes', isClassicDecorator);\n      assert('The dependentKeyCompat() decorator must be passed a getter or setter when used in classic classes', desc !== null && typeof desc === 'object' && (typeof desc.get === 'function' || typeof desc.set === 'function'));\n      return wrapGetterSetter(target, key, desc);\n    };\n\n    setClassicDecorator(decorator);\n    return decorator;\n  }\n\n  assert('The @dependentKeyCompat decorator must be applied to getters/setters when used in native classes', desc !== null && typeof desc.get === 'function' || typeof desc.set === 'function');\n  return wrapGetterSetter(target, key, desc);\n}\nsetClassicDecorator(dependentKeyCompat);","export { ComputedProperty as default, expandProperties, alias } from '@ember/-internals/metal';\nexport { empty, notEmpty, none, not, bool, match, equal, gt, gte, lt, lte, oneWay, oneWay as reads, readOnly, deprecatingAlias, and, or } from './lib/computed/computed_macros';\nexport { sum, min, max, map, sort, setDiff, mapBy, filter, filterBy, uniq, uniqBy, union, intersect, collect } from './lib/computed/reduce_computed_macros';","export { CoreObject as default } from '@ember/-internals/runtime';","export { Evented as default } from '@ember/-internals/runtime';\nexport { on } from '@ember/-internals/metal';","export { addListener, removeListener, sendEvent } from '@ember/-internals/metal';","import { DEBUG } from '@glimmer/env';\nimport { assert, deprecate } from '@ember/debug';\nimport { assign } from '@ember/polyfills';\nimport { isElementDescriptor, setClassicDecorator } from '@ember/-internals/metal';\nimport { onComputedDotAccess } from '@ember/-internals/overrides';\nexport { Object as default } from '@ember/-internals/runtime';\nexport { notifyPropertyChange, defineProperty, get, set, getProperties, setProperties, getWithDefault, observer, computed, trySet, aliasMethod } from '@ember/-internals/metal';\nimport { computed } from '@ember/-internals/metal';\nimport { alias, and, bool, collect, deprecatingAlias, empty, equal, filterBy, filter, gte, gt, intersect, lte, lt, mapBy, map, match, max, min, none, notEmpty, not, oneWay, or, readOnly, setDiff, sort, sum, union, uniqBy, uniq } from '@ember/object/computed'; // eslint-disable-next-line no-undef\n\nif (DEBUG) {\n  let defaultHandler = (dotKey, importKey, module) => {\n    return `Using \\`${dotKey}\\` has been deprecated. Instead, import the value directly from ${module}:\\n\\n  import { ${importKey} } from '${module}';`;\n  };\n\n  let handler = onComputedDotAccess || defaultHandler;\n\n  let defineDeprecatedComputedFunc = (key, func) => {\n    Object.defineProperty(computed, key, {\n      get() {\n        let message = handler(`computed.${key}`, key, '@ember/object/computed');\n        deprecate(message, message === null, {\n          id: 'deprecated-run-loop-and-computed-dot-access',\n          until: '4.0.0',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          }\n        });\n        return func;\n      }\n\n    });\n  };\n\n  defineDeprecatedComputedFunc('alias', alias);\n  defineDeprecatedComputedFunc('and', and);\n  defineDeprecatedComputedFunc('bool', bool);\n  defineDeprecatedComputedFunc('collect', collect);\n  defineDeprecatedComputedFunc('deprecatingAlias', deprecatingAlias);\n  defineDeprecatedComputedFunc('empty', empty);\n  defineDeprecatedComputedFunc('equal', equal);\n  defineDeprecatedComputedFunc('filterBy', filterBy);\n  defineDeprecatedComputedFunc('filter', filter);\n  defineDeprecatedComputedFunc('gte', gte);\n  defineDeprecatedComputedFunc('gt', gt);\n  defineDeprecatedComputedFunc('intersect', intersect);\n  defineDeprecatedComputedFunc('lte', lte);\n  defineDeprecatedComputedFunc('lt', lt);\n  defineDeprecatedComputedFunc('mapBy', mapBy);\n  defineDeprecatedComputedFunc('map', map);\n  defineDeprecatedComputedFunc('match', match);\n  defineDeprecatedComputedFunc('max', max);\n  defineDeprecatedComputedFunc('min', min);\n  defineDeprecatedComputedFunc('none', none);\n  defineDeprecatedComputedFunc('notEmpty', notEmpty);\n  defineDeprecatedComputedFunc('not', not);\n  defineDeprecatedComputedFunc('oneWay', oneWay);\n  defineDeprecatedComputedFunc('reads', oneWay);\n  defineDeprecatedComputedFunc('or', or);\n  defineDeprecatedComputedFunc('readOnly', readOnly);\n  defineDeprecatedComputedFunc('setDiff', setDiff);\n  defineDeprecatedComputedFunc('sort', sort);\n  defineDeprecatedComputedFunc('sum', sum);\n  defineDeprecatedComputedFunc('union', union);\n  defineDeprecatedComputedFunc('uniqBy', uniqBy);\n  defineDeprecatedComputedFunc('uniq', uniq);\n} else {\n  computed.alias = alias;\n  computed.and = and;\n  computed.bool = bool;\n  computed.collect = collect;\n  computed.deprecatingAlias = deprecatingAlias;\n  computed.empty = empty;\n  computed.equal = equal;\n  computed.filterBy = filterBy;\n  computed.filter = filter;\n  computed.gte = gte;\n  computed.gt = gt;\n  computed.intersect = intersect;\n  computed.lte = lte;\n  computed.lt = lt;\n  computed.mapBy = mapBy;\n  computed.map = map;\n  computed.match = match;\n  computed.max = max;\n  computed.min = min;\n  computed.none = none;\n  computed.notEmpty = notEmpty;\n  computed.not = not;\n  computed.oneWay = oneWay;\n  computed.reads = oneWay;\n  computed.or = or;\n  computed.readOnly = readOnly;\n  computed.setDiff = setDiff;\n  computed.sort = sort;\n  computed.sum = sum;\n  computed.union = union;\n  computed.uniqBy = uniqBy;\n  computed.uniq = uniq;\n}\n/**\n  Decorator that turns the target function into an Action which can be accessed\n  directly by reference.\n\n  ```js\n  import Component from '@ember/component';\n  import { action, set } from '@ember/object';\n\n  export default class Tooltip extends Component {\n    @action\n    toggleShowing() {\n      set(this, 'isShowing', !this.isShowing);\n    }\n  }\n  ```\n  ```hbs\n  <!-- template.hbs -->\n  <button {{action this.toggleShowing}}>Show tooltip</button>\n\n  {{#if isShowing}}\n    <div class=\"tooltip\">\n      I'm a tooltip!\n    </div>\n  {{/if}}\n  ```\n\n  Decorated actions also interop with the string style template actions:\n\n  ```hbs\n  <!-- template.hbs -->\n  <button {{action \"toggleShowing\"}}>Show tooltip</button>\n\n  {{#if isShowing}}\n    <div class=\"tooltip\">\n      I'm a tooltip!\n    </div>\n  {{/if}}\n  ```\n\n  It also binds the function directly to the instance, so it can be used in any\n  context and will correctly refer to the class it came from:\n\n  ```hbs\n  <!-- template.hbs -->\n  <button\n    {{did-insert this.toggleShowing}}\n    {{on \"click\" this.toggleShowing}}\n  >\n    Show tooltip\n  </button>\n\n  {{#if isShowing}}\n    <div class=\"tooltip\">\n      I'm a tooltip!\n    </div>\n  {{/if}}\n  ```\n\n  This can also be used in JavaScript code directly:\n\n  ```js\n  import Component from '@ember/component';\n  import { action, set } from '@ember/object';\n\n  export default class Tooltip extends Component {\n    constructor() {\n      super(...arguments);\n\n      // this.toggleShowing is still bound correctly when added to\n      // the event listener\n      document.addEventListener('click', this.toggleShowing);\n    }\n\n    @action\n    toggleShowing() {\n      set(this, 'isShowing', !this.isShowing);\n    }\n  }\n  ```\n\n  This is considered best practice, since it means that methods will be bound\n  correctly no matter where they are used. By contrast, the `{{action}}` helper\n  and modifier can also be used to bind context, but it will be required for\n  every usage of the method:\n\n  ```hbs\n  <!-- template.hbs -->\n  <button\n    {{did-insert (action this.toggleShowing)}}\n    {{on \"click\" (action this.toggleShowing)}}\n  >\n    Show tooltip\n  </button>\n\n  {{#if isShowing}}\n    <div class=\"tooltip\">\n      I'm a tooltip!\n    </div>\n  {{/if}}\n  ```\n\n  They also do not have equivalents in JavaScript directly, so they cannot be\n  used for other situations where binding would be useful.\n\n  @public\n  @method action\n  @for @ember/object\n  @static\n  @param {Function|undefined} callback The function to turn into an action,\n                                       when used in classic classes\n  @return {PropertyDecorator} property decorator instance\n*/\n\n\nconst BINDINGS_MAP = new WeakMap();\n\nfunction setupAction(target, key, actionFn) {\n  if (target.constructor !== undefined && typeof target.constructor.proto === 'function') {\n    target.constructor.proto();\n  }\n\n  if (!Object.prototype.hasOwnProperty.call(target, 'actions')) {\n    let parentActions = target.actions; // we need to assign because of the way mixins copy actions down when inheriting\n\n    target.actions = parentActions ? assign({}, parentActions) : {};\n  }\n\n  target.actions[key] = actionFn;\n  return {\n    get() {\n      let bindings = BINDINGS_MAP.get(this);\n\n      if (bindings === undefined) {\n        bindings = new Map();\n        BINDINGS_MAP.set(this, bindings);\n      }\n\n      let fn = bindings.get(actionFn);\n\n      if (fn === undefined) {\n        fn = actionFn.bind(this);\n        bindings.set(actionFn, fn);\n      }\n\n      return fn;\n    }\n\n  };\n}\n\nexport function action(target, key, desc) {\n  let actionFn;\n\n  if (!isElementDescriptor([target, key, desc])) {\n    actionFn = target;\n\n    let decorator = function (target, key, desc, meta, isClassicDecorator) {\n      assert('The @action decorator may only be passed a method when used in classic classes. You should decorate methods directly in native classes', isClassicDecorator);\n      assert('The action() decorator must be passed a method when used in classic classes', typeof actionFn === 'function');\n      return setupAction(target, key, actionFn);\n    };\n\n    setClassicDecorator(decorator);\n    return decorator;\n  }\n\n  actionFn = desc.value;\n  assert('The @action decorator must be applied to methods when used in native classes', typeof actionFn === 'function');\n  return setupAction(target, key, actionFn);\n}\nsetClassicDecorator(action);","export { getCachedValueFor as cacheFor } from '@ember/-internals/metal';\nexport { copy } from '@ember/-internals/runtime';\nexport { guidFor } from '@ember/-internals/utils';","import { get, set, computed, isElementDescriptor, isEmpty, isNone, alias, expandProperties } from '@ember/-internals/metal';\nimport { assert, deprecate } from '@ember/debug';\n/**\n@module @ember/object\n*/\n\nfunction expandPropertiesToArray(predicateName, properties) {\n  let expandedProperties = [];\n\n  function extractProperty(entry) {\n    expandedProperties.push(entry);\n  }\n\n  for (let i = 0; i < properties.length; i++) {\n    let property = properties[i];\n    assert(`Dependent keys passed to computed.${predicateName}() can't have spaces.`, property.indexOf(' ') < 0);\n    expandProperties(property, extractProperty);\n  }\n\n  return expandedProperties;\n}\n\nfunction generateComputedWithPredicate(name, predicate) {\n  return (...properties) => {\n    assert(`You attempted to use @${name} as a decorator directly, but it requires at least one dependent key parameter`, !isElementDescriptor(properties));\n    let dependentKeys = expandPropertiesToArray(name, properties);\n    let computedFunc = computed(...dependentKeys, function () {\n      let lastIdx = dependentKeys.length - 1;\n\n      for (let i = 0; i < lastIdx; i++) {\n        let value = get(this, dependentKeys[i]);\n\n        if (!predicate(value)) {\n          return value;\n        }\n      }\n\n      return get(this, dependentKeys[lastIdx]);\n    });\n    return computedFunc;\n  };\n}\n/**\n  A computed property macro that returns true if the value of the dependent\n  property is null, an empty string, empty array, or empty function.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { empty } from '@ember/object/computed';\n\n  class ToDoList {\n    constructor(todos) {\n      set(this, 'todos', todos);\n    }\n\n    @empty('todos') isDone;\n  }\n\n  let todoList = new ToDoList(\n    ['Unit Test', 'Documentation', 'Release']\n  );\n\n  todoList.isDone; // false\n  set(todoList, 'todos', []);\n  todoList.isDone; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { empty } from '@ember/object/computed';\n\n  let ToDoList = EmberObject.extend({\n    isDone: empty('todos')\n  });\n\n  let todoList = ToDoList.create({\n    todos: ['Unit Test', 'Documentation', 'Release']\n  });\n\n  todoList.isDone; // false\n  set(todoList, 'todos', []);\n  todoList.isDone; // true\n  ```\n\n  @since 1.6.0\n  @method empty\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which returns true if the value\n  of the dependent property is null, an empty string, empty array, or empty\n  function and false if the underlying value is not empty.\n\n  @public\n*/\n\n\nexport function empty(dependentKey) {\n  assert('You attempted to use @empty as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(`${dependentKey}.length`, function () {\n    return isEmpty(get(this, dependentKey));\n  });\n}\n/**\n  A computed property that returns true if the value of the dependent property\n  is NOT null, an empty string, empty array, or empty function.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { notEmpty } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(backpack) {\n      set(this, 'backpack', backpack);\n    }\n\n    @notEmpty('backpack') hasStuff\n  }\n\n  let hamster = new Hamster(\n    ['Food', 'Sleeping Bag', 'Tent']\n  );\n\n  hamster.hasStuff; // true\n  set(hamster, 'backpack', []);\n  hamster.hasStuff; // false\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { notEmpty } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    hasStuff: notEmpty('backpack')\n  });\n\n  let hamster = Hamster.create({\n    backpack: ['Food', 'Sleeping Bag', 'Tent']\n  });\n\n  hamster.hasStuff; // true\n  set(hamster, 'backpack', []);\n  hamster.hasStuff; // false\n  ```\n\n  @method notEmpty\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which returns true if original\n  value for property is not empty.\n  @public\n*/\n\nexport function notEmpty(dependentKey) {\n  assert('You attempted to use @notEmpty as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(`${dependentKey}.length`, function () {\n    return !isEmpty(get(this, dependentKey));\n  });\n}\n/**\n  A computed property that returns true if the value of the dependent property\n  is null or undefined. This avoids errors from JSLint complaining about use of\n  ==, which can be technically confusing.\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { none } from '@ember/object/computed';\n\n  class Hamster {\n    @none('food') isHungry;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.isHungry; // true\n\n  set(hamster, 'food', 'Banana');\n  hamster.isHungry; // false\n\n  set(hamster, 'food', null);\n  hamster.isHungry; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { none } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    isHungry: none('food')\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.isHungry; // true\n\n  set(hamster, 'food', 'Banana');\n  hamster.isHungry; // false\n\n  set(hamster, 'food', null);\n  hamster.isHungry; // true\n  ```\n\n  @method none\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which returns true if original\n  value for property is null or undefined.\n  @public\n*/\n\nexport function none(dependentKey) {\n  assert('You attempted to use @none as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return isNone(get(this, dependentKey));\n  });\n}\n/**\n  A computed property that returns the inverse boolean value of the original\n  value for the dependent property.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { not } from '@ember/object/computed';\n\n  class User {\n    loggedIn = false;\n\n    @not('loggedIn') isAnonymous;\n  }\n\n  let user = new User();\n\n  user.isAnonymous; // true\n  set(user, 'loggedIn', true);\n  user.isAnonymous; // false\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { not } from '@ember/object/computed';\n\n  let User = EmberObject.extend({\n    loggedIn: false,\n\n    isAnonymous: not('loggedIn')\n  });\n\n  let user = User.create();\n\n  user.isAnonymous; // true\n  set(user, 'loggedIn', true);\n  user.isAnonymous; // false\n  ```\n\n  @method not\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which returns inverse of the\n  original value for property\n  @public\n*/\n\nexport function not(dependentKey) {\n  assert('You attempted to use @not as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return !get(this, dependentKey);\n  });\n}\n/**\n  A computed property that converts the provided dependent property into a\n  boolean value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { bool } from '@ember/object/computed';\n\n\n  class Hamster {\n    @bool('numBananas') hasBananas\n  }\n\n  let hamster = new Hamster();\n\n  hamster.hasBananas; // false\n\n  set(hamster, 'numBananas', 0);\n  hamster.hasBananas; // false\n\n  set(hamster, 'numBananas', 1);\n  hamster.hasBananas; // true\n\n  set(hamster, 'numBananas', null);\n  hamster.hasBananas; // false\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { bool } from '@ember/object/computed';\n\n\n  let Hamster = EmberObject.extend({\n    hasBananas: bool('numBananas')\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.hasBananas; // false\n\n  set(hamster, 'numBananas', 0);\n  hamster.hasBananas; // false\n\n  set(hamster, 'numBananas', 1);\n  hamster.hasBananas; // true\n\n  set(hamster, 'numBananas', null);\n  hamster.hasBananas; // false\n  ```\n\n  @method bool\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which converts to boolean the\n  original value for property\n  @public\n*/\n\nexport function bool(dependentKey) {\n  assert('You attempted to use @bool as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return Boolean(get(this, dependentKey));\n  });\n}\n/**\n  A computed property which matches the original value for the dependent\n  property against a given RegExp, returning `true` if the value matches the\n  RegExp and `false` if it does not.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { match } from '@ember/object/computed';\n\n  class User {\n    @match('email', /^.+@.+\\..+$/) hasValidEmail;\n  }\n\n  let user = new User();\n\n  user.hasValidEmail; // false\n\n  set(user, 'email', '');\n  user.hasValidEmail; // false\n\n  set(user, 'email', 'ember_hamster@example.com');\n  user.hasValidEmail; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { match } from '@ember/object/computed';\n\n  let User = EmberObject.extend({\n    hasValidEmail: match('email', /^.+@.+\\..+$/)\n  });\n\n  let user = User.create();\n\n  user.hasValidEmail; // false\n\n  set(user, 'email', '');\n  user.hasValidEmail; // false\n\n  set(user, 'email', 'ember_hamster@example.com');\n  user.hasValidEmail; // true\n  ```\n\n  @method match\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {RegExp} regexp\n  @return {ComputedProperty} computed property which match the original value\n  for property against a given RegExp\n  @public\n*/\n\nexport function match(dependentKey, regexp) {\n  assert('You attempted to use @match as a decorator directly, but it requires `dependentKey` and `regexp` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    let value = get(this, dependentKey);\n    return regexp.test(value);\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  equal to the given value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { equal } from '@ember/object/computed';\n\n  class Hamster {\n    @equal('percentCarrotsEaten', 100) satisfied;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.satisfied; // false\n\n  set(hamster, 'percentCarrotsEaten', 100);\n  hamster.satisfied; // true\n\n  set(hamster, 'percentCarrotsEaten', 50);\n  hamster.satisfied; // false\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { equal } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    satisfied: equal('percentCarrotsEaten', 100)\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.satisfied; // false\n\n  set(hamster, 'percentCarrotsEaten', 100);\n  hamster.satisfied; // true\n\n  set(hamster, 'percentCarrotsEaten', 50);\n  hamster.satisfied; // false\n  ```\n\n  @method equal\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {String|Number|Object} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is equal to the given value.\n  @public\n*/\n\nexport function equal(dependentKey, value) {\n  assert('You attempted to use @equal as a decorator directly, but it requires `dependentKey` and `value` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) === value;\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  greater than the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { gt } from '@ember/object/computed';\n\n  class Hamster {\n    @gt('numBananas', 10) hasTooManyBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 11);\n  hamster.hasTooManyBananas; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { gt } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    hasTooManyBananas: gt('numBananas', 10)\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 11);\n  hamster.hasTooManyBananas; // true\n  ```\n\n  @method gt\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Number} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is greater than given value.\n  @public\n*/\n\nexport function gt(dependentKey, value) {\n  assert('You attempted to use @gt as a decorator directly, but it requires `dependentKey` and `value` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) > value;\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  greater than or equal to the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { gte } from '@ember/object/computed';\n\n  class Hamster {\n    @gte('numBananas', 10) hasTooManyBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 10);\n  hamster.hasTooManyBananas; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { gte } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    hasTooManyBananas: gte('numBananas', 10)\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 10);\n  hamster.hasTooManyBananas; // true\n  ```\n\n  @method gte\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Number} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is greater or equal then given value.\n  @public\n*/\n\nexport function gte(dependentKey, value) {\n  assert('You attempted to use @gte as a decorator directly, but it requires `dependentKey` and `value` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) >= value;\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  less than the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { lt } from '@ember/object/computed';\n\n  class Hamster {\n    @lt('numBananas', 3) needsMoreBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.needsMoreBananas; // true\n\n  set(hamster, 'numBananas', 3);\n  hamster.needsMoreBananas; // false\n\n  set(hamster, 'numBananas', 2);\n  hamster.needsMoreBananas; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { lt } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    needsMoreBananas: lt('numBananas', 3)\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.needsMoreBananas; // true\n\n  set(hamster, 'numBananas', 3);\n  hamster.needsMoreBananas; // false\n\n  set(hamster, 'numBananas', 2);\n  hamster.needsMoreBananas; // true\n  ```\n\n  @method lt\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Number} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is less then given value.\n  @public\n*/\n\nexport function lt(dependentKey, value) {\n  assert('You attempted to use @lt as a decorator directly, but it requires `dependentKey` and `value` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) < value;\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  less than or equal to the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { lte } from '@ember/object/computed';\n\n  class Hamster {\n    @lte('numBananas', 3) needsMoreBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.needsMoreBananas; // true\n\n  set(hamster, 'numBananas', 5);\n  hamster.needsMoreBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.needsMoreBananas; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { lte } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    needsMoreBananas: lte('numBananas', 3)\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.needsMoreBananas; // true\n\n  set(hamster, 'numBananas', 5);\n  hamster.needsMoreBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.needsMoreBananas; // true\n  ```\n\n  @method lte\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Number} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is less or equal than given value.\n  @public\n*/\n\nexport function lte(dependentKey, value) {\n  assert('You attempted to use @lte as a decorator directly, but it requires `dependentKey` and `value` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) <= value;\n  });\n}\n/**\n  A computed property that performs a logical `and` on the original values for\n  the provided dependent properties.\n\n  You may pass in more than two properties and even use property brace\n  expansion.  The computed property will return the first falsy value or last\n  truthy value just like JavaScript's `&&` operator.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { and } from '@ember/object/computed';\n\n  class Hamster {\n    @and('hasTent', 'hasBackpack') readyForCamp;\n    @and('hasWalkingStick', 'hasBackpack') readyForHike;\n  }\n\n  let tomster = new Hamster();\n\n  tomster.readyForCamp; // false\n\n  set(tomster, 'hasTent', true);\n  tomster.readyForCamp; // false\n\n  set(tomster, 'hasBackpack', true);\n  tomster.readyForCamp; // true\n\n  set(tomster, 'hasBackpack', 'Yes');\n  tomster.readyForCamp; // 'Yes'\n\n  set(tomster, 'hasWalkingStick', null);\n  tomster.readyForHike; // null\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { and } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    readyForCamp: and('hasTent', 'hasBackpack'),\n    readyForHike: and('hasWalkingStick', 'hasBackpack')\n  });\n\n  let tomster = Hamster.create();\n\n  tomster.readyForCamp; // false\n\n  set(tomster, 'hasTent', true);\n  tomster.readyForCamp; // false\n\n  set(tomster, 'hasBackpack', true);\n  tomster.readyForCamp; // true\n\n  set(tomster, 'hasBackpack', 'Yes');\n  tomster.readyForCamp; // 'Yes'\n\n  set(tomster, 'hasWalkingStick', null);\n  tomster.readyForHike; // null\n  ```\n\n  @method and\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey*\n  @return {ComputedProperty} computed property which performs a logical `and` on\n  the values of all the original values for properties.\n  @public\n*/\n\nexport const and = generateComputedWithPredicate('and', value => value);\n/**\n  A computed property which performs a logical `or` on the original values for\n  the provided dependent properties.\n\n  You may pass in more than two properties and even use property brace\n  expansion.  The computed property will return the first truthy value or last\n  falsy value just like JavaScript's `||` operator.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { or } from '@ember/object/computed';\n\n  class Hamster {\n    @or('hasJacket', 'hasUmbrella') readyForRain;\n    @or('hasSunscreen', 'hasUmbrella') readyForBeach;\n  }\n\n  let tomster = new Hamster();\n\n  tomster.readyForRain; // undefined\n\n  set(tomster, 'hasUmbrella', true);\n  tomster.readyForRain; // true\n\n  set(tomster, 'hasJacket', 'Yes');\n  tomster.readyForRain; // 'Yes'\n\n  set(tomster, 'hasSunscreen', 'Check');\n  tomster.readyForBeach; // 'Check'\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { or } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    readyForRain: or('hasJacket', 'hasUmbrella'),\n    readyForBeach: or('hasSunscreen', 'hasUmbrella')\n  });\n\n  let tomster = Hamster.create();\n\n  tomster.readyForRain; // undefined\n\n  set(tomster, 'hasUmbrella', true);\n  tomster.readyForRain; // true\n\n  set(tomster, 'hasJacket', 'Yes');\n  tomster.readyForRain; // 'Yes'\n\n  set(tomster, 'hasSunscreen', 'Check');\n  tomster.readyForBeach; // 'Check'\n  ```\n\n  @method or\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey*\n  @return {ComputedProperty} computed property which performs a logical `or` on\n  the values of all the original values for properties.\n  @public\n*/\n\nexport const or = generateComputedWithPredicate('or', value => !value);\n/**\n  Creates a new property that is an alias for another property on an object.\n  Calls to `get` or `set` this property behave as though they were called on the\n  original property.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { alias } from '@ember/object/computed';\n\n  class Person {\n    name = 'Alex Matchneer';\n\n    @alias('name') nomen;\n  }\n\n  let alex = new Person();\n\n  alex.nomen; // 'Alex Matchneer'\n  alex.name;  // 'Alex Matchneer'\n\n  set(alex, 'nomen', '@machty');\n  alex.name;  // '@machty'\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { alias } from '@ember/object/computed';\n\n  let Person = EmberObject.extend({\n    name: 'Alex Matchneer',\n\n    nomen: alias('name')\n  });\n\n  let alex = Person.create();\n\n  alex.nomen; // 'Alex Matchneer'\n  alex.name;  // 'Alex Matchneer'\n\n  set(alex, 'nomen', '@machty');\n  alex.name;  // '@machty'\n  ```\n\n  @method alias\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which creates an alias to the\n  original value for property.\n  @public\n*/\n\n/**\n  Where `computed.alias` aliases `get` and `set`, and allows for bidirectional\n  data flow, `computed.oneWay` only provides an aliased `get`. The `set` will\n  not mutate the upstream property, rather causes the current property to become\n  the value set. This causes the downstream property to permanently diverge from\n  the upstream property.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { oneWay }from '@ember/object/computed';\n\n  class User {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @oneWay('firstName') nickName;\n  }\n\n  let teddy = new User('Teddy', 'Zeenny');\n\n  teddy.nickName; // 'Teddy'\n\n  set(teddy, 'nickName', 'TeddyBear');\n  teddy.firstName; // 'Teddy'\n  teddy.nickName; // 'TeddyBear'\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { oneWay } from '@ember/object/computed';\n\n  let User = EmberObject.extend({\n    firstName: null,\n    lastName: null,\n\n    nickName: oneWay('firstName')\n  });\n\n  let teddy = User.create({\n    firstName: 'Teddy',\n    lastName: 'Zeenny'\n  });\n\n  teddy.nickName; // 'Teddy'\n\n  set(teddy, 'nickName', 'TeddyBear'); // 'TeddyBear'\n  teddy.firstName; // 'Teddy'\n  teddy.nickName; // 'TeddyBear'\n  ```\n\n  @method oneWay\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which creates a one way computed\n  property to the original value for property.\n  @public\n*/\n\nexport function oneWay(dependentKey) {\n  assert('You attempted to use @oneWay as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return alias(dependentKey).oneWay();\n}\n/**\n  This is a more semantically meaningful alias of `computed.oneWay`, whose name\n  is somewhat ambiguous as to which direction the data flows.\n\n  @method reads\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which creates a one way computed\n    property to the original value for property.\n  @public\n */\n\n/**\n  Where `computed.oneWay` provides oneWay bindings, `computed.readOnly` provides\n  a readOnly one way binding. Very often when using `computed.oneWay` one does\n  not also want changes to propagate back up, as they will replace the value.\n\n  This prevents the reverse flow, and also throws an exception when it occurs.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { readOnly } from '@ember/object/computed';\n\n  class User {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @readOnly('firstName') nickName;\n  });\n\n  let teddy = new User('Teddy', 'Zeenny');\n\n  teddy.nickName; // 'Teddy'\n\n  set(teddy, 'nickName', 'TeddyBear'); // throws Exception\n  // throw new EmberError('Cannot Set: nickName on: <User:ember27288>' );`\n\n  teddy.firstName; // 'Teddy'\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { readOnly } from '@ember/object/computed';\n\n  let User = EmberObject.extend({\n    firstName: null,\n    lastName: null,\n\n    nickName: readOnly('firstName')\n  });\n\n  let teddy = User.create({\n    firstName: 'Teddy',\n    lastName:  'Zeenny'\n  });\n\n  teddy.nickName; // 'Teddy'\n\n  set(teddy, 'nickName', 'TeddyBear'); // throws Exception\n  // throw new EmberError('Cannot Set: nickName on: <User:ember27288>' );`\n\n  teddy.firstName; // 'Teddy'\n  ```\n\n  @method readOnly\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which creates a one way computed\n  property to the original value for property.\n  @since 1.5.0\n  @public\n*/\n\nexport function readOnly(dependentKey) {\n  assert('You attempted to use @readOnly as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return alias(dependentKey).readOnly();\n}\n/**\n  Creates a new property that is an alias for another property on an object.\n  Calls to `get` or `set` this property behave as though they were called on the\n  original property, but also print a deprecation warning.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { deprecatingAlias } from '@ember/object/computed';\n\n  class Hamster {\n    @deprecatingAlias('cavendishCount', {\n      id: 'hamster.deprecate-banana',\n      until: '3.0.0'\n    })\n    bananaCount;\n  }\n\n  let hamster = new Hamster();\n\n  set(hamster, 'bananaCount', 5); // Prints a deprecation warning.\n  hamster.cavendishCount; // 5\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { deprecatingAlias } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    bananaCount: deprecatingAlias('cavendishCount', {\n      id: 'hamster.deprecate-banana',\n      until: '3.0.0'\n    })\n  });\n\n  let hamster = Hamster.create();\n\n  set(hamster, 'bananaCount', 5); // Prints a deprecation warning.\n  hamster.cavendishCount; // 5\n  ```\n\n  @method deprecatingAlias\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Object} options Options for `deprecate`.\n  @return {ComputedProperty} computed property which creates an alias with a\n  deprecation to the original value for property.\n  @since 1.7.0\n  @public\n*/\n\nexport function deprecatingAlias(dependentKey, options) {\n  assert('You attempted to use @deprecatingAlias as a decorator directly, but it requires `dependentKey` and `options` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, {\n    get(key) {\n      deprecate(`Usage of \\`${key}\\` is deprecated, use \\`${dependentKey}\\` instead.`, false, options);\n      return get(this, dependentKey);\n    },\n\n    set(key, value) {\n      deprecate(`Usage of \\`${key}\\` is deprecated, use \\`${dependentKey}\\` instead.`, false, options);\n      set(this, dependentKey, value);\n      return value;\n    }\n\n  });\n}","/**\n@module @ember/object\n*/\nimport { DEBUG } from '@glimmer/env';\nimport { assert } from '@ember/debug';\nimport { computed, autoComputed, get, isElementDescriptor } from '@ember/-internals/metal';\nimport { compare, isArray, A as emberA, uniqBy as uniqByArray } from '@ember/-internals/runtime';\n\nfunction reduceMacro(dependentKey, callback, initialValue, name) {\n  assert(`Dependent key passed to \\`computed.${name}\\` shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(dependentKey));\n  return computed(`${dependentKey}.[]`, function () {\n    let arr = get(this, dependentKey);\n\n    if (arr === null || typeof arr !== 'object') {\n      return initialValue;\n    }\n\n    return arr.reduce(callback, initialValue, this);\n  }).readOnly();\n}\n\nfunction arrayMacro(dependentKey, additionalDependentKeys, callback) {\n  // This is a bit ugly\n  let propertyName;\n\n  if (/@each/.test(dependentKey)) {\n    propertyName = dependentKey.replace(/\\.@each.*$/, '');\n  } else {\n    propertyName = dependentKey;\n    dependentKey += '.[]';\n  }\n\n  return computed(dependentKey, ...additionalDependentKeys, function () {\n    let value = get(this, propertyName);\n\n    if (isArray(value)) {\n      return emberA(callback.call(this, value));\n    } else {\n      return emberA();\n    }\n  }).readOnly();\n}\n\nfunction multiArrayMacro(_dependentKeys, callback, name) {\n  assert(`Dependent keys passed to \\`computed.${name}\\` shouldn't contain brace expanding pattern.`, _dependentKeys.every(dependentKey => !/[[\\]{}]/g.test(dependentKey)));\n\n  let dependentKeys = _dependentKeys.map(key => `${key}.[]`);\n\n  return computed(...dependentKeys, function () {\n    return emberA(callback.call(this, _dependentKeys));\n  }).readOnly();\n}\n/**\n  A computed property that returns the sum of the values in the dependent array.\n\n  Example:\n\n  ```javascript\n  import { sum } from '@ember/object/computed';\n\n  class Invoice {\n    lineItems = [1.00, 2.50, 9.99];\n\n    @sum('lineItems') total;\n  }\n\n  let invoice = new Invoice();\n\n  invoice.total; // 13.49\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { sum } from '@ember/object/computed';\n\n  let Invoice = EmberObject.extend({\n    lineItems: [1.00, 2.50, 9.99],\n\n    total: sum('lineItems')\n  })\n\n  let invoice = Invoice.create();\n\n  invoice.total; // 13.49\n  ```\n\n  @method sum\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @return {ComputedProperty} computes the sum of all values in the\n  dependentKey's array\n  @since 1.4.0\n  @public\n*/\n\n\nexport function sum(dependentKey) {\n  assert('You attempted to use @sum as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return reduceMacro(dependentKey, (sum, item) => sum + item, 0, 'sum');\n}\n/**\n  A computed property that calculates the maximum value in the dependent array.\n  This will return `-Infinity` when the dependent array is empty.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { mapBy, max } from '@ember/object/computed';\n\n  class Person {\n    children = [];\n\n    @mapBy('children', 'age') childAges;\n    @max('childAges') maxChildAge;\n  }\n\n  let lordByron = new Person();\n\n  lordByron.maxChildAge; // -Infinity\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.maxChildAge; // 7\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.maxChildAge; // 8\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { mapBy, max } from '@ember/object/computed';\n\n  let Person = EmberObject.extend({\n    childAges: mapBy('children', 'age'),\n    maxChildAge: max('childAges')\n  });\n\n  let lordByron = Person.create({ children: [] });\n\n  lordByron.maxChildAge; // -Infinity\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.maxChildAge; // 7\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.maxChildAge; // 8\n  ```\n\n  If the types of the arguments are not numbers, they will be converted to\n  numbers and the type of the return value will always be `Number`. For example,\n  the max of a list of Date objects will be the highest timestamp as a `Number`.\n  This behavior is consistent with `Math.max`.\n\n  @method max\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @return {ComputedProperty} computes the largest value in the dependentKey's\n  array\n  @public\n*/\n\nexport function max(dependentKey) {\n  assert('You attempted to use @max as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return reduceMacro(dependentKey, (max, item) => Math.max(max, item), -Infinity, 'max');\n}\n/**\n  A computed property that calculates the minimum value in the dependent array.\n  This will return `Infinity` when the dependent array is empty.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { mapBy, min } from '@ember/object/computed';\n\n  class Person {\n    children = [];\n\n    @mapBy('children', 'age') childAges;\n    @min('childAges') minChildAge;\n  }\n\n  let lordByron = Person.create({ children: [] });\n\n  lordByron.minChildAge; // Infinity\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.minChildAge; // 7\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.minChildAge; // 5\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { mapBy, min } from '@ember/object/computed';\n\n  let Person = EmberObject.extend({\n    childAges: mapBy('children', 'age'),\n    minChildAge: min('childAges')\n  });\n\n  let lordByron = Person.create({ children: [] });\n\n  lordByron.minChildAge; // Infinity\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.minChildAge; // 7\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.minChildAge; // 5\n  ```\n\n  If the types of the arguments are not numbers, they will be converted to\n  numbers and the type of the return value will always be `Number`. For example,\n  the min of a list of Date objects will be the lowest timestamp as a `Number`.\n  This behavior is consistent with `Math.min`.\n\n  @method min\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @return {ComputedProperty} computes the smallest value in the dependentKey's array\n  @public\n*/\n\nexport function min(dependentKey) {\n  assert('You attempted to use @min as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return reduceMacro(dependentKey, (min, item) => Math.min(min, item), Infinity, 'min');\n}\n/**\n  Returns an array mapped via the callback\n\n  The callback method you provide should have the following signature:\n  - `item` is the current item in the iteration.\n  - `index` is the integer index of the current item in the iteration.\n\n  ```javascript\n  function mapCallback(item, index);\n  ```\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { map } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @map('chores', function(chore, index) {\n      return `${chore.toUpperCase()}!`;\n    })\n    excitingChores;\n  });\n\n  let hamster = new Hamster(['clean', 'write more unit tests']);\n\n  hamster.excitingChores; // ['CLEAN!', 'WRITE MORE UNIT TESTS!']\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { map } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    excitingChores: map('chores', function(chore, index) {\n      return `${chore.toUpperCase()}!`;\n    })\n  });\n\n  let hamster = Hamster.create({\n    chores: ['clean', 'write more unit tests']\n  });\n\n  hamster.excitingChores; // ['CLEAN!', 'WRITE MORE UNIT TESTS!']\n  ```\n\n  You can optionally pass an array of additional dependent keys as the second\n  parameter to the macro, if your map function relies on any external values:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { map } from '@ember/object/computed';\n\n  class Hamster {\n    shouldUpperCase = false;\n\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @map('chores', ['shouldUpperCase'], function(chore, index) {\n      if (this.shouldUpperCase) {\n        return `${chore.toUpperCase()}!`;\n      } else {\n        return `${chore}!`;\n      }\n    })\n    excitingChores;\n  }\n\n  let hamster = new Hamster(['clean', 'write more unit tests']);\n\n  hamster.excitingChores; // ['clean!', 'write more unit tests!']\n\n  set(hamster, 'shouldUpperCase', true);\n  hamster.excitingChores; // ['CLEAN!', 'WRITE MORE UNIT TESTS!']\n  ```\n\n  @method map\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {Array} [additionalDependentKeys] optional array of additional\n  dependent keys\n  @param {Function} callback\n  @return {ComputedProperty} an array mapped via the callback\n  @public\n*/\n\nexport function map(dependentKey, additionalDependentKeys, callback) {\n  assert('You attempted to use @map as a decorator directly, but it requires atleast `dependentKey` and `callback` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n\n  if (callback === undefined && typeof additionalDependentKeys === 'function') {\n    callback = additionalDependentKeys;\n    additionalDependentKeys = [];\n  }\n\n  assert('The final parameter provided to map must be a callback function', typeof callback === 'function');\n  assert('The second parameter provided to map must either be the callback or an array of additional dependent keys', Array.isArray(additionalDependentKeys));\n  return arrayMacro(dependentKey, additionalDependentKeys, function (value) {\n    return value.map(callback, this);\n  });\n}\n/**\n  Returns an array mapped to the specified key.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { mapBy } from '@ember/object/computed';\n\n  class Person {\n    children = [];\n\n    @mapBy('children', 'age') childAges;\n  }\n\n  let lordByron = new Person();\n\n  lordByron.childAges; // []\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.childAges; // [7]\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.childAges; // [7, 5, 8]\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { mapBy } from '@ember/object/computed';\n\n  let Person = EmberObject.extend({\n    childAges: mapBy('children', 'age')\n  });\n\n  let lordByron = Person.create({ children: [] });\n\n  lordByron.childAges; // []\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.childAges; // [7]\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.childAges; // [7, 5, 8]\n  ```\n\n  @method mapBy\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {String} propertyKey\n  @return {ComputedProperty} an array mapped to the specified key\n  @public\n*/\n\nexport function mapBy(dependentKey, propertyKey) {\n  assert('You attempted to use @mapBy as a decorator directly, but it requires `dependentKey` and `propertyKey` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert('`computed.mapBy` expects a property string for its second argument, ' + 'perhaps you meant to use \"map\"', typeof propertyKey === 'string');\n  assert(`Dependent key passed to \\`computed.mapBy\\` shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(dependentKey));\n  return map(`${dependentKey}.@each.${propertyKey}`, item => get(item, propertyKey));\n}\n/**\n  Filters the array by the callback.\n\n  The callback method you provide should have the following signature:\n  - `item` is the current item in the iteration.\n  - `index` is the integer index of the current item in the iteration.\n  - `array` is the dependant array itself.\n\n  ```javascript\n  function filterCallback(item, index, array);\n  ```\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { filter } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @filter('chores', function(chore, index, array) {\n      return !chore.done;\n    })\n    remainingChores;\n  }\n\n  let hamster = Hamster.create([\n    { name: 'cook', done: true },\n    { name: 'clean', done: true },\n    { name: 'write more unit tests', done: false }\n  ]);\n\n  hamster.remainingChores; // [{name: 'write more unit tests', done: false}]\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { filter } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    remainingChores: filter('chores', function(chore, index, array) {\n      return !chore.done;\n    })\n  });\n\n  let hamster = Hamster.create({\n    chores: [\n      { name: 'cook', done: true },\n      { name: 'clean', done: true },\n      { name: 'write more unit tests', done: false }\n    ]\n  });\n\n  hamster.remainingChores; // [{name: 'write more unit tests', done: false}]\n  ```\n\n  You can also use `@each.property` in your dependent key, the callback will\n  still use the underlying array:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { filter } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @filter('chores.@each.done', function(chore, index, array) {\n      return !chore.done;\n    })\n    remainingChores;\n  }\n\n  let hamster = new Hamster([\n    { name: 'cook', done: true },\n    { name: 'clean', done: true },\n    { name: 'write more unit tests', done: false }\n  ]);\n  hamster.remainingChores; // [{name: 'write more unit tests', done: false}]\n\n  set(hamster.chores[2], 'done', true);\n  hamster.remainingChores; // []\n  ```\n\n  Finally, you can optionally pass an array of additional dependent keys as the\n  second parameter to the macro, if your filter function relies on any external\n  values:\n\n  ```javascript\n  import { filter } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    doneKey = 'finished';\n\n    @filter('chores', ['doneKey'], function(chore, index, array) {\n      return !chore[this.doneKey];\n    })\n    remainingChores;\n  }\n\n  let hamster = new Hamster([\n    { name: 'cook', finished: true },\n    { name: 'clean', finished: true },\n    { name: 'write more unit tests', finished: false }\n  ]);\n\n  hamster.remainingChores; // [{name: 'write more unit tests', finished: false}]\n  ```\n\n  @method filter\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {Array} [additionalDependentKeys] optional array of additional dependent keys\n  @param {Function} callback\n  @return {ComputedProperty} the filtered array\n  @public\n*/\n\nexport function filter(dependentKey, additionalDependentKeys, callback) {\n  assert('You attempted to use @filter as a decorator directly, but it requires atleast `dependentKey` and `callback` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n\n  if (callback === undefined && typeof additionalDependentKeys === 'function') {\n    callback = additionalDependentKeys;\n    additionalDependentKeys = [];\n  }\n\n  assert('The final parameter provided to filter must be a callback function', typeof callback === 'function');\n  assert('The second parameter provided to filter must either be the callback or an array of additional dependent keys', Array.isArray(additionalDependentKeys));\n  return arrayMacro(dependentKey, additionalDependentKeys, function (value) {\n    return value.filter(callback, this);\n  });\n}\n/**\n  Filters the array by the property and value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { filterBy } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @filterBy('chores', 'done', false) remainingChores;\n  }\n\n  let hamster = new Hamster([\n    { name: 'cook', done: true },\n    { name: 'clean', done: true },\n    { name: 'write more unit tests', done: false }\n  ]);\n\n  hamster.remainingChores; // [{ name: 'write more unit tests', done: false }]\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { filterBy } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    remainingChores: filterBy('chores', 'done', false)\n  });\n\n  let hamster = Hamster.create({\n    chores: [\n      { name: 'cook', done: true },\n      { name: 'clean', done: true },\n      { name: 'write more unit tests', done: false }\n    ]\n  });\n\n  hamster.remainingChores; // [{ name: 'write more unit tests', done: false }]\n  ```\n\n  @method filterBy\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {String} propertyKey\n  @param {*} value\n  @return {ComputedProperty} the filtered array\n  @public\n*/\n\nexport function filterBy(dependentKey, propertyKey, value) {\n  assert('You attempted to use @filterBy as a decorator directly, but it requires atleast `dependentKey` and `propertyKey` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert(`Dependent key passed to \\`computed.filterBy\\` shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(dependentKey));\n  let callback;\n\n  if (arguments.length === 2) {\n    callback = item => get(item, propertyKey);\n  } else {\n    callback = item => get(item, propertyKey) === value;\n  }\n\n  return filter(`${dependentKey}.@each.${propertyKey}`, callback);\n}\n/**\n  A computed property which returns a new array with all the unique elements\n  from one or more dependent arrays.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { uniq } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(fruits) {\n      set(this, 'fruits', fruits);\n    }\n\n    @uniq('fruits') uniqueFruits;\n  }\n\n  let hamster = new Hamster([\n    'banana',\n    'grape',\n    'kale',\n    'banana'\n  ]);\n\n  hamster.uniqueFruits; // ['banana', 'grape', 'kale']\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { uniq } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    uniqueFruits: uniq('fruits')\n  });\n\n  let hamster = Hamster.create({\n    fruits: [\n      'banana',\n      'grape',\n      'kale',\n      'banana'\n    ]\n  });\n\n  hamster.uniqueFruits; // ['banana', 'grape', 'kale']\n  ```\n\n  @method uniq\n  @for @ember/object/computed\n  @static\n  @param {String} propertyKey*\n  @return {ComputedProperty} computes a new array with all the\n  unique elements from the dependent array\n  @public\n*/\n\nexport function uniq(...args) {\n  assert('You attempted to use @uniq/@union as a decorator directly, but it requires atleast one dependent key parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return multiArrayMacro(args, function (dependentKeys) {\n    let uniq = emberA();\n    let seen = new Set();\n    dependentKeys.forEach(dependentKey => {\n      let value = get(this, dependentKey);\n\n      if (isArray(value)) {\n        value.forEach(item => {\n          if (!seen.has(item)) {\n            seen.add(item);\n            uniq.push(item);\n          }\n        });\n      }\n    });\n    return uniq;\n  }, 'uniq');\n}\n/**\n  A computed property which returns a new array with all the unique elements\n  from an array, with uniqueness determined by specific key.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { uniqBy } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(fruits) {\n      set(this, 'fruits', fruits);\n    }\n\n    @uniqBy('fruits', 'id') uniqueFruits;\n  }\n\n  let hamster = new Hamster([\n    { id: 1, 'banana' },\n    { id: 2, 'grape' },\n    { id: 3, 'peach' },\n    { id: 1, 'banana' }\n  ]);\n\n  hamster.uniqueFruits; // [ { id: 1, 'banana' }, { id: 2, 'grape' }, { id: 3, 'peach' }]\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { uniqBy } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    uniqueFruits: uniqBy('fruits', 'id')\n  });\n\n  let hamster = Hamster.create({\n    fruits: [\n      { id: 1, 'banana' },\n      { id: 2, 'grape' },\n      { id: 3, 'peach' },\n      { id: 1, 'banana' }\n    ]\n  });\n\n  hamster.uniqueFruits; // [ { id: 1, 'banana' }, { id: 2, 'grape' }, { id: 3, 'peach' }]\n  ```\n\n  @method uniqBy\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {String} propertyKey\n  @return {ComputedProperty} computes a new array with all the\n  unique elements from the dependent array\n  @public\n*/\n\nexport function uniqBy(dependentKey, propertyKey) {\n  assert('You attempted to use @uniqBy as a decorator directly, but it requires `dependentKey` and `propertyKey` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert(`Dependent key passed to \\`computed.uniqBy\\` shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(dependentKey));\n  return computed(`${dependentKey}.[]`, function () {\n    let list = get(this, dependentKey);\n    return isArray(list) ? uniqByArray(list, propertyKey) : emberA();\n  }).readOnly();\n}\n/**\n  A computed property which returns a new array with all the unique elements\n  from one or more dependent arrays.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { union } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(fruits, vegetables) {\n      set(this, 'fruits', fruits);\n      set(this, 'vegetables', vegetables);\n    }\n\n    @union('fruits', 'vegetables') uniqueFruits;\n  });\n\n  let hamster = new, Hamster(\n    [\n      'banana',\n      'grape',\n      'kale',\n      'banana',\n      'tomato'\n    ],\n    [\n      'tomato',\n      'carrot',\n      'lettuce'\n    ]\n  );\n\n  hamster.uniqueFruits; // ['banana', 'grape', 'kale', 'tomato', 'carrot', 'lettuce']\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { union } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    uniqueFruits: union('fruits', 'vegetables')\n  });\n\n  let hamster = Hamster.create({\n    fruits: [\n      'banana',\n      'grape',\n      'kale',\n      'banana',\n      'tomato'\n    ],\n    vegetables: [\n      'tomato',\n      'carrot',\n      'lettuce'\n    ]\n  });\n\n  hamster.uniqueFruits; // ['banana', 'grape', 'kale', 'tomato', 'carrot', 'lettuce']\n  ```\n\n  @method union\n  @for @ember/object/computed\n  @static\n  @param {String} propertyKey*\n  @return {ComputedProperty} computes a new array with all the unique elements\n  from one or more dependent arrays.\n  @public\n*/\n\nexport let union = uniq;\n/**\n  A computed property which returns a new array with all the elements\n  two or more dependent arrays have in common.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { intersect } from '@ember/object/computed';\n\n  class FriendGroups {\n    constructor(adaFriends, charlesFriends) {\n      set(this, 'adaFriends', adaFriends);\n      set(this, 'charlesFriends', charlesFriends);\n    }\n\n    @intersect('adaFriends', 'charlesFriends') friendsInCommon;\n  }\n\n  let groups = new FriendGroups(\n    ['Charles Babbage', 'John Hobhouse', 'William King', 'Mary Somerville'],\n    ['William King', 'Mary Somerville', 'Ada Lovelace', 'George Peacock']\n  );\n\n  groups.friendsInCommon; // ['William King', 'Mary Somerville']\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { intersect } from '@ember/object/computed';\n\n  let FriendGroups = EmberObject.extend({\n    friendsInCommon: intersect('adaFriends', 'charlesFriends')\n  });\n\n  let groups = FriendGroups.create({\n    adaFriends: ['Charles Babbage', 'John Hobhouse', 'William King', 'Mary Somerville'],\n    charlesFriends: ['William King', 'Mary Somerville', 'Ada Lovelace', 'George Peacock']\n  });\n\n  groups.friendsInCommon; // ['William King', 'Mary Somerville']\n  ```\n\n  @method intersect\n  @for @ember/object/computed\n  @static\n  @param {String} propertyKey*\n  @return {ComputedProperty} computes a new array with all the duplicated\n  elements from the dependent arrays\n  @public\n*/\n\nexport function intersect(...args) {\n  assert('You attempted to use @intersect as a decorator directly, but it requires atleast one dependent key parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return multiArrayMacro(args, function (dependentKeys) {\n    let arrays = dependentKeys.map(dependentKey => {\n      let array = get(this, dependentKey);\n      return isArray(array) ? array : [];\n    });\n    let results = arrays.pop().filter(candidate => {\n      for (let i = 0; i < arrays.length; i++) {\n        let found = false;\n        let array = arrays[i];\n\n        for (let j = 0; j < array.length; j++) {\n          if (array[j] === candidate) {\n            found = true;\n            break;\n          }\n        }\n\n        if (found === false) {\n          return false;\n        }\n      }\n\n      return true;\n    });\n    return emberA(results);\n  }, 'intersect');\n}\n/**\n  A computed property which returns a new array with all the properties from the\n  first dependent array that are not in the second dependent array.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { setDiff } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(likes, fruits) {\n      set(this, 'likes', likes);\n      set(this, 'fruits', fruits);\n    }\n\n    @setDiff('likes', 'fruits') wants;\n  }\n\n  let hamster = new Hamster(\n    [\n      'banana',\n      'grape',\n      'kale'\n    ],\n    [\n      'grape',\n      'kale',\n    ]\n  );\n\n  hamster.wants; // ['banana']\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { setDiff } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    wants: setDiff('likes', 'fruits')\n  });\n\n  let hamster = Hamster.create({\n    likes: [\n      'banana',\n      'grape',\n      'kale'\n    ],\n    fruits: [\n      'grape',\n      'kale',\n    ]\n  });\n\n  hamster.wants; // ['banana']\n  ```\n\n  @method setDiff\n  @for @ember/object/computed\n  @static\n  @param {String} setAProperty\n  @param {String} setBProperty\n  @return {ComputedProperty} computes a new array with all the items from the\n  first dependent array that are not in the second dependent array\n  @public\n*/\n\nexport function setDiff(setAProperty, setBProperty) {\n  assert('You attempted to use @setDiff as a decorator directly, but it requires atleast one dependent key parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert('`computed.setDiff` requires exactly two dependent arrays.', arguments.length === 2);\n  assert(`Dependent keys passed to \\`computed.setDiff\\` shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(setAProperty) && !/[[\\]{}]/g.test(setBProperty));\n  return computed(`${setAProperty}.[]`, `${setBProperty}.[]`, function () {\n    let setA = get(this, setAProperty);\n    let setB = get(this, setBProperty);\n\n    if (!isArray(setA)) {\n      return emberA();\n    }\n\n    if (!isArray(setB)) {\n      return emberA(setA);\n    }\n\n    return setA.filter(x => setB.indexOf(x) === -1);\n  }).readOnly();\n}\n/**\n  A computed property that returns the array of values for the provided\n  dependent properties.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { collect } from '@ember/object/computed';\n\n  class Hamster {\n    @collect('hat', 'shirt') clothes;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.clothes; // [null, null]\n\n  set(hamster, 'hat', 'Camp Hat');\n  set(hamster, 'shirt', 'Camp Shirt');\n  hamster.clothes; // ['Camp Hat', 'Camp Shirt']\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { collect } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    clothes: collect('hat', 'shirt')\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.clothes; // [null, null]\n\n  set(hamster, 'hat', 'Camp Hat');\n  set(hamster, 'shirt', 'Camp Shirt');\n  hamster.clothes; // ['Camp Hat', 'Camp Shirt']\n  ```\n\n  @method collect\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey*\n  @return {ComputedProperty} computed property which maps values of all passed\n  in properties to an array.\n  @public\n*/\n\nexport function collect(...dependentKeys) {\n  assert('You attempted to use @collect as a decorator directly, but it requires atleast one dependent key parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return multiArrayMacro(dependentKeys, function () {\n    let res = dependentKeys.map(key => {\n      let val = get(this, key);\n      return val === undefined ? null : val;\n    });\n    return emberA(res);\n  }, 'collect');\n}\n/**\n  A computed property which returns a new array with all the properties from the\n  first dependent array sorted based on a property or sort function. The sort\n  macro can be used in two different ways:\n\n  1. By providing a sort callback function\n  2. By providing an array of keys to sort the array\n\n  In the first form, the callback method you provide should have the following\n  signature:\n\n  ```javascript\n  function sortCallback(itemA, itemB);\n  ```\n\n  - `itemA` the first item to compare.\n  - `itemB` the second item to compare.\n\n  This function should return negative number (e.g. `-1`) when `itemA` should\n  come before `itemB`. It should return positive number (e.g. `1`) when `itemA`\n  should come after `itemB`. If the `itemA` and `itemB` are equal this function\n  should return `0`.\n\n  Therefore, if this function is comparing some numeric values, simple `itemA -\n  itemB` or `itemA.get( 'foo' ) - itemB.get( 'foo' )` can be used instead of\n  series of `if`.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { sort } from '@ember/object/computed';\n\n  class ToDoList {\n    constructor(todos) {\n      set(this, 'todos', todos);\n    }\n\n    // using a custom sort function\n    @sort('todos', function(a, b){\n      if (a.priority > b.priority) {\n        return 1;\n      } else if (a.priority < b.priority) {\n        return -1;\n      }\n\n      return 0;\n    })\n    priorityTodos;\n  }\n\n  let todoList = new ToDoList([\n    { name: 'Unit Test', priority: 2 },\n    { name: 'Documentation', priority: 3 },\n    { name: 'Release', priority: 1 }\n  ]);\n\n  todoList.priorityTodos; // [{ name:'Release', priority:1 }, { name:'Unit Test', priority:2 }, { name:'Documentation', priority:3 }]\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { sort } from '@ember/object/computed';\n\n  let ToDoList = EmberObject.extend({\n    // using a custom sort function\n    priorityTodos: sort('todos', function(a, b){\n      if (a.priority > b.priority) {\n        return 1;\n      } else if (a.priority < b.priority) {\n        return -1;\n      }\n\n      return 0;\n    })\n  });\n\n  let todoList = ToDoList.create({\n    todos: [\n      { name: 'Unit Test', priority: 2 },\n      { name: 'Documentation', priority: 3 },\n      { name: 'Release', priority: 1 }\n    ]\n  });\n\n  todoList.priorityTodos; // [{ name:'Release', priority:1 }, { name:'Unit Test', priority:2 }, { name:'Documentation', priority:3 }]\n  ```\n\n  You can also optionally pass an array of additional dependent keys as the\n  second parameter, if your sort function is dependent on additional values that\n  could changes:\n\n  ```js\n  import EmberObject, { set } from '@ember/object';\n  import { sort } from '@ember/object/computed';\n\n  class ToDoList {\n    sortKey = 'priority';\n\n    constructor(todos) {\n      set(this, 'todos', todos);\n    }\n\n    // using a custom sort function\n    @sort('todos', ['sortKey'], function(a, b){\n      if (a[this.sortKey] > b[this.sortKey]) {\n        return 1;\n      } else if (a[this.sortKey] < b[this.sortKey]) {\n        return -1;\n      }\n\n      return 0;\n    })\n    sortedTodos;\n  });\n\n  let todoList = new ToDoList([\n    { name: 'Unit Test', priority: 2 },\n    { name: 'Documentation', priority: 3 },\n    { name: 'Release', priority: 1 }\n  ]);\n\n  todoList.priorityTodos; // [{ name:'Release', priority:1 }, { name:'Unit Test', priority:2 }, { name:'Documentation', priority:3 }]\n  ```\n\n  In the second form, you should provide the key of the array of sort values as\n  the second parameter:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { sort } from '@ember/object/computed';\n\n  class ToDoList {\n    constructor(todos) {\n      set(this, 'todos', todos);\n    }\n\n    // using standard ascending sort\n    todosSorting = ['name'];\n    @sort('todos', 'todosSorting') sortedTodos;\n\n    // using descending sort\n    todosSortingDesc = ['name:desc'];\n    @sort('todos', 'todosSortingDesc') sortedTodosDesc;\n  }\n\n  let todoList = new ToDoList([\n    { name: 'Unit Test', priority: 2 },\n    { name: 'Documentation', priority: 3 },\n    { name: 'Release', priority: 1 }\n  ]);\n\n  todoList.sortedTodos; // [{ name:'Documentation', priority:3 }, { name:'Release', priority:1 }, { name:'Unit Test', priority:2 }]\n  todoList.sortedTodosDesc; // [{ name:'Unit Test', priority:2 }, { name:'Release', priority:1 }, { name:'Documentation', priority:3 }]\n  ```\n\n  @method sort\n  @for @ember/object/computed\n  @static\n  @param {String} itemsKey\n  @param {String|Function|Array} sortDefinitionOrDependentKeys The key of the sort definition (an array of sort properties),\n  the sort function, or an array of additional dependent keys\n  @param {Function?} sortDefinition the sort function (when used with additional dependent keys)\n  @return {ComputedProperty} computes a new sorted array based on the sort\n  property array or callback function\n  @public\n*/\n\nexport function sort(itemsKey, additionalDependentKeys, sortDefinition) {\n  assert('You attempted to use @sort as a decorator directly, but it requires atleast an `itemsKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n\n  if (DEBUG) {\n    let argumentsValid = false;\n\n    if (arguments.length === 2) {\n      argumentsValid = typeof itemsKey === 'string' && (typeof additionalDependentKeys === 'string' || typeof additionalDependentKeys === 'function');\n    }\n\n    if (arguments.length === 3) {\n      argumentsValid = typeof itemsKey === 'string' && Array.isArray(additionalDependentKeys) && typeof sortDefinition === 'function';\n    }\n\n    assert('`computed.sort` can either be used with an array of sort properties or with a sort function. If used with an array of sort properties, it must receive exactly two arguments: the key of the array to sort, and the key of the array of sort properties. If used with a sort function, it may receive up to three arguments: the key of the array to sort, an optional additional array of dependent keys for the computed property, and the sort function.', argumentsValid);\n  }\n\n  if (sortDefinition === undefined && !Array.isArray(additionalDependentKeys)) {\n    sortDefinition = additionalDependentKeys;\n    additionalDependentKeys = [];\n  }\n\n  if (typeof sortDefinition === 'function') {\n    return customSort(itemsKey, additionalDependentKeys, sortDefinition);\n  } else {\n    return propertySort(itemsKey, sortDefinition);\n  }\n}\n\nfunction customSort(itemsKey, additionalDependentKeys, comparator) {\n  return arrayMacro(itemsKey, additionalDependentKeys, function (value) {\n    return value.slice().sort((x, y) => comparator.call(this, x, y));\n  });\n} // This one needs to dynamically set up and tear down observers on the itemsKey\n// depending on the sortProperties\n\n\nfunction propertySort(itemsKey, sortPropertiesKey) {\n  let cp = autoComputed(function (key) {\n    let sortProperties = get(this, sortPropertiesKey);\n    assert(`The sort definition for '${key}' on ${this} must be a function or an array of strings`, isArray(sortProperties) && sortProperties.every(s => typeof s === 'string'));\n    let itemsKeyIsAtThis = itemsKey === '@this';\n    let normalizedSortProperties = normalizeSortProperties(sortProperties);\n    let items = itemsKeyIsAtThis ? this : get(this, itemsKey);\n\n    if (!isArray(items)) {\n      return emberA();\n    }\n\n    if (normalizedSortProperties.length === 0) {\n      return emberA(items.slice());\n    } else {\n      return sortByNormalizedSortProperties(items, normalizedSortProperties);\n    }\n  }).readOnly();\n  return cp;\n}\n\nfunction normalizeSortProperties(sortProperties) {\n  return sortProperties.map(p => {\n    let [prop, direction] = p.split(':');\n    direction = direction || 'asc';\n    return [prop, direction];\n  });\n}\n\nfunction sortByNormalizedSortProperties(items, normalizedSortProperties) {\n  return emberA(items.slice().sort((itemA, itemB) => {\n    for (let i = 0; i < normalizedSortProperties.length; i++) {\n      let [prop, direction] = normalizedSortProperties[i];\n      let result = compare(get(itemA, prop), get(itemB, prop));\n\n      if (result !== 0) {\n        return direction === 'desc' ? -1 * result : result;\n      }\n    }\n\n    return 0;\n  }));\n}","export { Mixin as default } from '@ember/-internals/metal';","export { Observable as default } from '@ember/-internals/runtime';","export { addObserver, removeObserver } from '@ember/-internals/metal';","export { PromiseProxyMixin as default } from '@ember/-internals/runtime';","export { ObjectProxy as default } from '@ember/-internals/runtime';","import { MERGE } from '@ember/deprecated-features';\nimport { default as deprecatedMerge } from './lib/merge';\nlet merge = MERGE ? deprecatedMerge : undefined; // Export `assignPolyfill` for testing\n\nexport { default as assign, assign as assignPolyfill } from './lib/assign';\nexport { merge };\nexport const hasPropertyAccessors = true;","/**\n @module @ember/polyfills\n*/\n\n/**\n  Copy properties from a source object to a target object. Source arguments remain unchanged.\n\n  ```javascript\n  import { assign } from '@ember/polyfills';\n\n  var a = { first: 'Yehuda' };\n  var b = { last: 'Katz' };\n  var c = { company: 'Other Company' };\n  var d = { company: 'Tilde Inc.' };\n  assign(a, b, c, d); // a === { first: 'Yehuda', last: 'Katz', company: 'Tilde Inc.' };\n  ```\n\n  @method assign\n  @for @ember/polyfills\n  @param {Object} target The object to assign into\n  @param {Object} ...args The objects to copy properties from\n  @return {Object}\n  @public\n  @static\n*/\nexport function assign(target) {\n  for (let i = 1; i < arguments.length; i++) {\n    let arg = arguments[i];\n\n    if (!arg) {\n      continue;\n    }\n\n    let updates = Object.keys(arg);\n\n    for (let i = 0; i < updates.length; i++) {\n      let prop = updates[i];\n      target[prop] = arg[prop];\n    }\n  }\n\n  return target;\n} // Note: We use the bracket notation so\n//       that the babel plugin does not\n//       transform it.\n// https://www.npmjs.com/package/babel-plugin-transform-object-assign\n\nconst {\n  assign: _assign\n} = Object;\nexport default _assign || assign;","import { deprecate } from '@ember/debug';\n/**\n  Merge the contents of two objects together into the first object.\n\n  ```javascript\n  import { merge } from '@ember/polyfills';\n\n  merge({ first: 'Tom' }, { last: 'Dale' }); // { first: 'Tom', last: 'Dale' }\n  var a = { first: 'Yehuda' };\n  var b = { last: 'Katz' };\n  merge(a, b); // a == { first: 'Yehuda', last: 'Katz' }, b == { last: 'Katz' }\n  ```\n\n  @method merge\n  @static\n  @for @ember/polyfills\n  @param {Object} original The object to merge into\n  @param {Object} updates The object to copy properties from\n  @return {Object}\n  @deprecated\n  @public\n*/\n\nfunction merge(original, updates) {\n  deprecate('Use of `merge` has been deprecated. Please use `assign` instead.', false, {\n    id: 'ember-polyfills.deprecate-merge',\n    until: '4.0.0',\n    url: 'https://deprecations.emberjs.com/v3.x/#toc_ember-polyfills-deprecate-merge',\n    for: 'ember-source',\n    since: {\n      enabled: '3.6.0-beta.1'\n    }\n  });\n\n  if (updates === null || typeof updates !== 'object') {\n    return original;\n  }\n\n  let props = Object.keys(updates);\n  let prop;\n\n  for (let i = 0; i < props.length; i++) {\n    prop = props[i];\n    original[prop] = updates[prop];\n  }\n\n  return original;\n}\n\nexport default merge;","export { AutoLocation as default } from '@ember/-internals/routing';","export { HashLocation as default } from '@ember/-internals/routing';","export { HistoryLocation as default } from '@ember/-internals/routing';","export { LinkComponent as LinkTo } from '@ember/-internals/glimmer';","import { deprecate } from '@ember/debug';\n\nif (true\n/* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n) {\n  deprecate(`Using Ember.LinkComponent or importing from 'LinkComponent' has been deprecated, install the ` + `\\`@ember/legacy-built-in-components\\` addon and use \\`import { LinkComponent } from ` + `'@ember/legacy-built-in-components';\\` instead`, false, {\n    id: 'ember.built-in-components.import',\n    until: '4.0.0',\n    for: 'ember-source',\n    since: {\n      enabled: '3.27.0'\n    },\n    url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-import'\n  });\n}\n\nexport { LinkComponent as default } from '@ember/-internals/glimmer';","export { Location as default } from '@ember/-internals/routing';","export { NoneLocation as default } from '@ember/-internals/routing';","export { Route as default } from '@ember/-internals/routing';","export { Router as default } from '@ember/-internals/routing';","import { DEBUG } from '@glimmer/env';\nimport { assert, deprecate } from '@ember/debug';\nimport { onErrorTarget } from '@ember/-internals/error-handling';\nimport { flushAsyncObservers } from '@ember/-internals/metal';\nimport { onRunloopDotAccess } from '@ember/-internals/overrides';\nimport Backburner from 'backburner';\nlet currentRunLoop = null;\nexport function _getCurrentRunLoop() {\n  return currentRunLoop;\n}\n\nfunction onBegin(current) {\n  currentRunLoop = current;\n}\n\nfunction onEnd(current, next) {\n  currentRunLoop = next;\n  flushAsyncObservers();\n}\n\nfunction flush(queueName, next) {\n  if (queueName === 'render' || queueName === _rsvpErrorQueue) {\n    flushAsyncObservers();\n  }\n\n  next();\n}\n\nexport const _rsvpErrorQueue = `${Math.random()}${Date.now()}`.replace('.', '');\n/**\n  Array of named queues. This array determines the order in which queues\n  are flushed at the end of the RunLoop. You can define your own queues by\n  simply adding the queue name to this array. Normally you should not need\n  to inspect or modify this property.\n\n  @property queues\n  @type Array\n  @default ['actions', 'destroy']\n  @private\n*/\n\nexport const _queues = ['actions', // used in router transitions to prevent unnecessary loading state entry\n// if all context promises resolve on the 'actions' queue first\n'routerTransitions', 'render', 'afterRender', 'destroy', // used to re-throw unhandled RSVP rejection errors specifically in this\n// position to avoid breaking anything rendered in the other sections\n_rsvpErrorQueue];\nexport const _backburner = new Backburner(_queues, {\n  defaultQueue: 'actions',\n  onBegin,\n  onEnd,\n  onErrorTarget,\n  onErrorMethod: 'onerror',\n  flush\n});\n/**\n @module @ember/runloop\n*/\n// ..........................................................\n// run - this is ideally the only public API the dev sees\n//\n\n/**\n  Runs the passed target and method inside of a RunLoop, ensuring any\n  deferred actions including bindings and views updates are flushed at the\n  end.\n\n  Normally you should not need to invoke this method yourself. However if\n  you are implementing raw event handlers when interfacing with other\n  libraries or plugins, you should probably wrap all of your code inside this\n  call.\n\n  ```javascript\n  import { run } from '@ember/runloop';\n\n  run(function() {\n    // code to be executed within a RunLoop\n  });\n  ```\n  @method run\n  @for @ember/runloop\n  @static\n  @param {Object} [target] target of method to call\n  @param {Function|String} method Method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Any additional arguments you wish to pass to the method.\n  @return {Object} return value from invoking the passed function.\n  @public\n*/\n\nexport function run() {\n  return _backburner.run(...arguments);\n}\n/**\n  If no run-loop is present, it creates a new one. If a run loop is\n  present it will queue itself to run on the existing run-loops action\n  queue.\n\n  Please note: This is not for normal usage, and should be used sparingly.\n\n  If invoked when not within a run loop:\n\n  ```javascript\n  import { join } from '@ember/runloop';\n\n  join(function() {\n    // creates a new run-loop\n  });\n  ```\n\n  Alternatively, if called within an existing run loop:\n\n  ```javascript\n  import { run, join } from '@ember/runloop';\n\n  run(function() {\n    // creates a new run-loop\n\n    join(function() {\n      // joins with the existing run-loop, and queues for invocation on\n      // the existing run-loops action queue.\n    });\n  });\n  ```\n\n  @method join\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to call\n  @param {Function|String} method Method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Any additional arguments you wish to pass to the method.\n  @return {Object} Return value from invoking the passed function. Please note,\n  when called within an existing loop, no return value is possible.\n  @public\n*/\n\nexport function join() {\n  return _backburner.join(...arguments);\n}\n/**\n  Allows you to specify which context to call the specified function in while\n  adding the execution of that function to the Ember run loop. This ability\n  makes this method a great way to asynchronously integrate third-party libraries\n  into your Ember application.\n\n  `bind` takes two main arguments, the desired context and the function to\n  invoke in that context. Any additional arguments will be supplied as arguments\n  to the function that is passed in.\n\n  Let's use the creation of a TinyMCE component as an example. Currently,\n  TinyMCE provides a setup configuration option we can use to do some processing\n  after the TinyMCE instance is initialized but before it is actually rendered.\n  We can use that setup option to do some additional setup for our component.\n  The component itself could look something like the following:\n\n  ```app/components/rich-text-editor.js\n  import Component from '@ember/component';\n  import { on } from '@ember/object/evented';\n  import { bind } from '@ember/runloop';\n\n  export default Component.extend({\n    initializeTinyMCE: on('didInsertElement', function() {\n      tinymce.init({\n        selector: '#' + this.$().prop('id'),\n        setup: bind(this, this.setupEditor)\n      });\n    }),\n\n    didInsertElement() {\n      tinymce.init({\n        selector: '#' + this.$().prop('id'),\n        setup: bind(this, this.setupEditor)\n      });\n    }\n\n    setupEditor(editor) {\n      this.set('editor', editor);\n\n      editor.on('change', function() {\n        console.log('content changed!');\n      });\n    }\n  });\n  ```\n\n  In this example, we use `bind` to bind the setupEditor method to the\n  context of the RichTextEditor component and to have the invocation of that\n  method be safely handled and executed by the Ember run loop.\n\n  @method bind\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to call\n  @param {Function|String} method Method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Any additional arguments you wish to pass to the method.\n  @return {Function} returns a new function that will always have a particular context\n  @since 1.4.0\n  @public\n*/\n\nexport const bind = (...curried) => {\n  assert('could not find a suitable method to bind', function (methodOrTarget, methodOrArg) {\n    // Applies the same logic as backburner parseArgs for detecting if a method\n    // is actually being passed.\n    let length = arguments.length;\n\n    if (length === 0) {\n      return false;\n    } else if (length === 1) {\n      return typeof methodOrTarget === 'function';\n    } else {\n      let type = typeof methodOrArg;\n      return type === 'function' || // second argument is a function\n      methodOrTarget !== null && type === 'string' && methodOrArg in methodOrTarget || // second argument is the name of a method in first argument\n      typeof methodOrTarget === 'function' //first argument is a function\n      ;\n    }\n  }(...curried));\n  return (...args) => join(...curried.concat(args));\n};\n/**\n  Begins a new RunLoop. Any deferred actions invoked after the begin will\n  be buffered until you invoke a matching call to `end()`. This is\n  a lower-level way to use a RunLoop instead of using `run()`.\n\n  ```javascript\n  import { begin, end } from '@ember/runloop';\n\n  begin();\n  // code to be executed within a RunLoop\n  end();\n  ```\n\n  @method begin\n  @static\n  @for @ember/runloop\n  @return {void}\n  @public\n*/\n\nexport function begin() {\n  _backburner.begin();\n}\n/**\n  Ends a RunLoop. This must be called sometime after you call\n  `begin()` to flush any deferred actions. This is a lower-level way\n  to use a RunLoop instead of using `run()`.\n\n  ```javascript\n  import { begin, end } from '@ember/runloop';\n\n  begin();\n  // code to be executed within a RunLoop\n  end();\n  ```\n\n  @method end\n  @static\n  @for @ember/runloop\n  @return {void}\n  @public\n*/\n\nexport function end() {\n  _backburner.end();\n}\n/**\n  Adds the passed target/method and any optional arguments to the named\n  queue to be executed at the end of the RunLoop. If you have not already\n  started a RunLoop when calling this method one will be started for you\n  automatically.\n\n  At the end of a RunLoop, any methods scheduled in this way will be invoked.\n  Methods will be invoked in an order matching the named queues defined in\n  the `queues` property.\n\n  ```javascript\n  import { schedule } from '@ember/runloop';\n\n  schedule('afterRender', this, function() {\n    // this will be executed in the 'afterRender' queue\n    console.log('scheduled on afterRender queue');\n  });\n\n  schedule('actions', this, function() {\n    // this will be executed in the 'actions' queue\n    console.log('scheduled on actions queue');\n  });\n\n  // Note the functions will be run in order based on the run queues order.\n  // Output would be:\n  //   scheduled on actions queue\n  //   scheduled on afterRender queue\n  ```\n\n  @method schedule\n  @static\n  @for @ember/runloop\n  @param {String} queue The name of the queue to schedule against. Default queues is 'actions'\n  @param {Object} [target] target object to use as the context when invoking a method.\n  @param {String|Function} method The method to invoke. If you pass a string it\n    will be resolved on the target object at the time the scheduled item is\n    invoked allowing you to change the target function.\n  @param {Object} [arguments*] Optional arguments to be passed to the queued method.\n  @return {*} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function schedule()\n/* queue, target, method */\n{\n  return _backburner.schedule(...arguments);\n} // Used by global test teardown\n\nexport function _hasScheduledTimers() {\n  return _backburner.hasTimers();\n} // Used by global test teardown\n\nexport function _cancelTimers() {\n  _backburner.cancelTimers();\n}\n/**\n  Invokes the passed target/method and optional arguments after a specified\n  period of time. The last parameter of this method must always be a number\n  of milliseconds.\n\n  You should use this method whenever you need to run some action after a\n  period of time instead of using `setTimeout()`. This method will ensure that\n  items that expire during the same script execution cycle all execute\n  together, which is often more efficient than using a real setTimeout.\n\n  ```javascript\n  import { later } from '@ember/runloop';\n\n  later(myContext, function() {\n    // code here will execute within a RunLoop in about 500ms with this == myContext\n  }, 500);\n  ```\n\n  @method later\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to invoke\n  @param {Function|String} method The method to invoke.\n    If you pass a string it will be resolved on the\n    target at the time the method is invoked.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @param {Number} wait Number of milliseconds to wait.\n  @return {*} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function later()\n/*target, method*/\n{\n  return _backburner.later(...arguments);\n}\n/**\n Schedule a function to run one time during the current RunLoop. This is equivalent\n  to calling `scheduleOnce` with the \"actions\" queue.\n\n  @method once\n  @static\n  @for @ember/runloop\n  @param {Object} [target] The target of the method to invoke.\n  @param {Function|String} method The method to invoke.\n    If you pass a string it will be resolved on the\n    target at the time the method is invoked.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @return {Object} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function once(...args) {\n  args.unshift('actions');\n  return _backburner.scheduleOnce(...args);\n}\n/**\n  Schedules a function to run one time in a given queue of the current RunLoop.\n  Calling this method with the same queue/target/method combination will have\n  no effect (past the initial call).\n\n  Note that although you can pass optional arguments these will not be\n  considered when looking for duplicates. New arguments will replace previous\n  calls.\n\n  ```javascript\n  import { run, scheduleOnce } from '@ember/runloop';\n\n  function sayHi() {\n    console.log('hi');\n  }\n\n  run(function() {\n    scheduleOnce('afterRender', myContext, sayHi);\n    scheduleOnce('afterRender', myContext, sayHi);\n    // sayHi will only be executed once, in the afterRender queue of the RunLoop\n  });\n  ```\n\n  Also note that for `scheduleOnce` to prevent additional calls, you need to\n  pass the same function instance. The following case works as expected:\n\n  ```javascript\n  function log() {\n    console.log('Logging only once');\n  }\n\n  function scheduleIt() {\n    scheduleOnce('actions', myContext, log);\n  }\n\n  scheduleIt();\n  scheduleIt();\n  ```\n\n  But this other case will schedule the function multiple times:\n\n  ```javascript\n  import { scheduleOnce } from '@ember/runloop';\n\n  function scheduleIt() {\n    scheduleOnce('actions', myContext, function() {\n      console.log('Closure');\n    });\n  }\n\n  scheduleIt();\n  scheduleIt();\n\n  // \"Closure\" will print twice, even though we're using `scheduleOnce`,\n  // because the function we pass to it won't match the\n  // previously scheduled operation.\n  ```\n\n  Available queues, and their order, can be found at `queues`\n\n  @method scheduleOnce\n  @static\n  @for @ember/runloop\n  @param {String} [queue] The name of the queue to schedule against. Default queues is 'actions'.\n  @param {Object} [target] The target of the method to invoke.\n  @param {Function|String} method The method to invoke.\n    If you pass a string it will be resolved on the\n    target at the time the method is invoked.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @return {Object} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function scheduleOnce()\n/* queue, target, method*/\n{\n  return _backburner.scheduleOnce(...arguments);\n}\n/**\n  Schedules an item to run from within a separate run loop, after\n  control has been returned to the system. This is equivalent to calling\n  `later` with a wait time of 1ms.\n\n  ```javascript\n  import { next } from '@ember/runloop';\n\n  next(myContext, function() {\n    // code to be executed in the next run loop,\n    // which will be scheduled after the current one\n  });\n  ```\n\n  Multiple operations scheduled with `next` will coalesce\n  into the same later run loop, along with any other operations\n  scheduled by `later` that expire right around the same\n  time that `next` operations will fire.\n\n  Note that there are often alternatives to using `next`.\n  For instance, if you'd like to schedule an operation to happen\n  after all DOM element operations have completed within the current\n  run loop, you can make use of the `afterRender` run loop queue (added\n  by the `ember-views` package, along with the preceding `render` queue\n  where all the DOM element operations happen).\n\n  Example:\n\n  ```app/components/my-component.js\n  import Component from '@ember/component';\n  import { scheduleOnce } from '@ember/runloop';\n\n  export Component.extend({\n    didInsertElement() {\n      this._super(...arguments);\n      scheduleOnce('afterRender', this, 'processChildElements');\n    },\n\n    processChildElements() {\n      // ... do something with component's child component\n      // elements after they've finished rendering, which\n      // can't be done within this component's\n      // `didInsertElement` hook because that gets run\n      // before the child elements have been added to the DOM.\n    }\n  });\n  ```\n\n  One benefit of the above approach compared to using `next` is\n  that you will be able to perform DOM/CSS operations before unprocessed\n  elements are rendered to the screen, which may prevent flickering or\n  other artifacts caused by delaying processing until after rendering.\n\n  The other major benefit to the above approach is that `next`\n  introduces an element of non-determinism, which can make things much\n  harder to test, due to its reliance on `setTimeout`; it's much harder\n  to guarantee the order of scheduled operations when they are scheduled\n  outside of the current run loop, i.e. with `next`.\n\n  @method next\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to invoke\n  @param {Function|String} method The method to invoke.\n    If you pass a string it will be resolved on the\n    target at the time the method is invoked.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @return {Object} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function next(...args) {\n  args.push(1);\n  return _backburner.later(...args);\n}\n/**\n  Cancels a scheduled item. Must be a value returned by `later()`,\n  `once()`, `scheduleOnce()`, `next()`, `debounce()`, or\n  `throttle()`.\n\n  ```javascript\n  import {\n    next,\n    cancel,\n    later,\n    scheduleOnce,\n    once,\n    throttle,\n    debounce\n  } from '@ember/runloop';\n\n  let runNext = next(myContext, function() {\n    // will not be executed\n  });\n\n  cancel(runNext);\n\n  let runLater = later(myContext, function() {\n    // will not be executed\n  }, 500);\n\n  cancel(runLater);\n\n  let runScheduleOnce = scheduleOnce('afterRender', myContext, function() {\n    // will not be executed\n  });\n\n  cancel(runScheduleOnce);\n\n  let runOnce = once(myContext, function() {\n    // will not be executed\n  });\n\n  cancel(runOnce);\n\n  let throttle = throttle(myContext, function() {\n    // will not be executed\n  }, 1, false);\n\n  cancel(throttle);\n\n  let debounce = debounce(myContext, function() {\n    // will not be executed\n  }, 1);\n\n  cancel(debounce);\n\n  let debounceImmediate = debounce(myContext, function() {\n    // will be executed since we passed in true (immediate)\n  }, 100, true);\n\n  // the 100ms delay until this method can be called again will be canceled\n  cancel(debounceImmediate);\n  ```\n\n  @method cancel\n  @static\n  @for @ember/runloop\n  @param {Object} timer Timer object to cancel\n  @return {Boolean} true if canceled or false/undefined if it wasn't found\n  @public\n*/\n\nexport function cancel(timer) {\n  return _backburner.cancel(timer);\n}\n/**\n  Delay calling the target method until the debounce period has elapsed\n  with no additional debounce calls. If `debounce` is called again before\n  the specified time has elapsed, the timer is reset and the entire period\n  must pass again before the target method is called.\n\n  This method should be used when an event may be called multiple times\n  but the action should only be called once when the event is done firing.\n  A common example is for scroll events where you only want updates to\n  happen once scrolling has ceased.\n\n  ```javascript\n  import { debounce } from '@ember/runloop';\n\n  function whoRan() {\n    console.log(this.name + ' ran.');\n  }\n\n  let myContext = { name: 'debounce' };\n\n  debounce(myContext, whoRan, 150);\n\n  // less than 150ms passes\n  debounce(myContext, whoRan, 150);\n\n  // 150ms passes\n  // whoRan is invoked with context myContext\n  // console logs 'debounce ran.' one time.\n  ```\n\n  Immediate allows you to run the function immediately, but debounce\n  other calls for this function until the wait time has elapsed. If\n  `debounce` is called again before the specified time has elapsed,\n  the timer is reset and the entire period must pass again before\n  the method can be called again.\n\n  ```javascript\n  import { debounce } from '@ember/runloop';\n\n  function whoRan() {\n    console.log(this.name + ' ran.');\n  }\n\n  let myContext = { name: 'debounce' };\n\n  debounce(myContext, whoRan, 150, true);\n\n  // console logs 'debounce ran.' one time immediately.\n  // 100ms passes\n  debounce(myContext, whoRan, 150, true);\n\n  // 150ms passes and nothing else is logged to the console and\n  // the debouncee is no longer being watched\n  debounce(myContext, whoRan, 150, true);\n\n  // console logs 'debounce ran.' one time immediately.\n  // 150ms passes and nothing else is logged to the console and\n  // the debouncee is no longer being watched\n  ```\n\n  @method debounce\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to invoke\n  @param {Function|String} method The method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @param {Number} wait Number of milliseconds to wait.\n  @param {Boolean} immediate Trigger the function on the leading instead\n    of the trailing edge of the wait interval. Defaults to false.\n  @return {Array} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function debounce() {\n  return _backburner.debounce(...arguments);\n}\n/**\n  Ensure that the target method is never called more frequently than\n  the specified spacing period. The target method is called immediately.\n\n  ```javascript\n  import { throttle } from '@ember/runloop';\n\n  function whoRan() {\n    console.log(this.name + ' ran.');\n  }\n\n  let myContext = { name: 'throttle' };\n\n  throttle(myContext, whoRan, 150);\n  // whoRan is invoked with context myContext\n  // console logs 'throttle ran.'\n\n  // 50ms passes\n  throttle(myContext, whoRan, 150);\n\n  // 50ms passes\n  throttle(myContext, whoRan, 150);\n\n  // 150ms passes\n  throttle(myContext, whoRan, 150);\n  // whoRan is invoked with context myContext\n  // console logs 'throttle ran.'\n  ```\n\n  @method throttle\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to invoke\n  @param {Function|String} method The method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @param {Number} spacing Number of milliseconds to space out requests.\n  @param {Boolean} immediate Trigger the function on the leading instead\n    of the trailing edge of the wait interval. Defaults to true.\n  @return {Array} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function throttle() {\n  return _backburner.throttle(...arguments);\n}\nexport let _deprecatedGlobalGetCurrentRunLoop; // eslint-disable-next-line no-undef\n\nif (DEBUG) {\n  let defaultHandler = (dotKey, importKey, module) => {\n    return `Using \\`${dotKey}\\` has been deprecated. Instead, import the value directly from ${module}:\\n\\n  import { ${importKey} } from '${module}';`;\n  };\n\n  let handler = onRunloopDotAccess || defaultHandler;\n\n  let defineDeprecatedRunloopFunc = (key, func) => {\n    Object.defineProperty(run, key, {\n      get() {\n        let message = handler(`run.${key}`, key, '@ember/runloop');\n        deprecate(message, message === null, {\n          id: 'deprecated-run-loop-and-computed-dot-access',\n          until: '4.0.0',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          }\n        });\n        return func;\n      }\n\n    });\n  };\n\n  _deprecatedGlobalGetCurrentRunLoop = () => {\n    let message = handler('run.currentRunLoop', 'getCurrentRunLoop', '@ember/runloop');\n    deprecate(message, message === null, {\n      id: 'deprecated-run-loop-and-computed-dot-access',\n      until: '4.0.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.27.0'\n      }\n    });\n    return _getCurrentRunLoop();\n  };\n\n  defineDeprecatedRunloopFunc('backburner', _backburner);\n  defineDeprecatedRunloopFunc('begin', begin);\n  defineDeprecatedRunloopFunc('bind', bind);\n  defineDeprecatedRunloopFunc('cancel', cancel);\n  defineDeprecatedRunloopFunc('debounce', debounce);\n  defineDeprecatedRunloopFunc('end', end);\n  defineDeprecatedRunloopFunc('hasScheduledTimers', _hasScheduledTimers);\n  defineDeprecatedRunloopFunc('join', join);\n  defineDeprecatedRunloopFunc('later', later);\n  defineDeprecatedRunloopFunc('next', next);\n  defineDeprecatedRunloopFunc('once', once);\n  defineDeprecatedRunloopFunc('schedule', schedule);\n  defineDeprecatedRunloopFunc('scheduleOnce', scheduleOnce);\n  defineDeprecatedRunloopFunc('throttle', throttle);\n  defineDeprecatedRunloopFunc('cancelTimers', _cancelTimers);\n  Object.defineProperty(run, 'currentRunLoop', {\n    get: _deprecatedGlobalGetCurrentRunLoop,\n    enumerable: false\n  });\n} else {\n  run.backburner = _backburner;\n  run.begin = begin;\n  run.bind = bind;\n  run.cancel = cancel;\n  run.debounce = debounce;\n  run.end = end;\n  run.hasScheduledTimers = _hasScheduledTimers;\n  run.join = join;\n  run.later = later;\n  run.next = next;\n  run.once = once;\n  run.schedule = schedule;\n  run.scheduleOnce = scheduleOnce;\n  run.throttle = throttle;\n  run.cancelTimers = _cancelTimers;\n  Object.defineProperty(run, 'currentRunLoop', {\n    get: _getCurrentRunLoop,\n    enumerable: false\n  });\n}","import { FrameworkObject } from '@ember/-internals/runtime';\nimport { inject as metalInject } from '@ember/-internals/metal';\n/**\n @module @ember/service\n @public\n */\n\n/**\n  Creates a property that lazily looks up a service in the container. There are\n  no restrictions as to what objects a service can be injected into.\n\n  Example:\n\n  ```app/routes/application.js\n  import Route from '@ember/routing/route';\n  import { inject as service } from '@ember/service';\n\n  export default class ApplicationRoute extends Route {\n    @service('auth') authManager;\n\n    model() {\n      return this.authManager.findCurrentUser();\n    }\n  }\n  ```\n\n  Classic Class Example:\n\n  ```app/routes/application.js\n  import Route from '@ember/routing/route';\n  import { inject as service } from '@ember/service';\n\n  export default Route.extend({\n    authManager: service('auth'),\n\n    model() {\n      return this.get('authManager').findCurrentUser();\n    }\n  });\n  ```\n\n  This example will create an `authManager` property on the application route\n  that looks up the `auth` service in the container, making it easily accessible\n  in the `model` hook.\n\n  @method inject\n  @static\n  @since 1.10.0\n  @for @ember/service\n  @param {String} name (optional) name of the service to inject, defaults to\n         the property's name\n  @return {ComputedDecorator} injection decorator instance\n  @public\n*/\n\nexport function inject() {\n  return metalInject('service', ...arguments);\n}\n/**\n  @class Service\n  @extends EmberObject\n  @since 1.10.0\n  @public\n*/\n\nconst Service = FrameworkObject.extend();\nService.reopenClass({\n  isServiceFactory: true\n});\nexport default Service;","/**\n@module @ember/string\n*/\nexport { getStrings as _getStrings, setStrings as _setStrings } from './lib/string_registry';\nimport { ENV } from '@ember/-internals/environment';\nimport { Cache } from '@ember/-internals/utils';\nimport { deprecate } from '@ember/debug';\nimport { getString } from './lib/string_registry';\nimport { htmlSafe as internalHtmlSafe, isHTMLSafe as internalIsHtmlSafe } from '@ember/-internals/glimmer';\nconst STRING_DASHERIZE_REGEXP = /[ _]/g;\nconst STRING_DASHERIZE_CACHE = new Cache(1000, key => decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-'));\nconst STRING_CAMELIZE_REGEXP_1 = /(-|_|\\.|\\s)+(.)?/g;\nconst STRING_CAMELIZE_REGEXP_2 = /(^|\\/)([A-Z])/g;\nconst CAMELIZE_CACHE = new Cache(1000, key => key.replace(STRING_CAMELIZE_REGEXP_1, (_match, _separator, chr) => chr ? chr.toUpperCase() : '').replace(STRING_CAMELIZE_REGEXP_2, (match\n/*, separator, chr */\n) => match.toLowerCase()));\nconst STRING_CLASSIFY_REGEXP_1 = /^(-|_)+(.)?/;\nconst STRING_CLASSIFY_REGEXP_2 = /(.)(-|_|\\.|\\s)+(.)?/g;\nconst STRING_CLASSIFY_REGEXP_3 = /(^|\\/|\\.)([a-z])/g;\nconst CLASSIFY_CACHE = new Cache(1000, str => {\n  let replace1 = (_match, _separator, chr) => chr ? `_${chr.toUpperCase()}` : '';\n\n  let replace2 = (_match, initialChar, _separator, chr) => initialChar + (chr ? chr.toUpperCase() : '');\n\n  let parts = str.split('/');\n\n  for (let i = 0; i < parts.length; i++) {\n    parts[i] = parts[i].replace(STRING_CLASSIFY_REGEXP_1, replace1).replace(STRING_CLASSIFY_REGEXP_2, replace2);\n  }\n\n  return parts.join('/').replace(STRING_CLASSIFY_REGEXP_3, (match\n  /*, separator, chr */\n  ) => match.toUpperCase());\n});\nconst STRING_UNDERSCORE_REGEXP_1 = /([a-z\\d])([A-Z]+)/g;\nconst STRING_UNDERSCORE_REGEXP_2 = /-|\\s+/g;\nconst UNDERSCORE_CACHE = new Cache(1000, str => str.replace(STRING_UNDERSCORE_REGEXP_1, '$1_$2').replace(STRING_UNDERSCORE_REGEXP_2, '_').toLowerCase());\nconst STRING_CAPITALIZE_REGEXP = /(^|\\/)([a-z\\u00C0-\\u024F])/g;\nconst CAPITALIZE_CACHE = new Cache(1000, str => str.replace(STRING_CAPITALIZE_REGEXP, (match\n/*, separator, chr */\n) => match.toUpperCase()));\nconst STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\nconst DECAMELIZE_CACHE = new Cache(1000, str => str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase());\n/**\n  Defines string helper methods including string formatting and localization.\n  Unless `EmberENV.EXTEND_PROTOTYPES.String` is `false` these methods will also be\n  added to the `String.prototype` as well.\n\n  @class String\n  @public\n*/\n\nfunction _fmt(str, formats) {\n  // first, replace any ORDERED replacements.\n  let idx = 0; // the current index for non-numerical replacements\n\n  return str.replace(/%@([0-9]+)?/g, (_s, argIndex) => {\n    let i = argIndex ? parseInt(argIndex, 10) - 1 : idx++;\n    let r = i < formats.length ? formats[i] : undefined;\n    return typeof r === 'string' ? r : r === null ? '(null)' : r === undefined ? '' : String(r);\n  });\n}\n/**\n  Formats the passed string, but first looks up the string in the localized\n  strings hash. This is a convenient way to localize text.\n\n  Note that it is traditional but not required to prefix localized string\n  keys with an underscore or other character so you can easily identify\n  localized strings.\n\n  ```javascript\n  import { loc } from '@ember/string';\n\n  Ember.STRINGS = {\n    '_Hello World': 'Bonjour le monde',\n    '_Hello %@ %@': 'Bonjour %@ %@'\n  };\n\n  loc(\"_Hello World\");  // 'Bonjour le monde';\n  loc(\"_Hello %@ %@\", [\"John\", \"Smith\"]);  // \"Bonjour John Smith\";\n  ```\n\n  @method loc\n  @param {String} str The string to format\n  @param {Array} formats Optional array of parameters to interpolate into string.\n  @return {String} formatted string\n  @public\n  @deprecated\n*/\n\n\nexport function loc(str, formats) {\n  deprecate('loc is deprecated, please use a dedicated localization solution like ember-intl. More alternatives listed at https://emberobserver.com/categories/internationalization.', false, {\n    id: 'ember-string.loc',\n    until: '4.0.0',\n    for: 'ember-source',\n    url: 'https://deprecations.emberjs.com/v3.x#toc_ember-string-loc',\n    since: {\n      enabled: '3.24'\n    }\n  });\n\n  if (!Array.isArray(formats) || arguments.length > 2) {\n    formats = Array.prototype.slice.call(arguments, 1);\n  }\n\n  str = getString(str) || str;\n  return _fmt(str, formats);\n}\n/**\n  Splits a string into separate units separated by spaces, eliminating any\n  empty strings in the process. This is a convenience method for split that\n  is mostly useful when applied to the `String.prototype`.\n\n  ```javascript\n  import { w } from '@ember/string';\n\n  w(\"alpha beta gamma\").forEach(function(key) {\n    console.log(key);\n  });\n\n  // > alpha\n  // > beta\n  // > gamma\n  ```\n\n  @method w\n  @param {String} str The string to split\n  @return {Array} array containing the split strings\n  @public\n*/\n\nexport function w(str) {\n  return str.split(/\\s+/);\n}\n/**\n  Converts a camelized string into all lower case separated by underscores.\n\n  ```javascript\n  import { decamelize } from '@ember/string';\n\n  decamelize('innerHTML');          // 'inner_html'\n  decamelize('action_name');        // 'action_name'\n  decamelize('css-class-name');     // 'css-class-name'\n  decamelize('my favorite items');  // 'my favorite items'\n  ```\n\n  @method decamelize\n  @param {String} str The string to decamelize.\n  @return {String} the decamelized string.\n  @public\n*/\n\nexport function decamelize(str) {\n  return DECAMELIZE_CACHE.get(str);\n}\n/**\n  Replaces underscores, spaces, or camelCase with dashes.\n\n  ```javascript\n  import { dasherize } from '@ember/string';\n\n  dasherize('innerHTML');                // 'inner-html'\n  dasherize('action_name');              // 'action-name'\n  dasherize('css-class-name');           // 'css-class-name'\n  dasherize('my favorite items');        // 'my-favorite-items'\n  dasherize('privateDocs/ownerInvoice';  // 'private-docs/owner-invoice'\n  ```\n\n  @method dasherize\n  @param {String} str The string to dasherize.\n  @return {String} the dasherized string.\n  @public\n*/\n\nexport function dasherize(str) {\n  return STRING_DASHERIZE_CACHE.get(str);\n}\n/**\n  Returns the lowerCamelCase form of a string.\n\n  ```javascript\n  import { camelize } from '@ember/string';\n\n  camelize('innerHTML');                   // 'innerHTML'\n  camelize('action_name');                 // 'actionName'\n  camelize('css-class-name');              // 'cssClassName'\n  camelize('my favorite items');           // 'myFavoriteItems'\n  camelize('My Favorite Items');           // 'myFavoriteItems'\n  camelize('private-docs/owner-invoice');  // 'privateDocs/ownerInvoice'\n  ```\n\n  @method camelize\n  @param {String} str The string to camelize.\n  @return {String} the camelized string.\n  @public\n*/\n\nexport function camelize(str) {\n  return CAMELIZE_CACHE.get(str);\n}\n/**\n  Returns the UpperCamelCase form of a string.\n\n  ```javascript\n  import { classify } from '@ember/string';\n\n  classify('innerHTML');                   // 'InnerHTML'\n  classify('action_name');                 // 'ActionName'\n  classify('css-class-name');              // 'CssClassName'\n  classify('my favorite items');           // 'MyFavoriteItems'\n  classify('private-docs/owner-invoice');  // 'PrivateDocs/OwnerInvoice'\n  ```\n\n  @method classify\n  @param {String} str the string to classify\n  @return {String} the classified string\n  @public\n*/\n\nexport function classify(str) {\n  return CLASSIFY_CACHE.get(str);\n}\n/**\n  More general than decamelize. Returns the lower\\_case\\_and\\_underscored\n  form of a string.\n\n  ```javascript\n  import { underscore } from '@ember/string';\n\n  underscore('innerHTML');                 // 'inner_html'\n  underscore('action_name');               // 'action_name'\n  underscore('css-class-name');            // 'css_class_name'\n  underscore('my favorite items');         // 'my_favorite_items'\n  underscore('privateDocs/ownerInvoice');  // 'private_docs/owner_invoice'\n  ```\n\n  @method underscore\n  @param {String} str The string to underscore.\n  @return {String} the underscored string.\n  @public\n*/\n\nexport function underscore(str) {\n  return UNDERSCORE_CACHE.get(str);\n}\n/**\n  Returns the Capitalized form of a string\n\n  ```javascript\n  import { capitalize } from '@ember/string';\n\n  capitalize('innerHTML')                 // 'InnerHTML'\n  capitalize('action_name')               // 'Action_name'\n  capitalize('css-class-name')            // 'Css-class-name'\n  capitalize('my favorite items')         // 'My favorite items'\n  capitalize('privateDocs/ownerInvoice'); // 'PrivateDocs/ownerInvoice'\n  ```\n\n  @method capitalize\n  @param {String} str The string to capitalize.\n  @return {String} The capitalized string.\n  @public\n*/\n\nexport function capitalize(str) {\n  return CAPITALIZE_CACHE.get(str);\n}\n\nfunction deprecateImportFromString(name, message = `Importing ${name} from '@ember/string' is deprecated. Please import ${name} from '@ember/template' instead.`) {\n  // Disabling this deprecation due to unintended errors in 3.25\n  // See https://github.com/emberjs/ember.js/issues/19393 fo more information.\n  deprecate(message, true, {\n    id: 'ember-string.htmlsafe-ishtmlsafe',\n    for: 'ember-source',\n    since: {\n      enabled: '3.25'\n    },\n    until: '4.0.0',\n    url: 'https://deprecations.emberjs.com/v3.x/#toc_ember-string-htmlsafe-ishtmlsafe'\n  });\n}\n\nexport function htmlSafe(str) {\n  deprecateImportFromString('htmlSafe');\n  return internalHtmlSafe(str);\n}\nexport function isHTMLSafe(str) {\n  deprecateImportFromString('isHTMLSafe');\n  return internalIsHtmlSafe(str);\n}\n\nif (ENV.EXTEND_PROTOTYPES.String) {\n  let deprecateEmberStringPrototypeExtension = function (name, fn, message = `String prototype extensions are deprecated. Please import ${name} from '@ember/string' instead.`) {\n    return function () {\n      deprecate(message, false, {\n        id: 'ember-string.prototype-extensions',\n        for: 'ember-source',\n        since: {\n          enabled: '3.24'\n        },\n        until: '4.0.0',\n        url: 'https://deprecations.emberjs.com/v3.x/#toc_ember-string-prototype_extensions'\n      });\n      return fn(this, ...arguments);\n    };\n  };\n\n  Object.defineProperties(String.prototype, {\n    /**\n      See [String.w](/ember/release/classes/String/methods/w?anchor=w).\n           @method w\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    w: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('w', w)\n    },\n\n    /**\n      See [String.loc](/ember/release/classes/String/methods/loc?anchor=loc).\n           @method loc\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    loc: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n\n      value(...args) {\n        return loc(this, args);\n      }\n\n    },\n\n    /**\n      See [String.camelize](/ember/release/classes/String/methods/camelize?anchor=camelize).\n           @method camelize\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    camelize: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('camelize', camelize)\n    },\n\n    /**\n      See [String.decamelize](/ember/release/classes/String/methods/decamelize?anchor=decamelize).\n           @method decamelize\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    decamelize: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('decamelize', decamelize)\n    },\n\n    /**\n      See [String.dasherize](/ember/release/classes/String/methods/dasherize?anchor=dasherize).\n           @method dasherize\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    dasherize: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('dasherize', dasherize)\n    },\n\n    /**\n      See [String.underscore](/ember/release/classes/String/methods/underscore?anchor=underscore).\n           @method underscore\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    underscore: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('underscore', underscore)\n    },\n\n    /**\n      See [String.classify](/ember/release/classes/String/methods/classify?anchor=classify).\n           @method classify\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    classify: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('classify', classify)\n    },\n\n    /**\n      See [String.capitalize](/ember/release/classes/String/methods/capitalize?anchor=capitalize).\n           @method capitalize\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    capitalize: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('capitalize', capitalize)\n    }\n  });\n}","// STATE within a module is frowned upon, this exists\n// to support Ember.STRINGS but shield ember internals from this legacy global\n// API.\nlet STRINGS = {};\nexport function setStrings(strings) {\n  STRINGS = strings;\n}\nexport function getStrings() {\n  return STRINGS;\n}\nexport function getString(name) {\n  return STRINGS[name];\n}","import { DEBUG } from '@glimmer/env';\nexport { compile as compileTemplate } from 'ember-template-compiler';\nexport let precompileTemplate;\n\nif (DEBUG) {\n  precompileTemplate = () => {\n    throw new Error('Attempted to call `precompileTemplate` at runtime, but this API is meant to be used at compile time. You should use `compileTemplate` instead.');\n  };\n}","export { templateFactory as createTemplateFactory } from '@glimmer/opcode-compiler';","export { htmlSafe, isHTMLSafe } from '@ember/-internals/glimmer';","import { Test } from 'ember-testing';\nexport default Test.Adapter;","import require, { has } from 'require';\nexport let registerAsyncHelper;\nexport let registerHelper;\nexport let registerWaiter;\nexport let unregisterHelper;\nexport let unregisterWaiter;\n\nif (has('ember-testing')) {\n  let {\n    Test\n  } = require('ember-testing');\n\n  registerAsyncHelper = Test.registerAsyncHelper;\n  registerHelper = Test.registerHelper;\n  registerWaiter = Test.registerWaiter;\n  unregisterHelper = Test.unregisterHelper;\n  unregisterWaiter = Test.unregisterWaiter;\n} else {\n  let testingNotAvailableMessage = () => {\n    throw new Error('Attempted to use test utilities, but `ember-testing` was not included');\n  };\n\n  registerAsyncHelper = testingNotAvailableMessage;\n  registerHelper = testingNotAvailableMessage;\n  registerWaiter = testingNotAvailableMessage;\n  unregisterHelper = testingNotAvailableMessage;\n  unregisterWaiter = testingNotAvailableMessage;\n}","export { isNone, isBlank, isEmpty, isPresent } from '@ember/-internals/metal';\nexport { tryInvoke } from '@ember/-internals/utils';\nexport { compare, isEqual, typeOf } from '@ember/-internals/runtime';","export { default as VERSION } from 'ember/version';","import { DEBUG } from '@glimmer/env';\nimport { debugToString } from '@glimmer/util';\nimport { scheduleDestroy, scheduleDestroyed } from '@glimmer/global-context';\n\nlet DESTROYABLE_META = new WeakMap();\n\nfunction push(collection, newItem) {\n  if (collection === null) {\n    return newItem;\n  } else if (Array.isArray(collection)) {\n    collection.push(newItem);\n    return collection;\n  } else {\n    return [collection, newItem];\n  }\n}\n\nfunction iterate(collection, fn) {\n  if (Array.isArray(collection)) {\n    for (let i = 0; i < collection.length; i++) {\n      fn(collection[i]);\n    }\n  } else if (collection !== null) {\n    fn(collection);\n  }\n}\n\nfunction remove(collection, item, message) {\n  if (DEBUG) {\n    let collectionIsItem = collection === item;\n    let collectionContainsItem = Array.isArray(collection) && collection.indexOf(item) !== -1;\n\n    if (!collectionIsItem && !collectionContainsItem) {\n      throw new Error(String(message));\n    }\n  }\n\n  if (Array.isArray(collection) && collection.length > 1) {\n    let index = collection.indexOf(item);\n    collection.splice(index, 1);\n    return collection;\n  } else {\n    return null;\n  }\n}\n\nfunction getDestroyableMeta(destroyable) {\n  let meta = DESTROYABLE_META.get(destroyable);\n\n  if (meta === undefined) {\n    meta = {\n      parents: null,\n      children: null,\n      eagerDestructors: null,\n      destructors: null,\n      state: 0\n      /* Live */\n\n    };\n\n    if (DEBUG) {\n      meta.source = destroyable;\n    }\n\n    DESTROYABLE_META.set(destroyable, meta);\n  }\n\n  return meta;\n}\n\nfunction associateDestroyableChild(parent, child) {\n  if (DEBUG && isDestroying(parent)) {\n    throw new Error('Attempted to associate a destroyable child with an object that is already destroying or destroyed');\n  }\n\n  let parentMeta = getDestroyableMeta(parent);\n  let childMeta = getDestroyableMeta(child);\n  parentMeta.children = push(parentMeta.children, child);\n  childMeta.parents = push(childMeta.parents, parent);\n  return child;\n}\nfunction registerDestructor(destroyable, destructor, eager = false) {\n  if (DEBUG && isDestroying(destroyable)) {\n    throw new Error('Attempted to register a destructor with an object that is already destroying or destroyed');\n  }\n\n  let meta = getDestroyableMeta(destroyable);\n  let destructorsKey = eager === true ? 'eagerDestructors' : 'destructors';\n  meta[destructorsKey] = push(meta[destructorsKey], destructor);\n  return destructor;\n}\nfunction unregisterDestructor(destroyable, destructor, eager = false) {\n  if (DEBUG && isDestroying(destroyable)) {\n    throw new Error('Attempted to unregister a destructor with an object that is already destroying or destroyed');\n  }\n\n  let meta = getDestroyableMeta(destroyable);\n  let destructorsKey = eager === true ? 'eagerDestructors' : 'destructors';\n  meta[destructorsKey] = remove(meta[destructorsKey], destructor, DEBUG && 'attempted to remove a destructor that was not registered with the destroyable');\n} ////////////\n\nfunction destroy(destroyable) {\n  let meta = getDestroyableMeta(destroyable);\n  if (meta.state >= 1\n  /* Destroying */\n  ) return;\n  let {\n    parents,\n    children,\n    eagerDestructors,\n    destructors\n  } = meta;\n  meta.state = 1\n  /* Destroying */\n  ;\n  iterate(children, destroy);\n  iterate(eagerDestructors, destructor => destructor(destroyable));\n  iterate(destructors, destructor => scheduleDestroy(destroyable, destructor));\n  scheduleDestroyed(() => {\n    iterate(parents, parent => removeChildFromParent(destroyable, parent));\n    meta.state = 2\n    /* Destroyed */\n    ;\n  });\n}\n\nfunction removeChildFromParent(child, parent) {\n  let parentMeta = getDestroyableMeta(parent);\n\n  if (parentMeta.state === 0\n  /* Live */\n  ) {\n      parentMeta.children = remove(parentMeta.children, child, DEBUG && \"attempted to remove child from parent, but the parent's children did not contain the child. This is likely a bug with destructors.\");\n    }\n}\n\nfunction destroyChildren(destroyable) {\n  let {\n    children\n  } = getDestroyableMeta(destroyable);\n  iterate(children, destroy);\n}\nfunction _hasDestroyableChildren(destroyable) {\n  let meta = DESTROYABLE_META.get(destroyable);\n  return meta === undefined ? false : meta.children !== null;\n}\nfunction isDestroying(destroyable) {\n  let meta = DESTROYABLE_META.get(destroyable);\n  return meta === undefined ? false : meta.state >= 1\n  /* Destroying */\n  ;\n}\nfunction isDestroyed(destroyable) {\n  let meta = DESTROYABLE_META.get(destroyable);\n  return meta === undefined ? false : meta.state >= 2\n  /* Destroyed */\n  ;\n} ////////////\n\nlet enableDestroyableTracking;\nlet assertDestroyablesDestroyed;\n\nif (DEBUG) {\n  let isTesting = false;\n\n  enableDestroyableTracking = () => {\n    if (isTesting) {\n      // Reset destroyable meta just in case, before throwing the error\n      DESTROYABLE_META = new WeakMap();\n      throw new Error('Attempted to start destroyable testing, but you did not end the previous destroyable test. Did you forget to call `assertDestroyablesDestroyed()`');\n    }\n\n    isTesting = true;\n    DESTROYABLE_META = new Map();\n  };\n\n  assertDestroyablesDestroyed = () => {\n    if (!isTesting) {\n      throw new Error('Attempted to assert destroyables destroyed, but you did not start a destroyable test. Did you forget to call `enableDestroyableTracking()`');\n    }\n\n    isTesting = false;\n    let map = DESTROYABLE_META;\n    DESTROYABLE_META = new WeakMap();\n    let undestroyed = [];\n    map.forEach(meta => {\n      if (meta.state !== 2\n      /* Destroyed */\n      ) {\n          undestroyed.push(meta.source);\n        }\n    });\n\n    if (undestroyed.length > 0) {\n      let objectsToString = undestroyed.map(debugToString).join('\\n    ');\n      let error = new Error(`Some destroyables were not destroyed during this test:\\n    ${objectsToString}`);\n      error.destroyables = undestroyed;\n      throw error;\n    }\n  };\n}\n\nexport { associateDestroyableChild, registerDestructor, unregisterDestructor, destroy, destroyChildren, _hasDestroyableChildren, isDestroying, isDestroyed, enableDestroyableTracking, assertDestroyablesDestroyed };\n","import { DEBUG } from '@glimmer/env';\n\nclass InstructionEncoderImpl {\n  constructor(buffer) {\n    this.buffer = buffer;\n    this.size = 0;\n  }\n\n  encode(type, machine) {\n    if (type > 255\n    /* TYPE_SIZE */\n    ) {\n        throw new Error(`Opcode type over 8-bits. Got ${type}.`);\n      }\n\n    let first = type | machine | arguments.length - 2 << 8\n    /* ARG_SHIFT */\n    ;\n    this.buffer.push(first);\n\n    for (let i = 2; i < arguments.length; i++) {\n      let op = arguments[i];\n\n      if (DEBUG && typeof op === 'number' && op > 2147483647\n      /* MAX_SIZE */\n      ) {\n          throw new Error(`Operand over 32-bits. Got ${op}.`);\n        }\n\n      this.buffer.push(op);\n    }\n\n    this.size = this.buffer.length;\n  }\n\n  patch(position, target) {\n    if (this.buffer[position + 1] === -1) {\n      this.buffer[position + 1] = target;\n    } else {\n      throw new Error('Trying to patch operand in populated slot instead of a reserved slot.');\n    }\n  }\n\n}\n\nexport { InstructionEncoderImpl };\n","const DEBUG = false;\nconst CI = false;\n\nexport { DEBUG, CI };\n","import { DEBUG } from '@glimmer/env';\n\n/**\n * This package contains global context functions for Glimmer. These functions\n * are set by the embedding environment and must be set before initial render.\n *\n * These functions should meet the following criteria:\n *\n * - Must be provided by the embedder, due to having framework specific\n *   behaviors (e.g. interop with classic Ember behaviors that should not be\n *   upstreamed) or to being out of scope for the VM (e.g. scheduling a\n *   revalidation)\n * - Never differ between render roots\n * - Never change over time\n *\n */\n\n/**\n * Schedules a VM revalidation.\n *\n * Note: this has a default value so that tags can warm themselves when first loaded.\n */\n\nlet scheduleRevalidate = () => {};\n/**\n * Schedules a destructor to run\n *\n * @param destroyable The destroyable being destroyed\n * @param destructor The destructor being scheduled\n */\n\nlet scheduleDestroy;\n/**\n * Finalizes destruction\n *\n * @param finalizer finalizer function\n */\n\nlet scheduleDestroyed;\n/**\n * Hook to provide iterators for `{{each}}` loops\n *\n * @param value The value to create an iterator for\n */\n\nlet toIterator;\n/**\n * Hook to specify truthiness within Glimmer templates\n *\n * @param value The value to convert to a boolean\n */\n\nlet toBool;\n/**\n * Hook for specifying how Glimmer should access properties in cases where it\n * needs to. For instance, accessing an object's values in templates.\n *\n * @param obj The object provided to get a value from\n * @param path The path to get the value from\n */\n\nlet getProp;\n/**\n * Hook for specifying how Glimmer should update props in cases where it needs\n * to. For instance, when updating a template reference (e.g. 2-way-binding)\n *\n * @param obj The object provided to get a value from\n * @param prop The prop to set the value at\n * @param value The value to set the value to\n */\n\nlet setProp;\n/**\n * Hook for specifying how Glimmer should access paths in cases where it needs\n * to. For instance, the `key` value of `{{each}}` loops.\n *\n * @param obj The object provided to get a value from\n * @param path The path to get the value from\n */\n\nlet getPath;\n/**\n * Hook for specifying how Glimmer should update paths in cases where it needs\n * to. For instance, when updating a template reference (e.g. 2-way-binding)\n *\n * @param obj The object provided to get a value from\n * @param path The path to get the value from\n */\n\nlet setPath;\n/**\n * Hook to warn if a style binding string or value was not marked as trusted\n * (e.g. HTMLSafe)\n */\n\nlet warnIfStyleNotTrusted;\n/**\n * Hook to customize assertion messages in the VM. Usages can be stripped out\n * by using the @glimmer/vm-babel-plugins package.\n */\n\nlet assert;\n/**\n * Hook to customize deprecation messages in the VM. Usages can be stripped out\n * by using the @glimmer/vm-babel-plugins package.\n */\n\nlet deprecate;\nlet globalContextWasSet = false;\nfunction setGlobalContext(context) {\n  if (DEBUG) {\n    if (globalContextWasSet) {\n      throw new Error('Attempted to set the global context twice. This should only be set once.');\n    }\n\n    globalContextWasSet = true;\n  }\n\n  scheduleRevalidate = context.scheduleRevalidate;\n  scheduleDestroy = context.scheduleDestroy;\n  scheduleDestroyed = context.scheduleDestroyed;\n  toIterator = context.toIterator;\n  toBool = context.toBool;\n  getProp = context.getProp;\n  setProp = context.setProp;\n  getPath = context.getPath;\n  setPath = context.setPath;\n  warnIfStyleNotTrusted = context.warnIfStyleNotTrusted;\n  assert = context.assert;\n  deprecate = context.deprecate;\n}\nlet assertGlobalContextWasSet;\nlet testOverrideGlobalContext;\n\nif (DEBUG) {\n  assertGlobalContextWasSet = () => {\n    if (globalContextWasSet === false) {\n      throw new Error('The global context for Glimmer VM was not set. You must set these global context functions to let Glimmer VM know how to accomplish certain operations. You can do this by importing `setGlobalContext` from `@glimmer/global-context`');\n    }\n  };\n\n  testOverrideGlobalContext = context => {\n    let originalGlobalContext = globalContextWasSet ? {\n      scheduleRevalidate,\n      scheduleDestroy,\n      scheduleDestroyed,\n      toIterator,\n      toBool,\n      getProp,\n      setProp,\n      getPath,\n      setPath,\n      warnIfStyleNotTrusted,\n      assert,\n      deprecate\n    } : null;\n\n    if (context === null) {\n      globalContextWasSet = false;\n    } else {\n      globalContextWasSet = true;\n    } // We use `undefined as any` here to unset the values when resetting the\n    // context at the end of a test.\n\n\n    scheduleRevalidate = (context === null || context === void 0 ? void 0 : context.scheduleRevalidate) || undefined;\n    scheduleDestroy = (context === null || context === void 0 ? void 0 : context.scheduleDestroy) || undefined;\n    scheduleDestroyed = (context === null || context === void 0 ? void 0 : context.scheduleDestroyed) || undefined;\n    toIterator = (context === null || context === void 0 ? void 0 : context.toIterator) || undefined;\n    toBool = (context === null || context === void 0 ? void 0 : context.toBool) || undefined;\n    getProp = (context === null || context === void 0 ? void 0 : context.getProp) || undefined;\n    setProp = (context === null || context === void 0 ? void 0 : context.setProp) || undefined;\n    getPath = (context === null || context === void 0 ? void 0 : context.getPath) || undefined;\n    setPath = (context === null || context === void 0 ? void 0 : context.setPath) || undefined;\n    warnIfStyleNotTrusted = (context === null || context === void 0 ? void 0 : context.warnIfStyleNotTrusted) || undefined;\n    assert = (context === null || context === void 0 ? void 0 : context.assert) || undefined;\n    deprecate = (context === null || context === void 0 ? void 0 : context.deprecate) || undefined;\n    return originalGlobalContext;\n  };\n}\n\nexport default setGlobalContext;\nexport { scheduleRevalidate, scheduleDestroy, scheduleDestroyed, toIterator, toBool, getProp, setProp, getPath, setPath, warnIfStyleNotTrusted, assert, deprecate, assertGlobalContextWasSet, testOverrideGlobalContext };\n","class Storage {\n  constructor() {\n    this.array = [];\n    this.next = 0;\n  }\n\n  add(element) {\n    let {\n      next: slot,\n      array\n    } = this;\n\n    if (slot === array.length) {\n      this.next++;\n    } else {\n      let prev = array[slot];\n      this.next = prev;\n    }\n\n    this.array[slot] = element;\n    return slot;\n  }\n\n  deref(pointer) {\n    return this.array[pointer];\n  }\n\n  drop(pointer) {\n    this.array[pointer] = this.next;\n    this.next = pointer;\n  }\n\n}\n\nclass Stack {\n  constructor(vec = []) {\n    this.vec = vec;\n  }\n\n  clone() {\n    return new Stack(this.vec.slice());\n  }\n\n  sliceFrom(start) {\n    return new Stack(this.vec.slice(start));\n  }\n\n  slice(start, end) {\n    return new Stack(this.vec.slice(start, end));\n  }\n\n  copy(from, to) {\n    this.vec[to] = this.vec[from];\n  } // TODO: how to model u64 argument?\n\n\n  writeRaw(pos, value) {\n    // TODO: Grow?\n    this.vec[pos] = value;\n  } // TODO: partially decoded enum?\n\n\n  getRaw(pos) {\n    return this.vec[pos];\n  }\n\n  reset() {\n    this.vec.length = 0;\n  }\n\n  len() {\n    return this.vec.length;\n  }\n\n}\n\nexport { Storage, Stack };\n","import { DEBUG } from '@glimmer/env';\nimport { debugToString, _WeakSet, HAS_NATIVE_PROXY, assign, dict } from '@glimmer/util';\nimport { valueForRef, createConstRef, createComputeRef, UNDEFINED_REFERENCE } from '@glimmer/reference';\nimport { track, deprecateMutationsInTrackingTransaction, createUpdatableTag, untrack } from '@glimmer/validator';\nimport { registerDestructor, associateDestroyableChild } from '@glimmer/destroyable';\nimport { setOwner } from '@glimmer/owner';\n\nconst COMPONENT_MANAGERS = new WeakMap();\nconst MODIFIER_MANAGERS = new WeakMap();\nconst HELPER_MANAGERS = new WeakMap(); ///////////\n\nconst getPrototypeOf = Object.getPrototypeOf;\n\nfunction setManager(map, manager, obj) {\n  if (DEBUG && (typeof obj !== 'object' || obj === null) && typeof obj !== 'function') {\n    throw new Error(`Attempted to set a manager on a non-object value. Managers can only be associated with objects or functions. Value was ${debugToString(obj)}`);\n  }\n\n  if (DEBUG && map.has(obj)) {\n    throw new Error(`Attempted to set the same type of manager multiple times on a value. You can only associate one manager of each type with a given value. Value was ${debugToString(obj)}`);\n  }\n\n  map.set(obj, manager);\n  return obj;\n}\n\nfunction getManager(map, obj) {\n  let pointer = obj;\n\n  while (pointer !== undefined && pointer !== null) {\n    const manager = map.get(pointer);\n\n    if (manager !== undefined) {\n      return manager;\n    }\n\n    pointer = getPrototypeOf(pointer);\n  }\n\n  return undefined;\n} ///////////\n\n\nfunction setInternalModifierManager(manager, definition) {\n  return setManager(MODIFIER_MANAGERS, manager, definition);\n}\nfunction getInternalModifierManager(definition, isOptional) {\n  if (DEBUG && typeof definition !== 'function' && (typeof definition !== 'object' || definition === null)) {\n    throw new Error(`Attempted to use a value as a modifier, but it was not an object or function. Modifier definitions must be objects or functions with an associated modifier manager. The value was: ${definition}`);\n  }\n\n  const manager = getManager(MODIFIER_MANAGERS, definition);\n\n  if (manager === undefined) {\n    if (isOptional === true) {\n      return null;\n    } else if (DEBUG) {\n      throw new Error(`Attempted to load a modifier, but there wasn't a modifier manager associated with the definition. The definition was: ${debugToString(definition)}`);\n    }\n  }\n\n  return manager;\n}\nfunction setInternalHelperManager(manager, definition) {\n  return setManager(HELPER_MANAGERS, manager, definition);\n}\nfunction getInternalHelperManager(definition, isOptional) {\n  if (DEBUG && typeof definition !== 'function' && (typeof definition !== 'object' || definition === null)) {\n    throw new Error(`Attempted to use a value as a helper, but it was not an object or function. Helper definitions must be objects or functions with an associated helper manager. The value was: ${definition}`);\n  }\n\n  const manager = getManager(HELPER_MANAGERS, definition);\n\n  if (manager === undefined) {\n    if (isOptional === true) {\n      return null;\n    } else if (DEBUG) {\n      throw new Error(`Attempted to load a helper, but there wasn't a helper manager associated with the definition. The definition was: ${debugToString(definition)}`);\n    }\n  }\n\n  return manager;\n}\nfunction setInternalComponentManager(factory, obj) {\n  return setManager(COMPONENT_MANAGERS, factory, obj);\n}\nfunction getInternalComponentManager(definition, isOptional) {\n  if (DEBUG && typeof definition !== 'function' && (typeof definition !== 'object' || definition === null)) {\n    throw new Error(`Attempted to use a value as a component, but it was not an object or function. Component definitions must be objects or functions with an associated component manager. The value was: ${definition}`);\n  }\n\n  const manager = getManager(COMPONENT_MANAGERS, definition);\n\n  if (manager === undefined) {\n    if (isOptional === true) {\n      return null;\n    } else if (DEBUG) {\n      throw new Error(`Attempted to load a component, but there wasn't a component manager associated with the definition. The definition was: ${debugToString(definition)}`);\n    }\n  }\n\n  return manager;\n} ///////////\n\nfunction hasInternalComponentManager(definition) {\n  return getManager(COMPONENT_MANAGERS, definition) !== undefined;\n}\nfunction hasInternalHelperManager(definition) {\n  return getManager(HELPER_MANAGERS, definition) !== undefined;\n}\nfunction hasInternalModifierManager(definition) {\n  return getManager(MODIFIER_MANAGERS, definition) !== undefined;\n}\n\nconst FROM_CAPABILITIES = DEBUG ? new _WeakSet() : undefined;\nfunction buildCapabilities(capabilities) {\n  if (DEBUG) {\n    FROM_CAPABILITIES.add(capabilities);\n    Object.freeze(capabilities);\n  }\n\n  return capabilities;\n}\n/**\n * Converts a ComponentCapabilities object into a 32-bit integer representation.\n */\n\nfunction capabilityFlagsFrom(capabilities) {\n  return 0 | (capabilities.dynamicLayout ? 1\n  /* DynamicLayout */\n  : 0) | (capabilities.dynamicTag ? 2\n  /* DynamicTag */\n  : 0) | (capabilities.prepareArgs ? 4\n  /* PrepareArgs */\n  : 0) | (capabilities.createArgs ? 8\n  /* CreateArgs */\n  : 0) | (capabilities.attributeHook ? 16\n  /* AttributeHook */\n  : 0) | (capabilities.elementHook ? 32\n  /* ElementHook */\n  : 0) | (capabilities.dynamicScope ? 64\n  /* DynamicScope */\n  : 0) | (capabilities.createCaller ? 128\n  /* CreateCaller */\n  : 0) | (capabilities.updateHook ? 256\n  /* UpdateHook */\n  : 0) | (capabilities.createInstance ? 512\n  /* CreateInstance */\n  : 0) | (capabilities.wrapped ? 1024\n  /* Wrapped */\n  : 0) | (capabilities.willDestroy ? 2048\n  /* WillDestroy */\n  : 0) | (capabilities.hasSubOwner ? 4096\n  /* HasSubOwner */\n  : 0);\n}\nfunction managerHasCapability(_manager, capabilities, capability) {\n  return !!(capabilities & capability);\n}\nfunction hasCapability(capabilities, capability) {\n  return !!(capabilities & capability);\n}\n\nconst CUSTOM_TAG_FOR = new WeakMap();\nfunction getCustomTagFor(obj) {\n  return CUSTOM_TAG_FOR.get(obj);\n}\nfunction setCustomTagFor(obj, customTagFn) {\n  CUSTOM_TAG_FOR.set(obj, customTagFn);\n}\n\nfunction convertToInt(prop) {\n  if (typeof prop === 'symbol') return null;\n  const num = Number(prop);\n  if (isNaN(num)) return null;\n  return num % 1 === 0 ? num : null;\n}\n\nfunction tagForNamedArg(namedArgs, key) {\n  return track(() => {\n    if (key in namedArgs) {\n      valueForRef(namedArgs[key]);\n    }\n  });\n}\n\nfunction tagForPositionalArg(positionalArgs, key) {\n  return track(() => {\n    if (key === '[]') {\n      // consume all of the tags in the positional array\n      positionalArgs.forEach(valueForRef);\n    }\n\n    const parsed = convertToInt(key);\n\n    if (parsed !== null && parsed < positionalArgs.length) {\n      // consume the tag of the referenced index\n      valueForRef(positionalArgs[parsed]);\n    }\n  });\n}\n\nlet argsProxyFor;\n\nclass NamedArgsProxy {\n  constructor(named) {\n    this.named = named;\n  }\n\n  get(_target, prop) {\n    const ref = this.named[prop];\n\n    if (ref !== undefined) {\n      return valueForRef(ref);\n    }\n  }\n\n  has(_target, prop) {\n    return prop in this.named;\n  }\n\n  ownKeys() {\n    return Object.keys(this.named);\n  }\n\n  isExtensible() {\n    return false;\n  }\n\n  getOwnPropertyDescriptor(_target, prop) {\n    if (DEBUG && !(prop in this.named)) {\n      throw new Error(`args proxies do not have real property descriptors, so you should never need to call getOwnPropertyDescriptor yourself. This code exists for enumerability, such as in for-in loops and Object.keys(). Attempted to get the descriptor for \\`${String(prop)}\\``);\n    }\n\n    return {\n      enumerable: true,\n      configurable: true\n    };\n  }\n\n}\n\nclass PositionalArgsProxy {\n  constructor(positional) {\n    this.positional = positional;\n  }\n\n  get(target, prop) {\n    let {\n      positional\n    } = this;\n\n    if (prop === 'length') {\n      return positional.length;\n    }\n\n    const parsed = convertToInt(prop);\n\n    if (parsed !== null && parsed < positional.length) {\n      return valueForRef(positional[parsed]);\n    }\n\n    return target[prop];\n  }\n\n  isExtensible() {\n    return false;\n  }\n\n  has(_target, prop) {\n    const parsed = convertToInt(prop);\n    return parsed !== null && parsed < this.positional.length;\n  }\n\n}\n\nif (HAS_NATIVE_PROXY) {\n  argsProxyFor = (capturedArgs, type) => {\n    const {\n      named,\n      positional\n    } = capturedArgs;\n\n    let getNamedTag = (_obj, key) => tagForNamedArg(named, key);\n\n    let getPositionalTag = (_obj, key) => tagForPositionalArg(positional, key);\n\n    const namedHandler = new NamedArgsProxy(named);\n    const positionalHandler = new PositionalArgsProxy(positional);\n    const namedTarget = Object.create(null);\n    const positionalTarget = [];\n\n    if (DEBUG) {\n      const setHandler = function (_target, prop) {\n        throw new Error(`You attempted to set ${String(prop)} on the arguments of a component, helper, or modifier. Arguments are immutable and cannot be updated directly, they always represent the values that is passed down. If you want to set default values, you should use a getter and local tracked state instead.`);\n      };\n\n      const forInDebugHandler = () => {\n        throw new Error(`Object.keys() was called on the positional arguments array for a ${type}, which is not supported. This function is a low-level function that should not need to be called for positional argument arrays. You may be attempting to iterate over the array using for...in instead of for...of.`);\n      };\n\n      namedHandler.set = setHandler;\n      positionalHandler.set = setHandler;\n      positionalHandler.ownKeys = forInDebugHandler;\n    }\n\n    const namedProxy = new Proxy(namedTarget, namedHandler);\n    const positionalProxy = new Proxy(positionalTarget, positionalHandler);\n    setCustomTagFor(namedProxy, getNamedTag);\n    setCustomTagFor(positionalProxy, getPositionalTag);\n    return {\n      named: namedProxy,\n      positional: positionalProxy\n    };\n  };\n} else {\n  argsProxyFor = (capturedArgs, _type) => {\n    const {\n      named,\n      positional\n    } = capturedArgs;\n\n    let getNamedTag = (_obj, key) => tagForNamedArg(named, key);\n\n    let getPositionalTag = (_obj, key) => tagForPositionalArg(positional, key);\n\n    let namedProxy = {};\n    let positionalProxy = [];\n    setCustomTagFor(namedProxy, getNamedTag);\n    setCustomTagFor(positionalProxy, getPositionalTag);\n    Object.keys(named).forEach(name => {\n      Object.defineProperty(namedProxy, name, {\n        enumerable: true,\n        configurable: true,\n\n        get() {\n          return valueForRef(named[name]);\n        }\n\n      });\n    });\n    positional.forEach((ref, index) => {\n      Object.defineProperty(positionalProxy, index, {\n        enumerable: true,\n        configurable: true,\n\n        get() {\n          return valueForRef(ref);\n        }\n\n      });\n    });\n\n    if (DEBUG) {\n      // Prevent mutations in development mode. This will not prevent the\n      // proxy from updating, but will prevent assigning new values or pushing\n      // for instance.\n      Object.freeze(namedProxy);\n      Object.freeze(positionalProxy);\n    }\n\n    return {\n      named: namedProxy,\n      positional: positionalProxy\n    };\n  };\n}\n\nconst CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nfunction componentCapabilities(managerAPI, options = {}) {\n  if (DEBUG && managerAPI !== '3.4' && managerAPI !== '3.13') {\n    throw new Error('Invalid component manager compatibility specified');\n  }\n\n  let updateHook = true;\n\n  if (managerAPI === '3.13') {\n    updateHook = Boolean(options.updateHook);\n  }\n\n  return buildCapabilities({\n    asyncLifeCycleCallbacks: Boolean(options.asyncLifecycleCallbacks),\n    destructor: Boolean(options.destructor),\n    updateHook\n  });\n}\nfunction hasAsyncLifeCycleCallbacks(delegate) {\n  return delegate.capabilities.asyncLifeCycleCallbacks;\n}\nfunction hasUpdateHook(delegate) {\n  return delegate.capabilities.updateHook;\n}\nfunction hasAsyncUpdateHook(delegate) {\n  return hasAsyncLifeCycleCallbacks(delegate) && hasUpdateHook(delegate);\n}\nfunction hasDestructors(delegate) {\n  return delegate.capabilities.destructor;\n}\n/**\n  The CustomComponentManager allows addons to provide custom component\n  implementations that integrate seamlessly into Ember. This is accomplished\n  through a delegate, registered with the custom component manager, which\n  implements a set of hooks that determine component behavior.\n\n  To create a custom component manager, instantiate a new CustomComponentManager\n  class and pass the delegate as the first argument:\n\n  ```js\n  let manager = new CustomComponentManager({\n    // ...delegate implementation...\n  });\n  ```\n\n  ## Delegate Hooks\n\n  Throughout the lifecycle of a component, the component manager will invoke\n  delegate hooks that are responsible for surfacing those lifecycle changes to\n  the end developer.\n\n  * `create()` - invoked when a new instance of a component should be created\n  * `update()` - invoked when the arguments passed to a component change\n  * `getContext()` - returns the object that should be\n*/\n\nclass CustomComponentManager {\n  constructor(factory) {\n    this.factory = factory;\n    this.componentManagerDelegates = new WeakMap();\n  }\n\n  getDelegateFor(owner) {\n    let {\n      componentManagerDelegates\n    } = this;\n    let delegate = componentManagerDelegates.get(owner);\n\n    if (delegate === undefined) {\n      let {\n        factory\n      } = this;\n      delegate = factory(owner);\n\n      if (DEBUG && !FROM_CAPABILITIES.has(delegate.capabilities)) {\n        // TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200\n        throw new Error(`Custom component managers must have a \\`capabilities\\` property that is the result of calling the \\`capabilities('3.4' | '3.13')\\` (imported via \\`import { capabilities } from '@ember/component';\\`). Received: \\`${JSON.stringify(delegate.capabilities)}\\` for: \\`${delegate}\\``);\n      }\n\n      componentManagerDelegates.set(owner, delegate);\n    }\n\n    return delegate;\n  }\n\n  create(owner, definition, vmArgs) {\n    let delegate = this.getDelegateFor(owner);\n    let args = argsProxyFor(vmArgs.capture(), 'component');\n    let component;\n\n    if (DEBUG && deprecateMutationsInTrackingTransaction !== undefined) {\n      deprecateMutationsInTrackingTransaction(() => {\n        component = delegate.createComponent(definition, args);\n      });\n    } else {\n      component = delegate.createComponent(definition, args);\n    }\n\n    return new CustomComponentState(component, delegate, args);\n  }\n\n  getDebugName(definition) {\n    return typeof definition === 'function' ? definition.name : definition.toString();\n  }\n\n  update(bucket) {\n    let {\n      delegate\n    } = bucket;\n\n    if (hasUpdateHook(delegate)) {\n      let {\n        component,\n        args\n      } = bucket;\n      delegate.updateComponent(component, args);\n    }\n  }\n\n  didCreate({\n    component,\n    delegate\n  }) {\n    if (hasAsyncLifeCycleCallbacks(delegate)) {\n      delegate.didCreateComponent(component);\n    }\n  }\n\n  didUpdate({\n    component,\n    delegate\n  }) {\n    if (hasAsyncUpdateHook(delegate)) {\n      delegate.didUpdateComponent(component);\n    }\n  }\n\n  didRenderLayout() {}\n\n  didUpdateLayout() {}\n\n  getSelf({\n    component,\n    delegate\n  }) {\n    return createConstRef(delegate.getContext(component), 'this');\n  }\n\n  getDestroyable(bucket) {\n    const {\n      delegate\n    } = bucket;\n\n    if (hasDestructors(delegate)) {\n      const {\n        component\n      } = bucket;\n      registerDestructor(bucket, () => delegate.destroyComponent(component));\n      return bucket;\n    }\n\n    return null;\n  }\n\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n\n}\n/**\n * Stores internal state about a component instance after it's been created.\n */\n\nclass CustomComponentState {\n  constructor(component, delegate, args) {\n    this.component = component;\n    this.delegate = delegate;\n    this.args = args;\n  }\n\n}\n\nfunction modifierCapabilities(managerAPI, optionalFeatures = {}) {\n  if (DEBUG && managerAPI !== '3.13' && managerAPI !== '3.22') {\n    throw new Error('Invalid modifier manager compatibility specified');\n  }\n\n  return buildCapabilities({\n    disableAutoTracking: Boolean(optionalFeatures.disableAutoTracking),\n    useArgsProxy: managerAPI === '3.13' ? false : true,\n    // This capability is used in Ember, exclusively in resolution mode. See the\n    // Ember glimmer resolver for details.\n    passFactoryToCreate: managerAPI === '3.13'\n  });\n}\n/**\n  The CustomModifierManager allows addons to provide custom modifier\n  implementations that integrate seamlessly into Ember. This is accomplished\n  through a delegate, registered with the custom modifier manager, which\n  implements a set of hooks that determine modifier behavior.\n  To create a custom modifier manager, instantiate a new CustomModifierManager\n  class and pass the delegate as the first argument:\n\n  ```js\n  let manager = new CustomModifierManager({\n    // ...delegate implementation...\n  });\n  ```\n\n  ## Delegate Hooks\n\n  Throughout the lifecycle of a modifier, the modifier manager will invoke\n  delegate hooks that are responsible for surfacing those lifecycle changes to\n  the end developer.\n  * `createModifier()` - invoked when a new instance of a modifier should be created\n  * `installModifier()` - invoked when the modifier is installed on the element\n  * `updateModifier()` - invoked when the arguments passed to a modifier change\n  * `destroyModifier()` - invoked when the modifier is about to be destroyed\n*/\n\nclass CustomModifierManager {\n  constructor(factory) {\n    this.factory = factory;\n    this.componentManagerDelegates = new WeakMap();\n  }\n\n  getDelegateFor(owner) {\n    let {\n      componentManagerDelegates\n    } = this;\n    let delegate = componentManagerDelegates.get(owner);\n\n    if (delegate === undefined) {\n      let {\n        factory\n      } = this;\n      delegate = factory(owner);\n\n      if (DEBUG && !FROM_CAPABILITIES.has(delegate.capabilities)) {\n        // TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200\n        throw new Error(`Custom modifier managers must have a \\`capabilities\\` property that is the result of calling the \\`capabilities('3.13' | '3.22')\\` (imported via \\`import { capabilities } from '@ember/modifier';\\`). Received: \\`${JSON.stringify(delegate.capabilities)}\\` for: \\`${delegate}\\``);\n      }\n\n      componentManagerDelegates.set(owner, delegate);\n    }\n\n    return delegate;\n  }\n\n  create(owner, element, definition, capturedArgs) {\n    let delegate = this.getDelegateFor(owner);\n    let {\n      useArgsProxy,\n      passFactoryToCreate\n    } = delegate.capabilities;\n    let argsProxy = argsProxyFor(capturedArgs, 'modifier');\n    let args = useArgsProxy ? argsProxy : reifyArgs(capturedArgs);\n    let instance;\n    let factoryOrDefinition = definition;\n\n    if (passFactoryToCreate) {\n      // Make a fake factory. While not perfect, this should generally prevent\n      // breakage in users of older modifier capabilities.\n      factoryOrDefinition = {\n        create(args) {\n          let params = assign({}, args);\n          setOwner(params, owner);\n          return definition.create(args);\n        },\n\n        class: definition\n      };\n    }\n\n    if (DEBUG && deprecateMutationsInTrackingTransaction !== undefined) {\n      deprecateMutationsInTrackingTransaction(() => {\n        instance = delegate.createModifier(factoryOrDefinition, args);\n      });\n    } else {\n      instance = delegate.createModifier(factoryOrDefinition, args);\n    }\n\n    let tag = createUpdatableTag();\n    let state;\n\n    if (useArgsProxy) {\n      state = {\n        tag,\n        element,\n        delegate,\n        args,\n        modifier: instance\n      };\n    } else {\n      state = {\n        tag,\n        element,\n        modifier: instance,\n        delegate,\n\n        get args() {\n          return reifyArgs(capturedArgs);\n        }\n\n      };\n    }\n\n    if (DEBUG) {\n      state.debugName = typeof definition === 'function' ? definition.name : definition.toString();\n    }\n\n    registerDestructor(state, () => delegate.destroyModifier(instance, argsProxy));\n    return state;\n  }\n\n  getDebugName({\n    debugName\n  }) {\n    return debugName;\n  }\n\n  getTag({\n    tag\n  }) {\n    return tag;\n  }\n\n  install({\n    element,\n    args,\n    modifier,\n    delegate\n  }) {\n    let {\n      capabilities\n    } = delegate;\n\n    if (capabilities.disableAutoTracking === true) {\n      untrack(() => delegate.installModifier(modifier, element, args));\n    } else {\n      delegate.installModifier(modifier, element, args);\n    }\n  }\n\n  update({\n    args,\n    modifier,\n    delegate\n  }) {\n    let {\n      capabilities\n    } = delegate;\n\n    if (capabilities.disableAutoTracking === true) {\n      untrack(() => delegate.updateModifier(modifier, args));\n    } else {\n      delegate.updateModifier(modifier, args);\n    }\n  }\n\n  getDestroyable(state) {\n    return state;\n  }\n\n}\nfunction reifyArgs({\n  named,\n  positional\n}) {\n  let reifiedNamed = dict();\n\n  for (let key in named) {\n    reifiedNamed[key] = valueForRef(named[key]);\n  }\n\n  let reifiedPositional = positional.map(valueForRef);\n  return {\n    named: reifiedNamed,\n    positional: reifiedPositional\n  };\n}\n\nfunction helperCapabilities(managerAPI, options = {}) {\n  if (DEBUG && managerAPI !== '3.23') {\n    throw new Error('Invalid helper manager compatibility specified');\n  }\n\n  if (DEBUG && (!(options.hasValue || options.hasScheduledEffect) || options.hasValue && options.hasScheduledEffect)) {\n    throw new Error('You must pass either the `hasValue` OR the `hasScheduledEffect` capability when defining a helper manager. Passing neither, or both, is not permitted.');\n  }\n\n  if (DEBUG && options.hasScheduledEffect) {\n    throw new Error('The `hasScheduledEffect` capability has not yet been implemented for helper managers. Please pass `hasValue` instead');\n  }\n\n  return buildCapabilities({\n    hasValue: Boolean(options.hasValue),\n    hasDestroyable: Boolean(options.hasDestroyable),\n    hasScheduledEffect: Boolean(options.hasScheduledEffect)\n  });\n} ////////////\n\nfunction hasValue(manager) {\n  return manager.capabilities.hasValue;\n}\nfunction hasDestroyable(manager) {\n  return manager.capabilities.hasDestroyable;\n} ////////////\n\nclass CustomHelperManager {\n  constructor(factory) {\n    this.factory = factory;\n    this.helperManagerDelegates = new WeakMap();\n    this.undefinedDelegate = null;\n  }\n\n  getDelegateForOwner(owner) {\n    let delegate = this.helperManagerDelegates.get(owner);\n\n    if (delegate === undefined) {\n      let {\n        factory\n      } = this;\n      delegate = factory(owner);\n\n      if (DEBUG && !FROM_CAPABILITIES.has(delegate.capabilities)) {\n        // TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200\n        throw new Error(`Custom helper managers must have a \\`capabilities\\` property that is the result of calling the \\`capabilities('3.23')\\` (imported via \\`import { capabilities } from '@ember/helper';\\`). Received: \\`${JSON.stringify(delegate.capabilities)}\\` for: \\`${delegate}\\``);\n      }\n\n      this.helperManagerDelegates.set(owner, delegate);\n    }\n\n    return delegate;\n  }\n\n  getDelegateFor(owner) {\n    if (owner === undefined) {\n      let {\n        undefinedDelegate\n      } = this;\n\n      if (undefinedDelegate === null) {\n        let {\n          factory\n        } = this;\n        this.undefinedDelegate = undefinedDelegate = factory(undefined);\n      }\n\n      return undefinedDelegate;\n    } else {\n      return this.getDelegateForOwner(owner);\n    }\n  }\n\n  getHelper(definition) {\n    return (capturedArgs, owner) => {\n      var _a, _b;\n\n      let manager = this.getDelegateFor(owner);\n      const args = argsProxyFor(capturedArgs, 'helper');\n      const bucket = manager.createHelper(definition, args);\n\n      if (hasValue(manager)) {\n        let cache = createComputeRef(() => manager.getValue(bucket), null, DEBUG && manager.getDebugName && manager.getDebugName(definition));\n\n        if (hasDestroyable(manager)) {\n          associateDestroyableChild(cache, manager.getDestroyable(bucket));\n        }\n\n        return cache;\n      } else if (hasDestroyable(manager)) {\n        let ref = createConstRef(undefined, DEBUG && ((_b = (_a = manager.getDebugName) === null || _a === void 0 ? void 0 : _a.call(manager, definition)) !== null && _b !== void 0 ? _b : 'unknown helper'));\n        associateDestroyableChild(ref, manager.getDestroyable(bucket));\n        return ref;\n      } else {\n        return UNDEFINED_REFERENCE;\n      }\n    };\n  }\n\n}\n\nfunction setComponentManager(factory, obj) {\n  return setInternalComponentManager(new CustomComponentManager(factory), obj);\n}\nfunction setModifierManager(factory, obj) {\n  return setInternalModifierManager(new CustomModifierManager(factory), obj);\n}\nfunction setHelperManager(factory, obj) {\n  return setInternalHelperManager(new CustomHelperManager(factory), obj);\n}\n\nconst TEMPLATES = new WeakMap();\nconst getPrototypeOf$1 = Object.getPrototypeOf;\nfunction setComponentTemplate(factory, obj) {\n  if (DEBUG && !(obj !== null && (typeof obj === 'object' || typeof obj === 'function'))) {\n    throw new Error(`Cannot call \\`setComponentTemplate\\` on \\`${debugToString(obj)}\\``);\n  }\n\n  if (DEBUG && TEMPLATES.has(obj)) {\n    throw new Error(`Cannot call \\`setComponentTemplate\\` multiple times on the same class (\\`${debugToString(obj)}\\`)`);\n  }\n\n  TEMPLATES.set(obj, factory);\n  return obj;\n}\nfunction getComponentTemplate(obj) {\n  let pointer = obj;\n\n  while (pointer !== null) {\n    let template = TEMPLATES.get(pointer);\n\n    if (template !== undefined) {\n      return template;\n    }\n\n    pointer = getPrototypeOf$1(pointer);\n  }\n\n  return undefined;\n}\n\nexport { setInternalHelperManager, setInternalModifierManager, setInternalComponentManager, getInternalHelperManager, getInternalModifierManager, getInternalComponentManager, hasInternalHelperManager, hasInternalModifierManager, hasInternalComponentManager, setHelperManager, setModifierManager, setComponentManager, componentCapabilities, CustomComponentManager, modifierCapabilities, CustomModifierManager, helperCapabilities, hasDestroyable, hasValue, CustomHelperManager, getComponentTemplate, setComponentTemplate, capabilityFlagsFrom, hasCapability, managerHasCapability, getCustomTagFor, setCustomTagFor };\n","import { ConcreteBounds, DOMTreeConstruction, NewElementBuilder } from '@glimmer/runtime';\nimport createHTMLDocument from '@simple-dom/document';\n\nclass NodeDOMTreeConstruction extends DOMTreeConstruction {\n  constructor(doc) {\n    super(doc || createHTMLDocument());\n  } // override to prevent usage of `this.document` until after the constructor\n\n\n  setupUselessElement() {}\n\n  insertHTMLBefore(parent, reference, html) {\n    let raw = this.document.createRawHTMLSection(html);\n    parent.insertBefore(raw, reference);\n    return new ConcreteBounds(parent, raw, raw);\n  } // override to avoid SVG detection/work when in node (this is not needed in SSR)\n\n\n  createElement(tag) {\n    return this.document.createElement(tag);\n  } // override to avoid namespace shenanigans when in node (this is not needed in SSR)\n\n\n  setAttribute(element, name, value) {\n    element.setAttribute(name, value);\n  }\n\n}\n\nconst TEXT_NODE = 3;\nconst NEEDS_EXTRA_CLOSE = new WeakMap();\n\nfunction currentNode(cursor) {\n  let {\n    element,\n    nextSibling\n  } = cursor;\n\n  if (nextSibling === null) {\n    return element.lastChild;\n  } else {\n    return nextSibling.previousSibling;\n  }\n}\n\nclass SerializeBuilder extends NewElementBuilder {\n  constructor() {\n    super(...arguments);\n    this.serializeBlockDepth = 0;\n  }\n\n  __openBlock() {\n    let {\n      tagName\n    } = this.element;\n\n    if (tagName !== 'TITLE' && tagName !== 'SCRIPT' && tagName !== 'STYLE') {\n      let depth = this.serializeBlockDepth++;\n\n      this.__appendComment(`%+b:${depth}%`);\n    }\n\n    super.__openBlock();\n  }\n\n  __closeBlock() {\n    let {\n      tagName\n    } = this.element;\n\n    super.__closeBlock();\n\n    if (tagName !== 'TITLE' && tagName !== 'SCRIPT' && tagName !== 'STYLE') {\n      let depth = --this.serializeBlockDepth;\n\n      this.__appendComment(`%-b:${depth}%`);\n    }\n  }\n\n  __appendHTML(html) {\n    let {\n      tagName\n    } = this.element;\n\n    if (tagName === 'TITLE' || tagName === 'SCRIPT' || tagName === 'STYLE') {\n      return super.__appendHTML(html);\n    } // Do we need to run the html tokenizer here?\n\n\n    let first = this.__appendComment('%glmr%');\n\n    if (tagName === 'TABLE') {\n      let openIndex = html.indexOf('<');\n\n      if (openIndex > -1) {\n        let tr = html.slice(openIndex + 1, openIndex + 3);\n\n        if (tr === 'tr') {\n          html = `<tbody>${html}</tbody>`;\n        }\n      }\n    }\n\n    if (html === '') {\n      this.__appendComment('% %');\n    } else {\n      super.__appendHTML(html);\n    }\n\n    let last = this.__appendComment('%glmr%');\n\n    return new ConcreteBounds(this.element, first, last);\n  }\n\n  __appendText(string) {\n    let {\n      tagName\n    } = this.element;\n    let current = currentNode(this);\n\n    if (tagName === 'TITLE' || tagName === 'SCRIPT' || tagName === 'STYLE') {\n      return super.__appendText(string);\n    } else if (string === '') {\n      return this.__appendComment('% %');\n    } else if (current && current.nodeType === TEXT_NODE) {\n      this.__appendComment('%|%');\n    }\n\n    return super.__appendText(string);\n  }\n\n  closeElement() {\n    if (NEEDS_EXTRA_CLOSE.has(this.element)) {\n      NEEDS_EXTRA_CLOSE.delete(this.element);\n      super.closeElement();\n    }\n\n    return super.closeElement();\n  }\n\n  openElement(tag) {\n    if (tag === 'tr') {\n      if (this.element.tagName !== 'TBODY' && this.element.tagName !== 'THEAD' && this.element.tagName !== 'TFOOT') {\n        this.openElement('tbody'); // This prevents the closeBlock comment from being re-parented\n        // under the auto inserted tbody. Rehydration builder needs to\n        // account for the insertion since it is injected here and not\n        // really in the template.\n\n        NEEDS_EXTRA_CLOSE.set(this.constructing, true);\n        this.flushElement(null);\n      }\n    }\n\n    return super.openElement(tag);\n  }\n\n  pushRemoteElement(element, cursorId, insertBefore = null) {\n    let {\n      dom\n    } = this;\n    let script = dom.createElement('script');\n    script.setAttribute('glmr', cursorId);\n    dom.insertBefore(element, script, insertBefore);\n    return super.pushRemoteElement(element, cursorId, insertBefore);\n  }\n\n}\n\nfunction serializeBuilder(env, cursor) {\n  return SerializeBuilder.forInitialRender(env, cursor);\n}\n\nexport { NodeDOMTreeConstruction, serializeBuilder };\n","import { dict, assign, isSmallInt, debugToString, EMPTY_ARRAY, EMPTY_STRING_ARRAY, encodeImmediate, Stack, encodeHandle, unwrapTemplate } from '@glimmer/util';\nimport { DEBUG } from '@glimmer/env';\nimport { $v0, $fp, $s0, $s1, $sp, isMachineOp } from '@glimmer/vm';\nimport { assert, deprecate } from '@glimmer/global-context';\nimport { hasCapability } from '@glimmer/manager';\nimport { InstructionEncoderImpl } from '@glimmer/encoder';\n\nclass NamedBlocksImpl {\n  constructor(blocks) {\n    this.blocks = blocks;\n    this.names = blocks ? Object.keys(blocks) : [];\n  }\n\n  get(name) {\n    if (!this.blocks) return null;\n    return this.blocks[name] || null;\n  }\n\n  has(name) {\n    let {\n      blocks\n    } = this;\n    return blocks !== null && name in blocks;\n  }\n\n  with(name, block) {\n    let {\n      blocks\n    } = this;\n\n    if (blocks) {\n      return new NamedBlocksImpl(assign({}, blocks, {\n        [name]: block\n      }));\n    } else {\n      return new NamedBlocksImpl({\n        [name]: block\n      });\n    }\n  }\n\n  get hasAny() {\n    return this.blocks !== null;\n  }\n\n}\nconst EMPTY_BLOCKS = new NamedBlocksImpl(null);\nfunction namedBlocks(blocks) {\n  if (blocks === null) {\n    return EMPTY_BLOCKS;\n  }\n\n  let out = dict();\n  let [keys, values] = blocks;\n\n  for (let i = 0; i < keys.length; i++) {\n    out[keys[i]] = values[i];\n  }\n\n  return new NamedBlocksImpl(out);\n}\n\nfunction labelOperand(value) {\n  return {\n    type: 1\n    /* Label */\n    ,\n    value\n  };\n}\nfunction evalSymbolsOperand() {\n  return {\n    type: 3\n    /* EvalSymbols */\n    ,\n    value: undefined\n  };\n}\nfunction isStrictMode() {\n  return {\n    type: 2\n    /* IsStrictMode */\n    ,\n    value: undefined\n  };\n}\nfunction blockOperand(value) {\n  return {\n    type: 4\n    /* Block */\n    ,\n    value\n  };\n}\nfunction stdlibOperand(value) {\n  return {\n    type: 5\n    /* StdLib */\n    ,\n    value\n  };\n}\nfunction nonSmallIntOperand(value) {\n  return {\n    type: 6\n    /* NonSmallInt */\n    ,\n    value\n  };\n}\nfunction symbolTableOperand(value) {\n  return {\n    type: 7\n    /* SymbolTable */\n    ,\n    value\n  };\n}\nfunction layoutOperand(value) {\n  return {\n    type: 8\n    /* Layout */\n    ,\n    value\n  };\n}\n\nfunction isGetLikeTuple(opcode) {\n  return Array.isArray(opcode) && opcode.length === 2;\n}\n\nfunction makeResolutionTypeVerifier(typeToVerify) {\n  return opcode => {\n    if (!isGetLikeTuple(opcode)) return false;\n    let type = opcode[0];\n    return type === 31\n    /* GetStrictFree */\n    || type === 32\n    /* GetTemplateSymbol */\n    || type === typeToVerify;\n  };\n}\n\nconst isGetFreeComponent = makeResolutionTypeVerifier(39\n/* GetFreeAsComponentHead */\n);\nconst isGetFreeModifier = makeResolutionTypeVerifier(38\n/* GetFreeAsModifierHead */\n);\nconst isGetFreeHelper = makeResolutionTypeVerifier(37\n/* GetFreeAsHelperHead */\n);\nconst isGetFreeComponentOrHelper = makeResolutionTypeVerifier(35\n/* GetFreeAsComponentOrHelperHead */\n);\nconst isGetFreeOptionalComponentOrHelper = makeResolutionTypeVerifier(34\n/* GetFreeAsComponentOrHelperHeadOrThisFallback */\n);\n\nfunction assertResolverInvariants(meta) {\n  if (DEBUG) {\n    if (!meta.upvars) {\n      throw new Error('Attempted to resolve a component, helper, or modifier, but no free vars were found');\n    }\n\n    if (!meta.owner) {\n      throw new Error('Attempted to resolve a component, helper, or modifier, but no owner was associated with the template it was being resolved from');\n    }\n  }\n\n  return meta;\n}\n/**\n * <Foo/>\n * <Foo></Foo>\n * <Foo @arg={{true}} />\n */\n\n\nfunction resolveComponent(resolver, constants, meta, [, expr, then]) {\n  let type = expr[0];\n\n  if (DEBUG && expr[0] === 31\n  /* GetStrictFree */\n  ) {\n      throw new Error(`Attempted to resolve a component in a strict mode template, but that value was not in scope: ${meta.upvars[expr[1]]}`);\n    }\n\n  if (type === 32\n  /* GetTemplateSymbol */\n  ) {\n      let {\n        scopeValues,\n        owner\n      } = meta;\n      let definition = scopeValues[expr[1]];\n      then(constants.component(definition, owner));\n    } else {\n    let {\n      upvars,\n      owner\n    } = assertResolverInvariants(meta);\n    let name = upvars[expr[1]];\n    let definition = resolver.lookupComponent(name, owner);\n\n    if (DEBUG && (typeof definition !== 'object' || definition === null)) {\n      throw new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a component, but nothing was found.`);\n    }\n\n    then(constants.resolvedComponent(definition, name));\n  }\n}\n/**\n * (helper)\n * (helper arg)\n */\n\nfunction resolveHelper(resolver, constants, meta, [, expr, then]) {\n  let type = expr[0];\n\n  if (type === 32\n  /* GetTemplateSymbol */\n  ) {\n      let {\n        scopeValues\n      } = meta;\n      let definition = scopeValues[expr[1]];\n      then(constants.helper(definition));\n    } else if (type === 31\n  /* GetStrictFree */\n  ) {\n      then(lookupBuiltInHelper(expr, resolver, meta, constants, 'helper'));\n    } else {\n    let {\n      upvars,\n      owner\n    } = assertResolverInvariants(meta);\n    let name = upvars[expr[1]];\n    let helper = resolver.lookupHelper(name, owner);\n\n    if (DEBUG && helper === null) {\n      throw new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a helper, but nothing was found.`);\n    }\n\n    then(constants.helper(helper, name));\n  }\n}\n/**\n * <div {{modifier}}/>\n * <div {{modifier arg}}/>\n * <Foo {{modifier}}/>\n */\n\nfunction resolveModifier(resolver, constants, meta, [, expr, then]) {\n  let type = expr[0];\n\n  if (type === 32\n  /* GetTemplateSymbol */\n  ) {\n      let {\n        scopeValues\n      } = meta;\n      let definition = scopeValues[expr[1]];\n      then(constants.modifier(definition));\n    } else if (type === 31\n  /* GetStrictFree */\n  ) {\n      let {\n        upvars\n      } = assertResolverInvariants(meta);\n      let name = upvars[expr[1]];\n      let modifier = resolver.lookupBuiltInModifier(name);\n\n      if (DEBUG && modifier === null) {\n        throw new Error(`Attempted to resolve a modifier in a strict mode template, but it was not in scope: ${name}`);\n      }\n\n      then(constants.modifier(modifier, name));\n    } else {\n    let {\n      upvars,\n      owner\n    } = assertResolverInvariants(meta);\n    let name = upvars[expr[1]];\n    let modifier = resolver.lookupModifier(name, owner);\n\n    if (DEBUG && modifier === null) {\n      throw new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a modifier, but nothing was found.`);\n    }\n\n    then(constants.modifier(modifier, name));\n  }\n}\n/**\n * {{component-or-helper arg}}\n */\n\nfunction resolveComponentOrHelper(resolver, constants, meta, [, expr, {\n  ifComponent,\n  ifHelper\n}]) {\n  let type = expr[0];\n\n  if (type === 32\n  /* GetTemplateSymbol */\n  ) {\n      let {\n        scopeValues,\n        owner\n      } = meta;\n      let definition = scopeValues[expr[1]];\n      let component = constants.component(definition, owner, true);\n\n      if (component !== null) {\n        ifComponent(component);\n        return;\n      }\n\n      let helper = constants.helper(definition, null, true);\n\n      if (DEBUG && helper === null) {\n        throw new Error(`Attempted to use a value as either a component or helper, but it did not have a component manager or helper manager associated with it. The value was: ${debugToString(definition)}`);\n      }\n\n      ifHelper(helper);\n    } else if (type === 31\n  /* GetStrictFree */\n  ) {\n      ifHelper(lookupBuiltInHelper(expr, resolver, meta, constants, 'component or helper'));\n    } else {\n    let {\n      upvars,\n      owner\n    } = assertResolverInvariants(meta);\n    let name = upvars[expr[1]];\n    let definition = resolver.lookupComponent(name, owner);\n\n    if (definition !== null) {\n      ifComponent(constants.resolvedComponent(definition, name));\n    } else {\n      let helper = resolver.lookupHelper(name, owner);\n\n      if (DEBUG && helper === null) {\n        throw new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a component or helper, but nothing was found.`);\n      }\n\n      ifHelper(constants.helper(helper, name));\n    }\n  }\n}\n/**\n * <Foo @arg={{helper}}>\n */\n\nfunction resolveOptionalHelper(resolver, constants, meta, [, expr, {\n  ifHelper,\n  ifFallback\n}]) {\n  let {\n    upvars,\n    owner\n  } = assertResolverInvariants(meta);\n  let name = upvars[expr[1]];\n  let helper = resolver.lookupHelper(name, owner);\n\n  if (helper === null) {\n    ifFallback(name, meta.moduleName);\n  } else {\n    ifHelper(constants.helper(helper, name), name, meta.moduleName);\n  }\n}\n/**\n * {{maybeHelperOrComponent}}\n */\n\nfunction resolveOptionalComponentOrHelper(resolver, constants, meta, [, expr, {\n  ifComponent,\n  ifHelper,\n  ifValue,\n  ifFallback\n}]) {\n  let type = expr[0];\n\n  if (type === 32\n  /* GetTemplateSymbol */\n  ) {\n      let {\n        scopeValues,\n        owner\n      } = meta;\n      let definition = scopeValues[expr[1]];\n\n      if (typeof definition !== 'function' && (typeof definition !== 'object' || definition === null)) {\n        // The value is not an object, so it can't be a component or helper.\n        ifValue(constants.value(definition));\n        return;\n      }\n\n      let component = constants.component(definition, owner, true);\n\n      if (component !== null) {\n        ifComponent(component);\n        return;\n      }\n\n      let helper = constants.helper(definition, null, true);\n\n      if (helper !== null) {\n        ifHelper(helper);\n        return;\n      }\n\n      ifValue(constants.value(definition));\n    } else if (type === 31\n  /* GetStrictFree */\n  ) {\n      ifHelper(lookupBuiltInHelper(expr, resolver, meta, constants, 'value'));\n    } else {\n    let {\n      upvars,\n      owner\n    } = assertResolverInvariants(meta);\n    let name = upvars[expr[1]];\n    let definition = resolver.lookupComponent(name, owner);\n\n    if (definition !== null) {\n      ifComponent(constants.resolvedComponent(definition, name));\n      return;\n    }\n\n    let helper = resolver.lookupHelper(name, owner);\n\n    if (helper !== null) {\n      ifHelper(constants.helper(helper, name));\n      return;\n    }\n\n    ifFallback(name);\n  }\n}\n\nfunction lookupBuiltInHelper(expr, resolver, meta, constants, type) {\n  let {\n    upvars\n  } = assertResolverInvariants(meta);\n  let name = upvars[expr[1]];\n  let helper = resolver.lookupBuiltInHelper(name);\n\n  if (DEBUG && helper === null) {\n    // Keyword helper did not exist, which means that we're attempting to use a\n    // value of some kind that is not in scope\n    throw new Error(`Attempted to resolve a ${type} in a strict mode template, but that value was not in scope: ${meta.upvars[expr[1]]}`);\n  }\n\n  return constants.helper(helper, name);\n}\n\nclass Compilers {\n  constructor() {\n    this.names = {};\n    this.funcs = [];\n  }\n\n  add(name, func) {\n    this.names[name] = this.funcs.push(func) - 1;\n  }\n\n  compile(op, sexp) {\n    let name = sexp[0];\n    let index = this.names[name];\n    let func = this.funcs[index];\n    func(op, sexp);\n  }\n\n}\n\nconst EXPRESSIONS = new Compilers();\nEXPRESSIONS.add(29\n/* Concat */\n, (op, [, parts]) => {\n  for (let part of parts) {\n    expr(op, part);\n  }\n\n  op(27\n  /* Concat */\n  , parts.length);\n});\nEXPRESSIONS.add(28\n/* Call */\n, (op, [, expression, positional, named]) => {\n  if (isGetFreeHelper(expression)) {\n    op(1005\n    /* ResolveHelper */\n    , expression, handle => {\n      Call(op, handle, positional, named);\n    });\n  } else {\n    expr(op, expression);\n    CallDynamic(op, positional, named);\n  }\n});\nEXPRESSIONS.add(50\n/* Curry */\n, (op, [, expr$$1, type, positional, named]) => {\n  Curry(op, type, expr$$1, positional, named);\n});\nEXPRESSIONS.add(30\n/* GetSymbol */\n, (op, [, sym, path]) => {\n  op(21\n  /* GetVariable */\n  , sym);\n  withPath(op, path);\n});\nEXPRESSIONS.add(32\n/* GetTemplateSymbol */\n, (op, [, sym, path]) => {\n  op(1011\n  /* ResolveTemplateLocal */\n  , sym, handle => {\n    op(29\n    /* ConstantReference */\n    , handle);\n    withPath(op, path);\n  });\n});\nEXPRESSIONS.add(31\n/* GetStrictFree */\n, (op, [, sym, _path]) => {\n  op(1009\n  /* ResolveFree */\n  , sym, _handle => {// TODO: Implement in strict mode\n  });\n});\nEXPRESSIONS.add(33\n/* GetFreeAsFallback */\n, (op, [, freeVar, path]) => {\n  op(1010\n  /* ResolveLocal */\n  , freeVar, (name, moduleName) => {\n    if (DEBUG) {\n      let propertyPath = path ? [name, ...path].join('.') : name;\n      deprecate(`The \\`${propertyPath}\\` property path was used in the \\`${moduleName}\\` template without using \\`this\\`. This fallback behavior has been deprecated, all properties must be looked up on \\`this\\` when used in the template: {{this.${propertyPath}}}`, false, {\n        id: 'this-property-fallback'\n      });\n    }\n\n    op(21\n    /* GetVariable */\n    , 0);\n    op(22\n    /* GetProperty */\n    , name);\n  });\n  withPath(op, path);\n});\nEXPRESSIONS.add(34\n/* GetFreeAsComponentOrHelperHeadOrThisFallback */\n, () => {\n  // TODO: The logic for this opcode currently exists in STATEMENTS.Append, since\n  // we want different wrapping logic depending on if we are invoking a component,\n  // helper, or {{this}} fallback. Eventually we fix the opcodes so that we can\n  // traverse the subexpression tree like normal in this location.\n  throw new Error('unimplemented opcode');\n});\nEXPRESSIONS.add(36\n/* GetFreeAsHelperHeadOrThisFallback */\n, (op, expr$$1) => {\n  // <div id={{baz}}>\n  op(1010\n  /* ResolveLocal */\n  , expr$$1[1], _name => {\n    op(1006\n    /* ResolveOptionalHelper */\n    , expr$$1, {\n      ifHelper: handle => {\n        Call(op, handle, null, null);\n      },\n      ifFallback: (name, moduleName) => {\n        deprecate(`The \\`${name}\\` property was used in the \\`${moduleName}\\` template without using \\`this\\`. This fallback behavior has been deprecated, all properties must be looked up on \\`this\\` when used in the template: {{this.${name}}}`, false, {\n          id: 'this-property-fallback'\n        });\n        op(21\n        /* GetVariable */\n        , 0);\n        op(22\n        /* GetProperty */\n        , name);\n      }\n    });\n  });\n});\nEXPRESSIONS.add(99\n/* GetFreeAsDeprecatedHelperHeadOrThisFallback */\n, (op, expr$$1) => {\n  // <Foo @bar={{baz}}>\n  op(1010\n  /* ResolveLocal */\n  , expr$$1[1], _name => {\n    op(1006\n    /* ResolveOptionalHelper */\n    , expr$$1, {\n      ifHelper: (handle, name, moduleName) => {\n        assert(expr$$1[2] && expr$$1[2].length === 1, '[BUG] Missing argument name');\n        let arg = expr$$1[2][0];\n        deprecate(`The \\`${name}\\` helper was used in the \\`${moduleName}\\` template as \\`${arg}={{${name}}}\\`. ` + `This is ambigious between wanting the \\`${arg}\\` argument to be the \\`${name}\\` helper itself, ` + `or the result of invoking the \\`${name}\\` helper (current behavior). ` + `This implicit invocation behavior has been deprecated.\\n\\n` + `Instead, please explicitly invoke the helper with parenthesis, i.e. \\`${arg}={{(${name})}}\\`.\\n\\n` + `Note: the parenthesis are only required in this exact scenario where an ambiguity is present – where ` + `\\`${name}\\` referes to a global helper (as opposed to a local variable), AND ` + `the \\`${name}\\` helper invocation does not take any arguments, AND ` + `this occurs in a named argument position of a component invocation.\\n\\n` + `We expect this combination to be quite rare, as most helpers require at least one argument. ` + `There is no need to refactor helper invocations in cases where this deprecation was not triggered.`, false, {\n          id: 'argument-less-helper-paren-less-invocation'\n        });\n        Call(op, handle, null, null);\n      },\n      ifFallback: (name, moduleName) => {\n        deprecate(`The \\`${name}\\` property was used in the \\`${moduleName}\\` template without using \\`this\\`. This fallback behavior has been deprecated, all properties must be looked up on \\`this\\` when used in the template: {{this.${name}}}`, false, {\n          id: 'this-property-fallback'\n        });\n        op(21\n        /* GetVariable */\n        , 0);\n        op(22\n        /* GetProperty */\n        , name);\n      }\n    });\n  });\n});\n\nfunction withPath(op, path) {\n  if (path === undefined || path.length === 0) return;\n\n  for (let i = 0; i < path.length; i++) {\n    op(22\n    /* GetProperty */\n    , path[i]);\n  }\n}\n\nEXPRESSIONS.add(27\n/* Undefined */\n, op => PushPrimitiveReference(op, undefined));\nEXPRESSIONS.add(48\n/* HasBlock */\n, (op, [, block]) => {\n  expr(op, block);\n  op(25\n  /* HasBlock */\n  );\n});\nEXPRESSIONS.add(49\n/* HasBlockParams */\n, (op, [, block]) => {\n  expr(op, block);\n  op(24\n  /* SpreadBlock */\n  );\n  op(61\n  /* CompileBlock */\n  );\n  op(26\n  /* HasBlockParams */\n  );\n});\nEXPRESSIONS.add(52\n/* IfInline */\n, (op, [, condition, truthy, falsy]) => {\n  // Push in reverse order\n  expr(op, falsy);\n  expr(op, truthy);\n  expr(op, condition);\n  op(109\n  /* IfInline */\n  );\n});\nEXPRESSIONS.add(51\n/* Not */\n, (op, [, value]) => {\n  expr(op, value);\n  op(110\n  /* Not */\n  );\n});\nEXPRESSIONS.add(53\n/* GetDynamicVar */\n, (op, [, expression]) => {\n  expr(op, expression);\n  op(111\n  /* GetDynamicVar */\n  );\n});\nEXPRESSIONS.add(54\n/* Log */\n, (op, [, positional]) => {\n  op(0\n  /* PushFrame */\n  );\n  SimpleArgs(op, positional, null, false);\n  op(112\n  /* Log */\n  );\n  op(1\n  /* PopFrame */\n  );\n  op(36\n  /* Fetch */\n  , $v0);\n});\n\nfunction expr(op, expression) {\n  if (Array.isArray(expression)) {\n    EXPRESSIONS.compile(op, expression);\n  } else {\n    PushPrimitive(op, expression);\n    op(31\n    /* PrimitiveReference */\n    );\n  }\n}\n\n/**\n * Compile arguments, pushing an Arguments object onto the stack.\n *\n * @param args.params\n * @param args.hash\n * @param args.blocks\n * @param args.atNames\n */\n\nfunction CompileArgs(op, positional, named, blocks, atNames) {\n  let blockNames = blocks.names;\n\n  for (let i = 0; i < blockNames.length; i++) {\n    PushYieldableBlock(op, blocks.get(blockNames[i]));\n  }\n\n  let count = CompilePositional(op, positional);\n  let flags = count << 4;\n  if (atNames) flags |= 0b1000;\n\n  if (blocks) {\n    flags |= 0b111;\n  }\n\n  let names = EMPTY_ARRAY;\n\n  if (named) {\n    names = named[0];\n    let val = named[1];\n\n    for (let i = 0; i < val.length; i++) {\n      expr(op, val[i]);\n    }\n  }\n\n  op(82\n  /* PushArgs */\n  , names, blockNames, flags);\n}\nfunction SimpleArgs(op, positional, named, atNames) {\n  if (positional === null && named === null) {\n    op(83\n    /* PushEmptyArgs */\n    );\n    return;\n  }\n\n  let count = CompilePositional(op, positional);\n  let flags = count << 4;\n  if (atNames) flags |= 0b1000;\n  let names = EMPTY_STRING_ARRAY;\n\n  if (named) {\n    names = named[0];\n    let val = named[1];\n\n    for (let i = 0; i < val.length; i++) {\n      expr(op, val[i]);\n    }\n  }\n\n  op(82\n  /* PushArgs */\n  , names, EMPTY_STRING_ARRAY, flags);\n}\n/**\n * Compile an optional list of positional arguments, which pushes each argument\n * onto the stack and returns the number of parameters compiled\n *\n * @param positional an optional list of positional arguments\n */\n\nfunction CompilePositional(op, positional) {\n  if (positional === null) return 0;\n\n  for (let i = 0; i < positional.length; i++) {\n    expr(op, positional[i]);\n  }\n\n  return positional.length;\n}\nfunction meta(layout) {\n  var _a, _b;\n\n  let [, symbols,, upvars] = layout.block;\n  return {\n    asPartial: layout.asPartial || false,\n    evalSymbols: evalSymbols(layout),\n    upvars: upvars,\n    scopeValues: (_b = (_a = layout.scope) === null || _a === void 0 ? void 0 : _a.call(layout)) !== null && _b !== void 0 ? _b : null,\n    isStrictMode: layout.isStrictMode,\n    moduleName: layout.moduleName,\n    owner: layout.owner,\n    size: symbols.length\n  };\n}\nfunction evalSymbols(layout) {\n  let {\n    block\n  } = layout;\n  let [, symbols, hasEval] = block;\n  return hasEval ? symbols : null;\n}\n\n/**\n * Push a reference onto the stack corresponding to a statically known primitive\n * @param value A JavaScript primitive (undefined, null, boolean, number or string)\n */\n\nfunction PushPrimitiveReference(op, value) {\n  PushPrimitive(op, value);\n  op(31\n  /* PrimitiveReference */\n  );\n}\n/**\n * Push an encoded representation of a JavaScript primitive on the stack\n *\n * @param value A JavaScript primitive (undefined, null, boolean, number or string)\n */\n\nfunction PushPrimitive(op, primitive) {\n  let p = primitive;\n\n  if (typeof p === 'number') {\n    p = isSmallInt(p) ? encodeImmediate(p) : nonSmallIntOperand(p);\n  }\n\n  op(30\n  /* Primitive */\n  , p);\n}\n/**\n * Invoke a foreign function (a \"helper\") based on a statically known handle\n *\n * @param op The op creation function\n * @param handle A handle\n * @param positional An optional list of expressions to compile\n * @param named An optional list of named arguments (name + expression) to compile\n */\n\nfunction Call(op, handle, positional, named) {\n  op(0\n  /* PushFrame */\n  );\n  SimpleArgs(op, positional, named, false);\n  op(16\n  /* Helper */\n  , handle);\n  op(1\n  /* PopFrame */\n  );\n  op(36\n  /* Fetch */\n  , $v0);\n}\n/**\n * Invoke a foreign function (a \"helper\") based on a dynamically loaded definition\n *\n * @param op The op creation function\n * @param positional An optional list of expressions to compile\n * @param named An optional list of named arguments (name + expression) to compile\n */\n\nfunction CallDynamic(op, positional, named, append) {\n  op(0\n  /* PushFrame */\n  );\n  SimpleArgs(op, positional, named, false);\n  op(33\n  /* Dup */\n  , $fp, 1);\n  op(107\n  /* DynamicHelper */\n  );\n\n  if (append) {\n    op(36\n    /* Fetch */\n    , $v0);\n    append();\n    op(1\n    /* PopFrame */\n    );\n    op(34\n    /* Pop */\n    , 1);\n  } else {\n    op(1\n    /* PopFrame */\n    );\n    op(34\n    /* Pop */\n    , 1);\n    op(36\n    /* Fetch */\n    , $v0);\n  }\n}\n/**\n * Evaluate statements in the context of new dynamic scope entries. Move entries from the\n * stack into named entries in the dynamic scope, then evaluate the statements, then pop\n * the dynamic scope\n *\n * @param names a list of dynamic scope names\n * @param block a function that returns a list of statements to evaluate\n */\n\nfunction DynamicScope(op, names, block) {\n  op(59\n  /* PushDynamicScope */\n  );\n  op(58\n  /* BindDynamicScope */\n  , names);\n  block();\n  op(60\n  /* PopDynamicScope */\n  );\n}\nfunction Curry(op, type, definition, positional, named) {\n  op(0\n  /* PushFrame */\n  );\n  SimpleArgs(op, positional, named, false);\n  op(86\n  /* CaptureArgs */\n  );\n  expr(op, definition);\n  op(77\n  /* Curry */\n  , type, isStrictMode());\n  op(1\n  /* PopFrame */\n  );\n  op(36\n  /* Fetch */\n  , $v0);\n}\n\n/**\n * Yield to a block located at a particular symbol location.\n *\n * @param to the symbol containing the block to yield to\n * @param params optional block parameters to yield to the block\n */\n\nfunction YieldBlock(op, to, positional) {\n  SimpleArgs(op, positional, null, true);\n  op(23\n  /* GetBlock */\n  , to);\n  op(24\n  /* SpreadBlock */\n  );\n  op(61\n  /* CompileBlock */\n  );\n  op(64\n  /* InvokeYield */\n  );\n  op(40\n  /* PopScope */\n  );\n  op(1\n  /* PopFrame */\n  );\n}\n/**\n * Push an (optional) yieldable block onto the stack. The yieldable block must be known\n * statically at compile time.\n *\n * @param block An optional Compilable block\n */\n\nfunction PushYieldableBlock(op, block) {\n  PushSymbolTable(op, block && block[1]);\n  op(62\n  /* PushBlockScope */\n  );\n  PushCompilable(op, block);\n}\n/**\n * Invoke a block that is known statically at compile time.\n *\n * @param block a Compilable block\n */\n\nfunction InvokeStaticBlock(op, block) {\n  op(0\n  /* PushFrame */\n  );\n  PushCompilable(op, block);\n  op(61\n  /* CompileBlock */\n  );\n  op(2\n  /* InvokeVirtual */\n  );\n  op(1\n  /* PopFrame */\n  );\n}\n/**\n * Invoke a static block, preserving some number of stack entries for use in\n * updating.\n *\n * @param block A compilable block\n * @param callerCount A number of stack entries to preserve\n */\n\nfunction InvokeStaticBlockWithStack(op, block, callerCount) {\n  let parameters = block[1];\n  let calleeCount = parameters.length;\n  let count = Math.min(callerCount, calleeCount);\n\n  if (count === 0) {\n    InvokeStaticBlock(op, block);\n    return;\n  }\n\n  op(0\n  /* PushFrame */\n  );\n\n  if (count) {\n    op(39\n    /* ChildScope */\n    );\n\n    for (let i = 0; i < count; i++) {\n      op(33\n      /* Dup */\n      , $fp, callerCount - i);\n      op(19\n      /* SetVariable */\n      , parameters[i]);\n    }\n  }\n\n  PushCompilable(op, block);\n  op(61\n  /* CompileBlock */\n  );\n  op(2\n  /* InvokeVirtual */\n  );\n\n  if (count) {\n    op(40\n    /* PopScope */\n    );\n  }\n\n  op(1\n  /* PopFrame */\n  );\n}\nfunction PushSymbolTable(op, parameters) {\n  if (parameters !== null) {\n    op(63\n    /* PushSymbolTable */\n    , symbolTableOperand({\n      parameters\n    }));\n  } else {\n    PushPrimitive(op, null);\n  }\n}\nfunction PushCompilable(op, _block) {\n  if (_block === null) {\n    PushPrimitive(op, null);\n  } else {\n    op(28\n    /* Constant */\n    , blockOperand(_block));\n  }\n}\n\nfunction SwitchCases(op, bootstrap, callback) {\n  // Setup the switch DSL\n  let clauses = [];\n  let count = 0;\n\n  function when(match, callback) {\n    clauses.push({\n      match,\n      callback,\n      label: `CLAUSE${count++}`\n    });\n  } // Call the callback\n\n\n  callback(when); // Emit the opcodes for the switch\n\n  op(69\n  /* Enter */\n  , 1);\n  bootstrap();\n  op(1001\n  /* StartLabels */\n  ); // First, emit the jump opcodes. We don't need a jump for the last\n  // opcode, since it bleeds directly into its clause.\n\n  for (let clause of clauses.slice(0, -1)) {\n    op(67\n    /* JumpEq */\n    , labelOperand(clause.label), clause.match);\n  } // Enumerate the clauses in reverse order. Earlier matches will\n  // require fewer checks.\n\n\n  for (let i = clauses.length - 1; i >= 0; i--) {\n    let clause = clauses[i];\n    op(1000\n    /* Label */\n    , clause.label);\n    op(34\n    /* Pop */\n    , 1);\n    clause.callback(); // The first match is special: it is placed directly before the END\n    // label, so no additional jump is needed at the end of it.\n\n    if (i !== 0) {\n      op(4\n      /* Jump */\n      , labelOperand('END'));\n    }\n  }\n\n  op(1000\n  /* Label */\n  , 'END');\n  op(1002\n  /* StopLabels */\n  );\n  op(70\n  /* Exit */\n  );\n}\n/**\n * A convenience for pushing some arguments on the stack and\n * running some code if the code needs to be re-executed during\n * updating execution if some of the arguments have changed.\n *\n * # Initial Execution\n *\n * The `args` function should push zero or more arguments onto\n * the stack and return the number of arguments pushed.\n *\n * The `body` function provides the instructions to execute both\n * during initial execution and during updating execution.\n *\n * Internally, this function starts by pushing a new frame, so\n * that the body can return and sets the return point ($ra) to\n * the ENDINITIAL label.\n *\n * It then executes the `args` function, which adds instructions\n * responsible for pushing the arguments for the block to the\n * stack. These arguments will be restored to the stack before\n * updating execution.\n *\n * Next, it adds the Enter opcode, which marks the current position\n * in the DOM, and remembers the current $pc (the next instruction)\n * as the first instruction to execute during updating execution.\n *\n * Next, it runs `body`, which adds the opcodes that should\n * execute both during initial execution and during updating execution.\n * If the `body` wishes to finish early, it should Jump to the\n * `FINALLY` label.\n *\n * Next, it adds the FINALLY label, followed by:\n *\n * - the Exit opcode, which finalizes the marked DOM started by the\n *   Enter opcode.\n * - the Return opcode, which returns to the current return point\n *   ($ra).\n *\n * Finally, it adds the ENDINITIAL label followed by the PopFrame\n * instruction, which restores $fp, $sp and $ra.\n *\n * # Updating Execution\n *\n * Updating execution for this `replayable` occurs if the `body` added an\n * assertion, via one of the `JumpIf`, `JumpUnless` or `AssertSame` opcodes.\n *\n * If, during updating executon, the assertion fails, the initial VM is\n * restored, and the stored arguments are pushed onto the stack. The DOM\n * between the starting and ending markers is cleared, and the VM's cursor\n * is set to the area just cleared.\n *\n * The return point ($ra) is set to -1, the exit instruction.\n *\n * Finally, the $pc is set to to the instruction saved off by the\n * Enter opcode during initial execution, and execution proceeds as\n * usual.\n *\n * The only difference is that when a `Return` instruction is\n * encountered, the program jumps to -1 rather than the END label,\n * and the PopFrame opcode is not needed.\n */\n\nfunction Replayable(op, args, body) {\n  // Start a new label frame, to give END and RETURN\n  // a unique meaning.\n  op(1001\n  /* StartLabels */\n  );\n  op(0\n  /* PushFrame */\n  ); // If the body invokes a block, its return will return to\n  // END. Otherwise, the return in RETURN will return to END.\n\n  op(6\n  /* ReturnTo */\n  , labelOperand('ENDINITIAL')); // Push the arguments onto the stack. The args() function\n  // tells us how many stack elements to retain for re-execution\n  // when updating.\n\n  let count = args(); // Start a new updating closure, remembering `count` elements\n  // from the stack. Everything after this point, and before END,\n  // will execute both initially and to update the block.\n  //\n  // The enter and exit opcodes also track the area of the DOM\n  // associated with this block. If an assertion inside the block\n  // fails (for example, the test value changes from true to false\n  // in an #if), the DOM is cleared and the program is re-executed,\n  // restoring `count` elements to the stack and executing the\n  // instructions between the enter and exit.\n\n  op(69\n  /* Enter */\n  , count); // Evaluate the body of the block. The body of the block may\n  // return, which will jump execution to END during initial\n  // execution, and exit the updating routine.\n\n  body(); // All execution paths in the body should run the FINALLY once\n  // they are done. It is executed both during initial execution\n  // and during updating execution.\n\n  op(1000\n  /* Label */\n  , 'FINALLY'); // Finalize the DOM.\n\n  op(70\n  /* Exit */\n  ); // In initial execution, this is a noop: it returns to the\n  // immediately following opcode. In updating execution, this\n  // exits the updating routine.\n\n  op(5\n  /* Return */\n  ); // Cleanup code for the block. Runs on initial execution\n  // but not on updating.\n\n  op(1000\n  /* Label */\n  , 'ENDINITIAL');\n  op(1\n  /* PopFrame */\n  );\n  op(1002\n  /* StopLabels */\n  );\n}\n/**\n * A specialized version of the `replayable` convenience that allows the\n * caller to provide different code based upon whether the item at\n * the top of the stack is true or false.\n *\n * As in `replayable`, the `ifTrue` and `ifFalse` code can invoke `return`.\n *\n * During the initial execution, a `return` will continue execution\n * in the cleanup code, which finalizes the current DOM block and pops\n * the current frame.\n *\n * During the updating execution, a `return` will exit the updating\n * routine, as it can reuse the DOM block and is always only a single\n * frame deep.\n */\n\nfunction ReplayableIf(op, args, ifTrue, ifFalse) {\n  return Replayable(op, args, () => {\n    // If the conditional is false, jump to the ELSE label.\n    op(66\n    /* JumpUnless */\n    , labelOperand('ELSE')); // Otherwise, execute the code associated with the true branch.\n\n    ifTrue(); // We're done, so return. In the initial execution, this runs\n    // the cleanup code. In the updating VM, it exits the updating\n    // routine.\n\n    op(4\n    /* Jump */\n    , labelOperand('FINALLY'));\n    op(1000\n    /* Label */\n    , 'ELSE'); // If the conditional is false, and code associatied ith the\n    // false branch was provided, execute it. If there was no code\n    // associated with the false branch, jumping to the else statement\n    // has no other behavior.\n\n    if (ifFalse !== undefined) {\n      ifFalse();\n    }\n  });\n}\n\nconst ATTRS_BLOCK = '&attrs';\nfunction InvokeComponent(op, component, _elementBlock, positional, named, _blocks) {\n  let {\n    compilable,\n    capabilities,\n    handle\n  } = component;\n  let elementBlock = _elementBlock ? [_elementBlock, []] : null;\n  let blocks = Array.isArray(_blocks) || _blocks === null ? namedBlocks(_blocks) : _blocks;\n\n  if (compilable) {\n    op(78\n    /* PushComponentDefinition */\n    , handle);\n    InvokeStaticComponent(op, {\n      capabilities: capabilities,\n      layout: compilable,\n      elementBlock,\n      positional,\n      named,\n      blocks\n    });\n  } else {\n    op(78\n    /* PushComponentDefinition */\n    , handle);\n    InvokeNonStaticComponent(op, {\n      capabilities: capabilities,\n      elementBlock,\n      positional,\n      named,\n      atNames: true,\n      blocks\n    });\n  }\n}\nfunction InvokeDynamicComponent(op, definition, _elementBlock, positional, named, _blocks, atNames, curried) {\n  let elementBlock = _elementBlock ? [_elementBlock, []] : null;\n  let blocks = Array.isArray(_blocks) || _blocks === null ? namedBlocks(_blocks) : _blocks;\n  Replayable(op, () => {\n    expr(op, definition);\n    op(33\n    /* Dup */\n    , $sp, 0);\n    return 2;\n  }, () => {\n    op(66\n    /* JumpUnless */\n    , labelOperand('ELSE'));\n\n    if (curried) {\n      op(81\n      /* ResolveCurriedComponent */\n      );\n    } else {\n      op(80\n      /* ResolveDynamicComponent */\n      , isStrictMode());\n    }\n\n    op(79\n    /* PushDynamicComponentInstance */\n    );\n    InvokeNonStaticComponent(op, {\n      capabilities: true,\n      elementBlock,\n      positional,\n      named,\n      atNames,\n      blocks\n    });\n    op(1000\n    /* Label */\n    , 'ELSE');\n  });\n}\n\nfunction InvokeStaticComponent(op, {\n  capabilities,\n  layout,\n  elementBlock,\n  positional,\n  named,\n  blocks\n}) {\n  let {\n    symbolTable\n  } = layout;\n  let bailOut = symbolTable.hasEval || hasCapability(capabilities, 4\n  /* PrepareArgs */\n  );\n\n  if (bailOut) {\n    InvokeNonStaticComponent(op, {\n      capabilities,\n      elementBlock,\n      positional,\n      named,\n      atNames: true,\n      blocks,\n      layout\n    });\n    return;\n  }\n\n  op(36\n  /* Fetch */\n  , $s0);\n  op(33\n  /* Dup */\n  , $sp, 1);\n  op(35\n  /* Load */\n  , $s0);\n  op(0\n  /* PushFrame */\n  ); // Setup arguments\n\n  let {\n    symbols\n  } = symbolTable; // As we push values onto the stack, we store the symbols associated  with them\n  // so that we can set them on the scope later on with SetVariable and SetBlock\n\n  let blockSymbols = [];\n  let argSymbols = [];\n  let argNames = []; // First we push the blocks onto the stack\n\n  let blockNames = blocks.names; // Starting with the attrs block, if it exists and is referenced in the component\n\n  if (elementBlock !== null) {\n    let symbol = symbols.indexOf(ATTRS_BLOCK);\n\n    if (symbol !== -1) {\n      PushYieldableBlock(op, elementBlock);\n      blockSymbols.push(symbol);\n    }\n  } // Followed by the other blocks, if they exist and are referenced in the component.\n  // Also store the index of the associated symbol.\n\n\n  for (let i = 0; i < blockNames.length; i++) {\n    let name = blockNames[i];\n    let symbol = symbols.indexOf(`&${name}`);\n\n    if (symbol !== -1) {\n      PushYieldableBlock(op, blocks.get(name));\n      blockSymbols.push(symbol);\n    }\n  } // Next up we have arguments. If the component has the `createArgs` capability,\n  // then it wants access to the arguments in JavaScript. We can't know whether\n  // or not an argument is used, so we have to give access to all of them.\n\n\n  if (hasCapability(capabilities, 8\n  /* CreateArgs */\n  )) {\n    // First we push positional arguments\n    let count = CompilePositional(op, positional); // setup the flags with the count of positionals, and to indicate that atNames\n    // are used\n\n    let flags = count << 4;\n    flags |= 0b1000;\n    let names = EMPTY_STRING_ARRAY; // Next, if named args exist, push them all. If they have an associated symbol\n    // in the invoked component (e.g. they are used within its template), we push\n    // that symbol. If not, we still push the expression as it may be used, and\n    // we store the symbol as -1 (this is used later).\n\n    if (named !== null) {\n      names = named[0];\n      let val = named[1];\n\n      for (let i = 0; i < val.length; i++) {\n        let symbol = symbols.indexOf(names[i]);\n        expr(op, val[i]);\n        argSymbols.push(symbol);\n      }\n    } // Finally, push the VM arguments themselves. These args won't need access\n    // to blocks (they aren't accessible from userland anyways), so we push an\n    // empty array instead of the actual block names.\n\n\n    op(82\n    /* PushArgs */\n    , names, EMPTY_STRING_ARRAY, flags); // And push an extra pop operation to remove the args before we begin setting\n    // variables on the local context\n\n    argSymbols.push(-1);\n  } else if (named !== null) {\n    // If the component does not have the `createArgs` capability, then the only\n    // expressions we need to push onto the stack are those that are actually\n    // referenced in the template of the invoked component (e.g. have symbols).\n    let names = named[0];\n    let val = named[1];\n\n    for (let i = 0; i < val.length; i++) {\n      let name = names[i];\n      let symbol = symbols.indexOf(name);\n\n      if (symbol !== -1) {\n        expr(op, val[i]);\n        argSymbols.push(symbol);\n        argNames.push(name);\n      }\n    }\n  }\n\n  op(97\n  /* BeginComponentTransaction */\n  , $s0);\n\n  if (hasCapability(capabilities, 64\n  /* DynamicScope */\n  )) {\n    op(59\n    /* PushDynamicScope */\n    );\n  }\n\n  if (hasCapability(capabilities, 512\n  /* CreateInstance */\n  )) {\n    op(87\n    /* CreateComponent */\n    , blocks.has('default') | 0, $s0);\n  }\n\n  op(88\n  /* RegisterComponentDestructor */\n  , $s0);\n\n  if (hasCapability(capabilities, 8\n  /* CreateArgs */\n  )) {\n    op(90\n    /* GetComponentSelf */\n    , $s0);\n  } else {\n    op(90\n    /* GetComponentSelf */\n    , $s0, argNames);\n  } // Setup the new root scope for the component\n\n\n  op(37\n  /* RootScope */\n  , symbols.length + 1, Object.keys(blocks).length > 0 ? 1 : 0); // Pop the self reference off the stack and set it to the symbol for `this`\n  // in the new scope. This is why all subsequent symbols are increased by one.\n\n  op(19\n  /* SetVariable */\n  , 0); // Going in reverse, now we pop the args/blocks off the stack, starting with\n  // arguments, and assign them to their symbols in the new scope.\n\n  for (let i = argSymbols.length - 1; i >= 0; i--) {\n    let symbol = argSymbols[i];\n\n    if (symbol === -1) {\n      // The expression was not bound to a local symbol, it was only pushed to be\n      // used with VM args in the javascript side\n      op(34\n      /* Pop */\n      , 1);\n    } else {\n      op(19\n      /* SetVariable */\n      , symbol + 1);\n    }\n  } // if any positional params exist, pop them off the stack as well\n\n\n  if (positional !== null) {\n    op(34\n    /* Pop */\n    , positional.length);\n  } // Finish up by popping off and assigning blocks\n\n\n  for (let i = blockSymbols.length - 1; i >= 0; i--) {\n    let symbol = blockSymbols[i];\n    op(20\n    /* SetBlock */\n    , symbol + 1);\n  }\n\n  op(28\n  /* Constant */\n  , layoutOperand(layout));\n  op(61\n  /* CompileBlock */\n  );\n  op(2\n  /* InvokeVirtual */\n  );\n  op(100\n  /* DidRenderLayout */\n  , $s0);\n  op(1\n  /* PopFrame */\n  );\n  op(40\n  /* PopScope */\n  );\n\n  if (hasCapability(capabilities, 64\n  /* DynamicScope */\n  )) {\n    op(60\n    /* PopDynamicScope */\n    );\n  }\n\n  op(98\n  /* CommitComponentTransaction */\n  );\n  op(35\n  /* Load */\n  , $s0);\n}\n\nfunction InvokeNonStaticComponent(op, {\n  capabilities,\n  elementBlock,\n  positional,\n  named,\n  atNames,\n  blocks: namedBlocks$$1,\n  layout\n}) {\n  let bindableBlocks = !!namedBlocks$$1;\n  let bindableAtNames = capabilities === true || hasCapability(capabilities, 4\n  /* PrepareArgs */\n  ) || !!(named && named[0].length !== 0);\n  let blocks = namedBlocks$$1.with('attrs', elementBlock);\n  op(36\n  /* Fetch */\n  , $s0);\n  op(33\n  /* Dup */\n  , $sp, 1);\n  op(35\n  /* Load */\n  , $s0);\n  op(0\n  /* PushFrame */\n  );\n  CompileArgs(op, positional, named, blocks, atNames);\n  op(85\n  /* PrepareArgs */\n  , $s0);\n  invokePreparedComponent(op, blocks.has('default'), bindableBlocks, bindableAtNames, () => {\n    if (layout) {\n      op(63\n      /* PushSymbolTable */\n      , symbolTableOperand(layout.symbolTable));\n      op(28\n      /* Constant */\n      , layoutOperand(layout));\n      op(61\n      /* CompileBlock */\n      );\n    } else {\n      op(92\n      /* GetComponentLayout */\n      , $s0);\n    }\n\n    op(95\n    /* PopulateLayout */\n    , $s0);\n  });\n  op(35\n  /* Load */\n  , $s0);\n}\nfunction WrappedComponent(op, layout, attrsBlockNumber) {\n  op(1001\n  /* StartLabels */\n  );\n  WithSavedRegister(op, $s1, () => {\n    op(91\n    /* GetComponentTagName */\n    , $s0);\n    op(31\n    /* PrimitiveReference */\n    );\n    op(33\n    /* Dup */\n    , $sp, 0);\n  });\n  op(66\n  /* JumpUnless */\n  , labelOperand('BODY'));\n  op(36\n  /* Fetch */\n  , $s1);\n  op(89\n  /* PutComponentOperations */\n  );\n  op(49\n  /* OpenDynamicElement */\n  );\n  op(99\n  /* DidCreateElement */\n  , $s0);\n  YieldBlock(op, attrsBlockNumber, null);\n  op(54\n  /* FlushElement */\n  );\n  op(1000\n  /* Label */\n  , 'BODY');\n  InvokeStaticBlock(op, [layout.block[0], []]);\n  op(36\n  /* Fetch */\n  , $s1);\n  op(66\n  /* JumpUnless */\n  , labelOperand('END'));\n  op(55\n  /* CloseElement */\n  );\n  op(1000\n  /* Label */\n  , 'END');\n  op(35\n  /* Load */\n  , $s1);\n  op(1002\n  /* StopLabels */\n  );\n}\nfunction invokePreparedComponent(op, hasBlock, bindableBlocks, bindableAtNames, populateLayout = null) {\n  op(97\n  /* BeginComponentTransaction */\n  , $s0);\n  op(59\n  /* PushDynamicScope */\n  );\n  op(87\n  /* CreateComponent */\n  , hasBlock | 0, $s0); // this has to run after createComponent to allow\n  // for late-bound layouts, but a caller is free\n  // to populate the layout earlier if it wants to\n  // and do nothing here.\n\n  if (populateLayout) {\n    populateLayout();\n  }\n\n  op(88\n  /* RegisterComponentDestructor */\n  , $s0);\n  op(90\n  /* GetComponentSelf */\n  , $s0);\n  op(38\n  /* VirtualRootScope */\n  , $s0);\n  op(19\n  /* SetVariable */\n  , 0);\n  op(94\n  /* SetupForEval */\n  , $s0);\n  if (bindableAtNames) op(17\n  /* SetNamedVariables */\n  , $s0);\n  if (bindableBlocks) op(18\n  /* SetBlocks */\n  , $s0);\n  op(34\n  /* Pop */\n  , 1);\n  op(96\n  /* InvokeComponentLayout */\n  , $s0);\n  op(100\n  /* DidRenderLayout */\n  , $s0);\n  op(1\n  /* PopFrame */\n  );\n  op(40\n  /* PopScope */\n  );\n  op(60\n  /* PopDynamicScope */\n  );\n  op(98\n  /* CommitComponentTransaction */\n  );\n}\nfunction InvokeBareComponent(op) {\n  op(36\n  /* Fetch */\n  , $s0);\n  op(33\n  /* Dup */\n  , $sp, 1);\n  op(35\n  /* Load */\n  , $s0);\n  op(0\n  /* PushFrame */\n  );\n  op(83\n  /* PushEmptyArgs */\n  );\n  op(85\n  /* PrepareArgs */\n  , $s0);\n  invokePreparedComponent(op, false, false, true, () => {\n    op(92\n    /* GetComponentLayout */\n    , $s0);\n    op(95\n    /* PopulateLayout */\n    , $s0);\n  });\n  op(35\n  /* Load */\n  , $s0);\n}\nfunction WithSavedRegister(op, register, block) {\n  op(36\n  /* Fetch */\n  , register);\n  block();\n  op(35\n  /* Load */\n  , register);\n}\n\nclass StdLib {\n  constructor(main, trustingGuardedAppend, cautiousGuardedAppend, trustingNonDynamicAppend, cautiousNonDynamicAppend) {\n    this.main = main;\n    this.trustingGuardedAppend = trustingGuardedAppend;\n    this.cautiousGuardedAppend = cautiousGuardedAppend;\n    this.trustingNonDynamicAppend = trustingNonDynamicAppend;\n    this.cautiousNonDynamicAppend = cautiousNonDynamicAppend;\n  }\n\n  get 'trusting-append'() {\n    return this.trustingGuardedAppend;\n  }\n\n  get 'cautious-append'() {\n    return this.cautiousGuardedAppend;\n  }\n\n  get 'trusting-non-dynamic-append'() {\n    return this.trustingNonDynamicAppend;\n  }\n\n  get 'cautious-non-dynamic-append'() {\n    return this.cautiousNonDynamicAppend;\n  }\n\n  getAppend(trusting) {\n    return trusting ? this.trustingGuardedAppend : this.cautiousGuardedAppend;\n  }\n\n}\n\nfunction programCompilationContext(artifacts, resolver) {\n  return new CompileTimeCompilationContextImpl(artifacts, resolver);\n}\nfunction templateCompilationContext(program, meta) {\n  let encoder = new EncoderImpl(program.heap, meta, program.stdlib);\n  return {\n    program,\n    encoder,\n    meta\n  };\n}\n\nlet debugCompiler;\n\nconst STATEMENTS = new Compilers();\nconst INFLATE_ATTR_TABLE = ['class', 'id', 'value', 'name', 'type', 'style', 'href'];\nconst INFLATE_TAG_TABLE = ['div', 'span', 'p', 'a'];\nfunction inflateTagName(tagName) {\n  return typeof tagName === 'string' ? tagName : INFLATE_TAG_TABLE[tagName];\n}\nfunction inflateAttrName(attrName) {\n  return typeof attrName === 'string' ? attrName : INFLATE_ATTR_TABLE[attrName];\n}\nSTATEMENTS.add(3\n/* Comment */\n, (op, sexp) => op(42\n/* Comment */\n, sexp[1]));\nSTATEMENTS.add(13\n/* CloseElement */\n, op => op(55\n/* CloseElement */\n));\nSTATEMENTS.add(12\n/* FlushElement */\n, op => op(54\n/* FlushElement */\n));\nSTATEMENTS.add(4\n/* Modifier */\n, (op, [, expression, positional, named]) => {\n  if (isGetFreeModifier(expression)) {\n    op(1003\n    /* ResolveModifier */\n    , expression, handle => {\n      op(0\n      /* PushFrame */\n      );\n      SimpleArgs(op, positional, named, false);\n      op(57\n      /* Modifier */\n      , handle);\n      op(1\n      /* PopFrame */\n      );\n    });\n  } else {\n    expr(op, expression);\n    op(0\n    /* PushFrame */\n    );\n    SimpleArgs(op, positional, named, false);\n    op(33\n    /* Dup */\n    , $fp, 1);\n    op(108\n    /* DynamicModifier */\n    );\n    op(1\n    /* PopFrame */\n    );\n  }\n});\nSTATEMENTS.add(14\n/* StaticAttr */\n, (op, [, name, value, namespace]) => {\n  op(51\n  /* StaticAttr */\n  , inflateAttrName(name), value, namespace !== null && namespace !== void 0 ? namespace : null);\n});\nSTATEMENTS.add(24\n/* StaticComponentAttr */\n, (op, [, name, value, namespace]) => {\n  op(105\n  /* StaticComponentAttr */\n  , inflateAttrName(name), value, namespace !== null && namespace !== void 0 ? namespace : null);\n});\nSTATEMENTS.add(15\n/* DynamicAttr */\n, (op, [, name, value, namespace]) => {\n  expr(op, value);\n  op(52\n  /* DynamicAttr */\n  , inflateAttrName(name), false, namespace !== null && namespace !== void 0 ? namespace : null);\n});\nSTATEMENTS.add(22\n/* TrustingDynamicAttr */\n, (op, [, name, value, namespace]) => {\n  expr(op, value);\n  op(52\n  /* DynamicAttr */\n  , inflateAttrName(name), true, namespace !== null && namespace !== void 0 ? namespace : null);\n});\nSTATEMENTS.add(16\n/* ComponentAttr */\n, (op, [, name, value, namespace]) => {\n  expr(op, value);\n  op(53\n  /* ComponentAttr */\n  , inflateAttrName(name), false, namespace !== null && namespace !== void 0 ? namespace : null);\n});\nSTATEMENTS.add(23\n/* TrustingComponentAttr */\n, (op, [, name, value, namespace]) => {\n  expr(op, value);\n  op(53\n  /* ComponentAttr */\n  , inflateAttrName(name), true, namespace !== null && namespace !== void 0 ? namespace : null);\n});\nSTATEMENTS.add(10\n/* OpenElement */\n, (op, [, tag]) => {\n  op(48\n  /* OpenElement */\n  , inflateTagName(tag));\n});\nSTATEMENTS.add(11\n/* OpenElementWithSplat */\n, (op, [, tag]) => {\n  op(89\n  /* PutComponentOperations */\n  );\n  op(48\n  /* OpenElement */\n  , inflateTagName(tag));\n});\nSTATEMENTS.add(8\n/* Component */\n, (op, [, expr$$1, elementBlock, named, blocks]) => {\n  if (isGetFreeComponent(expr$$1)) {\n    op(1004\n    /* ResolveComponent */\n    , expr$$1, component => {\n      InvokeComponent(op, component, elementBlock, null, named, blocks);\n    });\n  } else {\n    // otherwise, the component name was an expression, so resolve the expression\n    // and invoke it as a dynamic component\n    InvokeDynamicComponent(op, expr$$1, elementBlock, null, named, blocks, true, true);\n  }\n});\nSTATEMENTS.add(19\n/* Partial */\n, (op, [, name, evalInfo]) => {\n  ReplayableIf(op, () => {\n    expr(op, name);\n    op(33\n    /* Dup */\n    , $sp, 0);\n    return 2;\n  }, () => {\n    op(101\n    /* InvokePartial */\n    , evalSymbolsOperand(), evalInfo);\n    op(40\n    /* PopScope */\n    );\n    op(1\n    /* PopFrame */\n    );\n  });\n});\nSTATEMENTS.add(18\n/* Yield */\n, (op, [, to, params]) => YieldBlock(op, to, params));\nSTATEMENTS.add(17\n/* AttrSplat */\n, (op, [, to]) => YieldBlock(op, to, null));\nSTATEMENTS.add(26\n/* Debugger */\n, (op, [, evalInfo]) => op(103\n/* Debugger */\n, evalSymbolsOperand(), evalInfo));\nSTATEMENTS.add(1\n/* Append */\n, (op, [, value]) => {\n  // Special case for static values\n  if (!Array.isArray(value)) {\n    op(41\n    /* Text */\n    , value === null || value === undefined ? '' : String(value));\n  } else if (isGetFreeOptionalComponentOrHelper(value)) {\n    op(1008\n    /* ResolveOptionalComponentOrHelper */\n    , value, {\n      ifComponent(component) {\n        InvokeComponent(op, component, null, null, null, null);\n      },\n\n      ifHelper(handle) {\n        op(0\n        /* PushFrame */\n        );\n        Call(op, handle, null, null);\n        op(3\n        /* InvokeStatic */\n        , stdlibOperand('cautious-non-dynamic-append'));\n        op(1\n        /* PopFrame */\n        );\n      },\n\n      ifValue(handle) {\n        op(0\n        /* PushFrame */\n        );\n        op(29\n        /* ConstantReference */\n        , handle);\n        op(3\n        /* InvokeStatic */\n        , stdlibOperand('cautious-non-dynamic-append'));\n        op(1\n        /* PopFrame */\n        );\n      },\n\n      ifFallback(_name) {\n        op(0\n        /* PushFrame */\n        );\n        op(1010\n        /* ResolveLocal */\n        , value[1], (name, moduleName) => {\n          deprecate(`The \\`${name}\\` property was used in the \\`${moduleName}\\` template without using \\`this\\`. This fallback behavior has been deprecated, all properties must be looked up on \\`this\\` when used in the template: {{this.${name}}}`, false, {\n            id: 'this-property-fallback'\n          });\n          op(21\n          /* GetVariable */\n          , 0);\n          op(22\n          /* GetProperty */\n          , name);\n        });\n        op(3\n        /* InvokeStatic */\n        , stdlibOperand('cautious-append'));\n        op(1\n        /* PopFrame */\n        );\n      }\n\n    });\n  } else if (value[0] === 28\n  /* Call */\n  ) {\n      let [, expression, positional, named] = value;\n\n      if (isGetFreeComponentOrHelper(expression)) {\n        op(1007\n        /* ResolveComponentOrHelper */\n        , expression, {\n          ifComponent(component) {\n            InvokeComponent(op, component, null, positional, hashToArgs(named), null);\n          },\n\n          ifHelper(handle) {\n            op(0\n            /* PushFrame */\n            );\n            Call(op, handle, positional, named);\n            op(3\n            /* InvokeStatic */\n            , stdlibOperand('cautious-non-dynamic-append'));\n            op(1\n            /* PopFrame */\n            );\n          }\n\n        });\n      } else {\n        SwitchCases(op, () => {\n          expr(op, expression);\n          op(106\n          /* DynamicContentType */\n          );\n        }, when => {\n          when(0\n          /* Component */\n          , () => {\n            op(81\n            /* ResolveCurriedComponent */\n            );\n            op(79\n            /* PushDynamicComponentInstance */\n            );\n            InvokeNonStaticComponent(op, {\n              capabilities: true,\n              elementBlock: null,\n              positional,\n              named,\n              atNames: false,\n              blocks: namedBlocks(null)\n            });\n          });\n          when(1\n          /* Helper */\n          , () => {\n            CallDynamic(op, positional, named, () => {\n              op(3\n              /* InvokeStatic */\n              , stdlibOperand('cautious-non-dynamic-append'));\n            });\n          });\n        });\n      }\n    } else {\n    op(0\n    /* PushFrame */\n    );\n    expr(op, value);\n    op(3\n    /* InvokeStatic */\n    , stdlibOperand('cautious-append'));\n    op(1\n    /* PopFrame */\n    );\n  }\n});\nSTATEMENTS.add(2\n/* TrustingAppend */\n, (op, [, value]) => {\n  if (!Array.isArray(value)) {\n    op(41\n    /* Text */\n    , value === null || value === undefined ? '' : String(value));\n  } else {\n    op(0\n    /* PushFrame */\n    );\n    expr(op, value);\n    op(3\n    /* InvokeStatic */\n    , stdlibOperand('trusting-append'));\n    op(1\n    /* PopFrame */\n    );\n  }\n});\nSTATEMENTS.add(6\n/* Block */\n, (op, [, expr$$1, positional, named, blocks]) => {\n  if (isGetFreeComponent(expr$$1)) {\n    op(1004\n    /* ResolveComponent */\n    , expr$$1, component => {\n      InvokeComponent(op, component, null, positional, hashToArgs(named), blocks);\n    });\n  } else {\n    InvokeDynamicComponent(op, expr$$1, null, positional, named, blocks, false, false);\n  }\n});\nSTATEMENTS.add(40\n/* InElement */\n, (op, [, block, guid, destination, insertBefore]) => {\n  ReplayableIf(op, () => {\n    expr(op, guid);\n\n    if (insertBefore === undefined) {\n      PushPrimitiveReference(op, undefined);\n    } else {\n      expr(op, insertBefore);\n    }\n\n    expr(op, destination);\n    op(33\n    /* Dup */\n    , $sp, 0);\n    return 4;\n  }, () => {\n    op(50\n    /* PushRemoteElement */\n    );\n    InvokeStaticBlock(op, block);\n    op(56\n    /* PopRemoteElement */\n    );\n  });\n});\nSTATEMENTS.add(41\n/* If */\n, (op, [, condition, block, inverse]) => ReplayableIf(op, () => {\n  expr(op, condition);\n  op(71\n  /* ToBoolean */\n  );\n  return 1;\n}, () => {\n  InvokeStaticBlock(op, block);\n}, inverse ? () => {\n  InvokeStaticBlock(op, inverse);\n} : undefined));\nSTATEMENTS.add(42\n/* Each */\n, (op, [, value, key, block, inverse]) => Replayable(op, () => {\n  if (key) {\n    expr(op, key);\n  } else {\n    PushPrimitiveReference(op, null);\n  }\n\n  expr(op, value);\n  return 2;\n}, () => {\n  op(72\n  /* EnterList */\n  , labelOperand('BODY'), labelOperand('ELSE'));\n  op(0\n  /* PushFrame */\n  );\n  op(33\n  /* Dup */\n  , $fp, 1);\n  op(6\n  /* ReturnTo */\n  , labelOperand('ITER'));\n  op(1000\n  /* Label */\n  , 'ITER');\n  op(74\n  /* Iterate */\n  , labelOperand('BREAK'));\n  op(1000\n  /* Label */\n  , 'BODY');\n  InvokeStaticBlockWithStack(op, block, 2);\n  op(34\n  /* Pop */\n  , 2);\n  op(4\n  /* Jump */\n  , labelOperand('FINALLY'));\n  op(1000\n  /* Label */\n  , 'BREAK');\n  op(1\n  /* PopFrame */\n  );\n  op(73\n  /* ExitList */\n  );\n  op(4\n  /* Jump */\n  , labelOperand('FINALLY'));\n  op(1000\n  /* Label */\n  , 'ELSE');\n\n  if (inverse) {\n    InvokeStaticBlock(op, inverse);\n  }\n}));\nSTATEMENTS.add(43\n/* With */\n, (op, [, value, block, inverse]) => {\n  ReplayableIf(op, () => {\n    expr(op, value);\n    op(33\n    /* Dup */\n    , $sp, 0);\n    op(71\n    /* ToBoolean */\n    );\n    return 2;\n  }, () => {\n    InvokeStaticBlockWithStack(op, block, 1);\n  }, () => {\n    if (inverse) {\n      InvokeStaticBlock(op, inverse);\n    }\n  });\n});\nSTATEMENTS.add(44\n/* Let */\n, (op, [, positional, block]) => {\n  let count = CompilePositional(op, positional);\n  InvokeStaticBlockWithStack(op, block, count);\n});\nSTATEMENTS.add(45\n/* WithDynamicVars */\n, (op, [, named, block]) => {\n  if (named) {\n    let [names, expressions] = named;\n    CompilePositional(op, expressions);\n    DynamicScope(op, names, () => {\n      InvokeStaticBlock(op, block);\n    });\n  } else {\n    InvokeStaticBlock(op, block);\n  }\n});\nSTATEMENTS.add(46\n/* InvokeComponent */\n, (op, [, expr$$1, positional, named, blocks]) => {\n  if (isGetFreeComponent(expr$$1)) {\n    op(1004\n    /* ResolveComponent */\n    , expr$$1, component => {\n      InvokeComponent(op, component, null, positional, hashToArgs(named), blocks);\n    });\n  } else {\n    InvokeDynamicComponent(op, expr$$1, null, positional, named, blocks, false, false);\n  }\n});\n\nfunction hashToArgs(hash) {\n  if (hash === null) return null;\n  let names = hash[0].map(key => `@${key}`);\n  return [names, hash[1]];\n}\n\nconst PLACEHOLDER_HANDLE = -1;\n\nclass CompilableTemplateImpl {\n  constructor(statements, meta$$1, // Part of CompilableTemplate\n  symbolTable, // Used for debugging\n  moduleName = 'plain block') {\n    this.statements = statements;\n    this.meta = meta$$1;\n    this.symbolTable = symbolTable;\n    this.moduleName = moduleName;\n    this.compiled = null;\n  } // Part of CompilableTemplate\n\n\n  compile(context) {\n    return maybeCompile(this, context);\n  }\n\n}\n\nfunction compilable(layout, moduleName) {\n  let [statements, symbols, hasEval] = layout.block;\n  return new CompilableTemplateImpl(statements, meta(layout), {\n    symbols,\n    hasEval\n  }, moduleName);\n}\n\nfunction maybeCompile(compilable, context) {\n  if (compilable.compiled !== null) return compilable.compiled;\n  compilable.compiled = PLACEHOLDER_HANDLE;\n  let {\n    statements,\n    meta: meta$$1\n  } = compilable;\n  let result = compileStatements(statements, meta$$1, context);\n  compilable.compiled = result;\n  return result;\n}\n\nfunction compileStatements(statements, meta$$1, syntaxContext) {\n  let sCompiler = STATEMENTS;\n  let context = templateCompilationContext(syntaxContext, meta$$1);\n  let {\n    encoder,\n    program: {\n      constants,\n      resolver\n    }\n  } = context;\n\n  function pushOp(...op) {\n    encodeOp(encoder, constants, resolver, meta$$1, op);\n  }\n\n  for (let i = 0; i < statements.length; i++) {\n    sCompiler.compile(pushOp, statements[i]);\n  }\n\n  let handle = context.encoder.commit(meta$$1.size);\n\n  return handle;\n}\nfunction compilableBlock(block, containing) {\n  return new CompilableTemplateImpl(block[0], containing, {\n    parameters: block[1] || EMPTY_ARRAY\n  });\n}\n\nclass Labels {\n  constructor() {\n    this.labels = dict();\n    this.targets = [];\n  }\n\n  label(name, index) {\n    this.labels[name] = index;\n  }\n\n  target(at, target) {\n    this.targets.push({\n      at,\n      target\n    });\n  }\n\n  patch(heap) {\n    let {\n      targets,\n      labels\n    } = this;\n\n    for (let i = 0; i < targets.length; i++) {\n      let {\n        at,\n        target\n      } = targets[i];\n      let address = labels[target] - at;\n      heap.setbyaddr(at, address);\n    }\n  }\n\n}\nfunction encodeOp(encoder, constants, resolver, meta, op) {\n  if (isBuilderOpcode(op[0])) {\n    let [type, ...operands] = op;\n    encoder.push(constants, type, ...operands);\n  } else {\n    switch (op[0]) {\n      case 1000\n      /* Label */\n      :\n        return encoder.label(op[1]);\n\n      case 1001\n      /* StartLabels */\n      :\n        return encoder.startLabels();\n\n      case 1002\n      /* StopLabels */\n      :\n        return encoder.stopLabels();\n\n      case 1004\n      /* ResolveComponent */\n      :\n        return resolveComponent(resolver, constants, meta, op);\n\n      case 1003\n      /* ResolveModifier */\n      :\n        return resolveModifier(resolver, constants, meta, op);\n\n      case 1005\n      /* ResolveHelper */\n      :\n        return resolveHelper(resolver, constants, meta, op);\n\n      case 1007\n      /* ResolveComponentOrHelper */\n      :\n        return resolveComponentOrHelper(resolver, constants, meta, op);\n\n      case 1006\n      /* ResolveOptionalHelper */\n      :\n        return resolveOptionalHelper(resolver, constants, meta, op);\n\n      case 1008\n      /* ResolveOptionalComponentOrHelper */\n      :\n        return resolveOptionalComponentOrHelper(resolver, constants, meta, op);\n\n      case 1010\n      /* ResolveLocal */\n      :\n        let freeVar = op[1];\n        let name = meta.upvars[freeVar];\n\n        if (meta.asPartial === true) {\n          encoder.push(constants, 102\n          /* ResolveMaybeLocal */\n          , name);\n        } else {\n          let then = op[2];\n          then(name, meta.moduleName);\n        }\n\n        break;\n\n      case 1011\n      /* ResolveTemplateLocal */\n      :\n        let [, valueIndex, then] = op;\n        let value = meta.scopeValues[valueIndex];\n        then(constants.value(value));\n        break;\n\n      case 1009\n      /* ResolveFree */\n      :\n        if (DEBUG) {\n          let [, upvarIndex] = op;\n          let freeName = meta.upvars[upvarIndex];\n          throw new Error(`Attempted to resolve a value in a strict mode template, but that value was not in scope: ${freeName}`);\n        }\n\n        break;\n\n      default:\n        throw new Error(`Unexpected high level opcode ${op[0]}`);\n    }\n  }\n}\nclass EncoderImpl {\n  constructor(heap, meta, stdlib) {\n    this.heap = heap;\n    this.meta = meta;\n    this.stdlib = stdlib;\n    this.labelsStack = new Stack();\n    this.encoder = new InstructionEncoderImpl([]);\n    this.errors = [];\n    this.handle = heap.malloc();\n  }\n\n  error(error) {\n    this.encoder.encode(30\n    /* Primitive */\n    , 0);\n    this.errors.push(error);\n  }\n\n  commit(size) {\n    let handle = this.handle;\n    this.heap.push(5\n    /* Return */\n    | 1024\n    /* MACHINE_MASK */\n    );\n    this.heap.finishMalloc(handle, size);\n\n    if (this.errors.length) {\n      return {\n        errors: this.errors,\n        handle\n      };\n    } else {\n      return handle;\n    }\n  }\n\n  push(constants, type, ...args) {\n    let {\n      heap\n    } = this;\n\n    if (DEBUG && type > 255\n    /* TYPE_SIZE */\n    ) {\n        throw new Error(`Opcode type over 8-bits. Got ${type}.`);\n      }\n\n    let machine = isMachineOp(type) ? 1024\n    /* MACHINE_MASK */\n    : 0;\n    let first = type | machine | args.length << 8\n    /* ARG_SHIFT */\n    ;\n    heap.push(first);\n\n    for (let i = 0; i < args.length; i++) {\n      let op = args[i];\n      heap.push(this.operand(constants, op));\n    }\n  }\n\n  operand(constants, operand) {\n    if (typeof operand === 'number') {\n      return operand;\n    }\n\n    if (typeof operand === 'object' && operand !== null) {\n      if (Array.isArray(operand)) {\n        return encodeHandle(constants.array(operand));\n      } else {\n        switch (operand.type) {\n          case 1\n          /* Label */\n          :\n            this.currentLabels.target(this.heap.offset, operand.value);\n            return -1;\n\n          case 2\n          /* IsStrictMode */\n          :\n            return encodeHandle(constants.value(this.meta.isStrictMode));\n\n          case 3\n          /* EvalSymbols */\n          :\n            return encodeHandle(constants.array(this.meta.evalSymbols || EMPTY_STRING_ARRAY));\n\n          case 4\n          /* Block */\n          :\n            return encodeHandle(constants.value(compilableBlock(operand.value, this.meta)));\n\n          case 5\n          /* StdLib */\n          :\n            return this.stdlib[operand.value];\n\n          case 6\n          /* NonSmallInt */\n          :\n          case 7\n          /* SymbolTable */\n          :\n          case 8\n          /* Layout */\n          :\n            return constants.value(operand.value);\n        }\n      }\n    }\n\n    return encodeHandle(constants.value(operand));\n  }\n\n  get currentLabels() {\n    return this.labelsStack.current;\n  }\n\n  label(name) {\n    this.currentLabels.label(name, this.heap.offset + 1);\n  }\n\n  startLabels() {\n    this.labelsStack.push(new Labels());\n  }\n\n  stopLabels() {\n    let label = this.labelsStack.pop();\n    label.patch(this.heap);\n  }\n\n}\n\nfunction isBuilderOpcode(op) {\n  return op < 1000\n  /* Start */\n  ;\n}\n\nfunction main(op) {\n  op(75\n  /* Main */\n  , $s0);\n  invokePreparedComponent(op, false, false, true);\n}\n/**\n * Append content to the DOM. This standard function triages content and does the\n * right thing based upon whether it's a string, safe string, component, fragment\n * or node.\n *\n * @param trusting whether to interpolate a string as raw HTML (corresponds to\n * triple curlies)\n */\n\nfunction StdAppend(op, trusting, nonDynamicAppend) {\n  SwitchCases(op, () => op(76\n  /* ContentType */\n  ), when => {\n    when(2\n    /* String */\n    , () => {\n      if (trusting) {\n        op(68\n        /* AssertSame */\n        );\n        op(43\n        /* AppendHTML */\n        );\n      } else {\n        op(47\n        /* AppendText */\n        );\n      }\n    });\n\n    if (typeof nonDynamicAppend === 'number') {\n      when(0\n      /* Component */\n      , () => {\n        op(81\n        /* ResolveCurriedComponent */\n        );\n        op(79\n        /* PushDynamicComponentInstance */\n        );\n        InvokeBareComponent(op);\n      });\n      when(1\n      /* Helper */\n      , () => {\n        CallDynamic(op, null, null, () => {\n          op(3\n          /* InvokeStatic */\n          , nonDynamicAppend);\n        });\n      });\n    } else {\n      // when non-dynamic, we can no longer call the value (potentially because we've already called it)\n      // this prevents infinite loops. We instead coerce the value, whatever it is, into the DOM.\n      when(0\n      /* Component */\n      , () => {\n        op(47\n        /* AppendText */\n        );\n      });\n      when(1\n      /* Helper */\n      , () => {\n        op(47\n        /* AppendText */\n        );\n      });\n    }\n\n    when(4\n    /* SafeString */\n    , () => {\n      op(68\n      /* AssertSame */\n      );\n      op(44\n      /* AppendSafeHTML */\n      );\n    });\n    when(5\n    /* Fragment */\n    , () => {\n      op(68\n      /* AssertSame */\n      );\n      op(45\n      /* AppendDocumentFragment */\n      );\n    });\n    when(6\n    /* Node */\n    , () => {\n      op(68\n      /* AssertSame */\n      );\n      op(46\n      /* AppendNode */\n      );\n    });\n  });\n}\nfunction compileStd(context) {\n  let mainHandle = build(context, op => main(op));\n  let trustingGuardedNonDynamicAppend = build(context, op => StdAppend(op, true, null));\n  let cautiousGuardedNonDynamicAppend = build(context, op => StdAppend(op, false, null));\n  let trustingGuardedDynamicAppend = build(context, op => StdAppend(op, true, trustingGuardedNonDynamicAppend));\n  let cautiousGuardedDynamicAppend = build(context, op => StdAppend(op, false, cautiousGuardedNonDynamicAppend));\n  return new StdLib(mainHandle, trustingGuardedDynamicAppend, cautiousGuardedDynamicAppend, trustingGuardedNonDynamicAppend, cautiousGuardedNonDynamicAppend);\n}\nconst STDLIB_META = {\n  asPartial: false,\n  evalSymbols: null,\n  upvars: null,\n  moduleName: 'stdlib',\n  // TODO: ??\n  scopeValues: null,\n  isStrictMode: true,\n  owner: null,\n  size: 0\n};\n\nfunction build(program, callback) {\n  let {\n    constants,\n    heap,\n    resolver\n  } = program;\n  let encoder = new EncoderImpl(heap, STDLIB_META);\n\n  function pushOp(...op) {\n    encodeOp(encoder, constants, resolver, STDLIB_META, op);\n  }\n\n  callback(pushOp);\n  let result = encoder.commit(0);\n\n  if (typeof result !== 'number') {\n    // This shouldn't be possible\n    throw new Error(`Unexpected errors compiling std`);\n  } else {\n    return result;\n  }\n}\n\nclass CompileTimeCompilationContextImpl {\n  constructor({\n    constants,\n    heap\n  }, resolver) {\n    this.resolver = resolver;\n    this.constants = constants;\n    this.heap = heap;\n    this.stdlib = compileStd(this);\n  }\n\n}\n\nconst DEFAULT_CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: true,\n  prepareArgs: true,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  dynamicScope: true,\n  createCaller: false,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nconst MINIMAL_CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  dynamicScope: false,\n  createCaller: false,\n  updateHook: false,\n  createInstance: false,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\n\nclass PartialDefinitionImpl {\n  constructor(name, // for debugging\n  template) {\n    this.name = name;\n    this.template = template;\n  }\n\n  getPartial(context) {\n    let partial = unwrapTemplate(this.template).asPartial();\n    let handle = partial.compile(context);\n    return {\n      symbolTable: partial.symbolTable,\n      handle\n    };\n  }\n\n}\n\nclass WrappedBuilder {\n  constructor(layout, moduleName) {\n    this.layout = layout;\n    this.moduleName = moduleName;\n    this.compiled = null;\n    let {\n      block\n    } = layout;\n    let [, symbols, hasEval] = block;\n    symbols = symbols.slice(); // ensure ATTRS_BLOCK is always included (only once) in the list of symbols\n\n    let attrsBlockIndex = symbols.indexOf(ATTRS_BLOCK);\n\n    if (attrsBlockIndex === -1) {\n      this.attrsBlockNumber = symbols.push(ATTRS_BLOCK);\n    } else {\n      this.attrsBlockNumber = attrsBlockIndex + 1;\n    }\n\n    this.symbolTable = {\n      hasEval,\n      symbols\n    };\n  }\n\n  compile(syntax) {\n    if (this.compiled !== null) return this.compiled;\n    let m = meta(this.layout);\n    let context = templateCompilationContext(syntax, m);\n    let {\n      encoder,\n      program: {\n        constants,\n        resolver\n      }\n    } = context;\n\n    function pushOp(...op) {\n      encodeOp(encoder, constants, resolver, m, op);\n    }\n\n    WrappedComponent(pushOp, this.layout, this.attrsBlockNumber);\n    let handle = context.encoder.commit(m.size);\n\n    if (typeof handle !== 'number') {\n      return handle;\n    }\n\n    this.compiled = handle;\n\n    return handle;\n  }\n\n}\n\nlet clientId = 0;\nlet templateCacheCounters = {\n  cacheHit: 0,\n  cacheMiss: 0\n};\n/**\n * Wraps a template js in a template module to change it into a factory\n * that handles lazy parsing the template and to create per env singletons\n * of the template.\n */\n\nfunction templateFactory({\n  id: templateId,\n  moduleName,\n  block,\n  scope,\n  isStrictMode\n}) {\n  // TODO(template-refactors): This should be removed in the near future, as it\n  // appears that id is unused. It is currently kept for backwards compat reasons.\n  let id = templateId || `client-${clientId++}`; // TODO: This caches JSON serialized output once in case a template is\n  // compiled by multiple owners, but we haven't verified if this is actually\n  // helpful. We should benchmark this in the future.\n\n  let parsedBlock;\n  let ownerlessTemplate = null;\n  let templateCache = new WeakMap();\n\n  let factory = owner => {\n    if (parsedBlock === undefined) {\n      parsedBlock = JSON.parse(block);\n    }\n\n    if (owner === undefined) {\n      if (ownerlessTemplate === null) {\n        templateCacheCounters.cacheMiss++;\n        ownerlessTemplate = new TemplateImpl({\n          id,\n          block: parsedBlock,\n          moduleName,\n          owner: null,\n          scope,\n          isStrictMode\n        });\n      } else {\n        templateCacheCounters.cacheHit++;\n      }\n\n      return ownerlessTemplate;\n    }\n\n    let result = templateCache.get(owner);\n\n    if (result === undefined) {\n      templateCacheCounters.cacheMiss++;\n      result = new TemplateImpl({\n        id,\n        block: parsedBlock,\n        moduleName,\n        owner,\n        scope,\n        isStrictMode\n      });\n      templateCache.set(owner, result);\n    } else {\n      templateCacheCounters.cacheHit++;\n    }\n\n    return result;\n  };\n\n  factory.__id = id;\n  factory.__meta = {\n    moduleName\n  };\n  return factory;\n}\n\nclass TemplateImpl {\n  constructor(parsedLayout) {\n    this.parsedLayout = parsedLayout;\n    this.result = 'ok';\n    this.layout = null;\n    this.partial = null;\n    this.wrappedLayout = null;\n  }\n\n  get moduleName() {\n    return this.parsedLayout.moduleName;\n  }\n\n  get id() {\n    return this.parsedLayout.id;\n  } // TODO(template-refactors): This should be removed in the near future, it is\n  // only being exposed for backwards compatibility\n\n\n  get referrer() {\n    return {\n      moduleName: this.parsedLayout.moduleName,\n      owner: this.parsedLayout.owner\n    };\n  }\n\n  asLayout() {\n    if (this.layout) return this.layout;\n    return this.layout = compilable(assign({}, this.parsedLayout, {\n      asPartial: false\n    }), this.moduleName);\n  }\n\n  asPartial() {\n    if (this.partial) return this.partial;\n    return this.partial = compilable(assign({}, this.parsedLayout, {\n      asPartial: true\n    }), this.moduleName);\n  }\n\n  asWrappedLayout() {\n    if (this.wrappedLayout) return this.wrappedLayout;\n    return this.wrappedLayout = new WrappedBuilder(assign({}, this.parsedLayout, {\n      asPartial: false\n    }), this.moduleName);\n  }\n\n}\n\nexport { debugCompiler, compileStatements, compilable, InvokeStaticBlockWithStack as invokeStaticBlockWithStack, InvokeStaticBlock as invokeStaticBlock, compileStd, meta, StdLib, PartialDefinitionImpl, templateFactory, templateCacheCounters, WrappedBuilder, EMPTY_BLOCKS, CompileTimeCompilationContextImpl, programCompilationContext, templateCompilationContext, DEFAULT_CAPABILITIES, MINIMAL_CAPABILITIES };\n","import { symbol } from '@glimmer/util';\n\nconst OWNER = symbol('OWNER');\n/**\n  Framework objects in a Glimmer application may receive an owner object.\n  Glimmer is unopinionated about this owner, but will forward it through its\n  internal resolution system, and through its managers if it is provided.\n*/\n\nfunction getOwner(object) {\n  return object[OWNER];\n}\n/**\n  `setOwner` set's an object's owner\n*/\n\nfunction setOwner(object, owner) {\n  object[OWNER] = owner;\n}\n\nexport { OWNER, getOwner, setOwner };\n","import { constants, unwrapTemplate } from '@glimmer/util';\nimport { capabilityFlagsFrom, getComponentTemplate, getInternalComponentManager, getInternalHelperManager, getInternalModifierManager, managerHasCapability } from '@glimmer/manager';\nimport { templateFactory } from '@glimmer/opcode-compiler';\n\n/**\n * Default component template, which is a plain yield\n */\nconst DEFAULT_TEMPLATE_BLOCK = [[[18\n/* Yield */\n, 1, null]], ['&default'], false, []];\nconst DEFAULT_TEMPLATE = {\n  // random uuid\n  id: '1b32f5c2-7623-43d6-a0ad-9672898920a1',\n  moduleName: '__default__.hbs',\n  block: JSON.stringify(DEFAULT_TEMPLATE_BLOCK),\n  scope: null,\n  isStrictMode: true\n};\n\nconst WELL_KNOWN_EMPTY_ARRAY = Object.freeze([]);\nconst STARTER_CONSTANTS = constants(WELL_KNOWN_EMPTY_ARRAY);\nconst WELL_KNOWN_EMPTY_ARRAY_POSITION = STARTER_CONSTANTS.indexOf(WELL_KNOWN_EMPTY_ARRAY);\nclass CompileTimeConstantImpl {\n  constructor() {\n    // `0` means NULL\n    this.values = STARTER_CONSTANTS.slice();\n    this.indexMap = new Map(this.values.map((value, index) => [value, index]));\n  }\n\n  value(value) {\n    let indexMap = this.indexMap;\n    let index = indexMap.get(value);\n\n    if (index === undefined) {\n      index = this.values.push(value) - 1;\n      indexMap.set(value, index);\n    }\n\n    return index;\n  }\n\n  array(values) {\n    if (values.length === 0) {\n      return WELL_KNOWN_EMPTY_ARRAY_POSITION;\n    }\n\n    let handles = new Array(values.length);\n\n    for (let i = 0; i < values.length; i++) {\n      handles[i] = this.value(values[i]);\n    }\n\n    return this.value(handles);\n  }\n\n  toPool() {\n    return this.values;\n  }\n\n}\nclass RuntimeConstantsImpl {\n  constructor(pool) {\n    this.values = pool;\n  }\n\n  getValue(handle) {\n    return this.values[handle];\n  }\n\n  getArray(value) {\n    let handles = this.getValue(value);\n    let reified = new Array(handles.length);\n\n    for (let i = 0; i < handles.length; i++) {\n      let n = handles[i];\n      reified[i] = this.getValue(n);\n    }\n\n    return reified;\n  }\n\n}\nclass ConstantsImpl extends CompileTimeConstantImpl {\n  constructor() {\n    super(...arguments);\n    this.reifiedArrs = {\n      [WELL_KNOWN_EMPTY_ARRAY_POSITION]: WELL_KNOWN_EMPTY_ARRAY\n    };\n    this.defaultTemplate = templateFactory(DEFAULT_TEMPLATE)(); // Used for tests and debugging purposes, and to be able to analyze large apps\n    // This is why it's enabled even in production\n\n    this.helperDefinitionCount = 0;\n    this.modifierDefinitionCount = 0;\n    this.componentDefinitionCount = 0;\n    this.helperDefinitionCache = new WeakMap();\n    this.modifierDefinitionCache = new WeakMap();\n    this.componentDefinitionCache = new WeakMap();\n  }\n\n  helper(definitionState, // TODO: Add a way to expose resolved name for debugging\n  _resolvedName = null, isOptional) {\n    let handle = this.helperDefinitionCache.get(definitionState);\n\n    if (handle === undefined) {\n      let managerOrHelper = getInternalHelperManager(definitionState, isOptional);\n\n      if (managerOrHelper === null) {\n        this.helperDefinitionCache.set(definitionState, null);\n        return null;\n      }\n      let helper = typeof managerOrHelper === 'function' ? managerOrHelper : managerOrHelper.getHelper(definitionState);\n      handle = this.value(helper);\n      this.helperDefinitionCache.set(definitionState, handle);\n      this.helperDefinitionCount++;\n    }\n\n    return handle;\n  }\n\n  modifier(definitionState, resolvedName = null, isOptional) {\n    let handle = this.modifierDefinitionCache.get(definitionState);\n\n    if (handle === undefined) {\n      let manager = getInternalModifierManager(definitionState, isOptional);\n\n      if (manager === null) {\n        this.modifierDefinitionCache.set(definitionState, null);\n        return null;\n      }\n\n      let definition = {\n        resolvedName,\n        manager,\n        state: definitionState\n      };\n      handle = this.value(definition);\n      this.modifierDefinitionCache.set(definitionState, handle);\n      this.modifierDefinitionCount++;\n    }\n\n    return handle;\n  }\n\n  component(definitionState, owner, isOptional) {\n    var _a;\n\n    let definition = this.componentDefinitionCache.get(definitionState);\n\n    if (definition === undefined) {\n      let manager = getInternalComponentManager(definitionState, isOptional);\n\n      if (manager === null) {\n        this.componentDefinitionCache.set(definitionState, null);\n        return null;\n      }\n      let capabilities = capabilityFlagsFrom(manager.getCapabilities(definitionState));\n      let templateFactory$$1 = getComponentTemplate(definitionState);\n      let compilable = null;\n      let template;\n\n      if (!managerHasCapability(manager, capabilities, 1\n      /* DynamicLayout */\n      )) {\n        template = (_a = templateFactory$$1 === null || templateFactory$$1 === void 0 ? void 0 : templateFactory$$1(owner)) !== null && _a !== void 0 ? _a : this.defaultTemplate;\n      } else {\n        template = templateFactory$$1 === null || templateFactory$$1 === void 0 ? void 0 : templateFactory$$1(owner);\n      }\n\n      if (template !== undefined) {\n        template = unwrapTemplate(template);\n        compilable = managerHasCapability(manager, capabilities, 1024\n        /* Wrapped */\n        ) ? template.asWrappedLayout() : template.asLayout();\n      }\n\n      definition = {\n        resolvedName: null,\n        handle: -1,\n        manager,\n        capabilities,\n        state: definitionState,\n        compilable\n      };\n      definition.handle = this.value(definition);\n      this.componentDefinitionCache.set(definitionState, definition);\n      this.componentDefinitionCount++;\n    }\n\n    return definition;\n  }\n\n  resolvedComponent(resolvedDefinition, resolvedName) {\n    let definition = this.componentDefinitionCache.get(resolvedDefinition);\n\n    if (definition === undefined) {\n      let {\n        manager,\n        state,\n        template\n      } = resolvedDefinition;\n      let capabilities = capabilityFlagsFrom(manager.getCapabilities(resolvedDefinition));\n      let compilable = null;\n\n      if (!managerHasCapability(manager, capabilities, 1\n      /* DynamicLayout */\n      )) {\n        template = template !== null && template !== void 0 ? template : this.defaultTemplate;\n      }\n\n      if (template !== null) {\n        template = unwrapTemplate(template);\n        compilable = managerHasCapability(manager, capabilities, 1024\n        /* Wrapped */\n        ) ? template.asWrappedLayout() : template.asLayout();\n      }\n\n      definition = {\n        resolvedName,\n        handle: -1,\n        manager,\n        capabilities,\n        state,\n        compilable\n      };\n      definition.handle = this.value(definition);\n      this.componentDefinitionCache.set(resolvedDefinition, definition);\n      this.componentDefinitionCount++;\n    }\n\n    return definition;\n  }\n\n  getValue(index) {\n    return this.values[index];\n  }\n\n  getArray(index) {\n    let reifiedArrs = this.reifiedArrs;\n    let reified = reifiedArrs[index];\n\n    if (reified === undefined) {\n      let names = this.getValue(index);\n      reified = new Array(names.length);\n\n      for (let i = 0; i < names.length; i++) {\n        reified[i] = this.getValue(names[i]);\n      }\n\n      reifiedArrs[index] = reified;\n    }\n\n    return reified;\n  }\n\n}\n\nclass RuntimeOpImpl {\n  constructor(heap) {\n    this.heap = heap;\n    this.offset = 0;\n  }\n\n  get size() {\n    let rawType = this.heap.getbyaddr(this.offset);\n    return ((rawType & 768\n    /* OPERAND_LEN_MASK */\n    ) >> 8\n    /* ARG_SHIFT */\n    ) + 1;\n  }\n\n  get isMachine() {\n    let rawType = this.heap.getbyaddr(this.offset);\n    return rawType & 1024\n    /* MACHINE_MASK */\n    ? 1 : 0;\n  }\n\n  get type() {\n    return this.heap.getbyaddr(this.offset) & 255\n    /* TYPE_MASK */\n    ;\n  }\n\n  get op1() {\n    return this.heap.getbyaddr(this.offset + 1);\n  }\n\n  get op2() {\n    return this.heap.getbyaddr(this.offset + 2);\n  }\n\n  get op3() {\n    return this.heap.getbyaddr(this.offset + 3);\n  }\n\n}\n\nconst PAGE_SIZE = 0x100000;\nclass RuntimeHeapImpl {\n  constructor(serializedHeap) {\n    let {\n      buffer,\n      table\n    } = serializedHeap;\n    this.heap = new Int32Array(buffer);\n    this.table = table;\n  } // It is illegal to close over this address, as compaction\n  // may move it. However, it is legal to use this address\n  // multiple times between compactions.\n\n\n  getaddr(handle) {\n    return this.table[handle];\n  }\n\n  getbyaddr(address) {\n    return this.heap[address];\n  }\n\n  sizeof(handle) {\n    return sizeof(this.table, handle);\n  }\n\n}\nfunction hydrateHeap(serializedHeap) {\n  return new RuntimeHeapImpl(serializedHeap);\n}\n/**\n * The Heap is responsible for dynamically allocating\n * memory in which we read/write the VM's instructions\n * from/to. When we malloc we pass out a VMHandle, which\n * is used as an indirect way of accessing the memory during\n * execution of the VM. Internally we track the different\n * regions of the memory in an int array known as the table.\n *\n * The table 32-bit aligned and has the following layout:\n *\n * | ... | hp (u32) |       info (u32)   | size (u32) |\n * | ... |  Handle  | Scope Size | State | Size       |\n * | ... | 32bits   | 30bits     | 2bits | 32bit      |\n *\n * With this information we effectively have the ability to\n * control when we want to free memory. That being said you\n * can not free during execution as raw address are only\n * valid during the execution. This means you cannot close\n * over them as you will have a bad memory access exception.\n */\n\nclass HeapImpl {\n  constructor() {\n    this.offset = 0;\n    this.handle = 0;\n    this.heap = new Int32Array(PAGE_SIZE);\n    this.handleTable = [];\n    this.handleState = [];\n  }\n\n  push(item) {\n    this.sizeCheck();\n    this.heap[this.offset++] = item;\n  }\n\n  sizeCheck() {\n    let {\n      heap\n    } = this;\n\n    if (this.offset === this.heap.length) {\n      let newHeap = new Int32Array(heap.length + PAGE_SIZE);\n      newHeap.set(heap, 0);\n      this.heap = newHeap;\n    }\n  }\n\n  getbyaddr(address) {\n    return this.heap[address];\n  }\n\n  setbyaddr(address, value) {\n    this.heap[address] = value;\n  }\n\n  malloc() {\n    // push offset, info, size\n    this.handleTable.push(this.offset);\n    return this.handleTable.length - 1;\n  }\n\n  finishMalloc(handle) {\n  }\n\n  size() {\n    return this.offset;\n  } // It is illegal to close over this address, as compaction\n  // may move it. However, it is legal to use this address\n  // multiple times between compactions.\n\n\n  getaddr(handle) {\n    return this.handleTable[handle];\n  }\n\n  sizeof(handle) {\n    return sizeof(this.handleTable, handle);\n  }\n\n  free(handle) {\n    this.handleState[handle] = 1\n    /* Freed */\n    ;\n  }\n  /**\n   * The heap uses the [Mark-Compact Algorithm](https://en.wikipedia.org/wiki/Mark-compact_algorithm) to shift\n   * reachable memory to the bottom of the heap and freeable\n   * memory to the top of the heap. When we have shifted all\n   * the reachable memory to the top of the heap, we move the\n   * offset to the next free position.\n   */\n\n\n  compact() {\n    let compactedSize = 0;\n    let {\n      handleTable,\n      handleState,\n      heap\n    } = this;\n\n    for (let i = 0; i < length; i++) {\n      let offset = handleTable[i];\n      let size = handleTable[i + 1] - offset;\n      let state = handleState[i];\n\n      if (state === 2\n      /* Purged */\n      ) {\n          continue;\n        } else if (state === 1\n      /* Freed */\n      ) {\n          // transition to \"already freed\" aka \"purged\"\n          // a good improvement would be to reuse\n          // these slots\n          handleState[i] = 2\n          /* Purged */\n          ;\n          compactedSize += size;\n        } else if (state === 0\n      /* Allocated */\n      ) {\n          for (let j = offset; j <= i + size; j++) {\n            heap[j - compactedSize] = heap[j];\n          }\n\n          handleTable[i] = offset - compactedSize;\n        } else if (state === 3\n      /* Pointer */\n      ) {\n          handleTable[i] = offset - compactedSize;\n        }\n    }\n\n    this.offset = this.offset - compactedSize;\n  }\n\n  capture(offset = this.offset) {\n    // Only called in eager mode\n    let buffer = slice(this.heap, 0, offset).buffer;\n    return {\n      handle: this.handle,\n      table: this.handleTable,\n      buffer: buffer\n    };\n  }\n\n}\nclass RuntimeProgramImpl {\n  constructor(constants$$1, heap) {\n    this.constants = constants$$1;\n    this.heap = heap;\n    this._opcode = new RuntimeOpImpl(this.heap);\n  }\n\n  opcode(offset) {\n    this._opcode.offset = offset;\n    return this._opcode;\n  }\n\n}\n\nfunction slice(arr, start, end) {\n  if (arr.slice !== undefined) {\n    return arr.slice(start, end);\n  }\n\n  let ret = new Int32Array(end);\n\n  for (; start < end; start++) {\n    ret[start] = arr[start];\n  }\n\n  return ret;\n}\n\nfunction sizeof(table, handle) {\n  {\n    return -1;\n  }\n}\n\nfunction artifacts() {\n  return {\n    constants: new ConstantsImpl(),\n    heap: new HeapImpl()\n  };\n}\n\nexport { CompileTimeConstantImpl, RuntimeConstantsImpl, ConstantsImpl, RuntimeHeapImpl, hydrateHeap, HeapImpl, RuntimeProgramImpl, RuntimeOpImpl, artifacts };\n","import { DEBUG } from '@glimmer/env';\nimport { getProp, setProp, getPath, toIterator } from '@glimmer/global-context';\nimport { isDict, symbol, EMPTY_ARRAY, isObject } from '@glimmer/util';\nimport { CONSTANT_TAG, consumeTag, INITIAL, track, validateTag, valueForTag, createTag, dirtyTag } from '@glimmer/validator';\n\nconst REFERENCE = symbol('REFERENCE');\n\nclass ReferenceImpl {\n  constructor(type) {\n    this.tag = null;\n    this.lastRevision = INITIAL;\n    this.children = null;\n    this.compute = null;\n    this.update = null;\n    this[REFERENCE] = type;\n  }\n\n}\n\nfunction createPrimitiveRef(value) {\n  let ref = new ReferenceImpl(2\n  /* Unbound */\n  );\n  ref.tag = CONSTANT_TAG;\n  ref.lastValue = value;\n\n  if (DEBUG) {\n    ref.debugLabel = String(value);\n  }\n\n  return ref;\n}\nconst UNDEFINED_REFERENCE = createPrimitiveRef(undefined);\nconst NULL_REFERENCE = createPrimitiveRef(null);\nconst TRUE_REFERENCE = createPrimitiveRef(true);\nconst FALSE_REFERENCE = createPrimitiveRef(false);\nfunction createConstRef(value, debugLabel) {\n  let ref = new ReferenceImpl(0\n  /* Constant */\n  );\n  ref.lastValue = value;\n  ref.tag = CONSTANT_TAG;\n\n  if (DEBUG) {\n    ref.debugLabel = debugLabel;\n  }\n\n  return ref;\n}\nfunction createUnboundRef(value, debugLabel) {\n  let ref = new ReferenceImpl(2\n  /* Unbound */\n  );\n  ref.lastValue = value;\n  ref.tag = CONSTANT_TAG;\n\n  if (DEBUG) {\n    ref.debugLabel = debugLabel;\n  }\n\n  return ref;\n}\nfunction createComputeRef(compute, update = null, debugLabel = 'unknown') {\n  let ref = new ReferenceImpl(1\n  /* Compute */\n  );\n  ref.compute = compute;\n  ref.update = update;\n\n  if (DEBUG) {\n    ref.debugLabel = `(result of a \\`${debugLabel}\\` helper)`;\n  }\n\n  return ref;\n}\nfunction createReadOnlyRef(ref) {\n  if (!isUpdatableRef(ref)) return ref;\n  return createComputeRef(() => valueForRef(ref), null, ref.debugLabel);\n}\nfunction isInvokableRef(ref) {\n  return ref[REFERENCE] === 3\n  /* Invokable */\n  ;\n}\nfunction createInvokableRef(inner) {\n  let ref = createComputeRef(() => valueForRef(inner), value => updateRef(inner, value));\n  ref.debugLabel = inner.debugLabel;\n  ref[REFERENCE] = 3\n  /* Invokable */\n  ;\n  return ref;\n}\nfunction isConstRef(_ref) {\n  let ref = _ref;\n  return ref.tag === CONSTANT_TAG;\n}\nfunction isUpdatableRef(_ref) {\n  let ref = _ref;\n  return ref.update !== null;\n}\nfunction valueForRef(_ref) {\n  let ref = _ref;\n  let {\n    tag\n  } = ref;\n\n  if (tag === CONSTANT_TAG) {\n    return ref.lastValue;\n  }\n\n  let {\n    lastRevision\n  } = ref;\n  let lastValue;\n\n  if (tag === null || !validateTag(tag, lastRevision)) {\n    let {\n      compute\n    } = ref;\n    tag = ref.tag = track(() => {\n      lastValue = ref.lastValue = compute();\n    }, DEBUG && ref.debugLabel);\n    ref.lastRevision = valueForTag(tag);\n  } else {\n    lastValue = ref.lastValue;\n  }\n\n  consumeTag(tag);\n  return lastValue;\n}\nfunction updateRef(_ref, value) {\n  let ref = _ref;\n  let update = ref.update;\n  update(value);\n}\nfunction childRefFor(_parentRef, path) {\n  let parentRef = _parentRef;\n  let type = parentRef[REFERENCE];\n  let children = parentRef.children;\n  let child;\n\n  if (children === null) {\n    children = parentRef.children = new Map();\n  } else {\n    child = children.get(path);\n\n    if (child !== undefined) {\n      return child;\n    }\n  }\n\n  if (type === 2\n  /* Unbound */\n  ) {\n      let parent = valueForRef(parentRef);\n\n      if (isDict(parent)) {\n        child = createUnboundRef(parent[path], DEBUG && `${parentRef.debugLabel}.${path}`);\n      } else {\n        child = UNDEFINED_REFERENCE;\n      }\n    } else {\n    child = createComputeRef(() => {\n      let parent = valueForRef(parentRef);\n\n      if (isDict(parent)) {\n        return getProp(parent, path);\n      }\n    }, val => {\n      let parent = valueForRef(parentRef);\n\n      if (isDict(parent)) {\n        return setProp(parent, path, val);\n      }\n    });\n\n    if (DEBUG) {\n      child.debugLabel = `${parentRef.debugLabel}.${path}`;\n    }\n  }\n\n  children.set(path, child);\n  return child;\n}\nfunction childRefFromParts(root, parts) {\n  let reference = root;\n\n  for (let i = 0; i < parts.length; i++) {\n    reference = childRefFor(reference, parts[i]);\n  }\n\n  return reference;\n}\nlet createDebugAliasRef;\n\nif (DEBUG) {\n  createDebugAliasRef = (debugLabel, inner) => {\n    let update = isUpdatableRef(inner) ? value => updateRef(inner, value) : null;\n    let ref = createComputeRef(() => valueForRef(inner), update);\n    ref[REFERENCE] = inner[REFERENCE];\n    ref.debugLabel = debugLabel;\n    return ref;\n  };\n}\n\nconst NULL_IDENTITY = {};\n\nconst KEY = (_, index) => index;\n\nconst INDEX = (_, index) => String(index);\n\nconst IDENTITY = item => {\n  if (item === null) {\n    // Returning null as an identity will cause failures since the iterator\n    // can't tell that it's actually supposed to be null\n    return NULL_IDENTITY;\n  }\n\n  return item;\n};\n\nfunction keyForPath(path) {\n  if (DEBUG && path[0] === '@') {\n    throw new Error(`invalid keypath: '${path}', valid keys: @index, @identity, or a path`);\n  }\n\n  return uniqueKeyFor(item => getPath(item, path));\n}\n\nfunction makeKeyFor(key) {\n  switch (key) {\n    case '@key':\n      return uniqueKeyFor(KEY);\n\n    case '@index':\n      return uniqueKeyFor(INDEX);\n\n    case '@identity':\n      return uniqueKeyFor(IDENTITY);\n\n    default:\n      return keyForPath(key);\n  }\n}\n\nclass WeakMapWithPrimitives {\n  get weakMap() {\n    if (this._weakMap === undefined) {\n      this._weakMap = new WeakMap();\n    }\n\n    return this._weakMap;\n  }\n\n  get primitiveMap() {\n    if (this._primitiveMap === undefined) {\n      this._primitiveMap = new Map();\n    }\n\n    return this._primitiveMap;\n  }\n\n  set(key, value) {\n    if (isObject(key)) {\n      this.weakMap.set(key, value);\n    } else {\n      this.primitiveMap.set(key, value);\n    }\n  }\n\n  get(key) {\n    if (isObject(key)) {\n      return this.weakMap.get(key);\n    } else {\n      return this.primitiveMap.get(key);\n    }\n  }\n\n}\n\nconst IDENTITIES = new WeakMapWithPrimitives();\n\nfunction identityForNthOccurence(value, count) {\n  let identities = IDENTITIES.get(value);\n\n  if (identities === undefined) {\n    identities = [];\n    IDENTITIES.set(value, identities);\n  }\n\n  let identity = identities[count];\n\n  if (identity === undefined) {\n    identity = {\n      value,\n      count\n    };\n    identities[count] = identity;\n  }\n\n  return identity;\n}\n/**\n * When iterating over a list, it's possible that an item with the same unique\n * key could be encountered twice:\n *\n * ```js\n * let arr = ['same', 'different', 'same', 'same'];\n * ```\n *\n * In general, we want to treat these items as _unique within the list_. To do\n * this, we track the occurences of every item as we iterate the list, and when\n * an item occurs more than once, we generate a new unique key just for that\n * item, and that occurence within the list. The next time we iterate the list,\n * and encounter an item for the nth time, we can get the _same_ key, and let\n * Glimmer know that it should reuse the DOM for the previous nth occurence.\n */\n\n\nfunction uniqueKeyFor(keyFor) {\n  let seen = new WeakMapWithPrimitives();\n  return (value, memo) => {\n    let key = keyFor(value, memo);\n    let count = seen.get(key) || 0;\n    seen.set(key, count + 1);\n\n    if (count === 0) {\n      return key;\n    }\n\n    return identityForNthOccurence(key, count);\n  };\n}\n\nfunction createIteratorRef(listRef, key) {\n  return createComputeRef(() => {\n    let iterable = valueForRef(listRef);\n    let keyFor = makeKeyFor(key);\n\n    if (Array.isArray(iterable)) {\n      return new ArrayIterator(iterable, keyFor);\n    }\n\n    let maybeIterator = toIterator(iterable);\n\n    if (maybeIterator === null) {\n      return new ArrayIterator(EMPTY_ARRAY, () => null);\n    }\n\n    return new IteratorWrapper(maybeIterator, keyFor);\n  });\n}\nfunction createIteratorItemRef(_value) {\n  let value = _value;\n  let tag = createTag();\n  return createComputeRef(() => {\n    consumeTag(tag);\n    return value;\n  }, newValue => {\n    if (value !== newValue) {\n      value = newValue;\n      dirtyTag(tag);\n    }\n  });\n}\n\nclass IteratorWrapper {\n  constructor(inner, keyFor) {\n    this.inner = inner;\n    this.keyFor = keyFor;\n  }\n\n  isEmpty() {\n    return this.inner.isEmpty();\n  }\n\n  next() {\n    let nextValue = this.inner.next();\n\n    if (nextValue !== null) {\n      nextValue.key = this.keyFor(nextValue.value, nextValue.memo);\n    }\n\n    return nextValue;\n  }\n\n}\n\nclass ArrayIterator {\n  constructor(iterator, keyFor) {\n    this.iterator = iterator;\n    this.keyFor = keyFor;\n    this.pos = 0;\n\n    if (iterator.length === 0) {\n      this.current = {\n        kind: 'empty'\n      };\n    } else {\n      this.current = {\n        kind: 'first',\n        value: iterator[this.pos]\n      };\n    }\n  }\n\n  isEmpty() {\n    return this.current.kind === 'empty';\n  }\n\n  next() {\n    let value;\n    let current = this.current;\n\n    if (current.kind === 'first') {\n      this.current = {\n        kind: 'progress'\n      };\n      value = current.value;\n    } else if (this.pos >= this.iterator.length - 1) {\n      return null;\n    } else {\n      value = this.iterator[++this.pos];\n    }\n\n    let {\n      keyFor\n    } = this;\n    let key = keyFor(value, this.pos);\n    let memo = this.pos;\n    return {\n      key,\n      value,\n      memo\n    };\n  }\n\n}\n\nexport { REFERENCE, createPrimitiveRef, createConstRef, createUnboundRef, createComputeRef, createDebugAliasRef, createReadOnlyRef, createInvokableRef, isInvokableRef, isConstRef, isUpdatableRef, valueForRef, updateRef, childRefFor, childRefFromParts, UNDEFINED_REFERENCE, NULL_REFERENCE, TRUE_REFERENCE, FALSE_REFERENCE, createIteratorRef, createIteratorItemRef };\n","import { assign, symbol, Stack, fillNulls, _WeakSet, isObject, dict, emptyArray, EMPTY_STRING_ARRAY, debugToString, decodeHandle, decodeImmediate, isHandle, unwrapTemplate, unwrapHandle, clearElement, buildUntouchableThis, HAS_NATIVE_PROXY, isDict } from '@glimmer/util';\nimport { UNDEFINED_REFERENCE, valueForRef, createComputeRef, createDebugAliasRef, childRefFor, TRUE_REFERENCE, FALSE_REFERENCE, isConstRef, createPrimitiveRef, NULL_REFERENCE, createConstRef, createIteratorRef, updateRef, createIteratorItemRef, isInvokableRef } from '@glimmer/reference';\nimport { warnIfStyleNotTrusted, toBool, assertGlobalContextWasSet, deprecate, getPath, setPath } from '@glimmer/global-context';\nimport { DEBUG } from '@glimmer/env';\nimport { destroy, registerDestructor, associateDestroyableChild, _hasDestroyableChildren, destroyChildren, isDestroyed, isDestroying } from '@glimmer/destroyable';\nexport { destroy, registerDestructor, isDestroying, isDestroyed } from '@glimmer/destroyable';\nimport { $fp, $pc, $ra, $sp, $v0, $t0, $t1, $s0, $s1, isLowLevelRegister } from '@glimmer/vm';\nimport { CONSTANT_TAG, valueForTag, validateTag, INITIAL, beginTrackFrame, endTrackFrame, consumeTag, CURRENT_TAG, track, updateTag, resetTracking, runInTrackingTransaction, createCache, getValue, createUpdatableTag } from '@glimmer/validator';\nimport { managerHasCapability, hasInternalComponentManager, hasInternalHelperManager, setInternalComponentManager, getInternalHelperManager, hasDestroyable, hasValue, setInternalHelperManager, setInternalModifierManager } from '@glimmer/manager';\nimport { RuntimeProgramImpl } from '@glimmer/program';\nimport { getOwner } from '@glimmer/owner';\nimport { reifyPositional, reifyNamed } from '@glimmer/runtime';\n\nclass DynamicScopeImpl {\n  constructor(bucket) {\n    if (bucket) {\n      this.bucket = assign({}, bucket);\n    } else {\n      this.bucket = {};\n    }\n  }\n\n  get(key) {\n    return this.bucket[key];\n  }\n\n  set(key, reference) {\n    return this.bucket[key] = reference;\n  }\n\n  child() {\n    return new DynamicScopeImpl(this.bucket);\n  }\n\n}\nclass PartialScopeImpl {\n  constructor( // the 0th slot is `self`\n  slots, owner, callerScope, // named arguments and blocks passed to a layout that uses eval\n  evalScope, // locals in scope when the partial was invoked\n  partialMap) {\n    this.slots = slots;\n    this.owner = owner;\n    this.callerScope = callerScope;\n    this.evalScope = evalScope;\n    this.partialMap = partialMap;\n  }\n\n  static root(self, size = 0, owner) {\n    let refs = new Array(size + 1);\n\n    for (let i = 0; i <= size; i++) {\n      refs[i] = UNDEFINED_REFERENCE;\n    }\n\n    return new PartialScopeImpl(refs, owner, null, null, null).init({\n      self\n    });\n  }\n\n  static sized(size = 0, owner) {\n    let refs = new Array(size + 1);\n\n    for (let i = 0; i <= size; i++) {\n      refs[i] = UNDEFINED_REFERENCE;\n    }\n\n    return new PartialScopeImpl(refs, owner, null, null, null);\n  }\n\n  init({\n    self\n  }) {\n    this.slots[0] = self;\n    return this;\n  }\n\n  getSelf() {\n    return this.get(0);\n  }\n\n  getSymbol(symbol$$1) {\n    return this.get(symbol$$1);\n  }\n\n  getBlock(symbol$$1) {\n    let block = this.get(symbol$$1);\n    return block === UNDEFINED_REFERENCE ? null : block;\n  }\n\n  getEvalScope() {\n    return this.evalScope;\n  }\n\n  getPartialMap() {\n    return this.partialMap;\n  }\n\n  bind(symbol$$1, value) {\n    this.set(symbol$$1, value);\n  }\n\n  bindSelf(self) {\n    this.set(0, self);\n  }\n\n  bindSymbol(symbol$$1, value) {\n    this.set(symbol$$1, value);\n  }\n\n  bindBlock(symbol$$1, value) {\n    this.set(symbol$$1, value);\n  }\n\n  bindEvalScope(map) {\n    this.evalScope = map;\n  }\n\n  bindPartialMap(map) {\n    this.partialMap = map;\n  }\n\n  bindCallerScope(scope) {\n    this.callerScope = scope;\n  }\n\n  getCallerScope() {\n    return this.callerScope;\n  }\n\n  child() {\n    return new PartialScopeImpl(this.slots.slice(), this.owner, this.callerScope, this.evalScope, this.partialMap);\n  }\n\n  get(index) {\n    if (index >= this.slots.length) {\n      throw new RangeError(`BUG: cannot get $${index} from scope; length=${this.slots.length}`);\n    }\n\n    return this.slots[index];\n  }\n\n  set(index, value) {\n    if (index >= this.slots.length) {\n      throw new RangeError(`BUG: cannot get $${index} from scope; length=${this.slots.length}`);\n    }\n\n    this.slots[index] = value;\n  }\n\n}\n\n// the VM in other classes, but are not intended to be a part of\n// Glimmer's API.\n\nconst INNER_VM = symbol('INNER_VM');\nconst DESTROYABLE_STACK = symbol('DESTROYABLE_STACK');\nconst STACKS = symbol('STACKS');\nconst REGISTERS = symbol('REGISTERS');\nconst HEAP = symbol('HEAP');\nconst CONSTANTS = symbol('CONSTANTS');\nconst ARGS = symbol('ARGS');\nconst PC = symbol('PC');\n\nclass CursorImpl {\n  constructor(element, nextSibling) {\n    this.element = element;\n    this.nextSibling = nextSibling;\n  }\n\n}\nclass ConcreteBounds {\n  constructor(parentNode, first, last) {\n    this.parentNode = parentNode;\n    this.first = first;\n    this.last = last;\n  }\n\n  parentElement() {\n    return this.parentNode;\n  }\n\n  firstNode() {\n    return this.first;\n  }\n\n  lastNode() {\n    return this.last;\n  }\n\n}\nclass SingleNodeBounds {\n  constructor(parentNode, node) {\n    this.parentNode = parentNode;\n    this.node = node;\n  }\n\n  parentElement() {\n    return this.parentNode;\n  }\n\n  firstNode() {\n    return this.node;\n  }\n\n  lastNode() {\n    return this.node;\n  }\n\n}\nfunction move(bounds, reference) {\n  let parent = bounds.parentElement();\n  let first = bounds.firstNode();\n  let last = bounds.lastNode();\n  let current = first;\n\n  while (true) {\n    let next = current.nextSibling;\n    parent.insertBefore(current, reference);\n\n    if (current === last) {\n      return next;\n    }\n\n    current = next;\n  }\n}\nfunction clear(bounds) {\n  let parent = bounds.parentElement();\n  let first = bounds.firstNode();\n  let last = bounds.lastNode();\n  let current = first;\n\n  while (true) {\n    let next = current.nextSibling;\n    parent.removeChild(current);\n\n    if (current === last) {\n      return next;\n    }\n\n    current = next;\n  }\n}\n\nfunction normalizeStringValue(value) {\n  if (isEmpty(value)) {\n    return '';\n  }\n\n  return String(value);\n}\nfunction shouldCoerce(value) {\n  return isString(value) || isEmpty(value) || typeof value === 'boolean' || typeof value === 'number';\n}\nfunction isEmpty(value) {\n  return value === null || value === undefined || typeof value.toString !== 'function';\n}\nfunction isSafeString(value) {\n  return typeof value === 'object' && value !== null && typeof value.toHTML === 'function';\n}\nfunction isNode(value) {\n  return typeof value === 'object' && value !== null && typeof value.nodeType === 'number';\n}\nfunction isFragment(value) {\n  return isNode(value) && value.nodeType === 11;\n}\nfunction isString(value) {\n  return typeof value === 'string';\n}\n\n/*\n * @method normalizeProperty\n * @param element {HTMLElement}\n * @param slotName {String}\n * @returns {Object} { name, type }\n */\nfunction normalizeProperty(element, slotName) {\n  let type, normalized;\n\n  if (slotName in element) {\n    normalized = slotName;\n    type = 'prop';\n  } else {\n    let lower = slotName.toLowerCase();\n\n    if (lower in element) {\n      type = 'prop';\n      normalized = lower;\n    } else {\n      type = 'attr';\n      normalized = slotName;\n    }\n  }\n\n  if (type === 'prop' && (normalized.toLowerCase() === 'style' || preferAttr(element.tagName, normalized))) {\n    type = 'attr';\n  }\n\n  return {\n    normalized,\n    type\n  };\n}\n// * browser bug\n// * strange spec outlier\n\nconst ATTR_OVERRIDES = {\n  INPUT: {\n    form: true,\n    // Chrome 46.0.2464.0: 'autocorrect' in document.createElement('input') === false\n    // Safari 8.0.7: 'autocorrect' in document.createElement('input') === false\n    // Mobile Safari (iOS 8.4 simulator): 'autocorrect' in document.createElement('input') === true\n    autocorrect: true,\n    // Chrome 54.0.2840.98: 'list' in document.createElement('input') === true\n    // Safari 9.1.3: 'list' in document.createElement('input') === false\n    list: true\n  },\n  // element.form is actually a legitimate readOnly property, that is to be\n  // mutated, but must be mutated by setAttribute...\n  SELECT: {\n    form: true\n  },\n  OPTION: {\n    form: true\n  },\n  TEXTAREA: {\n    form: true\n  },\n  LABEL: {\n    form: true\n  },\n  FIELDSET: {\n    form: true\n  },\n  LEGEND: {\n    form: true\n  },\n  OBJECT: {\n    form: true\n  },\n  OUTPUT: {\n    form: true\n  },\n  BUTTON: {\n    form: true\n  }\n};\n\nfunction preferAttr(tagName, propName) {\n  let tag = ATTR_OVERRIDES[tagName.toUpperCase()];\n  return tag && tag[propName.toLowerCase()] || false;\n}\n\nconst badProtocols = ['javascript:', 'vbscript:'];\nconst badTags = ['A', 'BODY', 'LINK', 'IMG', 'IFRAME', 'BASE', 'FORM'];\nconst badTagsForDataURI = ['EMBED'];\nconst badAttributes = ['href', 'src', 'background', 'action'];\nconst badAttributesForDataURI = ['src'];\n\nfunction has(array, item) {\n  return array.indexOf(item) !== -1;\n}\n\nfunction checkURI(tagName, attribute) {\n  return (tagName === null || has(badTags, tagName)) && has(badAttributes, attribute);\n}\n\nfunction checkDataURI(tagName, attribute) {\n  if (tagName === null) return false;\n  return has(badTagsForDataURI, tagName) && has(badAttributesForDataURI, attribute);\n}\n\nfunction requiresSanitization(tagName, attribute) {\n  return checkURI(tagName, attribute) || checkDataURI(tagName, attribute);\n}\nlet protocolForUrl;\n\nif (typeof URL === 'object' && URL !== null && // this is super annoying, TS thinks that URL **must** be a function so `URL.parse` check\n// thinks it is `never` without this `as unknown as any`\ntypeof URL.parse === 'function') {\n  // In Ember-land the `fastboot` package sets the `URL` global to `require('url')`\n  // ultimately, this should be changed (so that we can either rely on the natural `URL` global\n  // that exists) but for now we have to detect the specific `FastBoot` case first\n  //\n  // a future version of `fastboot` will detect if this legacy URL setup is required (by\n  // inspecting Ember version) and if new enough, it will avoid shadowing the `URL` global\n  // constructor with `require('url')`.\n  let nodeURL = URL;\n\n  protocolForUrl = url => {\n    let protocol = null;\n\n    if (typeof url === 'string') {\n      protocol = nodeURL.parse(url).protocol;\n    }\n\n    return protocol === null ? ':' : protocol;\n  };\n} else if (typeof URL === 'function') {\n  protocolForUrl = _url => {\n    try {\n      let url = new URL(_url);\n      return url.protocol;\n    } catch (error) {\n      // any non-fully qualified url string will trigger an error (because there is no\n      // baseURI that we can provide; in that case we **know** that the protocol is\n      // \"safe\" because it isn't specifically one of the `badProtocols` listed above\n      // (and those protocols can never be the default baseURI)\n      return ':';\n    }\n  };\n} else {\n  // fallback for IE11 support\n  let parsingNode = document.createElement('a');\n\n  protocolForUrl = url => {\n    parsingNode.href = url;\n    return parsingNode.protocol;\n  };\n}\n\nfunction sanitizeAttributeValue(element, attribute, value) {\n  let tagName = null;\n\n  if (value === null || value === undefined) {\n    return value;\n  }\n\n  if (isSafeString(value)) {\n    return value.toHTML();\n  }\n\n  if (!element) {\n    tagName = null;\n  } else {\n    tagName = element.tagName.toUpperCase();\n  }\n\n  let str = normalizeStringValue(value);\n\n  if (checkURI(tagName, attribute)) {\n    let protocol = protocolForUrl(str);\n\n    if (has(badProtocols, protocol)) {\n      return `unsafe:${str}`;\n    }\n  }\n\n  if (checkDataURI(tagName, attribute)) {\n    return `unsafe:${str}`;\n  }\n\n  return str;\n}\n\nfunction dynamicAttribute(element, attr, namespace, isTrusting = false) {\n  let {\n    tagName,\n    namespaceURI\n  } = element;\n  let attribute = {\n    element,\n    name: attr,\n    namespace\n  };\n\n  if (DEBUG && attr === 'style' && !isTrusting) {\n    return new DebugStyleAttributeManager(attribute);\n  }\n\n  if (namespaceURI === \"http://www.w3.org/2000/svg\"\n  /* SVG */\n  ) {\n      return buildDynamicAttribute(tagName, attr, attribute);\n    }\n\n  let {\n    type,\n    normalized\n  } = normalizeProperty(element, attr);\n\n  if (type === 'attr') {\n    return buildDynamicAttribute(tagName, normalized, attribute);\n  } else {\n    return buildDynamicProperty(tagName, normalized, attribute);\n  }\n}\n\nfunction buildDynamicAttribute(tagName, name, attribute) {\n  if (requiresSanitization(tagName, name)) {\n    return new SafeDynamicAttribute(attribute);\n  } else {\n    return new SimpleDynamicAttribute(attribute);\n  }\n}\n\nfunction buildDynamicProperty(tagName, name, attribute) {\n  if (requiresSanitization(tagName, name)) {\n    return new SafeDynamicProperty(name, attribute);\n  }\n\n  if (isUserInputValue(tagName, name)) {\n    return new InputValueDynamicAttribute(name, attribute);\n  }\n\n  if (isOptionSelected(tagName, name)) {\n    return new OptionSelectedDynamicAttribute(name, attribute);\n  }\n\n  return new DefaultDynamicProperty(name, attribute);\n}\n\nclass DynamicAttribute {\n  constructor(attribute) {\n    this.attribute = attribute;\n  }\n\n}\nclass SimpleDynamicAttribute extends DynamicAttribute {\n  set(dom, value, _env) {\n    let normalizedValue = normalizeValue(value);\n\n    if (normalizedValue !== null) {\n      let {\n        name,\n        namespace\n      } = this.attribute;\n\n      dom.__setAttribute(name, normalizedValue, namespace);\n    }\n  }\n\n  update(value, _env) {\n    let normalizedValue = normalizeValue(value);\n    let {\n      element,\n      name\n    } = this.attribute;\n\n    if (normalizedValue === null) {\n      element.removeAttribute(name);\n    } else {\n      element.setAttribute(name, normalizedValue);\n    }\n  }\n\n}\nclass DefaultDynamicProperty extends DynamicAttribute {\n  constructor(normalizedName, attribute) {\n    super(attribute);\n    this.normalizedName = normalizedName;\n  }\n\n  set(dom, value, _env) {\n    if (value !== null && value !== undefined) {\n      this.value = value;\n\n      dom.__setProperty(this.normalizedName, value);\n    }\n  }\n\n  update(value, _env) {\n    let {\n      element\n    } = this.attribute;\n\n    if (this.value !== value) {\n      element[this.normalizedName] = this.value = value;\n\n      if (value === null || value === undefined) {\n        this.removeAttribute();\n      }\n    }\n  }\n\n  removeAttribute() {\n    // TODO this sucks but to preserve properties first and to meet current\n    // semantics we must do this.\n    let {\n      element,\n      namespace\n    } = this.attribute;\n\n    if (namespace) {\n      element.removeAttributeNS(namespace, this.normalizedName);\n    } else {\n      element.removeAttribute(this.normalizedName);\n    }\n  }\n\n}\nclass SafeDynamicProperty extends DefaultDynamicProperty {\n  set(dom, value, env) {\n    let {\n      element,\n      name\n    } = this.attribute;\n    let sanitized = sanitizeAttributeValue(element, name, value);\n    super.set(dom, sanitized, env);\n  }\n\n  update(value, env) {\n    let {\n      element,\n      name\n    } = this.attribute;\n    let sanitized = sanitizeAttributeValue(element, name, value);\n    super.update(sanitized, env);\n  }\n\n}\nclass SafeDynamicAttribute extends SimpleDynamicAttribute {\n  set(dom, value, env) {\n    let {\n      element,\n      name\n    } = this.attribute;\n    let sanitized = sanitizeAttributeValue(element, name, value);\n    super.set(dom, sanitized, env);\n  }\n\n  update(value, env) {\n    let {\n      element,\n      name\n    } = this.attribute;\n    let sanitized = sanitizeAttributeValue(element, name, value);\n    super.update(sanitized, env);\n  }\n\n}\nclass InputValueDynamicAttribute extends DefaultDynamicProperty {\n  set(dom, value) {\n    dom.__setProperty('value', normalizeStringValue(value));\n  }\n\n  update(value) {\n    let input = this.attribute.element;\n    let currentValue = input.value;\n    let normalizedValue = normalizeStringValue(value);\n\n    if (currentValue !== normalizedValue) {\n      input.value = normalizedValue;\n    }\n  }\n\n}\nclass OptionSelectedDynamicAttribute extends DefaultDynamicProperty {\n  set(dom, value) {\n    if (value !== null && value !== undefined && value !== false) {\n      dom.__setProperty('selected', true);\n    }\n  }\n\n  update(value) {\n    let option = this.attribute.element;\n\n    if (value) {\n      option.selected = true;\n    } else {\n      option.selected = false;\n    }\n  }\n\n}\n\nfunction isOptionSelected(tagName, attribute) {\n  return tagName === 'OPTION' && attribute === 'selected';\n}\n\nfunction isUserInputValue(tagName, attribute) {\n  return (tagName === 'INPUT' || tagName === 'TEXTAREA') && attribute === 'value';\n}\n\nfunction normalizeValue(value) {\n  if (value === false || value === undefined || value === null || typeof value.toString === 'undefined') {\n    return null;\n  }\n\n  if (value === true) {\n    return '';\n  } // onclick function etc in SSR\n\n\n  if (typeof value === 'function') {\n    return null;\n  }\n\n  return String(value);\n}\n\nlet DebugStyleAttributeManager;\n\nif (DEBUG) {\n  DebugStyleAttributeManager = class extends SimpleDynamicAttribute {\n    set(dom, value, env) {\n      warnIfStyleNotTrusted(value);\n      super.set(dom, value, env);\n    }\n\n    update(value, env) {\n      warnIfStyleNotTrusted(value);\n      super.update(value, env);\n    }\n\n  };\n}\n\nvar _a;\n\nclass First {\n  constructor(node) {\n    this.node = node;\n  }\n\n  firstNode() {\n    return this.node;\n  }\n\n}\n\nclass Last {\n  constructor(node) {\n    this.node = node;\n  }\n\n  lastNode() {\n    return this.node;\n  }\n\n}\nconst CURSOR_STACK = symbol('CURSOR_STACK');\nclass NewElementBuilder {\n  constructor(env, parentNode, nextSibling) {\n    this.constructing = null;\n    this.operations = null;\n    this[_a] = new Stack();\n    this.modifierStack = new Stack();\n    this.blockStack = new Stack();\n    this.pushElement(parentNode, nextSibling);\n    this.env = env;\n    this.dom = env.getAppendOperations();\n    this.updateOperations = env.getDOM();\n  }\n\n  static forInitialRender(env, cursor) {\n    return new this(env, cursor.element, cursor.nextSibling).initialize();\n  }\n\n  static resume(env, block) {\n    let parentNode = block.parentElement();\n    let nextSibling = block.reset(env);\n    let stack = new this(env, parentNode, nextSibling).initialize();\n    stack.pushLiveBlock(block);\n    return stack;\n  }\n\n  initialize() {\n    this.pushSimpleBlock();\n    return this;\n  }\n\n  debugBlocks() {\n    return this.blockStack.toArray();\n  }\n\n  get element() {\n    return this[CURSOR_STACK].current.element;\n  }\n\n  get nextSibling() {\n    return this[CURSOR_STACK].current.nextSibling;\n  }\n\n  get hasBlocks() {\n    return this.blockStack.size > 0;\n  }\n\n  block() {\n    return this.blockStack.current;\n  }\n\n  popElement() {\n    this[CURSOR_STACK].pop();\n    this[CURSOR_STACK].current;\n  }\n\n  pushSimpleBlock() {\n    return this.pushLiveBlock(new SimpleLiveBlock(this.element));\n  }\n\n  pushUpdatableBlock() {\n    return this.pushLiveBlock(new UpdatableBlockImpl(this.element));\n  }\n\n  pushBlockList(list) {\n    return this.pushLiveBlock(new LiveBlockList(this.element, list));\n  }\n\n  pushLiveBlock(block, isRemote = false) {\n    let current = this.blockStack.current;\n\n    if (current !== null) {\n      if (!isRemote) {\n        current.didAppendBounds(block);\n      }\n    }\n\n    this.__openBlock();\n\n    this.blockStack.push(block);\n    return block;\n  }\n\n  popBlock() {\n    this.block().finalize(this);\n\n    this.__closeBlock();\n\n    return this.blockStack.pop();\n  }\n\n  __openBlock() {}\n\n  __closeBlock() {} // todo return seems unused\n\n\n  openElement(tag) {\n    let element = this.__openElement(tag);\n\n    this.constructing = element;\n    return element;\n  }\n\n  __openElement(tag) {\n    return this.dom.createElement(tag, this.element);\n  }\n\n  flushElement(modifiers) {\n    let parent = this.element;\n    let element = this.constructing;\n\n    this.__flushElement(parent, element);\n\n    this.constructing = null;\n    this.operations = null;\n    this.pushModifiers(modifiers);\n    this.pushElement(element, null);\n    this.didOpenElement(element);\n  }\n\n  __flushElement(parent, constructing) {\n    this.dom.insertBefore(parent, constructing, this.nextSibling);\n  }\n\n  closeElement() {\n    this.willCloseElement();\n    this.popElement();\n    return this.popModifiers();\n  }\n\n  pushRemoteElement(element, guid, insertBefore) {\n    return this.__pushRemoteElement(element, guid, insertBefore);\n  }\n\n  __pushRemoteElement(element, _guid, insertBefore) {\n    this.pushElement(element, insertBefore);\n\n    if (insertBefore === undefined) {\n      while (element.lastChild) {\n        element.removeChild(element.lastChild);\n      }\n    }\n\n    let block = new RemoteLiveBlock(element);\n    return this.pushLiveBlock(block, true);\n  }\n\n  popRemoteElement() {\n    this.popBlock();\n    this.popElement();\n  }\n\n  pushElement(element, nextSibling = null) {\n    this[CURSOR_STACK].push(new CursorImpl(element, nextSibling));\n  }\n\n  pushModifiers(modifiers) {\n    this.modifierStack.push(modifiers);\n  }\n\n  popModifiers() {\n    return this.modifierStack.pop();\n  }\n\n  didAppendBounds(bounds) {\n    this.block().didAppendBounds(bounds);\n    return bounds;\n  }\n\n  didAppendNode(node) {\n    this.block().didAppendNode(node);\n    return node;\n  }\n\n  didOpenElement(element) {\n    this.block().openElement(element);\n    return element;\n  }\n\n  willCloseElement() {\n    this.block().closeElement();\n  }\n\n  appendText(string) {\n    return this.didAppendNode(this.__appendText(string));\n  }\n\n  __appendText(text) {\n    let {\n      dom,\n      element,\n      nextSibling\n    } = this;\n    let node = dom.createTextNode(text);\n    dom.insertBefore(element, node, nextSibling);\n    return node;\n  }\n\n  __appendNode(node) {\n    this.dom.insertBefore(this.element, node, this.nextSibling);\n    return node;\n  }\n\n  __appendFragment(fragment) {\n    let first = fragment.firstChild;\n\n    if (first) {\n      let ret = new ConcreteBounds(this.element, first, fragment.lastChild);\n      this.dom.insertBefore(this.element, fragment, this.nextSibling);\n      return ret;\n    } else {\n      return new SingleNodeBounds(this.element, this.__appendComment(''));\n    }\n  }\n\n  __appendHTML(html) {\n    return this.dom.insertHTMLBefore(this.element, this.nextSibling, html);\n  }\n\n  appendDynamicHTML(value) {\n    let bounds = this.trustedContent(value);\n    this.didAppendBounds(bounds);\n  }\n\n  appendDynamicText(value) {\n    let node = this.untrustedContent(value);\n    this.didAppendNode(node);\n    return node;\n  }\n\n  appendDynamicFragment(value) {\n    let bounds = this.__appendFragment(value);\n\n    this.didAppendBounds(bounds);\n  }\n\n  appendDynamicNode(value) {\n    let node = this.__appendNode(value);\n\n    let bounds = new SingleNodeBounds(this.element, node);\n    this.didAppendBounds(bounds);\n  }\n\n  trustedContent(value) {\n    return this.__appendHTML(value);\n  }\n\n  untrustedContent(value) {\n    return this.__appendText(value);\n  }\n\n  appendComment(string) {\n    return this.didAppendNode(this.__appendComment(string));\n  }\n\n  __appendComment(string) {\n    let {\n      dom,\n      element,\n      nextSibling\n    } = this;\n    let node = dom.createComment(string);\n    dom.insertBefore(element, node, nextSibling);\n    return node;\n  }\n\n  __setAttribute(name, value, namespace) {\n    this.dom.setAttribute(this.constructing, name, value, namespace);\n  }\n\n  __setProperty(name, value) {\n    this.constructing[name] = value;\n  }\n\n  setStaticAttribute(name, value, namespace) {\n    this.__setAttribute(name, value, namespace);\n  }\n\n  setDynamicAttribute(name, value, trusting, namespace) {\n    let element = this.constructing;\n    let attribute = dynamicAttribute(element, name, namespace, trusting);\n    attribute.set(this, value, this.env);\n    return attribute;\n  }\n\n}\n_a = CURSOR_STACK;\nclass SimpleLiveBlock {\n  constructor(parent) {\n    this.parent = parent;\n    this.first = null;\n    this.last = null;\n    this.nesting = 0;\n  }\n\n  parentElement() {\n    return this.parent;\n  }\n\n  firstNode() {\n    let first = this.first;\n    return first.firstNode();\n  }\n\n  lastNode() {\n    let last = this.last;\n    return last.lastNode();\n  }\n\n  openElement(element) {\n    this.didAppendNode(element);\n    this.nesting++;\n  }\n\n  closeElement() {\n    this.nesting--;\n  }\n\n  didAppendNode(node) {\n    if (this.nesting !== 0) return;\n\n    if (!this.first) {\n      this.first = new First(node);\n    }\n\n    this.last = new Last(node);\n  }\n\n  didAppendBounds(bounds) {\n    if (this.nesting !== 0) return;\n\n    if (!this.first) {\n      this.first = bounds;\n    }\n\n    this.last = bounds;\n  }\n\n  finalize(stack) {\n    if (this.first === null) {\n      stack.appendComment('');\n    }\n  }\n\n}\nclass RemoteLiveBlock extends SimpleLiveBlock {\n  constructor(parent) {\n    super(parent);\n    registerDestructor(this, () => {\n      // In general, you only need to clear the root of a hierarchy, and should never\n      // need to clear any child nodes. This is an important constraint that gives us\n      // a strong guarantee that clearing a subtree is a single DOM operation.\n      //\n      // Because remote blocks are not normally physically nested inside of the tree\n      // that they are logically nested inside, we manually clear remote blocks when\n      // a logical parent is cleared.\n      //\n      // HOWEVER, it is currently possible for a remote block to be physically nested\n      // inside of the block it is logically contained inside of. This happens when\n      // the remote block is appended to the end of the application's entire element.\n      //\n      // The problem with that scenario is that Glimmer believes that it owns more of\n      // the DOM than it actually does. The code is attempting to write past the end\n      // of the Glimmer-managed root, but Glimmer isn't aware of that.\n      //\n      // The correct solution to that problem is for Glimmer to be aware of the end\n      // of the bounds that it owns, and once we make that change, this check could\n      // be removed.\n      //\n      // For now, a more targeted fix is to check whether the node was already removed\n      // and avoid clearing the node if it was. In most cases this shouldn't happen,\n      // so this might hide bugs where the code clears nested nodes unnecessarily,\n      // so we should eventually try to do the correct fix.\n      if (this.parentElement() === this.firstNode().parentNode) {\n        clear(this);\n      }\n    });\n  }\n\n}\nclass UpdatableBlockImpl extends SimpleLiveBlock {\n  reset() {\n    destroy(this);\n    let nextSibling = clear(this);\n    this.first = null;\n    this.last = null;\n    this.nesting = 0;\n    return nextSibling;\n  }\n\n} // FIXME: All the noops in here indicate a modelling problem\n\nclass LiveBlockList {\n  constructor(parent, boundList) {\n    this.parent = parent;\n    this.boundList = boundList;\n    this.parent = parent;\n    this.boundList = boundList;\n  }\n\n  parentElement() {\n    return this.parent;\n  }\n\n  firstNode() {\n    let head = this.boundList[0];\n    return head.firstNode();\n  }\n\n  lastNode() {\n    let boundList = this.boundList;\n    let tail = boundList[boundList.length - 1];\n    return tail.lastNode();\n  }\n\n  openElement(_element) {\n  }\n\n  closeElement() {\n  }\n\n  didAppendNode(_node) {\n  }\n\n  didAppendBounds(_bounds) {}\n\n  finalize(_stack) {\n  }\n\n}\nfunction clientBuilder(env, cursor) {\n  return NewElementBuilder.forInitialRender(env, cursor);\n}\n\nclass AppendOpcodes {\n  constructor() {\n    this.evaluateOpcode = fillNulls(104\n    /* Size */\n    ).slice();\n  }\n\n  add(name, evaluate, kind = 'syscall') {\n    this.evaluateOpcode[name] = {\n      syscall: kind !== 'machine',\n      evaluate\n    };\n  }\n\n  debugBefore(vm, opcode) {\n    let params = undefined;\n    let opName = undefined;\n\n    let sp;\n\n    return {\n      sp: sp,\n      pc: vm.fetchValue($pc),\n      name: opName,\n      params,\n      type: opcode.type,\n      isMachine: opcode.isMachine,\n      size: opcode.size,\n      state: undefined\n    };\n  }\n\n  debugAfter(vm, pre) {\n  }\n\n  evaluate(vm, opcode, type) {\n    let operation = this.evaluateOpcode[type];\n\n    if (operation.syscall) {\n      operation.evaluate(vm, opcode);\n    } else {\n      operation.evaluate(vm[INNER_VM], opcode);\n    }\n  }\n\n}\nconst APPEND_OPCODES = new AppendOpcodes();\n\nfunction createConcatRef(partsRefs) {\n  return createComputeRef(() => {\n    let parts = new Array();\n\n    for (let i = 0; i < partsRefs.length; i++) {\n      let value = valueForRef(partsRefs[i]);\n\n      if (value !== null && value !== undefined) {\n        parts[i] = castToString(value);\n      }\n    }\n\n    if (parts.length > 0) {\n      return parts.join('');\n    }\n\n    return null;\n  });\n}\n\nfunction castToString(value) {\n  if (typeof value.toString !== 'function') {\n    return '';\n  }\n\n  return String(value);\n}\n\nconst TYPE = symbol('TYPE');\nconst INNER = symbol('INNER');\nconst OWNER = symbol('OWNER');\nconst ARGS$1 = symbol('ARGS');\nconst RESOLVED = symbol('RESOLVED');\nconst CURRIED_VALUES = new _WeakSet();\nfunction isCurriedValue(value) {\n  return CURRIED_VALUES.has(value);\n}\nfunction isCurriedType(value, type) {\n  return isCurriedValue(value) && value[TYPE] === type;\n}\nclass CurriedValue {\n  /** @internal */\n  constructor(type, inner, owner, args, resolved = false) {\n    CURRIED_VALUES.add(this);\n    this[TYPE] = type;\n    this[INNER] = inner;\n    this[OWNER] = owner;\n    this[ARGS$1] = args;\n    this[RESOLVED] = resolved;\n  }\n\n}\nfunction resolveCurriedValue(curriedValue) {\n  let currentWrapper = curriedValue;\n  let positional;\n  let named;\n  let definition, owner, resolved;\n\n  while (true) {\n    let {\n      [ARGS$1]: curriedArgs,\n      [INNER]: inner\n    } = currentWrapper;\n\n    if (curriedArgs !== null) {\n      let {\n        named: curriedNamed,\n        positional: curriedPositional\n      } = curriedArgs;\n\n      if (curriedPositional.length > 0) {\n        positional = positional === undefined ? curriedPositional : curriedPositional.concat(positional);\n      }\n\n      if (named === undefined) {\n        named = [];\n      }\n\n      named.unshift(curriedNamed);\n    }\n\n    if (!isCurriedValue(inner)) {\n      // Save off the owner that this helper was curried with. Later on,\n      // we'll fetch the value of this register and set it as the owner on the\n      // new root scope.\n      definition = inner;\n      owner = currentWrapper[OWNER];\n      resolved = currentWrapper[RESOLVED];\n      break;\n    }\n\n    currentWrapper = inner;\n  }\n\n  return {\n    definition,\n    owner,\n    resolved,\n    positional,\n    named\n  };\n}\nfunction curry(type, spec, owner, args, resolved = false) {\n  return new CurriedValue(type, spec, owner, args, resolved);\n}\n\nfunction createCurryRef(type, inner, owner, args, resolver, isStrict) {\n  let lastValue, curriedDefinition;\n  return createComputeRef(() => {\n    let value = valueForRef(inner);\n\n    if (value === lastValue) {\n      return curriedDefinition;\n    }\n\n    if (isCurriedType(value, type)) {\n      curriedDefinition = args ? curry(type, value, owner, args) : args;\n    } else if (type === 0\n    /* Component */\n    && typeof value === 'string' && value) {\n      // Only components should enter this path, as helpers and modifiers do not\n      // support string based resolution\n      if (DEBUG) {\n        if (isStrict) {\n          throw new Error(`Attempted to resolve a dynamic component with a string definition, \\`${value}\\` in a strict mode template. In strict mode, using strings to resolve component definitions is prohibited. You can instead import the component definition and use it directly.`);\n        }\n\n        let resolvedDefinition = resolver.lookupComponent(value, owner);\n\n        if (!resolvedDefinition) {\n          throw new Error(`Attempted to resolve \\`${value}\\`, which was expected to be a component, but nothing was found.`);\n        }\n      }\n\n      curriedDefinition = curry(type, value, owner, args);\n    } else if (isObject(value)) {\n      curriedDefinition = curry(type, value, owner, args);\n    } else {\n      curriedDefinition = null;\n    }\n\n    lastValue = value;\n    return curriedDefinition;\n  });\n}\n\n/*\n  The calling convention is:\n\n  * 0-N block arguments at the bottom\n  * 0-N positional arguments next (left-to-right)\n  * 0-N named arguments next\n*/\n\nclass VMArgumentsImpl {\n  constructor() {\n    this.stack = null;\n    this.positional = new PositionalArgumentsImpl();\n    this.named = new NamedArgumentsImpl();\n    this.blocks = new BlockArgumentsImpl();\n  }\n\n  empty(stack) {\n    let base = stack[REGISTERS][$sp] + 1;\n    this.named.empty(stack, base);\n    this.positional.empty(stack, base);\n    this.blocks.empty(stack, base);\n    return this;\n  }\n\n  setup(stack, names, blockNames, positionalCount, atNames) {\n    this.stack = stack;\n    /*\n           | ... | blocks      | positional  | named |\n           | ... | b0    b1    | p0 p1 p2 p3 | n0 n1 |\n     index | ... | 4/5/6 7/8/9 | 10 11 12 13 | 14 15 |\n                   ^             ^             ^  ^\n                 bbase         pbase       nbase  sp\n    */\n\n    let named = this.named;\n    let namedCount = names.length;\n    let namedBase = stack[REGISTERS][$sp] - namedCount + 1;\n    named.setup(stack, namedBase, namedCount, names, atNames);\n    let positional = this.positional;\n    let positionalBase = namedBase - positionalCount;\n    positional.setup(stack, positionalBase, positionalCount);\n    let blocks = this.blocks;\n    let blocksCount = blockNames.length;\n    let blocksBase = positionalBase - blocksCount * 3;\n    blocks.setup(stack, blocksBase, blocksCount, blockNames);\n  }\n\n  get base() {\n    return this.blocks.base;\n  }\n\n  get length() {\n    return this.positional.length + this.named.length + this.blocks.length * 3;\n  }\n\n  at(pos) {\n    return this.positional.at(pos);\n  }\n\n  realloc(offset) {\n    let {\n      stack\n    } = this;\n\n    if (offset > 0 && stack !== null) {\n      let {\n        positional,\n        named\n      } = this;\n      let newBase = positional.base + offset;\n      let length = positional.length + named.length;\n\n      for (let i = length - 1; i >= 0; i--) {\n        stack.copy(i + positional.base, i + newBase);\n      }\n\n      positional.base += offset;\n      named.base += offset;\n      stack[REGISTERS][$sp] += offset;\n    }\n  }\n\n  capture() {\n    let positional = this.positional.length === 0 ? EMPTY_POSITIONAL : this.positional.capture();\n    let named = this.named.length === 0 ? EMPTY_NAMED : this.named.capture();\n    return {\n      named,\n      positional\n    };\n  }\n\n  clear() {\n    let {\n      stack,\n      length\n    } = this;\n    if (length > 0 && stack !== null) stack.pop(length);\n  }\n\n}\nconst EMPTY_REFERENCES = emptyArray();\nclass PositionalArgumentsImpl {\n  constructor() {\n    this.base = 0;\n    this.length = 0;\n    this.stack = null;\n    this._references = null;\n  }\n\n  empty(stack, base) {\n    this.stack = stack;\n    this.base = base;\n    this.length = 0;\n    this._references = EMPTY_REFERENCES;\n  }\n\n  setup(stack, base, length) {\n    this.stack = stack;\n    this.base = base;\n    this.length = length;\n\n    if (length === 0) {\n      this._references = EMPTY_REFERENCES;\n    } else {\n      this._references = null;\n    }\n  }\n\n  at(position) {\n    let {\n      base,\n      length,\n      stack\n    } = this;\n\n    if (position < 0 || position >= length) {\n      return UNDEFINED_REFERENCE;\n    }\n\n    return stack.get(position, base);\n  }\n\n  capture() {\n    return this.references;\n  }\n\n  prepend(other) {\n    let additions = other.length;\n\n    if (additions > 0) {\n      let {\n        base,\n        length,\n        stack\n      } = this;\n      this.base = base = base - additions;\n      this.length = length + additions;\n\n      for (let i = 0; i < additions; i++) {\n        stack.set(other[i], i, base);\n      }\n\n      this._references = null;\n    }\n  }\n\n  get references() {\n    let references = this._references;\n\n    if (!references) {\n      let {\n        stack,\n        base,\n        length\n      } = this;\n      references = this._references = stack.slice(base, base + length);\n    }\n\n    return references;\n  }\n\n}\nclass NamedArgumentsImpl {\n  constructor() {\n    this.base = 0;\n    this.length = 0;\n    this._references = null;\n    this._names = EMPTY_STRING_ARRAY;\n    this._atNames = EMPTY_STRING_ARRAY;\n  }\n\n  empty(stack, base) {\n    this.stack = stack;\n    this.base = base;\n    this.length = 0;\n    this._references = EMPTY_REFERENCES;\n    this._names = EMPTY_STRING_ARRAY;\n    this._atNames = EMPTY_STRING_ARRAY;\n  }\n\n  setup(stack, base, length, names, atNames) {\n    this.stack = stack;\n    this.base = base;\n    this.length = length;\n\n    if (length === 0) {\n      this._references = EMPTY_REFERENCES;\n      this._names = EMPTY_STRING_ARRAY;\n      this._atNames = EMPTY_STRING_ARRAY;\n    } else {\n      this._references = null;\n\n      if (atNames) {\n        this._names = null;\n        this._atNames = names;\n      } else {\n        this._names = names;\n        this._atNames = null;\n      }\n    }\n  }\n\n  get names() {\n    let names = this._names;\n\n    if (!names) {\n      names = this._names = this._atNames.map(this.toSyntheticName);\n    }\n\n    return names;\n  }\n\n  get atNames() {\n    let atNames = this._atNames;\n\n    if (!atNames) {\n      atNames = this._atNames = this._names.map(this.toAtName);\n    }\n\n    return atNames;\n  }\n\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n\n  get(name, atNames = false) {\n    let {\n      base,\n      stack\n    } = this;\n    let names = atNames ? this.atNames : this.names;\n    let idx = names.indexOf(name);\n\n    if (idx === -1) {\n      return UNDEFINED_REFERENCE;\n    }\n\n    let ref = stack.get(idx, base);\n\n    if (DEBUG) {\n      return createDebugAliasRef(atNames ? name : `@${name}`, ref);\n    } else {\n      return ref;\n    }\n  }\n\n  capture() {\n    let {\n      names,\n      references\n    } = this;\n    let map = dict();\n\n    for (let i = 0; i < names.length; i++) {\n      let name = names[i];\n\n      if (DEBUG) {\n        map[name] = createDebugAliasRef(`@${name}`, references[i]);\n      } else {\n        map[name] = references[i];\n      }\n    }\n\n    return map;\n  }\n\n  merge(other) {\n    let keys = Object.keys(other);\n\n    if (keys.length > 0) {\n      let {\n        names,\n        length,\n        stack\n      } = this;\n      let newNames = names.slice();\n\n      for (let i = 0; i < keys.length; i++) {\n        let name = keys[i];\n        let idx = newNames.indexOf(name);\n\n        if (idx === -1) {\n          length = newNames.push(name);\n          stack.push(other[name]);\n        }\n      }\n\n      this.length = length;\n      this._references = null;\n      this._names = newNames;\n      this._atNames = null;\n    }\n  }\n\n  get references() {\n    let references = this._references;\n\n    if (!references) {\n      let {\n        base,\n        length,\n        stack\n      } = this;\n      references = this._references = stack.slice(base, base + length);\n    }\n\n    return references;\n  }\n\n  toSyntheticName(name) {\n    return name.slice(1);\n  }\n\n  toAtName(name) {\n    return `@${name}`;\n  }\n\n}\n\nfunction toSymbolName(name) {\n  return `&${name}`;\n}\n\nconst EMPTY_BLOCK_VALUES = emptyArray();\nclass BlockArgumentsImpl {\n  constructor() {\n    this.internalValues = null;\n    this._symbolNames = null;\n    this.internalTag = null;\n    this.names = EMPTY_STRING_ARRAY;\n    this.length = 0;\n    this.base = 0;\n  }\n\n  empty(stack, base) {\n    this.stack = stack;\n    this.names = EMPTY_STRING_ARRAY;\n    this.base = base;\n    this.length = 0;\n    this._symbolNames = null;\n    this.internalTag = CONSTANT_TAG;\n    this.internalValues = EMPTY_BLOCK_VALUES;\n  }\n\n  setup(stack, base, length, names) {\n    this.stack = stack;\n    this.names = names;\n    this.base = base;\n    this.length = length;\n    this._symbolNames = null;\n\n    if (length === 0) {\n      this.internalTag = CONSTANT_TAG;\n      this.internalValues = EMPTY_BLOCK_VALUES;\n    } else {\n      this.internalTag = null;\n      this.internalValues = null;\n    }\n  }\n\n  get values() {\n    let values = this.internalValues;\n\n    if (!values) {\n      let {\n        base,\n        length,\n        stack\n      } = this;\n      values = this.internalValues = stack.slice(base, base + length * 3);\n    }\n\n    return values;\n  }\n\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n\n  get(name) {\n    let idx = this.names.indexOf(name);\n\n    if (idx === -1) {\n      return null;\n    }\n\n    let {\n      base,\n      stack\n    } = this;\n    let table = stack.get(idx * 3, base);\n    let scope = stack.get(idx * 3 + 1, base);\n    let handle = stack.get(idx * 3 + 2, base);\n    return handle === null ? null : [handle, scope, table];\n  }\n\n  capture() {\n    return new CapturedBlockArgumentsImpl(this.names, this.values);\n  }\n\n  get symbolNames() {\n    let symbolNames = this._symbolNames;\n\n    if (symbolNames === null) {\n      symbolNames = this._symbolNames = this.names.map(toSymbolName);\n    }\n\n    return symbolNames;\n  }\n\n}\n\nclass CapturedBlockArgumentsImpl {\n  constructor(names, values) {\n    this.names = names;\n    this.values = values;\n    this.length = names.length;\n  }\n\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n\n  get(name) {\n    let idx = this.names.indexOf(name);\n    if (idx === -1) return null;\n    return [this.values[idx * 3 + 2], this.values[idx * 3 + 1], this.values[idx * 3]];\n  }\n\n}\n\nfunction createCapturedArgs(named, positional) {\n  return {\n    named,\n    positional\n  };\n}\nfunction reifyNamed$1(named) {\n  let reified = dict();\n\n  for (let key in named) {\n    reified[key] = valueForRef(named[key]);\n  }\n\n  return reified;\n}\nfunction reifyPositional$1(positional) {\n  return positional.map(valueForRef);\n}\nfunction reifyArgs(args) {\n  return {\n    named: reifyNamed$1(args.named),\n    positional: reifyPositional$1(args.positional)\n  };\n}\nconst EMPTY_NAMED = Object.freeze(Object.create(null));\nconst EMPTY_POSITIONAL = EMPTY_REFERENCES;\nconst EMPTY_ARGS = createCapturedArgs(EMPTY_NAMED, EMPTY_POSITIONAL);\n\nAPPEND_OPCODES.add(77\n/* Curry */\n, (vm, {\n  op1: type,\n  op2: _isStrict\n}) => {\n  let stack = vm.stack;\n  let definition = stack.pop();\n  let capturedArgs = stack.pop();\n  let owner = vm.getOwner();\n  let resolver = vm.runtime.resolver;\n  let isStrict = false;\n\n  if (DEBUG) {\n    // strict check only happens in DEBUG builds, no reason to load it otherwise\n    isStrict = vm[CONSTANTS].getValue(decodeHandle(_isStrict));\n  }\n\n  vm.loadValue($v0, createCurryRef(type, definition, owner, capturedArgs, resolver, isStrict));\n});\nAPPEND_OPCODES.add(107\n/* DynamicHelper */\n, vm => {\n  let stack = vm.stack;\n  let ref = stack.pop();\n  let args = stack.pop().capture();\n  let helperRef;\n  let initialOwner = vm.getOwner();\n  let helperInstanceRef = createComputeRef(() => {\n    if (helperRef !== undefined) {\n      destroy(helperRef);\n    }\n\n    let definition = valueForRef(ref);\n\n    if (isCurriedType(definition, 1\n    /* Helper */\n    )) {\n      let {\n        definition: resolvedDef,\n        owner,\n        positional,\n        named\n      } = resolveCurriedValue(definition);\n      let helper = resolveHelper(vm[CONSTANTS], resolvedDef, ref);\n\n      if (named !== undefined) {\n        args.named = assign({}, ...named, args.named);\n      }\n\n      if (positional !== undefined) {\n        args.positional = positional.concat(args.positional);\n      }\n\n      helperRef = helper(args, owner);\n      associateDestroyableChild(helperInstanceRef, helperRef);\n    } else if (isObject(definition)) {\n      let helper = resolveHelper(vm[CONSTANTS], definition, ref);\n      helperRef = helper(args, initialOwner);\n\n      if (_hasDestroyableChildren(helperRef)) {\n        associateDestroyableChild(helperInstanceRef, helperRef);\n      }\n    } else {\n      helperRef = UNDEFINED_REFERENCE;\n    }\n  });\n  let helperValueRef = createComputeRef(() => {\n    valueForRef(helperInstanceRef);\n    return valueForRef(helperRef);\n  });\n  vm.associateDestroyable(helperInstanceRef);\n  vm.loadValue($v0, helperValueRef);\n});\n\nfunction resolveHelper(constants, definition, ref) {\n  let handle = constants.helper(definition, null, true);\n\n  if (DEBUG && handle === null) {\n    throw new Error(`Expected a dynamic helper definition, but received an object or function that did not have a helper manager associated with it. The dynamic invocation was \\`{{${ref.debugLabel}}}\\` or \\`(${ref.debugLabel})\\`, and the incorrect definition is the value at the path \\`${ref.debugLabel}\\`, which was: ${debugToString(definition)}`);\n  }\n\n  return constants.getValue(handle);\n}\n\nAPPEND_OPCODES.add(16\n/* Helper */\n, (vm, {\n  op1: handle\n}) => {\n  let stack = vm.stack;\n  let helper = vm[CONSTANTS].getValue(handle);\n  let args = stack.pop();\n  let value = helper(args.capture(), vm.getOwner(), vm.dynamicScope());\n\n  if (_hasDestroyableChildren(value)) {\n    vm.associateDestroyable(value);\n  }\n\n  vm.loadValue($v0, value);\n});\nAPPEND_OPCODES.add(21\n/* GetVariable */\n, (vm, {\n  op1: symbol$$1\n}) => {\n  let expr = vm.referenceForSymbol(symbol$$1);\n  vm.stack.push(expr);\n});\nAPPEND_OPCODES.add(19\n/* SetVariable */\n, (vm, {\n  op1: symbol$$1\n}) => {\n  let expr = vm.stack.pop();\n  vm.scope().bindSymbol(symbol$$1, expr);\n});\nAPPEND_OPCODES.add(20\n/* SetBlock */\n, (vm, {\n  op1: symbol$$1\n}) => {\n  let handle = vm.stack.pop();\n  let scope = vm.stack.pop();\n  let table = vm.stack.pop();\n  vm.scope().bindBlock(symbol$$1, [handle, scope, table]);\n});\nAPPEND_OPCODES.add(102\n/* ResolveMaybeLocal */\n, (vm, {\n  op1: _name\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let locals = vm.scope().getPartialMap();\n  let ref = locals[name];\n\n  if (ref === undefined) {\n    ref = childRefFor(vm.getSelf(), name);\n  }\n\n  vm.stack.push(ref);\n});\nAPPEND_OPCODES.add(37\n/* RootScope */\n, (vm, {\n  op1: symbols\n}) => {\n  vm.pushRootScope(symbols, vm.getOwner());\n});\nAPPEND_OPCODES.add(22\n/* GetProperty */\n, (vm, {\n  op1: _key\n}) => {\n  let key = vm[CONSTANTS].getValue(_key);\n  let expr = vm.stack.pop();\n  vm.stack.push(childRefFor(expr, key));\n});\nAPPEND_OPCODES.add(23\n/* GetBlock */\n, (vm, {\n  op1: _block\n}) => {\n  let {\n    stack\n  } = vm;\n  let block = vm.scope().getBlock(_block);\n  stack.push(block);\n});\nAPPEND_OPCODES.add(24\n/* SpreadBlock */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let block = stack.pop();\n\n  if (block && !isUndefinedReference(block)) {\n    let [handleOrCompilable, scope, table] = block;\n    stack.push(table);\n    stack.push(scope);\n    stack.push(handleOrCompilable);\n  } else {\n    stack.push(null);\n    stack.push(null);\n    stack.push(null);\n  }\n});\n\nfunction isUndefinedReference(input) {\n  return input === UNDEFINED_REFERENCE;\n}\n\nAPPEND_OPCODES.add(25\n/* HasBlock */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let block = stack.pop();\n\n  if (block && !isUndefinedReference(block)) {\n    stack.push(TRUE_REFERENCE);\n  } else {\n    stack.push(FALSE_REFERENCE);\n  }\n});\nAPPEND_OPCODES.add(26\n/* HasBlockParams */\n, vm => {\n  // FIXME(mmun): should only need to push the symbol table\n  let block = vm.stack.pop();\n  let scope = vm.stack.pop();\n  let table = vm.stack.pop();\n  let hasBlockParams = table && table.parameters.length;\n  vm.stack.push(hasBlockParams ? TRUE_REFERENCE : FALSE_REFERENCE);\n});\nAPPEND_OPCODES.add(27\n/* Concat */\n, (vm, {\n  op1: count\n}) => {\n  let out = new Array(count);\n\n  for (let i = count; i > 0; i--) {\n    let offset = i - 1;\n    out[offset] = vm.stack.pop();\n  }\n\n  vm.stack.push(createConcatRef(out));\n});\nAPPEND_OPCODES.add(109\n/* IfInline */\n, vm => {\n  let condition = vm.stack.pop();\n  let truthy = vm.stack.pop();\n  let falsy = vm.stack.pop();\n  vm.stack.push(createComputeRef(() => {\n    if (toBool(valueForRef(condition)) === true) {\n      return valueForRef(truthy);\n    } else {\n      return valueForRef(falsy);\n    }\n  }));\n});\nAPPEND_OPCODES.add(110\n/* Not */\n, vm => {\n  let ref = vm.stack.pop();\n  vm.stack.push(createComputeRef(() => {\n    return !toBool(valueForRef(ref));\n  }));\n});\nAPPEND_OPCODES.add(111\n/* GetDynamicVar */\n, vm => {\n  let scope = vm.dynamicScope();\n  let stack = vm.stack;\n  let nameRef = stack.pop();\n  stack.push(createComputeRef(() => {\n    let name = String(valueForRef(nameRef));\n    return valueForRef(scope.get(name));\n  }));\n});\nAPPEND_OPCODES.add(112\n/* Log */\n, vm => {\n  let {\n    positional\n  } = vm.stack.pop().capture();\n  vm.loadValue($v0, createComputeRef(() => {\n    // eslint-disable-next-line no-console\n    console.log(...reifyPositional$1(positional));\n  }));\n});\n\nfunction resolveComponent(resolver, constants, name, owner) {\n  let definition = resolver.lookupComponent(name, owner);\n\n  if (DEBUG && !definition) {\n    throw new Error(`Attempted to resolve \\`${name}\\`, which was expected to be a component, but nothing was found.`);\n  }\n\n  return constants.resolvedComponent(definition, name);\n}\n\n/** @internal */\nfunction hasCustomDebugRenderTreeLifecycle(manager) {\n  return 'getDebugCustomRenderTree' in manager;\n}\n\nfunction createClassListRef(list) {\n  return createComputeRef(() => {\n    let ret = [];\n\n    for (let i = 0; i < list.length; i++) {\n      let ref = list[i];\n      let value = normalizeStringValue(typeof ref === 'string' ? ref : valueForRef(list[i]));\n      if (value) ret.push(value);\n    }\n\n    return ret.length === 0 ? null : ret.join(' ');\n  });\n}\n\nAPPEND_OPCODES.add(39\n/* ChildScope */\n, vm => vm.pushChildScope());\nAPPEND_OPCODES.add(40\n/* PopScope */\n, vm => vm.popScope());\nAPPEND_OPCODES.add(59\n/* PushDynamicScope */\n, vm => vm.pushDynamicScope());\nAPPEND_OPCODES.add(60\n/* PopDynamicScope */\n, vm => vm.popDynamicScope());\nAPPEND_OPCODES.add(28\n/* Constant */\n, (vm, {\n  op1: other\n}) => {\n  vm.stack.push(vm[CONSTANTS].getValue(decodeHandle(other)));\n});\nAPPEND_OPCODES.add(29\n/* ConstantReference */\n, (vm, {\n  op1: other\n}) => {\n  vm.stack.push(createConstRef(vm[CONSTANTS].getValue(decodeHandle(other)), false));\n});\nAPPEND_OPCODES.add(30\n/* Primitive */\n, (vm, {\n  op1: primitive\n}) => {\n  let stack = vm.stack;\n\n  if (isHandle(primitive)) {\n    // it is a handle which does not already exist on the stack\n    let value = vm[CONSTANTS].getValue(decodeHandle(primitive));\n    stack.push(value);\n  } else {\n    // is already an encoded immediate or primitive handle\n    stack.push(decodeImmediate(primitive));\n  }\n});\nAPPEND_OPCODES.add(31\n/* PrimitiveReference */\n, vm => {\n  let stack = vm.stack;\n  let value = stack.pop();\n  let ref;\n\n  if (value === undefined) {\n    ref = UNDEFINED_REFERENCE;\n  } else if (value === null) {\n    ref = NULL_REFERENCE;\n  } else if (value === true) {\n    ref = TRUE_REFERENCE;\n  } else if (value === false) {\n    ref = FALSE_REFERENCE;\n  } else {\n    ref = createPrimitiveRef(value);\n  }\n\n  stack.push(ref);\n});\nAPPEND_OPCODES.add(33\n/* Dup */\n, (vm, {\n  op1: register,\n  op2: offset\n}) => {\n  let position = vm.fetchValue(register) - offset;\n  vm.stack.dup(position);\n});\nAPPEND_OPCODES.add(34\n/* Pop */\n, (vm, {\n  op1: count\n}) => {\n  vm.stack.pop(count);\n});\nAPPEND_OPCODES.add(35\n/* Load */\n, (vm, {\n  op1: register\n}) => {\n  vm.load(register);\n});\nAPPEND_OPCODES.add(36\n/* Fetch */\n, (vm, {\n  op1: register\n}) => {\n  vm.fetch(register);\n});\nAPPEND_OPCODES.add(58\n/* BindDynamicScope */\n, (vm, {\n  op1: _names\n}) => {\n  let names = vm[CONSTANTS].getArray(_names);\n  vm.bindDynamicScope(names);\n});\nAPPEND_OPCODES.add(69\n/* Enter */\n, (vm, {\n  op1: args\n}) => {\n  vm.enter(args);\n});\nAPPEND_OPCODES.add(70\n/* Exit */\n, vm => {\n  vm.exit();\n});\nAPPEND_OPCODES.add(63\n/* PushSymbolTable */\n, (vm, {\n  op1: _table\n}) => {\n  let stack = vm.stack;\n  stack.push(vm[CONSTANTS].getValue(_table));\n});\nAPPEND_OPCODES.add(62\n/* PushBlockScope */\n, vm => {\n  let stack = vm.stack;\n  stack.push(vm.scope());\n});\nAPPEND_OPCODES.add(61\n/* CompileBlock */\n, vm => {\n  let stack = vm.stack;\n  let block = stack.pop();\n\n  if (block) {\n    stack.push(vm.compile(block));\n  } else {\n    stack.push(null);\n  }\n});\nAPPEND_OPCODES.add(64\n/* InvokeYield */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let handle = stack.pop();\n  let scope = stack.pop();\n  let table = stack.pop();\n  let args = stack.pop();\n\n  if (table === null) {\n    // To balance the pop{Frame,Scope}\n    vm.pushFrame();\n    vm.pushScope(scope !== null && scope !== void 0 ? scope : vm.scope());\n    return;\n  }\n\n  let invokingScope = scope; // If necessary, create a child scope\n\n  {\n    let locals = table.parameters;\n    let localsCount = locals.length;\n\n    if (localsCount > 0) {\n      invokingScope = invokingScope.child();\n\n      for (let i = 0; i < localsCount; i++) {\n        invokingScope.bindSymbol(locals[i], args.at(i));\n      }\n    }\n  }\n  vm.pushFrame();\n  vm.pushScope(invokingScope);\n  vm.call(handle);\n});\nAPPEND_OPCODES.add(65\n/* JumpIf */\n, (vm, {\n  op1: target\n}) => {\n  let reference = vm.stack.pop();\n  let value = Boolean(valueForRef(reference));\n\n  if (isConstRef(reference)) {\n    if (value === true) {\n      vm.goto(target);\n    }\n  } else {\n    if (value === true) {\n      vm.goto(target);\n    }\n\n    vm.updateWith(new Assert(reference));\n  }\n});\nAPPEND_OPCODES.add(66\n/* JumpUnless */\n, (vm, {\n  op1: target\n}) => {\n  let reference = vm.stack.pop();\n  let value = Boolean(valueForRef(reference));\n\n  if (isConstRef(reference)) {\n    if (value === false) {\n      vm.goto(target);\n    }\n  } else {\n    if (value === false) {\n      vm.goto(target);\n    }\n\n    vm.updateWith(new Assert(reference));\n  }\n});\nAPPEND_OPCODES.add(67\n/* JumpEq */\n, (vm, {\n  op1: target,\n  op2: comparison\n}) => {\n  let other = vm.stack.peek();\n\n  if (other === comparison) {\n    vm.goto(target);\n  }\n});\nAPPEND_OPCODES.add(68\n/* AssertSame */\n, vm => {\n  let reference = vm.stack.peek();\n\n  if (isConstRef(reference) === false) {\n    vm.updateWith(new Assert(reference));\n  }\n});\nAPPEND_OPCODES.add(71\n/* ToBoolean */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let valueRef = stack.pop();\n  stack.push(createComputeRef(() => toBool(valueForRef(valueRef))));\n});\nclass Assert {\n  constructor(ref) {\n    this.ref = ref;\n    this.last = valueForRef(ref);\n  }\n\n  evaluate(vm) {\n    let {\n      last,\n      ref\n    } = this;\n    let current = valueForRef(ref);\n\n    if (last !== current) {\n      vm.throw();\n    }\n  }\n\n}\nclass AssertFilter {\n  constructor(ref, filter) {\n    this.ref = ref;\n    this.filter = filter;\n    this.last = filter(valueForRef(ref));\n  }\n\n  evaluate(vm) {\n    let {\n      last,\n      ref,\n      filter\n    } = this;\n    let current = filter(valueForRef(ref));\n\n    if (last !== current) {\n      vm.throw();\n    }\n  }\n\n}\nclass JumpIfNotModifiedOpcode {\n  constructor() {\n    this.tag = CONSTANT_TAG;\n    this.lastRevision = INITIAL;\n  }\n\n  finalize(tag, target) {\n    this.target = target;\n    this.didModify(tag);\n  }\n\n  evaluate(vm) {\n    let {\n      tag,\n      target,\n      lastRevision\n    } = this;\n\n    if (!vm.alwaysRevalidate && validateTag(tag, lastRevision)) {\n      consumeTag(tag);\n      vm.goto(target);\n    }\n  }\n\n  didModify(tag) {\n    this.tag = tag;\n    this.lastRevision = valueForTag(this.tag);\n    consumeTag(tag);\n  }\n\n}\nclass BeginTrackFrameOpcode {\n  constructor(debugLabel) {\n    this.debugLabel = debugLabel;\n  }\n\n  evaluate() {\n    beginTrackFrame(this.debugLabel);\n  }\n\n}\nclass EndTrackFrameOpcode {\n  constructor(target) {\n    this.target = target;\n  }\n\n  evaluate() {\n    let tag = endTrackFrame();\n    this.target.didModify(tag);\n  }\n\n}\n\nAPPEND_OPCODES.add(41\n/* Text */\n, (vm, {\n  op1: text\n}) => {\n  vm.elements().appendText(vm[CONSTANTS].getValue(text));\n});\nAPPEND_OPCODES.add(42\n/* Comment */\n, (vm, {\n  op1: text\n}) => {\n  vm.elements().appendComment(vm[CONSTANTS].getValue(text));\n});\nAPPEND_OPCODES.add(48\n/* OpenElement */\n, (vm, {\n  op1: tag\n}) => {\n  vm.elements().openElement(vm[CONSTANTS].getValue(tag));\n});\nAPPEND_OPCODES.add(49\n/* OpenDynamicElement */\n, vm => {\n  let tagName = valueForRef(vm.stack.pop());\n  vm.elements().openElement(tagName);\n});\nAPPEND_OPCODES.add(50\n/* PushRemoteElement */\n, vm => {\n  let elementRef = vm.stack.pop();\n  let insertBeforeRef = vm.stack.pop();\n  let guidRef = vm.stack.pop();\n  let element = valueForRef(elementRef);\n  let insertBefore = valueForRef(insertBeforeRef);\n  let guid = valueForRef(guidRef);\n\n  if (!isConstRef(elementRef)) {\n    vm.updateWith(new Assert(elementRef));\n  }\n\n  if (insertBefore !== undefined && !isConstRef(insertBeforeRef)) {\n    vm.updateWith(new Assert(insertBeforeRef));\n  }\n\n  let block = vm.elements().pushRemoteElement(element, guid, insertBefore);\n  if (block) vm.associateDestroyable(block);\n});\nAPPEND_OPCODES.add(56\n/* PopRemoteElement */\n, vm => {\n  vm.elements().popRemoteElement();\n});\nAPPEND_OPCODES.add(54\n/* FlushElement */\n, vm => {\n  let operations = vm.fetchValue($t0);\n  let modifiers = null;\n\n  if (operations) {\n    modifiers = operations.flush(vm);\n    vm.loadValue($t0, null);\n  }\n\n  vm.elements().flushElement(modifiers);\n});\nAPPEND_OPCODES.add(55\n/* CloseElement */\n, vm => {\n  let modifiers = vm.elements().closeElement();\n\n  if (modifiers) {\n    modifiers.forEach(modifier => {\n      vm.env.scheduleInstallModifier(modifier);\n      let {\n        manager,\n        state\n      } = modifier;\n      let d = manager.getDestroyable(state);\n\n      if (d) {\n        vm.associateDestroyable(d);\n      }\n    });\n  }\n});\nAPPEND_OPCODES.add(57\n/* Modifier */\n, (vm, {\n  op1: handle\n}) => {\n  if (vm.env.isInteractive === false) {\n    return;\n  }\n\n  let owner = vm.getOwner();\n  let args = vm.stack.pop();\n  let definition = vm[CONSTANTS].getValue(handle);\n  let {\n    manager\n  } = definition;\n  let {\n    constructing\n  } = vm.elements();\n  let state = manager.create(owner, constructing, definition.state, args.capture());\n  let instance = {\n    manager,\n    state,\n    definition\n  };\n  let operations = vm.fetchValue($t0);\n  operations.addModifier(instance);\n  let tag = manager.getTag(state);\n\n  if (tag !== null) {\n    consumeTag(tag);\n    return vm.updateWith(new UpdateModifierOpcode(tag, instance));\n  }\n});\nAPPEND_OPCODES.add(108\n/* DynamicModifier */\n, vm => {\n  if (vm.env.isInteractive === false) {\n    return;\n  }\n\n  let {\n    stack,\n    [CONSTANTS]: constants\n  } = vm;\n  let ref = stack.pop();\n  let args = stack.pop().capture();\n  let {\n    constructing\n  } = vm.elements();\n  let initialOwner = vm.getOwner();\n  let instanceRef = createComputeRef(() => {\n    let value = valueForRef(ref);\n    let owner;\n\n    if (!isObject(value)) {\n      return;\n    }\n\n    let hostDefinition;\n\n    if (isCurriedType(value, 2\n    /* Modifier */\n    )) {\n      let {\n        definition: resolvedDefinition,\n        owner: curriedOwner,\n        positional,\n        named\n      } = resolveCurriedValue(value);\n      hostDefinition = resolvedDefinition;\n      owner = curriedOwner;\n\n      if (positional !== undefined) {\n        args.positional = positional.concat(args.positional);\n      }\n\n      if (named !== undefined) {\n        args.named = assign({}, ...named, args.named);\n      }\n    } else {\n      hostDefinition = value;\n      owner = initialOwner;\n    }\n\n    let handle = constants.modifier(hostDefinition, null, true);\n\n    if (DEBUG && handle === null) {\n      throw new Error(`Expected a dynamic modifier definition, but received an object or function that did not have a modifier manager associated with it. The dynamic invocation was \\`{{${ref.debugLabel}}}\\`, and the incorrect definition is the value at the path \\`${ref.debugLabel}\\`, which was: ${debugToString(hostDefinition)}`);\n    }\n\n    let definition = constants.getValue(handle);\n    let {\n      manager\n    } = definition;\n    let state = manager.create(owner, constructing, definition.state, args);\n    return {\n      manager,\n      state,\n      definition\n    };\n  });\n  let instance = valueForRef(instanceRef);\n  let tag = null;\n\n  if (instance !== undefined) {\n    let operations = vm.fetchValue($t0);\n    operations.addModifier(instance);\n    tag = instance.manager.getTag(instance.state);\n\n    if (tag !== null) {\n      consumeTag(tag);\n    }\n  }\n\n  if (!isConstRef(ref) || tag) {\n    return vm.updateWith(new UpdateDynamicModifierOpcode(tag, instance, instanceRef));\n  }\n});\nclass UpdateModifierOpcode {\n  constructor(tag, modifier) {\n    this.tag = tag;\n    this.modifier = modifier;\n    this.lastUpdated = valueForTag(tag);\n  }\n\n  evaluate(vm) {\n    let {\n      modifier,\n      tag,\n      lastUpdated\n    } = this;\n    consumeTag(tag);\n\n    if (!validateTag(tag, lastUpdated)) {\n      vm.env.scheduleUpdateModifier(modifier);\n      this.lastUpdated = valueForTag(tag);\n    }\n  }\n\n}\nclass UpdateDynamicModifierOpcode {\n  constructor(tag, instance, instanceRef) {\n    this.tag = tag;\n    this.instance = instance;\n    this.instanceRef = instanceRef;\n    this.lastUpdated = valueForTag(tag !== null && tag !== void 0 ? tag : CURRENT_TAG);\n  }\n\n  evaluate(vm) {\n    let {\n      tag,\n      lastUpdated,\n      instance,\n      instanceRef\n    } = this;\n    let newInstance = valueForRef(instanceRef);\n\n    if (newInstance !== instance) {\n      if (instance !== undefined) {\n        let destroyable = instance.manager.getDestroyable(instance.state);\n\n        if (destroyable !== null) {\n          destroy(destroyable);\n        }\n      }\n\n      if (newInstance !== undefined) {\n        let {\n          manager,\n          state\n        } = newInstance;\n        let destroyable = manager.getDestroyable(state);\n\n        if (destroyable !== null) {\n          associateDestroyableChild(this, destroyable);\n        }\n\n        tag = manager.getTag(state);\n\n        if (tag !== null) {\n          this.lastUpdated = valueForTag(tag);\n        }\n\n        this.tag = tag;\n        vm.env.scheduleInstallModifier(newInstance);\n      }\n\n      this.instance = newInstance;\n    } else if (tag !== null && !validateTag(tag, lastUpdated)) {\n      vm.env.scheduleUpdateModifier(instance);\n      this.lastUpdated = valueForTag(tag);\n    }\n\n    if (tag !== null) {\n      consumeTag(tag);\n    }\n  }\n\n}\nAPPEND_OPCODES.add(51\n/* StaticAttr */\n, (vm, {\n  op1: _name,\n  op2: _value,\n  op3: _namespace\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let value = vm[CONSTANTS].getValue(_value);\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  vm.elements().setStaticAttribute(name, value, namespace);\n});\nAPPEND_OPCODES.add(52\n/* DynamicAttr */\n, (vm, {\n  op1: _name,\n  op2: _trusting,\n  op3: _namespace\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let trusting = vm[CONSTANTS].getValue(_trusting);\n  let reference = vm.stack.pop();\n  let value = valueForRef(reference);\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  let attribute = vm.elements().setDynamicAttribute(name, value, trusting, namespace);\n\n  if (!isConstRef(reference)) {\n    vm.updateWith(new UpdateDynamicAttributeOpcode(reference, attribute, vm.env));\n  }\n});\nclass UpdateDynamicAttributeOpcode {\n  constructor(reference, attribute, env) {\n    let initialized = false;\n    this.updateRef = createComputeRef(() => {\n      let value = valueForRef(reference);\n\n      if (initialized === true) {\n        attribute.update(value, env);\n      } else {\n        initialized = true;\n      }\n    });\n    valueForRef(this.updateRef);\n  }\n\n  evaluate() {\n    valueForRef(this.updateRef);\n  }\n\n}\n\nAPPEND_OPCODES.add(78\n/* PushComponentDefinition */\n, (vm, {\n  op1: handle\n}) => {\n  let definition = vm[CONSTANTS].getValue(handle);\n  let {\n    manager,\n    capabilities\n  } = definition;\n  let instance = {\n    definition,\n    manager,\n    capabilities,\n    state: null,\n    handle: null,\n    table: null,\n    lookup: null\n  };\n  vm.stack.push(instance);\n});\nAPPEND_OPCODES.add(80\n/* ResolveDynamicComponent */\n, (vm, {\n  op1: _isStrict\n}) => {\n  let stack = vm.stack;\n  let component = valueForRef(stack.pop());\n  let constants = vm[CONSTANTS];\n  let owner = vm.getOwner();\n  let isStrict = constants.getValue(_isStrict);\n  vm.loadValue($t1, null); // Clear the temp register\n\n  let definition;\n\n  if (typeof component === 'string') {\n    if (DEBUG && isStrict) {\n      throw new Error(`Attempted to resolve a dynamic component with a string definition, \\`${component}\\` in a strict mode template. In strict mode, using strings to resolve component definitions is prohibited. You can instead import the component definition and use it directly.`);\n    }\n\n    let resolvedDefinition = resolveComponent(vm.runtime.resolver, constants, component, owner);\n    definition = resolvedDefinition;\n  } else if (isCurriedValue(component)) {\n    definition = component;\n  } else {\n    definition = constants.component(component, owner);\n  }\n\n  stack.push(definition);\n});\nAPPEND_OPCODES.add(81\n/* ResolveCurriedComponent */\n, vm => {\n  let stack = vm.stack;\n  let ref = stack.pop();\n  let value = valueForRef(ref);\n  let constants = vm[CONSTANTS];\n  let definition;\n\n  if (DEBUG && !(typeof value === 'function' || typeof value === 'object' && value !== null)) {\n    throw new Error(`Expected a component definition, but received ${value}. You may have accidentally done <${ref.debugLabel}>, where \"${ref.debugLabel}\" was a string instead of a curried component definition. You must either use the component definition directly, or use the {{component}} helper to create a curried component definition when invoking dynamically.`);\n  }\n\n  if (isCurriedValue(value)) {\n    definition = value;\n  } else {\n    definition = constants.component(value, vm.getOwner(), true);\n\n    if (DEBUG && definition === null) {\n      throw new Error(`Expected a dynamic component definition, but received an object or function that did not have a component manager associated with it. The dynamic invocation was \\`<${ref.debugLabel}>\\` or \\`{{${ref.debugLabel}}}\\`, and the incorrect definition is the value at the path \\`${ref.debugLabel}\\`, which was: ${debugToString(value)}`);\n    }\n  }\n\n  stack.push(definition);\n});\nAPPEND_OPCODES.add(79\n/* PushDynamicComponentInstance */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let definition = stack.pop();\n  let capabilities, manager;\n\n  if (isCurriedValue(definition)) {\n    manager = capabilities = null;\n  } else {\n    manager = definition.manager;\n    capabilities = definition.capabilities;\n  }\n\n  stack.push({\n    definition,\n    capabilities,\n    manager,\n    state: null,\n    handle: null,\n    table: null\n  });\n});\nAPPEND_OPCODES.add(82\n/* PushArgs */\n, (vm, {\n  op1: _names,\n  op2: _blockNames,\n  op3: flags\n}) => {\n  let stack = vm.stack;\n  let names = vm[CONSTANTS].getArray(_names);\n  let positionalCount = flags >> 4;\n  let atNames = flags & 0b1000;\n  let blockNames = flags & 0b0111 ? vm[CONSTANTS].getArray(_blockNames) : EMPTY_STRING_ARRAY;\n  vm[ARGS].setup(stack, names, blockNames, positionalCount, !!atNames);\n  stack.push(vm[ARGS]);\n});\nAPPEND_OPCODES.add(83\n/* PushEmptyArgs */\n, vm => {\n  let {\n    stack\n  } = vm;\n  stack.push(vm[ARGS].empty(stack));\n});\nAPPEND_OPCODES.add(86\n/* CaptureArgs */\n, vm => {\n  let stack = vm.stack;\n  let args = stack.pop();\n  let capturedArgs = args.capture();\n  stack.push(capturedArgs);\n});\nAPPEND_OPCODES.add(85\n/* PrepareArgs */\n, (vm, {\n  op1: _state\n}) => {\n  let stack = vm.stack;\n  let instance = vm.fetchValue(_state);\n  let args = stack.pop();\n  let {\n    definition\n  } = instance;\n\n  if (isCurriedType(definition, 0\n  /* Component */\n  )) {\n    let constants = vm[CONSTANTS];\n    let {\n      definition: resolvedDefinition,\n      owner,\n      resolved,\n      positional,\n      named\n    } = resolveCurriedValue(definition);\n\n    if (resolved === true) {\n      definition = resolvedDefinition;\n    } else if (typeof resolvedDefinition === 'string') {\n      let resolvedValue = vm.runtime.resolver.lookupComponent(resolvedDefinition, owner);\n      definition = constants.resolvedComponent(resolvedValue, resolvedDefinition);\n    } else {\n      definition = constants.component(resolvedDefinition, owner);\n    }\n\n    if (named !== undefined) {\n      args.named.merge(assign({}, ...named));\n    }\n\n    if (positional !== undefined) {\n      args.realloc(positional.length);\n      args.positional.prepend(positional);\n    }\n\n    let {\n      manager\n    } = definition;\n    instance.definition = definition;\n    instance.manager = manager;\n    instance.capabilities = definition.capabilities; // Save off the owner that this component was curried with. Later on,\n    // we'll fetch the value of this register and set it as the owner on the\n    // new root scope.\n\n    vm.loadValue($t1, owner);\n  }\n\n  let {\n    manager,\n    state\n  } = definition;\n  let capabilities = instance.capabilities;\n\n  if (!managerHasCapability(manager, capabilities, 4\n  /* PrepareArgs */\n  )) {\n    stack.push(args);\n    return;\n  }\n\n  let blocks = args.blocks.values;\n  let blockNames = args.blocks.names;\n  let preparedArgs = manager.prepareArgs(state, args);\n\n  if (preparedArgs) {\n    args.clear();\n\n    for (let i = 0; i < blocks.length; i++) {\n      stack.push(blocks[i]);\n    }\n\n    let {\n      positional,\n      named\n    } = preparedArgs;\n    let positionalCount = positional.length;\n\n    for (let i = 0; i < positionalCount; i++) {\n      stack.push(positional[i]);\n    }\n\n    let names = Object.keys(named);\n\n    for (let i = 0; i < names.length; i++) {\n      stack.push(named[names[i]]);\n    }\n\n    args.setup(stack, names, blockNames, positionalCount, false);\n  }\n\n  stack.push(args);\n});\nAPPEND_OPCODES.add(87\n/* CreateComponent */\n, (vm, {\n  op1: flags,\n  op2: _state\n}) => {\n  let instance = vm.fetchValue(_state);\n  let {\n    definition,\n    manager,\n    capabilities\n  } = instance;\n\n  if (!managerHasCapability(manager, capabilities, 512\n  /* CreateInstance */\n  )) {\n    // TODO: Closure and Main components are always invoked dynamically, so this\n    // opcode may run even if this capability is not enabled. In the future we\n    // should handle this in a better way.\n    return;\n  }\n\n  let dynamicScope = null;\n\n  if (managerHasCapability(manager, capabilities, 64\n  /* DynamicScope */\n  )) {\n    dynamicScope = vm.dynamicScope();\n  }\n\n  let hasDefaultBlock = flags & 1;\n  let args = null;\n\n  if (managerHasCapability(manager, capabilities, 8\n  /* CreateArgs */\n  )) {\n    args = vm.stack.peek();\n  }\n\n  let self = null;\n\n  if (managerHasCapability(manager, capabilities, 128\n  /* CreateCaller */\n  )) {\n    self = vm.getSelf();\n  }\n\n  let state = manager.create(vm.getOwner(), definition.state, args, vm.env, dynamicScope, self, !!hasDefaultBlock); // We want to reuse the `state` POJO here, because we know that the opcodes\n  // only transition at exactly one place.\n\n  instance.state = state;\n\n  if (managerHasCapability(manager, capabilities, 256\n  /* UpdateHook */\n  )) {\n    vm.updateWith(new UpdateComponentOpcode(state, manager, dynamicScope));\n  }\n});\nAPPEND_OPCODES.add(88\n/* RegisterComponentDestructor */\n, (vm, {\n  op1: _state\n}) => {\n  let {\n    manager,\n    state,\n    capabilities\n  } = vm.fetchValue(_state);\n  let d = manager.getDestroyable(state);\n\n  if (DEBUG && !managerHasCapability(manager, capabilities, 2048\n  /* WillDestroy */\n  ) && d !== null && typeof 'willDestroy' in d) {\n    throw new Error('BUG: Destructor has willDestroy, but the willDestroy capability was not enabled for this component. Pre-destruction hooks must be explicitly opted into');\n  }\n\n  if (d) vm.associateDestroyable(d);\n});\nAPPEND_OPCODES.add(97\n/* BeginComponentTransaction */\n, (vm, {\n  op1: _state\n}) => {\n  var _a;\n\n  let name;\n\n  if (DEBUG) {\n    let {\n      definition,\n      manager\n    } = vm.fetchValue(_state);\n    name = (_a = definition.resolvedName) !== null && _a !== void 0 ? _a : manager.getDebugName(definition.state);\n  }\n\n  vm.beginCacheGroup(name);\n  vm.elements().pushSimpleBlock();\n});\nAPPEND_OPCODES.add(89\n/* PutComponentOperations */\n, vm => {\n  vm.loadValue($t0, new ComponentElementOperations());\n});\nAPPEND_OPCODES.add(53\n/* ComponentAttr */\n, (vm, {\n  op1: _name,\n  op2: _trusting,\n  op3: _namespace\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let trusting = vm[CONSTANTS].getValue(_trusting);\n  let reference = vm.stack.pop();\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  vm.fetchValue($t0).setAttribute(name, reference, trusting, namespace);\n});\nAPPEND_OPCODES.add(105\n/* StaticComponentAttr */\n, (vm, {\n  op1: _name,\n  op2: _value,\n  op3: _namespace\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let value = vm[CONSTANTS].getValue(_value);\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  vm.fetchValue($t0).setStaticAttribute(name, value, namespace);\n});\nclass ComponentElementOperations {\n  constructor() {\n    this.attributes = dict();\n    this.classes = [];\n    this.modifiers = [];\n  }\n\n  setAttribute(name, value, trusting, namespace) {\n    let deferred = {\n      value,\n      namespace,\n      trusting\n    };\n\n    if (name === 'class') {\n      this.classes.push(value);\n    }\n\n    this.attributes[name] = deferred;\n  }\n\n  setStaticAttribute(name, value, namespace) {\n    let deferred = {\n      value,\n      namespace\n    };\n\n    if (name === 'class') {\n      this.classes.push(value);\n    }\n\n    this.attributes[name] = deferred;\n  }\n\n  addModifier(modifier) {\n    this.modifiers.push(modifier);\n  }\n\n  flush(vm) {\n    let type;\n    let attributes = this.attributes;\n\n    for (let name in this.attributes) {\n      if (name === 'type') {\n        type = attributes[name];\n        continue;\n      }\n\n      let attr = this.attributes[name];\n\n      if (name === 'class') {\n        setDeferredAttr(vm, 'class', mergeClasses(this.classes), attr.namespace, attr.trusting);\n      } else {\n        setDeferredAttr(vm, name, attr.value, attr.namespace, attr.trusting);\n      }\n    }\n\n    if (type !== undefined) {\n      setDeferredAttr(vm, 'type', type.value, type.namespace, type.trusting);\n    }\n\n    return this.modifiers;\n  }\n\n}\n\nfunction mergeClasses(classes) {\n  if (classes.length === 0) {\n    return '';\n  }\n\n  if (classes.length === 1) {\n    return classes[0];\n  }\n\n  if (allStringClasses(classes)) {\n    return classes.join(' ');\n  }\n\n  return createClassListRef(classes);\n}\n\nfunction allStringClasses(classes) {\n  for (let i = 0; i < classes.length; i++) {\n    if (typeof classes[i] !== 'string') {\n      return false;\n    }\n  }\n\n  return true;\n}\n\nfunction setDeferredAttr(vm, name, value, namespace, trusting = false) {\n  if (typeof value === 'string') {\n    vm.elements().setStaticAttribute(name, value, namespace);\n  } else {\n    let attribute = vm.elements().setDynamicAttribute(name, valueForRef(value), trusting, namespace);\n\n    if (!isConstRef(value)) {\n      vm.updateWith(new UpdateDynamicAttributeOpcode(value, attribute, vm.env));\n    }\n  }\n}\n\nAPPEND_OPCODES.add(99\n/* DidCreateElement */\n, (vm, {\n  op1: _state\n}) => {\n  let {\n    definition,\n    state\n  } = vm.fetchValue(_state);\n  let {\n    manager\n  } = definition;\n  let operations = vm.fetchValue($t0);\n  manager.didCreateElement(state, vm.elements().constructing, operations);\n});\nAPPEND_OPCODES.add(90\n/* GetComponentSelf */\n, (vm, {\n  op1: _state,\n  op2: _names\n}) => {\n  var _a;\n\n  let instance = vm.fetchValue(_state);\n  let {\n    definition,\n    state\n  } = instance;\n  let {\n    manager\n  } = definition;\n  let selfRef = manager.getSelf(state);\n\n  if (vm.env.debugRenderTree !== undefined) {\n    let instance = vm.fetchValue(_state);\n    let {\n      definition,\n      manager\n    } = instance;\n    let args;\n\n    if (vm.stack.peek() === vm[ARGS]) {\n      args = vm[ARGS].capture();\n    } else {\n      let names = vm[CONSTANTS].getArray(_names);\n      vm[ARGS].setup(vm.stack, names, [], 0, true);\n      args = vm[ARGS].capture();\n    }\n\n    let moduleName;\n    let compilable = definition.compilable;\n\n    if (compilable === null) {\n      compilable = manager.getDynamicLayout(state, vm.runtime.resolver);\n\n      if (compilable !== null) {\n        moduleName = compilable.moduleName;\n      } else {\n        moduleName = '__default__.hbs';\n      }\n    } else {\n      moduleName = compilable.moduleName;\n    } // For tearing down the debugRenderTree\n\n\n    vm.associateDestroyable(instance);\n\n    if (hasCustomDebugRenderTreeLifecycle(manager)) {\n      let nodes = manager.getDebugCustomRenderTree(instance.definition.state, instance.state, args, moduleName);\n      nodes.forEach(node => {\n        let {\n          bucket\n        } = node;\n        vm.env.debugRenderTree.create(bucket, node);\n        registerDestructor(instance, () => {\n          var _a;\n\n          (_a = vm.env.debugRenderTree) === null || _a === void 0 ? void 0 : _a.willDestroy(bucket);\n        });\n        vm.updateWith(new DebugRenderTreeUpdateOpcode(bucket));\n      });\n    } else {\n      let name = (_a = definition.resolvedName) !== null && _a !== void 0 ? _a : manager.getDebugName(definition.state);\n      vm.env.debugRenderTree.create(instance, {\n        type: 'component',\n        name,\n        args,\n        template: moduleName,\n        instance: valueForRef(selfRef)\n      });\n      vm.associateDestroyable(instance);\n      registerDestructor(instance, () => {\n        var _a;\n\n        (_a = vm.env.debugRenderTree) === null || _a === void 0 ? void 0 : _a.willDestroy(instance);\n      });\n      vm.updateWith(new DebugRenderTreeUpdateOpcode(instance));\n    }\n  }\n\n  vm.stack.push(selfRef);\n});\nAPPEND_OPCODES.add(91\n/* GetComponentTagName */\n, (vm, {\n  op1: _state\n}) => {\n  let {\n    definition,\n    state\n  } = vm.fetchValue(_state);\n  let {\n    manager\n  } = definition;\n  let tagName = manager.getTagName(state); // User provided value from JS, so we don't bother to encode\n\n  vm.stack.push(tagName);\n}); // Dynamic Invocation Only\n\nAPPEND_OPCODES.add(92\n/* GetComponentLayout */\n, (vm, {\n  op1: _state\n}) => {\n  let instance = vm.fetchValue(_state);\n  let {\n    manager,\n    definition\n  } = instance;\n  let {\n    stack\n  } = vm;\n  let {\n    compilable\n  } = definition;\n\n  if (compilable === null) {\n    let {\n      capabilities\n    } = instance;\n    compilable = manager.getDynamicLayout(instance.state, vm.runtime.resolver);\n\n    if (compilable === null) {\n      if (managerHasCapability(manager, capabilities, 1024\n      /* Wrapped */\n      )) {\n        compilable = unwrapTemplate(vm[CONSTANTS].defaultTemplate).asWrappedLayout();\n      } else {\n        compilable = unwrapTemplate(vm[CONSTANTS].defaultTemplate).asLayout();\n      }\n    }\n  }\n\n  let handle = compilable.compile(vm.context);\n  stack.push(compilable.symbolTable);\n  stack.push(handle);\n});\nAPPEND_OPCODES.add(75\n/* Main */\n, (vm, {\n  op1: register\n}) => {\n  let definition = vm.stack.pop();\n  let invocation = vm.stack.pop();\n  let {\n    manager,\n    capabilities\n  } = definition;\n  let state = {\n    definition,\n    manager,\n    capabilities,\n    state: null,\n    handle: invocation.handle,\n    table: invocation.symbolTable,\n    lookup: null\n  };\n  vm.loadValue(register, state);\n});\nAPPEND_OPCODES.add(95\n/* PopulateLayout */\n, (vm, {\n  op1: _state\n}) => {\n  let {\n    stack\n  } = vm; // In DEBUG handles could be ErrHandle objects\n\n  let handle = stack.pop();\n  let table = stack.pop();\n  let state = vm.fetchValue(_state);\n  state.handle = handle;\n  state.table = table;\n});\nAPPEND_OPCODES.add(38\n/* VirtualRootScope */\n, (vm, {\n  op1: _state\n}) => {\n  let {\n    table,\n    manager,\n    capabilities,\n    state\n  } = vm.fetchValue(_state);\n  let owner;\n\n  if (managerHasCapability(manager, capabilities, 4096\n  /* HasSubOwner */\n  )) {\n    owner = manager.getOwner(state);\n    vm.loadValue($t1, null); // Clear the temp register\n  } else {\n    // Check the temp register to see if an owner was resolved from currying\n    owner = vm.fetchValue($t1);\n\n    if (owner === null) {\n      // If an owner wasn't found, default to using the current owner. This\n      // will happen for normal dynamic component invocation,\n      // e.g. <SomeClassicEmberComponent/>\n      owner = vm.getOwner();\n    } else {\n      // Else the owner was found, so clear the temp register. This will happen\n      // if we are loading a curried component, e.g. <@someCurriedComponent/>\n      vm.loadValue($t1, null);\n    }\n  }\n\n  vm.pushRootScope(table.symbols.length + 1, owner);\n});\nAPPEND_OPCODES.add(94\n/* SetupForEval */\n, (vm, {\n  op1: _state\n}) => {\n  let state = vm.fetchValue(_state);\n\n  if (state.table.hasEval) {\n    let lookup = state.lookup = dict();\n    vm.scope().bindEvalScope(lookup);\n  }\n});\nAPPEND_OPCODES.add(17\n/* SetNamedVariables */\n, (vm, {\n  op1: _state\n}) => {\n  let state = vm.fetchValue(_state);\n  let scope = vm.scope();\n  let args = vm.stack.peek();\n  let callerNames = args.named.atNames;\n\n  for (let i = callerNames.length - 1; i >= 0; i--) {\n    let atName = callerNames[i];\n    let symbol$$1 = state.table.symbols.indexOf(callerNames[i]);\n    let value = args.named.get(atName, true);\n    if (symbol$$1 !== -1) scope.bindSymbol(symbol$$1 + 1, value);\n    if (state.lookup) state.lookup[atName] = value;\n  }\n});\n\nfunction bindBlock(symbolName, blockName, state, blocks, vm) {\n  let symbol$$1 = state.table.symbols.indexOf(symbolName);\n  let block = blocks.get(blockName);\n  if (symbol$$1 !== -1) vm.scope().bindBlock(symbol$$1 + 1, block);\n  if (state.lookup) state.lookup[symbolName] = block;\n}\n\nAPPEND_OPCODES.add(18\n/* SetBlocks */\n, (vm, {\n  op1: _state\n}) => {\n  let state = vm.fetchValue(_state);\n  let {\n    blocks\n  } = vm.stack.peek();\n\n  for (let i = 0; i < blocks.names.length; i++) {\n    bindBlock(blocks.symbolNames[i], blocks.names[i], state, blocks, vm);\n  }\n}); // Dynamic Invocation Only\n\nAPPEND_OPCODES.add(96\n/* InvokeComponentLayout */\n, (vm, {\n  op1: _state\n}) => {\n  let state = vm.fetchValue(_state);\n  vm.call(state.handle);\n});\nAPPEND_OPCODES.add(100\n/* DidRenderLayout */\n, (vm, {\n  op1: _state\n}) => {\n  let instance = vm.fetchValue(_state);\n  let {\n    manager,\n    state,\n    capabilities\n  } = instance;\n  let bounds = vm.elements().popBlock();\n\n  if (vm.env.debugRenderTree !== undefined) {\n    if (hasCustomDebugRenderTreeLifecycle(manager)) {\n      let nodes = manager.getDebugCustomRenderTree(instance.definition.state, state, EMPTY_ARGS);\n      nodes.reverse().forEach(node => {\n        let {\n          bucket\n        } = node;\n        vm.env.debugRenderTree.didRender(bucket, bounds);\n        vm.updateWith(new DebugRenderTreeDidRenderOpcode(bucket, bounds));\n      });\n    } else {\n      vm.env.debugRenderTree.didRender(instance, bounds);\n      vm.updateWith(new DebugRenderTreeDidRenderOpcode(instance, bounds));\n    }\n  }\n\n  if (managerHasCapability(manager, capabilities, 512\n  /* CreateInstance */\n  )) {\n    let mgr = manager;\n    mgr.didRenderLayout(state, bounds);\n    vm.env.didCreate(instance);\n    vm.updateWith(new DidUpdateLayoutOpcode(instance, bounds));\n  }\n});\nAPPEND_OPCODES.add(98\n/* CommitComponentTransaction */\n, vm => {\n  vm.commitCacheGroup();\n});\nclass UpdateComponentOpcode {\n  constructor(component, manager, dynamicScope) {\n    this.component = component;\n    this.manager = manager;\n    this.dynamicScope = dynamicScope;\n  }\n\n  evaluate(_vm) {\n    let {\n      component,\n      manager,\n      dynamicScope\n    } = this;\n    manager.update(component, dynamicScope);\n  }\n\n}\nclass DidUpdateLayoutOpcode {\n  constructor(component, bounds) {\n    this.component = component;\n    this.bounds = bounds;\n  }\n\n  evaluate(vm) {\n    let {\n      component,\n      bounds\n    } = this;\n    let {\n      manager,\n      state\n    } = component;\n    manager.didUpdateLayout(state, bounds);\n    vm.env.didUpdate(component);\n  }\n\n}\n\nclass DebugRenderTreeUpdateOpcode {\n  constructor(bucket) {\n    this.bucket = bucket;\n  }\n\n  evaluate(vm) {\n    var _a;\n\n    (_a = vm.env.debugRenderTree) === null || _a === void 0 ? void 0 : _a.update(this.bucket);\n  }\n\n}\n\nclass DebugRenderTreeDidRenderOpcode {\n  constructor(bucket, bounds) {\n    this.bucket = bucket;\n    this.bounds = bounds;\n  }\n\n  evaluate(vm) {\n    var _a;\n\n    (_a = vm.env.debugRenderTree) === null || _a === void 0 ? void 0 : _a.didRender(this.bucket, this.bounds);\n  }\n\n}\n\nclass DynamicTextContent {\n  constructor(node, reference, lastValue) {\n    this.node = node;\n    this.reference = reference;\n    this.lastValue = lastValue;\n  }\n\n  evaluate() {\n    let value = valueForRef(this.reference);\n    let {\n      lastValue\n    } = this;\n    if (value === lastValue) return;\n    let normalized;\n\n    if (isEmpty(value)) {\n      normalized = '';\n    } else if (isString(value)) {\n      normalized = value;\n    } else {\n      normalized = String(value);\n    }\n\n    if (normalized !== lastValue) {\n      let textNode = this.node;\n      textNode.nodeValue = this.lastValue = normalized;\n    }\n  }\n\n}\n\nfunction toContentType(value) {\n  if (shouldCoerce(value)) {\n    return 2\n    /* String */\n    ;\n  } else if (isCurriedType(value, 0\n  /* Component */\n  ) || hasInternalComponentManager(value)) {\n    return 0\n    /* Component */\n    ;\n  } else if (isCurriedType(value, 1\n  /* Helper */\n  ) || hasInternalHelperManager(value)) {\n    return 1\n    /* Helper */\n    ;\n  } else if (isSafeString(value)) {\n    return 4\n    /* SafeString */\n    ;\n  } else if (isFragment(value)) {\n    return 5\n    /* Fragment */\n    ;\n  } else if (isNode(value)) {\n    return 6\n    /* Node */\n    ;\n  } else {\n      return 2\n      /* String */\n      ;\n    }\n}\n\nfunction toDynamicContentType(value) {\n  if (!isObject(value)) {\n    return 2\n    /* String */\n    ;\n  }\n\n  if (isCurriedType(value, 0\n  /* Component */\n  ) || hasInternalComponentManager(value)) {\n    return 0\n    /* Component */\n    ;\n  } else {\n    if (DEBUG && !isCurriedType(value, 1\n    /* Helper */\n    ) && !hasInternalHelperManager(value)) {\n      throw new Error(`Attempted use a dynamic value as a component or helper, but that value did not have an associated component or helper manager. The value was: ${value}`);\n    }\n\n    return 1\n    /* Helper */\n    ;\n  }\n}\n\nAPPEND_OPCODES.add(76\n/* ContentType */\n, vm => {\n  let reference = vm.stack.peek();\n  vm.stack.push(toContentType(valueForRef(reference)));\n\n  if (!isConstRef(reference)) {\n    vm.updateWith(new AssertFilter(reference, toContentType));\n  }\n});\nAPPEND_OPCODES.add(106\n/* DynamicContentType */\n, vm => {\n  let reference = vm.stack.peek();\n  vm.stack.push(toDynamicContentType(valueForRef(reference)));\n\n  if (!isConstRef(reference)) {\n    vm.updateWith(new AssertFilter(reference, toDynamicContentType));\n  }\n});\nAPPEND_OPCODES.add(43\n/* AppendHTML */\n, vm => {\n  let reference = vm.stack.pop();\n  let rawValue = valueForRef(reference);\n  let value = isEmpty(rawValue) ? '' : String(rawValue);\n  vm.elements().appendDynamicHTML(value);\n});\nAPPEND_OPCODES.add(44\n/* AppendSafeHTML */\n, vm => {\n  let reference = vm.stack.pop();\n  let rawValue = valueForRef(reference).toHTML();\n  let value = isEmpty(rawValue) ? '' : rawValue;\n  vm.elements().appendDynamicHTML(value);\n});\nAPPEND_OPCODES.add(47\n/* AppendText */\n, vm => {\n  let reference = vm.stack.pop();\n  let rawValue = valueForRef(reference);\n  let value = isEmpty(rawValue) ? '' : String(rawValue);\n  let node = vm.elements().appendDynamicText(value);\n\n  if (!isConstRef(reference)) {\n    vm.updateWith(new DynamicTextContent(node, reference, value));\n  }\n});\nAPPEND_OPCODES.add(45\n/* AppendDocumentFragment */\n, vm => {\n  let reference = vm.stack.pop();\n  let value = valueForRef(reference);\n  vm.elements().appendDynamicFragment(value);\n});\nAPPEND_OPCODES.add(46\n/* AppendNode */\n, vm => {\n  let reference = vm.stack.pop();\n  let value = valueForRef(reference);\n  vm.elements().appendDynamicNode(value);\n});\n\nfunction debugCallback(context, get) {\n  // eslint-disable-next-line no-console\n  console.info('Use `context`, and `get(<path>)` to debug this template.'); // for example...\n  // eslint-disable-next-line no-unused-expressions\n\n  context === get('this'); // eslint-disable-next-line no-debugger\n\n  debugger;\n}\n\nlet callback = debugCallback; // For testing purposes\n\nfunction setDebuggerCallback(cb) {\n  callback = cb;\n}\nfunction resetDebuggerCallback() {\n  callback = debugCallback;\n}\n\nclass ScopeInspector {\n  constructor(scope, symbols, evalInfo) {\n    this.scope = scope;\n    this.locals = dict();\n\n    for (let i = 0; i < evalInfo.length; i++) {\n      let slot = evalInfo[i];\n      let name = symbols[slot - 1];\n      let ref = scope.getSymbol(slot);\n      this.locals[name] = ref;\n    }\n  }\n\n  get(path) {\n    let {\n      scope,\n      locals\n    } = this;\n    let parts = path.split('.');\n    let [head, ...tail] = path.split('.');\n    let evalScope = scope.getEvalScope();\n    let ref;\n\n    if (head === 'this') {\n      ref = scope.getSelf();\n    } else if (locals[head]) {\n      ref = locals[head];\n    } else if (head.indexOf('@') === 0 && evalScope[head]) {\n      ref = evalScope[head];\n    } else {\n      ref = this.scope.getSelf();\n      tail = parts;\n    }\n\n    return tail.reduce((r, part) => childRefFor(r, part), ref);\n  }\n\n}\n\nAPPEND_OPCODES.add(103\n/* Debugger */\n, (vm, {\n  op1: _symbols,\n  op2: _evalInfo\n}) => {\n  let symbols = vm[CONSTANTS].getArray(_symbols);\n  let evalInfo = vm[CONSTANTS].getArray(decodeHandle(_evalInfo));\n  let inspector = new ScopeInspector(vm.scope(), symbols, evalInfo);\n  callback(valueForRef(vm.getSelf()), path => valueForRef(inspector.get(path)));\n});\n\nAPPEND_OPCODES.add(101\n/* InvokePartial */\n, (vm, {\n  op1: _symbols,\n  op2: _evalInfo\n}) => {\n  let {\n    [CONSTANTS]: constants,\n    stack\n  } = vm;\n  let name = valueForRef(stack.pop());\n  let outerScope = vm.scope();\n  let owner = outerScope.owner;\n  let outerSymbols = constants.getArray(_symbols);\n  let evalInfo = constants.getArray(decodeHandle(_evalInfo));\n  let definition = vm.runtime.resolver.lookupPartial(name, owner);\n  let {\n    symbolTable,\n    handle: vmHandle\n  } = definition.getPartial(vm.context);\n  {\n    let partialSymbols = symbolTable.symbols;\n    let partialScope = vm.pushRootScope(partialSymbols.length, owner);\n    let evalScope = outerScope.getEvalScope();\n    partialScope.bindEvalScope(evalScope);\n    partialScope.bindSelf(outerScope.getSelf());\n    let locals = Object.create(outerScope.getPartialMap());\n\n    for (let i = 0; i < evalInfo.length; i++) {\n      let slot = evalInfo[i];\n\n      if (slot !== -1) {\n        let name = outerSymbols[slot - 1];\n        let ref = outerScope.getSymbol(slot);\n        locals[name] = ref;\n      }\n    }\n\n    if (evalScope) {\n      for (let i = 0; i < partialSymbols.length; i++) {\n        let name = partialSymbols[i];\n        let symbol$$1 = i + 1;\n        let value = evalScope[name];\n        if (value !== undefined) partialScope.bind(symbol$$1, value);\n      }\n    }\n\n    partialScope.bindPartialMap(locals);\n    vm.pushFrame(); // sp += 2\n\n    vm.call(unwrapHandle(vmHandle));\n  }\n});\n\nAPPEND_OPCODES.add(72\n/* EnterList */\n, (vm, {\n  op1: relativeStart,\n  op2: elseTarget\n}) => {\n  let stack = vm.stack;\n  let listRef = stack.pop();\n  let keyRef = stack.pop();\n  let keyValue = valueForRef(keyRef);\n  let key = keyValue === null ? '@identity' : String(keyValue);\n  let iteratorRef = createIteratorRef(listRef, key);\n  let iterator = valueForRef(iteratorRef);\n  vm.updateWith(new AssertFilter(iteratorRef, iterator => iterator.isEmpty()));\n\n  if (iterator.isEmpty() === true) {\n    // TODO: Fix this offset, should be accurate\n    vm.goto(elseTarget + 1);\n  } else {\n    vm.enterList(iteratorRef, relativeStart);\n    vm.stack.push(iterator);\n  }\n});\nAPPEND_OPCODES.add(73\n/* ExitList */\n, vm => {\n  vm.exitList();\n});\nAPPEND_OPCODES.add(74\n/* Iterate */\n, (vm, {\n  op1: breaks\n}) => {\n  let stack = vm.stack;\n  let iterator = stack.peek();\n  let item = iterator.next();\n\n  if (item !== null) {\n    vm.registerItem(vm.enterItem(item));\n  } else {\n    vm.goto(breaks);\n  }\n});\n\nconst CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: false,\n  updateHook: false,\n  createInstance: false,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nclass TemplateOnlyComponentManager {\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n\n  getSelf() {\n    return NULL_REFERENCE;\n  }\n\n  getDestroyable() {\n    return null;\n  }\n\n}\nconst TEMPLATE_ONLY_COMPONENT_MANAGER = new TemplateOnlyComponentManager(); // This is only exported for types, don't use this class directly\n\nclass TemplateOnlyComponentDefinition {\n  constructor(moduleName = '@glimmer/component/template-only', name = '(unknown template-only component)') {\n    this.moduleName = moduleName;\n    this.name = name;\n  }\n\n  toString() {\n    return this.moduleName;\n  }\n\n}\nsetInternalComponentManager(TEMPLATE_ONLY_COMPONENT_MANAGER, TemplateOnlyComponentDefinition.prototype);\n/**\n  This utility function is used to declare a given component has no backing class. When the rendering engine detects this it\n  is able to perform a number of optimizations. Templates that are associated with `templateOnly()` will be rendered _as is_\n  without adding a wrapping `<div>` (or any of the other element customization behaviors of [@ember/component](/ember/release/classes/Component)).\n  Specifically, this means that the template will be rendered as \"outer HTML\".\n\n  In general, this method will be used by build time tooling and would not be directly written in an application. However,\n  at times it may be useful to use directly to leverage the \"outer HTML\" semantics mentioned above. For example, if an addon would like\n  to use these semantics for its templates but cannot be certain it will only be consumed by applications that have enabled the\n  `template-only-glimmer-components` optional feature.\n\n  @example\n\n  ```js\n  import { templateOnlyComponent } from '@glimmer/runtime';\n\n  export default templateOnlyComponent();\n  ```\n\n  @public\n  @method templateOnly\n  @param {String} moduleName the module name that the template only component represents, this will be used for debugging purposes\n  @category EMBER_GLIMMER_SET_COMPONENT_TEMPLATE\n*/\n\nfunction templateOnlyComponent(moduleName, name) {\n  return new TemplateOnlyComponentDefinition(moduleName, name);\n}\n\n// http://www.w3.org/TR/html/syntax.html#html-integration-point\nconst SVG_INTEGRATION_POINTS = {\n  foreignObject: 1,\n  desc: 1,\n  title: 1\n}; // http://www.w3.org/TR/html/syntax.html#adjust-svg-attributes\n// TODO: Adjust SVG attributes\n// http://www.w3.org/TR/html/syntax.html#parsing-main-inforeign\n// TODO: Adjust SVG elements\n// http://www.w3.org/TR/html/syntax.html#parsing-main-inforeign\n\nconst BLACKLIST_TABLE = Object.create(null);\nclass DOMOperations {\n  constructor(document) {\n    this.document = document;\n    this.setupUselessElement();\n  } // split into separate method so that NodeDOMTreeConstruction\n  // can override it.\n\n\n  setupUselessElement() {\n    this.uselessElement = this.document.createElement('div');\n  }\n\n  createElement(tag, context) {\n    let isElementInSVGNamespace, isHTMLIntegrationPoint;\n\n    if (context) {\n      isElementInSVGNamespace = context.namespaceURI === \"http://www.w3.org/2000/svg\"\n      /* SVG */\n      || tag === 'svg';\n      isHTMLIntegrationPoint = !!SVG_INTEGRATION_POINTS[context.tagName];\n    } else {\n      isElementInSVGNamespace = tag === 'svg';\n      isHTMLIntegrationPoint = false;\n    }\n\n    if (isElementInSVGNamespace && !isHTMLIntegrationPoint) {\n      // FIXME: This does not properly handle <font> with color, face, or\n      // size attributes, which is also disallowed by the spec. We should fix\n      // this.\n      if (BLACKLIST_TABLE[tag]) {\n        throw new Error(`Cannot create a ${tag} inside an SVG context`);\n      }\n\n      return this.document.createElementNS(\"http://www.w3.org/2000/svg\"\n      /* SVG */\n      , tag);\n    } else {\n      return this.document.createElement(tag);\n    }\n  }\n\n  insertBefore(parent, node, reference) {\n    parent.insertBefore(node, reference);\n  }\n\n  insertHTMLBefore(parent, nextSibling, html) {\n    if (html === '') {\n      let comment = this.createComment('');\n      parent.insertBefore(comment, nextSibling);\n      return new ConcreteBounds(parent, comment, comment);\n    }\n\n    let prev = nextSibling ? nextSibling.previousSibling : parent.lastChild;\n    let last;\n\n    if (nextSibling === null) {\n      parent.insertAdjacentHTML(\"beforeend\"\n      /* beforeend */\n      , html);\n      last = parent.lastChild;\n    } else if (nextSibling instanceof HTMLElement) {\n      nextSibling.insertAdjacentHTML('beforebegin', html);\n      last = nextSibling.previousSibling;\n    } else {\n      // Non-element nodes do not support insertAdjacentHTML, so add an\n      // element and call it on that element. Then remove the element.\n      //\n      // This also protects Edge, IE and Firefox w/o the inspector open\n      // from merging adjacent text nodes. See ./compat/text-node-merging-fix.ts\n      let {\n        uselessElement\n      } = this;\n      parent.insertBefore(uselessElement, nextSibling);\n      uselessElement.insertAdjacentHTML(\"beforebegin\"\n      /* beforebegin */\n      , html);\n      last = uselessElement.previousSibling;\n      parent.removeChild(uselessElement);\n    }\n\n    let first = prev ? prev.nextSibling : parent.firstChild;\n    return new ConcreteBounds(parent, first, last);\n  }\n\n  createTextNode(text) {\n    return this.document.createTextNode(text);\n  }\n\n  createComment(data) {\n    return this.document.createComment(data);\n  }\n\n}\nfunction moveNodesBefore(source, target, nextSibling) {\n  let first = source.firstChild;\n  let last = first;\n  let current = first;\n\n  while (current) {\n    let next = current.nextSibling;\n    target.insertBefore(current, nextSibling);\n    last = current;\n    current = next;\n  }\n\n  return new ConcreteBounds(target, first, last);\n}\n\nconst SVG_NAMESPACE = \"http://www.w3.org/2000/svg\"\n/* SVG */\n; // Patch:    insertAdjacentHTML on SVG Fix\n// Browsers: Safari, IE, Edge, Firefox ~33-34\n// Reason:   insertAdjacentHTML does not exist on SVG elements in Safari. It is\n//           present but throws an exception on IE and Edge. Old versions of\n//           Firefox create nodes in the incorrect namespace.\n// Fix:      Since IE and Edge silently fail to create SVG nodes using\n//           innerHTML, and because Firefox may create nodes in the incorrect\n//           namespace using innerHTML on SVG elements, an HTML-string wrapping\n//           approach is used. A pre/post SVG tag is added to the string, then\n//           that whole string is added to a div. The created nodes are plucked\n//           out and applied to the target location on DOM.\n\nfunction applySVGInnerHTMLFix(document, DOMClass, svgNamespace) {\n  if (!document) return DOMClass;\n\n  if (!shouldApplyFix(document, svgNamespace)) {\n    return DOMClass;\n  }\n\n  let div = document.createElement('div');\n  return class DOMChangesWithSVGInnerHTMLFix extends DOMClass {\n    insertHTMLBefore(parent, nextSibling, html) {\n      if (html === '') {\n        return super.insertHTMLBefore(parent, nextSibling, html);\n      }\n\n      if (parent.namespaceURI !== svgNamespace) {\n        return super.insertHTMLBefore(parent, nextSibling, html);\n      }\n\n      return fixSVG(parent, div, html, nextSibling);\n    }\n\n  };\n}\n\nfunction fixSVG(parent, div, html, reference) {\n  let source; // This is important, because descendants of the <foreignObject> integration\n  // point are parsed in the HTML namespace\n\n  if (parent.tagName.toUpperCase() === 'FOREIGNOBJECT') {\n    // IE, Edge: also do not correctly support using `innerHTML` on SVG\n    // namespaced elements. So here a wrapper is used.\n    let wrappedHtml = '<svg><foreignObject>' + html + '</foreignObject></svg>';\n    clearElement(div);\n    div.insertAdjacentHTML(\"afterbegin\"\n    /* afterbegin */\n    , wrappedHtml);\n    source = div.firstChild.firstChild;\n  } else {\n    // IE, Edge: also do not correctly support using `innerHTML` on SVG\n    // namespaced elements. So here a wrapper is used.\n    let wrappedHtml = '<svg>' + html + '</svg>';\n    clearElement(div);\n    div.insertAdjacentHTML(\"afterbegin\"\n    /* afterbegin */\n    , wrappedHtml);\n    source = div.firstChild;\n  }\n\n  return moveNodesBefore(source, parent, reference);\n}\n\nfunction shouldApplyFix(document, svgNamespace) {\n  let svg = document.createElementNS(svgNamespace, 'svg');\n\n  try {\n    svg.insertAdjacentHTML(\"beforeend\"\n    /* beforeend */\n    , '<circle></circle>');\n  } catch (e) {// IE, Edge: Will throw, insertAdjacentHTML is unsupported on SVG\n    // Safari: Will throw, insertAdjacentHTML is not present on SVG\n  } finally {\n    // FF: Old versions will create a node in the wrong namespace\n    if (svg.childNodes.length === 1 && svg.firstChild.namespaceURI === SVG_NAMESPACE) {\n      // The test worked as expected, no fix required\n      return false;\n    }\n\n    return true;\n  }\n}\n\n// Patch:    Adjacent text node merging fix\n// Browsers: IE, Edge, Firefox w/o inspector open\n// Reason:   These browsers will merge adjacent text nodes. For example given\n//           <div>Hello</div> with div.insertAdjacentHTML(' world') browsers\n//           with proper behavior will populate div.childNodes with two items.\n//           These browsers will populate it with one merged node instead.\n// Fix:      Add these nodes to a wrapper element, then iterate the childNodes\n//           of that wrapper and move the nodes to their target location. Note\n//           that potential SVG bugs will have been handled before this fix.\n//           Note that this fix must only apply to the previous text node, as\n//           the base implementation of `insertHTMLBefore` already handles\n//           following text nodes correctly.\nfunction applyTextNodeMergingFix(document, DOMClass) {\n  if (!document) return DOMClass;\n\n  if (!shouldApplyFix$1(document)) {\n    return DOMClass;\n  }\n\n  return class DOMChangesWithTextNodeMergingFix extends DOMClass {\n    constructor(document) {\n      super(document);\n      this.uselessComment = document.createComment('');\n    }\n\n    insertHTMLBefore(parent, nextSibling, html) {\n      if (html === '') {\n        return super.insertHTMLBefore(parent, nextSibling, html);\n      }\n\n      let didSetUselessComment = false;\n      let nextPrevious = nextSibling ? nextSibling.previousSibling : parent.lastChild;\n\n      if (nextPrevious && nextPrevious instanceof Text) {\n        didSetUselessComment = true;\n        parent.insertBefore(this.uselessComment, nextSibling);\n      }\n\n      let bounds = super.insertHTMLBefore(parent, nextSibling, html);\n\n      if (didSetUselessComment) {\n        parent.removeChild(this.uselessComment);\n      }\n\n      return bounds;\n    }\n\n  };\n}\n\nfunction shouldApplyFix$1(document) {\n  let mergingTextDiv = document.createElement('div');\n  mergingTextDiv.appendChild(document.createTextNode('first'));\n  mergingTextDiv.insertAdjacentHTML(\"beforeend\"\n  /* beforeend */\n  , 'second');\n\n  if (mergingTextDiv.childNodes.length === 2) {\n    // It worked as expected, no fix required\n    return false;\n  }\n\n  return true;\n}\n\n['b', 'big', 'blockquote', 'body', 'br', 'center', 'code', 'dd', 'div', 'dl', 'dt', 'em', 'embed', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'i', 'img', 'li', 'listing', 'main', 'meta', 'nobr', 'ol', 'p', 'pre', 'ruby', 's', 'small', 'span', 'strong', 'strike', 'sub', 'sup', 'table', 'tt', 'u', 'ul', 'var'].forEach(tag => BLACKLIST_TABLE[tag] = 1);\nconst WHITESPACE = /[\\t-\\r \\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]/;\nlet doc = typeof document === 'undefined' ? null : document;\nfunction isWhitespace(string) {\n  return WHITESPACE.test(string);\n}\nvar DOM;\n\n(function (DOM) {\n  class TreeConstruction extends DOMOperations {\n    createElementNS(namespace, tag) {\n      return this.document.createElementNS(namespace, tag);\n    }\n\n    setAttribute(element, name, value, namespace = null) {\n      if (namespace) {\n        element.setAttributeNS(namespace, name, value);\n      } else {\n        element.setAttribute(name, value);\n      }\n    }\n\n  }\n\n  DOM.TreeConstruction = TreeConstruction;\n  let appliedTreeConstruction = TreeConstruction;\n  appliedTreeConstruction = applyTextNodeMergingFix(doc, appliedTreeConstruction);\n  appliedTreeConstruction = applySVGInnerHTMLFix(doc, appliedTreeConstruction, \"http://www.w3.org/2000/svg\"\n  /* SVG */\n  );\n  DOM.DOMTreeConstruction = appliedTreeConstruction;\n})(DOM || (DOM = {}));\n\nclass DOMChangesImpl extends DOMOperations {\n  constructor(document) {\n    super(document);\n    this.document = document;\n    this.namespace = null;\n  }\n\n  setAttribute(element, name, value) {\n    element.setAttribute(name, value);\n  }\n\n  removeAttribute(element, name) {\n    element.removeAttribute(name);\n  }\n\n  insertAfter(element, node, reference) {\n    this.insertBefore(element, node, reference.nextSibling);\n  }\n\n}\nlet helper = DOMChangesImpl;\nhelper = applyTextNodeMergingFix(doc, helper);\nhelper = applySVGInnerHTMLFix(doc, helper, \"http://www.w3.org/2000/svg\"\n/* SVG */\n);\nvar helper$1 = helper;\nconst DOMTreeConstruction = DOM.DOMTreeConstruction;\n\nlet GUID = 0;\nclass Ref {\n  constructor(value) {\n    this.id = GUID++;\n    this.value = value;\n  }\n\n  get() {\n    return this.value;\n  }\n\n  release() {\n    if (DEBUG && this.value === null) {\n      throw new Error('BUG: double release?');\n    }\n\n    this.value = null;\n  }\n\n  toString() {\n    let label = `Ref ${this.id}`;\n\n    if (this.value === null) {\n      return `${label} (released)`;\n    } else {\n      try {\n        return `${label}: ${this.value}`;\n      } catch (_a) {\n        return label;\n      }\n    }\n  }\n\n}\nclass DebugRenderTreeImpl {\n  constructor() {\n    this.stack = new Stack();\n    this.refs = new WeakMap();\n    this.roots = new Set();\n    this.nodes = new WeakMap();\n  }\n\n  begin() {\n    this.reset();\n  }\n\n  create(state, node) {\n    let internalNode = assign({}, node, {\n      bounds: null,\n      refs: new Set()\n    });\n    this.nodes.set(state, internalNode);\n    this.appendChild(internalNode, state);\n    this.enter(state);\n  }\n\n  update(state) {\n    this.enter(state);\n  }\n\n  didRender(state, bounds) {\n    if (DEBUG && this.stack.current !== state) {\n      throw new Error(`BUG: expecting ${this.stack.current}, got ${state}`);\n    }\n\n    this.nodeFor(state).bounds = bounds;\n    this.exit();\n  }\n\n  willDestroy(state) {\n    this.refs.get(state).release();\n  }\n\n  commit() {\n    this.reset();\n  }\n\n  capture() {\n    return this.captureRefs(this.roots);\n  }\n\n  reset() {\n    if (this.stack.size !== 0) {\n      // We probably encountered an error during the rendering loop. This will\n      // likely trigger undefined behavior and memory leaks as the error left\n      // things in an inconsistent state. It is recommended that the user\n      // refresh the page.\n      // TODO: We could warn here? But this happens all the time in our tests?\n      // Clean up the root reference to prevent errors from happening if we\n      // attempt to capture the render tree (Ember Inspector may do this)\n      let root = this.stack.toArray()[0];\n      let ref = this.refs.get(root);\n\n      if (ref !== undefined) {\n        this.roots.delete(ref);\n      }\n\n      while (!this.stack.isEmpty()) {\n        this.stack.pop();\n      }\n    }\n  }\n\n  enter(state) {\n    this.stack.push(state);\n  }\n\n  exit() {\n    if (DEBUG && this.stack.size === 0) {\n      throw new Error('BUG: unbalanced pop');\n    }\n\n    this.stack.pop();\n  }\n\n  nodeFor(state) {\n    return this.nodes.get(state);\n  }\n\n  appendChild(node, state) {\n    if (DEBUG && this.refs.has(state)) {\n      throw new Error('BUG: child already appended');\n    }\n\n    let parent = this.stack.current;\n    let ref = new Ref(state);\n    this.refs.set(state, ref);\n\n    if (parent) {\n      let parentNode = this.nodeFor(parent);\n      parentNode.refs.add(ref);\n      node.parent = parentNode;\n    } else {\n      this.roots.add(ref);\n    }\n  }\n\n  captureRefs(refs) {\n    let captured = [];\n    refs.forEach(ref => {\n      let state = ref.get();\n\n      if (state) {\n        captured.push(this.captureNode(`render-node:${ref.id}`, state));\n      } else {\n        refs.delete(ref);\n      }\n    });\n    return captured;\n  }\n\n  captureNode(id, state) {\n    let node = this.nodeFor(state);\n    let {\n      type,\n      name,\n      args,\n      instance,\n      refs\n    } = node;\n    let template = this.captureTemplate(node);\n    let bounds = this.captureBounds(node);\n    let children = this.captureRefs(refs);\n    return {\n      id,\n      type,\n      name,\n      args: reifyArgs(args),\n      instance,\n      template,\n      bounds,\n      children\n    };\n  }\n\n  captureTemplate({\n    template\n  }) {\n    return template || null;\n  }\n\n  captureBounds(node) {\n    let bounds = node.bounds;\n    let parentElement = bounds.parentElement();\n    let firstNode = bounds.firstNode();\n    let lastNode = bounds.lastNode();\n    return {\n      parentElement,\n      firstNode,\n      lastNode\n    };\n  }\n\n}\n\nvar _a$1;\nconst TRANSACTION = symbol('TRANSACTION');\n\nclass TransactionImpl {\n  constructor() {\n    this.scheduledInstallModifiers = [];\n    this.scheduledUpdateModifiers = [];\n    this.createdComponents = [];\n    this.updatedComponents = [];\n  }\n\n  didCreate(component) {\n    this.createdComponents.push(component);\n  }\n\n  didUpdate(component) {\n    this.updatedComponents.push(component);\n  }\n\n  scheduleInstallModifier(modifier) {\n    this.scheduledInstallModifiers.push(modifier);\n  }\n\n  scheduleUpdateModifier(modifier) {\n    this.scheduledUpdateModifiers.push(modifier);\n  }\n\n  commit() {\n    let {\n      createdComponents,\n      updatedComponents\n    } = this;\n\n    for (let i = 0; i < createdComponents.length; i++) {\n      let {\n        manager,\n        state\n      } = createdComponents[i];\n      manager.didCreate(state);\n    }\n\n    for (let i = 0; i < updatedComponents.length; i++) {\n      let {\n        manager,\n        state\n      } = updatedComponents[i];\n      manager.didUpdate(state);\n    }\n\n    let {\n      scheduledInstallModifiers,\n      scheduledUpdateModifiers\n    } = this; // Prevent a transpilation issue we guard against in Ember, the\n    // throw-if-closure-required issue\n\n    let manager, state;\n\n    for (let i = 0; i < scheduledInstallModifiers.length; i++) {\n      let modifier = scheduledInstallModifiers[i];\n      manager = modifier.manager;\n      state = modifier.state;\n      let modifierTag = manager.getTag(state);\n\n      if (modifierTag !== null) {\n        let tag = track( // eslint-disable-next-line no-loop-func\n        () => manager.install(state), DEBUG && `- While rendering:\\n  (instance of a \\`${modifier.definition.resolvedName || manager.getDebugName(modifier.definition.state)}\\` modifier)`);\n        updateTag(modifierTag, tag);\n      } else {\n        manager.install(state);\n      }\n    }\n\n    for (let i = 0; i < scheduledUpdateModifiers.length; i++) {\n      let modifier = scheduledUpdateModifiers[i];\n      manager = modifier.manager;\n      state = modifier.state;\n      let modifierTag = manager.getTag(state);\n\n      if (modifierTag !== null) {\n        let tag = track( // eslint-disable-next-line no-loop-func\n        () => manager.update(state), DEBUG && `- While rendering:\\n  (instance of a \\`${modifier.definition.resolvedName || manager.getDebugName(modifier.definition.state)}\\` modifier)`);\n        updateTag(modifierTag, tag);\n      } else {\n        manager.update(state);\n      }\n    }\n  }\n\n}\n\nclass EnvironmentImpl {\n  constructor(options, delegate) {\n    this.delegate = delegate;\n    this[_a$1] = null; // Delegate methods and values\n\n    this.isInteractive = this.delegate.isInteractive;\n    this.debugRenderTree = this.delegate.enableDebugTooling ? new DebugRenderTreeImpl() : undefined;\n\n    if (options.appendOperations) {\n      this.appendOperations = options.appendOperations;\n      this.updateOperations = options.updateOperations;\n    } else if (options.document) {\n      this.appendOperations = new DOMTreeConstruction(options.document);\n      this.updateOperations = new DOMChangesImpl(options.document);\n    } else if (DEBUG) {\n      throw new Error('you must pass document or appendOperations to a new runtime');\n    }\n  }\n\n  getAppendOperations() {\n    return this.appendOperations;\n  }\n\n  getDOM() {\n    return this.updateOperations;\n  }\n\n  begin() {\n    var _b;\n    (_b = this.debugRenderTree) === null || _b === void 0 ? void 0 : _b.begin();\n    this[TRANSACTION] = new TransactionImpl();\n  }\n\n  get transaction() {\n    return this[TRANSACTION];\n  }\n\n  didCreate(component) {\n    this.transaction.didCreate(component);\n  }\n\n  didUpdate(component) {\n    this.transaction.didUpdate(component);\n  }\n\n  scheduleInstallModifier(modifier) {\n    if (this.isInteractive) {\n      this.transaction.scheduleInstallModifier(modifier);\n    }\n  }\n\n  scheduleUpdateModifier(modifier) {\n    if (this.isInteractive) {\n      this.transaction.scheduleUpdateModifier(modifier);\n    }\n  }\n\n  commit() {\n    var _b;\n\n    let transaction = this.transaction;\n    this[TRANSACTION] = null;\n    transaction.commit();\n    (_b = this.debugRenderTree) === null || _b === void 0 ? void 0 : _b.commit();\n    this.delegate.onTransactionCommit();\n  }\n\n}\n_a$1 = TRANSACTION;\nfunction runtimeContext(options, delegate, artifacts, resolver) {\n  return {\n    env: new EnvironmentImpl(options, delegate),\n    program: new RuntimeProgramImpl(artifacts.constants, artifacts.heap),\n    resolver: resolver\n  };\n}\nfunction inTransaction(env, cb) {\n  if (!env[TRANSACTION]) {\n    env.begin();\n\n    try {\n      cb();\n    } finally {\n      env.commit();\n    }\n  } else {\n    cb();\n  }\n}\n\nfunction initializeRegistersWithSP(sp) {\n  return [0, -1, sp, 0];\n}\nclass LowLevelVM {\n  constructor(stack, heap, program, externs, registers) {\n    this.stack = stack;\n    this.heap = heap;\n    this.program = program;\n    this.externs = externs;\n    this.registers = registers;\n    this.currentOpSize = 0;\n  }\n\n  fetchRegister(register) {\n    return this.registers[register];\n  }\n\n  loadRegister(register, value) {\n    this.registers[register] = value;\n  }\n\n  setPc(pc) {\n    this.registers[$pc] = pc;\n  } // Start a new frame and save $ra and $fp on the stack\n\n\n  pushFrame() {\n    this.stack.push(this.registers[$ra]);\n    this.stack.push(this.registers[$fp]);\n    this.registers[$fp] = this.registers[$sp] - 1;\n  } // Restore $ra, $sp and $fp\n\n\n  popFrame() {\n    this.registers[$sp] = this.registers[$fp] - 1;\n    this.registers[$ra] = this.stack.get(0);\n    this.registers[$fp] = this.stack.get(1);\n  }\n\n  pushSmallFrame() {\n    this.stack.push(this.registers[$ra]);\n  }\n\n  popSmallFrame() {\n    this.registers[$ra] = this.stack.pop();\n  } // Jump to an address in `program`\n\n\n  goto(offset) {\n    this.setPc(this.target(offset));\n  }\n\n  target(offset) {\n    return this.registers[$pc] + offset - this.currentOpSize;\n  } // Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\n\n\n  call(handle) {\n    this.registers[$ra] = this.registers[$pc];\n    this.setPc(this.heap.getaddr(handle));\n  } // Put a specific `program` address in $ra\n\n\n  returnTo(offset) {\n    this.registers[$ra] = this.target(offset);\n  } // Return to the `program` address stored in $ra\n\n\n  return() {\n    this.setPc(this.registers[$ra]);\n  }\n\n  nextStatement() {\n    let {\n      registers,\n      program\n    } = this;\n    let pc = registers[$pc];\n\n    if (pc === -1) {\n      return null;\n    } // We have to save off the current operations size so that\n    // when we do a jump we can calculate the correct offset\n    // to where we are going. We can't simply ask for the size\n    // in a jump because we have have already incremented the\n    // program counter to the next instruction prior to executing.\n\n\n    let opcode = program.opcode(pc);\n    let operationSize = this.currentOpSize = opcode.size;\n    this.registers[$pc] += operationSize;\n    return opcode;\n  }\n\n  evaluateOuter(opcode, vm) {\n    {\n      this.evaluateInner(opcode, vm);\n    }\n  }\n\n  evaluateInner(opcode, vm) {\n    if (opcode.isMachine) {\n      this.evaluateMachine(opcode);\n    } else {\n      this.evaluateSyscall(opcode, vm);\n    }\n  }\n\n  evaluateMachine(opcode) {\n    switch (opcode.type) {\n      case 0\n      /* PushFrame */\n      :\n        return this.pushFrame();\n\n      case 1\n      /* PopFrame */\n      :\n        return this.popFrame();\n\n      case 3\n      /* InvokeStatic */\n      :\n        return this.call(opcode.op1);\n\n      case 2\n      /* InvokeVirtual */\n      :\n        return this.call(this.stack.pop());\n\n      case 4\n      /* Jump */\n      :\n        return this.goto(opcode.op1);\n\n      case 5\n      /* Return */\n      :\n        return this.return();\n\n      case 6\n      /* ReturnTo */\n      :\n        return this.returnTo(opcode.op1);\n    }\n  }\n\n  evaluateSyscall(opcode, vm) {\n    APPEND_OPCODES.evaluate(vm, opcode, opcode.type);\n  }\n\n}\n\nclass UpdatingVMImpl {\n  constructor(env, {\n    alwaysRevalidate = false\n  }) {\n    this.frameStack = new Stack();\n    this.env = env;\n    this.dom = env.getDOM();\n    this.alwaysRevalidate = alwaysRevalidate;\n  }\n\n  execute(opcodes, handler) {\n    if (DEBUG) {\n      let hasErrored = true;\n\n      try {\n        runInTrackingTransaction(() => this._execute(opcodes, handler), '- While rendering:'); // using a boolean here to avoid breaking ergonomics of \"pause on uncaught exceptions\"\n        // which would happen with a `catch` + `throw`\n\n        hasErrored = false;\n      } finally {\n        if (hasErrored) {\n          // eslint-disable-next-line no-console\n          console.error(`\\n\\nError occurred:\\n\\n${resetTracking()}\\n\\n`);\n        }\n      }\n    } else {\n      this._execute(opcodes, handler);\n    }\n  }\n\n  _execute(opcodes, handler) {\n    let {\n      frameStack\n    } = this;\n    this.try(opcodes, handler);\n\n    while (true) {\n      if (frameStack.isEmpty()) break;\n      let opcode = this.frame.nextStatement();\n\n      if (opcode === undefined) {\n        frameStack.pop();\n        continue;\n      }\n\n      opcode.evaluate(this);\n    }\n  }\n\n  get frame() {\n    return this.frameStack.current;\n  }\n\n  goto(index) {\n    this.frame.goto(index);\n  }\n\n  try(ops, handler) {\n    this.frameStack.push(new UpdatingVMFrame(ops, handler));\n  }\n\n  throw() {\n    this.frame.handleException();\n    this.frameStack.pop();\n  }\n\n}\nclass ResumableVMStateImpl {\n  constructor(state, resumeCallback) {\n    this.state = state;\n    this.resumeCallback = resumeCallback;\n  }\n\n  resume(runtime, builder) {\n    return this.resumeCallback(runtime, this.state, builder);\n  }\n\n}\nclass BlockOpcode {\n  constructor(state, runtime, bounds, children) {\n    this.state = state;\n    this.runtime = runtime;\n    this.children = children;\n    this.bounds = bounds;\n  }\n\n  parentElement() {\n    return this.bounds.parentElement();\n  }\n\n  firstNode() {\n    return this.bounds.firstNode();\n  }\n\n  lastNode() {\n    return this.bounds.lastNode();\n  }\n\n  evaluate(vm) {\n    vm.try(this.children, null);\n  }\n\n}\nclass TryOpcode extends BlockOpcode {\n  constructor() {\n    super(...arguments);\n    this.type = 'try';\n  }\n\n  evaluate(vm) {\n    vm.try(this.children, this);\n  }\n\n  handleException() {\n    let {\n      state,\n      bounds,\n      runtime\n    } = this;\n    destroyChildren(this);\n    let elementStack = NewElementBuilder.resume(runtime.env, bounds);\n    let vm = state.resume(runtime, elementStack);\n    let updating = [];\n    let children = this.children = [];\n    let result = vm.execute(vm => {\n      vm.pushUpdating(updating);\n      vm.updateWith(this);\n      vm.pushUpdating(children);\n    });\n    associateDestroyableChild(this, result.drop);\n  }\n\n}\nclass ListItemOpcode extends TryOpcode {\n  constructor(state, runtime, bounds, key, memo, value) {\n    super(state, runtime, bounds, []);\n    this.key = key;\n    this.memo = memo;\n    this.value = value;\n    this.retained = false;\n    this.index = -1;\n  }\n\n  updateReferences(item) {\n    this.retained = true;\n    updateRef(this.value, item.value);\n    updateRef(this.memo, item.memo);\n  }\n\n  shouldRemove() {\n    return !this.retained;\n  }\n\n  reset() {\n    this.retained = false;\n  }\n\n}\nclass ListBlockOpcode extends BlockOpcode {\n  constructor(state, runtime, bounds, children, iterableRef) {\n    super(state, runtime, bounds, children);\n    this.iterableRef = iterableRef;\n    this.type = 'list-block';\n    this.opcodeMap = new Map();\n    this.marker = null;\n    this.lastIterator = valueForRef(iterableRef);\n  }\n\n  initializeChild(opcode) {\n    opcode.index = this.children.length - 1;\n    this.opcodeMap.set(opcode.key, opcode);\n  }\n\n  evaluate(vm) {\n    let iterator = valueForRef(this.iterableRef);\n\n    if (this.lastIterator !== iterator) {\n      let {\n        bounds\n      } = this;\n      let {\n        dom\n      } = vm;\n      let marker = this.marker = dom.createComment('');\n      dom.insertAfter(bounds.parentElement(), marker, bounds.lastNode());\n      this.sync(iterator);\n      this.parentElement().removeChild(marker);\n      this.marker = null;\n      this.lastIterator = iterator;\n    } // Run now-updated updating opcodes\n\n\n    super.evaluate(vm);\n  }\n\n  sync(iterator) {\n    let {\n      opcodeMap: itemMap,\n      children\n    } = this;\n    let currentOpcodeIndex = 0;\n    let seenIndex = 0;\n    this.children = this.bounds.boundList = [];\n\n    while (true) {\n      let item = iterator.next();\n      if (item === null) break;\n      let opcode = children[currentOpcodeIndex];\n      let {\n        key\n      } = item; // Items that have already been found and moved will already be retained,\n      // we can continue until we find the next unretained item\n\n      while (opcode !== undefined && opcode.retained === true) {\n        opcode = children[++currentOpcodeIndex];\n      }\n\n      if (opcode !== undefined && opcode.key === key) {\n        this.retainItem(opcode, item);\n        currentOpcodeIndex++;\n      } else if (itemMap.has(key)) {\n        let itemOpcode = itemMap.get(key); // The item opcode was seen already, so we should move it.\n\n        if (itemOpcode.index < seenIndex) {\n          this.moveItem(itemOpcode, item, opcode);\n        } else {\n          // Update the seen index, we are going to be moving this item around\n          // so any other items that come before it will likely need to move as\n          // well.\n          seenIndex = itemOpcode.index;\n          let seenUnretained = false; // iterate through all of the opcodes between the current position and\n          // the position of the item's opcode, and determine if they are all\n          // retained.\n\n          for (let i = currentOpcodeIndex + 1; i < seenIndex; i++) {\n            if (children[i].retained === false) {\n              seenUnretained = true;\n              break;\n            }\n          } // If we have seen only retained opcodes between this and the matching\n          // opcode, it means that all the opcodes in between have been moved\n          // already, and we can safely retain this item's opcode.\n\n\n          if (seenUnretained === false) {\n            this.retainItem(itemOpcode, item);\n            currentOpcodeIndex = seenIndex + 1;\n          } else {\n            this.moveItem(itemOpcode, item, opcode);\n            currentOpcodeIndex++;\n          }\n        }\n      } else {\n        this.insertItem(item, opcode);\n      }\n    }\n\n    for (let i = 0; i < children.length; i++) {\n      let opcode = children[i];\n\n      if (opcode.retained === false) {\n        this.deleteItem(opcode);\n      } else {\n        opcode.reset();\n      }\n    }\n  }\n\n  retainItem(opcode, item) {\n\n    let {\n      children\n    } = this;\n    updateRef(opcode.memo, item.memo);\n    updateRef(opcode.value, item.value);\n    opcode.retained = true;\n    opcode.index = children.length;\n    children.push(opcode);\n  }\n\n  insertItem(item, before) {\n\n    let {\n      opcodeMap,\n      bounds,\n      state,\n      runtime,\n      children\n    } = this;\n    let {\n      key\n    } = item;\n    let nextSibling = before === undefined ? this.marker : before.firstNode();\n    let elementStack = NewElementBuilder.forInitialRender(runtime.env, {\n      element: bounds.parentElement(),\n      nextSibling\n    });\n    let vm = state.resume(runtime, elementStack);\n    vm.execute(vm => {\n      vm.pushUpdating();\n      let opcode = vm.enterItem(item);\n      opcode.index = children.length;\n      children.push(opcode);\n      opcodeMap.set(key, opcode);\n      associateDestroyableChild(this, opcode);\n    });\n  }\n\n  moveItem(opcode, item, before) {\n    let {\n      children\n    } = this;\n    updateRef(opcode.memo, item.memo);\n    updateRef(opcode.value, item.value);\n    opcode.retained = true;\n    let currentSibling, nextSibling;\n\n    if (before === undefined) {\n      move(opcode, this.marker);\n    } else {\n      currentSibling = opcode.lastNode().nextSibling;\n      nextSibling = before.firstNode(); // Items are moved throughout the algorithm, so there are cases where the\n      // the items already happen to be siblings (e.g. an item in between was\n      // moved before this move happened). Check to see if they are siblings\n      // first before doing the move.\n\n      if (currentSibling !== nextSibling) {\n        move(opcode, nextSibling);\n      }\n    }\n\n    opcode.index = children.length;\n    children.push(opcode);\n  }\n\n  deleteItem(opcode) {\n\n    destroy(opcode);\n    clear(opcode);\n    this.opcodeMap.delete(opcode.key);\n  }\n\n}\n\nclass UpdatingVMFrame {\n  constructor(ops, exceptionHandler) {\n    this.ops = ops;\n    this.exceptionHandler = exceptionHandler;\n    this.current = 0;\n  }\n\n  goto(index) {\n    this.current = index;\n  }\n\n  nextStatement() {\n    return this.ops[this.current++];\n  }\n\n  handleException() {\n    if (this.exceptionHandler) {\n      this.exceptionHandler.handleException();\n    }\n  }\n\n}\n\nclass RenderResultImpl {\n  constructor(env, updating, bounds, drop) {\n    this.env = env;\n    this.updating = updating;\n    this.bounds = bounds;\n    this.drop = drop;\n    associateDestroyableChild(this, drop);\n    registerDestructor(this, () => clear(this.bounds));\n  }\n\n  rerender({\n    alwaysRevalidate = false\n  } = {\n    alwaysRevalidate: false\n  }) {\n    let {\n      env,\n      updating\n    } = this;\n    let vm = new UpdatingVMImpl(env, {\n      alwaysRevalidate\n    });\n    vm.execute(updating, this);\n  }\n\n  parentElement() {\n    return this.bounds.parentElement();\n  }\n\n  firstNode() {\n    return this.bounds.firstNode();\n  }\n\n  lastNode() {\n    return this.bounds.lastNode();\n  }\n\n  handleException() {\n    throw 'this should never happen';\n  }\n\n}\n\nclass EvaluationStackImpl {\n  // fp -> sp\n  constructor(stack = [], registers) {\n    this.stack = stack;\n    this[REGISTERS] = registers;\n  }\n\n  static restore(snapshot) {\n    return new this(snapshot.slice(), initializeRegistersWithSP(snapshot.length - 1));\n  }\n\n  push(value) {\n    this.stack[++this[REGISTERS][$sp]] = value;\n  }\n\n  dup(position = this[REGISTERS][$sp]) {\n    this.stack[++this[REGISTERS][$sp]] = this.stack[position];\n  }\n\n  copy(from, to) {\n    this.stack[to] = this.stack[from];\n  }\n\n  pop(n = 1) {\n    let top = this.stack[this[REGISTERS][$sp]];\n    this[REGISTERS][$sp] -= n;\n    return top;\n  }\n\n  peek(offset = 0) {\n    return this.stack[this[REGISTERS][$sp] - offset];\n  }\n\n  get(offset, base = this[REGISTERS][$fp]) {\n    return this.stack[base + offset];\n  }\n\n  set(value, offset, base = this[REGISTERS][$fp]) {\n    this.stack[base + offset] = value;\n  }\n\n  slice(start, end) {\n    return this.stack.slice(start, end);\n  }\n\n  capture(items) {\n    let end = this[REGISTERS][$sp] + 1;\n    let start = end - items;\n    return this.stack.slice(start, end);\n  }\n\n  reset() {\n    this.stack.length = 0;\n  }\n\n  toArray() {\n    return this.stack.slice(this[REGISTERS][$fp], this[REGISTERS][$sp] + 1);\n  }\n\n}\n\nvar _a$2, _b;\n\nclass Stacks {\n  constructor() {\n    this.scope = new Stack();\n    this.dynamicScope = new Stack();\n    this.updating = new Stack();\n    this.cache = new Stack();\n    this.list = new Stack();\n  }\n\n}\n\nclass VM {\n  /**\n   * End of migrated.\n   */\n  constructor(runtime, {\n    pc,\n    scope,\n    dynamicScope,\n    stack\n  }, elementStack, context) {\n    this.runtime = runtime;\n    this.elementStack = elementStack;\n    this.context = context;\n    this[_a$2] = new Stacks();\n    this[_b] = new Stack();\n    this.s0 = null;\n    this.s1 = null;\n    this.t0 = null;\n    this.t1 = null;\n    this.v0 = null;\n    this.resume = initVM(this.context);\n\n    if (DEBUG) {\n      assertGlobalContextWasSet();\n    }\n\n    let evalStack = EvaluationStackImpl.restore(stack);\n    evalStack[REGISTERS][$pc] = pc;\n    evalStack[REGISTERS][$sp] = stack.length - 1;\n    evalStack[REGISTERS][$fp] = -1;\n    this[HEAP] = this.program.heap;\n    this[CONSTANTS] = this.program.constants;\n    this.elementStack = elementStack;\n    this[STACKS].scope.push(scope);\n    this[STACKS].dynamicScope.push(dynamicScope);\n    this[ARGS] = new VMArgumentsImpl();\n    this[INNER_VM] = new LowLevelVM(evalStack, this[HEAP], runtime.program, {\n      debugBefore: opcode => {\n        return APPEND_OPCODES.debugBefore(this, opcode);\n      },\n      debugAfter: state => {\n        APPEND_OPCODES.debugAfter(this, state);\n      }\n    }, evalStack[REGISTERS]);\n    this.destructor = {};\n    this[DESTROYABLE_STACK].push(this.destructor);\n  }\n\n  get stack() {\n    return this[INNER_VM].stack;\n  }\n  /* Registers */\n\n\n  get pc() {\n    return this[INNER_VM].fetchRegister($pc);\n  } // Fetch a value from a register onto the stack\n\n\n  fetch(register) {\n    let value = this.fetchValue(register);\n    this.stack.push(value);\n  } // Load a value from the stack into a register\n\n\n  load(register) {\n    let value = this.stack.pop();\n    this.loadValue(register, value);\n  }\n\n  fetchValue(register) {\n    if (isLowLevelRegister(register)) {\n      return this[INNER_VM].fetchRegister(register);\n    }\n\n    switch (register) {\n      case $s0:\n        return this.s0;\n\n      case $s1:\n        return this.s1;\n\n      case $t0:\n        return this.t0;\n\n      case $t1:\n        return this.t1;\n\n      case $v0:\n        return this.v0;\n    }\n  } // Load a value into a register\n\n\n  loadValue(register, value) {\n    if (isLowLevelRegister(register)) {\n      this[INNER_VM].loadRegister(register, value);\n    }\n\n    switch (register) {\n      case $s0:\n        this.s0 = value;\n        break;\n\n      case $s1:\n        this.s1 = value;\n        break;\n\n      case $t0:\n        this.t0 = value;\n        break;\n\n      case $t1:\n        this.t1 = value;\n        break;\n\n      case $v0:\n        this.v0 = value;\n        break;\n    }\n  }\n  /**\n   * Migrated to Inner\n   */\n  // Start a new frame and save $ra and $fp on the stack\n\n\n  pushFrame() {\n    this[INNER_VM].pushFrame();\n  } // Restore $ra, $sp and $fp\n\n\n  popFrame() {\n    this[INNER_VM].popFrame();\n  } // Jump to an address in `program`\n\n\n  goto(offset) {\n    this[INNER_VM].goto(offset);\n  } // Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\n\n\n  call(handle) {\n    this[INNER_VM].call(handle);\n  } // Put a specific `program` address in $ra\n\n\n  returnTo(offset) {\n    this[INNER_VM].returnTo(offset);\n  } // Return to the `program` address stored in $ra\n\n\n  return() {\n    this[INNER_VM].return();\n  }\n\n  static initial(runtime, context, {\n    handle,\n    self,\n    dynamicScope,\n    treeBuilder,\n    numSymbols,\n    owner\n  }) {\n    let scope = PartialScopeImpl.root(self, numSymbols, owner);\n    let state = vmState(runtime.program.heap.getaddr(handle), scope, dynamicScope);\n    let vm = initVM(context)(runtime, state, treeBuilder);\n    vm.pushUpdating();\n    return vm;\n  }\n\n  static empty(runtime, {\n    handle,\n    treeBuilder,\n    dynamicScope,\n    owner\n  }, context) {\n    let vm = initVM(context)(runtime, vmState(runtime.program.heap.getaddr(handle), PartialScopeImpl.root(UNDEFINED_REFERENCE, 0, owner), dynamicScope), treeBuilder);\n    vm.pushUpdating();\n    return vm;\n  }\n\n  compile(block) {\n    let handle = unwrapHandle(block.compile(this.context));\n    return handle;\n  }\n\n  get program() {\n    return this.runtime.program;\n  }\n\n  get env() {\n    return this.runtime.env;\n  }\n\n  captureState(args, pc = this[INNER_VM].fetchRegister($pc)) {\n    return {\n      pc,\n      scope: this.scope(),\n      dynamicScope: this.dynamicScope(),\n      stack: this.stack.capture(args)\n    };\n  }\n\n  capture(args, pc = this[INNER_VM].fetchRegister($pc)) {\n    return new ResumableVMStateImpl(this.captureState(args, pc), this.resume);\n  }\n\n  beginCacheGroup(name) {\n    let opcodes = this.updating();\n    let guard = new JumpIfNotModifiedOpcode();\n    opcodes.push(guard);\n    opcodes.push(new BeginTrackFrameOpcode(name));\n    this[STACKS].cache.push(guard);\n    beginTrackFrame(name);\n  }\n\n  commitCacheGroup() {\n    let opcodes = this.updating();\n    let guard = this[STACKS].cache.pop();\n    let tag = endTrackFrame();\n    opcodes.push(new EndTrackFrameOpcode(guard));\n    guard.finalize(tag, opcodes.length);\n  }\n\n  enter(args) {\n    let updating = [];\n    let state = this.capture(args);\n    let block = this.elements().pushUpdatableBlock();\n    let tryOpcode = new TryOpcode(state, this.runtime, block, updating);\n    this.didEnter(tryOpcode);\n  }\n\n  enterItem({\n    key,\n    value,\n    memo\n  }) {\n    let {\n      stack\n    } = this;\n    let valueRef = createIteratorItemRef(value);\n    let memoRef = createIteratorItemRef(memo);\n    stack.push(valueRef);\n    stack.push(memoRef);\n    let state = this.capture(2);\n    let block = this.elements().pushUpdatableBlock();\n    let opcode = new ListItemOpcode(state, this.runtime, block, key, memoRef, valueRef);\n    this.didEnter(opcode);\n    return opcode;\n  }\n\n  registerItem(opcode) {\n    this.listBlock().initializeChild(opcode);\n  }\n\n  enterList(iterableRef, offset) {\n    let updating = [];\n    let addr = this[INNER_VM].target(offset);\n    let state = this.capture(0, addr);\n    let list = this.elements().pushBlockList(updating);\n    let opcode = new ListBlockOpcode(state, this.runtime, list, updating, iterableRef);\n    this[STACKS].list.push(opcode);\n    this.didEnter(opcode);\n  }\n\n  didEnter(opcode) {\n    this.associateDestroyable(opcode);\n    this[DESTROYABLE_STACK].push(opcode);\n    this.updateWith(opcode);\n    this.pushUpdating(opcode.children);\n  }\n\n  exit() {\n    this[DESTROYABLE_STACK].pop();\n    this.elements().popBlock();\n    this.popUpdating();\n  }\n\n  exitList() {\n    this.exit();\n    this[STACKS].list.pop();\n  }\n\n  pushUpdating(list = []) {\n    this[STACKS].updating.push(list);\n  }\n\n  popUpdating() {\n    return this[STACKS].updating.pop();\n  }\n\n  updateWith(opcode) {\n    this.updating().push(opcode);\n  }\n\n  listBlock() {\n    return this[STACKS].list.current;\n  }\n\n  associateDestroyable(child) {\n    let parent = this[DESTROYABLE_STACK].current;\n    associateDestroyableChild(parent, child);\n  }\n\n  tryUpdating() {\n    return this[STACKS].updating.current;\n  }\n\n  updating() {\n    return this[STACKS].updating.current;\n  }\n\n  elements() {\n    return this.elementStack;\n  }\n\n  scope() {\n    return this[STACKS].scope.current;\n  }\n\n  dynamicScope() {\n    return this[STACKS].dynamicScope.current;\n  }\n\n  pushChildScope() {\n    this[STACKS].scope.push(this.scope().child());\n  }\n\n  pushDynamicScope() {\n    let child = this.dynamicScope().child();\n    this[STACKS].dynamicScope.push(child);\n    return child;\n  }\n\n  pushRootScope(size, owner) {\n    let scope = PartialScopeImpl.sized(size, owner);\n    this[STACKS].scope.push(scope);\n    return scope;\n  }\n\n  pushScope(scope) {\n    this[STACKS].scope.push(scope);\n  }\n\n  popScope() {\n    this[STACKS].scope.pop();\n  }\n\n  popDynamicScope() {\n    this[STACKS].dynamicScope.pop();\n  } /// SCOPE HELPERS\n\n\n  getOwner() {\n    return this.scope().owner;\n  }\n\n  getSelf() {\n    return this.scope().getSelf();\n  }\n\n  referenceForSymbol(symbol$$1) {\n    return this.scope().getSymbol(symbol$$1);\n  } /// EXECUTION\n\n\n  execute(initialize) {\n    if (DEBUG) {\n      let hasErrored = true;\n\n      try {\n        let value = this._execute(initialize); // using a boolean here to avoid breaking ergonomics of \"pause on uncaught exceptions\"\n        // which would happen with a `catch` + `throw`\n\n\n        hasErrored = false;\n        return value;\n      } finally {\n        if (hasErrored) {\n          // If any existing blocks are open, due to an error or something like\n          // that, we need to close them all and clean things up properly.\n          let elements = this.elements();\n\n          while (elements.hasBlocks) {\n            elements.popBlock();\n          } // eslint-disable-next-line no-console\n\n\n          console.error(`\\n\\nError occurred:\\n\\n${resetTracking()}\\n\\n`);\n        }\n      }\n    } else {\n      return this._execute(initialize);\n    }\n  }\n\n  _execute(initialize) {\n\n    if (initialize) initialize(this);\n    let result;\n\n    while (true) {\n      result = this.next();\n      if (result.done) break;\n    }\n\n    return result.value;\n  }\n\n  next() {\n    let {\n      env,\n      elementStack\n    } = this;\n    let opcode = this[INNER_VM].nextStatement();\n    let result;\n\n    if (opcode !== null) {\n      this[INNER_VM].evaluateOuter(opcode, this);\n      result = {\n        done: false,\n        value: null\n      };\n    } else {\n      // Unload the stack\n      this.stack.reset();\n      result = {\n        done: true,\n        value: new RenderResultImpl(env, this.popUpdating(), elementStack.popBlock(), this.destructor)\n      };\n    }\n\n    return result;\n  }\n\n  bindDynamicScope(names) {\n    let scope = this.dynamicScope();\n\n    for (let i = names.length - 1; i >= 0; i--) {\n      let name = names[i];\n      scope.set(name, this.stack.pop());\n    }\n  }\n\n}\n_a$2 = STACKS, _b = DESTROYABLE_STACK;\n\nfunction vmState(pc, scope, dynamicScope) {\n  return {\n    pc,\n    scope,\n    dynamicScope,\n    stack: []\n  };\n}\n\nfunction initVM(context) {\n  return (runtime, state, builder) => new VM(runtime, state, builder, context);\n}\n\nclass TemplateIteratorImpl {\n  constructor(vm) {\n    this.vm = vm;\n  }\n\n  next() {\n    return this.vm.next();\n  }\n\n  sync() {\n    if (DEBUG) {\n      return runInTrackingTransaction(() => this.vm.execute(), '- While rendering:');\n    } else {\n      return this.vm.execute();\n    }\n  }\n\n}\n\nfunction renderSync(env, iterator) {\n  let result;\n  inTransaction(env, () => result = iterator.sync());\n  return result;\n}\nfunction renderMain(runtime, context, owner, self, treeBuilder, layout, dynamicScope = new DynamicScopeImpl()) {\n  let handle = unwrapHandle(layout.compile(context));\n  let numSymbols = layout.symbolTable.symbols.length;\n  let vm = VM.initial(runtime, context, {\n    self,\n    dynamicScope,\n    treeBuilder,\n    handle,\n    numSymbols,\n    owner\n  });\n  return new TemplateIteratorImpl(vm);\n}\n\nfunction renderInvocation(vm, context, owner, definition, args) {\n  // Get a list of tuples of argument names and references, like\n  // [['title', reference], ['name', reference]]\n  const argList = Object.keys(args).map(key => [key, args[key]]);\n  const blockNames = ['main', 'else', 'attrs']; // Prefix argument names with `@` symbol\n\n  const argNames = argList.map(([name]) => `@${name}`);\n  let reified = vm[CONSTANTS].component(definition, owner);\n  vm.pushFrame(); // Push blocks on to the stack, three stack values per block\n\n  for (let i = 0; i < 3 * blockNames.length; i++) {\n    vm.stack.push(null);\n  }\n\n  vm.stack.push(null); // For each argument, push its backing reference on to the stack\n\n  argList.forEach(([, reference]) => {\n    vm.stack.push(reference);\n  }); // Configure VM based on blocks and args just pushed on to the stack.\n\n  vm[ARGS].setup(vm.stack, argNames, blockNames, 0, true);\n  const compilable = reified.compilable;\n  const layoutHandle = unwrapHandle(compilable.compile(context));\n  const invocation = {\n    handle: layoutHandle,\n    symbolTable: compilable.symbolTable\n  }; // Needed for the Op.Main opcode: arguments, component invocation object, and\n  // component definition.\n\n  vm.stack.push(vm[ARGS]);\n  vm.stack.push(invocation);\n  vm.stack.push(reified);\n  return new TemplateIteratorImpl(vm);\n}\n\nfunction renderComponent(runtime, treeBuilder, context, owner, definition, args = {}, dynamicScope = new DynamicScopeImpl()) {\n  let vm = VM.empty(runtime, {\n    treeBuilder,\n    handle: context.stdlib.main,\n    dynamicScope,\n    owner\n  }, context);\n  return renderInvocation(vm, context, owner, definition, recordToReference(args));\n}\n\nfunction recordToReference(record) {\n  const root = createConstRef(record, 'args');\n  return Object.keys(record).reduce((acc, key) => {\n    acc[key] = childRefFor(root, key);\n    return acc;\n  }, {});\n}\n\nconst SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';\nfunction isSerializationFirstNode(node) {\n  return node.nodeValue === SERIALIZATION_FIRST_NODE_STRING;\n}\nclass RehydratingCursor extends CursorImpl {\n  constructor(element, nextSibling, startingBlockDepth) {\n    super(element, nextSibling);\n    this.startingBlockDepth = startingBlockDepth;\n    this.candidate = null;\n    this.injectedOmittedNode = false;\n    this.openBlockDepth = startingBlockDepth - 1;\n  }\n\n}\nclass RehydrateBuilder extends NewElementBuilder {\n  constructor(env, parentNode, nextSibling) {\n    super(env, parentNode, nextSibling);\n    this.unmatchedAttributes = null;\n    this.blockDepth = 0;\n    if (nextSibling) throw new Error('Rehydration with nextSibling not supported');\n    let node = this.currentCursor.element.firstChild;\n\n    while (node !== null) {\n      if (isOpenBlock(node)) {\n        break;\n      }\n\n      node = node.nextSibling;\n    }\n    this.candidate = node;\n    const startingBlockOffset = getBlockDepth(node);\n\n    if (startingBlockOffset !== 0) {\n      // We are rehydrating from a partial tree and not the root component\n      // We need to add an extra block before the first block to rehydrate correctly\n      // The extra block is needed since the renderComponent API creates a synthetic component invocation which generates the extra block\n      const newBlockDepth = startingBlockOffset - 1;\n      const newCandidate = this.dom.createComment(`%+b:${newBlockDepth}%`);\n      node.parentNode.insertBefore(newCandidate, this.candidate);\n      let closingNode = node.nextSibling;\n\n      while (closingNode !== null) {\n        if (isCloseBlock(closingNode) && getBlockDepth(closingNode) === startingBlockOffset) {\n          break;\n        }\n\n        closingNode = closingNode.nextSibling;\n      }\n      const newClosingBlock = this.dom.createComment(`%-b:${newBlockDepth}%`);\n      node.parentNode.insertBefore(newClosingBlock, closingNode.nextSibling);\n      this.candidate = newCandidate;\n      this.startingBlockOffset = newBlockDepth;\n    } else {\n      this.startingBlockOffset = 0;\n    }\n  }\n\n  get currentCursor() {\n    return this[CURSOR_STACK].current;\n  }\n\n  get candidate() {\n    if (this.currentCursor) {\n      return this.currentCursor.candidate;\n    }\n\n    return null;\n  }\n\n  set candidate(node) {\n    let currentCursor = this.currentCursor;\n    currentCursor.candidate = node;\n  }\n\n  disableRehydration(nextSibling) {\n    let currentCursor = this.currentCursor; // rehydration will be disabled until we either:\n    // * hit popElement (and return to using the parent elements cursor)\n    // * hit closeBlock and the next sibling is a close block comment\n    //   matching the expected openBlockDepth\n\n    currentCursor.candidate = null;\n    currentCursor.nextSibling = nextSibling;\n  }\n\n  enableRehydration(candidate) {\n    let currentCursor = this.currentCursor;\n    currentCursor.candidate = candidate;\n    currentCursor.nextSibling = null;\n  }\n\n  pushElement(element, nextSibling = null) {\n    let cursor = new RehydratingCursor(element, nextSibling, this.blockDepth || 0);\n    /**\n     * <div>   <---------------  currentCursor.element\n     *   <!--%+b:1%--> <-------  would have been removed during openBlock\n     *   <div> <---------------  currentCursor.candidate -> cursor.element\n     *     <!--%+b:2%--> <-----  currentCursor.candidate.firstChild -> cursor.candidate\n     *     Foo\n     *     <!--%-b:2%-->\n     *   </div>\n     *   <!--%-b:1%-->  <------  becomes currentCursor.candidate\n     */\n\n    if (this.candidate !== null) {\n      cursor.candidate = element.firstChild;\n      this.candidate = element.nextSibling;\n    }\n\n    this[CURSOR_STACK].push(cursor);\n  } // clears until the end of the current container\n  // either the current open block or higher\n\n\n  clearMismatch(candidate) {\n    let current = candidate;\n    let currentCursor = this.currentCursor;\n\n    if (currentCursor !== null) {\n      let openBlockDepth = currentCursor.openBlockDepth;\n\n      if (openBlockDepth >= currentCursor.startingBlockDepth) {\n        while (current) {\n          if (isCloseBlock(current)) {\n            let closeBlockDepth = getBlockDepthWithOffset(current, this.startingBlockOffset);\n\n            if (openBlockDepth >= closeBlockDepth) {\n              break;\n            }\n          }\n\n          current = this.remove(current);\n        }\n      } else {\n        while (current !== null) {\n          current = this.remove(current);\n        }\n      } // current cursor parentNode should be openCandidate if element\n      // or openCandidate.parentNode if comment\n\n\n      this.disableRehydration(current);\n    }\n  }\n\n  __openBlock() {\n    let {\n      currentCursor\n    } = this;\n    if (currentCursor === null) return;\n    let blockDepth = this.blockDepth;\n    this.blockDepth++;\n    let {\n      candidate\n    } = currentCursor;\n    if (candidate === null) return;\n    let {\n      tagName\n    } = currentCursor.element;\n\n    if (isOpenBlock(candidate) && getBlockDepthWithOffset(candidate, this.startingBlockOffset) === blockDepth) {\n      this.candidate = this.remove(candidate);\n      currentCursor.openBlockDepth = blockDepth;\n    } else if (tagName !== 'TITLE' && tagName !== 'SCRIPT' && tagName !== 'STYLE') {\n      this.clearMismatch(candidate);\n    }\n  }\n\n  __closeBlock() {\n    let {\n      currentCursor\n    } = this;\n    if (currentCursor === null) return; // openBlock is the last rehydrated open block\n\n    let openBlockDepth = currentCursor.openBlockDepth; // this currently is the expected next open block depth\n\n    this.blockDepth--;\n    let {\n      candidate\n    } = currentCursor;\n    let isRehydrating = false;\n\n    if (candidate !== null) {\n      isRehydrating = true; //assert(\n      //  openBlockDepth === this.blockDepth,\n      //  'when rehydrating, openBlockDepth should match this.blockDepth here'\n      //);\n\n      if (isCloseBlock(candidate) && getBlockDepthWithOffset(candidate, this.startingBlockOffset) === openBlockDepth) {\n        let nextSibling = this.remove(candidate);\n        this.candidate = nextSibling;\n        currentCursor.openBlockDepth--;\n      } else {\n        // close the block and clear mismatch in parent container\n        // we will be either at the end of the element\n        // or at the end of our containing block\n        this.clearMismatch(candidate);\n        isRehydrating = false;\n      }\n    }\n\n    if (isRehydrating === false) {\n      // check if nextSibling matches our expected close block\n      // if so, we remove the close block comment and\n      // restore rehydration after clearMismatch disabled\n      let nextSibling = currentCursor.nextSibling;\n\n      if (nextSibling !== null && isCloseBlock(nextSibling) && getBlockDepthWithOffset(nextSibling, this.startingBlockOffset) === this.blockDepth) {\n        // restore rehydration state\n        let candidate = this.remove(nextSibling);\n        this.enableRehydration(candidate);\n        currentCursor.openBlockDepth--;\n      }\n    }\n  }\n\n  __appendNode(node) {\n    let {\n      candidate\n    } = this; // This code path is only used when inserting precisely one node. It needs more\n    // comparison logic, but we can probably lean on the cases where this code path\n    // is actually used.\n\n    if (candidate) {\n      return candidate;\n    } else {\n      return super.__appendNode(node);\n    }\n  }\n\n  __appendHTML(html) {\n    let candidateBounds = this.markerBounds();\n\n    if (candidateBounds) {\n      let first = candidateBounds.firstNode();\n      let last = candidateBounds.lastNode();\n      let newBounds = new ConcreteBounds(this.element, first.nextSibling, last.previousSibling);\n      let possibleEmptyMarker = this.remove(first);\n      this.remove(last);\n\n      if (possibleEmptyMarker !== null && isEmpty$1(possibleEmptyMarker)) {\n        this.candidate = this.remove(possibleEmptyMarker);\n\n        if (this.candidate !== null) {\n          this.clearMismatch(this.candidate);\n        }\n      }\n\n      return newBounds;\n    } else {\n      return super.__appendHTML(html);\n    }\n  }\n\n  remove(node) {\n    let element = node.parentNode;\n    let next = node.nextSibling;\n    element.removeChild(node);\n    return next;\n  }\n\n  markerBounds() {\n    let _candidate = this.candidate;\n\n    if (_candidate && isMarker(_candidate)) {\n      let first = _candidate;\n      let last = first.nextSibling;\n\n      while (last && !isMarker(last)) {\n        last = last.nextSibling;\n      }\n\n      return new ConcreteBounds(this.element, first, last);\n    } else {\n      return null;\n    }\n  }\n\n  __appendText(string) {\n    let {\n      candidate\n    } = this;\n\n    if (candidate) {\n      if (isTextNode(candidate)) {\n        if (candidate.nodeValue !== string) {\n          candidate.nodeValue = string;\n        }\n\n        this.candidate = candidate.nextSibling;\n        return candidate;\n      } else if (isSeparator(candidate)) {\n        this.candidate = this.remove(candidate);\n        return this.__appendText(string);\n      } else if (isEmpty$1(candidate) && string === '') {\n        this.candidate = this.remove(candidate);\n        return this.__appendText(string);\n      } else {\n        this.clearMismatch(candidate);\n        return super.__appendText(string);\n      }\n    } else {\n      return super.__appendText(string);\n    }\n  }\n\n  __appendComment(string) {\n    let _candidate = this.candidate;\n\n    if (_candidate && isComment(_candidate)) {\n      if (_candidate.nodeValue !== string) {\n        _candidate.nodeValue = string;\n      }\n\n      this.candidate = _candidate.nextSibling;\n      return _candidate;\n    } else if (_candidate) {\n      this.clearMismatch(_candidate);\n    }\n\n    return super.__appendComment(string);\n  }\n\n  __openElement(tag) {\n    let _candidate = this.candidate;\n\n    if (_candidate && isElement(_candidate) && isSameNodeType(_candidate, tag)) {\n      this.unmatchedAttributes = [].slice.call(_candidate.attributes);\n      return _candidate;\n    } else if (_candidate) {\n      if (isElement(_candidate) && _candidate.tagName === 'TBODY') {\n        this.pushElement(_candidate, null);\n        this.currentCursor.injectedOmittedNode = true;\n        return this.__openElement(tag);\n      }\n\n      this.clearMismatch(_candidate);\n    }\n\n    return super.__openElement(tag);\n  }\n\n  __setAttribute(name, value, namespace) {\n    let unmatched = this.unmatchedAttributes;\n\n    if (unmatched) {\n      let attr = findByName(unmatched, name);\n\n      if (attr) {\n        if (attr.value !== value) {\n          attr.value = value;\n        }\n\n        unmatched.splice(unmatched.indexOf(attr), 1);\n        return;\n      }\n    }\n\n    return super.__setAttribute(name, value, namespace);\n  }\n\n  __setProperty(name, value) {\n    let unmatched = this.unmatchedAttributes;\n\n    if (unmatched) {\n      let attr = findByName(unmatched, name);\n\n      if (attr) {\n        if (attr.value !== value) {\n          attr.value = value;\n        }\n\n        unmatched.splice(unmatched.indexOf(attr), 1);\n        return;\n      }\n    }\n\n    return super.__setProperty(name, value);\n  }\n\n  __flushElement(parent, constructing) {\n    let {\n      unmatchedAttributes: unmatched\n    } = this;\n\n    if (unmatched) {\n      for (let i = 0; i < unmatched.length; i++) {\n        this.constructing.removeAttribute(unmatched[i].name);\n      }\n\n      this.unmatchedAttributes = null;\n    } else {\n      super.__flushElement(parent, constructing);\n    }\n  }\n\n  willCloseElement() {\n    let {\n      candidate,\n      currentCursor\n    } = this;\n\n    if (candidate !== null) {\n      this.clearMismatch(candidate);\n    }\n\n    if (currentCursor && currentCursor.injectedOmittedNode) {\n      this.popElement();\n    }\n\n    super.willCloseElement();\n  }\n\n  getMarker(element, guid) {\n    let marker = element.querySelector(`script[glmr=\"${guid}\"]`);\n\n    if (marker) {\n      return marker;\n    }\n\n    return null;\n  }\n\n  __pushRemoteElement(element, cursorId, insertBefore) {\n    let marker = this.getMarker(element, cursorId);\n\n    if (insertBefore === undefined) {\n      while (element.firstChild !== null && element.firstChild !== marker) {\n        this.remove(element.firstChild);\n      }\n\n      insertBefore = null;\n    }\n\n    let cursor = new RehydratingCursor(element, null, this.blockDepth);\n    this[CURSOR_STACK].push(cursor);\n\n    if (marker === null) {\n      this.disableRehydration(insertBefore);\n    } else {\n      this.candidate = this.remove(marker);\n    }\n\n    let block = new RemoteLiveBlock(element);\n    return this.pushLiveBlock(block, true);\n  }\n\n  didAppendBounds(bounds) {\n    super.didAppendBounds(bounds);\n\n    if (this.candidate) {\n      let last = bounds.lastNode();\n      this.candidate = last && last.nextSibling;\n    }\n\n    return bounds;\n  }\n\n}\n\nfunction isTextNode(node) {\n  return node.nodeType === 3;\n}\n\nfunction isComment(node) {\n  return node.nodeType === 8;\n}\n\nfunction isOpenBlock(node) {\n  return node.nodeType === 8\n  /* COMMENT_NODE */\n  && node.nodeValue.lastIndexOf('%+b:', 0) === 0;\n}\n\nfunction isCloseBlock(node) {\n  return node.nodeType === 8\n  /* COMMENT_NODE */\n  && node.nodeValue.lastIndexOf('%-b:', 0) === 0;\n}\n\nfunction getBlockDepth(node) {\n  return parseInt(node.nodeValue.slice(4), 10);\n}\n\nfunction getBlockDepthWithOffset(node, offset) {\n  return getBlockDepth(node) - offset;\n}\n\nfunction isElement(node) {\n  return node.nodeType === 1;\n}\n\nfunction isMarker(node) {\n  return node.nodeType === 8 && node.nodeValue === '%glmr%';\n}\n\nfunction isSeparator(node) {\n  return node.nodeType === 8 && node.nodeValue === '%|%';\n}\n\nfunction isEmpty$1(node) {\n  return node.nodeType === 8 && node.nodeValue === '% %';\n}\n\nfunction isSameNodeType(candidate, tag) {\n  if (candidate.namespaceURI === \"http://www.w3.org/2000/svg\"\n  /* SVG */\n  ) {\n      return candidate.tagName === tag;\n    }\n\n  return candidate.tagName === tag.toUpperCase();\n}\n\nfunction findByName(array, name) {\n  for (let i = 0; i < array.length; i++) {\n    let attr = array[i];\n    if (attr.name === name) return attr;\n  }\n\n  return undefined;\n}\n\nfunction rehydrationBuilder(env, cursor) {\n  return RehydrateBuilder.forInitialRender(env, cursor);\n}\n\nlet ARGS_CACHES = DEBUG ? new WeakMap() : undefined;\n\nfunction getArgs(proxy) {\n  return getValue(DEBUG ? ARGS_CACHES.get(proxy) : proxy.argsCache);\n}\n\nclass SimpleArgsProxy {\n  constructor(context, computeArgs = () => EMPTY_ARGS) {\n    let argsCache = createCache(() => computeArgs(context));\n\n    if (DEBUG) {\n      ARGS_CACHES.set(this, argsCache);\n      Object.freeze(this);\n    } else {\n      this.argsCache = argsCache;\n    }\n  }\n\n  get named() {\n    return getArgs(this).named || EMPTY_NAMED;\n  }\n\n  get positional() {\n    return getArgs(this).positional || EMPTY_POSITIONAL;\n  }\n\n} ////////////\n\n\nfunction invokeHelper(context, definition, computeArgs) {\n  if (DEBUG && (typeof context !== 'object' || context === null)) {\n    throw new Error(`Expected a context object to be passed as the first parameter to invokeHelper, got ${context}`);\n  }\n\n  const owner = getOwner(context);\n  const internalManager = getInternalHelperManager(definition); // TODO: figure out why assert isn't using the TS assert thing\n\n  if (DEBUG && !internalManager) {\n    throw new Error(`Expected a helper definition to be passed as the second parameter to invokeHelper, but no helper manager was found. The definition value that was passed was \\`${debugToString(definition)}\\`. Did you use setHelperManager to associate a helper manager with this value?`);\n  }\n\n  if (DEBUG && typeof internalManager === 'function') {\n    throw new Error('Found a helper manager, but it was an internal built-in helper manager. `invokeHelper` does not support internal helpers yet.');\n  }\n\n  const manager = internalManager.getDelegateFor(owner);\n  let args = new SimpleArgsProxy(context, computeArgs);\n  let bucket = manager.createHelper(definition, args);\n  let cache;\n\n  if (hasValue(manager)) {\n    cache = createCache(() => {\n      if (DEBUG && (isDestroying(cache) || isDestroyed(cache))) {\n        throw new Error(`You attempted to get the value of a helper after the helper was destroyed, which is not allowed`);\n      }\n\n      return manager.getValue(bucket);\n    });\n    associateDestroyableChild(context, cache);\n  } else {\n    throw new Error('TODO: unreachable, to be implemented with hasScheduledEffect');\n  }\n\n  if (hasDestroyable(manager)) {\n    let destroyable = manager.getDestroyable(bucket);\n    associateDestroyableChild(cache, destroyable);\n  }\n\n  return cache;\n}\n\nfunction internalHelper(helper) {\n  return setInternalHelperManager(helper, {});\n}\n\nconst context = buildUntouchableThis('`fn` helper');\n/**\n  The `fn` helper allows you to ensure a function that you are passing off\n  to another component, helper, or modifier has access to arguments that are\n  available in the template.\n\n  For example, if you have an `each` helper looping over a number of items, you\n  may need to pass a function that expects to receive the item as an argument\n  to a component invoked within the loop. Here's how you could use the `fn`\n  helper to pass both the function and its arguments together:\n\n    ```app/templates/components/items-listing.hbs\n  {{#each @items as |item|}}\n    <DisplayItem @item=item @select={{fn this.handleSelected item}} />\n  {{/each}}\n  ```\n\n  ```app/components/items-list.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class ItemsList extends Component {\n    handleSelected = (item) => {\n      // ...snip...\n    }\n  }\n  ```\n\n  In this case the `display-item` component will receive a normal function\n  that it can invoke. When it invokes the function, the `handleSelected`\n  function will receive the `item` and any arguments passed, thanks to the\n  `fn` helper.\n\n  Let's take look at what that means in a couple circumstances:\n\n  - When invoked as `this.args.select()` the `handleSelected` function will\n    receive the `item` from the loop as its first and only argument.\n  - When invoked as `this.args.select('foo')` the `handleSelected` function\n    will receive the `item` from the loop as its first argument and the\n    string `'foo'` as its second argument.\n\n  In the example above, we used an arrow function to ensure that\n  `handleSelected` is properly bound to the `items-list`, but let's explore what\n  happens if we left out the arrow function:\n\n  ```app/components/items-list.js\n  import Component from '@glimmer/component';\n\n  export default class ItemsList extends Component {\n    handleSelected(item) {\n      // ...snip...\n    }\n  }\n  ```\n\n  In this example, when `handleSelected` is invoked inside the `display-item`\n  component, it will **not** have access to the component instance. In other\n  words, it will have no `this` context, so please make sure your functions\n  are bound (via an arrow function or other means) before passing into `fn`!\n\n  See also [partial application](https://en.wikipedia.org/wiki/Partial_application).\n\n  @method fn\n  @public\n*/\n\nvar fn = internalHelper(({\n  positional\n}) => {\n  let callbackRef = positional[0];\n  if (DEBUG) assertCallbackIsFn(callbackRef);\n  return createComputeRef(() => {\n    return (...invocationArgs) => {\n      let [fn, ...args] = reifyPositional(positional);\n      if (DEBUG) assertCallbackIsFn(callbackRef);\n\n      if (isInvokableRef(callbackRef)) {\n        let value = args.length > 0 ? args[0] : invocationArgs[0];\n        return updateRef(callbackRef, value);\n      } else {\n        return fn.call(context, ...args, ...invocationArgs);\n      }\n    };\n  }, null, 'fn');\n});\n\nfunction assertCallbackIsFn(callbackRef) {\n  if (!(callbackRef && (isInvokableRef(callbackRef) || typeof valueForRef(callbackRef) === 'function'))) {\n    throw new Error(`You must pass a function as the \\`fn\\` helpers first argument, you passed ${callbackRef ? valueForRef(callbackRef) : callbackRef}. While rendering:\\n\\n${callbackRef === null || callbackRef === void 0 ? void 0 : callbackRef.debugLabel}`);\n  }\n}\n\nlet wrapHashProxy;\n\nif (DEBUG) {\n  wrapHashProxy = hash => {\n    return new Proxy(hash, {\n      set(target, key, value) {\n        deprecate(`You set the '${String(key)}' property on a {{hash}} object. Setting properties on objects generated by {{hash}} is deprecated. Please update to use an object created with a tracked property or getter, or with a custom helper.`, false, {\n          id: 'setting-on-hash'\n        });\n        target[key] = value;\n        return true;\n      }\n\n    });\n  };\n}\n/**\n   Use the `{{hash}}` helper to create a hash to pass as an option to your\n   components. This is specially useful for contextual components where you can\n   just yield a hash:\n\n   ```handlebars\n   {{yield (hash\n      name='Sarah'\n      title=office\n   )}}\n   ```\n\n   Would result in an object such as:\n\n   ```js\n   { name: 'Sarah', title: this.get('office') }\n   ```\n\n   Where the `title` is bound to updates of the `office` property.\n\n   Note that the hash is an empty object with no prototype chain, therefore\n   common methods like `toString` are not available in the resulting hash.\n   If you need to use such a method, you can use the `call` or `apply`\n   approach:\n\n   ```js\n   function toString(obj) {\n     return Object.prototype.toString.apply(obj);\n   }\n   ```\n\n   @method hash\n   @param {Object} options\n   @return {Object} Hash\n   @public\n */\n\n\nvar hash = internalHelper(({\n  named\n}) => {\n  let ref = createComputeRef(() => {\n    let hash = reifyNamed(named);\n\n    if (DEBUG && HAS_NATIVE_PROXY) {\n      hash = wrapHashProxy(hash);\n    }\n\n    return hash;\n  }, null, 'hash'); // Setup the children so that templates can bypass getting the value of\n  // the reference and treat children lazily\n\n  let children = new Map();\n\n  for (let name in named) {\n    children.set(name, named[name]);\n  }\n\n  ref.children = children;\n  return ref;\n});\n\n/**\n   Use the `{{array}}` helper to create an array to pass as an option to your\n   components.\n\n   ```handlebars\n   <MyComponent @people={{array\n     'Tom Dale'\n     'Yehuda Katz'\n     this.myOtherPerson}}\n   />\n   ```\n    or\n   ```handlebars\n   {{my-component people=(array\n     'Tom Dale'\n     'Yehuda Katz'\n     this.myOtherPerson)\n   }}\n   ```\n\n   Would result in an object such as:\n\n   ```js\n   ['Tom Dale', 'Yehuda Katz', this.get('myOtherPerson')]\n   ```\n\n   Where the 3rd item in the array is bound to updates of the `myOtherPerson` property.\n\n   @method array\n   @param {Array} options\n   @return {Array} Array\n   @public\n */\n\nvar array = internalHelper(({\n  positional\n}) => {\n  return createComputeRef(() => reifyPositional(positional), null, 'array');\n});\n\n/**\n  Dynamically look up a property on an object. The second argument to `{{get}}`\n  should have a string value, although it can be bound.\n\n  For example, these two usages are equivalent:\n\n  ```app/components/developer-detail.js\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class extends Component {\n    @tracked developer = {\n      name: \"Sandi Metz\",\n      language: \"Ruby\"\n    }\n  }\n  ```\n\n  ```handlebars\n  {{this.developer.name}}\n  {{get this.developer \"name\"}}\n  ```\n\n  If there were several facts about a person, the `{{get}}` helper can dynamically\n  pick one:\n\n  ```app/templates/application.hbs\n  <DeveloperDetail @factName=\"language\" />\n  ```\n\n  ```handlebars\n  {{get this.developer @factName}}\n  ```\n\n  For a more complex example, this template would allow the user to switch\n  between showing the user's height and weight with a click:\n\n  ```app/components/developer-detail.js\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class extends Component {\n    @tracked developer = {\n      name: \"Sandi Metz\",\n      language: \"Ruby\"\n    }\n\n    @tracked currentFact = 'name'\n\n    showFact = (fact) => {\n      this.currentFact = fact;\n    }\n  }\n  ```\n\n  ```app/components/developer-detail.js\n  {{get this.developer this.currentFact}}\n\n  <button {{on 'click' (fn this.showFact \"name\")}}>Show name</button>\n  <button {{on 'click' (fn this.showFact \"language\")}}>Show language</button>\n  ```\n\n  The `{{get}}` helper can also respect mutable values itself. For example:\n\n  ```app/components/developer-detail.js\n  <Input @value={{mut (get this.person this.currentFact)}} />\n\n  <button {{on 'click' (fn this.showFact \"name\")}}>Show name</button>\n  <button {{on 'click' (fn this.showFact \"language\")}}>Show language</button>\n  ```\n\n  Would allow the user to swap what fact is being displayed, and also edit\n  that fact via a two-way mutable binding.\n\n  @public\n  @method get\n */\n\nvar get = internalHelper(({\n  positional\n}) => {\n  var _a, _b;\n\n  let sourceRef = (_a = positional[0]) !== null && _a !== void 0 ? _a : UNDEFINED_REFERENCE;\n  let pathRef = (_b = positional[1]) !== null && _b !== void 0 ? _b : UNDEFINED_REFERENCE;\n  return createComputeRef(() => {\n    let source = valueForRef(sourceRef);\n\n    if (isDict(source)) {\n      return getPath(source, String(valueForRef(pathRef)));\n    }\n  }, value => {\n    let source = valueForRef(sourceRef);\n\n    if (isDict(source)) {\n      return setPath(source, String(valueForRef(pathRef)), value);\n    }\n  }, 'get');\n});\n\nconst isEmpty$2 = value => {\n  return value === null || value === undefined || typeof value.toString !== 'function';\n};\n\nconst normalizeTextValue = value => {\n  if (isEmpty$2(value)) {\n    return '';\n  }\n\n  return String(value);\n};\n/**\n  Concatenates the given arguments into a string.\n\n  Example:\n\n  ```handlebars\n  {{some-component name=(concat firstName \" \" lastName)}}\n\n  {{! would pass name=\"<first name value> <last name value>\" to the component}}\n  ```\n\n  or for angle bracket invocation, you actually don't need concat at all.\n\n  ```handlebars\n  <SomeComponent @name=\"{{firstName}} {{lastName}}\" />\n  ```\n\n  @public\n  @method concat\n*/\n\n\nvar concat = internalHelper(({\n  positional\n}) => {\n  return createComputeRef(() => reifyPositional(positional).map(normalizeTextValue).join(''), null, 'concat');\n});\n\nconst untouchableContext = buildUntouchableThis('`on` modifier');\n/*\n  Internet Explorer 11 does not support `once` and also does not support\n  passing `eventOptions`. In some situations it then throws a weird script\n  error, like:\n\n  ```\n  Could not complete the operation due to error 80020101\n  ```\n\n  This flag determines, whether `{ once: true }` and thus also event options in\n  general are supported.\n*/\n\nconst SUPPORTS_EVENT_OPTIONS = (() => {\n  try {\n    const div = document.createElement('div');\n    let counter = 0;\n    div.addEventListener('click', () => counter++, {\n      once: true\n    });\n    let event;\n\n    if (typeof Event === 'function') {\n      event = new Event('click');\n    } else {\n      event = document.createEvent('Event');\n      event.initEvent('click', true, true);\n    }\n\n    div.dispatchEvent(event);\n    div.dispatchEvent(event);\n    return counter === 1;\n  } catch (error) {\n    return false;\n  }\n})();\n\nclass OnModifierState {\n  constructor(element, args) {\n    this.tag = createUpdatableTag();\n    this.shouldUpdate = true;\n    this.element = element;\n    this.args = args;\n  }\n\n  updateFromArgs() {\n    let {\n      args\n    } = this;\n    let {\n      once,\n      passive,\n      capture\n    } = reifyNamed(args.named);\n\n    if (once !== this.once) {\n      this.once = once;\n      this.shouldUpdate = true;\n    }\n\n    if (passive !== this.passive) {\n      this.passive = passive;\n      this.shouldUpdate = true;\n    }\n\n    if (capture !== this.capture) {\n      this.capture = capture;\n      this.shouldUpdate = true;\n    }\n\n    let options;\n\n    if (once || passive || capture) {\n      options = this.options = {\n        once,\n        passive,\n        capture\n      };\n    } else {\n      this.options = undefined;\n    }\n\n    if (DEBUG && (args.positional[0] === undefined || typeof valueForRef(args.positional[0]) !== 'string')) {\n      throw new Error('You must pass a valid DOM event name as the first argument to the `on` modifier');\n    }\n\n    let eventName = valueForRef(args.positional[0]);\n\n    if (eventName !== this.eventName) {\n      this.eventName = eventName;\n      this.shouldUpdate = true;\n    }\n\n    let userProvidedCallbackReference = args.positional[1];\n\n    if (DEBUG) {\n      if (args.positional[1] === undefined) {\n        throw new Error(`You must pass a function as the second argument to the \\`on\\` modifier.`);\n      }\n\n      let value = valueForRef(userProvidedCallbackReference);\n\n      if (typeof value !== 'function') {\n        throw new Error(`You must pass a function as the second argument to the \\`on\\` modifier, you passed ${value === null ? 'null' : typeof value}. While rendering:\\n\\n${userProvidedCallbackReference.debugLabel}`);\n      }\n    }\n\n    let userProvidedCallback = valueForRef(userProvidedCallbackReference);\n\n    if (userProvidedCallback !== this.userProvidedCallback) {\n      this.userProvidedCallback = userProvidedCallback;\n      this.shouldUpdate = true;\n    }\n\n    if (DEBUG && args.positional.length !== 2) {\n      throw new Error(`You can only pass two positional arguments (event name and callback) to the \\`on\\` modifier, but you provided ${args.positional.length}. Consider using the \\`fn\\` helper to provide additional arguments to the \\`on\\` callback.`);\n    }\n\n    let needsCustomCallback = SUPPORTS_EVENT_OPTIONS === false && once ||\n    /* needs manual once implementation */\n    DEBUG && passive;\n    /* needs passive enforcement */\n\n    if (this.shouldUpdate) {\n      if (needsCustomCallback) {\n        let callback = this.callback = function (event) {\n          if (DEBUG && passive) {\n            event.preventDefault = () => {\n              throw new Error(`You marked this listener as 'passive', meaning that you must not call 'event.preventDefault()': \\n\\n${userProvidedCallback}`);\n            };\n          }\n\n          if (!SUPPORTS_EVENT_OPTIONS && once) {\n            removeEventListener(this, eventName, callback, options);\n          }\n\n          return userProvidedCallback.call(untouchableContext, event);\n        };\n      } else if (DEBUG) {\n        // prevent the callback from being bound to the element\n        this.callback = userProvidedCallback.bind(untouchableContext);\n      } else {\n        this.callback = userProvidedCallback;\n      }\n    }\n  }\n\n}\nlet adds = 0;\nlet removes = 0;\n\nfunction removeEventListener(element, eventName, callback, options) {\n  removes++;\n\n  if (SUPPORTS_EVENT_OPTIONS) {\n    // when options are supported, use them across the board\n    element.removeEventListener(eventName, callback, options);\n  } else if (options !== undefined && options.capture) {\n    // used only in the following case:\n    //\n    // `{ once: true | false, passive: true | false, capture: true }\n    //\n    // `once` is handled via a custom callback that removes after first\n    // invocation so we only care about capture here as a boolean\n    element.removeEventListener(eventName, callback, true);\n  } else {\n    // used only in the following cases:\n    //\n    // * where there is no options\n    // * `{ once: true | false, passive: true | false, capture: false }\n    element.removeEventListener(eventName, callback);\n  }\n}\n\nfunction addEventListener(element, eventName, callback, options) {\n  adds++;\n\n  if (SUPPORTS_EVENT_OPTIONS) {\n    // when options are supported, use them across the board\n    element.addEventListener(eventName, callback, options);\n  } else if (options !== undefined && options.capture) {\n    // used only in the following case:\n    //\n    // `{ once: true | false, passive: true | false, capture: true }\n    //\n    // `once` is handled via a custom callback that removes after first\n    // invocation so we only care about capture here as a boolean\n    element.addEventListener(eventName, callback, true);\n  } else {\n    // used only in the following cases:\n    //\n    // * where there is no options\n    // * `{ once: true | false, passive: true | false, capture: false }\n    element.addEventListener(eventName, callback);\n  }\n}\n/**\n  The `{{on}}` modifier lets you easily add event listeners (it uses\n  [EventTarget.addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)\n  internally).\n\n  For example, if you'd like to run a function on your component when a `<button>`\n  in the components template is clicked you might do something like:\n\n  ```app/components/like-post.hbs\n  <button {{on 'click' this.saveLike}}>Like this post!</button>\n  ```\n\n  ```app/components/like-post.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class LikePostComponent extends Component {\n    saveLike = () => {\n      // someone likes your post!\n      // better send a request off to your server...\n    }\n  }\n  ```\n\n  ### Arguments\n\n  `{{on}}` accepts two positional arguments, and a few named arguments.\n\n  The positional arguments are:\n\n  - `event` -- the name to use when calling `addEventListener`\n  - `callback` -- the function to be passed to `addEventListener`\n\n  The named arguments are:\n\n  - capture -- a `true` value indicates that events of this type will be dispatched\n    to the registered listener before being dispatched to any EventTarget beneath it\n    in the DOM tree.\n  - once -- indicates that the listener should be invoked at most once after being\n    added. If true, the listener would be automatically removed when invoked.\n  - passive -- if `true`, indicates that the function specified by listener will never\n    call preventDefault(). If a passive listener does call preventDefault(), the user\n    agent will do nothing other than generate a console warning. See\n    [Improving scrolling performance with passive listeners](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Improving_scrolling_performance_with_passive_listeners)\n    to learn more.\n\n  The callback function passed to `{{on}}` will receive any arguments that are passed\n  to the event handler. Most commonly this would be the `event` itself.\n\n  If you would like to pass additional arguments to the function you should use\n  the `{{fn}}` helper.\n\n  For example, in our example case above if you'd like to pass in the post that\n  was being liked when the button is clicked you could do something like:\n\n  ```app/components/like-post.hbs\n  <button {{on 'click' (fn this.saveLike @post)}}>Like this post!</button>\n  ```\n\n  In this case, the `saveLike` function will receive two arguments: the click event\n  and the value of `@post`.\n\n  ### Function Context\n\n  In the example above, we used an arrow function to ensure that `likePost` is\n  properly bound to the `items-list`, but let's explore what happens if we\n  left out the arrow function:\n\n  ```app/components/like-post.js\n  import Component from '@glimmer/component';\n\n  export default class LikePostComponent extends Component {\n    saveLike() {\n      // ...snip...\n    }\n  }\n  ```\n\n  In this example, when the button is clicked `saveLike` will be invoked,\n  it will **not** have access to the component instance. In other\n  words, it will have no `this` context, so please make sure your functions\n  are bound (via an arrow function or other means) before passing into `on`!\n\n  @method on\n  @public\n*/\n\n\nclass OnModifierManager {\n  constructor() {\n    this.SUPPORTS_EVENT_OPTIONS = SUPPORTS_EVENT_OPTIONS;\n  }\n\n  getDebugName() {\n    return 'on';\n  }\n\n  get counters() {\n    return {\n      adds,\n      removes\n    };\n  }\n\n  create(_owner, element, _state, args) {\n    return new OnModifierState(element, args);\n  }\n\n  getTag(state) {\n    if (state === null) {\n      return null;\n    }\n\n    return state.tag;\n  }\n\n  install(state) {\n    if (state === null) {\n      return;\n    }\n\n    state.updateFromArgs();\n    let {\n      element,\n      eventName,\n      callback,\n      options\n    } = state;\n    addEventListener(element, eventName, callback, options);\n    registerDestructor(state, () => removeEventListener(element, eventName, callback, options));\n    state.shouldUpdate = false;\n  }\n\n  update(state) {\n    if (state === null) {\n      return;\n    } // stash prior state for el.removeEventListener\n\n\n    let {\n      element,\n      eventName,\n      callback,\n      options\n    } = state;\n    state.updateFromArgs();\n\n    if (!state.shouldUpdate) {\n      return;\n    } // use prior state values for removal\n\n\n    removeEventListener(element, eventName, callback, options); // read updated values from the state object\n\n    addEventListener(state.element, state.eventName, state.callback, state.options);\n    state.shouldUpdate = false;\n  }\n\n  getDestroyable(state) {\n    return state;\n  }\n\n}\n\nvar on = setInternalModifierManager(new OnModifierManager(), {});\n\nexport { clear, ConcreteBounds, CursorImpl, resetDebuggerCallback, setDebuggerCallback, curry, CurriedValue, TemplateOnlyComponentManager, TEMPLATE_ONLY_COMPONENT_MANAGER, TemplateOnlyComponentDefinition as TemplateOnlyComponent, templateOnlyComponent, helper$1 as DOMChanges, DOMChangesImpl as IDOMChanges, DOMTreeConstruction, isWhitespace, normalizeProperty, DynamicScopeImpl, PartialScopeImpl, runtimeContext, EnvironmentImpl, inTransaction, renderComponent, renderMain, renderSync, UpdatingVMImpl as UpdatingVM, VM as LowLevelVM, EMPTY_ARGS, EMPTY_NAMED, EMPTY_POSITIONAL, createCapturedArgs, reifyArgs, reifyNamed$1 as reifyNamed, reifyPositional$1 as reifyPositional, DynamicAttribute, dynamicAttribute, SimpleDynamicAttribute, clientBuilder, NewElementBuilder, UpdatableBlockImpl, RemoteLiveBlock, isSerializationFirstNode, RehydrateBuilder, rehydrationBuilder, SERIALIZATION_FIRST_NODE_STRING, invokeHelper, fn, hash, array, get, concat, on };\n","export { tracked } from '@ember/-internals/metal';","export { createCache, getValue, isConst } from '@ember/-internals/metal';","import { DEBUG } from '@glimmer/env';\n\nconst EMPTY_ARRAY = Object.freeze([]);\nfunction emptyArray() {\n  return EMPTY_ARRAY;\n}\nconst EMPTY_STRING_ARRAY = emptyArray();\nconst EMPTY_NUMBER_ARRAY = emptyArray();\n/**\n * This function returns `true` if the input array is the special empty array sentinel,\n * which is sometimes used for optimizations.\n */\n\nfunction isEmptyArray(input) {\n  return input === EMPTY_ARRAY;\n}\n\n// import Logger from './logger';\n\nfunction debugAssert$$1(test, msg) {\n  // if (!alreadyWarned) {\n  //   alreadyWarned = true;\n  //   Logger.warn(\"Don't leave debug assertions on in public builds\");\n  // }\n  if (!test) {\n    throw new Error(msg || 'assertion failure');\n  }\n}\nfunction deprecate$$1(desc) {\n  LOCAL_LOGGER.warn(`DEPRECATION: ${desc}`);\n}\n\nfunction dict() {\n  return Object.create(null);\n}\nfunction isDict(u) {\n  return u !== null && u !== undefined;\n}\nfunction isObject(u) {\n  return typeof u === 'function' || typeof u === 'object' && u !== null;\n}\nclass StackImpl {\n  constructor(values = []) {\n    this.current = null;\n    this.stack = values;\n  }\n\n  get size() {\n    return this.stack.length;\n  }\n\n  push(item) {\n    this.current = item;\n    this.stack.push(item);\n  }\n\n  pop() {\n    let item = this.stack.pop();\n    let len = this.stack.length;\n    this.current = len === 0 ? null : this.stack[len - 1];\n    return item === undefined ? null : item;\n  }\n\n  nth(from) {\n    let len = this.stack.length;\n    return len < from ? null : this.stack[len - from];\n  }\n\n  isEmpty() {\n    return this.stack.length === 0;\n  }\n\n  toArray() {\n    return this.stack;\n  }\n\n}\n\nfunction clearElement(parent) {\n  let current = parent.firstChild;\n\n  while (current) {\n    let next = current.nextSibling;\n    parent.removeChild(current);\n    current = next;\n  }\n}\n\nconst SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';\nfunction isSerializationFirstNode(node) {\n  return node.nodeValue === SERIALIZATION_FIRST_NODE_STRING;\n}\n\nvar _a;\n\nconst {\n  keys: objKeys\n} = Object;\n\nfunction assignFn(obj) {\n  for (let i = 1; i < arguments.length; i++) {\n    let assignment = arguments[i];\n    if (assignment === null || typeof assignment !== 'object') continue;\n    let keys = objKeys(assignment);\n\n    for (let j = 0; j < keys.length; j++) {\n      let key = keys[j];\n      obj[key] = assignment[key];\n    }\n  }\n\n  return obj;\n}\n\nlet assign = (_a = Object.assign) !== null && _a !== void 0 ? _a : assignFn;\nfunction fillNulls(count) {\n  let arr = new Array(count);\n\n  for (let i = 0; i < count; i++) {\n    arr[i] = null;\n  }\n\n  return arr;\n}\nfunction values(obj) {\n  const vals = [];\n\n  for (const key in obj) {\n    vals.push(obj[key]);\n  }\n\n  return vals;\n}\n\n/**\n  Strongly hint runtimes to intern the provided string.\n\n  When do I need to use this function?\n\n  For the most part, never. Pre-mature optimization is bad, and often the\n  runtime does exactly what you need it to, and more often the trade-off isn't\n  worth it.\n\n  Why?\n\n  Runtimes store strings in at least 2 different representations:\n  Ropes and Symbols (interned strings). The Rope provides a memory efficient\n  data-structure for strings created from concatenation or some other string\n  manipulation like splitting.\n\n  Unfortunately checking equality of different ropes can be quite costly as\n  runtimes must resort to clever string comparison algorithms. These\n  algorithms typically cost in proportion to the length of the string.\n  Luckily, this is where the Symbols (interned strings) shine. As Symbols are\n  unique by their string content, equality checks can be done by pointer\n  comparison.\n\n  How do I know if my string is a rope or symbol?\n\n  Typically (warning general sweeping statement, but truthy in runtimes at\n  present) static strings created as part of the JS source are interned.\n  Strings often used for comparisons can be interned at runtime if some\n  criteria are met.  One of these criteria can be the size of the entire rope.\n  For example, in chrome 38 a rope longer then 12 characters will not\n  intern, nor will segments of that rope.\n\n  Some numbers: http://jsperf.com/eval-vs-keys/8\n\n  Known Trick™\n\n  @private\n  @return {String} interned version of the provided string\n*/\nfunction intern(str) {\n  let obj = {};\n  obj[str] = 1;\n\n  for (let key in obj) {\n    if (key === str) {\n      return key;\n    }\n  }\n\n  return str;\n}\n\nconst HAS_NATIVE_PROXY = typeof Proxy === 'function';\nconst HAS_NATIVE_SYMBOL = function () {\n  if (typeof Symbol !== 'function') {\n    return false;\n  } // eslint-disable-next-line symbol-description\n\n\n  return typeof Symbol() === 'symbol';\n}();\nfunction keys(obj) {\n  return Object.keys(obj);\n}\nfunction unwrap(val) {\n  if (val === null || val === undefined) throw new Error(`Expected value to be present`);\n  return val;\n}\nfunction expect(val, message) {\n  if (val === null || val === undefined) throw new Error(message);\n  return val;\n}\nfunction unreachable(message = 'unreachable') {\n  return new Error(message);\n}\nfunction exhausted(value) {\n  throw new Error(`Exhausted ${value}`);\n}\nconst tuple = (...args) => args;\nfunction enumerableSymbol(key) {\n  return intern(`__${key}${Math.floor(Math.random() * Date.now())}__`);\n}\nconst symbol = HAS_NATIVE_SYMBOL ? Symbol : enumerableSymbol;\n\nfunction strip(strings, ...args) {\n  let out = '';\n\n  for (let i = 0; i < strings.length; i++) {\n    let string = strings[i];\n    let dynamic = args[i] !== undefined ? String(args[i]) : '';\n    out += `${string}${dynamic}`;\n  }\n\n  let lines = out.split('\\n');\n\n  while (lines.length && lines[0].match(/^\\s*$/)) {\n    lines.shift();\n  }\n\n  while (lines.length && lines[lines.length - 1].match(/^\\s*$/)) {\n    lines.pop();\n  }\n\n  let min = Infinity;\n\n  for (let line of lines) {\n    let leading = line.match(/^\\s*/)[0].length;\n    min = Math.min(min, leading);\n  }\n\n  let stripped = [];\n\n  for (let line of lines) {\n    stripped.push(line.slice(min));\n  }\n\n  return stripped.join('\\n');\n}\n\nfunction isHandle(value) {\n  return value >= 0;\n}\nfunction isNonPrimitiveHandle(value) {\n  return value > 3\n  /* ENCODED_UNDEFINED_HANDLE */\n  ;\n}\nfunction constants(...values) {\n  return [false, true, null, undefined, ...values];\n}\nfunction isSmallInt(value) {\n  return value % 1 === 0 && value <= 536870911\n  /* MAX_INT */\n  && value >= -536870912\n  /* MIN_INT */\n  ;\n}\nfunction encodeNegative(num) {\n\n  return num & -536870913\n  /* SIGN_BIT */\n  ;\n}\nfunction decodeNegative(num) {\n\n  return num | ~-536870913\n  /* SIGN_BIT */\n  ;\n}\nfunction encodePositive(num) {\n\n  return ~num;\n}\nfunction decodePositive(num) {\n\n  return ~num;\n}\nfunction encodeHandle(num) {\n\n  return num;\n}\nfunction decodeHandle(num) {\n\n  return num;\n}\nfunction encodeImmediate(num) {\n  num |= 0;\n  return num < 0 ? encodeNegative(num) : encodePositive(num);\n}\nfunction decodeImmediate(num) {\n  num |= 0;\n  return num > -536870913\n  /* SIGN_BIT */\n  ? decodePositive(num) : decodeNegative(num);\n} // Warm\n[1, -1].forEach(x => decodeImmediate(encodeImmediate(x)));\n\nfunction unwrapHandle(handle) {\n  if (typeof handle === 'number') {\n    return handle;\n  } else {\n    let error = handle.errors[0];\n    throw new Error(`Compile Error: ${error.problem} @ ${error.span.start}..${error.span.end}`);\n  }\n}\nfunction unwrapTemplate(template) {\n  if (template.result === 'error') {\n    throw new Error(`Compile Error: ${template.problem} @ ${template.span.start}..${template.span.end}`);\n  }\n\n  return template;\n}\nfunction extractHandle(handle) {\n  if (typeof handle === 'number') {\n    return handle;\n  } else {\n    return handle.handle;\n  }\n}\nfunction isOkHandle(handle) {\n  return typeof handle === 'number';\n}\nfunction isErrHandle(handle) {\n  return typeof handle === 'number';\n}\n\nvar weakSet = typeof WeakSet === 'function' ? WeakSet : class WeakSetPolyFill {\n  constructor() {\n    this._map = new WeakMap();\n  }\n\n  add(val) {\n    this._map.set(val, true);\n\n    return this;\n  }\n\n  delete(val) {\n    return this._map.delete(val);\n  }\n\n  has(val) {\n    return this._map.has(val);\n  }\n\n};\n\nfunction castToSimple(node) {\n  if (isDocument(node)) {\n    return node;\n  } else if (isElement(node)) {\n    return node;\n  } else {\n    return node;\n  }\n}\nfunction castToBrowser(node, sugaryCheck) {\n  if (node === null || node === undefined) {\n    return null;\n  }\n\n  if (typeof document === undefined) {\n    throw new Error('Attempted to cast to a browser node in a non-browser context');\n  }\n\n  if (isDocument(node)) {\n    return node;\n  }\n\n  if (node.ownerDocument !== document) {\n    throw new Error('Attempted to cast to a browser node with a node that was not created from this document');\n  }\n\n  return checkNode(node, sugaryCheck);\n}\n\nfunction checkError(from, check) {\n  return new Error(`cannot cast a ${from} into ${check}`);\n}\n\nfunction isDocument(node) {\n  return node.nodeType === 9\n  /* DOCUMENT_NODE */\n  ;\n}\n\nfunction isElement(node) {\n  return node.nodeType === 1\n  /* ELEMENT_NODE */\n  ;\n}\n\nfunction checkNode(node, check) {\n  let isMatch = false;\n\n  if (node !== null) {\n    if (typeof check === 'string') {\n      isMatch = stringCheckNode(node, check);\n    } else if (Array.isArray(check)) {\n      isMatch = check.some(c => stringCheckNode(node, c));\n    } else {\n      throw unreachable();\n    }\n  }\n\n  if (isMatch) {\n    return node;\n  } else {\n    throw checkError(`SimpleElement(${node})`, check);\n  }\n}\n\nfunction stringCheckNode(node, check) {\n  switch (check) {\n    case 'NODE':\n      return true;\n\n    case 'HTML':\n      return node instanceof HTMLElement;\n\n    case 'SVG':\n      return node instanceof SVGElement;\n\n    case 'ELEMENT':\n      return node instanceof Element;\n\n    default:\n      if (check.toUpperCase() === check) {\n        throw new Error(`BUG: this code is missing handling for a generic node type`);\n      }\n\n      return node instanceof Element && node.tagName.toLowerCase() === check;\n  }\n}\n\nfunction isPresent(list) {\n  return list.length > 0;\n}\nfunction ifPresent(list, ifPresent, otherwise) {\n  if (isPresent(list)) {\n    return ifPresent(list);\n  } else {\n    return otherwise();\n  }\n}\nfunction toPresentOption(list) {\n  if (isPresent(list)) {\n    return list;\n  } else {\n    return null;\n  }\n}\nfunction assertPresent(list, message = `unexpected empty list`) {\n  if (!isPresent(list)) {\n    throw new Error(message);\n  }\n}\nfunction mapPresent(list, callback) {\n  if (list === null) {\n    return null;\n  }\n\n  let out = [];\n\n  for (let item of list) {\n    out.push(callback(item));\n  }\n\n  return out;\n}\n\nfunction buildUntouchableThis(source) {\n  let context = null;\n\n  if (DEBUG && HAS_NATIVE_PROXY) {\n    let assertOnProperty = property => {\n      throw new Error(`You accessed \\`this.${String(property)}\\` from a function passed to the ${source}, but the function itself was not bound to a valid \\`this\\` context. Consider updating to use a bound function (for instance, use an arrow function, \\`() => {}\\`).`);\n    };\n\n    context = new Proxy({}, {\n      get(_target, property) {\n        assertOnProperty(property);\n      },\n\n      set(_target, property) {\n        assertOnProperty(property);\n        return false;\n      },\n\n      has(_target, property) {\n        assertOnProperty(property);\n        return false;\n      }\n\n    });\n  }\n\n  return context;\n}\n\nlet debugToString;\n\nif (DEBUG) {\n  let getFunctionName = fn => {\n    let functionName = fn.name;\n\n    if (functionName === undefined) {\n      let match = Function.prototype.toString.call(fn).match(/function (\\w+)\\s*\\(/);\n      functionName = match && match[1] || '';\n    }\n\n    return functionName.replace(/^bound /, '');\n  };\n\n  let getObjectName = obj => {\n    let name;\n    let className;\n\n    if (obj.constructor && typeof obj.constructor === 'function') {\n      className = getFunctionName(obj.constructor);\n    }\n\n    if ('toString' in obj && obj.toString !== Object.prototype.toString && obj.toString !== Function.prototype.toString) {\n      name = obj.toString();\n    } // If the class has a decent looking name, and the `toString` is one of the\n    // default Ember toStrings, replace the constructor portion of the toString\n    // with the class name. We check the length of the class name to prevent doing\n    // this when the value is minified.\n\n\n    if (name && name.match(/<.*:ember\\d+>/) && className && className[0] !== '_' && className.length > 2 && className !== 'Class') {\n      return name.replace(/<.*:/, `<${className}:`);\n    }\n\n    return name || className;\n  };\n\n  let getPrimitiveName = value => {\n    return String(value);\n  };\n\n  debugToString = value => {\n    if (typeof value === 'function') {\n      return getFunctionName(value) || `(unknown function)`;\n    } else if (typeof value === 'object' && value !== null) {\n      return getObjectName(value) || `(unknown object)`;\n    } else {\n      return getPrimitiveName(value);\n    }\n  };\n}\n\nvar debugToString$1 = debugToString;\n\nlet beginTestSteps;\nlet endTestSteps;\nlet verifySteps;\nlet logStep;\n\n/**\n * This constant exists to make it easier to differentiate normal logs from\n * errant console.logs. LOCAL_LOGGER should only be used inside a\n * LOCAL_SHOULD_LOG check.\n *\n * It does not alleviate the need to check LOCAL_SHOULD_LOG, which is used\n * for stripping.\n */\n\nconst LOCAL_LOGGER = console;\n/**\n * This constant exists to make it easier to differentiate normal logs from\n * errant console.logs. LOGGER can be used outside of LOCAL_SHOULD_LOG checks,\n * and is meant to be used in the rare situation where a console.* call is\n * actually appropriate.\n */\n\nconst LOGGER = console;\nfunction assertNever(value, desc = 'unexpected unreachable branch') {\n  LOGGER.log('unreachable', value);\n  LOGGER.log(`${desc} :: ${JSON.stringify(value)} (${value})`);\n  throw new Error(`code reached unreachable`);\n}\n\nexport { LOCAL_LOGGER, LOGGER, assertNever, debugAssert$$1 as assert, deprecate$$1 as deprecate, dict, isDict, isObject, StackImpl as Stack, isSerializationFirstNode, SERIALIZATION_FIRST_NODE_STRING, assign, fillNulls, values, weakSet as _WeakSet, castToSimple, castToBrowser, checkNode, intern, buildUntouchableThis, debugToString$1 as debugToString, beginTestSteps, endTestSteps, logStep, verifySteps, EMPTY_ARRAY, emptyArray, EMPTY_STRING_ARRAY, EMPTY_NUMBER_ARRAY, isEmptyArray, clearElement, HAS_NATIVE_PROXY, HAS_NATIVE_SYMBOL, keys, unwrap, expect, unreachable, exhausted, tuple, enumerableSymbol, symbol, strip, isHandle, isNonPrimitiveHandle, constants, isSmallInt, encodeNegative, decodeNegative, encodePositive, decodePositive, encodeHandle, decodeHandle, encodeImmediate, decodeImmediate, unwrapHandle, unwrapTemplate, extractHandle, isOkHandle, isErrHandle, isPresent, ifPresent, toPresentOption, assertPresent, mapPresent };\n","import { DEBUG } from '@glimmer/env';\nimport { deprecate, assert, scheduleRevalidate } from '@glimmer/global-context';\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction indexable(input) {\n  return input;\n} // This is a duplicate utility from @glimmer/util because `@glimmer/validator`\n// should not depend on any other @glimmer packages, in order to avoid pulling\n// in types and prevent regressions in `@glimmer/tracking` (which has public types).\n\nconst symbol = typeof Symbol !== 'undefined' ? Symbol : // eslint-disable-next-line @typescript-eslint/no-explicit-any\nkey => `__${key}${Math.floor(Math.random() * Date.now())}__`; // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\nconst symbolFor = typeof Symbol !== 'undefined' ? Symbol.for : key => `__GLIMMER_VALIDATOR_SYMBOL_FOR_${key}`;\nfunction getGlobal() {\n  // eslint-disable-next-line node/no-unsupported-features/es-builtins\n  if (typeof globalThis !== 'undefined') return indexable(globalThis);\n  if (typeof self !== 'undefined') return indexable(self);\n  if (typeof window !== 'undefined') return indexable(window);\n  if (typeof global !== 'undefined') return indexable(global);\n  throw new Error('unable to locate global object');\n}\nfunction unwrap(val) {\n  if (val === null || val === undefined) throw new Error(`Expected value to be present`);\n  return val;\n}\n\nlet beginTrackingTransaction;\nlet endTrackingTransaction;\nlet runInTrackingTransaction;\nlet deprecateMutationsInTrackingTransaction;\nlet resetTrackingTransaction;\nlet setTrackingTransactionEnv;\nlet assertTagNotConsumed;\nlet markTagAsConsumed;\nlet logTrackingStack;\n\nif (DEBUG) {\n  let CONSUMED_TAGS = null;\n  let TRANSACTION_STACK = []; /////////\n\n  let TRANSACTION_ENV = {\n    debugMessage(obj, keyName) {\n      let objName;\n\n      if (typeof obj === 'function') {\n        objName = obj.name;\n      } else if (typeof obj === 'object' && obj !== null) {\n        let className = obj.constructor && obj.constructor.name || '(unknown class)';\n        objName = `(an instance of ${className})`;\n      } else if (obj === undefined) {\n        objName = '(an unknown tag)';\n      } else {\n        objName = String(obj);\n      }\n\n      let dirtyString = keyName ? `\\`${keyName}\\` on \\`${objName}\\`` : `\\`${objName}\\``;\n      return `You attempted to update ${dirtyString}, but it had already been used previously in the same computation.  Attempting to update a value after using it in a computation can cause logical errors, infinite revalidation bugs, and performance issues, and is not supported.`;\n    }\n\n  };\n\n  setTrackingTransactionEnv = env => Object.assign(TRANSACTION_ENV, env);\n\n  beginTrackingTransaction = (_debugLabel, deprecate$$1 = false) => {\n    CONSUMED_TAGS = CONSUMED_TAGS || new WeakMap();\n    let debugLabel = _debugLabel || undefined;\n    let parent = TRANSACTION_STACK[TRANSACTION_STACK.length - 1] || null;\n    TRANSACTION_STACK.push({\n      parent,\n      debugLabel,\n      deprecate: deprecate$$1\n    });\n  };\n\n  endTrackingTransaction = () => {\n    if (TRANSACTION_STACK.length === 0) {\n      throw new Error('attempted to close a tracking transaction, but one was not open');\n    }\n\n    TRANSACTION_STACK.pop();\n\n    if (TRANSACTION_STACK.length === 0) {\n      CONSUMED_TAGS = null;\n    }\n  };\n\n  resetTrackingTransaction = () => {\n    let stack = '';\n\n    if (TRANSACTION_STACK.length > 0) {\n      stack = logTrackingStack(TRANSACTION_STACK[TRANSACTION_STACK.length - 1]);\n    }\n\n    TRANSACTION_STACK = [];\n    CONSUMED_TAGS = null;\n    return stack;\n  };\n  /**\n   * Creates a global autotracking transaction. This will prevent any backflow\n   * in any `track` calls within the transaction, even if they are not\n   * externally consumed.\n   *\n   * `runInAutotrackingTransaction` can be called within itself, and it will add\n   * onto the existing transaction if one exists.\n   *\n   * TODO: Only throw an error if the `track` is consumed.\n   */\n\n\n  runInTrackingTransaction = (fn, debugLabel) => {\n    beginTrackingTransaction(debugLabel);\n    let didError = true;\n\n    try {\n      let value = fn();\n      didError = false;\n      return value;\n    } finally {\n      if (didError !== true) {\n        endTrackingTransaction();\n      }\n    }\n  };\n  /**\n   * Switches to deprecating within an autotracking transaction, if one exists.\n   * If `runInAutotrackingTransaction` is called within the callback of this\n   * method, it switches back to throwing an error, allowing zebra-striping of\n   * the types of errors that are thrown.\n   *\n   * Does not start an autotracking transaction.\n   *\n   * NOTE: For Ember usage only, in general you should assert that these\n   * invariants are true.\n   */\n\n\n  deprecateMutationsInTrackingTransaction = (fn, debugLabel) => {\n    beginTrackingTransaction(debugLabel, true);\n\n    try {\n      fn();\n    } finally {\n      endTrackingTransaction();\n    }\n  };\n\n  let nthIndex = (str, pattern, n, startingPos = -1) => {\n    let i = startingPos;\n\n    while (n-- > 0 && i++ < str.length) {\n      i = str.indexOf(pattern, i);\n      if (i < 0) break;\n    }\n\n    return i;\n  };\n\n  let makeTrackingErrorMessage = (transaction, obj, keyName) => {\n    let message = [TRANSACTION_ENV.debugMessage(obj, keyName && String(keyName))];\n    message.push(`\\`${String(keyName)}\\` was first used:`);\n    message.push(logTrackingStack(transaction));\n    message.push(`Stack trace for the update:`);\n    return message.join('\\n\\n');\n  };\n\n  logTrackingStack = transaction => {\n    let trackingStack = [];\n    let current = transaction || TRANSACTION_STACK[TRANSACTION_STACK.length - 1];\n    if (current === undefined) return '';\n\n    while (current) {\n      if (current.debugLabel) {\n        trackingStack.unshift(current.debugLabel);\n      }\n\n      current = current.parent;\n    } // TODO: Use String.prototype.repeat here once we can drop support for IE11\n\n\n    return trackingStack.map((label, index) => Array(2 * index + 1).join(' ') + label).join('\\n');\n  };\n\n  markTagAsConsumed = _tag => {\n    if (!CONSUMED_TAGS || CONSUMED_TAGS.has(_tag)) return;\n    CONSUMED_TAGS.set(_tag, TRANSACTION_STACK[TRANSACTION_STACK.length - 1]); // We need to mark the tag and all of its subtags as consumed, so we need to\n    // cast it and access its internals. In the future this shouldn't be necessary,\n    // this is only for computed properties.\n\n    let tag = _tag;\n\n    if (tag.subtag) {\n      markTagAsConsumed(tag.subtag);\n    }\n\n    if (tag.subtags) {\n      tag.subtags.forEach(tag => markTagAsConsumed(tag));\n    }\n  };\n\n  assertTagNotConsumed = (tag, obj, keyName) => {\n    if (CONSUMED_TAGS === null) return;\n    let transaction = CONSUMED_TAGS.get(tag);\n    if (!transaction) return;\n    let currentTransaction = TRANSACTION_STACK[TRANSACTION_STACK.length - 1];\n\n    if (currentTransaction.deprecate) {\n      deprecate(makeTrackingErrorMessage(transaction, obj, keyName), false, {\n        id: 'autotracking.mutation-after-consumption'\n      });\n    } else {\n      // This hack makes the assertion message nicer, we can cut off the first\n      // few lines of the stack trace and let users know where the actual error\n      // occurred.\n      try {\n        assert(false, makeTrackingErrorMessage(transaction, obj, keyName));\n      } catch (e) {\n        if (e.stack) {\n          let updateStackBegin = e.stack.indexOf('Stack trace for the update:');\n\n          if (updateStackBegin !== -1) {\n            let start = nthIndex(e.stack, '\\n', 1, updateStackBegin);\n            let end = nthIndex(e.stack, '\\n', 4, updateStackBegin);\n            e.stack = e.stack.substr(0, start) + e.stack.substr(end);\n          }\n        }\n\n        throw e;\n      }\n    }\n  };\n}\n\nconst CONSTANT = 0;\nconst INITIAL = 1;\nconst VOLATILE = NaN;\nlet $REVISION = INITIAL;\nfunction bump() {\n  $REVISION++;\n} //////////\n\nconst COMPUTE = symbol('TAG_COMPUTE'); //////////\n\n/**\n * `value` receives a tag and returns an opaque Revision based on that tag. This\n * snapshot can then later be passed to `validate` with the same tag to\n * determine if the tag has changed at all since the time that `value` was\n * called.\n *\n * @param tag\n */\n\nfunction valueForTag(tag) {\n  return tag[COMPUTE]();\n}\n/**\n * `validate` receives a tag and a snapshot from a previous call to `value` with\n * the same tag, and determines if the tag is still valid compared to the\n * snapshot. If the tag's state has changed at all since then, `validate` will\n * return false, otherwise it will return true. This is used to determine if a\n * calculation related to the tags should be rerun.\n *\n * @param tag\n * @param snapshot\n */\n\nfunction validateTag(tag, snapshot) {\n  return snapshot >= tag[COMPUTE]();\n}\nconst TYPE = symbol('TAG_TYPE'); // this is basically a const\n// eslint-disable-next-line @typescript-eslint/naming-convention\n\nlet ALLOW_CYCLES;\n\nif (DEBUG) {\n  ALLOW_CYCLES = new WeakMap();\n}\n\nfunction allowsCycles(tag) {\n  if (ALLOW_CYCLES === undefined) {\n    return true;\n  } else {\n    return ALLOW_CYCLES.has(tag);\n  }\n}\n\nclass MonomorphicTagImpl {\n  constructor(type) {\n    this.revision = INITIAL;\n    this.lastChecked = INITIAL;\n    this.lastValue = INITIAL;\n    this.isUpdating = false;\n    this.subtag = null;\n    this.subtagBufferCache = null;\n    this[TYPE] = type;\n  }\n\n  static combine(tags) {\n    switch (tags.length) {\n      case 0:\n        return CONSTANT_TAG;\n\n      case 1:\n        return tags[0];\n\n      default:\n        let tag = new MonomorphicTagImpl(2\n        /* Combinator */\n        );\n        tag.subtag = tags;\n        return tag;\n    }\n  }\n\n  [COMPUTE]() {\n    let {\n      lastChecked\n    } = this;\n\n    if (this.isUpdating === true) {\n      if (DEBUG && !allowsCycles(this)) {\n        throw new Error('Cycles in tags are not allowed');\n      }\n\n      this.lastChecked = ++$REVISION;\n    } else if (lastChecked !== $REVISION) {\n      this.isUpdating = true;\n      this.lastChecked = $REVISION;\n\n      try {\n        let {\n          subtag,\n          revision\n        } = this;\n\n        if (subtag !== null) {\n          if (Array.isArray(subtag)) {\n            for (let i = 0; i < subtag.length; i++) {\n              let value = subtag[i][COMPUTE]();\n              revision = Math.max(value, revision);\n            }\n          } else {\n            let subtagValue = subtag[COMPUTE]();\n\n            if (subtagValue === this.subtagBufferCache) {\n              revision = Math.max(revision, this.lastValue);\n            } else {\n              // Clear the temporary buffer cache\n              this.subtagBufferCache = null;\n              revision = Math.max(revision, subtagValue);\n            }\n          }\n        }\n\n        this.lastValue = revision;\n      } finally {\n        this.isUpdating = false;\n      }\n    }\n\n    return this.lastValue;\n  }\n\n  static updateTag(_tag, _subtag) {\n    if (DEBUG && _tag[TYPE] !== 1\n    /* Updatable */\n    ) {\n        throw new Error('Attempted to update a tag that was not updatable');\n      } // TODO: TS 3.7 should allow us to do this via assertion\n\n\n    let tag = _tag;\n    let subtag = _subtag;\n\n    if (subtag === CONSTANT_TAG) {\n      tag.subtag = null;\n    } else {\n      // There are two different possibilities when updating a subtag:\n      //\n      // 1. subtag[COMPUTE]() <= tag[COMPUTE]();\n      // 2. subtag[COMPUTE]() > tag[COMPUTE]();\n      //\n      // The first possibility is completely fine within our caching model, but\n      // the second possibility presents a problem. If the parent tag has\n      // already been read, then it's value is cached and will not update to\n      // reflect the subtag's greater value. Next time the cache is busted, the\n      // subtag's value _will_ be read, and it's value will be _greater_ than\n      // the saved snapshot of the parent, causing the resulting calculation to\n      // be rerun erroneously.\n      //\n      // In order to prevent this, when we first update to a new subtag we store\n      // its computed value, and then check against that computed value on\n      // subsequent updates. If its value hasn't changed, then we return the\n      // parent's previous value. Once the subtag changes for the first time,\n      // we clear the cache and everything is finally in sync with the parent.\n      tag.subtagBufferCache = subtag[COMPUTE]();\n      tag.subtag = subtag;\n    }\n  }\n\n  static dirtyTag(tag, disableConsumptionAssertion) {\n    if (DEBUG && !(tag[TYPE] === 1\n    /* Updatable */\n    || tag[TYPE] === 0\n    /* Dirtyable */\n    )) {\n      throw new Error('Attempted to dirty a tag that was not dirtyable');\n    }\n\n    if (DEBUG && disableConsumptionAssertion !== true) {\n      // Usually by this point, we've already asserted with better error information,\n      // but this is our last line of defense.\n      unwrap(assertTagNotConsumed)(tag);\n    }\n\n    tag.revision = ++$REVISION;\n    scheduleRevalidate();\n  }\n\n}\n\nconst DIRTY_TAG = MonomorphicTagImpl.dirtyTag;\nconst UPDATE_TAG = MonomorphicTagImpl.updateTag; //////////\n\nfunction createTag() {\n  return new MonomorphicTagImpl(0\n  /* Dirtyable */\n  );\n}\nfunction createUpdatableTag() {\n  return new MonomorphicTagImpl(1\n  /* Updatable */\n  );\n} //////////\n\nconst CONSTANT_TAG = new MonomorphicTagImpl(3\n/* Constant */\n);\nfunction isConstTag(tag) {\n  return tag === CONSTANT_TAG;\n} //////////\n\nclass VolatileTag {\n  [COMPUTE]() {\n    return VOLATILE;\n  }\n\n}\nconst VOLATILE_TAG = new VolatileTag(); //////////\n\nclass CurrentTag {\n  [COMPUTE]() {\n    return $REVISION;\n  }\n\n}\nconst CURRENT_TAG = new CurrentTag(); //////////\n\nconst combine = MonomorphicTagImpl.combine; // Warm\n\nlet tag1 = createUpdatableTag();\nlet tag2 = createUpdatableTag();\nlet tag3 = createUpdatableTag();\nvalueForTag(tag1);\nDIRTY_TAG(tag1);\nvalueForTag(tag1);\nUPDATE_TAG(tag1, combine([tag2, tag3]));\nvalueForTag(tag1);\nDIRTY_TAG(tag2);\nvalueForTag(tag1);\nDIRTY_TAG(tag3);\nvalueForTag(tag1);\nUPDATE_TAG(tag1, tag3);\nvalueForTag(tag1);\nDIRTY_TAG(tag3);\nvalueForTag(tag1);\n\nfunction isObjectLike(u) {\n  return typeof u === 'object' && u !== null || typeof u === 'function';\n}\n\nconst TRACKED_TAGS = new WeakMap();\nfunction dirtyTagFor(obj, key, meta) {\n  if (DEBUG && !isObjectLike(obj)) {\n    throw new Error(`BUG: Can't update a tag for a primitive`);\n  }\n\n  let tags = meta === undefined ? TRACKED_TAGS.get(obj) : meta; // No tags have been setup for this object yet, return\n\n  if (tags === undefined) return; // Dirty the tag for the specific property if it exists\n\n  let propertyTag = tags.get(key);\n\n  if (propertyTag !== undefined) {\n    if (DEBUG) {\n      unwrap(assertTagNotConsumed)(propertyTag, obj, key);\n    }\n\n    DIRTY_TAG(propertyTag, true);\n  }\n}\nfunction tagMetaFor(obj) {\n  let tags = TRACKED_TAGS.get(obj);\n\n  if (tags === undefined) {\n    tags = new Map();\n    TRACKED_TAGS.set(obj, tags);\n  }\n\n  return tags;\n}\nfunction tagFor(obj, key, meta) {\n  let tags = meta === undefined ? tagMetaFor(obj) : meta;\n  let tag = tags.get(key);\n\n  if (tag === undefined) {\n    tag = createUpdatableTag();\n    tags.set(key, tag);\n  }\n\n  return tag;\n}\n\n/**\n * An object that that tracks @tracked properties that were consumed.\n */\n\nclass Tracker {\n  constructor() {\n    this.tags = new Set();\n    this.last = null;\n  }\n\n  add(tag) {\n    if (tag === CONSTANT_TAG) return;\n    this.tags.add(tag);\n\n    if (DEBUG) {\n      unwrap(markTagAsConsumed)(tag);\n    }\n\n    this.last = tag;\n  }\n\n  combine() {\n    let {\n      tags\n    } = this;\n\n    if (tags.size === 0) {\n      return CONSTANT_TAG;\n    } else if (tags.size === 1) {\n      return this.last;\n    } else {\n      let tagsArr = [];\n      tags.forEach(tag => tagsArr.push(tag));\n      return combine(tagsArr);\n    }\n  }\n\n}\n/**\n * Whenever a tracked computed property is entered, the current tracker is\n * saved off and a new tracker is replaced.\n *\n * Any tracked properties consumed are added to the current tracker.\n *\n * When a tracked computed property is exited, the tracker's tags are\n * combined and added to the parent tracker.\n *\n * The consequence is that each tracked computed property has a tag\n * that corresponds to the tracked properties consumed inside of\n * itself, including child tracked computed properties.\n */\n\n\nlet CURRENT_TRACKER = null;\nconst OPEN_TRACK_FRAMES = [];\nfunction beginTrackFrame(debuggingContext) {\n  OPEN_TRACK_FRAMES.push(CURRENT_TRACKER);\n  CURRENT_TRACKER = new Tracker();\n\n  if (DEBUG) {\n    unwrap(beginTrackingTransaction)(debuggingContext);\n  }\n}\nfunction endTrackFrame() {\n  let current = CURRENT_TRACKER;\n\n  if (DEBUG) {\n    if (OPEN_TRACK_FRAMES.length === 0) {\n      throw new Error('attempted to close a tracking frame, but one was not open');\n    }\n\n    unwrap(endTrackingTransaction)();\n  }\n\n  CURRENT_TRACKER = OPEN_TRACK_FRAMES.pop() || null;\n  return unwrap(current).combine();\n}\nfunction beginUntrackFrame() {\n  OPEN_TRACK_FRAMES.push(CURRENT_TRACKER);\n  CURRENT_TRACKER = null;\n}\nfunction endUntrackFrame() {\n  if (DEBUG && OPEN_TRACK_FRAMES.length === 0) {\n    throw new Error('attempted to close a tracking frame, but one was not open');\n  }\n\n  CURRENT_TRACKER = OPEN_TRACK_FRAMES.pop() || null;\n} // This function is only for handling errors and resetting to a valid state\n\nfunction resetTracking() {\n  while (OPEN_TRACK_FRAMES.length > 0) {\n    OPEN_TRACK_FRAMES.pop();\n  }\n\n  CURRENT_TRACKER = null;\n\n  if (DEBUG) {\n    return unwrap(resetTrackingTransaction)();\n  }\n}\nfunction isTracking() {\n  return CURRENT_TRACKER !== null;\n}\nfunction consumeTag(tag) {\n  if (CURRENT_TRACKER !== null) {\n    CURRENT_TRACKER.add(tag);\n  }\n} //////////\nconst FN = symbol('FN');\nconst LAST_VALUE = symbol('LAST_VALUE');\nconst TAG = symbol('TAG');\nconst SNAPSHOT = symbol('SNAPSHOT');\nconst DEBUG_LABEL = symbol('DEBUG_LABEL');\nfunction createCache(fn, debuggingLabel) {\n  if (DEBUG && !(typeof fn === 'function')) {\n    throw new Error(`createCache() must be passed a function as its first parameter. Called with: ${String(fn)}`);\n  }\n\n  let cache = {\n    [FN]: fn,\n    [LAST_VALUE]: undefined,\n    [TAG]: undefined,\n    [SNAPSHOT]: -1\n  };\n\n  if (DEBUG) {\n    cache[DEBUG_LABEL] = debuggingLabel;\n  }\n\n  return cache;\n}\nfunction getValue(cache) {\n  assertCache(cache, 'getValue');\n  let fn = cache[FN];\n  let tag = cache[TAG];\n  let snapshot = cache[SNAPSHOT];\n\n  if (tag === undefined || !validateTag(tag, snapshot)) {\n    beginTrackFrame();\n\n    try {\n      cache[LAST_VALUE] = fn();\n    } finally {\n      tag = endTrackFrame();\n      cache[TAG] = tag;\n      cache[SNAPSHOT] = valueForTag(tag);\n      consumeTag(tag);\n    }\n  } else {\n    consumeTag(tag);\n  }\n\n  return cache[LAST_VALUE];\n}\nfunction isConst(cache) {\n  assertCache(cache, 'isConst');\n  let tag = cache[TAG];\n  assertTag(tag, cache);\n  return isConstTag(tag);\n}\n\nfunction assertCache(value, fnName) {\n  if (DEBUG && !(typeof value === 'object' && value !== null && FN in value)) {\n    throw new Error(`${fnName}() can only be used on an instance of a cache created with createCache(). Called with: ${String(value)}`);\n  }\n} // replace this with `expect` when we can\n\n\nfunction assertTag(tag, cache) {\n  if (DEBUG && tag === undefined) {\n    throw new Error(`isConst() can only be used on a cache once getValue() has been called at least once. Called with cache function:\\n\\n${String(cache[FN])}`);\n  }\n} //////////\n// Legacy tracking APIs\n// track() shouldn't be necessary at all in the VM once the autotracking\n// refactors are merged, and we should generally be moving away from it. It may\n// be necessary in Ember for a while longer, but I think we'll be able to drop\n// it in favor of cache sooner rather than later.\n\n\nfunction track(callback, debugLabel) {\n  beginTrackFrame(debugLabel);\n  let tag;\n\n  try {\n    callback();\n  } finally {\n    tag = endTrackFrame();\n  }\n\n  return tag;\n} // untrack() is currently mainly used to handle places that were previously not\n// tracked, and that tracking now would cause backtracking rerender assertions.\n// I think once we move everyone forward onto modern APIs, we'll probably be\n// able to remove it, but I'm not sure yet.\n\nfunction untrack(callback) {\n  beginUntrackFrame();\n\n  try {\n    return callback();\n  } finally {\n    endUntrackFrame();\n  }\n}\n\nfunction trackedData(key, initializer) {\n  let values = new WeakMap();\n  let hasInitializer = typeof initializer === 'function';\n\n  function getter(self) {\n    consumeTag(tagFor(self, key));\n    let value; // If the field has never been initialized, we should initialize it\n\n    if (hasInitializer && !values.has(self)) {\n      value = initializer.call(self);\n      values.set(self, value);\n    } else {\n      value = values.get(self);\n    }\n\n    return value;\n  }\n\n  function setter(self, value) {\n    dirtyTagFor(self, key);\n    values.set(self, value);\n  }\n\n  return {\n    getter,\n    setter\n  };\n}\n\nconst GLIMMER_VALIDATOR_REGISTRATION = symbolFor('GLIMMER_VALIDATOR_REGISTRATION');\nconst globalObj = getGlobal();\n\nif (globalObj[GLIMMER_VALIDATOR_REGISTRATION] === true) {\n  throw new Error('The `@glimmer/validator` library has been included twice in this application. It could be different versions of the package, or the same version included twice by mistake. `@glimmer/validator` depends on having a single copy of the package in use at any time in an application, even if they are the same version. You must dedupe your build to remove the duplicate packages in order to prevent this error.');\n}\n\nglobalObj[GLIMMER_VALIDATOR_REGISTRATION] = true;\n\nexport { ALLOW_CYCLES, bump, combine, COMPUTE, CONSTANT_TAG, CONSTANT, createTag, createUpdatableTag, CurrentTag, CURRENT_TAG, DIRTY_TAG as dirtyTag, INITIAL, isConstTag, UPDATE_TAG as updateTag, validateTag, valueForTag, VolatileTag, VOLATILE_TAG, VOLATILE, dirtyTagFor, tagFor, tagMetaFor, beginTrackFrame, endTrackFrame, beginUntrackFrame, endUntrackFrame, resetTracking, consumeTag, isTracking, track, untrack, createCache, isConst, getValue, trackedData, logTrackingStack, setTrackingTransactionEnv, runInTrackingTransaction, beginTrackingTransaction, endTrackingTransaction, deprecateMutationsInTrackingTransaction };\n","/* This file is generated by build/debug.js */\nfunction isMachineOp(value) {\n  return value >= 0 && value <= 15;\n}\nfunction isOp(value) {\n  return value >= 16;\n}\n\n/**\n * Registers\n *\n * For the most part, these follows MIPS naming conventions, however the\n * register numbers are different.\n */\n// $0 or $pc (program counter): pointer into `program` for the next insturction; -1 means exit\nconst $pc = 0; // $1 or $ra (return address): pointer into `program` for the return\n\nconst $ra = 1; // $2 or $fp (frame pointer): pointer into the `evalStack` for the base of the stack\n\nconst $fp = 2; // $3 or $sp (stack pointer): pointer into the `evalStack` for the top of the stack\n\nconst $sp = 3; // $4-$5 or $s0-$s1 (saved): callee saved general-purpose registers\n\nconst $s0 = 4;\nconst $s1 = 5; // $6-$7 or $t0-$t1 (temporaries): caller saved general-purpose registers\n\nconst $t0 = 6;\nconst $t1 = 7; // $8 or $v0 (return value)\n\nconst $v0 = 8;\nfunction isLowLevelRegister(register) {\n  return register <= $sp;\n}\nvar SavedRegister;\n\n(function (SavedRegister) {\n  SavedRegister[SavedRegister[\"s0\"] = 4] = \"s0\";\n  SavedRegister[SavedRegister[\"s1\"] = 5] = \"s1\";\n})(SavedRegister || (SavedRegister = {}));\n\nvar TemporaryRegister;\n\n(function (TemporaryRegister) {\n  TemporaryRegister[TemporaryRegister[\"t0\"] = 6] = \"t0\";\n  TemporaryRegister[TemporaryRegister[\"t1\"] = 7] = \"t1\";\n})(TemporaryRegister || (TemporaryRegister = {}));\n\nexport { isMachineOp, isOp, SavedRegister, TemporaryRegister, isLowLevelRegister, $pc, $fp, $ra, $sp, $s0, $s1, $t0, $t1, $v0 };\n","function is(variant) {\n  return function (value) {\n    return Array.isArray(value) && value[0] === variant;\n  };\n} // Statements\n\nconst isFlushElement = is(12\n/* FlushElement */\n);\nfunction isAttribute(val) {\n  return val[0] === 14\n  /* StaticAttr */\n  || val[0] === 15\n  /* DynamicAttr */\n  || val[0] === 22\n  /* TrustingDynamicAttr */\n  || val[0] === 16\n  /* ComponentAttr */\n  || val[0] === 24\n  /* StaticComponentAttr */\n  || val[0] === 23\n  /* TrustingComponentAttr */\n  || val[0] === 17\n  /* AttrSplat */\n  || val[0] === 4\n  /* Modifier */\n  ;\n}\nfunction isStringLiteral(expr) {\n  return typeof expr === 'string';\n}\nfunction getStringFromValue(expr) {\n  return expr;\n}\nfunction isArgument(val) {\n  return val[0] === 21\n  /* StaticArg */\n  || val[0] === 20\n  /* DynamicArg */\n  ;\n}\nfunction isHelper(expr) {\n  return Array.isArray(expr) && expr[0] === 28\n  /* Call */\n  ;\n} // Expressions\n\nconst isGet = is(30\n/* GetSymbol */\n);\n\nexport { is, isFlushElement, isAttribute, isStringLiteral, getStringFromValue, isArgument, isHelper, isGet };\n","const EMPTY_ATTRS = [];\nfunction indexOfAttribute(attributes, namespaceURI, localName) {\n    for (let i = 0; i < attributes.length; i++) {\n        const attr = attributes[i];\n        if (attr.namespaceURI === namespaceURI && attr.localName === localName) {\n            return i;\n        }\n    }\n    return -1;\n}\nfunction adjustAttrName(namespaceURI, localName) {\n    return namespaceURI === \"http://www.w3.org/1999/xhtml\" /* HTML */ ? localName.toLowerCase() : localName;\n}\nfunction getAttribute(attributes, namespaceURI, localName) {\n    const index = indexOfAttribute(attributes, namespaceURI, localName);\n    return index === -1 ? null : attributes[index].value;\n}\nfunction removeAttribute(attributes, namespaceURI, localName) {\n    const index = indexOfAttribute(attributes, namespaceURI, localName);\n    if (index !== -1) {\n        attributes.splice(index, 1);\n    }\n}\n// https://dom.spec.whatwg.org/#dom-element-setattributens\nfunction setAttribute(element, namespaceURI, prefix, localName, value) {\n    if (typeof value !== 'string') {\n        value = '' + value;\n    }\n    let { attributes } = element;\n    if (attributes === EMPTY_ATTRS) {\n        attributes = element.attributes = [];\n    }\n    else {\n        const index = indexOfAttribute(attributes, namespaceURI, localName);\n        if (index !== -1) {\n            attributes[index].value = value;\n            return;\n        }\n    }\n    attributes.push({\n        localName,\n        name: prefix === null ? localName : prefix + ':' + localName,\n        namespaceURI,\n        prefix,\n        specified: true,\n        value,\n    });\n}\n\nclass ChildNodes {\n    constructor(node) {\n        this.node = node;\n        this.stale = true;\n        this._length = 0;\n    }\n    get length() {\n        if (this.stale) {\n            this.stale = false;\n            let len = 0;\n            let child = this.node.firstChild;\n            for (; child !== null; len++) {\n                this[len] = child;\n                child = child.nextSibling;\n            }\n            const oldLen = this._length;\n            this._length = len;\n            for (; len < oldLen; len++) {\n                delete this[len];\n            }\n        }\n        return this._length;\n    }\n    item(index) {\n        return index < this.length ? this[index] : null;\n    }\n}\n\nfunction cloneNode(node, deep) {\n    const clone = nodeFrom(node);\n    if (deep) {\n        let child = node.firstChild;\n        let nextChild = child;\n        while (child !== null) {\n            nextChild = child.nextSibling;\n            clone.appendChild(child.cloneNode(true));\n            child = nextChild;\n        }\n    }\n    return clone;\n}\nfunction nodeFrom(node) {\n    let namespaceURI;\n    if (node.nodeType === 1 /* ELEMENT_NODE */) {\n        namespaceURI = node.namespaceURI;\n    }\n    const clone = new SimpleNodeImpl(node.ownerDocument, node.nodeType, node.nodeName, node.nodeValue, namespaceURI);\n    if (node.nodeType === 1 /* ELEMENT_NODE */) {\n        clone.attributes = copyAttrs(node.attributes);\n    }\n    return clone;\n}\nfunction copyAttrs(attrs) {\n    if (attrs === EMPTY_ATTRS) {\n        return EMPTY_ATTRS;\n    }\n    const copy = [];\n    for (let i = 0; i < attrs.length; i++) {\n        const attr = attrs[i];\n        copy.push({\n            localName: attr.localName,\n            name: attr.name,\n            namespaceURI: attr.namespaceURI,\n            prefix: attr.prefix,\n            specified: true,\n            value: attr.value,\n        });\n    }\n    return copy;\n}\n\nfunction insertBefore(parentNode, newChild, refChild) {\n    invalidate(parentNode);\n    insertBetween(parentNode, newChild, refChild === null ? parentNode.lastChild : refChild.previousSibling, refChild);\n}\nfunction removeChild(parentNode, oldChild) {\n    invalidate(parentNode);\n    removeBetween(parentNode, oldChild, oldChild.previousSibling, oldChild.nextSibling);\n}\nfunction invalidate(parentNode) {\n    const childNodes = parentNode._childNodes;\n    if (childNodes !== undefined) {\n        childNodes.stale = true;\n    }\n}\nfunction insertBetween(parentNode, newChild, previousSibling, nextSibling) {\n    if (newChild.nodeType === 11 /* DOCUMENT_FRAGMENT_NODE */) {\n        insertFragment(newChild, parentNode, previousSibling, nextSibling);\n        return;\n    }\n    if (newChild.parentNode !== null) {\n        removeChild(newChild.parentNode, newChild);\n    }\n    newChild.parentNode = parentNode;\n    newChild.previousSibling = previousSibling;\n    newChild.nextSibling = nextSibling;\n    if (previousSibling === null) {\n        parentNode.firstChild = newChild;\n    }\n    else {\n        previousSibling.nextSibling = newChild;\n    }\n    if (nextSibling === null) {\n        parentNode.lastChild = newChild;\n    }\n    else {\n        nextSibling.previousSibling = newChild;\n    }\n}\nfunction removeBetween(parentNode, oldChild, previousSibling, nextSibling) {\n    oldChild.parentNode = null;\n    oldChild.previousSibling = null;\n    oldChild.nextSibling = null;\n    if (previousSibling === null) {\n        parentNode.firstChild = nextSibling;\n    }\n    else {\n        previousSibling.nextSibling = nextSibling;\n    }\n    if (nextSibling === null) {\n        parentNode.lastChild = previousSibling;\n    }\n    else {\n        nextSibling.previousSibling = previousSibling;\n    }\n}\nfunction insertFragment(fragment, parentNode, previousSibling, nextSibling) {\n    const firstChild = fragment.firstChild;\n    if (firstChild === null) {\n        return;\n    }\n    fragment.firstChild = null;\n    fragment.lastChild = null;\n    let lastChild = firstChild;\n    let newChild = firstChild;\n    firstChild.previousSibling = previousSibling;\n    if (previousSibling === null) {\n        parentNode.firstChild = firstChild;\n    }\n    else {\n        previousSibling.nextSibling = firstChild;\n    }\n    while (newChild !== null) {\n        newChild.parentNode = parentNode;\n        lastChild = newChild;\n        newChild = newChild.nextSibling;\n    }\n    lastChild.nextSibling = nextSibling;\n    if (nextSibling === null) {\n        parentNode.lastChild = lastChild;\n    }\n    else {\n        nextSibling.previousSibling = lastChild;\n    }\n}\n\nfunction parseQualifiedName(qualifiedName) {\n    let localName = qualifiedName;\n    let prefix = null;\n    const i = qualifiedName.indexOf(':');\n    if (i !== -1) {\n        prefix = qualifiedName.slice(0, i);\n        localName = qualifiedName.slice(i + 1);\n    }\n    return [prefix, localName];\n}\n\nclass SimpleNodeImpl {\n    constructor(ownerDocument, nodeType, nodeName, nodeValue, namespaceURI) {\n        this.ownerDocument = ownerDocument;\n        this.nodeType = nodeType;\n        this.nodeName = nodeName;\n        this.nodeValue = nodeValue;\n        this.namespaceURI = namespaceURI;\n        this.parentNode = null;\n        this.previousSibling = null;\n        this.nextSibling = null;\n        this.firstChild = null;\n        this.lastChild = null;\n        this.attributes = EMPTY_ATTRS;\n        /**\n         * @internal\n         */\n        this._childNodes = undefined;\n    }\n    get tagName() {\n        return this.nodeName;\n    }\n    get childNodes() {\n        let children = this._childNodes;\n        if (children === undefined) {\n            children = this._childNodes = new ChildNodes(this);\n        }\n        return children;\n    }\n    cloneNode(deep) {\n        return cloneNode(this, deep === true);\n    }\n    appendChild(newChild) {\n        insertBefore(this, newChild, null);\n        return newChild;\n    }\n    insertBefore(newChild, refChild) {\n        insertBefore(this, newChild, refChild);\n        return newChild;\n    }\n    removeChild(oldChild) {\n        removeChild(this, oldChild);\n        return oldChild;\n    }\n    insertAdjacentHTML(position, html) {\n        const raw = new SimpleNodeImpl(this.ownerDocument, -1 /* RAW_NODE */, '#raw', html, void 0);\n        let parentNode;\n        let nextSibling;\n        switch (position) {\n            case 'beforebegin':\n                parentNode = this.parentNode;\n                nextSibling = this;\n                break;\n            case 'afterbegin':\n                parentNode = this;\n                nextSibling = this.firstChild;\n                break;\n            case 'beforeend':\n                parentNode = this;\n                nextSibling = null;\n                break;\n            case 'afterend':\n                parentNode = this.parentNode;\n                nextSibling = this.nextSibling;\n                break;\n            default: throw new Error('invalid position');\n        }\n        if (parentNode === null) {\n            throw new Error(`${position} requires a parentNode`);\n        }\n        insertBefore(parentNode, raw, nextSibling);\n    }\n    getAttribute(name) {\n        const localName = adjustAttrName(this.namespaceURI, name);\n        return getAttribute(this.attributes, null, localName);\n    }\n    getAttributeNS(namespaceURI, localName) {\n        return getAttribute(this.attributes, namespaceURI, localName);\n    }\n    setAttribute(name, value) {\n        const localName = adjustAttrName(this.namespaceURI, name);\n        setAttribute(this, null, null, localName, value);\n    }\n    setAttributeNS(namespaceURI, qualifiedName, value) {\n        const [prefix, localName] = parseQualifiedName(qualifiedName);\n        setAttribute(this, namespaceURI, prefix, localName, value);\n    }\n    removeAttribute(name) {\n        const localName = adjustAttrName(this.namespaceURI, name);\n        removeAttribute(this.attributes, null, localName);\n    }\n    removeAttributeNS(namespaceURI, localName) {\n        removeAttribute(this.attributes, namespaceURI, localName);\n    }\n    get doctype() {\n        return this.firstChild;\n    }\n    get documentElement() {\n        return this.lastChild;\n    }\n    get head() {\n        return this.documentElement.firstChild;\n    }\n    get body() {\n        return this.documentElement.lastChild;\n    }\n    createElement(name) {\n        return new SimpleNodeImpl(this, 1 /* ELEMENT_NODE */, name.toUpperCase(), null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n    }\n    createElementNS(namespace, qualifiedName) {\n        // Node name is case-preserving in XML contexts, but returns canonical uppercase form in HTML contexts\n        // https://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-104682815\n        const nodeName = namespace === \"http://www.w3.org/1999/xhtml\" /* HTML */ ? qualifiedName.toUpperCase() : qualifiedName;\n        // we don't care to parse the qualified name because we only support HTML documents\n        // which don't support prefixed elements\n        return new SimpleNodeImpl(this, 1 /* ELEMENT_NODE */, nodeName, null, namespace);\n    }\n    createTextNode(text) {\n        return new SimpleNodeImpl(this, 3 /* TEXT_NODE */, '#text', text, void 0);\n    }\n    createComment(text) {\n        return new SimpleNodeImpl(this, 8 /* COMMENT_NODE */, '#comment', text, void 0);\n    }\n    /**\n     * Backwards compat\n     * @deprecated\n     */\n    createRawHTMLSection(text) {\n        return new SimpleNodeImpl(this, -1 /* RAW_NODE */, '#raw', text, void 0);\n    }\n    createDocumentFragment() {\n        return new SimpleNodeImpl(this, 11 /* DOCUMENT_FRAGMENT_NODE */, '#document-fragment', null, void 0);\n    }\n}\n\nfunction createHTMLDocument() {\n    // dom.d.ts types ownerDocument as Document but for a document ownerDocument is null\n    const document = new SimpleNodeImpl(null, 9 /* DOCUMENT_NODE */, '#document', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n    const doctype = new SimpleNodeImpl(document, 10 /* DOCUMENT_TYPE_NODE */, 'html', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n    const html = new SimpleNodeImpl(document, 1 /* ELEMENT_NODE */, 'HTML', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n    const head = new SimpleNodeImpl(document, 1 /* ELEMENT_NODE */, 'HEAD', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n    const body = new SimpleNodeImpl(document, 1 /* ELEMENT_NODE */, 'BODY', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n    html.appendChild(head);\n    html.appendChild(body);\n    document.appendChild(doctype);\n    document.appendChild(html);\n    return document;\n}\n\nexport default createHTMLDocument;\n","const SET_TIMEOUT = setTimeout;\nconst NOOP = () => { };\nfunction buildNext(flush) {\n    // Using \"promises first\" here to:\n    //\n    // 1) Ensure more consistent experience on browsers that\n    //    have differently queued microtasks (separate queues for\n    //    MutationObserver vs Promises).\n    // 2) Ensure better debugging experiences (it shows up in Chrome\n    //    call stack as \"Promise.then (async)\") which is more consistent\n    //    with user expectations\n    //\n    // When Promise is unavailable use MutationObserver (mostly so that we\n    // still get microtasks on IE11), and when neither MutationObserver and\n    // Promise are present use a plain old setTimeout.\n    if (typeof Promise === 'function') {\n        const autorunPromise = Promise.resolve();\n        return () => autorunPromise.then(flush);\n    }\n    else if (typeof MutationObserver === 'function') {\n        let iterations = 0;\n        let observer = new MutationObserver(flush);\n        let node = document.createTextNode('');\n        observer.observe(node, { characterData: true });\n        return () => {\n            iterations = ++iterations % 2;\n            node.data = '' + iterations;\n            return iterations;\n        };\n    }\n    else {\n        return () => SET_TIMEOUT(flush, 0);\n    }\n}\nfunction buildPlatform(flush) {\n    let clearNext = NOOP;\n    return {\n        setTimeout(fn, ms) {\n            return setTimeout(fn, ms);\n        },\n        clearTimeout(timerId) {\n            return clearTimeout(timerId);\n        },\n        now() {\n            return Date.now();\n        },\n        next: buildNext(flush),\n        clearNext,\n    };\n}\n\nconst NUMBER = /\\d+/;\nconst TIMERS_OFFSET = 6;\nfunction isCoercableNumber(suspect) {\n    let type = typeof suspect;\n    return type === 'number' && suspect === suspect || type === 'string' && NUMBER.test(suspect);\n}\nfunction getOnError(options) {\n    return options.onError || (options.onErrorTarget && options.onErrorTarget[options.onErrorMethod]);\n}\nfunction findItem(target, method, collection) {\n    let index = -1;\n    for (let i = 0, l = collection.length; i < l; i += 4) {\n        if (collection[i] === target && collection[i + 1] === method) {\n            index = i;\n            break;\n        }\n    }\n    return index;\n}\nfunction findTimerItem(target, method, collection) {\n    let index = -1;\n    for (let i = 2, l = collection.length; i < l; i += 6) {\n        if (collection[i] === target && collection[i + 1] === method) {\n            index = i - 2;\n            break;\n        }\n    }\n    return index;\n}\nfunction getQueueItems(items, queueItemLength, queueItemPositionOffset = 0) {\n    let queueItems = [];\n    for (let i = 0; i < items.length; i += queueItemLength) {\n        let maybeError = items[i + 3 /* stack */ + queueItemPositionOffset];\n        let queueItem = {\n            target: items[i + 0 /* target */ + queueItemPositionOffset],\n            method: items[i + 1 /* method */ + queueItemPositionOffset],\n            args: items[i + 2 /* args */ + queueItemPositionOffset],\n            stack: maybeError !== undefined && 'stack' in maybeError ? maybeError.stack : ''\n        };\n        queueItems.push(queueItem);\n    }\n    return queueItems;\n}\n\nfunction binarySearch(time, timers) {\n    let start = 0;\n    let end = timers.length - TIMERS_OFFSET;\n    let middle;\n    let l;\n    while (start < end) {\n        // since timers is an array of pairs 'l' will always\n        // be an integer\n        l = (end - start) / TIMERS_OFFSET;\n        // compensate for the index in case even number\n        // of pairs inside timers\n        middle = start + l - (l % TIMERS_OFFSET);\n        if (time >= timers[middle]) {\n            start = middle + TIMERS_OFFSET;\n        }\n        else {\n            end = middle;\n        }\n    }\n    return (time >= timers[start]) ? start + TIMERS_OFFSET : start;\n}\n\nconst QUEUE_ITEM_LENGTH = 4;\nclass Queue {\n    constructor(name, options = {}, globalOptions = {}) {\n        this._queueBeingFlushed = [];\n        this.targetQueues = new Map();\n        this.index = 0;\n        this._queue = [];\n        this.name = name;\n        this.options = options;\n        this.globalOptions = globalOptions;\n    }\n    stackFor(index) {\n        if (index < this._queue.length) {\n            let entry = this._queue[index * 3 + QUEUE_ITEM_LENGTH];\n            if (entry) {\n                return entry.stack;\n            }\n            else {\n                return null;\n            }\n        }\n    }\n    flush(sync) {\n        let { before, after } = this.options;\n        let target;\n        let method;\n        let args;\n        let errorRecordedForStack;\n        this.targetQueues.clear();\n        if (this._queueBeingFlushed.length === 0) {\n            this._queueBeingFlushed = this._queue;\n            this._queue = [];\n        }\n        if (before !== undefined) {\n            before();\n        }\n        let invoke;\n        let queueItems = this._queueBeingFlushed;\n        if (queueItems.length > 0) {\n            let onError = getOnError(this.globalOptions);\n            invoke = onError ? this.invokeWithOnError : this.invoke;\n            for (let i = this.index; i < queueItems.length; i += QUEUE_ITEM_LENGTH) {\n                this.index += QUEUE_ITEM_LENGTH;\n                method = queueItems[i + 1];\n                // method could have been nullified / canceled during flush\n                if (method !== null) {\n                    //\n                    //    ** Attention intrepid developer **\n                    //\n                    //    To find out the stack of this task when it was scheduled onto\n                    //    the run loop, add the following to your app.js:\n                    //\n                    //    Ember.run.backburner.DEBUG = true; // NOTE: This slows your app, don't leave it on in production.\n                    //\n                    //    Once that is in place, when you are at a breakpoint and navigate\n                    //    here in the stack explorer, you can look at `errorRecordedForStack.stack`,\n                    //    which will be the captured stack when this job was scheduled.\n                    //\n                    //    One possible long-term solution is the following Chrome issue:\n                    //       https://bugs.chromium.org/p/chromium/issues/detail?id=332624\n                    //\n                    target = queueItems[i];\n                    args = queueItems[i + 2];\n                    errorRecordedForStack = queueItems[i + 3]; // Debugging assistance\n                    invoke(target, method, args, onError, errorRecordedForStack);\n                }\n                if (this.index !== this._queueBeingFlushed.length &&\n                    this.globalOptions.mustYield && this.globalOptions.mustYield()) {\n                    return 1 /* Pause */;\n                }\n            }\n        }\n        if (after !== undefined) {\n            after();\n        }\n        this._queueBeingFlushed.length = 0;\n        this.index = 0;\n        if (sync !== false && this._queue.length > 0) {\n            // check if new items have been added\n            this.flush(true);\n        }\n    }\n    hasWork() {\n        return this._queueBeingFlushed.length > 0 || this._queue.length > 0;\n    }\n    cancel({ target, method }) {\n        let queue = this._queue;\n        let targetQueueMap = this.targetQueues.get(target);\n        if (targetQueueMap !== undefined) {\n            targetQueueMap.delete(method);\n        }\n        let index = findItem(target, method, queue);\n        if (index > -1) {\n            queue.splice(index, QUEUE_ITEM_LENGTH);\n            return true;\n        }\n        // if not found in current queue\n        // could be in the queue that is being flushed\n        queue = this._queueBeingFlushed;\n        index = findItem(target, method, queue);\n        if (index > -1) {\n            queue[index + 1] = null;\n            return true;\n        }\n        return false;\n    }\n    push(target, method, args, stack) {\n        this._queue.push(target, method, args, stack);\n        return {\n            queue: this,\n            target,\n            method\n        };\n    }\n    pushUnique(target, method, args, stack) {\n        let localQueueMap = this.targetQueues.get(target);\n        if (localQueueMap === undefined) {\n            localQueueMap = new Map();\n            this.targetQueues.set(target, localQueueMap);\n        }\n        let index = localQueueMap.get(method);\n        if (index === undefined) {\n            let queueIndex = this._queue.push(target, method, args, stack) - QUEUE_ITEM_LENGTH;\n            localQueueMap.set(method, queueIndex);\n        }\n        else {\n            let queue = this._queue;\n            queue[index + 2] = args; // replace args\n            queue[index + 3] = stack; // replace stack\n        }\n        return {\n            queue: this,\n            target,\n            method\n        };\n    }\n    _getDebugInfo(debugEnabled) {\n        if (debugEnabled) {\n            let debugInfo = getQueueItems(this._queue, QUEUE_ITEM_LENGTH);\n            return debugInfo;\n        }\n        return undefined;\n    }\n    invoke(target, method, args /*, onError, errorRecordedForStack */) {\n        if (args === undefined) {\n            method.call(target);\n        }\n        else {\n            method.apply(target, args);\n        }\n    }\n    invokeWithOnError(target, method, args, onError, errorRecordedForStack) {\n        try {\n            if (args === undefined) {\n                method.call(target);\n            }\n            else {\n                method.apply(target, args);\n            }\n        }\n        catch (error) {\n            onError(error, errorRecordedForStack);\n        }\n    }\n}\n\nclass DeferredActionQueues {\n    constructor(queueNames = [], options) {\n        this.queues = {};\n        this.queueNameIndex = 0;\n        this.queueNames = queueNames;\n        queueNames.reduce(function (queues, queueName) {\n            queues[queueName] = new Queue(queueName, options[queueName], options);\n            return queues;\n        }, this.queues);\n    }\n    /**\n     * @method schedule\n     * @param {String} queueName\n     * @param {Any} target\n     * @param {Any} method\n     * @param {Any} args\n     * @param {Boolean} onceFlag\n     * @param {Any} stack\n     * @return queue\n     */\n    schedule(queueName, target, method, args, onceFlag, stack) {\n        let queues = this.queues;\n        let queue = queues[queueName];\n        if (queue === undefined) {\n            throw new Error(`You attempted to schedule an action in a queue (${queueName}) that doesn\\'t exist`);\n        }\n        if (method === undefined || method === null) {\n            throw new Error(`You attempted to schedule an action in a queue (${queueName}) for a method that doesn\\'t exist`);\n        }\n        this.queueNameIndex = 0;\n        if (onceFlag) {\n            return queue.pushUnique(target, method, args, stack);\n        }\n        else {\n            return queue.push(target, method, args, stack);\n        }\n    }\n    /**\n     * DeferredActionQueues.flush() calls Queue.flush()\n     *\n     * @method flush\n     * @param {Boolean} fromAutorun\n     */\n    flush(fromAutorun = false) {\n        let queue;\n        let queueName;\n        let numberOfQueues = this.queueNames.length;\n        while (this.queueNameIndex < numberOfQueues) {\n            queueName = this.queueNames[this.queueNameIndex];\n            queue = this.queues[queueName];\n            if (queue.hasWork() === false) {\n                this.queueNameIndex++;\n                if (fromAutorun && this.queueNameIndex < numberOfQueues) {\n                    return 1 /* Pause */;\n                }\n            }\n            else {\n                if (queue.flush(false /* async */) === 1 /* Pause */) {\n                    return 1 /* Pause */;\n                }\n            }\n        }\n    }\n    /**\n     * Returns debug information for the current queues.\n     *\n     * @method _getDebugInfo\n     * @param {Boolean} debugEnabled\n     * @returns {IDebugInfo | undefined}\n     */\n    _getDebugInfo(debugEnabled) {\n        if (debugEnabled) {\n            let debugInfo = {};\n            let queue;\n            let queueName;\n            let numberOfQueues = this.queueNames.length;\n            let i = 0;\n            while (i < numberOfQueues) {\n                queueName = this.queueNames[i];\n                queue = this.queues[queueName];\n                debugInfo[queueName] = queue._getDebugInfo(debugEnabled);\n                i++;\n            }\n            return debugInfo;\n        }\n        return;\n    }\n}\n\nfunction iteratorDrain (fn) {\n    let iterator = fn();\n    let result = iterator.next();\n    while (result.done === false) {\n        result.value();\n        result = iterator.next();\n    }\n}\n\nconst noop = function () { };\nconst DISABLE_SCHEDULE = Object.freeze([]);\nfunction parseArgs() {\n    let length = arguments.length;\n    let args;\n    let method;\n    let target;\n    if (length === 0) ;\n    else if (length === 1) {\n        target = null;\n        method = arguments[0];\n    }\n    else {\n        let argsIndex = 2;\n        let methodOrTarget = arguments[0];\n        let methodOrArgs = arguments[1];\n        let type = typeof methodOrArgs;\n        if (type === 'function') {\n            target = methodOrTarget;\n            method = methodOrArgs;\n        }\n        else if (methodOrTarget !== null && type === 'string' && methodOrArgs in methodOrTarget) {\n            target = methodOrTarget;\n            method = target[methodOrArgs];\n        }\n        else if (typeof methodOrTarget === 'function') {\n            argsIndex = 1;\n            target = null;\n            method = methodOrTarget;\n        }\n        if (length > argsIndex) {\n            let len = length - argsIndex;\n            args = new Array(len);\n            for (let i = 0; i < len; i++) {\n                args[i] = arguments[i + argsIndex];\n            }\n        }\n    }\n    return [target, method, args];\n}\nfunction parseTimerArgs() {\n    let [target, method, args] = parseArgs(...arguments);\n    let wait = 0;\n    let length = args !== undefined ? args.length : 0;\n    if (length > 0) {\n        let last = args[length - 1];\n        if (isCoercableNumber(last)) {\n            wait = parseInt(args.pop(), 10);\n        }\n    }\n    return [target, method, args, wait];\n}\nfunction parseDebounceArgs() {\n    let target;\n    let method;\n    let isImmediate;\n    let args;\n    let wait;\n    if (arguments.length === 2) {\n        method = arguments[0];\n        wait = arguments[1];\n        target = null;\n    }\n    else {\n        [target, method, args] = parseArgs(...arguments);\n        if (args === undefined) {\n            wait = 0;\n        }\n        else {\n            wait = args.pop();\n            if (!isCoercableNumber(wait)) {\n                isImmediate = wait === true;\n                wait = args.pop();\n            }\n        }\n    }\n    wait = parseInt(wait, 10);\n    return [target, method, args, wait, isImmediate];\n}\nlet UUID = 0;\nlet beginCount = 0;\nlet endCount = 0;\nlet beginEventCount = 0;\nlet endEventCount = 0;\nlet runCount = 0;\nlet joinCount = 0;\nlet deferCount = 0;\nlet scheduleCount = 0;\nlet scheduleIterableCount = 0;\nlet deferOnceCount = 0;\nlet scheduleOnceCount = 0;\nlet setTimeoutCount = 0;\nlet laterCount = 0;\nlet throttleCount = 0;\nlet debounceCount = 0;\nlet cancelTimersCount = 0;\nlet cancelCount = 0;\nlet autorunsCreatedCount = 0;\nlet autorunsCompletedCount = 0;\nlet deferredActionQueuesCreatedCount = 0;\nlet nestedDeferredActionQueuesCreated = 0;\nclass Backburner {\n    constructor(queueNames, options) {\n        this.DEBUG = false;\n        this.currentInstance = null;\n        this.instanceStack = [];\n        this._eventCallbacks = {\n            end: [],\n            begin: []\n        };\n        this._timerTimeoutId = null;\n        this._timers = [];\n        this._autorun = false;\n        this._autorunStack = null;\n        this.queueNames = queueNames;\n        this.options = options || {};\n        if (typeof this.options.defaultQueue === 'string') {\n            this._defaultQueue = this.options.defaultQueue;\n        }\n        else {\n            this._defaultQueue = this.queueNames[0];\n        }\n        this._onBegin = this.options.onBegin || noop;\n        this._onEnd = this.options.onEnd || noop;\n        this._boundRunExpiredTimers = this._runExpiredTimers.bind(this);\n        this._boundAutorunEnd = () => {\n            autorunsCompletedCount++;\n            // if the autorun was already flushed, do nothing\n            if (this._autorun === false) {\n                return;\n            }\n            this._autorun = false;\n            this._autorunStack = null;\n            this._end(true /* fromAutorun */);\n        };\n        let builder = this.options._buildPlatform || buildPlatform;\n        this._platform = builder(this._boundAutorunEnd);\n    }\n    get counters() {\n        return {\n            begin: beginCount,\n            end: endCount,\n            events: {\n                begin: beginEventCount,\n                end: endEventCount,\n            },\n            autoruns: {\n                created: autorunsCreatedCount,\n                completed: autorunsCompletedCount,\n            },\n            run: runCount,\n            join: joinCount,\n            defer: deferCount,\n            schedule: scheduleCount,\n            scheduleIterable: scheduleIterableCount,\n            deferOnce: deferOnceCount,\n            scheduleOnce: scheduleOnceCount,\n            setTimeout: setTimeoutCount,\n            later: laterCount,\n            throttle: throttleCount,\n            debounce: debounceCount,\n            cancelTimers: cancelTimersCount,\n            cancel: cancelCount,\n            loops: {\n                total: deferredActionQueuesCreatedCount,\n                nested: nestedDeferredActionQueuesCreated,\n            },\n        };\n    }\n    get defaultQueue() {\n        return this._defaultQueue;\n    }\n    /*\n      @method begin\n      @return instantiated class DeferredActionQueues\n    */\n    begin() {\n        beginCount++;\n        let options = this.options;\n        let previousInstance = this.currentInstance;\n        let current;\n        if (this._autorun !== false) {\n            current = previousInstance;\n            this._cancelAutorun();\n        }\n        else {\n            if (previousInstance !== null) {\n                nestedDeferredActionQueuesCreated++;\n                this.instanceStack.push(previousInstance);\n            }\n            deferredActionQueuesCreatedCount++;\n            current = this.currentInstance = new DeferredActionQueues(this.queueNames, options);\n            beginEventCount++;\n            this._trigger('begin', current, previousInstance);\n        }\n        this._onBegin(current, previousInstance);\n        return current;\n    }\n    end() {\n        endCount++;\n        this._end(false);\n    }\n    on(eventName, callback) {\n        if (typeof callback !== 'function') {\n            throw new TypeError(`Callback must be a function`);\n        }\n        let callbacks = this._eventCallbacks[eventName];\n        if (callbacks !== undefined) {\n            callbacks.push(callback);\n        }\n        else {\n            throw new TypeError(`Cannot on() event ${eventName} because it does not exist`);\n        }\n    }\n    off(eventName, callback) {\n        let callbacks = this._eventCallbacks[eventName];\n        if (!eventName || callbacks === undefined) {\n            throw new TypeError(`Cannot off() event ${eventName} because it does not exist`);\n        }\n        let callbackFound = false;\n        if (callback) {\n            for (let i = 0; i < callbacks.length; i++) {\n                if (callbacks[i] === callback) {\n                    callbackFound = true;\n                    callbacks.splice(i, 1);\n                    i--;\n                }\n            }\n        }\n        if (!callbackFound) {\n            throw new TypeError(`Cannot off() callback that does not exist`);\n        }\n    }\n    run() {\n        runCount++;\n        let [target, method, args] = parseArgs(...arguments);\n        return this._run(target, method, args);\n    }\n    join() {\n        joinCount++;\n        let [target, method, args] = parseArgs(...arguments);\n        return this._join(target, method, args);\n    }\n    /**\n     * @deprecated please use schedule instead.\n     */\n    defer(queueName, target, method, ...args) {\n        deferCount++;\n        return this.schedule(queueName, target, method, ...args);\n    }\n    schedule(queueName, ..._args) {\n        scheduleCount++;\n        let [target, method, args] = parseArgs(..._args);\n        let stack = this.DEBUG ? new Error() : undefined;\n        return this._ensureInstance().schedule(queueName, target, method, args, false, stack);\n    }\n    /*\n      Defer the passed iterable of functions to run inside the specified queue.\n  \n      @method scheduleIterable\n      @param {String} queueName\n      @param {Iterable} an iterable of functions to execute\n      @return method result\n    */\n    scheduleIterable(queueName, iterable) {\n        scheduleIterableCount++;\n        let stack = this.DEBUG ? new Error() : undefined;\n        return this._ensureInstance().schedule(queueName, null, iteratorDrain, [iterable], false, stack);\n    }\n    /**\n     * @deprecated please use scheduleOnce instead.\n     */\n    deferOnce(queueName, target, method, ...args) {\n        deferOnceCount++;\n        return this.scheduleOnce(queueName, target, method, ...args);\n    }\n    scheduleOnce(queueName, ..._args) {\n        scheduleOnceCount++;\n        let [target, method, args] = parseArgs(..._args);\n        let stack = this.DEBUG ? new Error() : undefined;\n        return this._ensureInstance().schedule(queueName, target, method, args, true, stack);\n    }\n    setTimeout() {\n        setTimeoutCount++;\n        return this.later(...arguments);\n    }\n    later() {\n        laterCount++;\n        let [target, method, args, wait] = parseTimerArgs(...arguments);\n        return this._later(target, method, args, wait);\n    }\n    throttle() {\n        throttleCount++;\n        let [target, method, args, wait, isImmediate = true] = parseDebounceArgs(...arguments);\n        let index = findTimerItem(target, method, this._timers);\n        let timerId;\n        if (index === -1) {\n            timerId = this._later(target, method, isImmediate ? DISABLE_SCHEDULE : args, wait);\n            if (isImmediate) {\n                this._join(target, method, args);\n            }\n        }\n        else {\n            timerId = this._timers[index + 1];\n            let argIndex = index + 4;\n            if (this._timers[argIndex] !== DISABLE_SCHEDULE) {\n                this._timers[argIndex] = args;\n            }\n        }\n        return timerId;\n    }\n    debounce() {\n        debounceCount++;\n        let [target, method, args, wait, isImmediate = false] = parseDebounceArgs(...arguments);\n        let _timers = this._timers;\n        let index = findTimerItem(target, method, _timers);\n        let timerId;\n        if (index === -1) {\n            timerId = this._later(target, method, isImmediate ? DISABLE_SCHEDULE : args, wait);\n            if (isImmediate) {\n                this._join(target, method, args);\n            }\n        }\n        else {\n            let executeAt = this._platform.now() + wait;\n            let argIndex = index + 4;\n            if (_timers[argIndex] === DISABLE_SCHEDULE) {\n                args = DISABLE_SCHEDULE;\n            }\n            timerId = _timers[index + 1];\n            let i = binarySearch(executeAt, _timers);\n            if ((index + TIMERS_OFFSET) === i) {\n                _timers[index] = executeAt;\n                _timers[argIndex] = args;\n            }\n            else {\n                let stack = this._timers[index + 5];\n                this._timers.splice(i, 0, executeAt, timerId, target, method, args, stack);\n                this._timers.splice(index, TIMERS_OFFSET);\n            }\n            if (index === 0) {\n                this._reinstallTimerTimeout();\n            }\n        }\n        return timerId;\n    }\n    cancelTimers() {\n        cancelTimersCount++;\n        this._clearTimerTimeout();\n        this._timers = [];\n        this._cancelAutorun();\n    }\n    hasTimers() {\n        return this._timers.length > 0 || this._autorun;\n    }\n    cancel(timer) {\n        cancelCount++;\n        if (timer === null || timer === undefined) {\n            return false;\n        }\n        let timerType = typeof timer;\n        if (timerType === 'number') { // we're cancelling a setTimeout or throttle or debounce\n            return this._cancelLaterTimer(timer);\n        }\n        else if (timerType === 'object' && timer.queue && timer.method) { // we're cancelling a deferOnce\n            return timer.queue.cancel(timer);\n        }\n        return false;\n    }\n    ensureInstance() {\n        this._ensureInstance();\n    }\n    /**\n     * Returns debug information related to the current instance of Backburner\n     *\n     * @method getDebugInfo\n     * @returns {Object | undefined} Will return and Object containing debug information if\n     * the DEBUG flag is set to true on the current instance of Backburner, else undefined.\n     */\n    getDebugInfo() {\n        if (this.DEBUG) {\n            return {\n                autorun: this._autorunStack,\n                counters: this.counters,\n                timers: getQueueItems(this._timers, TIMERS_OFFSET, 2),\n                instanceStack: [this.currentInstance, ...this.instanceStack]\n                    .map((deferredActionQueue) => deferredActionQueue && deferredActionQueue._getDebugInfo(this.DEBUG))\n            };\n        }\n        return undefined;\n    }\n    _end(fromAutorun) {\n        let currentInstance = this.currentInstance;\n        let nextInstance = null;\n        if (currentInstance === null) {\n            throw new Error(`end called without begin`);\n        }\n        // Prevent double-finally bug in Safari 6.0.2 and iOS 6\n        // This bug appears to be resolved in Safari 6.0.5 and iOS 7\n        let finallyAlreadyCalled = false;\n        let result;\n        try {\n            result = currentInstance.flush(fromAutorun);\n        }\n        finally {\n            if (!finallyAlreadyCalled) {\n                finallyAlreadyCalled = true;\n                if (result === 1 /* Pause */) {\n                    const plannedNextQueue = this.queueNames[currentInstance.queueNameIndex];\n                    this._scheduleAutorun(plannedNextQueue);\n                }\n                else {\n                    this.currentInstance = null;\n                    if (this.instanceStack.length > 0) {\n                        nextInstance = this.instanceStack.pop();\n                        this.currentInstance = nextInstance;\n                    }\n                    this._trigger('end', currentInstance, nextInstance);\n                    this._onEnd(currentInstance, nextInstance);\n                }\n            }\n        }\n    }\n    _join(target, method, args) {\n        if (this.currentInstance === null) {\n            return this._run(target, method, args);\n        }\n        if (target === undefined && args === undefined) {\n            return method();\n        }\n        else {\n            return method.apply(target, args);\n        }\n    }\n    _run(target, method, args) {\n        let onError = getOnError(this.options);\n        this.begin();\n        if (onError) {\n            try {\n                return method.apply(target, args);\n            }\n            catch (error) {\n                onError(error);\n            }\n            finally {\n                this.end();\n            }\n        }\n        else {\n            try {\n                return method.apply(target, args);\n            }\n            finally {\n                this.end();\n            }\n        }\n    }\n    _cancelAutorun() {\n        if (this._autorun) {\n            this._platform.clearNext();\n            this._autorun = false;\n            this._autorunStack = null;\n        }\n    }\n    _later(target, method, args, wait) {\n        let stack = this.DEBUG ? new Error() : undefined;\n        let executeAt = this._platform.now() + wait;\n        let id = UUID++;\n        if (this._timers.length === 0) {\n            this._timers.push(executeAt, id, target, method, args, stack);\n            this._installTimerTimeout();\n        }\n        else {\n            // find position to insert\n            let i = binarySearch(executeAt, this._timers);\n            this._timers.splice(i, 0, executeAt, id, target, method, args, stack);\n            // always reinstall since it could be out of sync\n            this._reinstallTimerTimeout();\n        }\n        return id;\n    }\n    _cancelLaterTimer(timer) {\n        for (let i = 1; i < this._timers.length; i += TIMERS_OFFSET) {\n            if (this._timers[i] === timer) {\n                this._timers.splice(i - 1, TIMERS_OFFSET);\n                if (i === 1) {\n                    this._reinstallTimerTimeout();\n                }\n                return true;\n            }\n        }\n        return false;\n    }\n    /**\n     Trigger an event. Supports up to two arguments. Designed around\n     triggering transition events from one run loop instance to the\n     next, which requires an argument for the  instance and then\n     an argument for the next instance.\n  \n     @private\n     @method _trigger\n     @param {String} eventName\n     @param {any} arg1\n     @param {any} arg2\n     */\n    _trigger(eventName, arg1, arg2) {\n        let callbacks = this._eventCallbacks[eventName];\n        if (callbacks !== undefined) {\n            for (let i = 0; i < callbacks.length; i++) {\n                callbacks[i](arg1, arg2);\n            }\n        }\n    }\n    _runExpiredTimers() {\n        this._timerTimeoutId = null;\n        if (this._timers.length > 0) {\n            this.begin();\n            this._scheduleExpiredTimers();\n            this.end();\n        }\n    }\n    _scheduleExpiredTimers() {\n        let timers = this._timers;\n        let i = 0;\n        let l = timers.length;\n        let defaultQueue = this._defaultQueue;\n        let n = this._platform.now();\n        for (; i < l; i += TIMERS_OFFSET) {\n            let executeAt = timers[i];\n            if (executeAt > n) {\n                break;\n            }\n            let args = timers[i + 4];\n            if (args !== DISABLE_SCHEDULE) {\n                let target = timers[i + 2];\n                let method = timers[i + 3];\n                let stack = timers[i + 5];\n                this.currentInstance.schedule(defaultQueue, target, method, args, false, stack);\n            }\n        }\n        timers.splice(0, i);\n        this._installTimerTimeout();\n    }\n    _reinstallTimerTimeout() {\n        this._clearTimerTimeout();\n        this._installTimerTimeout();\n    }\n    _clearTimerTimeout() {\n        if (this._timerTimeoutId === null) {\n            return;\n        }\n        this._platform.clearTimeout(this._timerTimeoutId);\n        this._timerTimeoutId = null;\n    }\n    _installTimerTimeout() {\n        if (this._timers.length === 0) {\n            return;\n        }\n        let minExpiresAt = this._timers[0];\n        let n = this._platform.now();\n        let wait = Math.max(0, minExpiresAt - n);\n        this._timerTimeoutId = this._platform.setTimeout(this._boundRunExpiredTimers, wait);\n    }\n    _ensureInstance() {\n        let currentInstance = this.currentInstance;\n        if (currentInstance === null) {\n            this._autorunStack = this.DEBUG ? new Error() : undefined;\n            currentInstance = this.begin();\n            this._scheduleAutorun(this.queueNames[0]);\n        }\n        return currentInstance;\n    }\n    _scheduleAutorun(plannedNextQueue) {\n        autorunsCreatedCount++;\n        const next = this._platform.next;\n        const flush = this.options.flush;\n        if (flush) {\n            flush(plannedNextQueue, next);\n        }\n        else {\n            next();\n        }\n        this._autorun = true;\n    }\n}\nBackburner.Queue = Queue;\nBackburner.buildPlatform = buildPlatform;\nBackburner.buildNext = buildNext;\n\nexport default Backburner;\nexport { buildPlatform };\n//# sourceMappingURL=backburner.js.map\n","/**\n * A topologically ordered map of key/value pairs with a simple API for adding constraints.\n *\n * Edges can forward reference keys that have not been added yet (the forward reference will\n * map the key to undefined).\n */\nvar DAG = (function () {\n    function DAG() {\n        this._vertices = new Vertices();\n    }\n    /**\n     * Adds a key/value pair with dependencies on other key/value pairs.\n     *\n     * @public\n     * @param key    The key of the vertex to be added.\n     * @param value  The value of that vertex.\n     * @param before A key or array of keys of the vertices that must\n     *               be visited before this vertex.\n     * @param after  An string or array of strings with the keys of the\n     *               vertices that must be after this vertex is visited.\n     */\n    DAG.prototype.add = function (key, value, before, after) {\n        if (!key)\n            throw new Error('argument `key` is required');\n        var vertices = this._vertices;\n        var v = vertices.add(key);\n        v.val = value;\n        if (before) {\n            if (typeof before === \"string\") {\n                vertices.addEdge(v, vertices.add(before));\n            }\n            else {\n                for (var i = 0; i < before.length; i++) {\n                    vertices.addEdge(v, vertices.add(before[i]));\n                }\n            }\n        }\n        if (after) {\n            if (typeof after === \"string\") {\n                vertices.addEdge(vertices.add(after), v);\n            }\n            else {\n                for (var i = 0; i < after.length; i++) {\n                    vertices.addEdge(vertices.add(after[i]), v);\n                }\n            }\n        }\n    };\n    /**\n     * @deprecated please use add.\n     */\n    DAG.prototype.addEdges = function (key, value, before, after) {\n        this.add(key, value, before, after);\n    };\n    /**\n     * Visits key/value pairs in topological order.\n     *\n     * @public\n     * @param callback The function to be invoked with each key/value.\n     */\n    DAG.prototype.each = function (callback) {\n        this._vertices.walk(callback);\n    };\n    /**\n     * @deprecated please use each.\n     */\n    DAG.prototype.topsort = function (callback) {\n        this.each(callback);\n    };\n    return DAG;\n}());\nexport default DAG;\n/** @private */\nvar Vertices = (function () {\n    function Vertices() {\n        this.length = 0;\n        this.stack = new IntStack();\n        this.path = new IntStack();\n        this.result = new IntStack();\n    }\n    Vertices.prototype.add = function (key) {\n        if (!key)\n            throw new Error(\"missing key\");\n        var l = this.length | 0;\n        var vertex;\n        for (var i = 0; i < l; i++) {\n            vertex = this[i];\n            if (vertex.key === key)\n                return vertex;\n        }\n        this.length = l + 1;\n        return this[l] = {\n            idx: l,\n            key: key,\n            val: undefined,\n            out: false,\n            flag: false,\n            length: 0\n        };\n    };\n    Vertices.prototype.addEdge = function (v, w) {\n        this.check(v, w.key);\n        var l = w.length | 0;\n        for (var i = 0; i < l; i++) {\n            if (w[i] === v.idx)\n                return;\n        }\n        w.length = l + 1;\n        w[l] = v.idx;\n        v.out = true;\n    };\n    Vertices.prototype.walk = function (cb) {\n        this.reset();\n        for (var i = 0; i < this.length; i++) {\n            var vertex = this[i];\n            if (vertex.out)\n                continue;\n            this.visit(vertex, \"\");\n        }\n        this.each(this.result, cb);\n    };\n    Vertices.prototype.check = function (v, w) {\n        if (v.key === w) {\n            throw new Error(\"cycle detected: \" + w + \" <- \" + w);\n        }\n        // quick check\n        if (v.length === 0)\n            return;\n        // shallow check\n        for (var i = 0; i < v.length; i++) {\n            var key = this[v[i]].key;\n            if (key === w) {\n                throw new Error(\"cycle detected: \" + w + \" <- \" + v.key + \" <- \" + w);\n            }\n        }\n        // deep check\n        this.reset();\n        this.visit(v, w);\n        if (this.path.length > 0) {\n            var msg_1 = \"cycle detected: \" + w;\n            this.each(this.path, function (key) {\n                msg_1 += \" <- \" + key;\n            });\n            throw new Error(msg_1);\n        }\n    };\n    Vertices.prototype.reset = function () {\n        this.stack.length = 0;\n        this.path.length = 0;\n        this.result.length = 0;\n        for (var i = 0, l = this.length; i < l; i++) {\n            this[i].flag = false;\n        }\n    };\n    Vertices.prototype.visit = function (start, search) {\n        var _a = this, stack = _a.stack, path = _a.path, result = _a.result;\n        stack.push(start.idx);\n        while (stack.length) {\n            var index = stack.pop() | 0;\n            if (index >= 0) {\n                // enter\n                var vertex = this[index];\n                if (vertex.flag)\n                    continue;\n                vertex.flag = true;\n                path.push(index);\n                if (search === vertex.key)\n                    break;\n                // push exit\n                stack.push(~index);\n                this.pushIncoming(vertex);\n            }\n            else {\n                // exit\n                path.pop();\n                result.push(~index);\n            }\n        }\n    };\n    Vertices.prototype.pushIncoming = function (incomming) {\n        var stack = this.stack;\n        for (var i = incomming.length - 1; i >= 0; i--) {\n            var index = incomming[i];\n            if (!this[index].flag) {\n                stack.push(index);\n            }\n        }\n    };\n    Vertices.prototype.each = function (indices, cb) {\n        for (var i = 0, l = indices.length; i < l; i++) {\n            var vertex = this[indices[i]];\n            cb(vertex.key, vertex.val);\n        }\n    };\n    return Vertices;\n}());\n/** @private */\nvar IntStack = (function () {\n    function IntStack() {\n        this.length = 0;\n    }\n    IntStack.prototype.push = function (n) {\n        this[this.length++] = n | 0;\n    };\n    IntStack.prototype.pop = function () {\n        return this[--this.length] | 0;\n    };\n    return IntStack;\n}());\n","/* globals Reflect */\n\nimport { DEBUG } from '@glimmer/env';\n\nconst setPrototypeOf = Object.setPrototypeOf;\nconst getPrototypeOf = Object.getPrototypeOf;\n\nconst hasReflectConstruct = typeof Reflect === 'object' && typeof Reflect.construct === 'function';\n\nconst nativeWrapperCache = new Map();\n\n// Super minimal version of Babel's wrapNativeSuper. We only use this for\n// extending Function, for ComputedDecoratorImpl and AliasDecoratorImpl. We know\n// we will never directly create an instance of these classes so no need to\n// include `construct` code or other helpers.\nexport function wrapNativeSuper(Class) {\n  if (nativeWrapperCache.has(Class)) {\n    return nativeWrapperCache.get(Class);\n  }\n\n  function Wrapper() {}\n  Wrapper.prototype = Object.create(Class.prototype, {\n    constructor: {\n      value: Wrapper,\n      enumerable: false,\n      writable: true,\n      configurable: true,\n    },\n  });\n\n  nativeWrapperCache.set(Class, Wrapper);\n\n  return setPrototypeOf(Wrapper, Class);\n}\n\nexport function classCallCheck(instance, Constructor) {\n  if (DEBUG) {\n    if (!(instance instanceof Constructor)) {\n      throw new TypeError('Cannot call a class as a function');\n    }\n  }\n}\n\n/*\n  Overrides default `inheritsLoose` to _also_ call `Object.setPrototypeOf`.\n  This is needed so that we can use `loose` option with the\n  `@babel/plugin-transform-classes` (because we want simple assignment to the\n  prototype wherever possible) but also keep our constructor based prototypal\n  inheritance working properly\n*/\nexport function inheritsLoose(subClass, superClass) {\n  if (DEBUG) {\n    if (typeof superClass !== 'function' && superClass !== null) {\n      throw new TypeError('Super expression must either be null or a function');\n    }\n  }\n  subClass.prototype = Object.create(superClass === null ? null : superClass.prototype, {\n    constructor: {\n      value: subClass,\n      writable: true,\n      configurable: true,\n    },\n  });\n  if (superClass !== null) {\n    setPrototypeOf(subClass, superClass);\n  }\n}\n\nexport function taggedTemplateLiteralLoose(strings, raw) {\n  if (!raw) {\n    raw = strings.slice(0);\n  }\n  strings.raw = raw;\n  return strings;\n}\n\nfunction _defineProperties(target, props) {\n  for (let i = 0; i < props.length; i++) {\n    let descriptor = props[i];\n    descriptor.enumerable = descriptor.enumerable || false;\n    descriptor.configurable = true;\n    if ('value' in descriptor) descriptor.writable = true;\n    Object.defineProperty(target, descriptor.key, descriptor);\n  }\n}\n\n/*\n  Differs from default implementation by avoiding boolean coercion of\n  `protoProps` and `staticProps`.\n*/\nexport function createClass(Constructor, protoProps, staticProps) {\n  if (protoProps !== null && protoProps !== undefined) {\n    _defineProperties(Constructor.prototype, protoProps);\n  }\n\n  if (staticProps !== null && staticProps !== undefined) {\n    _defineProperties(Constructor, staticProps);\n  }\n\n  return Constructor;\n}\n\nexport function assertThisInitialized(self) {\n  if (DEBUG && self === void 0) {\n    throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  }\n  return self;\n}\n\n/*\n  Adds `DEBUG` guard to error being thrown, and avoids boolean coercion of `call`.\n*/\nexport function possibleConstructorReturn(self, call) {\n  if ((typeof call === 'object' && call !== null) || typeof call === 'function') {\n    return call;\n  }\n  return assertThisInitialized(self);\n}\n\nexport function objectDestructuringEmpty(obj) {\n  if (DEBUG && (obj === null || obj === undefined)) {\n    throw new TypeError('Cannot destructure undefined');\n  }\n}\n\n/*\n  Differs from default implementation by checking for _any_ `Reflect.construct`\n  (the default implementation tries to ensure that `Reflect.construct` is truly\n  the native one).\n\n  Original source: https://github.com/babel/babel/blob/v7.9.2/packages/babel-helpers/src/helpers.js#L738-L757\n*/\nexport function createSuper(Derived) {\n  return function () {\n    let Super = getPrototypeOf(Derived);\n    let result;\n\n    if (hasReflectConstruct) {\n      // NOTE: This doesn't work if this.__proto__.constructor has been modified.\n      let NewTarget = getPrototypeOf(this).constructor;\n      result = Reflect.construct(Super, arguments, NewTarget);\n    } else {\n      result = Super.apply(this, arguments);\n    }\n\n    return possibleConstructorReturn(this, result);\n  };\n}\n\n/*\n  Does not differ from default implementation.\n*/\nfunction arrayLikeToArray(arr, len) {\n  if (len == null || len > arr.length) len = arr.length;\n\n  let arr2 = new Array(len);\n  for (let i = 0; i < len; i++) {\n    arr2[i] = arr[i];\n  }\n\n  return arr2;\n}\n\n/*\n  Does not differ from default implementation.\n*/\nfunction unsupportedIterableToArray(o, minLen) {\n  if (!o) return;\n  if (typeof o === 'string') return arrayLikeToArray(o, minLen);\n  let n = Object.prototype.toString.call(o).slice(8, -1);\n  if (n === 'Object' && o.constructor) n = o.constructor.name;\n  if (n === 'Map' || n === 'Set') return Array.from(n);\n  if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))\n    return arrayLikeToArray(o, minLen);\n}\n\n/*\n  Does not differ from default implementation.\n*/\nexport function createForOfIteratorHelperLoose(o) {\n  let i = 0;\n  if (typeof Symbol === 'undefined' || o[Symbol.iterator] == null) {\n    // Fallback for engines without symbol support\n    if (Array.isArray(o) || (o = unsupportedIterableToArray(o)))\n      return function () {\n        if (i >= o.length) return { done: true };\n        return { done: false, value: o[i++] };\n      };\n    throw new TypeError(\n      'Invalid attempt to iterate non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'\n    );\n  }\n  i = o[Symbol.iterator]();\n  return i.next.bind(i);\n}\n","export { default as Test } from './lib/test';\nexport { default as Adapter } from './lib/adapters/adapter';\nexport { default as setupForTesting } from './lib/setup_for_testing';\nexport { default as QUnitAdapter } from './lib/adapters/qunit';\nimport './lib/support'; // to handle various edge cases\n\nimport './lib/ext/application';\nimport './lib/ext/rsvp'; // setup RSVP + run loop integration\n\nimport './lib/helpers'; // adds helpers to helpers object in Test\n\nimport './lib/initializers'; // to setup initializer","import { Object as EmberObject } from '@ember/-internals/runtime';\n\nfunction K() {\n  return this;\n}\n/**\n @module @ember/test\n*/\n\n/**\n  The primary purpose of this class is to create hooks that can be implemented\n  by an adapter for various test frameworks.\n\n  @class TestAdapter\n  @public\n*/\n\n\nexport default EmberObject.extend({\n  /**\n    This callback will be called whenever an async operation is about to start.\n     Override this to call your framework's methods that handle async\n    operations.\n     @public\n    @method asyncStart\n  */\n  asyncStart: K,\n\n  /**\n    This callback will be called whenever an async operation has completed.\n     @public\n    @method asyncEnd\n  */\n  asyncEnd: K,\n\n  /**\n    Override this method with your testing framework's false assertion.\n    This function is called whenever an exception occurs causing the testing\n    promise to fail.\n     QUnit example:\n     ```javascript\n      exception: function(error) {\n        ok(false, error);\n      };\n    ```\n     @public\n    @method exception\n    @param {String} error The exception to be raised.\n  */\n  exception(error) {\n    throw error;\n  }\n\n});","/* globals QUnit */\nimport { inspect } from '@ember/-internals/utils';\nimport Adapter from './adapter';\n/**\n   @module ember\n*/\n\n/**\n  This class implements the methods defined by TestAdapter for the\n  QUnit testing framework.\n\n  @class QUnitAdapter\n  @namespace Ember.Test\n  @extends TestAdapter\n  @public\n*/\n\nexport default Adapter.extend({\n  init() {\n    this.doneCallbacks = [];\n  },\n\n  asyncStart() {\n    if (typeof QUnit.stop === 'function') {\n      // very old QUnit version\n      QUnit.stop();\n    } else {\n      this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);\n    }\n  },\n\n  asyncEnd() {\n    // checking for QUnit.stop here (even though we _need_ QUnit.start) because\n    // QUnit.start() still exists in QUnit 2.x (it just throws an error when calling\n    // inside a test context)\n    if (typeof QUnit.stop === 'function') {\n      QUnit.start();\n    } else {\n      let done = this.doneCallbacks.pop(); // This can be null if asyncStart() was called outside of a test\n\n      if (done) {\n        done();\n      }\n    }\n  },\n\n  exception(error) {\n    QUnit.config.current.assert.ok(false, inspect(error));\n  }\n\n});","import { run } from '@ember/runloop';\nimport { assign } from '@ember/polyfills';\nimport isFormControl from './helpers/-is-form-control';\nconst DEFAULT_EVENT_OPTIONS = {\n  canBubble: true,\n  cancelable: true\n};\nconst KEYBOARD_EVENT_TYPES = ['keydown', 'keypress', 'keyup'];\nconst MOUSE_EVENT_TYPES = ['click', 'mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover'];\nexport function focus(el) {\n  if (!el) {\n    return;\n  }\n\n  if (el.isContentEditable || isFormControl(el)) {\n    let type = el.getAttribute('type');\n\n    if (type !== 'checkbox' && type !== 'radio' && type !== 'hidden') {\n      run(null, function () {\n        let browserIsNotFocused = document.hasFocus && !document.hasFocus(); // makes `document.activeElement` be `element`. If the browser is focused, it also fires a focus event\n\n        el.focus(); // Firefox does not trigger the `focusin` event if the window\n        // does not have focus. If the document does not have focus then\n        // fire `focusin` event as well.\n\n        if (browserIsNotFocused) {\n          // if the browser is not focused the previous `el.focus()` didn't fire an event, so we simulate it\n          fireEvent(el, 'focus', {\n            bubbles: false\n          });\n          fireEvent(el, 'focusin');\n        }\n      });\n    }\n  }\n}\nexport function fireEvent(element, type, options = {}) {\n  if (!element) {\n    return;\n  }\n\n  let event;\n\n  if (KEYBOARD_EVENT_TYPES.indexOf(type) > -1) {\n    event = buildKeyboardEvent(type, options);\n  } else if (MOUSE_EVENT_TYPES.indexOf(type) > -1) {\n    let rect = element.getBoundingClientRect();\n    let x = rect.left + 1;\n    let y = rect.top + 1;\n    let simulatedCoordinates = {\n      screenX: x + 5,\n      screenY: y + 95,\n      clientX: x,\n      clientY: y\n    };\n    event = buildMouseEvent(type, assign(simulatedCoordinates, options));\n  } else {\n    event = buildBasicEvent(type, options);\n  }\n\n  element.dispatchEvent(event);\n}\n\nfunction buildBasicEvent(type, options = {}) {\n  let event = document.createEvent('Events'); // Event.bubbles is read only\n\n  let bubbles = options.bubbles !== undefined ? options.bubbles : true;\n  let cancelable = options.cancelable !== undefined ? options.cancelable : true;\n  delete options.bubbles;\n  delete options.cancelable;\n  event.initEvent(type, bubbles, cancelable);\n  assign(event, options);\n  return event;\n}\n\nfunction buildMouseEvent(type, options = {}) {\n  let event;\n\n  try {\n    event = document.createEvent('MouseEvents');\n    let eventOpts = assign({}, DEFAULT_EVENT_OPTIONS, options);\n    event.initMouseEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.detail, eventOpts.screenX, eventOpts.screenY, eventOpts.clientX, eventOpts.clientY, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.button, eventOpts.relatedTarget);\n  } catch (e) {\n    event = buildBasicEvent(type, options);\n  }\n\n  return event;\n}\n\nfunction buildKeyboardEvent(type, options = {}) {\n  let event;\n\n  try {\n    event = document.createEvent('KeyEvents');\n    let eventOpts = assign({}, DEFAULT_EVENT_OPTIONS, options);\n    event.initKeyEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.keyCode, eventOpts.charCode);\n  } catch (e) {\n    event = buildBasicEvent(type, options);\n  }\n\n  return event;\n}","import EmberApplication from '@ember/application';\nimport setupForTesting from '../setup_for_testing';\nimport { helpers } from '../test/helpers';\nimport TestPromise, { resolve, getLastPromise } from '../test/promise';\nimport run from '../test/run';\nimport { invokeInjectHelpersCallbacks } from '../test/on_inject_helpers';\nimport { asyncStart, asyncEnd } from '../test/adapter';\nEmberApplication.reopen({\n  /**\n   This property contains the testing helpers for the current application. These\n   are created once you call `injectTestHelpers` on your `Application`\n   instance. The included helpers are also available on the `window` object by\n   default, but can be used from this object on the individual application also.\n     @property testHelpers\n    @type {Object}\n    @default {}\n    @public\n  */\n  testHelpers: {},\n\n  /**\n   This property will contain the original methods that were registered\n   on the `helperContainer` before `injectTestHelpers` is called.\n    When `removeTestHelpers` is called, these methods are restored to the\n   `helperContainer`.\n     @property originalMethods\n    @type {Object}\n    @default {}\n    @private\n    @since 1.3.0\n  */\n  originalMethods: {},\n\n  /**\n  This property indicates whether or not this application is currently in\n  testing mode. This is set when `setupForTesting` is called on the current\n  application.\n   @property testing\n  @type {Boolean}\n  @default false\n  @since 1.3.0\n  @public\n  */\n  testing: false,\n\n  /**\n    This hook defers the readiness of the application, so that you can start\n    the app when your tests are ready to run. It also sets the router's\n    location to 'none', so that the window's location will not be modified\n    (preventing both accidental leaking of state between tests and interference\n    with your testing framework). `setupForTesting` should only be called after\n    setting a custom `router` class (for example `App.Router = Router.extend(`).\n     Example:\n     ```\n    App.setupForTesting();\n    ```\n     @method setupForTesting\n    @public\n  */\n  setupForTesting() {\n    setupForTesting();\n    this.testing = true;\n    this.resolveRegistration('router:main').reopen({\n      location: 'none'\n    });\n  },\n\n  /**\n    This will be used as the container to inject the test helpers into. By\n    default the helpers are injected into `window`.\n     @property helperContainer\n    @type {Object} The object to be used for test helpers.\n    @default window\n    @since 1.2.0\n    @private\n  */\n  helperContainer: null,\n\n  /**\n    This injects the test helpers into the `helperContainer` object. If an object is provided\n    it will be used as the helperContainer. If `helperContainer` is not set it will default\n    to `window`. If a function of the same name has already been defined it will be cached\n    (so that it can be reset if the helper is removed with `unregisterHelper` or\n    `removeTestHelpers`).\n     Any callbacks registered with `onInjectHelpers` will be called once the\n    helpers have been injected.\n     Example:\n    ```\n    App.injectTestHelpers();\n    ```\n     @method injectTestHelpers\n    @public\n  */\n  injectTestHelpers(helperContainer) {\n    if (helperContainer) {\n      this.helperContainer = helperContainer;\n    } else {\n      this.helperContainer = window;\n    }\n\n    this.reopen({\n      willDestroy() {\n        this._super(...arguments);\n\n        this.removeTestHelpers();\n      }\n\n    });\n    this.testHelpers = {};\n\n    for (let name in helpers) {\n      this.originalMethods[name] = this.helperContainer[name];\n      this.testHelpers[name] = this.helperContainer[name] = helper(this, name);\n      protoWrap(TestPromise.prototype, name, helper(this, name), helpers[name].meta.wait);\n    }\n\n    invokeInjectHelpersCallbacks(this);\n  },\n\n  /**\n    This removes all helpers that have been registered, and resets and functions\n    that were overridden by the helpers.\n     Example:\n     ```javascript\n    App.removeTestHelpers();\n    ```\n     @public\n    @method removeTestHelpers\n  */\n  removeTestHelpers() {\n    if (!this.helperContainer) {\n      return;\n    }\n\n    for (let name in helpers) {\n      this.helperContainer[name] = this.originalMethods[name];\n      delete TestPromise.prototype[name];\n      delete this.testHelpers[name];\n      delete this.originalMethods[name];\n    }\n  }\n\n}); // This method is no longer needed\n// But still here for backwards compatibility\n// of helper chaining\n\nfunction protoWrap(proto, name, callback, isAsync) {\n  proto[name] = function (...args) {\n    if (isAsync) {\n      return callback.apply(this, args);\n    } else {\n      return this.then(function () {\n        return callback.apply(this, args);\n      });\n    }\n  };\n}\n\nfunction helper(app, name) {\n  let fn = helpers[name].method;\n  let meta = helpers[name].meta;\n\n  if (!meta.wait) {\n    return (...args) => fn.apply(app, [app, ...args]);\n  }\n\n  return (...args) => {\n    let lastPromise = run(() => resolve(getLastPromise())); // wait for last helper's promise to resolve and then\n    // execute. To be safe, we need to tell the adapter we're going\n    // asynchronous here, because fn may not be invoked before we\n    // return.\n\n    asyncStart();\n    return lastPromise.then(() => fn.apply(app, [app, ...args])).finally(asyncEnd);\n  };\n}","import { RSVP } from '@ember/-internals/runtime';\nimport { _backburner } from '@ember/runloop';\nimport { isTesting } from '@ember/debug';\nimport { asyncStart, asyncEnd } from '../test/adapter';\nRSVP.configure('async', function (callback, promise) {\n  // if schedule will cause autorun, we need to inform adapter\n  if (isTesting() && !_backburner.currentInstance) {\n    asyncStart();\n\n    _backburner.schedule('actions', () => {\n      asyncEnd();\n      callback(promise);\n    });\n  } else {\n    _backburner.schedule('actions', () => callback(promise));\n  }\n});\nexport default RSVP;","import { registerHelper as helper, registerAsyncHelper as asyncHelper } from './test/helpers';\nimport andThen from './helpers/and_then';\nimport click from './helpers/click';\nimport currentPath from './helpers/current_path';\nimport currentRouteName from './helpers/current_route_name';\nimport currentURL from './helpers/current_url';\nimport fillIn from './helpers/fill_in';\nimport find from './helpers/find';\nimport findWithAssert from './helpers/find_with_assert';\nimport keyEvent from './helpers/key_event';\nimport { pauseTest, resumeTest } from './helpers/pause_test';\nimport triggerEvent from './helpers/trigger_event';\nimport visit from './helpers/visit';\nimport wait from './helpers/wait';\nasyncHelper('visit', visit);\nasyncHelper('click', click);\nasyncHelper('keyEvent', keyEvent);\nasyncHelper('fillIn', fillIn);\nasyncHelper('wait', wait);\nasyncHelper('andThen', andThen);\nasyncHelper('pauseTest', pauseTest);\nasyncHelper('triggerEvent', triggerEvent);\nhelper('find', find);\nhelper('findWithAssert', findWithAssert);\nhelper('currentRouteName', currentRouteName);\nhelper('currentPath', currentPath);\nhelper('currentURL', currentURL);\nhelper('resumeTest', resumeTest);","const FORM_CONTROL_TAGS = ['INPUT', 'BUTTON', 'SELECT', 'TEXTAREA'];\n/**\n  @private\n  @param {Element} element the element to check\n  @returns {boolean} `true` when the element is a form control, `false` otherwise\n*/\n\nexport default function isFormControl(element) {\n  let {\n    tagName,\n    type\n  } = element;\n\n  if (type === 'hidden') {\n    return false;\n  }\n\n  return FORM_CONTROL_TAGS.indexOf(tagName) > -1;\n}","export default function andThen(app, callback) {\n  return app.testHelpers.wait(callback(app));\n}","/**\n@module ember\n*/\nimport { focus, fireEvent } from '../events';\n/**\n  Clicks an element and triggers any actions triggered by the element's `click`\n  event.\n\n  Example:\n\n  ```javascript\n  click('.some-jQuery-selector').then(function() {\n    // assert something\n  });\n  ```\n\n  @method click\n  @param {String} selector jQuery selector for finding element on the DOM\n  @param {Object} context A DOM Element, Document, or jQuery to use as context\n  @return {RSVP.Promise<undefined>}\n  @public\n*/\n\nexport default function click(app, selector, context) {\n  let $el = app.testHelpers.findWithAssert(selector, context);\n  let el = $el[0];\n  fireEvent(el, 'mousedown');\n  focus(el);\n  fireEvent(el, 'mouseup');\n  fireEvent(el, 'click');\n  return app.testHelpers.wait();\n}","/**\n@module ember\n*/\nimport { get } from '@ember/-internals/metal';\n/**\n  Returns the current path.\n\nExample:\n\n```javascript\nfunction validateURL() {\n  equal(currentPath(), 'some.path.index', \"correct path was transitioned into.\");\n}\n\nclick('#some-link-id').then(validateURL);\n```\n\n@method currentPath\n@return {Object} The currently active path.\n@since 1.5.0\n@public\n*/\n\nexport default function currentPath(app) {\n  let routingService = app.__container__.lookup('service:-routing');\n\n  return get(routingService, 'currentPath');\n}","/**\n@module ember\n*/\nimport { get } from '@ember/-internals/metal';\n/**\n  Returns the currently active route name.\n\nExample:\n\n```javascript\nfunction validateRouteName() {\n  equal(currentRouteName(), 'some.path', \"correct route was transitioned into.\");\n}\nvisit('/some/path').then(validateRouteName)\n```\n\n@method currentRouteName\n@return {Object} The name of the currently active route.\n@since 1.5.0\n@public\n*/\n\nexport default function currentRouteName(app) {\n  let routingService = app.__container__.lookup('service:-routing');\n\n  return get(routingService, 'currentRouteName');\n}","/**\n@module ember\n*/\nimport { get } from '@ember/-internals/metal';\n/**\n  Returns the current URL.\n\nExample:\n\n```javascript\nfunction validateURL() {\n  equal(currentURL(), '/some/path', \"correct URL was transitioned into.\");\n}\n\nclick('#some-link-id').then(validateURL);\n```\n\n@method currentURL\n@return {Object} The currently active URL.\n@since 1.5.0\n@public\n*/\n\nexport default function currentURL(app) {\n  let router = app.__container__.lookup('router:main');\n\n  return get(router, 'location').getURL();\n}","/**\n@module ember\n*/\nimport { focus, fireEvent } from '../events';\nimport isFormControl from './-is-form-control';\n/**\n  Fills in an input element with some text.\n\n  Example:\n\n  ```javascript\n  fillIn('#email', 'you@example.com').then(function() {\n    // assert something\n  });\n  ```\n\n  @method fillIn\n  @param {String} selector jQuery selector finding an input element on the DOM\n  to fill text with\n  @param {String} text text to place inside the input element\n  @return {RSVP.Promise<undefined>}\n  @public\n*/\n\nexport default function fillIn(app, selector, contextOrText, text) {\n  let $el, el, context;\n\n  if (text === undefined) {\n    text = contextOrText;\n  } else {\n    context = contextOrText;\n  }\n\n  $el = app.testHelpers.findWithAssert(selector, context);\n  el = $el[0];\n  focus(el);\n\n  if (isFormControl(el)) {\n    el.value = text;\n  } else {\n    el.innerHTML = text;\n  }\n\n  fireEvent(el, 'input');\n  fireEvent(el, 'change');\n  return app.testHelpers.wait();\n}","/**\n@module ember\n*/\nimport { get } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nimport { jQueryDisabled } from '@ember/-internals/views';\n/**\n  Finds an element in the context of the app's container element. A simple alias\n  for `app.$(selector)`.\n\n  Example:\n\n  ```javascript\n  var $el = find('.my-selector');\n  ```\n\n  With the `context` param:\n\n  ```javascript\n  var $el = find('.my-selector', '.parent-element-class');\n  ```\n\n  @method find\n  @param {String} selector jQuery selector for element lookup\n  @param {String} [context] (optional) jQuery selector that will limit the selector\n                            argument to find only within the context's children\n  @return {Object} DOM element representing the results of the query\n  @public\n*/\n\nexport default function find(app, selector, context) {\n  if (jQueryDisabled) {\n    assert('If jQuery is disabled, please import and use helpers from @ember/test-helpers [https://github.com/emberjs/ember-test-helpers]. Note: `find` is not an available helper.');\n  }\n\n  let $el;\n  context = context || get(app, 'rootElement');\n  $el = app.$(selector, context);\n  return $el;\n}","/**\n@module ember\n*/\n\n/**\n  Like `find`, but throws an error if the element selector returns no results.\n\n  Example:\n\n  ```javascript\n  var $el = findWithAssert('.doesnt-exist'); // throws error\n  ```\n\n  With the `context` param:\n\n  ```javascript\n  var $el = findWithAssert('.selector-id', '.parent-element-class'); // assert will pass\n  ```\n\n  @method findWithAssert\n  @param {String} selector jQuery selector string for finding an element within\n  the DOM\n  @param {String} [context] (optional) jQuery selector that will limit the\n  selector argument to find only within the context's children\n  @return {Object} jQuery object representing the results of the query\n  @throws {Error} throws error if object returned has a length of 0\n  @public\n*/\nexport default function findWithAssert(app, selector, context) {\n  let $el = app.testHelpers.find(selector, context);\n\n  if ($el.length === 0) {\n    throw new Error('Element ' + selector + ' not found.');\n  }\n\n  return $el;\n}","/**\n@module ember\n*/\n\n/**\n  Simulates a key event, e.g. `keypress`, `keydown`, `keyup` with the desired keyCode\n  Example:\n  ```javascript\n  keyEvent('.some-jQuery-selector', 'keypress', 13).then(function() {\n   // assert something\n  });\n  ```\n  @method keyEvent\n  @param {String} selector jQuery selector for finding element on the DOM\n  @param {String} type the type of key event, e.g. `keypress`, `keydown`, `keyup`\n  @param {Number} keyCode the keyCode of the simulated key event\n  @return {RSVP.Promise<undefined>}\n  @since 1.5.0\n  @public\n*/\nexport default function keyEvent(app, selector, contextOrType, typeOrKeyCode, keyCode) {\n  let context, type;\n\n  if (keyCode === undefined) {\n    context = null;\n    keyCode = typeOrKeyCode;\n    type = contextOrType;\n  } else {\n    context = contextOrType;\n    type = typeOrKeyCode;\n  }\n\n  return app.testHelpers.triggerEvent(selector, context, type, {\n    keyCode,\n    which: keyCode\n  });\n}","/**\n@module ember\n*/\nimport { RSVP } from '@ember/-internals/runtime';\nimport { assert, info } from '@ember/debug';\nlet resume;\n/**\n Resumes a test paused by `pauseTest`.\n\n @method resumeTest\n @return {void}\n @public\n*/\n\nexport function resumeTest() {\n  assert('Testing has not been paused. There is nothing to resume.', resume);\n  resume();\n  resume = undefined;\n}\n/**\n Pauses the current test - this is useful for debugging while testing or for test-driving.\n It allows you to inspect the state of your application at any point.\n Example (The test will pause before clicking the button):\n\n ```javascript\n visit('/')\n return pauseTest();\n click('.btn');\n ```\n\n You may want to turn off the timeout before pausing.\n\n qunit (timeout available to use as of 2.4.0):\n\n ```\n visit('/');\n assert.timeout(0);\n return pauseTest();\n click('.btn');\n ```\n\n mocha (timeout happens automatically as of ember-mocha v0.14.0):\n\n ```\n visit('/');\n this.timeout(0);\n return pauseTest();\n click('.btn');\n ```\n\n\n @since 1.9.0\n @method pauseTest\n @return {Object} A promise that will never resolve\n @public\n*/\n\nexport function pauseTest() {\n  info('Testing paused. Use `resumeTest()` to continue.');\n  return new RSVP.Promise(resolve => {\n    resume = resolve;\n  }, 'TestAdapter paused promise');\n}","/**\n@module ember\n*/\nimport { fireEvent } from '../events';\n/**\n  Triggers the given DOM event on the element identified by the provided selector.\n  Example:\n  ```javascript\n  triggerEvent('#some-elem-id', 'blur');\n  ```\n  This is actually used internally by the `keyEvent` helper like so:\n  ```javascript\n  triggerEvent('#some-elem-id', 'keypress', { keyCode: 13 });\n  ```\n @method triggerEvent\n @param {String} selector jQuery selector for finding element on the DOM\n @param {String} [context] jQuery selector that will limit the selector\n                           argument to find only within the context's children\n @param {String} type The event type to be triggered.\n @param {Object} [options] The options to be passed to jQuery.Event.\n @return {RSVP.Promise<undefined>}\n @since 1.5.0\n @public\n*/\n\nexport default function triggerEvent(app, selector, contextOrType, typeOrOptions, possibleOptions) {\n  let arity = arguments.length;\n  let context, type, options;\n\n  if (arity === 3) {\n    // context and options are optional, so this is\n    // app, selector, type\n    context = null;\n    type = contextOrType;\n    options = {};\n  } else if (arity === 4) {\n    // context and options are optional, so this is\n    if (typeof typeOrOptions === 'object') {\n      // either\n      // app, selector, type, options\n      context = null;\n      type = contextOrType;\n      options = typeOrOptions;\n    } else {\n      // or\n      // app, selector, context, type\n      context = contextOrType;\n      type = typeOrOptions;\n      options = {};\n    }\n  } else {\n    context = contextOrType;\n    type = typeOrOptions;\n    options = possibleOptions;\n  }\n\n  let $el = app.testHelpers.findWithAssert(selector, context);\n  let el = $el[0];\n  fireEvent(el, type, options);\n  return app.testHelpers.wait();\n}","import { run } from '@ember/runloop';\n/**\n  Loads a route, sets up any controllers, and renders any templates associated\n  with the route as though a real user had triggered the route change while\n  using your app.\n\n  Example:\n\n  ```javascript\n  visit('posts/index').then(function() {\n    // assert something\n  });\n  ```\n\n  @method visit\n  @param {String} url the name of the route\n  @return {RSVP.Promise<undefined>}\n  @public\n*/\n\nexport default function visit(app, url) {\n  let router = app.__container__.lookup('router:main');\n\n  let shouldHandleURL = false;\n  app.boot().then(() => {\n    router.location.setURL(url);\n\n    if (shouldHandleURL) {\n      run(app.__deprecatedInstance__, 'handleURL', url);\n    }\n  });\n\n  if (app._readinessDeferrals > 0) {\n    router.initialURL = url;\n    run(app, 'advanceReadiness');\n    delete router.initialURL;\n  } else {\n    shouldHandleURL = true;\n  }\n\n  return app.testHelpers.wait();\n}","/**\n@module ember\n*/\nimport { checkWaiters } from '../test/waiters';\nimport { RSVP } from '@ember/-internals/runtime';\nimport { _getCurrentRunLoop, _hasScheduledTimers, run } from '@ember/runloop';\nimport { pendingRequests } from '../test/pending_requests';\n/**\n  Causes the run loop to process any pending events. This is used to ensure that\n  any async operations from other helpers (or your assertions) have been processed.\n\n  This is most often used as the return value for the helper functions (see 'click',\n  'fillIn','visit',etc). However, there is a method to register a test helper which\n  utilizes this method without the need to actually call `wait()` in your helpers.\n\n  The `wait` helper is built into `registerAsyncHelper` by default. You will not need\n  to `return app.testHelpers.wait();` - the wait behavior is provided for you.\n\n  Example:\n\n  ```javascript\n  import { registerAsyncHelper } from '@ember/test';\n\n  registerAsyncHelper('loginUser', function(app, username, password) {\n    visit('secured/path/here')\n      .fillIn('#username', username)\n      .fillIn('#password', password)\n      .click('.submit');\n  });\n  ```\n\n  @method wait\n  @param {Object} value The value to be returned.\n  @return {RSVP.Promise<any>} Promise that resolves to the passed value.\n  @public\n  @since 1.0.0\n*/\n\nexport default function wait(app, value) {\n  return new RSVP.Promise(function (resolve) {\n    let router = app.__container__.lookup('router:main'); // Every 10ms, poll for the async thing to have finished\n\n\n    let watcher = setInterval(() => {\n      // 1. If the router is loading, keep polling\n      let routerIsLoading = router._routerMicrolib && Boolean(router._routerMicrolib.activeTransition);\n\n      if (routerIsLoading) {\n        return;\n      } // 2. If there are pending Ajax requests, keep polling\n\n\n      if (pendingRequests()) {\n        return;\n      } // 3. If there are scheduled timers or we are inside of a run loop, keep polling\n\n\n      if (_hasScheduledTimers() || _getCurrentRunLoop()) {\n        return;\n      }\n\n      if (checkWaiters()) {\n        return;\n      } // Stop polling\n\n\n      clearInterval(watcher); // Synchronously resolve the promise\n\n      run(null, resolve, value);\n    }, 10);\n  });\n}","import { onLoad } from '@ember/application';\nlet name = 'deferReadiness in `testing` mode';\nonLoad('Ember.Application', function (Application) {\n  if (!Application.initializers[name]) {\n    Application.initializer({\n      name: name,\n\n      initialize(application) {\n        if (application.testing) {\n          application.deferReadiness();\n        }\n      }\n\n    });\n  }\n});","/* global self */\nimport { setTesting } from '@ember/debug';\nimport { jQuery, jQueryDisabled } from '@ember/-internals/views';\nimport { getAdapter, setAdapter } from './test/adapter';\nimport { incrementPendingRequests, decrementPendingRequests, clearPendingRequests } from './test/pending_requests';\nimport Adapter from './adapters/adapter';\nimport QUnitAdapter from './adapters/qunit';\n/**\n  Sets Ember up for testing. This is useful to perform\n  basic setup steps in order to unit test.\n\n  Use `App.setupForTesting` to perform integration tests (full\n  application testing).\n\n  @method setupForTesting\n  @namespace Ember\n  @since 1.5.0\n  @private\n*/\n\nexport default function setupForTesting() {\n  setTesting(true);\n  let adapter = getAdapter(); // if adapter is not manually set default to QUnit\n\n  if (!adapter) {\n    setAdapter(typeof self.QUnit === 'undefined' ? Adapter.create() : QUnitAdapter.create());\n  }\n\n  if (!jQueryDisabled) {\n    jQuery(document).off('ajaxSend', incrementPendingRequests);\n    jQuery(document).off('ajaxComplete', decrementPendingRequests);\n    clearPendingRequests();\n    jQuery(document).on('ajaxSend', incrementPendingRequests);\n    jQuery(document).on('ajaxComplete', decrementPendingRequests);\n  }\n}","import { warn } from '@ember/debug';\nimport { jQuery, jQueryDisabled } from '@ember/-internals/views';\nimport { hasDOM } from '@ember/-internals/browser-environment';\n/**\n  @module ember\n*/\n\nconst $ = jQuery;\n/**\n  This method creates a checkbox and triggers the click event to fire the\n  passed in handler. It is used to correct for a bug in older versions\n  of jQuery (e.g 1.8.3).\n\n  @private\n  @method testCheckboxClick\n*/\n\nfunction testCheckboxClick(handler) {\n  let input = document.createElement('input');\n  $(input).attr('type', 'checkbox').css({\n    position: 'absolute',\n    left: '-1000px',\n    top: '-1000px'\n  }).appendTo('body').on('click', handler).trigger('click').remove();\n}\n\nif (hasDOM && !jQueryDisabled) {\n  $(function () {\n    /*\n      Determine whether a checkbox checked using jQuery's \"click\" method will have\n      the correct value for its checked property.\n       If we determine that the current jQuery version exhibits this behavior,\n      patch it to work correctly as in the commit for the actual fix:\n      https://github.com/jquery/jquery/commit/1fb2f92.\n    */\n    testCheckboxClick(function () {\n      if (!this.checked && !$.event.special.click) {\n        $.event.special.click = {\n          // For checkbox, fire native event so checked state will be right\n          trigger() {\n            if (this.nodeName === 'INPUT' && this.type === 'checkbox' && this.click) {\n              this.click();\n              return false;\n            }\n          }\n\n        };\n      }\n    }); // Try again to verify that the patch took effect or blow up.\n\n    testCheckboxClick(function () {\n      warn(\"clicked checkboxes should be checked! the jQuery patch didn't work\", this.checked, {\n        id: 'ember-testing.test-checkbox-click'\n      });\n    });\n  });\n}","/**\n  @module ember\n*/\nimport { helpers, registerHelper, registerAsyncHelper, unregisterHelper } from './test/helpers';\nimport { onInjectHelpers } from './test/on_inject_helpers';\nimport TestPromise, { promise, resolve } from './test/promise';\nimport { checkWaiters, registerWaiter, unregisterWaiter } from './test/waiters';\nimport { getAdapter, setAdapter } from './test/adapter';\n/**\n  This is a container for an assortment of testing related functionality:\n\n  * Choose your default test adapter (for your framework of choice).\n  * Register/Unregister additional test helpers.\n  * Setup callbacks to be fired when the test helpers are injected into\n    your application.\n\n  @class Test\n  @namespace Ember\n  @public\n*/\n\nconst Test = {\n  /**\n    Hash containing all known test helpers.\n     @property _helpers\n    @private\n    @since 1.7.0\n  */\n  _helpers: helpers,\n  registerHelper,\n  registerAsyncHelper,\n  unregisterHelper,\n  onInjectHelpers,\n  Promise: TestPromise,\n  promise,\n  resolve,\n  registerWaiter,\n  unregisterWaiter,\n  checkWaiters\n};\n/**\n Used to allow ember-testing to communicate with a specific testing\n framework.\n\n You can manually set it before calling `App.setupForTesting()`.\n\n Example:\n\n ```javascript\n Ember.Test.adapter = MyCustomAdapter.create()\n ```\n\n If you do not set it, ember-testing will default to `Ember.Test.QUnitAdapter`.\n\n @public\n @for Ember.Test\n @property adapter\n @type {Class} The adapter to be used.\n @default Ember.Test.QUnitAdapter\n*/\n\nObject.defineProperty(Test, 'adapter', {\n  get: getAdapter,\n  set: setAdapter\n});\nexport default Test;","import { setDispatchOverride } from '@ember/-internals/error-handling';\nlet adapter;\nexport function getAdapter() {\n  return adapter;\n}\nexport function setAdapter(value) {\n  adapter = value;\n\n  if (value && typeof value.exception === 'function') {\n    setDispatchOverride(adapterDispatch);\n  } else {\n    setDispatchOverride(null);\n  }\n}\nexport function asyncStart() {\n  if (adapter) {\n    adapter.asyncStart();\n  }\n}\nexport function asyncEnd() {\n  if (adapter) {\n    adapter.asyncEnd();\n  }\n}\n\nfunction adapterDispatch(error) {\n  adapter.exception(error);\n  console.error(error.stack); // eslint-disable-line no-console\n}","import TestPromise from './promise';\nexport const helpers = {};\n/**\n @module @ember/test\n*/\n\n/**\n  `registerHelper` is used to register a test helper that will be injected\n  when `App.injectTestHelpers` is called.\n\n  The helper method will always be called with the current Application as\n  the first parameter.\n\n  For example:\n\n  ```javascript\n  import { registerHelper } from '@ember/test';\n  import { run } from '@ember/runloop';\n\n  registerHelper('boot', function(app) {\n    run(app, app.advanceReadiness);\n  });\n  ```\n\n  This helper can later be called without arguments because it will be\n  called with `app` as the first parameter.\n\n  ```javascript\n  import Application from '@ember/application';\n\n  App = Application.create();\n  App.injectTestHelpers();\n  boot();\n  ```\n\n  @public\n  @for @ember/test\n  @static\n  @method registerHelper\n  @param {String} name The name of the helper method to add.\n  @param {Function} helperMethod\n  @param options {Object}\n*/\n\nexport function registerHelper(name, helperMethod) {\n  helpers[name] = {\n    method: helperMethod,\n    meta: {\n      wait: false\n    }\n  };\n}\n/**\n  `registerAsyncHelper` is used to register an async test helper that will be injected\n  when `App.injectTestHelpers` is called.\n\n  The helper method will always be called with the current Application as\n  the first parameter.\n\n  For example:\n\n  ```javascript\n  import { registerAsyncHelper } from '@ember/test';\n  import { run } from '@ember/runloop';\n\n  registerAsyncHelper('boot', function(app) {\n    run(app, app.advanceReadiness);\n  });\n  ```\n\n  The advantage of an async helper is that it will not run\n  until the last async helper has completed.  All async helpers\n  after it will wait for it complete before running.\n\n\n  For example:\n\n  ```javascript\n  import { registerAsyncHelper } from '@ember/test';\n\n  registerAsyncHelper('deletePost', function(app, postId) {\n    click('.delete-' + postId);\n  });\n\n  // ... in your test\n  visit('/post/2');\n  deletePost(2);\n  visit('/post/3');\n  deletePost(3);\n  ```\n\n  @public\n  @for @ember/test\n  @method registerAsyncHelper\n  @param {String} name The name of the helper method to add.\n  @param {Function} helperMethod\n  @since 1.2.0\n*/\n\nexport function registerAsyncHelper(name, helperMethod) {\n  helpers[name] = {\n    method: helperMethod,\n    meta: {\n      wait: true\n    }\n  };\n}\n/**\n  Remove a previously added helper method.\n\n  Example:\n\n  ```javascript\n  import { unregisterHelper } from '@ember/test';\n\n  unregisterHelper('wait');\n  ```\n\n  @public\n  @method unregisterHelper\n  @static\n  @for @ember/test\n  @param {String} name The helper to remove.\n*/\n\nexport function unregisterHelper(name) {\n  delete helpers[name];\n  delete TestPromise.prototype[name];\n}","export const callbacks = [];\n/**\n  Used to register callbacks to be fired whenever `App.injectTestHelpers`\n  is called.\n\n  The callback will receive the current application as an argument.\n\n  Example:\n\n  ```javascript\n  import $ from 'jquery';\n\n  Ember.Test.onInjectHelpers(function() {\n    $(document).ajaxSend(function() {\n      Test.pendingRequests++;\n    });\n\n    $(document).ajaxComplete(function() {\n      Test.pendingRequests--;\n    });\n  });\n  ```\n\n  @public\n  @for Ember.Test\n  @method onInjectHelpers\n  @param {Function} callback The function to be called.\n*/\n\nexport function onInjectHelpers(callback) {\n  callbacks.push(callback);\n}\nexport function invokeInjectHelpersCallbacks(app) {\n  for (let i = 0; i < callbacks.length; i++) {\n    callbacks[i](app);\n  }\n}","let requests = [];\nexport function pendingRequests() {\n  return requests.length;\n}\nexport function clearPendingRequests() {\n  requests.length = 0;\n}\nexport function incrementPendingRequests(_, xhr) {\n  requests.push(xhr);\n}\nexport function decrementPendingRequests(_, xhr) {\n  setTimeout(function () {\n    for (let i = 0; i < requests.length; i++) {\n      if (xhr === requests[i]) {\n        requests.splice(i, 1);\n        break;\n      }\n    }\n  }, 0);\n}","import { RSVP } from '@ember/-internals/runtime';\nimport run from './run';\nlet lastPromise;\nexport default class TestPromise extends RSVP.Promise {\n  constructor() {\n    super(...arguments);\n    lastPromise = this;\n  }\n\n  then(_onFulfillment, ...args) {\n    let onFulfillment = typeof _onFulfillment === 'function' ? result => isolate(_onFulfillment, result) : undefined;\n    return super.then(onFulfillment, ...args);\n  }\n\n}\n/**\n  This returns a thenable tailored for testing.  It catches failed\n  `onSuccess` callbacks and invokes the `Ember.Test.adapter.exception`\n  callback in the last chained then.\n\n  This method should be returned by async helpers such as `wait`.\n\n  @public\n  @for Ember.Test\n  @method promise\n  @param {Function} resolver The function used to resolve the promise.\n  @param {String} label An optional string for identifying the promise.\n*/\n\nexport function promise(resolver, label) {\n  let fullLabel = `Ember.Test.promise: ${label || '<Unknown Promise>'}`;\n  return new TestPromise(resolver, fullLabel);\n}\n/**\n  Replacement for `Ember.RSVP.resolve`\n  The only difference is this uses\n  an instance of `Ember.Test.Promise`\n\n  @public\n  @for Ember.Test\n  @method resolve\n  @param {Mixed} The value to resolve\n  @since 1.2.0\n*/\n\nexport function resolve(result, label) {\n  return TestPromise.resolve(result, label);\n}\nexport function getLastPromise() {\n  return lastPromise;\n} // This method isolates nested async methods\n// so that they don't conflict with other last promises.\n//\n// 1. Set `Ember.Test.lastPromise` to null\n// 2. Invoke method\n// 3. Return the last promise created during method\n\nfunction isolate(onFulfillment, result) {\n  // Reset lastPromise for nested helpers\n  lastPromise = null;\n  let value = onFulfillment(result);\n  let promise = lastPromise;\n  lastPromise = null; // If the method returned a promise\n  // return that promise. If not,\n  // return the last async helper's promise\n\n  if (value && value instanceof TestPromise || !promise) {\n    return value;\n  } else {\n    return run(() => resolve(promise).then(() => value));\n  }\n}","import { _getCurrentRunLoop, run as emberRun } from '@ember/runloop';\nexport default function run(fn) {\n  if (!_getCurrentRunLoop()) {\n    return emberRun(fn);\n  } else {\n    return fn();\n  }\n}","/**\n @module @ember/test\n*/\nconst contexts = [];\nconst callbacks = [];\n/**\n   This allows ember-testing to play nicely with other asynchronous\n   events, such as an application that is waiting for a CSS3\n   transition or an IndexDB transaction. The waiter runs periodically\n   after each async helper (i.e. `click`, `andThen`, `visit`, etc) has executed,\n   until the returning result is truthy. After the waiters finish, the next async helper\n   is executed and the process repeats.\n\n   For example:\n\n   ```javascript\n   import { registerWaiter } from '@ember/test';\n\n   registerWaiter(function() {\n     return myPendingTransactions() === 0;\n   });\n   ```\n   The `context` argument allows you to optionally specify the `this`\n   with which your callback will be invoked.\n\n   For example:\n\n   ```javascript\n   import { registerWaiter } from '@ember/test';\n\n   registerWaiter(MyDB, MyDB.hasPendingTransactions);\n   ```\n\n   @public\n   @for @ember/test\n   @static\n   @method registerWaiter\n   @param {Object} context (optional)\n   @param {Function} callback\n   @since 1.2.0\n*/\n\nexport function registerWaiter(context, callback) {\n  if (arguments.length === 1) {\n    callback = context;\n    context = null;\n  }\n\n  if (indexOf(context, callback) > -1) {\n    return;\n  }\n\n  contexts.push(context);\n  callbacks.push(callback);\n}\n/**\n   `unregisterWaiter` is used to unregister a callback that was\n   registered with `registerWaiter`.\n\n   @public\n   @for @ember/test\n   @static\n   @method unregisterWaiter\n   @param {Object} context (optional)\n   @param {Function} callback\n   @since 1.2.0\n*/\n\nexport function unregisterWaiter(context, callback) {\n  if (!callbacks.length) {\n    return;\n  }\n\n  if (arguments.length === 1) {\n    callback = context;\n    context = null;\n  }\n\n  let i = indexOf(context, callback);\n\n  if (i === -1) {\n    return;\n  }\n\n  contexts.splice(i, 1);\n  callbacks.splice(i, 1);\n}\n/**\n  Iterates through each registered test waiter, and invokes\n  its callback. If any waiter returns false, this method will return\n  true indicating that the waiters have not settled yet.\n\n  This is generally used internally from the acceptance/integration test\n  infrastructure.\n\n  @public\n  @for @ember/test\n  @static\n  @method checkWaiters\n*/\n\nexport function checkWaiters() {\n  if (!callbacks.length) {\n    return false;\n  }\n\n  for (let i = 0; i < callbacks.length; i++) {\n    let context = contexts[i];\n    let callback = callbacks[i];\n\n    if (!callback.call(context)) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction indexOf(context, callback) {\n  for (let i = 0; i < callbacks.length; i++) {\n    if (callbacks[i] === callback && contexts[i] === context) {\n      return i;\n    }\n  }\n\n  return -1;\n}","import require, { has } from 'require';\nimport { getENV, getLookup, setLookup, ENV } from '@ember/-internals/environment';\nimport * as utils from '@ember/-internals/utils';\nimport { Registry, Container } from '@ember/-internals/container';\nimport * as instrumentation from '@ember/instrumentation';\nimport { meta } from '@ember/-internals/meta';\nimport * as metal from '@ember/-internals/metal';\nimport { FEATURES, isEnabled } from '@ember/canary-features';\nimport * as EmberDebug from '@ember/debug';\nimport { assert, captureRenderTree, deprecate } from '@ember/debug';\nimport Backburner from 'backburner';\nimport Logger from '@ember/-internals/console';\nimport Controller, { inject as injectController } from '@ember/controller';\nimport ControllerMixin from '@ember/controller/lib/controller_mixin';\nimport { _getStrings, _setStrings, dasherize, camelize, capitalize, classify, decamelize, loc, underscore, w } from '@ember/string';\nimport Service, { inject as injectService } from '@ember/service';\nimport { action, computed } from '@ember/object';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport { Object as EmberObject, RegistryProxyMixin, ContainerProxyMixin, compare, copy, isEqual, Array as EmberArray, Copyable, MutableEnumerable, MutableArray, TargetActionSupport, Evented, PromiseProxyMixin, Observable, typeOf, isArray, _ProxyMixin, RSVP, Comparable, Namespace, Enumerable, ArrayProxy, ObjectProxy, ActionHandler, CoreObject, NativeArray, A } from '@ember/-internals/runtime';\nimport { Checkbox, Component, componentCapabilities, modifierCapabilities, setComponentManager, escapeExpression, getTemplates, Helper, helper, htmlSafe, isHTMLSafe, LinkComponent, setTemplates, template, TextField, TextArea, Input, isSerializationFirstNode } from '@ember/-internals/glimmer'; // eslint-disable-next-line import/no-unresolved\n\nimport VERSION from './version';\nimport * as views from '@ember/-internals/views';\nimport * as routing from '@ember/-internals/routing';\nimport * as extensionSupport from '@ember/-internals/extension-support';\nimport EmberError from '@ember/error';\nimport { run } from '@ember/runloop';\nimport { getOnerror, setOnerror } from '@ember/-internals/error-handling';\nimport { getOwner, setOwner } from '@ember/-internals/owner';\nimport Application, { onLoad, runLoadHooks } from '@ember/application';\nimport Resolver from '@ember/application/globals-resolver';\nimport ApplicationInstance from '@ember/application/instance';\nimport Engine from '@ember/engine';\nimport EngineInstance from '@ember/engine/instance';\nimport { assign, merge } from '@ember/polyfills';\nimport { LOGGER, EMBER_EXTEND_PROTOTYPES, JQUERY_INTEGRATION } from '@ember/deprecated-features';\nimport { templateOnlyComponent, invokeHelper, hash, array, concat, get, on, fn } from '@glimmer/runtime';\nimport { helperCapabilities, setModifierManager, setComponentTemplate, getComponentTemplate, setHelperManager } from '@glimmer/manager';\nimport { assertDestroyablesDestroyed, associateDestroyableChild, destroy, enableDestroyableTracking, isDestroying, isDestroyed, registerDestructor, unregisterDestructor } from '@ember/destroyable'; // ****@ember/-internals/environment****\n\nconst Ember = {};\nimport { isIE } from '@ember/-internals/browser-environment';\ndeprecate('Internet Explorer 11 will no longer be supported in the next major version of Ember. For details on the new browser support policy, see the official documentation: http://emberjs.com/browser-support', !isIE, {\n  id: '3-0-browser-support-policy',\n  url: 'https://deprecations.emberjs.com/v3.x#toc_3-0-browser-support-policy',\n  until: '4.0.0',\n  for: 'ember-source',\n  since: {\n    enabled: '3.26.0'\n  }\n});\nEmber.isNamespace = true;\n\nEmber.toString = function () {\n  return 'Ember';\n};\n\nObject.defineProperty(Ember, 'ENV', {\n  get: getENV,\n  enumerable: false\n});\nObject.defineProperty(Ember, 'lookup', {\n  get: getLookup,\n  set: setLookup,\n  enumerable: false\n});\n\nif (EMBER_EXTEND_PROTOTYPES) {\n  Object.defineProperty(Ember, 'EXTEND_PROTOTYPES', {\n    enumerable: false,\n\n    get() {\n      deprecate('Accessing Ember.EXTEND_PROTOTYPES is deprecated, please migrate to Ember.ENV.EXTEND_PROTOTYPES', false, {\n        id: 'ember-env.old-extend-prototypes',\n        until: '4.0.0',\n        for: 'ember-source',\n        since: {\n          enabled: '3.3.0'\n        }\n      });\n      return ENV.EXTEND_PROTOTYPES;\n    }\n\n  });\n} // ****@ember/application****\n\n\nEmber.getOwner = getOwner;\nEmber.setOwner = setOwner;\nEmber.Application = Application;\nEmber.ApplicationInstance = ApplicationInstance;\nObject.defineProperty(Ember, 'Resolver', {\n  get() {\n    deprecate('Using the globals resolver is deprecated. Use the ember-resolver package instead. See https://deprecations.emberjs.com/v3.x#toc_ember-deprecate-globals-resolver', false, {\n      id: 'ember.globals-resolver',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_ember-deprecate-globals-resolver',\n      for: 'ember-source',\n      since: {\n        enabled: '3.16.0'\n      }\n    });\n    return Resolver;\n  }\n\n});\nObject.defineProperty(Ember, 'DefaultResolver', {\n  get() {\n    return Ember.Resolver;\n  }\n\n}); // ****@ember/engine****\n\nEmber.Engine = Engine;\nEmber.EngineInstance = EngineInstance; // ****@ember/polyfills****\n\nEmber.assign = assign;\nEmber.merge = merge; // ****@ember/-internals/utils****\n\nEmber.generateGuid = utils.generateGuid;\nEmber.GUID_KEY = utils.GUID_KEY;\nEmber.guidFor = utils.guidFor;\nEmber.inspect = utils.inspect;\nEmber.makeArray = utils.makeArray;\nEmber.canInvoke = utils.canInvoke;\nEmber.tryInvoke = utils.tryInvoke;\nEmber.wrap = utils.wrap;\nEmber.uuid = utils.uuid; // ****@ember/-internals/container****\n\nEmber.Container = Container;\nEmber.Registry = Registry; // ****@ember/debug****\n\nEmber.assert = EmberDebug.assert;\nEmber.warn = EmberDebug.warn;\nEmber.debug = EmberDebug.debug;\nEmber.deprecate = EmberDebug.deprecate;\nEmber.deprecateFunc = EmberDebug.deprecateFunc;\nEmber.runInDebug = EmberDebug.runInDebug; // ****@ember/error****\n\nEmber.Error = EmberError;\n/**\n  @public\n  @class Ember.Debug\n*/\n\nEmber.Debug = {\n  registerDeprecationHandler: EmberDebug.registerDeprecationHandler,\n  registerWarnHandler: EmberDebug.registerWarnHandler,\n  isComputed: metal.isComputed\n}; // ****@ember/instrumentation****\n\nEmber.instrument = instrumentation.instrument;\nEmber.subscribe = instrumentation.subscribe;\nEmber.Instrumentation = {\n  instrument: instrumentation.instrument,\n  subscribe: instrumentation.subscribe,\n  unsubscribe: instrumentation.unsubscribe,\n  reset: instrumentation.reset\n}; // ****@ember/runloop****\n\nEmber.run = run; // ****@ember/-internals/metal****\n// in globals builds\n\nEmber.computed = computed;\nEmber._descriptor = metal.nativeDescDecorator;\nEmber._tracked = metal.tracked;\nEmber.cacheFor = metal.getCachedValueFor;\nEmber.ComputedProperty = metal.ComputedProperty;\nEmber._setClassicDecorator = metal.setClassicDecorator;\nEmber.meta = meta;\nEmber.get = metal.get;\nEmber.getWithDefault = metal.getWithDefault;\nEmber._getPath = metal._getPath;\nEmber.set = metal.set;\nEmber.trySet = metal.trySet;\nEmber.FEATURES = assign({\n  isEnabled\n}, FEATURES);\nEmber._Cache = utils.Cache;\nEmber.on = metal.on;\nEmber.addListener = metal.addListener;\nEmber.removeListener = metal.removeListener;\nEmber.sendEvent = metal.sendEvent;\nEmber.hasListeners = metal.hasListeners;\nEmber.isNone = metal.isNone;\nEmber.isEmpty = metal.isEmpty;\nEmber.isBlank = metal.isBlank;\nEmber.isPresent = metal.isPresent;\nEmber.notifyPropertyChange = metal.notifyPropertyChange;\nEmber.beginPropertyChanges = metal.beginPropertyChanges;\nEmber.endPropertyChanges = metal.endPropertyChanges;\nEmber.changeProperties = metal.changeProperties;\nEmber.platform = {\n  defineProperty: true,\n  hasPropertyAccessors: true\n};\nEmber.defineProperty = metal.defineProperty;\nEmber.destroy = destroy;\nEmber.libraries = metal.libraries;\nEmber.getProperties = metal.getProperties;\nEmber.setProperties = metal.setProperties;\nEmber.expandProperties = metal.expandProperties;\nEmber.addObserver = metal.addObserver;\nEmber.removeObserver = metal.removeObserver;\nEmber.aliasMethod = metal.aliasMethod;\nEmber.observer = metal.observer;\nEmber.mixin = metal.mixin;\nEmber.Mixin = metal.Mixin;\nEmber._createCache = metal.createCache;\nEmber._cacheGetValue = metal.getValue;\nEmber._cacheIsConst = metal.isConst;\nEmber._registerDestructor = registerDestructor;\nEmber._unregisterDestructor = unregisterDestructor;\nEmber._associateDestroyableChild = associateDestroyableChild;\nEmber._assertDestroyablesDestroyed = assertDestroyablesDestroyed;\nEmber._enableDestroyableTracking = enableDestroyableTracking;\nEmber._isDestroying = isDestroying;\nEmber._isDestroyed = isDestroyed;\n/**\n  A function may be assigned to `Ember.onerror` to be called when Ember\n  internals encounter an error. This is useful for specialized error handling\n  and reporting code.\n\n  ```javascript\n  import $ from 'jquery';\n\n  Ember.onerror = function(error) {\n    $.ajax('/report-error', 'POST', {\n      stack: error.stack,\n      otherInformation: 'whatever app state you want to provide'\n    });\n  };\n  ```\n\n  Internally, `Ember.onerror` is used as Backburner's error handler.\n\n  @event onerror\n  @for Ember\n  @param {Exception} error the error object\n  @public\n*/\n\nObject.defineProperty(Ember, 'onerror', {\n  get: getOnerror,\n  set: setOnerror,\n  enumerable: false\n});\nObject.defineProperty(Ember, 'testing', {\n  get: EmberDebug.isTesting,\n  set: EmberDebug.setTesting,\n  enumerable: false\n});\nEmber._Backburner = Backburner; // ****@ember/-internals/console****\n\nif (LOGGER) {\n  Ember.Logger = Logger;\n} // ****@ember/-internals/runtime****\n\n\nEmber.A = A;\nEmber.String = {\n  loc,\n  w,\n  dasherize,\n  decamelize,\n  camelize,\n  classify,\n  underscore,\n  capitalize\n};\nEmber.Object = EmberObject;\nEmber._RegistryProxyMixin = RegistryProxyMixin;\nEmber._ContainerProxyMixin = ContainerProxyMixin;\nEmber.compare = compare;\nEmber.copy = copy;\nEmber.isEqual = isEqual;\n/**\n@module ember\n*/\n\n/**\n  Namespace for injection helper methods.\n\n  @class inject\n  @namespace Ember\n  @static\n  @public\n*/\n\nEmber.inject = function inject() {\n  assert(`Injected properties must be created through helpers, see '${Object.keys(inject).map(k => `'inject.${k}'`).join(' or ')}'`);\n};\n\nEmber.inject.service = injectService;\nEmber.inject.controller = injectController;\nEmber.Array = EmberArray;\nEmber.Comparable = Comparable;\nEmber.Enumerable = Enumerable;\nEmber.ArrayProxy = ArrayProxy;\nEmber.ObjectProxy = ObjectProxy;\nEmber.ActionHandler = ActionHandler;\nEmber.CoreObject = CoreObject;\nEmber.NativeArray = NativeArray;\nEmber.Copyable = Copyable;\nEmber.MutableEnumerable = MutableEnumerable;\nEmber.MutableArray = MutableArray;\nEmber.Evented = Evented;\nEmber.PromiseProxyMixin = PromiseProxyMixin;\nEmber.Observable = Observable;\nEmber.typeOf = typeOf;\nEmber.isArray = isArray;\nEmber.Object = EmberObject;\nEmber.onLoad = onLoad;\nEmber.runLoadHooks = runLoadHooks;\nEmber.Controller = Controller;\nEmber.ControllerMixin = ControllerMixin;\nEmber.Service = Service;\nEmber._ProxyMixin = _ProxyMixin;\nEmber.RSVP = RSVP;\nEmber.Namespace = Namespace;\nEmber._action = action;\nEmber._dependentKeyCompat = dependentKeyCompat;\n/**\n  Defines the hash of localized strings for the current language. Used by\n  the `String.loc` helper. To localize, add string values to this\n  hash.\n\n  @property STRINGS\n  @for Ember\n  @type Object\n  @private\n*/\n\nObject.defineProperty(Ember, 'STRINGS', {\n  configurable: false,\n  get: _getStrings,\n  set: _setStrings\n});\n/**\n  Whether searching on the global for new Namespace instances is enabled.\n\n  This is only exported here as to not break any addons.  Given the new\n  visit API, you will have issues if you treat this as a indicator of\n  booted.\n\n  Internally this is only exposing a flag in Namespace.\n\n  @property BOOTED\n  @for Ember\n  @type Boolean\n  @private\n*/\n\nObject.defineProperty(Ember, 'BOOTED', {\n  configurable: false,\n  enumerable: false,\n  get: metal.isNamespaceSearchDisabled,\n  set: metal.setNamespaceSearchDisabled\n}); // ****@ember/-internals/glimmer****\n\nEmber.Component = Component;\nHelper.helper = helper;\nEmber.Helper = Helper;\n\nif (true\n/* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n) {\n  [['Checkbox', '@ember/component/checkbox', Checkbox, true], ['TextField', '@ember/component/text-field', TextField, true], ['TextArea', '@ember/component/text-area', TextArea, true], ['LinkComponent', '@ember/routing/link-component', LinkComponent, true], ['TextSupport', null, views.TextSupport, false], ['TargetActionSupport', null, TargetActionSupport, false]].forEach(([name, path, value, availableInLegacyAddon]) => {\n    Object.defineProperty(Ember, name, {\n      get() {\n        let message = `Using Ember.${name}`;\n\n        if (path !== null) {\n          message += ` or importing from '${path}'`;\n        }\n\n        message += ` is deprecated.`;\n\n        if (availableInLegacyAddon) {\n          message += ` Install the \\`@ember/legacy-built-in-components\\` addon and use ` + `\\`import { ${name} } from '@ember/legacy-built-in-components';\\` instead.`;\n        }\n\n        deprecate(message, false, {\n          id: 'ember.built-in-components.import',\n          until: '4.0.0',\n          for: 'ember-source',\n          since: {\n            enabled: '3.27.0'\n          },\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-built-in-components-import'\n        });\n        return value;\n      },\n\n      configurable: true,\n      enumerable: true\n    }); // Expose a non-deprecated version for tests and the @ember/legacy-built-in-components addon\n\n    Ember[`_Legacy${name}`] = value;\n  });\n} else {\n  Ember.Checkbox = Checkbox;\n  Ember.TextField = TextField;\n  Ember.TextArea = TextArea;\n  Ember.LinkComponent = LinkComponent;\n  Ember.TextSupport = views.TextSupport;\n  Ember.TargetActionSupport = TargetActionSupport;\n}\n\nEmber._setComponentManager = setComponentManager;\nEmber._componentManagerCapabilities = componentCapabilities;\nEmber._setModifierManager = setModifierManager;\nEmber._modifierManagerCapabilities = modifierCapabilities;\nEmber._getComponentTemplate = getComponentTemplate;\nEmber._setComponentTemplate = setComponentTemplate;\nEmber._templateOnlyComponent = templateOnlyComponent;\nEmber._Input = Input;\nEmber._hash = hash;\nEmber._array = array;\nEmber._concat = concat;\nEmber._get = get;\nEmber._on = on;\nEmber._fn = fn;\n\nif (true\n/* EMBER_GLIMMER_HELPER_MANAGER */\n) {\n  Ember._helperManagerCapabilities = helperCapabilities;\n  Ember._setHelperManager = setHelperManager;\n}\n\nif (true\n/* EMBER_GLIMMER_INVOKE_HELPER */\n) {\n  Ember._invokeHelper = invokeHelper;\n}\n\nEmber._captureRenderTree = captureRenderTree;\n\nif (ENV.EXTEND_PROTOTYPES.String) {\n  String.prototype.htmlSafe = function () {\n    deprecate(`String prototype extensions are deprecated. Please import htmlSafe from '@ember/template' instead.`, false, {\n      id: 'ember-string.prototype-extensions',\n      for: 'ember-source',\n      since: {\n        enabled: '3.27.6'\n      },\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x/#toc_ember-string-htmlsafe-ishtmlsafe'\n    });\n    return htmlSafe(this);\n  };\n}\n\nconst deprecateImportFromString = function (name, message = `Importing ${name} from '@ember/string' is deprecated. Please import ${name} from '@ember/template' instead.`) {\n  // Disabling this deprecation due to unintended errors in 3.25\n  // See https://github.com/emberjs/ember.js/issues/19393 fo more information.\n  deprecate(message, true, {\n    id: 'ember-string.htmlsafe-ishtmlsafe',\n    for: 'ember-source',\n    since: {\n      enabled: '3.25'\n    },\n    until: '4.0.0',\n    url: 'https://deprecations.emberjs.com/v3.x/#toc_ember-string-htmlsafe-ishtmlsafe'\n  });\n};\n\nObject.defineProperty(Ember.String, 'htmlSafe', {\n  enumerable: true,\n  configurable: true,\n\n  get() {\n    deprecateImportFromString('htmlSafe');\n    return htmlSafe;\n  }\n\n});\nObject.defineProperty(Ember.String, 'isHTMLSafe', {\n  enumerable: true,\n  configurable: true,\n\n  get() {\n    deprecateImportFromString('isHTMLSafe');\n    return isHTMLSafe;\n  }\n\n});\n/**\n  Global hash of shared templates. This will automatically be populated\n  by the build tools so that you can store your Handlebars templates in\n  separate files that get loaded into JavaScript at buildtime.\n\n  @property TEMPLATES\n  @for Ember\n  @type Object\n  @private\n*/\n\nObject.defineProperty(Ember, 'TEMPLATES', {\n  get: getTemplates,\n  set: setTemplates,\n  configurable: false,\n  enumerable: false\n});\n/**\n  The semantic version\n\n  @property VERSION\n  @type String\n  @public\n*/\n\nEmber.VERSION = VERSION; // ****@ember/-internals/views****\n\nif (JQUERY_INTEGRATION && !views.jQueryDisabled) {\n  Object.defineProperty(Ember, '$', {\n    get() {\n      deprecate(\"Using Ember.$() has been deprecated, use `import jQuery from 'jquery';` instead\", false, {\n        id: 'ember-views.curly-components.jquery-element',\n        until: '4.0.0',\n        url: 'https://deprecations.emberjs.com/v3.x#toc_jquery-apis',\n        for: 'ember-source',\n        since: {\n          enabled: '3.9.0'\n        }\n      });\n      return views.jQuery;\n    },\n\n    configurable: true,\n    enumerable: true\n  });\n}\n\nEmber.ViewUtils = {\n  isSimpleClick: views.isSimpleClick,\n  getElementView: views.getElementView,\n  getViewElement: views.getViewElement,\n  getViewBounds: views.getViewBounds,\n  getViewClientRects: views.getViewClientRects,\n  getViewBoundingClientRect: views.getViewBoundingClientRect,\n  getRootViews: views.getRootViews,\n  getChildViews: views.getChildViews,\n  isSerializationFirstNode: isSerializationFirstNode\n};\nEmber.ComponentLookup = views.ComponentLookup;\nEmber.EventDispatcher = views.EventDispatcher; // ****@ember/-internals/routing****\n\nEmber.Location = routing.Location;\nEmber.AutoLocation = routing.AutoLocation;\nEmber.HashLocation = routing.HashLocation;\nEmber.HistoryLocation = routing.HistoryLocation;\nEmber.NoneLocation = routing.NoneLocation;\nEmber.controllerFor = routing.controllerFor;\nEmber.generateControllerFactory = routing.generateControllerFactory;\nEmber.generateController = routing.generateController;\nEmber.RouterDSL = routing.RouterDSL;\nEmber.Router = routing.Router;\nEmber.Route = routing.Route;\nrunLoadHooks('Ember.Application', Application);\nEmber.DataAdapter = extensionSupport.DataAdapter;\nEmber.ContainerDebugAdapter = extensionSupport.ContainerDebugAdapter;\nlet EmberHandlebars = {\n  template,\n  Utils: {\n    escapeExpression\n  }\n};\nlet EmberHTMLBars = {\n  template\n};\n\nfunction defineEmberTemplateCompilerLazyLoad(key) {\n  Object.defineProperty(Ember, key, {\n    configurable: true,\n    enumerable: true,\n\n    get() {\n      if (has('ember-template-compiler')) {\n        let templateCompiler = require('ember-template-compiler');\n\n        EmberHTMLBars.precompile = EmberHandlebars.precompile = templateCompiler.precompile;\n        EmberHTMLBars.compile = EmberHandlebars.compile = templateCompiler.compile;\n        EmberHTMLBars.registerPlugin = templateCompiler.registerPlugin;\n        Object.defineProperty(Ember, 'HTMLBars', {\n          configurable: true,\n          writable: true,\n          enumerable: true,\n          value: EmberHTMLBars\n        });\n        Object.defineProperty(Ember, 'Handlebars', {\n          configurable: true,\n          writable: true,\n          enumerable: true,\n          value: EmberHandlebars\n        });\n      }\n\n      return key === 'Handlebars' ? EmberHandlebars : EmberHTMLBars;\n    }\n\n  });\n}\n\ndefineEmberTemplateCompilerLazyLoad('HTMLBars');\ndefineEmberTemplateCompilerLazyLoad('Handlebars'); // do this to ensure that Ember.Test is defined properly on the global\n// if it is present.\n\nfunction defineEmberTestingLazyLoad(key) {\n  Object.defineProperty(Ember, key, {\n    configurable: true,\n    enumerable: true,\n\n    get() {\n      if (has('ember-testing')) {\n        let testing = require('ember-testing');\n\n        let {\n          Test,\n          Adapter,\n          QUnitAdapter,\n          setupForTesting\n        } = testing;\n        Test.Adapter = Adapter;\n        Test.QUnitAdapter = QUnitAdapter;\n        Object.defineProperty(Ember, 'Test', {\n          configurable: true,\n          writable: true,\n          enumerable: true,\n          value: Test\n        });\n        Object.defineProperty(Ember, 'setupForTesting', {\n          configurable: true,\n          writable: true,\n          enumerable: true,\n          value: setupForTesting\n        });\n        return key === 'Test' ? Test : setupForTesting;\n      }\n\n      return undefined;\n    }\n\n  });\n}\n\ndefineEmberTestingLazyLoad('Test');\ndefineEmberTestingLazyLoad('setupForTesting');\nrunLoadHooks('Ember');\nEmber.__loader = {\n  require,\n  // eslint-disable-next-line no-undef\n  define,\n  // eslint-disable-next-line no-undef\n  registry: typeof requirejs !== 'undefined' ? requirejs.entries : require.entries\n};\nexport default Ember;\n/**\n @module jquery\n @public\n */\n\n/**\n @class jquery\n @public\n @static\n */\n\n/**\n  Alias for jQuery\n\n  @for jquery\n  @method $\n  @static\n  @public\n*/","export default \"3.28.12\";\n","import { jQuery } from '@ember/-internals/views';\nexport default jQuery;","var createObject = Object.create;\nfunction createMap() {\n    var map = createObject(null);\n    map[\"__\"] = undefined;\n    delete map[\"__\"];\n    return map;\n}\n\nvar Target = function Target(path, matcher, delegate) {\n    this.path = path;\n    this.matcher = matcher;\n    this.delegate = delegate;\n};\nTarget.prototype.to = function to (target, callback) {\n    var delegate = this.delegate;\n    if (delegate && delegate.willAddRoute) {\n        target = delegate.willAddRoute(this.matcher.target, target);\n    }\n    this.matcher.add(this.path, target);\n    if (callback) {\n        if (callback.length === 0) {\n            throw new Error(\"You must have an argument in the function passed to `to`\");\n        }\n        this.matcher.addChild(this.path, target, callback, this.delegate);\n    }\n};\nvar Matcher = function Matcher(target) {\n    this.routes = createMap();\n    this.children = createMap();\n    this.target = target;\n};\nMatcher.prototype.add = function add (path, target) {\n    this.routes[path] = target;\n};\nMatcher.prototype.addChild = function addChild (path, target, callback, delegate) {\n    var matcher = new Matcher(target);\n    this.children[path] = matcher;\n    var match = generateMatch(path, matcher, delegate);\n    if (delegate && delegate.contextEntered) {\n        delegate.contextEntered(target, match);\n    }\n    callback(match);\n};\nfunction generateMatch(startingPath, matcher, delegate) {\n    function match(path, callback) {\n        var fullPath = startingPath + path;\n        if (callback) {\n            callback(generateMatch(fullPath, matcher, delegate));\n        }\n        else {\n            return new Target(fullPath, matcher, delegate);\n        }\n    }\n    \n    return match;\n}\nfunction addRoute(routeArray, path, handler) {\n    var len = 0;\n    for (var i = 0; i < routeArray.length; i++) {\n        len += routeArray[i].path.length;\n    }\n    path = path.substr(len);\n    var route = { path: path, handler: handler };\n    routeArray.push(route);\n}\nfunction eachRoute(baseRoute, matcher, callback, binding) {\n    var routes = matcher.routes;\n    var paths = Object.keys(routes);\n    for (var i = 0; i < paths.length; i++) {\n        var path = paths[i];\n        var routeArray = baseRoute.slice();\n        addRoute(routeArray, path, routes[path]);\n        var nested = matcher.children[path];\n        if (nested) {\n            eachRoute(routeArray, nested, callback, binding);\n        }\n        else {\n            callback.call(binding, routeArray);\n        }\n    }\n}\nvar map = function (callback, addRouteCallback) {\n    var matcher = new Matcher();\n    callback(generateMatch(\"\", matcher, this.delegate));\n    eachRoute([], matcher, function (routes) {\n        if (addRouteCallback) {\n            addRouteCallback(this, routes);\n        }\n        else {\n            this.add(routes);\n        }\n    }, this);\n};\n\n// Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\n// values that are not reserved (i.e., unicode characters, emoji, etc). The reserved\n// chars are \"/\" and \"%\".\n// Safe to call multiple times on the same path.\n// Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\nfunction normalizePath(path) {\n    return path.split(\"/\")\n        .map(normalizeSegment)\n        .join(\"/\");\n}\n// We want to ensure the characters \"%\" and \"/\" remain in percent-encoded\n// form when normalizing paths, so replace them with their encoded form after\n// decoding the rest of the path\nvar SEGMENT_RESERVED_CHARS = /%|\\//g;\nfunction normalizeSegment(segment) {\n    if (segment.length < 3 || segment.indexOf(\"%\") === -1)\n        { return segment; }\n    return decodeURIComponent(segment).replace(SEGMENT_RESERVED_CHARS, encodeURIComponent);\n}\n// We do not want to encode these characters when generating dynamic path segments\n// See https://tools.ietf.org/html/rfc3986#section-3.3\n// sub-delims: \"!\", \"$\", \"&\", \"'\", \"(\", \")\", \"*\", \"+\", \",\", \";\", \"=\"\n// others allowed by RFC 3986: \":\", \"@\"\n//\n// First encode the entire path segment, then decode any of the encoded special chars.\n//\n// The chars \"!\", \"'\", \"(\", \")\", \"*\" do not get changed by `encodeURIComponent`,\n// so the possible encoded chars are:\n// ['%24', '%26', '%2B', '%2C', '%3B', '%3D', '%3A', '%40'].\nvar PATH_SEGMENT_ENCODINGS = /%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g;\nfunction encodePathSegment(str) {\n    return encodeURIComponent(str).replace(PATH_SEGMENT_ENCODINGS, decodeURIComponent);\n}\n\nvar escapeRegex = /(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)/g;\nvar isArray = Array.isArray;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction getParam(params, key) {\n    if (typeof params !== \"object\" || params === null) {\n        throw new Error(\"You must pass an object as the second argument to `generate`.\");\n    }\n    if (!hasOwnProperty.call(params, key)) {\n        throw new Error(\"You must provide param `\" + key + \"` to `generate`.\");\n    }\n    var value = params[key];\n    var str = typeof value === \"string\" ? value : \"\" + value;\n    if (str.length === 0) {\n        throw new Error(\"You must provide a param `\" + key + \"`.\");\n    }\n    return str;\n}\nvar eachChar = [];\neachChar[0 /* Static */] = function (segment, currentState) {\n    var state = currentState;\n    var value = segment.value;\n    for (var i = 0; i < value.length; i++) {\n        var ch = value.charCodeAt(i);\n        state = state.put(ch, false, false);\n    }\n    return state;\n};\neachChar[1 /* Dynamic */] = function (_, currentState) {\n    return currentState.put(47 /* SLASH */, true, true);\n};\neachChar[2 /* Star */] = function (_, currentState) {\n    return currentState.put(-1 /* ANY */, false, true);\n};\neachChar[4 /* Epsilon */] = function (_, currentState) {\n    return currentState;\n};\nvar regex = [];\nregex[0 /* Static */] = function (segment) {\n    return segment.value.replace(escapeRegex, \"\\\\$1\");\n};\nregex[1 /* Dynamic */] = function () {\n    return \"([^/]+)\";\n};\nregex[2 /* Star */] = function () {\n    return \"(.+)\";\n};\nregex[4 /* Epsilon */] = function () {\n    return \"\";\n};\nvar generate = [];\ngenerate[0 /* Static */] = function (segment) {\n    return segment.value;\n};\ngenerate[1 /* Dynamic */] = function (segment, params) {\n    var value = getParam(params, segment.value);\n    if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n        return encodePathSegment(value);\n    }\n    else {\n        return value;\n    }\n};\ngenerate[2 /* Star */] = function (segment, params) {\n    return getParam(params, segment.value);\n};\ngenerate[4 /* Epsilon */] = function () {\n    return \"\";\n};\nvar EmptyObject = Object.freeze({});\nvar EmptyArray = Object.freeze([]);\n// The `names` will be populated with the paramter name for each dynamic/star\n// segment. `shouldDecodes` will be populated with a boolean for each dyanamic/star\n// segment, indicating whether it should be decoded during recognition.\nfunction parse(segments, route, types) {\n    // normalize route as not starting with a \"/\". Recognition will\n    // also normalize.\n    if (route.length > 0 && route.charCodeAt(0) === 47 /* SLASH */) {\n        route = route.substr(1);\n    }\n    var parts = route.split(\"/\");\n    var names = undefined;\n    var shouldDecodes = undefined;\n    for (var i = 0; i < parts.length; i++) {\n        var part = parts[i];\n        var flags = 0;\n        var type = 0;\n        if (part === \"\") {\n            type = 4 /* Epsilon */;\n        }\n        else if (part.charCodeAt(0) === 58 /* COLON */) {\n            type = 1 /* Dynamic */;\n        }\n        else if (part.charCodeAt(0) === 42 /* STAR */) {\n            type = 2 /* Star */;\n        }\n        else {\n            type = 0 /* Static */;\n        }\n        flags = 2 << type;\n        if (flags & 12 /* Named */) {\n            part = part.slice(1);\n            names = names || [];\n            names.push(part);\n            shouldDecodes = shouldDecodes || [];\n            shouldDecodes.push((flags & 4 /* Decoded */) !== 0);\n        }\n        if (flags & 14 /* Counted */) {\n            types[type]++;\n        }\n        segments.push({\n            type: type,\n            value: normalizeSegment(part)\n        });\n    }\n    return {\n        names: names || EmptyArray,\n        shouldDecodes: shouldDecodes || EmptyArray,\n    };\n}\nfunction isEqualCharSpec(spec, char, negate) {\n    return spec.char === char && spec.negate === negate;\n}\n// A State has a character specification and (`charSpec`) and a list of possible\n// subsequent states (`nextStates`).\n//\n// If a State is an accepting state, it will also have several additional\n// properties:\n//\n// * `regex`: A regular expression that is used to extract parameters from paths\n//   that reached this accepting state.\n// * `handlers`: Information on how to convert the list of captures into calls\n//   to registered handlers with the specified parameters\n// * `types`: How many static, dynamic or star segments in this route. Used to\n//   decide which route to use if multiple registered routes match a path.\n//\n// Currently, State is implemented naively by looping over `nextStates` and\n// comparing a character specification against a character. A more efficient\n// implementation would use a hash of keys pointing at one or more next states.\nvar State = function State(states, id, char, negate, repeat) {\n    this.states = states;\n    this.id = id;\n    this.char = char;\n    this.negate = negate;\n    this.nextStates = repeat ? id : null;\n    this.pattern = \"\";\n    this._regex = undefined;\n    this.handlers = undefined;\n    this.types = undefined;\n};\nState.prototype.regex = function regex$1 () {\n    if (!this._regex) {\n        this._regex = new RegExp(this.pattern);\n    }\n    return this._regex;\n};\nState.prototype.get = function get (char, negate) {\n        var this$1 = this;\n\n    var nextStates = this.nextStates;\n    if (nextStates === null)\n        { return; }\n    if (isArray(nextStates)) {\n        for (var i = 0; i < nextStates.length; i++) {\n            var child = this$1.states[nextStates[i]];\n            if (isEqualCharSpec(child, char, negate)) {\n                return child;\n            }\n        }\n    }\n    else {\n        var child$1 = this.states[nextStates];\n        if (isEqualCharSpec(child$1, char, negate)) {\n            return child$1;\n        }\n    }\n};\nState.prototype.put = function put (char, negate, repeat) {\n    var state;\n    // If the character specification already exists in a child of the current\n    // state, just return that state.\n    if (state = this.get(char, negate)) {\n        return state;\n    }\n    // Make a new state for the character spec\n    var states = this.states;\n    state = new State(states, states.length, char, negate, repeat);\n    states[states.length] = state;\n    // Insert the new state as a child of the current state\n    if (this.nextStates == null) {\n        this.nextStates = state.id;\n    }\n    else if (isArray(this.nextStates)) {\n        this.nextStates.push(state.id);\n    }\n    else {\n        this.nextStates = [this.nextStates, state.id];\n    }\n    // Return the new state\n    return state;\n};\n// Find a list of child states matching the next character\nState.prototype.match = function match (ch) {\n        var this$1 = this;\n\n    var nextStates = this.nextStates;\n    if (!nextStates)\n        { return []; }\n    var returned = [];\n    if (isArray(nextStates)) {\n        for (var i = 0; i < nextStates.length; i++) {\n            var child = this$1.states[nextStates[i]];\n            if (isMatch(child, ch)) {\n                returned.push(child);\n            }\n        }\n    }\n    else {\n        var child$1 = this.states[nextStates];\n        if (isMatch(child$1, ch)) {\n            returned.push(child$1);\n        }\n    }\n    return returned;\n};\nfunction isMatch(spec, char) {\n    return spec.negate ? spec.char !== char && spec.char !== -1 /* ANY */ : spec.char === char || spec.char === -1 /* ANY */;\n}\n// This is a somewhat naive strategy, but should work in a lot of cases\n// A better strategy would properly resolve /posts/:id/new and /posts/edit/:id.\n//\n// This strategy generally prefers more static and less dynamic matching.\n// Specifically, it\n//\n//  * prefers fewer stars to more, then\n//  * prefers using stars for less of the match to more, then\n//  * prefers fewer dynamic segments to more, then\n//  * prefers more static segments to more\nfunction sortSolutions(states) {\n    return states.sort(function (a, b) {\n        var ref = a.types || [0, 0, 0];\n        var astatics = ref[0];\n        var adynamics = ref[1];\n        var astars = ref[2];\n        var ref$1 = b.types || [0, 0, 0];\n        var bstatics = ref$1[0];\n        var bdynamics = ref$1[1];\n        var bstars = ref$1[2];\n        if (astars !== bstars) {\n            return astars - bstars;\n        }\n        if (astars) {\n            if (astatics !== bstatics) {\n                return bstatics - astatics;\n            }\n            if (adynamics !== bdynamics) {\n                return bdynamics - adynamics;\n            }\n        }\n        if (adynamics !== bdynamics) {\n            return adynamics - bdynamics;\n        }\n        if (astatics !== bstatics) {\n            return bstatics - astatics;\n        }\n        return 0;\n    });\n}\nfunction recognizeChar(states, ch) {\n    var nextStates = [];\n    for (var i = 0, l = states.length; i < l; i++) {\n        var state = states[i];\n        nextStates = nextStates.concat(state.match(ch));\n    }\n    return nextStates;\n}\nvar RecognizeResults = function RecognizeResults(queryParams) {\n    this.length = 0;\n    this.queryParams = queryParams || {};\n};\n\nRecognizeResults.prototype.splice = Array.prototype.splice;\nRecognizeResults.prototype.slice = Array.prototype.slice;\nRecognizeResults.prototype.push = Array.prototype.push;\nfunction findHandler(state, originalPath, queryParams) {\n    var handlers = state.handlers;\n    var regex = state.regex();\n    if (!regex || !handlers)\n        { throw new Error(\"state not initialized\"); }\n    var captures = originalPath.match(regex);\n    var currentCapture = 1;\n    var result = new RecognizeResults(queryParams);\n    result.length = handlers.length;\n    for (var i = 0; i < handlers.length; i++) {\n        var handler = handlers[i];\n        var names = handler.names;\n        var shouldDecodes = handler.shouldDecodes;\n        var params = EmptyObject;\n        var isDynamic = false;\n        if (names !== EmptyArray && shouldDecodes !== EmptyArray) {\n            for (var j = 0; j < names.length; j++) {\n                isDynamic = true;\n                var name = names[j];\n                var capture = captures && captures[currentCapture++];\n                if (params === EmptyObject) {\n                    params = {};\n                }\n                if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS && shouldDecodes[j]) {\n                    params[name] = capture && decodeURIComponent(capture);\n                }\n                else {\n                    params[name] = capture;\n                }\n            }\n        }\n        result[i] = {\n            handler: handler.handler,\n            params: params,\n            isDynamic: isDynamic\n        };\n    }\n    return result;\n}\nfunction decodeQueryParamPart(part) {\n    // http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1\n    part = part.replace(/\\+/gm, \"%20\");\n    var result;\n    try {\n        result = decodeURIComponent(part);\n    }\n    catch (error) {\n        result = \"\";\n    }\n    return result;\n}\nvar RouteRecognizer = function RouteRecognizer() {\n    this.names = createMap();\n    var states = [];\n    var state = new State(states, 0, -1 /* ANY */, true, false);\n    states[0] = state;\n    this.states = states;\n    this.rootState = state;\n};\nRouteRecognizer.prototype.add = function add (routes, options) {\n    var currentState = this.rootState;\n    var pattern = \"^\";\n    var types = [0, 0, 0];\n    var handlers = new Array(routes.length);\n    var allSegments = [];\n    var isEmpty = true;\n    var j = 0;\n    for (var i = 0; i < routes.length; i++) {\n        var route = routes[i];\n        var ref = parse(allSegments, route.path, types);\n            var names = ref.names;\n            var shouldDecodes = ref.shouldDecodes;\n        // preserve j so it points to the start of newly added segments\n        for (; j < allSegments.length; j++) {\n            var segment = allSegments[j];\n            if (segment.type === 4 /* Epsilon */) {\n                continue;\n            }\n            isEmpty = false;\n            // Add a \"/\" for the new segment\n            currentState = currentState.put(47 /* SLASH */, false, false);\n            pattern += \"/\";\n            // Add a representation of the segment to the NFA and regex\n            currentState = eachChar[segment.type](segment, currentState);\n            pattern += regex[segment.type](segment);\n        }\n        handlers[i] = {\n            handler: route.handler,\n            names: names,\n            shouldDecodes: shouldDecodes\n        };\n    }\n    if (isEmpty) {\n        currentState = currentState.put(47 /* SLASH */, false, false);\n        pattern += \"/\";\n    }\n    currentState.handlers = handlers;\n    currentState.pattern = pattern + \"$\";\n    currentState.types = types;\n    var name;\n    if (typeof options === \"object\" && options !== null && options.as) {\n        name = options.as;\n    }\n    if (name) {\n        // if (this.names[name]) {\n        //   throw new Error(\"You may not add a duplicate route named `\" + name + \"`.\");\n        // }\n        this.names[name] = {\n            segments: allSegments,\n            handlers: handlers\n        };\n    }\n};\nRouteRecognizer.prototype.handlersFor = function handlersFor (name) {\n    var route = this.names[name];\n    if (!route) {\n        throw new Error(\"There is no route named \" + name);\n    }\n    var result = new Array(route.handlers.length);\n    for (var i = 0; i < route.handlers.length; i++) {\n        var handler = route.handlers[i];\n        result[i] = handler;\n    }\n    return result;\n};\nRouteRecognizer.prototype.hasRoute = function hasRoute (name) {\n    return !!this.names[name];\n};\nRouteRecognizer.prototype.generate = function generate$1 (name, params) {\n    var route = this.names[name];\n    var output = \"\";\n    if (!route) {\n        throw new Error(\"There is no route named \" + name);\n    }\n    var segments = route.segments;\n    for (var i = 0; i < segments.length; i++) {\n        var segment = segments[i];\n        if (segment.type === 4 /* Epsilon */) {\n            continue;\n        }\n        output += \"/\";\n        output += generate[segment.type](segment, params);\n    }\n    if (output.charAt(0) !== \"/\") {\n        output = \"/\" + output;\n    }\n    if (params && params.queryParams) {\n        output += this.generateQueryString(params.queryParams);\n    }\n    return output;\n};\nRouteRecognizer.prototype.generateQueryString = function generateQueryString (params) {\n    var pairs = [];\n    var keys = Object.keys(params);\n    keys.sort();\n    for (var i = 0; i < keys.length; i++) {\n        var key = keys[i];\n        var value = params[key];\n        if (value == null) {\n            continue;\n        }\n        var pair = encodeURIComponent(key);\n        if (isArray(value)) {\n            for (var j = 0; j < value.length; j++) {\n                var arrayPair = key + \"[]\" + \"=\" + encodeURIComponent(value[j]);\n                pairs.push(arrayPair);\n            }\n        }\n        else {\n            pair += \"=\" + encodeURIComponent(value);\n            pairs.push(pair);\n        }\n    }\n    if (pairs.length === 0) {\n        return \"\";\n    }\n    return \"?\" + pairs.join(\"&\");\n};\nRouteRecognizer.prototype.parseQueryString = function parseQueryString (queryString) {\n    var pairs = queryString.split(\"&\");\n    var queryParams = {};\n    for (var i = 0; i < pairs.length; i++) {\n        var pair = pairs[i].split(\"=\"), key = decodeQueryParamPart(pair[0]), keyLength = key.length, isArray = false, value = (void 0);\n        if (pair.length === 1) {\n            value = \"true\";\n        }\n        else {\n            // Handle arrays\n            if (keyLength > 2 && key.slice(keyLength - 2) === \"[]\") {\n                isArray = true;\n                key = key.slice(0, keyLength - 2);\n                if (!queryParams[key]) {\n                    queryParams[key] = [];\n                }\n            }\n            value = pair[1] ? decodeQueryParamPart(pair[1]) : \"\";\n        }\n        if (isArray) {\n            queryParams[key].push(value);\n        }\n        else {\n            queryParams[key] = value;\n        }\n    }\n    return queryParams;\n};\nRouteRecognizer.prototype.recognize = function recognize (path) {\n    var results;\n    var states = [this.rootState];\n    var queryParams = {};\n    var isSlashDropped = false;\n    var hashStart = path.indexOf(\"#\");\n    if (hashStart !== -1) {\n        path = path.substr(0, hashStart);\n    }\n    var queryStart = path.indexOf(\"?\");\n    if (queryStart !== -1) {\n        var queryString = path.substr(queryStart + 1, path.length);\n        path = path.substr(0, queryStart);\n        queryParams = this.parseQueryString(queryString);\n    }\n    if (path.charAt(0) !== \"/\") {\n        path = \"/\" + path;\n    }\n    var originalPath = path;\n    if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n        path = normalizePath(path);\n    }\n    else {\n        path = decodeURI(path);\n        originalPath = decodeURI(originalPath);\n    }\n    var pathLen = path.length;\n    if (pathLen > 1 && path.charAt(pathLen - 1) === \"/\") {\n        path = path.substr(0, pathLen - 1);\n        originalPath = originalPath.substr(0, originalPath.length - 1);\n        isSlashDropped = true;\n    }\n    for (var i = 0; i < path.length; i++) {\n        states = recognizeChar(states, path.charCodeAt(i));\n        if (!states.length) {\n            break;\n        }\n    }\n    var solutions = [];\n    for (var i$1 = 0; i$1 < states.length; i$1++) {\n        if (states[i$1].handlers) {\n            solutions.push(states[i$1]);\n        }\n    }\n    states = sortSolutions(solutions);\n    var state = solutions[0];\n    if (state && state.handlers) {\n        // if a trailing slash was dropped and a star segment is the last segment\n        // specified, put the trailing slash back\n        if (isSlashDropped && state.pattern && state.pattern.slice(-5) === \"(.+)$\") {\n            originalPath = originalPath + \"/\";\n        }\n        results = findHandler(state, originalPath, queryParams);\n    }\n    return results;\n};\nRouteRecognizer.VERSION = \"0.3.4\";\n// Set to false to opt-out of encoding and decoding path segments.\n// See https://github.com/tildeio/route-recognizer/pull/55\nRouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS = true;\nRouteRecognizer.Normalizer = {\n    normalizeSegment: normalizeSegment, normalizePath: normalizePath, encodePathSegment: encodePathSegment\n};\nRouteRecognizer.prototype.map = map;\n\nexport default RouteRecognizer;\n\n//# sourceMappingURL=route-recognizer.es.js.map\n","import { Promise } from 'rsvp';\nimport { DEBUG } from '@glimmer/env';\nimport RouteRecognizer from 'route-recognizer';\n\nfunction buildTransitionAborted() {\n    let error = new Error('TransitionAborted');\n    error.name = 'TransitionAborted';\n    error.code = 'TRANSITION_ABORTED';\n    return error;\n}\nfunction isTransitionAborted(maybeError) {\n    return (typeof maybeError === 'object' &&\n        maybeError !== null &&\n        maybeError.code === 'TRANSITION_ABORTED');\n}\nfunction isAbortable(maybeAbortable) {\n    return (typeof maybeAbortable === 'object' &&\n        maybeAbortable !== null &&\n        typeof maybeAbortable.isAborted === 'boolean');\n}\nfunction throwIfAborted(maybe) {\n    if (isAbortable(maybe) && maybe.isAborted) {\n        throw buildTransitionAborted();\n    }\n}\n\nconst slice = Array.prototype.slice;\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\n/**\n  Determines if an object is Promise by checking if it is \"thenable\".\n**/\nfunction isPromise(p) {\n    return p !== null && typeof p === 'object' && typeof p.then === 'function';\n}\nfunction merge(hash, other) {\n    for (let prop in other) {\n        if (hasOwnProperty.call(other, prop)) {\n            hash[prop] = other[prop];\n        }\n    }\n}\n/**\n  @private\n\n  Extracts query params from the end of an array\n**/\nfunction extractQueryParams(array) {\n    let len = array && array.length, head, queryParams;\n    if (len && len > 0) {\n        let obj = array[len - 1];\n        if (isQueryParams(obj)) {\n            queryParams = obj.queryParams;\n            head = slice.call(array, 0, len - 1);\n            return [head, queryParams];\n        }\n    }\n    return [array, null];\n}\nfunction isQueryParams(obj) {\n    return obj && hasOwnProperty.call(obj, 'queryParams');\n}\n/**\n  @private\n\n  Coerces query param properties and array elements into strings.\n**/\nfunction coerceQueryParamsToString(queryParams) {\n    for (let key in queryParams) {\n        let val = queryParams[key];\n        if (typeof val === 'number') {\n            queryParams[key] = '' + val;\n        }\n        else if (Array.isArray(val)) {\n            for (let i = 0, l = val.length; i < l; i++) {\n                val[i] = '' + val[i];\n            }\n        }\n    }\n}\n/**\n  @private\n */\nfunction log(router, ...args) {\n    if (!router.log) {\n        return;\n    }\n    if (args.length === 2) {\n        let [sequence, msg] = args;\n        router.log('Transition #' + sequence + ': ' + msg);\n    }\n    else {\n        let [msg] = args;\n        router.log(msg);\n    }\n}\nfunction isParam(object) {\n    return (typeof object === 'string' ||\n        object instanceof String ||\n        typeof object === 'number' ||\n        object instanceof Number);\n}\nfunction forEach(array, callback) {\n    for (let i = 0, l = array.length; i < l && callback(array[i]) !== false; i++) {\n        // empty intentionally\n    }\n}\nfunction getChangelist(oldObject, newObject) {\n    let key;\n    let results = {\n        all: {},\n        changed: {},\n        removed: {},\n    };\n    merge(results.all, newObject);\n    let didChange = false;\n    coerceQueryParamsToString(oldObject);\n    coerceQueryParamsToString(newObject);\n    // Calculate removals\n    for (key in oldObject) {\n        if (hasOwnProperty.call(oldObject, key)) {\n            if (!hasOwnProperty.call(newObject, key)) {\n                didChange = true;\n                results.removed[key] = oldObject[key];\n            }\n        }\n    }\n    // Calculate changes\n    for (key in newObject) {\n        if (hasOwnProperty.call(newObject, key)) {\n            let oldElement = oldObject[key];\n            let newElement = newObject[key];\n            if (isArray(oldElement) && isArray(newElement)) {\n                if (oldElement.length !== newElement.length) {\n                    results.changed[key] = newObject[key];\n                    didChange = true;\n                }\n                else {\n                    for (let i = 0, l = oldElement.length; i < l; i++) {\n                        if (oldElement[i] !== newElement[i]) {\n                            results.changed[key] = newObject[key];\n                            didChange = true;\n                        }\n                    }\n                }\n            }\n            else if (oldObject[key] !== newObject[key]) {\n                results.changed[key] = newObject[key];\n                didChange = true;\n            }\n        }\n    }\n    return didChange ? results : undefined;\n}\nfunction isArray(obj) {\n    return Array.isArray(obj);\n}\nfunction promiseLabel(label) {\n    return 'Router: ' + label;\n}\n\nconst STATE_SYMBOL = `__STATE__-2619860001345920-3322w3`;\nconst PARAMS_SYMBOL = `__PARAMS__-261986232992830203-23323`;\nconst QUERY_PARAMS_SYMBOL = `__QPS__-2619863929824844-32323`;\n/**\n  A Transition is a thenable (a promise-like object) that represents\n  an attempt to transition to another route. It can be aborted, either\n  explicitly via `abort` or by attempting another transition while a\n  previous one is still underway. An aborted transition can also\n  be `retry()`d later.\n\n  @class Transition\n  @constructor\n  @param {Object} router\n  @param {Object} intent\n  @param {Object} state\n  @param {Object} error\n  @private\n */\nclass Transition {\n    constructor(router, intent, state, error = undefined, previousTransition = undefined) {\n        this.from = null;\n        this.to = undefined;\n        this.isAborted = false;\n        this.isActive = true;\n        this.urlMethod = 'update';\n        this.resolveIndex = 0;\n        this.queryParamsOnly = false;\n        this.isTransition = true;\n        this.isCausedByAbortingTransition = false;\n        this.isCausedByInitialTransition = false;\n        this.isCausedByAbortingReplaceTransition = false;\n        this._visibleQueryParams = {};\n        this.isIntermediate = false;\n        this[STATE_SYMBOL] = state || router.state;\n        this.intent = intent;\n        this.router = router;\n        this.data = (intent && intent.data) || {};\n        this.resolvedModels = {};\n        this[QUERY_PARAMS_SYMBOL] = {};\n        this.promise = undefined;\n        this.error = undefined;\n        this[PARAMS_SYMBOL] = {};\n        this.routeInfos = [];\n        this.targetName = undefined;\n        this.pivotHandler = undefined;\n        this.sequence = -1;\n        if (DEBUG) {\n            let error = new Error(`Transition creation stack`);\n            this.debugCreationStack = () => error.stack;\n            // not aborted yet, will be replaced when `this.isAborted` is set\n            this.debugAbortStack = () => undefined;\n            this.debugPreviousTransition = previousTransition;\n        }\n        if (error) {\n            this.promise = Promise.reject(error);\n            this.error = error;\n            return;\n        }\n        // if you're doing multiple redirects, need the new transition to know if it\n        // is actually part of the first transition or not. Any further redirects\n        // in the initial transition also need to know if they are part of the\n        // initial transition\n        this.isCausedByAbortingTransition = !!previousTransition;\n        this.isCausedByInitialTransition =\n            !!previousTransition &&\n                (previousTransition.isCausedByInitialTransition || previousTransition.sequence === 0);\n        // Every transition in the chain is a replace\n        this.isCausedByAbortingReplaceTransition =\n            !!previousTransition &&\n                previousTransition.urlMethod === 'replace' &&\n                (!previousTransition.isCausedByAbortingTransition ||\n                    previousTransition.isCausedByAbortingReplaceTransition);\n        if (state) {\n            this[PARAMS_SYMBOL] = state.params;\n            this[QUERY_PARAMS_SYMBOL] = state.queryParams;\n            this.routeInfos = state.routeInfos;\n            let len = state.routeInfos.length;\n            if (len) {\n                this.targetName = state.routeInfos[len - 1].name;\n            }\n            for (let i = 0; i < len; ++i) {\n                let handlerInfo = state.routeInfos[i];\n                // TODO: this all seems hacky\n                if (!handlerInfo.isResolved) {\n                    break;\n                }\n                this.pivotHandler = handlerInfo.route;\n            }\n            this.sequence = router.currentSequence++;\n            this.promise = state.resolve(this).catch((result) => {\n                let error = this.router.transitionDidError(result, this);\n                throw error;\n            }, promiseLabel('Handle Abort'));\n        }\n        else {\n            this.promise = Promise.resolve(this[STATE_SYMBOL]);\n            this[PARAMS_SYMBOL] = {};\n        }\n    }\n    /**\n      The Transition's internal promise. Calling `.then` on this property\n      is that same as calling `.then` on the Transition object itself, but\n      this property is exposed for when you want to pass around a\n      Transition's promise, but not the Transition object itself, since\n      Transition object can be externally `abort`ed, while the promise\n      cannot.\n  \n      @property promise\n      @type {Object}\n      @public\n     */\n    /**\n      Custom state can be stored on a Transition's `data` object.\n      This can be useful for decorating a Transition within an earlier\n      hook and shared with a later hook. Properties set on `data` will\n      be copied to new transitions generated by calling `retry` on this\n      transition.\n  \n      @property data\n      @type {Object}\n      @public\n     */\n    /**\n      A standard promise hook that resolves if the transition\n      succeeds and rejects if it fails/redirects/aborts.\n  \n      Forwards to the internal `promise` property which you can\n      use in situations where you want to pass around a thenable,\n      but not the Transition itself.\n  \n      @method then\n      @param {Function} onFulfilled\n      @param {Function} onRejected\n      @param {String} label optional string for labeling the promise.\n      Useful for tooling.\n      @return {Promise}\n      @public\n     */\n    then(onFulfilled, onRejected, label) {\n        return this.promise.then(onFulfilled, onRejected, label);\n    }\n    /**\n  \n      Forwards to the internal `promise` property which you can\n      use in situations where you want to pass around a thennable,\n      but not the Transition itself.\n  \n      @method catch\n      @param {Function} onRejection\n      @param {String} label optional string for labeling the promise.\n      Useful for tooling.\n      @return {Promise}\n      @public\n     */\n    catch(onRejection, label) {\n        return this.promise.catch(onRejection, label);\n    }\n    /**\n  \n      Forwards to the internal `promise` property which you can\n      use in situations where you want to pass around a thenable,\n      but not the Transition itself.\n  \n      @method finally\n      @param {Function} callback\n      @param {String} label optional string for labeling the promise.\n      Useful for tooling.\n      @return {Promise}\n      @public\n     */\n    finally(callback, label) {\n        return this.promise.finally(callback, label);\n    }\n    /**\n      Aborts the Transition. Note you can also implicitly abort a transition\n      by initiating another transition while a previous one is underway.\n  \n      @method abort\n      @return {Transition} this transition\n      @public\n     */\n    abort() {\n        this.rollback();\n        let transition = new Transition(this.router, undefined, undefined, undefined);\n        transition.to = this.from;\n        transition.from = this.from;\n        transition.isAborted = true;\n        this.router.routeWillChange(transition);\n        this.router.routeDidChange(transition);\n        return this;\n    }\n    rollback() {\n        if (!this.isAborted) {\n            log(this.router, this.sequence, this.targetName + ': transition was aborted');\n            if (DEBUG) {\n                let error = new Error(`Transition aborted stack`);\n                this.debugAbortStack = () => error.stack;\n            }\n            if (this.intent !== undefined && this.intent !== null) {\n                this.intent.preTransitionState = this.router.state;\n            }\n            this.isAborted = true;\n            this.isActive = false;\n            this.router.activeTransition = undefined;\n        }\n    }\n    redirect(newTransition) {\n        this.rollback();\n        this.router.routeWillChange(newTransition);\n    }\n    /**\n  \n      Retries a previously-aborted transition (making sure to abort the\n      transition if it's still active). Returns a new transition that\n      represents the new attempt to transition.\n  \n      @method retry\n      @return {Transition} new transition\n      @public\n     */\n    retry() {\n        // TODO: add tests for merged state retry()s\n        this.abort();\n        let newTransition = this.router.transitionByIntent(this.intent, false);\n        // inheriting a `null` urlMethod is not valid\n        // the urlMethod is only set to `null` when\n        // the transition is initiated *after* the url\n        // has been updated (i.e. `router.handleURL`)\n        //\n        // in that scenario, the url method cannot be\n        // inherited for a new transition because then\n        // the url would not update even though it should\n        if (this.urlMethod !== null) {\n            newTransition.method(this.urlMethod);\n        }\n        return newTransition;\n    }\n    /**\n  \n      Sets the URL-changing method to be employed at the end of a\n      successful transition. By default, a new Transition will just\n      use `updateURL`, but passing 'replace' to this method will\n      cause the URL to update using 'replaceWith' instead. Omitting\n      a parameter will disable the URL change, allowing for transitions\n      that don't update the URL at completion (this is also used for\n      handleURL, since the URL has already changed before the\n      transition took place).\n  \n      @method method\n      @param {String} method the type of URL-changing method to use\n        at the end of a transition. Accepted values are 'replace',\n        falsy values, or any other non-falsy value (which is\n        interpreted as an updateURL transition).\n  \n      @return {Transition} this transition\n      @public\n     */\n    method(method) {\n        this.urlMethod = method;\n        return this;\n    }\n    // Alias 'trigger' as 'send'\n    send(ignoreFailure = false, _name, err, transition, handler) {\n        this.trigger(ignoreFailure, _name, err, transition, handler);\n    }\n    /**\n  \n      Fires an event on the current list of resolved/resolving\n      handlers within this transition. Useful for firing events\n      on route hierarchies that haven't fully been entered yet.\n  \n      Note: This method is also aliased as `send`\n  \n      @method trigger\n      @param {Boolean} [ignoreFailure=false] a boolean specifying whether unhandled events throw an error\n      @param {String} name the name of the event to fire\n      @public\n     */\n    trigger(ignoreFailure = false, name, ...args) {\n        // TODO: Deprecate the current signature\n        if (typeof ignoreFailure === 'string') {\n            name = ignoreFailure;\n            ignoreFailure = false;\n        }\n        this.router.triggerEvent(this[STATE_SYMBOL].routeInfos.slice(0, this.resolveIndex + 1), ignoreFailure, name, args);\n    }\n    /**\n      Transitions are aborted and their promises rejected\n      when redirects occur; this method returns a promise\n      that will follow any redirects that occur and fulfill\n      with the value fulfilled by any redirecting transitions\n      that occur.\n  \n      @method followRedirects\n      @return {Promise} a promise that fulfills with the same\n        value that the final redirecting transition fulfills with\n      @public\n     */\n    followRedirects() {\n        let router = this.router;\n        return this.promise.catch(function (reason) {\n            if (router.activeTransition) {\n                return router.activeTransition.followRedirects();\n            }\n            return Promise.reject(reason);\n        });\n    }\n    toString() {\n        return 'Transition (sequence ' + this.sequence + ')';\n    }\n    /**\n      @private\n     */\n    log(message) {\n        log(this.router, this.sequence, message);\n    }\n}\n/**\n  @private\n\n  Logs and returns an instance of TransitionAborted.\n */\nfunction logAbort(transition) {\n    log(transition.router, transition.sequence, 'detected abort.');\n    return buildTransitionAborted();\n}\nfunction isTransition(obj) {\n    return typeof obj === 'object' && obj instanceof Transition && obj.isTransition;\n}\nfunction prepareResult(obj) {\n    if (isTransition(obj)) {\n        return null;\n    }\n    return obj;\n}\n\nlet ROUTE_INFOS = new WeakMap();\nfunction toReadOnlyRouteInfo(routeInfos, queryParams = {}, includeAttributes = false) {\n    return routeInfos.map((info, i) => {\n        let { name, params, paramNames, context, route } = info;\n        if (ROUTE_INFOS.has(info) && includeAttributes) {\n            let routeInfo = ROUTE_INFOS.get(info);\n            routeInfo = attachMetadata(route, routeInfo);\n            let routeInfoWithAttribute = createRouteInfoWithAttributes(routeInfo, context);\n            ROUTE_INFOS.set(info, routeInfoWithAttribute);\n            return routeInfoWithAttribute;\n        }\n        let routeInfo = {\n            find(predicate, thisArg) {\n                let publicInfo;\n                let arr = [];\n                if (predicate.length === 3) {\n                    arr = routeInfos.map((info) => ROUTE_INFOS.get(info));\n                }\n                for (let i = 0; routeInfos.length > i; i++) {\n                    publicInfo = ROUTE_INFOS.get(routeInfos[i]);\n                    if (predicate.call(thisArg, publicInfo, i, arr)) {\n                        return publicInfo;\n                    }\n                }\n                return undefined;\n            },\n            get name() {\n                return name;\n            },\n            get paramNames() {\n                return paramNames;\n            },\n            get metadata() {\n                return buildRouteInfoMetadata(info.route);\n            },\n            get parent() {\n                let parent = routeInfos[i - 1];\n                if (parent === undefined) {\n                    return null;\n                }\n                return ROUTE_INFOS.get(parent);\n            },\n            get child() {\n                let child = routeInfos[i + 1];\n                if (child === undefined) {\n                    return null;\n                }\n                return ROUTE_INFOS.get(child);\n            },\n            get localName() {\n                let parts = this.name.split('.');\n                return parts[parts.length - 1];\n            },\n            get params() {\n                return params;\n            },\n            get queryParams() {\n                return queryParams;\n            },\n        };\n        if (includeAttributes) {\n            routeInfo = createRouteInfoWithAttributes(routeInfo, context);\n        }\n        ROUTE_INFOS.set(info, routeInfo);\n        return routeInfo;\n    });\n}\nfunction createRouteInfoWithAttributes(routeInfo, context) {\n    let attributes = {\n        get attributes() {\n            return context;\n        },\n    };\n    if (!Object.isExtensible(routeInfo) || routeInfo.hasOwnProperty('attributes')) {\n        return Object.freeze(Object.assign({}, routeInfo, attributes));\n    }\n    return Object.assign(routeInfo, attributes);\n}\nfunction buildRouteInfoMetadata(route) {\n    if (route !== undefined && route !== null && route.buildRouteInfoMetadata !== undefined) {\n        return route.buildRouteInfoMetadata();\n    }\n    return null;\n}\nfunction attachMetadata(route, routeInfo) {\n    let metadata = {\n        get metadata() {\n            return buildRouteInfoMetadata(route);\n        },\n    };\n    if (!Object.isExtensible(routeInfo) || routeInfo.hasOwnProperty('metadata')) {\n        return Object.freeze(Object.assign({}, routeInfo, metadata));\n    }\n    return Object.assign(routeInfo, metadata);\n}\nclass InternalRouteInfo {\n    constructor(router, name, paramNames, route) {\n        this._routePromise = undefined;\n        this._route = null;\n        this.params = {};\n        this.isResolved = false;\n        this.name = name;\n        this.paramNames = paramNames;\n        this.router = router;\n        if (route) {\n            this._processRoute(route);\n        }\n    }\n    getModel(_transition) {\n        return Promise.resolve(this.context);\n    }\n    serialize(_context) {\n        return this.params || {};\n    }\n    resolve(transition) {\n        return Promise.resolve(this.routePromise)\n            .then((route) => {\n            throwIfAborted(transition);\n            return route;\n        })\n            .then(() => this.runBeforeModelHook(transition))\n            .then(() => throwIfAborted(transition))\n            .then(() => this.getModel(transition))\n            .then((resolvedModel) => {\n            throwIfAborted(transition);\n            return resolvedModel;\n        })\n            .then((resolvedModel) => this.runAfterModelHook(transition, resolvedModel))\n            .then((resolvedModel) => this.becomeResolved(transition, resolvedModel));\n    }\n    becomeResolved(transition, resolvedContext) {\n        let params = this.serialize(resolvedContext);\n        if (transition) {\n            this.stashResolvedModel(transition, resolvedContext);\n            transition[PARAMS_SYMBOL] = transition[PARAMS_SYMBOL] || {};\n            transition[PARAMS_SYMBOL][this.name] = params;\n        }\n        let context;\n        let contextsMatch = resolvedContext === this.context;\n        if ('context' in this || !contextsMatch) {\n            context = resolvedContext;\n        }\n        let cached = ROUTE_INFOS.get(this);\n        let resolved = new ResolvedRouteInfo(this.router, this.name, this.paramNames, params, this.route, context);\n        if (cached !== undefined) {\n            ROUTE_INFOS.set(resolved, cached);\n        }\n        return resolved;\n    }\n    shouldSupersede(routeInfo) {\n        // Prefer this newer routeInfo over `other` if:\n        // 1) The other one doesn't exist\n        // 2) The names don't match\n        // 3) This route has a context that doesn't match\n        //    the other one (or the other one doesn't have one).\n        // 4) This route has parameters that don't match the other.\n        if (!routeInfo) {\n            return true;\n        }\n        let contextsMatch = routeInfo.context === this.context;\n        return (routeInfo.name !== this.name ||\n            ('context' in this && !contextsMatch) ||\n            (this.hasOwnProperty('params') && !paramsMatch(this.params, routeInfo.params)));\n    }\n    get route() {\n        // _route could be set to either a route object or undefined, so we\n        // compare against null to know when it's been set\n        if (this._route !== null) {\n            return this._route;\n        }\n        return this.fetchRoute();\n    }\n    set route(route) {\n        this._route = route;\n    }\n    get routePromise() {\n        if (this._routePromise) {\n            return this._routePromise;\n        }\n        this.fetchRoute();\n        return this._routePromise;\n    }\n    set routePromise(routePromise) {\n        this._routePromise = routePromise;\n    }\n    log(transition, message) {\n        if (transition.log) {\n            transition.log(this.name + ': ' + message);\n        }\n    }\n    updateRoute(route) {\n        route._internalName = this.name;\n        return (this.route = route);\n    }\n    runBeforeModelHook(transition) {\n        if (transition.trigger) {\n            transition.trigger(true, 'willResolveModel', transition, this.route);\n        }\n        let result;\n        if (this.route) {\n            if (this.route.beforeModel !== undefined) {\n                result = this.route.beforeModel(transition);\n            }\n        }\n        if (isTransition(result)) {\n            result = null;\n        }\n        return Promise.resolve(result);\n    }\n    runAfterModelHook(transition, resolvedModel) {\n        // Stash the resolved model on the payload.\n        // This makes it possible for users to swap out\n        // the resolved model in afterModel.\n        let name = this.name;\n        this.stashResolvedModel(transition, resolvedModel);\n        let result;\n        if (this.route !== undefined) {\n            if (this.route.afterModel !== undefined) {\n                result = this.route.afterModel(resolvedModel, transition);\n            }\n        }\n        result = prepareResult(result);\n        return Promise.resolve(result).then(() => {\n            // Ignore the fulfilled value returned from afterModel.\n            // Return the value stashed in resolvedModels, which\n            // might have been swapped out in afterModel.\n            return transition.resolvedModels[name];\n        });\n    }\n    stashResolvedModel(transition, resolvedModel) {\n        transition.resolvedModels = transition.resolvedModels || {};\n        transition.resolvedModels[this.name] = resolvedModel;\n    }\n    fetchRoute() {\n        let route = this.router.getRoute(this.name);\n        return this._processRoute(route);\n    }\n    _processRoute(route) {\n        // Setup a routePromise so that we can wait for asynchronously loaded routes\n        this.routePromise = Promise.resolve(route);\n        // Wait until the 'route' property has been updated when chaining to a route\n        // that is a promise\n        if (isPromise(route)) {\n            this.routePromise = this.routePromise.then((r) => {\n                return this.updateRoute(r);\n            });\n            // set to undefined to avoid recursive loop in the route getter\n            return (this.route = undefined);\n        }\n        else if (route) {\n            return this.updateRoute(route);\n        }\n        return undefined;\n    }\n}\nclass ResolvedRouteInfo extends InternalRouteInfo {\n    constructor(router, name, paramNames, params, route, context) {\n        super(router, name, paramNames, route);\n        this.params = params;\n        this.isResolved = true;\n        this.context = context;\n    }\n    resolve(transition) {\n        // A ResolvedRouteInfo just resolved with itself.\n        if (transition && transition.resolvedModels) {\n            transition.resolvedModels[this.name] = this.context;\n        }\n        return Promise.resolve(this);\n    }\n}\nclass UnresolvedRouteInfoByParam extends InternalRouteInfo {\n    constructor(router, name, paramNames, params, route) {\n        super(router, name, paramNames, route);\n        this.params = {};\n        this.params = params;\n    }\n    getModel(transition) {\n        let fullParams = this.params;\n        if (transition && transition[QUERY_PARAMS_SYMBOL]) {\n            fullParams = {};\n            merge(fullParams, this.params);\n            fullParams.queryParams = transition[QUERY_PARAMS_SYMBOL];\n        }\n        let route = this.route;\n        let result;\n        if (route.deserialize) {\n            result = route.deserialize(fullParams, transition);\n        }\n        else if (route.model) {\n            result = route.model(fullParams, transition);\n        }\n        if (result && isTransition(result)) {\n            result = undefined;\n        }\n        return Promise.resolve(result);\n    }\n}\nclass UnresolvedRouteInfoByObject extends InternalRouteInfo {\n    constructor(router, name, paramNames, context) {\n        super(router, name, paramNames);\n        this.context = context;\n        this.serializer = this.router.getSerializer(name);\n    }\n    getModel(transition) {\n        if (this.router.log !== undefined) {\n            this.router.log(this.name + ': resolving provided model');\n        }\n        return super.getModel(transition);\n    }\n    /**\n      @private\n  \n      Serializes a route using its custom `serialize` method or\n      by a default that looks up the expected property name from\n      the dynamic segment.\n  \n      @param {Object} model the model to be serialized for this route\n    */\n    serialize(model) {\n        let { paramNames, context } = this;\n        if (!model) {\n            model = context;\n        }\n        let object = {};\n        if (isParam(model)) {\n            object[paramNames[0]] = model;\n            return object;\n        }\n        // Use custom serialize if it exists.\n        if (this.serializer) {\n            // invoke this.serializer unbound (getSerializer returns a stateless function)\n            return this.serializer.call(null, model, paramNames);\n        }\n        else if (this.route !== undefined) {\n            if (this.route.serialize) {\n                return this.route.serialize(model, paramNames);\n            }\n        }\n        if (paramNames.length !== 1) {\n            return;\n        }\n        let name = paramNames[0];\n        if (/_id$/.test(name)) {\n            object[name] = model.id;\n        }\n        else {\n            object[name] = model;\n        }\n        return object;\n    }\n}\nfunction paramsMatch(a, b) {\n    if (!a !== !b) {\n        // Only one is null.\n        return false;\n    }\n    if (!a) {\n        // Both must be null.\n        return true;\n    }\n    // Note: this assumes that both params have the same\n    // number of keys, but since we're comparing the\n    // same routes, they should.\n    for (let k in a) {\n        if (a.hasOwnProperty(k) && a[k] !== b[k]) {\n            return false;\n        }\n    }\n    return true;\n}\n\nclass TransitionIntent {\n    constructor(router, data = {}) {\n        this.router = router;\n        this.data = data;\n    }\n}\n\nfunction handleError(currentState, transition, error) {\n    // This is the only possible\n    // reject value of TransitionState#resolve\n    let routeInfos = currentState.routeInfos;\n    let errorHandlerIndex = transition.resolveIndex >= routeInfos.length ? routeInfos.length - 1 : transition.resolveIndex;\n    let wasAborted = transition.isAborted;\n    throw new TransitionError(error, currentState.routeInfos[errorHandlerIndex].route, wasAborted, currentState);\n}\nfunction resolveOneRouteInfo(currentState, transition) {\n    if (transition.resolveIndex === currentState.routeInfos.length) {\n        // This is is the only possible\n        // fulfill value of TransitionState#resolve\n        return;\n    }\n    let routeInfo = currentState.routeInfos[transition.resolveIndex];\n    return routeInfo\n        .resolve(transition)\n        .then(proceed.bind(null, currentState, transition), null, currentState.promiseLabel('Proceed'));\n}\nfunction proceed(currentState, transition, resolvedRouteInfo) {\n    let wasAlreadyResolved = currentState.routeInfos[transition.resolveIndex].isResolved;\n    // Swap the previously unresolved routeInfo with\n    // the resolved routeInfo\n    currentState.routeInfos[transition.resolveIndex++] = resolvedRouteInfo;\n    if (!wasAlreadyResolved) {\n        // Call the redirect hook. The reason we call it here\n        // vs. afterModel is so that redirects into child\n        // routes don't re-run the model hooks for this\n        // already-resolved route.\n        let { route } = resolvedRouteInfo;\n        if (route !== undefined) {\n            if (route.redirect) {\n                route.redirect(resolvedRouteInfo.context, transition);\n            }\n        }\n    }\n    // Proceed after ensuring that the redirect hook\n    // didn't abort this transition by transitioning elsewhere.\n    throwIfAborted(transition);\n    return resolveOneRouteInfo(currentState, transition);\n}\nclass TransitionState {\n    constructor() {\n        this.routeInfos = [];\n        this.queryParams = {};\n        this.params = {};\n    }\n    promiseLabel(label) {\n        let targetName = '';\n        forEach(this.routeInfos, function (routeInfo) {\n            if (targetName !== '') {\n                targetName += '.';\n            }\n            targetName += routeInfo.name;\n            return true;\n        });\n        return promiseLabel(\"'\" + targetName + \"': \" + label);\n    }\n    resolve(transition) {\n        // First, calculate params for this state. This is useful\n        // information to provide to the various route hooks.\n        let params = this.params;\n        forEach(this.routeInfos, (routeInfo) => {\n            params[routeInfo.name] = routeInfo.params || {};\n            return true;\n        });\n        transition.resolveIndex = 0;\n        // The prelude RSVP.resolve() async moves us into the promise land.\n        return Promise.resolve(null, this.promiseLabel('Start transition'))\n            .then(resolveOneRouteInfo.bind(null, this, transition), null, this.promiseLabel('Resolve route'))\n            .catch(handleError.bind(null, this, transition), this.promiseLabel('Handle error'))\n            .then(() => this);\n    }\n}\nclass TransitionError {\n    constructor(error, route, wasAborted, state) {\n        this.error = error;\n        this.route = route;\n        this.wasAborted = wasAborted;\n        this.state = state;\n    }\n}\n\nclass NamedTransitionIntent extends TransitionIntent {\n    constructor(router, name, pivotHandler, contexts = [], queryParams = {}, data) {\n        super(router, data);\n        this.preTransitionState = undefined;\n        this.name = name;\n        this.pivotHandler = pivotHandler;\n        this.contexts = contexts;\n        this.queryParams = queryParams;\n    }\n    applyToState(oldState, isIntermediate) {\n        // TODO: WTF fix me\n        let partitionedArgs = extractQueryParams([this.name].concat(this.contexts)), pureArgs = partitionedArgs[0], handlers = this.router.recognizer.handlersFor(pureArgs[0]);\n        let targetRouteName = handlers[handlers.length - 1].handler;\n        return this.applyToHandlers(oldState, handlers, targetRouteName, isIntermediate, false);\n    }\n    applyToHandlers(oldState, parsedHandlers, targetRouteName, isIntermediate, checkingIfActive) {\n        let i, len;\n        let newState = new TransitionState();\n        let objects = this.contexts.slice(0);\n        let invalidateIndex = parsedHandlers.length;\n        // Pivot handlers are provided for refresh transitions\n        if (this.pivotHandler) {\n            for (i = 0, len = parsedHandlers.length; i < len; ++i) {\n                if (parsedHandlers[i].handler === this.pivotHandler._internalName) {\n                    invalidateIndex = i;\n                    break;\n                }\n            }\n        }\n        for (i = parsedHandlers.length - 1; i >= 0; --i) {\n            let result = parsedHandlers[i];\n            let name = result.handler;\n            let oldHandlerInfo = oldState.routeInfos[i];\n            let newHandlerInfo = null;\n            if (result.names.length > 0) {\n                if (i >= invalidateIndex) {\n                    newHandlerInfo = this.createParamHandlerInfo(name, result.names, objects, oldHandlerInfo);\n                }\n                else {\n                    newHandlerInfo = this.getHandlerInfoForDynamicSegment(name, result.names, objects, oldHandlerInfo, targetRouteName, i);\n                }\n            }\n            else {\n                // This route has no dynamic segment.\n                // Therefore treat as a param-based handlerInfo\n                // with empty params. This will cause the `model`\n                // hook to be called with empty params, which is desirable.\n                newHandlerInfo = this.createParamHandlerInfo(name, result.names, objects, oldHandlerInfo);\n            }\n            if (checkingIfActive) {\n                // If we're performing an isActive check, we want to\n                // serialize URL params with the provided context, but\n                // ignore mismatches between old and new context.\n                newHandlerInfo = newHandlerInfo.becomeResolved(null, newHandlerInfo.context);\n                let oldContext = oldHandlerInfo && oldHandlerInfo.context;\n                if (result.names.length > 0 &&\n                    oldHandlerInfo.context !== undefined &&\n                    newHandlerInfo.context === oldContext) {\n                    // If contexts match in isActive test, assume params also match.\n                    // This allows for flexibility in not requiring that every last\n                    // handler provide a `serialize` method\n                    newHandlerInfo.params = oldHandlerInfo && oldHandlerInfo.params;\n                }\n                newHandlerInfo.context = oldContext;\n            }\n            let handlerToUse = oldHandlerInfo;\n            if (i >= invalidateIndex || newHandlerInfo.shouldSupersede(oldHandlerInfo)) {\n                invalidateIndex = Math.min(i, invalidateIndex);\n                handlerToUse = newHandlerInfo;\n            }\n            if (isIntermediate && !checkingIfActive) {\n                handlerToUse = handlerToUse.becomeResolved(null, handlerToUse.context);\n            }\n            newState.routeInfos.unshift(handlerToUse);\n        }\n        if (objects.length > 0) {\n            throw new Error('More context objects were passed than there are dynamic segments for the route: ' +\n                targetRouteName);\n        }\n        if (!isIntermediate) {\n            this.invalidateChildren(newState.routeInfos, invalidateIndex);\n        }\n        merge(newState.queryParams, this.queryParams || {});\n        if (isIntermediate && oldState.queryParams) {\n            merge(newState.queryParams, oldState.queryParams);\n        }\n        return newState;\n    }\n    invalidateChildren(handlerInfos, invalidateIndex) {\n        for (let i = invalidateIndex, l = handlerInfos.length; i < l; ++i) {\n            let handlerInfo = handlerInfos[i];\n            if (handlerInfo.isResolved) {\n                let { name, params, route, paramNames } = handlerInfos[i];\n                handlerInfos[i] = new UnresolvedRouteInfoByParam(this.router, name, paramNames, params, route);\n            }\n        }\n    }\n    getHandlerInfoForDynamicSegment(name, names, objects, oldHandlerInfo, _targetRouteName, i) {\n        let objectToUse;\n        if (objects.length > 0) {\n            // Use the objects provided for this transition.\n            objectToUse = objects[objects.length - 1];\n            if (isParam(objectToUse)) {\n                return this.createParamHandlerInfo(name, names, objects, oldHandlerInfo);\n            }\n            else {\n                objects.pop();\n            }\n        }\n        else if (oldHandlerInfo && oldHandlerInfo.name === name) {\n            // Reuse the matching oldHandlerInfo\n            return oldHandlerInfo;\n        }\n        else {\n            if (this.preTransitionState) {\n                let preTransitionHandlerInfo = this.preTransitionState.routeInfos[i];\n                objectToUse = preTransitionHandlerInfo && preTransitionHandlerInfo.context;\n            }\n            else {\n                // Ideally we should throw this error to provide maximal\n                // information to the user that not enough context objects\n                // were provided, but this proves too cumbersome in Ember\n                // in cases where inner template helpers are evaluated\n                // before parent helpers un-render, in which cases this\n                // error somewhat prematurely fires.\n                //throw new Error(\"Not enough context objects were provided to complete a transition to \" + targetRouteName + \". Specifically, the \" + name + \" route needs an object that can be serialized into its dynamic URL segments [\" + names.join(', ') + \"]\");\n                return oldHandlerInfo;\n            }\n        }\n        return new UnresolvedRouteInfoByObject(this.router, name, names, objectToUse);\n    }\n    createParamHandlerInfo(name, names, objects, oldHandlerInfo) {\n        let params = {};\n        // Soak up all the provided string/numbers\n        let numNames = names.length;\n        let missingParams = [];\n        while (numNames--) {\n            // Only use old params if the names match with the new handler\n            let oldParams = (oldHandlerInfo && name === oldHandlerInfo.name && oldHandlerInfo.params) || {};\n            let peek = objects[objects.length - 1];\n            let paramName = names[numNames];\n            if (isParam(peek)) {\n                params[paramName] = '' + objects.pop();\n            }\n            else {\n                // If we're here, this means only some of the params\n                // were string/number params, so try and use a param\n                // value from a previous handler.\n                if (oldParams.hasOwnProperty(paramName)) {\n                    params[paramName] = oldParams[paramName];\n                }\n                else {\n                    missingParams.push(paramName);\n                }\n            }\n        }\n        if (missingParams.length > 0) {\n            throw new Error(`You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route ${name}.` +\n                ` Missing params: ${missingParams}`);\n        }\n        return new UnresolvedRouteInfoByParam(this.router, name, names, params);\n    }\n}\n\nconst UnrecognizedURLError = (function () {\n    UnrecognizedURLError.prototype = Object.create(Error.prototype);\n    UnrecognizedURLError.prototype.constructor = UnrecognizedURLError;\n    function UnrecognizedURLError(message) {\n        let error = Error.call(this, message);\n        this.name = 'UnrecognizedURLError';\n        this.message = message || 'UnrecognizedURL';\n        if (Error.captureStackTrace) {\n            Error.captureStackTrace(this, UnrecognizedURLError);\n        }\n        else {\n            this.stack = error.stack;\n        }\n    }\n    return UnrecognizedURLError;\n})();\n\nclass URLTransitionIntent extends TransitionIntent {\n    constructor(router, url, data) {\n        super(router, data);\n        this.url = url;\n        this.preTransitionState = undefined;\n    }\n    applyToState(oldState) {\n        let newState = new TransitionState();\n        let results = this.router.recognizer.recognize(this.url), i, len;\n        if (!results) {\n            throw new UnrecognizedURLError(this.url);\n        }\n        let statesDiffer = false;\n        let _url = this.url;\n        // Checks if a handler is accessible by URL. If it is not, an error is thrown.\n        // For the case where the handler is loaded asynchronously, the error will be\n        // thrown once it is loaded.\n        function checkHandlerAccessibility(handler) {\n            if (handler && handler.inaccessibleByURL) {\n                throw new UnrecognizedURLError(_url);\n            }\n            return handler;\n        }\n        for (i = 0, len = results.length; i < len; ++i) {\n            let result = results[i];\n            let name = result.handler;\n            let paramNames = [];\n            if (this.router.recognizer.hasRoute(name)) {\n                paramNames = this.router.recognizer.handlersFor(name)[i].names;\n            }\n            let newRouteInfo = new UnresolvedRouteInfoByParam(this.router, name, paramNames, result.params);\n            let route = newRouteInfo.route;\n            if (route) {\n                checkHandlerAccessibility(route);\n            }\n            else {\n                // If the handler is being loaded asynchronously, check if we can\n                // access it after it has resolved\n                newRouteInfo.routePromise = newRouteInfo.routePromise.then(checkHandlerAccessibility);\n            }\n            let oldRouteInfo = oldState.routeInfos[i];\n            if (statesDiffer || newRouteInfo.shouldSupersede(oldRouteInfo)) {\n                statesDiffer = true;\n                newState.routeInfos[i] = newRouteInfo;\n            }\n            else {\n                newState.routeInfos[i] = oldRouteInfo;\n            }\n        }\n        merge(newState.queryParams, results.queryParams);\n        return newState;\n    }\n}\n\nclass Router {\n    constructor(logger) {\n        this._lastQueryParams = {};\n        this.state = undefined;\n        this.oldState = undefined;\n        this.activeTransition = undefined;\n        this.currentRouteInfos = undefined;\n        this._changedQueryParams = undefined;\n        this.currentSequence = 0;\n        this.log = logger;\n        this.recognizer = new RouteRecognizer();\n        this.reset();\n    }\n    /**\n      The main entry point into the router. The API is essentially\n      the same as the `map` method in `route-recognizer`.\n  \n      This method extracts the String handler at the last `.to()`\n      call and uses it as the name of the whole route.\n  \n      @param {Function} callback\n    */\n    map(callback) {\n        this.recognizer.map(callback, function (recognizer, routes) {\n            for (let i = routes.length - 1, proceed = true; i >= 0 && proceed; --i) {\n                let route = routes[i];\n                let handler = route.handler;\n                recognizer.add(routes, { as: handler });\n                proceed = route.path === '/' || route.path === '' || handler.slice(-6) === '.index';\n            }\n        });\n    }\n    hasRoute(route) {\n        return this.recognizer.hasRoute(route);\n    }\n    queryParamsTransition(changelist, wasTransitioning, oldState, newState) {\n        this.fireQueryParamDidChange(newState, changelist);\n        if (!wasTransitioning && this.activeTransition) {\n            // One of the routes in queryParamsDidChange\n            // caused a transition. Just return that transition.\n            return this.activeTransition;\n        }\n        else {\n            // Running queryParamsDidChange didn't change anything.\n            // Just update query params and be on our way.\n            // We have to return a noop transition that will\n            // perform a URL update at the end. This gives\n            // the user the ability to set the url update\n            // method (default is replaceState).\n            let newTransition = new Transition(this, undefined, undefined);\n            newTransition.queryParamsOnly = true;\n            oldState.queryParams = this.finalizeQueryParamChange(newState.routeInfos, newState.queryParams, newTransition);\n            newTransition[QUERY_PARAMS_SYMBOL] = newState.queryParams;\n            this.toReadOnlyInfos(newTransition, newState);\n            this.routeWillChange(newTransition);\n            newTransition.promise = newTransition.promise.then((result) => {\n                if (!newTransition.isAborted) {\n                    this._updateURL(newTransition, oldState);\n                    this.didTransition(this.currentRouteInfos);\n                    this.toInfos(newTransition, newState.routeInfos, true);\n                    this.routeDidChange(newTransition);\n                }\n                return result;\n            }, null, promiseLabel('Transition complete'));\n            return newTransition;\n        }\n    }\n    transitionByIntent(intent, isIntermediate) {\n        try {\n            return this.getTransitionByIntent(intent, isIntermediate);\n        }\n        catch (e) {\n            return new Transition(this, intent, undefined, e, undefined);\n        }\n    }\n    recognize(url) {\n        let intent = new URLTransitionIntent(this, url);\n        let newState = this.generateNewState(intent);\n        if (newState === null) {\n            return newState;\n        }\n        let readonlyInfos = toReadOnlyRouteInfo(newState.routeInfos, newState.queryParams);\n        return readonlyInfos[readonlyInfos.length - 1];\n    }\n    recognizeAndLoad(url) {\n        let intent = new URLTransitionIntent(this, url);\n        let newState = this.generateNewState(intent);\n        if (newState === null) {\n            return Promise.reject(`URL ${url} was not recognized`);\n        }\n        let newTransition = new Transition(this, intent, newState, undefined);\n        return newTransition.then(() => {\n            let routeInfosWithAttributes = toReadOnlyRouteInfo(newState.routeInfos, newTransition[QUERY_PARAMS_SYMBOL], true);\n            return routeInfosWithAttributes[routeInfosWithAttributes.length - 1];\n        });\n    }\n    generateNewState(intent) {\n        try {\n            return intent.applyToState(this.state, false);\n        }\n        catch (e) {\n            return null;\n        }\n    }\n    getTransitionByIntent(intent, isIntermediate) {\n        let wasTransitioning = !!this.activeTransition;\n        let oldState = wasTransitioning ? this.activeTransition[STATE_SYMBOL] : this.state;\n        let newTransition;\n        let newState = intent.applyToState(oldState, isIntermediate);\n        let queryParamChangelist = getChangelist(oldState.queryParams, newState.queryParams);\n        if (routeInfosEqual(newState.routeInfos, oldState.routeInfos)) {\n            // This is a no-op transition. See if query params changed.\n            if (queryParamChangelist) {\n                let newTransition = this.queryParamsTransition(queryParamChangelist, wasTransitioning, oldState, newState);\n                newTransition.queryParamsOnly = true;\n                return newTransition;\n            }\n            // No-op. No need to create a new transition.\n            return this.activeTransition || new Transition(this, undefined, undefined);\n        }\n        if (isIntermediate) {\n            let transition = new Transition(this, undefined, newState);\n            transition.isIntermediate = true;\n            this.toReadOnlyInfos(transition, newState);\n            this.setupContexts(newState, transition);\n            this.routeWillChange(transition);\n            return this.activeTransition;\n        }\n        // Create a new transition to the destination route.\n        newTransition = new Transition(this, intent, newState, undefined, this.activeTransition);\n        // transition is to same route with same params, only query params differ.\n        // not caught above probably because refresh() has been used\n        if (routeInfosSameExceptQueryParams(newState.routeInfos, oldState.routeInfos)) {\n            newTransition.queryParamsOnly = true;\n        }\n        this.toReadOnlyInfos(newTransition, newState);\n        // Abort and usurp any previously active transition.\n        if (this.activeTransition) {\n            this.activeTransition.redirect(newTransition);\n        }\n        this.activeTransition = newTransition;\n        // Transition promises by default resolve with resolved state.\n        // For our purposes, swap out the promise to resolve\n        // after the transition has been finalized.\n        newTransition.promise = newTransition.promise.then((result) => {\n            return this.finalizeTransition(newTransition, result);\n        }, null, promiseLabel('Settle transition promise when transition is finalized'));\n        if (!wasTransitioning) {\n            this.notifyExistingHandlers(newState, newTransition);\n        }\n        this.fireQueryParamDidChange(newState, queryParamChangelist);\n        return newTransition;\n    }\n    /**\n    @private\n  \n    Begins and returns a Transition based on the provided\n    arguments. Accepts arguments in the form of both URL\n    transitions and named transitions.\n  \n    @param {Router} router\n    @param {Array[Object]} args arguments passed to transitionTo,\n      replaceWith, or handleURL\n  */\n    doTransition(name, modelsArray = [], isIntermediate = false) {\n        let lastArg = modelsArray[modelsArray.length - 1];\n        let queryParams = {};\n        if (lastArg !== undefined && lastArg.hasOwnProperty('queryParams')) {\n            queryParams = modelsArray.pop().queryParams;\n        }\n        let intent;\n        if (name === undefined) {\n            log(this, 'Updating query params');\n            // A query param update is really just a transition\n            // into the route you're already on.\n            let { routeInfos } = this.state;\n            intent = new NamedTransitionIntent(this, routeInfos[routeInfos.length - 1].name, undefined, [], queryParams);\n        }\n        else if (name.charAt(0) === '/') {\n            log(this, 'Attempting URL transition to ' + name);\n            intent = new URLTransitionIntent(this, name);\n        }\n        else {\n            log(this, 'Attempting transition to ' + name);\n            intent = new NamedTransitionIntent(this, name, undefined, modelsArray, queryParams);\n        }\n        return this.transitionByIntent(intent, isIntermediate);\n    }\n    /**\n    @private\n  \n    Updates the URL (if necessary) and calls `setupContexts`\n    to update the router's array of `currentRouteInfos`.\n   */\n    finalizeTransition(transition, newState) {\n        try {\n            log(transition.router, transition.sequence, 'Resolved all models on destination route; finalizing transition.');\n            let routeInfos = newState.routeInfos;\n            // Run all the necessary enter/setup/exit hooks\n            this.setupContexts(newState, transition);\n            // Check if a redirect occurred in enter/setup\n            if (transition.isAborted) {\n                // TODO: cleaner way? distinguish b/w targetRouteInfos?\n                this.state.routeInfos = this.currentRouteInfos;\n                return Promise.reject(logAbort(transition));\n            }\n            this._updateURL(transition, newState);\n            transition.isActive = false;\n            this.activeTransition = undefined;\n            this.triggerEvent(this.currentRouteInfos, true, 'didTransition', []);\n            this.didTransition(this.currentRouteInfos);\n            this.toInfos(transition, newState.routeInfos, true);\n            this.routeDidChange(transition);\n            log(this, transition.sequence, 'TRANSITION COMPLETE.');\n            // Resolve with the final route.\n            return routeInfos[routeInfos.length - 1].route;\n        }\n        catch (e) {\n            if (!isTransitionAborted(e)) {\n                let infos = transition[STATE_SYMBOL].routeInfos;\n                transition.trigger(true, 'error', e, transition, infos[infos.length - 1].route);\n                transition.abort();\n            }\n            throw e;\n        }\n    }\n    /**\n    @private\n  \n    Takes an Array of `RouteInfo`s, figures out which ones are\n    exiting, entering, or changing contexts, and calls the\n    proper route hooks.\n  \n    For example, consider the following tree of routes. Each route is\n    followed by the URL segment it handles.\n  \n    ```\n    |~index (\"/\")\n    | |~posts (\"/posts\")\n    | | |-showPost (\"/:id\")\n    | | |-newPost (\"/new\")\n    | | |-editPost (\"/edit\")\n    | |~about (\"/about/:id\")\n    ```\n  \n    Consider the following transitions:\n  \n    1. A URL transition to `/posts/1`.\n       1. Triggers the `*model` callbacks on the\n          `index`, `posts`, and `showPost` routes\n       2. Triggers the `enter` callback on the same\n       3. Triggers the `setup` callback on the same\n    2. A direct transition to `newPost`\n       1. Triggers the `exit` callback on `showPost`\n       2. Triggers the `enter` callback on `newPost`\n       3. Triggers the `setup` callback on `newPost`\n    3. A direct transition to `about` with a specified\n       context object\n       1. Triggers the `exit` callback on `newPost`\n          and `posts`\n       2. Triggers the `serialize` callback on `about`\n       3. Triggers the `enter` callback on `about`\n       4. Triggers the `setup` callback on `about`\n  \n    @param {Router} transition\n    @param {TransitionState} newState\n  */\n    setupContexts(newState, transition) {\n        let partition = this.partitionRoutes(this.state, newState);\n        let i, l, route;\n        for (i = 0, l = partition.exited.length; i < l; i++) {\n            route = partition.exited[i].route;\n            delete route.context;\n            if (route !== undefined) {\n                if (route._internalReset !== undefined) {\n                    route._internalReset(true, transition);\n                }\n                if (route.exit !== undefined) {\n                    route.exit(transition);\n                }\n            }\n        }\n        let oldState = (this.oldState = this.state);\n        this.state = newState;\n        let currentRouteInfos = (this.currentRouteInfos = partition.unchanged.slice());\n        try {\n            for (i = 0, l = partition.reset.length; i < l; i++) {\n                route = partition.reset[i].route;\n                if (route !== undefined) {\n                    if (route._internalReset !== undefined) {\n                        route._internalReset(false, transition);\n                    }\n                }\n            }\n            for (i = 0, l = partition.updatedContext.length; i < l; i++) {\n                this.routeEnteredOrUpdated(currentRouteInfos, partition.updatedContext[i], false, transition);\n            }\n            for (i = 0, l = partition.entered.length; i < l; i++) {\n                this.routeEnteredOrUpdated(currentRouteInfos, partition.entered[i], true, transition);\n            }\n        }\n        catch (e) {\n            this.state = oldState;\n            this.currentRouteInfos = oldState.routeInfos;\n            throw e;\n        }\n        this.state.queryParams = this.finalizeQueryParamChange(currentRouteInfos, newState.queryParams, transition);\n    }\n    /**\n    @private\n  \n    Fires queryParamsDidChange event\n  */\n    fireQueryParamDidChange(newState, queryParamChangelist) {\n        // If queryParams changed trigger event\n        if (queryParamChangelist) {\n            // This is a little hacky but we need some way of storing\n            // changed query params given that no activeTransition\n            // is guaranteed to have occurred.\n            this._changedQueryParams = queryParamChangelist.all;\n            this.triggerEvent(newState.routeInfos, true, 'queryParamsDidChange', [\n                queryParamChangelist.changed,\n                queryParamChangelist.all,\n                queryParamChangelist.removed,\n            ]);\n            this._changedQueryParams = undefined;\n        }\n    }\n    /**\n    @private\n  \n    Helper method used by setupContexts. Handles errors or redirects\n    that may happen in enter/setup.\n  */\n    routeEnteredOrUpdated(currentRouteInfos, routeInfo, enter, transition) {\n        let route = routeInfo.route, context = routeInfo.context;\n        function _routeEnteredOrUpdated(route) {\n            if (enter) {\n                if (route.enter !== undefined) {\n                    route.enter(transition);\n                }\n            }\n            throwIfAborted(transition);\n            route.context = context;\n            if (route.contextDidChange !== undefined) {\n                route.contextDidChange();\n            }\n            if (route.setup !== undefined) {\n                route.setup(context, transition);\n            }\n            throwIfAborted(transition);\n            currentRouteInfos.push(routeInfo);\n            return route;\n        }\n        // If the route doesn't exist, it means we haven't resolved the route promise yet\n        if (route === undefined) {\n            routeInfo.routePromise = routeInfo.routePromise.then(_routeEnteredOrUpdated);\n        }\n        else {\n            _routeEnteredOrUpdated(route);\n        }\n        return true;\n    }\n    /**\n    @private\n  \n    This function is called when transitioning from one URL to\n    another to determine which routes are no longer active,\n    which routes are newly active, and which routes remain\n    active but have their context changed.\n  \n    Take a list of old routes and new routes and partition\n    them into four buckets:\n  \n    * unchanged: the route was active in both the old and\n      new URL, and its context remains the same\n    * updated context: the route was active in both the\n      old and new URL, but its context changed. The route's\n      `setup` method, if any, will be called with the new\n      context.\n    * exited: the route was active in the old URL, but is\n      no longer active.\n    * entered: the route was not active in the old URL, but\n      is now active.\n  \n    The PartitionedRoutes structure has four fields:\n  \n    * `updatedContext`: a list of `RouteInfo` objects that\n      represent routes that remain active but have a changed\n      context\n    * `entered`: a list of `RouteInfo` objects that represent\n      routes that are newly active\n    * `exited`: a list of `RouteInfo` objects that are no\n      longer active.\n    * `unchanged`: a list of `RouteInfo` objects that remain active.\n  \n    @param {Array[InternalRouteInfo]} oldRoutes a list of the route\n      information for the previous URL (or `[]` if this is the\n      first handled transition)\n    @param {Array[InternalRouteInfo]} newRoutes a list of the route\n      information for the new URL\n  \n    @return {Partition}\n  */\n    partitionRoutes(oldState, newState) {\n        let oldRouteInfos = oldState.routeInfos;\n        let newRouteInfos = newState.routeInfos;\n        let routes = {\n            updatedContext: [],\n            exited: [],\n            entered: [],\n            unchanged: [],\n            reset: [],\n        };\n        let routeChanged, contextChanged = false, i, l;\n        for (i = 0, l = newRouteInfos.length; i < l; i++) {\n            let oldRouteInfo = oldRouteInfos[i], newRouteInfo = newRouteInfos[i];\n            if (!oldRouteInfo || oldRouteInfo.route !== newRouteInfo.route) {\n                routeChanged = true;\n            }\n            if (routeChanged) {\n                routes.entered.push(newRouteInfo);\n                if (oldRouteInfo) {\n                    routes.exited.unshift(oldRouteInfo);\n                }\n            }\n            else if (contextChanged || oldRouteInfo.context !== newRouteInfo.context) {\n                contextChanged = true;\n                routes.updatedContext.push(newRouteInfo);\n            }\n            else {\n                routes.unchanged.push(oldRouteInfo);\n            }\n        }\n        for (i = newRouteInfos.length, l = oldRouteInfos.length; i < l; i++) {\n            routes.exited.unshift(oldRouteInfos[i]);\n        }\n        routes.reset = routes.updatedContext.slice();\n        routes.reset.reverse();\n        return routes;\n    }\n    _updateURL(transition, state) {\n        let urlMethod = transition.urlMethod;\n        if (!urlMethod) {\n            return;\n        }\n        let { routeInfos } = state;\n        let { name: routeName } = routeInfos[routeInfos.length - 1];\n        let params = {};\n        for (let i = routeInfos.length - 1; i >= 0; --i) {\n            let routeInfo = routeInfos[i];\n            merge(params, routeInfo.params);\n            if (routeInfo.route.inaccessibleByURL) {\n                urlMethod = null;\n            }\n        }\n        if (urlMethod) {\n            params.queryParams = transition._visibleQueryParams || state.queryParams;\n            let url = this.recognizer.generate(routeName, params);\n            // transitions during the initial transition must always use replaceURL.\n            // When the app boots, you are at a url, e.g. /foo. If some route\n            // redirects to bar as part of the initial transition, you don't want to\n            // add a history entry for /foo. If you do, pressing back will immediately\n            // hit the redirect again and take you back to /bar, thus killing the back\n            // button\n            let initial = transition.isCausedByInitialTransition;\n            // say you are at / and you click a link to route /foo. In /foo's\n            // route, the transition is aborted using replaceWith('/bar').\n            // Because the current url is still /, the history entry for / is\n            // removed from the history. Clicking back will take you to the page\n            // you were on before /, which is often not even the app, thus killing\n            // the back button. That's why updateURL is always correct for an\n            // aborting transition that's not the initial transition\n            let replaceAndNotAborting = urlMethod === 'replace' && !transition.isCausedByAbortingTransition;\n            // because calling refresh causes an aborted transition, this needs to be\n            // special cased - if the initial transition is a replace transition, the\n            // urlMethod should be honored here.\n            let isQueryParamsRefreshTransition = transition.queryParamsOnly && urlMethod === 'replace';\n            // say you are at / and you a `replaceWith(/foo)` is called. Then, that\n            // transition is aborted with `replaceWith(/bar)`. At the end, we should\n            // end up with /bar replacing /. We are replacing the replace. We only\n            // will replace the initial route if all subsequent aborts are also\n            // replaces. However, there is some ambiguity around the correct behavior\n            // here.\n            let replacingReplace = urlMethod === 'replace' && transition.isCausedByAbortingReplaceTransition;\n            if (initial || replaceAndNotAborting || isQueryParamsRefreshTransition || replacingReplace) {\n                this.replaceURL(url);\n            }\n            else {\n                this.updateURL(url);\n            }\n        }\n    }\n    finalizeQueryParamChange(resolvedHandlers, newQueryParams, transition) {\n        // We fire a finalizeQueryParamChange event which\n        // gives the new route hierarchy a chance to tell\n        // us which query params it's consuming and what\n        // their final values are. If a query param is\n        // no longer consumed in the final route hierarchy,\n        // its serialized segment will be removed\n        // from the URL.\n        for (let k in newQueryParams) {\n            if (newQueryParams.hasOwnProperty(k) && newQueryParams[k] === null) {\n                delete newQueryParams[k];\n            }\n        }\n        let finalQueryParamsArray = [];\n        this.triggerEvent(resolvedHandlers, true, 'finalizeQueryParamChange', [\n            newQueryParams,\n            finalQueryParamsArray,\n            transition,\n        ]);\n        if (transition) {\n            transition._visibleQueryParams = {};\n        }\n        let finalQueryParams = {};\n        for (let i = 0, len = finalQueryParamsArray.length; i < len; ++i) {\n            let qp = finalQueryParamsArray[i];\n            finalQueryParams[qp.key] = qp.value;\n            if (transition && qp.visible !== false) {\n                transition._visibleQueryParams[qp.key] = qp.value;\n            }\n        }\n        return finalQueryParams;\n    }\n    toReadOnlyInfos(newTransition, newState) {\n        let oldRouteInfos = this.state.routeInfos;\n        this.fromInfos(newTransition, oldRouteInfos);\n        this.toInfos(newTransition, newState.routeInfos);\n        this._lastQueryParams = newState.queryParams;\n    }\n    fromInfos(newTransition, oldRouteInfos) {\n        if (newTransition !== undefined && oldRouteInfos.length > 0) {\n            let fromInfos = toReadOnlyRouteInfo(oldRouteInfos, Object.assign({}, this._lastQueryParams), true);\n            newTransition.from = fromInfos[fromInfos.length - 1] || null;\n        }\n    }\n    toInfos(newTransition, newRouteInfos, includeAttributes = false) {\n        if (newTransition !== undefined && newRouteInfos.length > 0) {\n            let toInfos = toReadOnlyRouteInfo(newRouteInfos, Object.assign({}, newTransition[QUERY_PARAMS_SYMBOL]), includeAttributes);\n            newTransition.to = toInfos[toInfos.length - 1] || null;\n        }\n    }\n    notifyExistingHandlers(newState, newTransition) {\n        let oldRouteInfos = this.state.routeInfos, i, oldRouteInfoLen, oldHandler, newRouteInfo;\n        oldRouteInfoLen = oldRouteInfos.length;\n        for (i = 0; i < oldRouteInfoLen; i++) {\n            oldHandler = oldRouteInfos[i];\n            newRouteInfo = newState.routeInfos[i];\n            if (!newRouteInfo || oldHandler.name !== newRouteInfo.name) {\n                break;\n            }\n            if (!newRouteInfo.isResolved) {\n            }\n        }\n        this.triggerEvent(oldRouteInfos, true, 'willTransition', [newTransition]);\n        this.routeWillChange(newTransition);\n        this.willTransition(oldRouteInfos, newState.routeInfos, newTransition);\n    }\n    /**\n      Clears the current and target route routes and triggers exit\n      on each of them starting at the leaf and traversing up through\n      its ancestors.\n    */\n    reset() {\n        if (this.state) {\n            forEach(this.state.routeInfos.slice().reverse(), function (routeInfo) {\n                let route = routeInfo.route;\n                if (route !== undefined) {\n                    if (route.exit !== undefined) {\n                        route.exit();\n                    }\n                }\n                return true;\n            });\n        }\n        this.oldState = undefined;\n        this.state = new TransitionState();\n        this.currentRouteInfos = undefined;\n    }\n    /**\n      let handler = routeInfo.handler;\n      The entry point for handling a change to the URL (usually\n      via the back and forward button).\n  \n      Returns an Array of handlers and the parameters associated\n      with those parameters.\n  \n      @param {String} url a URL to process\n  \n      @return {Array} an Array of `[handler, parameter]` tuples\n    */\n    handleURL(url) {\n        // Perform a URL-based transition, but don't change\n        // the URL afterward, since it already happened.\n        if (url.charAt(0) !== '/') {\n            url = '/' + url;\n        }\n        return this.doTransition(url).method(null);\n    }\n    /**\n      Transition into the specified named route.\n  \n      If necessary, trigger the exit callback on any routes\n      that are no longer represented by the target route.\n  \n      @param {String} name the name of the route\n    */\n    transitionTo(name, ...contexts) {\n        if (typeof name === 'object') {\n            contexts.push(name);\n            return this.doTransition(undefined, contexts, false);\n        }\n        return this.doTransition(name, contexts);\n    }\n    intermediateTransitionTo(name, ...args) {\n        return this.doTransition(name, args, true);\n    }\n    refresh(pivotRoute) {\n        let previousTransition = this.activeTransition;\n        let state = previousTransition ? previousTransition[STATE_SYMBOL] : this.state;\n        let routeInfos = state.routeInfos;\n        if (pivotRoute === undefined) {\n            pivotRoute = routeInfos[0].route;\n        }\n        log(this, 'Starting a refresh transition');\n        let name = routeInfos[routeInfos.length - 1].name;\n        let intent = new NamedTransitionIntent(this, name, pivotRoute, [], this._changedQueryParams || state.queryParams);\n        let newTransition = this.transitionByIntent(intent, false);\n        // if the previous transition is a replace transition, that needs to be preserved\n        if (previousTransition && previousTransition.urlMethod === 'replace') {\n            newTransition.method(previousTransition.urlMethod);\n        }\n        return newTransition;\n    }\n    /**\n      Identical to `transitionTo` except that the current URL will be replaced\n      if possible.\n  \n      This method is intended primarily for use with `replaceState`.\n  \n      @param {String} name the name of the route\n    */\n    replaceWith(name) {\n        return this.doTransition(name).method('replace');\n    }\n    /**\n      Take a named route and context objects and generate a\n      URL.\n  \n      @param {String} name the name of the route to generate\n        a URL for\n      @param {...Object} objects a list of objects to serialize\n  \n      @return {String} a URL\n    */\n    generate(routeName, ...args) {\n        let partitionedArgs = extractQueryParams(args), suppliedParams = partitionedArgs[0], queryParams = partitionedArgs[1];\n        // Construct a TransitionIntent with the provided params\n        // and apply it to the present state of the router.\n        let intent = new NamedTransitionIntent(this, routeName, undefined, suppliedParams);\n        let state = intent.applyToState(this.state, false);\n        let params = {};\n        for (let i = 0, len = state.routeInfos.length; i < len; ++i) {\n            let routeInfo = state.routeInfos[i];\n            let routeParams = routeInfo.serialize();\n            merge(params, routeParams);\n        }\n        params.queryParams = queryParams;\n        return this.recognizer.generate(routeName, params);\n    }\n    applyIntent(routeName, contexts) {\n        let intent = new NamedTransitionIntent(this, routeName, undefined, contexts);\n        let state = (this.activeTransition && this.activeTransition[STATE_SYMBOL]) || this.state;\n        return intent.applyToState(state, false);\n    }\n    isActiveIntent(routeName, contexts, queryParams, _state) {\n        let state = _state || this.state, targetRouteInfos = state.routeInfos, routeInfo, len;\n        if (!targetRouteInfos.length) {\n            return false;\n        }\n        let targetHandler = targetRouteInfos[targetRouteInfos.length - 1].name;\n        let recognizerHandlers = this.recognizer.handlersFor(targetHandler);\n        let index = 0;\n        for (len = recognizerHandlers.length; index < len; ++index) {\n            routeInfo = targetRouteInfos[index];\n            if (routeInfo.name === routeName) {\n                break;\n            }\n        }\n        if (index === recognizerHandlers.length) {\n            // The provided route name isn't even in the route hierarchy.\n            return false;\n        }\n        let testState = new TransitionState();\n        testState.routeInfos = targetRouteInfos.slice(0, index + 1);\n        recognizerHandlers = recognizerHandlers.slice(0, index + 1);\n        let intent = new NamedTransitionIntent(this, targetHandler, undefined, contexts);\n        let newState = intent.applyToHandlers(testState, recognizerHandlers, targetHandler, true, true);\n        let routesEqual = routeInfosEqual(newState.routeInfos, testState.routeInfos);\n        if (!queryParams || !routesEqual) {\n            return routesEqual;\n        }\n        // Get a hash of QPs that will still be active on new route\n        let activeQPsOnNewHandler = {};\n        merge(activeQPsOnNewHandler, queryParams);\n        let activeQueryParams = state.queryParams;\n        for (let key in activeQueryParams) {\n            if (activeQueryParams.hasOwnProperty(key) && activeQPsOnNewHandler.hasOwnProperty(key)) {\n                activeQPsOnNewHandler[key] = activeQueryParams[key];\n            }\n        }\n        return routesEqual && !getChangelist(activeQPsOnNewHandler, queryParams);\n    }\n    isActive(routeName, ...args) {\n        let partitionedArgs = extractQueryParams(args);\n        return this.isActiveIntent(routeName, partitionedArgs[0], partitionedArgs[1]);\n    }\n    trigger(name, ...args) {\n        this.triggerEvent(this.currentRouteInfos, false, name, args);\n    }\n}\nfunction routeInfosEqual(routeInfos, otherRouteInfos) {\n    if (routeInfos.length !== otherRouteInfos.length) {\n        return false;\n    }\n    for (let i = 0, len = routeInfos.length; i < len; ++i) {\n        if (routeInfos[i] !== otherRouteInfos[i]) {\n            return false;\n        }\n    }\n    return true;\n}\nfunction routeInfosSameExceptQueryParams(routeInfos, otherRouteInfos) {\n    if (routeInfos.length !== otherRouteInfos.length) {\n        return false;\n    }\n    for (let i = 0, len = routeInfos.length; i < len; ++i) {\n        if (routeInfos[i].name !== otherRouteInfos[i].name) {\n            return false;\n        }\n        if (!paramsEqual(routeInfos[i].params, otherRouteInfos[i].params)) {\n            return false;\n        }\n    }\n    return true;\n}\nfunction paramsEqual(params, otherParams) {\n    if (!params && !otherParams) {\n        return true;\n    }\n    else if ((!params && !!otherParams) || (!!params && !otherParams)) {\n        // one is falsy but other is not;\n        return false;\n    }\n    let keys = Object.keys(params);\n    let otherKeys = Object.keys(otherParams);\n    if (keys.length !== otherKeys.length) {\n        return false;\n    }\n    for (let i = 0, len = keys.length; i < len; ++i) {\n        let key = keys[i];\n        if (params[key] !== otherParams[key]) {\n            return false;\n        }\n    }\n    return true;\n}\n\nexport default Router;\nexport { Transition as InternalTransition, logAbort, STATE_SYMBOL, PARAMS_SYMBOL, QUERY_PARAMS_SYMBOL, TransitionState, TransitionError, InternalRouteInfo };\n","function callbacksFor(object) {\n  let callbacks = object._promiseCallbacks;\n\n  if (!callbacks) {\n    callbacks = object._promiseCallbacks = {};\n  }\n\n  return callbacks;\n}\n\n/**\n  @class EventTarget\n  @for rsvp\n  @public\n*/\nvar EventTarget = {\n\n  /**\n    `EventTarget.mixin` extends an object with EventTarget methods. For\n    Example:\n\n    ```javascript\n    import EventTarget from 'rsvp';\n\n    let object = {};\n\n    EventTarget.mixin(object);\n\n    object.on('finished', function(event) {\n      // handle event\n    });\n\n    object.trigger('finished', { detail: value });\n    ```\n\n    `EventTarget.mixin` also works with prototypes:\n\n    ```javascript\n    import EventTarget from 'rsvp';\n\n    let Person = function() {};\n    EventTarget.mixin(Person.prototype);\n\n    let yehuda = new Person();\n    let tom = new Person();\n\n    yehuda.on('poke', function(event) {\n      console.log('Yehuda says OW');\n    });\n\n    tom.on('poke', function(event) {\n      console.log('Tom says OW');\n    });\n\n    yehuda.trigger('poke');\n    tom.trigger('poke');\n    ```\n\n    @method mixin\n    @for rsvp\n    @private\n    @param {Object} object object to extend with EventTarget methods\n  */\n  mixin(object) {\n    object.on      = this.on;\n    object.off     = this.off;\n    object.trigger = this.trigger;\n    object._promiseCallbacks = undefined;\n    return object;\n  },\n\n  /**\n    Registers a callback to be executed when `eventName` is triggered\n\n    ```javascript\n    object.on('event', function(eventInfo){\n      // handle the event\n    });\n\n    object.trigger('event');\n    ```\n\n    @method on\n    @for EventTarget\n    @private\n    @param {String} eventName name of the event to listen for\n    @param {Function} callback function to be called when the event is triggered.\n  */\n  on(eventName, callback) {\n    if (typeof callback !== 'function') {\n      throw new TypeError('Callback must be a function');\n    }\n\n    let allCallbacks = callbacksFor(this);\n    let callbacks = allCallbacks[eventName];\n\n    if (!callbacks) {\n      callbacks = allCallbacks[eventName] = [];\n    }\n\n    if (callbacks.indexOf(callback) === -1) {\n      callbacks.push(callback);\n    }\n  },\n\n  /**\n    You can use `off` to stop firing a particular callback for an event:\n\n    ```javascript\n    function doStuff() { // do stuff! }\n    object.on('stuff', doStuff);\n\n    object.trigger('stuff'); // doStuff will be called\n\n    // Unregister ONLY the doStuff callback\n    object.off('stuff', doStuff);\n    object.trigger('stuff'); // doStuff will NOT be called\n    ```\n\n    If you don't pass a `callback` argument to `off`, ALL callbacks for the\n    event will not be executed when the event fires. For example:\n\n    ```javascript\n    let callback1 = function(){};\n    let callback2 = function(){};\n\n    object.on('stuff', callback1);\n    object.on('stuff', callback2);\n\n    object.trigger('stuff'); // callback1 and callback2 will be executed.\n\n    object.off('stuff');\n    object.trigger('stuff'); // callback1 and callback2 will not be executed!\n    ```\n\n    @method off\n    @for rsvp\n    @private\n    @param {String} eventName event to stop listening to\n    @param {Function} [callback] optional argument. If given, only the function\n    given will be removed from the event's callback queue. If no `callback`\n    argument is given, all callbacks will be removed from the event's callback\n    queue.\n  */\n  off(eventName, callback) {\n    let allCallbacks = callbacksFor(this);\n\n    if (!callback) {\n      allCallbacks[eventName] = [];\n      return;\n    }\n\n    let callbacks = allCallbacks[eventName];\n    let index = callbacks.indexOf(callback);\n\n    if (index !== -1) {\n      callbacks.splice(index, 1);\n    }\n  },\n\n  /**\n    Use `trigger` to fire custom events. For example:\n\n    ```javascript\n    object.on('foo', function(){\n      console.log('foo event happened!');\n    });\n    object.trigger('foo');\n    // 'foo event happened!' logged to the console\n    ```\n\n    You can also pass a value as a second argument to `trigger` that will be\n    passed as an argument to all event listeners for the event:\n\n    ```javascript\n    object.on('foo', function(value){\n      console.log(value.name);\n    });\n\n    object.trigger('foo', { name: 'bar' });\n    // 'bar' logged to the console\n    ```\n\n    @method trigger\n    @for rsvp\n    @private\n    @param {String} eventName name of the event to be triggered\n    @param {*} [options] optional value to be passed to any event handlers for\n    the given `eventName`\n  */\n  trigger(eventName, options, label) {\n    let allCallbacks = callbacksFor(this);\n\n    let callbacks = allCallbacks[eventName];\n    if (callbacks) {\n      // Don't cache the callbacks.length since it may grow\n      let callback;\n      for (let i = 0; i < callbacks.length; i++) {\n        callback = callbacks[i];\n        callback(options, label);\n      }\n    }\n  }\n};\n\nconst config = {\n  instrument: false\n};\n\nEventTarget['mixin'](config);\n\nfunction configure(name, value) {\n  if (arguments.length === 2) {\n    config[name] = value;\n  } else {\n    return config[name];\n  }\n}\n\nconst queue = [];\n\nfunction scheduleFlush() {\n  setTimeout(() => {\n    for (let i = 0; i < queue.length; i++) {\n      let entry = queue[i];\n\n      let payload = entry.payload;\n\n      payload.guid = payload.key + payload.id;\n      payload.childGuid = payload.key + payload.childId;\n      if (payload.error) {\n        payload.stack = payload.error.stack;\n      }\n\n      config['trigger'](entry.name, entry.payload);\n    }\n    queue.length = 0;\n  }, 50);\n}\n\nfunction instrument(eventName, promise, child) {\n  if (1 === queue.push({\n    name: eventName,\n    payload: {\n      key: promise._guidKey,\n      id:  promise._id,\n      eventName: eventName,\n      detail: promise._result,\n      childId: child && child._id,\n      label: promise._label,\n      timeStamp: Date.now(),\n      error: config[\"instrument-with-stack\"] ? new Error(promise._label) : null\n    }})) {\n      scheduleFlush();\n    }\n  }\n\n/**\n  `Promise.resolve` returns a promise that will become resolved with the\n  passed `value`. It is shorthand for the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = new Promise(function(resolve, reject){\n    resolve(1);\n  });\n\n  promise.then(function(value){\n    // value === 1\n  });\n  ```\n\n  Instead of writing the above, your code now simply becomes the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = RSVP.Promise.resolve(1);\n\n  promise.then(function(value){\n    // value === 1\n  });\n  ```\n\n  @method resolve\n  @for Promise\n  @static\n  @param {*} object value that the returned promise will be resolved with\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise that will become fulfilled with the given\n  `value`\n*/\nfunction resolve$$1(object, label) {\n  /*jshint validthis:true */\n  let Constructor = this;\n\n  if (object && typeof object === 'object' && object.constructor === Constructor) {\n    return object;\n  }\n\n  let promise = new Constructor(noop, label);\n  resolve$1(promise, object);\n  return promise;\n}\n\nfunction withOwnPromise() {\n  return new TypeError('A promises callback cannot return that same promise.');\n}\n\nfunction objectOrFunction(x) {\n  let type = typeof x;\n  return x !== null && (type === 'object' || type === 'function');\n}\n\nfunction noop() {}\n\nconst PENDING   = void 0;\nconst FULFILLED = 1;\nconst REJECTED  = 2;\n\nfunction tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {\n  try {\n    then$$1.call(value, fulfillmentHandler, rejectionHandler);\n  } catch(e) {\n    return e;\n  }\n}\nfunction handleForeignThenable(promise, thenable, then$$1) {\n  config.async(promise => {\n    let sealed = false;\n    let error = tryThen(then$$1,\n      thenable,\n      value => {\n        if (sealed) { return; }\n        sealed = true;\n        if (thenable === value) {\n          fulfill(promise, value);\n        } else {\n          resolve$1(promise, value);\n        }\n      },\n      reason => {\n        if (sealed) { return; }\n        sealed = true;\n\n        reject(promise, reason);\n      },\n      'Settle: ' + (promise._label || ' unknown promise')\n    );\n    if (!sealed && error) {\n      sealed = true;\n      reject(promise, error);\n    }\n  }, promise);\n}\n\nfunction handleOwnThenable(promise, thenable) {\n  if (thenable._state === FULFILLED) {\n    fulfill(promise, thenable._result);\n  } else if (thenable._state === REJECTED) {\n    thenable._onError = null;\n    reject(promise, thenable._result);\n  } else {\n    subscribe(thenable, undefined, value => {\n      if (thenable === value) {\n        fulfill(promise, value);\n      } else {\n        resolve$1(promise, value);\n      }\n    }, reason => reject(promise, reason));\n  }\n}\n\nfunction handleMaybeThenable(promise, maybeThenable, then$$1) {\n  let isOwnThenable =\n    maybeThenable.constructor === promise.constructor &&\n    then$$1 === then &&\n    promise.constructor.resolve === resolve$$1;\n\n  if (isOwnThenable) {\n    handleOwnThenable(promise, maybeThenable);\n  } else if (typeof then$$1 === 'function') {\n    handleForeignThenable(promise, maybeThenable, then$$1);\n  } else {\n    fulfill(promise, maybeThenable);\n  }\n}\n\nfunction resolve$1(promise, value) {\n  if (promise === value) {\n    fulfill(promise, value);\n  } else if (objectOrFunction(value)) {\n    let then$$1;\n    try {\n      then$$1 = value.then;\n    } catch (error) {\n      reject(promise, error);\n      return;\n    }\n    handleMaybeThenable(promise, value, then$$1);\n  } else {\n    fulfill(promise, value);\n  }\n}\n\nfunction publishRejection(promise) {\n  if (promise._onError) {\n    promise._onError(promise._result);\n  }\n\n  publish(promise);\n}\n\nfunction fulfill(promise, value) {\n  if (promise._state !== PENDING) { return; }\n\n  promise._result = value;\n  promise._state = FULFILLED;\n\n  if (promise._subscribers.length === 0) {\n    if (config.instrument) {\n      instrument('fulfilled', promise);\n    }\n  } else {\n    config.async(publish, promise);\n  }\n}\n\nfunction reject(promise, reason) {\n  if (promise._state !== PENDING) { return; }\n  promise._state = REJECTED;\n  promise._result = reason;\n  config.async(publishRejection, promise);\n}\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n  let subscribers = parent._subscribers;\n  let length = subscribers.length;\n\n  parent._onError = null;\n\n  subscribers[length] = child;\n  subscribers[length + FULFILLED] = onFulfillment;\n  subscribers[length + REJECTED]  = onRejection;\n\n  if (length === 0 && parent._state) {\n    config.async(publish, parent);\n  }\n}\n\nfunction publish(promise) {\n  let subscribers = promise._subscribers;\n  let settled = promise._state;\n\n  if (config.instrument) {\n    instrument(settled === FULFILLED ? 'fulfilled' : 'rejected', promise);\n  }\n\n  if (subscribers.length === 0) { return; }\n\n  let child, callback, result = promise._result;\n\n  for (let i = 0; i < subscribers.length; i += 3) {\n    child = subscribers[i];\n    callback = subscribers[i + settled];\n\n    if (child) {\n      invokeCallback(settled, child, callback, result);\n    } else {\n      callback(result);\n    }\n  }\n\n  promise._subscribers.length = 0;\n}\n\nfunction invokeCallback(state, promise, callback, result) {\n  let hasCallback = typeof callback === 'function';\n  let value, succeeded = true, error;\n\n  if (hasCallback) {\n    try {\n      value = callback(result);\n    } catch (e) {\n      succeeded = false;\n      error = e;\n    }\n  } else {\n    value = result;\n  }\n\n  if (promise._state !== PENDING) {\n    // noop\n  } else if (value === promise) {\n    reject(promise, withOwnPromise());\n  } else if (succeeded === false) {\n    reject(promise, error);\n  } else if (hasCallback) {\n    resolve$1(promise, value);\n  } else if (state === FULFILLED) {\n    fulfill(promise, value);\n  } else if (state === REJECTED) {\n    reject(promise, value);\n  }\n}\n\nfunction initializePromise(promise, resolver) {\n  let resolved = false;\n  try {\n    resolver(value => {\n      if (resolved) { return; }\n      resolved = true;\n      resolve$1(promise, value);\n    }, reason => {\n      if (resolved) { return; }\n      resolved = true;\n      reject(promise, reason);\n    });\n  } catch(e) {\n    reject(promise, e);\n  }\n}\n\nfunction then(onFulfillment, onRejection, label) {\n  let parent = this;\n  let state = parent._state;\n\n  if (state === FULFILLED && !onFulfillment || state === REJECTED && !onRejection) {\n    config.instrument && instrument('chained', parent, parent);\n    return parent;\n  }\n\n  parent._onError = null;\n\n  let child = new parent.constructor(noop, label);\n  let result = parent._result;\n\n  config.instrument && instrument('chained', parent, child);\n\n  if (state === PENDING) {\n    subscribe(parent, child, onFulfillment, onRejection);\n  } else {\n    let callback = state === FULFILLED ? onFulfillment : onRejection;\n    config.async(() => invokeCallback(state, child, callback, result));\n  }\n\n  return child;\n}\n\nclass Enumerator {\n  constructor(Constructor, input, abortOnReject, label) {\n    this._instanceConstructor = Constructor;\n    this.promise = new Constructor(noop, label);\n    this._abortOnReject = abortOnReject;\n    this._isUsingOwnPromise = Constructor === Promise;\n    this._isUsingOwnResolve = Constructor.resolve === resolve$$1;\n\n    this._init(...arguments);\n  }\n\n  _init(Constructor, input) {\n    let len = input.length || 0;\n    this.length     = len;\n    this._remaining = len;\n    this._result = new Array(len);\n\n    this._enumerate(input);\n  }\n\n  _enumerate(input) {\n    let length  = this.length;\n    let promise = this.promise;\n\n    for (let i = 0; promise._state === PENDING && i < length; i++) {\n      this._eachEntry(input[i], i, true);\n    }\n    this._checkFullfillment();\n  }\n\n  _checkFullfillment() {\n    if (this._remaining === 0) {\n      let result = this._result;\n      fulfill(this.promise, result);\n      this._result = null;\n    }\n  }\n\n  _settleMaybeThenable(entry, i, firstPass) {\n    let c = this._instanceConstructor;\n\n    if (this._isUsingOwnResolve) {\n      let then$$1, error, succeeded = true;\n      try {\n        then$$1 = entry.then;\n      } catch (e) {\n        succeeded = false;\n        error = e;\n      }\n\n      if (then$$1 === then && entry._state !== PENDING) {\n        entry._onError = null;\n        this._settledAt(entry._state, i, entry._result, firstPass);\n      } else if (typeof then$$1 !== 'function') {\n        this._settledAt(FULFILLED, i, entry, firstPass);\n      } else if (this._isUsingOwnPromise) {\n        let promise = new c(noop);\n        if (succeeded === false) {\n          reject(promise, error);\n        } else {\n          handleMaybeThenable(promise, entry, then$$1);\n          this._willSettleAt(promise, i, firstPass);\n        }\n      } else {\n        this._willSettleAt(new c(resolve => resolve(entry)), i, firstPass);\n      }\n    } else {\n      this._willSettleAt(c.resolve(entry), i, firstPass);\n    }\n  }\n\n  _eachEntry(entry, i, firstPass) {\n    if (entry !== null && typeof entry === 'object') {\n      this._settleMaybeThenable(entry, i, firstPass);\n    } else {\n      this._setResultAt(FULFILLED, i, entry, firstPass);\n    }\n  }\n\n  _settledAt(state, i, value, firstPass) {\n    let promise = this.promise;\n\n    if (promise._state === PENDING) {\n      if (this._abortOnReject && state === REJECTED) {\n        reject(promise, value);\n      } else {\n        this._setResultAt(state, i, value, firstPass);\n        this._checkFullfillment();\n      }\n    }\n  }\n\n  _setResultAt(state, i, value, firstPass) {\n    this._remaining--;\n    this._result[i] = value;\n  }\n\n  _willSettleAt(promise, i, firstPass) {\n    subscribe(\n      promise, undefined,\n      value  => this._settledAt(FULFILLED, i, value, firstPass),\n      reason => this._settledAt(REJECTED,  i, reason, firstPass)\n    );\n  }\n}\n\nfunction setSettledResult(state, i, value) {\n  this._remaining--;\n  if (state === FULFILLED) {\n    this._result[i] = {\n      state: 'fulfilled',\n      value: value\n    };\n  } else {\n     this._result[i] = {\n      state: 'rejected',\n      reason: value\n    };\n  }\n}\n\n/**\n  `Promise.all` accepts an array of promises, and returns a new promise which\n  is fulfilled with an array of fulfillment values for the passed promises, or\n  rejected with the reason of the first passed promise to be rejected. It casts all\n  elements of the passed iterable to promises as it runs this algorithm.\n\n  Example:\n\n  ```javascript\n  import Promise, { resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n  let promises = [ promise1, promise2, promise3 ];\n\n  Promise.all(promises).then(function(array){\n    // The array here would be [ 1, 2, 3 ];\n  });\n  ```\n\n  If any of the `promises` given to `RSVP.all` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promises's\n  rejection handler. For example:\n\n  Example:\n\n  ```javascript\n  import Promise, { resolve, reject } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error(\"2\"));\n  let promise3 = reject(new Error(\"3\"));\n  let promises = [ promise1, promise2, promise3 ];\n\n  Promise.all(promises).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(error) {\n    // error.message === \"2\"\n  });\n  ```\n\n  @method all\n  @for Promise\n  @param {Array} entries array of promises\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when all `promises` have been\n  fulfilled, or rejected if any of them become rejected.\n  @static\n*/\nfunction all(entries, label) {\n  if (!Array.isArray(entries)) {\n    return this.reject(new TypeError(\"Promise.all must be called with an array\"), label);\n  }\n  return new Enumerator(this, entries, true /* abort on reject */, label).promise;\n}\n\n/**\n  `Promise.race` returns a new promise which is settled in the same way as the\n  first passed promise to settle.\n\n  Example:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise1 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 1');\n    }, 200);\n  });\n\n  let promise2 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 2');\n    }, 100);\n  });\n\n  Promise.race([promise1, promise2]).then(function(result){\n    // result === 'promise 2' because it was resolved before promise1\n    // was resolved.\n  });\n  ```\n\n  `Promise.race` is deterministic in that only the state of the first\n  settled promise matters. For example, even if other promises given to the\n  `promises` array argument are resolved, but the first settled promise has\n  become rejected before the other promises became fulfilled, the returned\n  promise will become rejected:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise1 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 1');\n    }, 200);\n  });\n\n  let promise2 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      reject(new Error('promise 2'));\n    }, 100);\n  });\n\n  Promise.race([promise1, promise2]).then(function(result){\n    // Code here never runs\n  }, function(reason){\n    // reason.message === 'promise 2' because promise 2 became rejected before\n    // promise 1 became fulfilled\n  });\n  ```\n\n  An example real-world use case is implementing timeouts:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  Promise.race([ajax('foo.json'), timeout(5000)])\n  ```\n\n  @method race\n  @for Promise\n  @static\n  @param {Array} entries array of promises to observe\n  @param {String} [label] optional string for describing the promise returned.\n  Useful for tooling.\n  @return {Promise} a promise which settles in the same way as the first passed\n  promise to settle.\n*/\nfunction race(entries, label) {\n  /*jshint validthis:true */\n  let Constructor = this;\n\n  let promise = new Constructor(noop, label);\n\n  if (!Array.isArray(entries)) {\n    reject(promise, new TypeError('Promise.race must be called with an array'));\n    return promise;\n  }\n\n  for (let i = 0; promise._state === PENDING && i < entries.length; i++) {\n    subscribe(\n      Constructor.resolve(entries[i]), undefined,\n      value  => resolve$1(promise, value),\n      reason => reject(promise, reason)\n    );\n  }\n\n  return promise;\n}\n\n/**\n  `Promise.reject` returns a promise rejected with the passed `reason`.\n  It is shorthand for the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = new Promise(function(resolve, reject){\n    reject(new Error('WHOOPS'));\n  });\n\n  promise.then(function(value){\n    // Code here doesn't run because the promise is rejected!\n  }, function(reason){\n    // reason.message === 'WHOOPS'\n  });\n  ```\n\n  Instead of writing the above, your code now simply becomes the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = Promise.reject(new Error('WHOOPS'));\n\n  promise.then(function(value){\n    // Code here doesn't run because the promise is rejected!\n  }, function(reason){\n    // reason.message === 'WHOOPS'\n  });\n  ```\n\n  @method reject\n  @for Promise\n  @static\n  @param {*} reason value that the returned promise will be rejected with.\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject$1(reason, label) {\n  /*jshint validthis:true */\n  let Constructor = this;\n  let promise = new Constructor(noop, label);\n  reject(promise, reason);\n  return promise;\n}\n\nconst guidKey = 'rsvp_' + Date.now() + '-';\nlet counter = 0;\n\nfunction needsResolver() {\n  throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n}\n\nfunction needsNew() {\n  throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n}\n\n/**\n  Promise objects represent the eventual result of an asynchronous operation. The\n  primary way of interacting with a promise is through its `then` method, which\n  registers callbacks to receive either a promise’s eventual value or the reason\n  why the promise cannot be fulfilled.\n\n  Terminology\n  -----------\n\n  - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n  - `thenable` is an object or function that defines a `then` method.\n  - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n  - `exception` is a value that is thrown using the throw statement.\n  - `reason` is a value that indicates why a promise was rejected.\n  - `settled` the final resting state of a promise, fulfilled or rejected.\n\n  A promise can be in one of three states: pending, fulfilled, or rejected.\n\n  Promises that are fulfilled have a fulfillment value and are in the fulfilled\n  state.  Promises that are rejected have a rejection reason and are in the\n  rejected state.  A fulfillment value is never a thenable.\n\n  Promises can also be said to *resolve* a value.  If this value is also a\n  promise, then the original promise's settled state will match the value's\n  settled state.  So a promise that *resolves* a promise that rejects will\n  itself reject, and a promise that *resolves* a promise that fulfills will\n  itself fulfill.\n\n\n  Basic Usage:\n  ------------\n\n  ```js\n  let promise = new Promise(function(resolve, reject) {\n    // on success\n    resolve(value);\n\n    // on failure\n    reject(reason);\n  });\n\n  promise.then(function(value) {\n    // on fulfillment\n  }, function(reason) {\n    // on rejection\n  });\n  ```\n\n  Advanced Usage:\n  ---------------\n\n  Promises shine when abstracting away asynchronous interactions such as\n  `XMLHttpRequest`s.\n\n  ```js\n  function getJSON(url) {\n    return new Promise(function(resolve, reject){\n      let xhr = new XMLHttpRequest();\n\n      xhr.open('GET', url);\n      xhr.onreadystatechange = handler;\n      xhr.responseType = 'json';\n      xhr.setRequestHeader('Accept', 'application/json');\n      xhr.send();\n\n      function handler() {\n        if (this.readyState === this.DONE) {\n          if (this.status === 200) {\n            resolve(this.response);\n          } else {\n            reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n          }\n        }\n      };\n    });\n  }\n\n  getJSON('/posts.json').then(function(json) {\n    // on fulfillment\n  }, function(reason) {\n    // on rejection\n  });\n  ```\n\n  Unlike callbacks, promises are great composable primitives.\n\n  ```js\n  Promise.all([\n    getJSON('/posts'),\n    getJSON('/comments')\n  ]).then(function(values){\n    values[0] // => postsJSON\n    values[1] // => commentsJSON\n\n    return values;\n  });\n  ```\n\n  @class Promise\n  @public\n  @param {function} resolver\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @constructor\n*/\nclass Promise {\n  constructor(resolver, label) {\n    this._id = counter++;\n    this._label = label;\n    this._state = undefined;\n    this._result = undefined;\n    this._subscribers = [];\n\n    config.instrument && instrument('created', this);\n\n    if (noop !== resolver) {\n      typeof resolver !== 'function' && needsResolver();\n      this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n    }\n  }\n\n  _onError(reason) {\n    config.after(() => {\n      if (this._onError) {\n        config.trigger('error', reason, this._label);\n      }\n    });\n  }\n\n/**\n  `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n  as the catch block of a try/catch statement.\n\n  ```js\n  function findAuthor(){\n    throw new Error('couldn\\'t find that author');\n  }\n\n  // synchronous\n  try {\n    findAuthor();\n  } catch(reason) {\n    // something went wrong\n  }\n\n  // async with promises\n  findAuthor().catch(function(reason){\n    // something went wrong\n  });\n  ```\n\n  @method catch\n  @param {Function} onRejection\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n*/\n  catch(onRejection, label) {\n    return this.then(undefined, onRejection, label);\n  }\n\n/**\n  `finally` will be invoked regardless of the promise's fate just as native\n  try/catch/finally behaves\n\n  Synchronous example:\n\n  ```js\n  findAuthor() {\n    if (Math.random() > 0.5) {\n      throw new Error();\n    }\n    return new Author();\n  }\n\n  try {\n    return findAuthor(); // succeed or fail\n  } catch(error) {\n    return findOtherAuthor();\n  } finally {\n    // always runs\n    // doesn't affect the return value\n  }\n  ```\n\n  Asynchronous example:\n\n  ```js\n  findAuthor().catch(function(reason){\n    return findOtherAuthor();\n  }).finally(function(){\n    // author was either found, or not\n  });\n  ```\n\n  @method finally\n  @param {Function} callback\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n*/\n  finally(callback, label) {\n    let promise = this;\n    let constructor = promise.constructor;\n\n    if (typeof callback === 'function') {\n      return promise.then(value => constructor.resolve(callback()).then(() => value),\n                         reason => constructor.resolve(callback()).then(() => { throw reason; }));\n    }\n\n    return promise.then(callback, callback);\n  }\n}\n\nPromise.cast = resolve$$1; // deprecated\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = resolve$$1;\nPromise.reject = reject$1;\n\nPromise.prototype._guidKey = guidKey;\n\n/**\n  The primary way of interacting with a promise is through its `then` method,\n  which registers callbacks to receive either a promise's eventual value or the\n  reason why the promise cannot be fulfilled.\n\n  ```js\n  findUser().then(function(user){\n    // user is available\n  }, function(reason){\n    // user is unavailable, and you are given the reason why\n  });\n  ```\n\n  Chaining\n  --------\n\n  The return value of `then` is itself a promise.  This second, 'downstream'\n  promise is resolved with the return value of the first promise's fulfillment\n  or rejection handler, or rejected if the handler throws an exception.\n\n  ```js\n  findUser().then(function (user) {\n    return user.name;\n  }, function (reason) {\n    return 'default name';\n  }).then(function (userName) {\n    // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n    // will be `'default name'`\n  });\n\n  findUser().then(function (user) {\n    throw new Error('Found user, but still unhappy');\n  }, function (reason) {\n    throw new Error('`findUser` rejected and we\\'re unhappy');\n  }).then(function (value) {\n    // never reached\n  }, function (reason) {\n    // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n    // If `findUser` rejected, `reason` will be '`findUser` rejected and we\\'re unhappy'.\n  });\n  ```\n  If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n\n  ```js\n  findUser().then(function (user) {\n    throw new PedagogicalException('Upstream error');\n  }).then(function (value) {\n    // never reached\n  }).then(function (value) {\n    // never reached\n  }, function (reason) {\n    // The `PedgagocialException` is propagated all the way down to here\n  });\n  ```\n\n  Assimilation\n  ------------\n\n  Sometimes the value you want to propagate to a downstream promise can only be\n  retrieved asynchronously. This can be achieved by returning a promise in the\n  fulfillment or rejection handler. The downstream promise will then be pending\n  until the returned promise is settled. This is called *assimilation*.\n\n  ```js\n  findUser().then(function (user) {\n    return findCommentsByAuthor(user);\n  }).then(function (comments) {\n    // The user's comments are now available\n  });\n  ```\n\n  If the assimliated promise rejects, then the downstream promise will also reject.\n\n  ```js\n  findUser().then(function (user) {\n    return findCommentsByAuthor(user);\n  }).then(function (comments) {\n    // If `findCommentsByAuthor` fulfills, we'll have the value here\n  }, function (reason) {\n    // If `findCommentsByAuthor` rejects, we'll have the reason here\n  });\n  ```\n\n  Simple Example\n  --------------\n\n  Synchronous Example\n\n  ```javascript\n  let result;\n\n  try {\n    result = findResult();\n    // success\n  } catch(reason) {\n    // failure\n  }\n  ```\n\n  Errback Example\n\n  ```js\n  findResult(function(result, err){\n    if (err) {\n      // failure\n    } else {\n      // success\n    }\n  });\n  ```\n\n  Promise Example;\n\n  ```javascript\n  findResult().then(function(result){\n    // success\n  }, function(reason){\n    // failure\n  });\n  ```\n\n  Advanced Example\n  --------------\n\n  Synchronous Example\n\n  ```javascript\n  let author, books;\n\n  try {\n    author = findAuthor();\n    books  = findBooksByAuthor(author);\n    // success\n  } catch(reason) {\n    // failure\n  }\n  ```\n\n  Errback Example\n\n  ```js\n\n  function foundBooks(books) {\n\n  }\n\n  function failure(reason) {\n\n  }\n\n  findAuthor(function(author, err){\n    if (err) {\n      failure(err);\n      // failure\n    } else {\n      try {\n        findBoooksByAuthor(author, function(books, err) {\n          if (err) {\n            failure(err);\n          } else {\n            try {\n              foundBooks(books);\n            } catch(reason) {\n              failure(reason);\n            }\n          }\n        });\n      } catch(error) {\n        failure(err);\n      }\n      // success\n    }\n  });\n  ```\n\n  Promise Example;\n\n  ```javascript\n  findAuthor().\n    then(findBooksByAuthor).\n    then(function(books){\n      // found books\n  }).catch(function(reason){\n    // something went wrong\n  });\n  ```\n\n  @method then\n  @param {Function} onFulfillment\n  @param {Function} onRejection\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n*/\nPromise.prototype.then = then;\n\nfunction makeObject(_, argumentNames) {\n  let obj = {};\n  let length = _.length;\n  let args = new Array(length);\n\n  for (let x = 0; x < length; x++) {\n    args[x] = _[x];\n  }\n\n  for (let i = 0; i < argumentNames.length; i++) {\n    let name = argumentNames[i];\n    obj[name] = args[i + 1];\n  }\n\n  return obj;\n}\n\nfunction arrayResult(_) {\n  let length = _.length;\n  let args = new Array(length - 1);\n\n  for (let i = 1; i < length; i++) {\n    args[i - 1] = _[i];\n  }\n\n  return args;\n}\n\nfunction wrapThenable(then, promise) {\n  return {\n    then(onFulFillment, onRejection) {\n      return then.call(promise, onFulFillment, onRejection);\n    }\n  };\n}\n\n/**\n  `denodeify` takes a 'node-style' function and returns a function that\n  will return an `Promise`. You can use `denodeify` in Node.js or the\n  browser when you'd prefer to use promises over using callbacks. For example,\n  `denodeify` transforms the following:\n\n  ```javascript\n  let fs = require('fs');\n\n  fs.readFile('myfile.txt', function(err, data){\n    if (err) return handleError(err);\n    handleData(data);\n  });\n  ```\n\n  into:\n\n  ```javascript\n  let fs = require('fs');\n  let readFile = denodeify(fs.readFile);\n\n  readFile('myfile.txt').then(handleData, handleError);\n  ```\n\n  If the node function has multiple success parameters, then `denodeify`\n  just returns the first one:\n\n  ```javascript\n  let request = denodeify(require('request'));\n\n  request('http://example.com').then(function(res) {\n    // ...\n  });\n  ```\n\n  However, if you need all success parameters, setting `denodeify`'s\n  second parameter to `true` causes it to return all success parameters\n  as an array:\n\n  ```javascript\n  let request = denodeify(require('request'), true);\n\n  request('http://example.com').then(function(result) {\n    // result[0] -> res\n    // result[1] -> body\n  });\n  ```\n\n  Or if you pass it an array with names it returns the parameters as a hash:\n\n  ```javascript\n  let request = denodeify(require('request'), ['res', 'body']);\n\n  request('http://example.com').then(function(result) {\n    // result.res\n    // result.body\n  });\n  ```\n\n  Sometimes you need to retain the `this`:\n\n  ```javascript\n  let app = require('express')();\n  let render = denodeify(app.render.bind(app));\n  ```\n\n  The denodified function inherits from the original function. It works in all\n  environments, except IE 10 and below. Consequently all properties of the original\n  function are available to you. However, any properties you change on the\n  denodeified function won't be changed on the original function. Example:\n\n  ```javascript\n  let request = denodeify(require('request')),\n      cookieJar = request.jar(); // <- Inheritance is used here\n\n  request('http://example.com', {jar: cookieJar}).then(function(res) {\n    // cookieJar.cookies holds now the cookies returned by example.com\n  });\n  ```\n\n  Using `denodeify` makes it easier to compose asynchronous operations instead\n  of using callbacks. For example, instead of:\n\n  ```javascript\n  let fs = require('fs');\n\n  fs.readFile('myfile.txt', function(err, data){\n    if (err) { ... } // Handle error\n    fs.writeFile('myfile2.txt', data, function(err){\n      if (err) { ... } // Handle error\n      console.log('done')\n    });\n  });\n  ```\n\n  you can chain the operations together using `then` from the returned promise:\n\n  ```javascript\n  let fs = require('fs');\n  let readFile = denodeify(fs.readFile);\n  let writeFile = denodeify(fs.writeFile);\n\n  readFile('myfile.txt').then(function(data){\n    return writeFile('myfile2.txt', data);\n  }).then(function(){\n    console.log('done')\n  }).catch(function(error){\n    // Handle error\n  });\n  ```\n\n  @method denodeify\n  @public\n  @static\n  @for rsvp\n  @param {Function} nodeFunc a 'node-style' function that takes a callback as\n  its last argument. The callback expects an error to be passed as its first\n  argument (if an error occurred, otherwise null), and the value from the\n  operation as its second argument ('function(err, value){ }').\n  @param {Boolean|Array} [options] An optional paramter that if set\n  to `true` causes the promise to fulfill with the callback's success arguments\n  as an array. This is useful if the node function has multiple success\n  paramters. If you set this paramter to an array with names, the promise will\n  fulfill with a hash with these names as keys and the success parameters as\n  values.\n  @return {Function} a function that wraps `nodeFunc` to return a `Promise`\n*/\nfunction denodeify(nodeFunc, options) {\n  let fn = function() {\n    let l = arguments.length;\n    let args = new Array(l + 1);\n    let promiseInput = false;\n\n    for (let i = 0; i < l; ++i) {\n      let arg = arguments[i];\n\n      // TODO: this code really needs to be cleaned up\n      if (!promiseInput) {\n        if (arg !== null && typeof arg === 'object') {\n          if (arg.constructor === Promise) {\n            promiseInput = true;\n          } else {\n            try {\n              promiseInput = arg.then;\n            } catch(error) {\n              let p = new Promise(noop);\n              reject(p, error);\n              return p;\n            }\n          }\n        } else {\n          promiseInput = false;\n        }\n        if (promiseInput && promiseInput !== true) {\n          arg = wrapThenable(promiseInput, arg);\n        }\n      }\n      args[i] = arg;\n    }\n\n    let promise = new Promise(noop);\n\n    args[l] = function(err, val) {\n      if (err) {\n        reject(promise, err);\n      } else if (options === undefined) {\n        resolve$1(promise, val);\n      } else if (options === true) {\n        resolve$1(promise, arrayResult(arguments));\n      } else if (Array.isArray(options)) {\n        resolve$1(promise, makeObject(arguments, options));\n      } else {\n        resolve$1(promise, val);\n      }\n    };\n\n    if (promiseInput) {\n      return handlePromiseInput(promise, args, nodeFunc, this);\n    } else {\n      return handleValueInput(promise, args, nodeFunc, this);\n    }\n  };\n\n  fn.__proto__ = nodeFunc;\n\n  return fn;\n}\n\nfunction handleValueInput(promise, args, nodeFunc, self) {\n  try {\n    nodeFunc.apply(self, args);\n  } catch (error) {\n    reject(promise, error);\n  }\n  return promise;\n}\n\nfunction handlePromiseInput(promise, args, nodeFunc, self){\n  return Promise.all(args)\n    .then(args => handleValueInput(promise, args, nodeFunc, self));\n}\n\n/**\n  This is a convenient alias for `Promise.all`.\n\n  @method all\n  @public\n  @static\n  @for rsvp\n  @param {Array} array Array of promises.\n  @param {String} [label] An optional label. This is useful\n  for tooling.\n*/\nfunction all$1(array, label) {\n  return Promise.all(array, label);\n}\n\n/**\n@module rsvp\n@public\n**/\n\nclass AllSettled extends Enumerator {\n  constructor(Constructor, entries, label) {\n    super(Constructor, entries, false /* don't abort on reject */, label);\n  }\n}\n\nAllSettled.prototype._setResultAt = setSettledResult;\n\n  /**\n  `RSVP.allSettled` is similar to `RSVP.all`, but instead of implementing\n  a fail-fast method, it waits until all the promises have returned and\n  shows you all the results. This is useful if you want to handle multiple\n  promises' failure states together as a set.\n\n  Returns a promise that is fulfilled when all the given promises have been\n  settled. The return promise is fulfilled with an array of the states of\n  the promises passed into the `promises` array argument.\n\n  Each state object will either indicate fulfillment or rejection, and\n  provide the corresponding value or reason. The states will take one of\n  the following formats:\n\n  ```javascript\n  { state: 'fulfilled', value: value }\n    or\n  { state: 'rejected', reason: reason }\n  ```\n\n  Example:\n\n  ```javascript\n  let promise1 = RSVP.Promise.resolve(1);\n  let promise2 = RSVP.Promise.reject(new Error('2'));\n  let promise3 = RSVP.Promise.reject(new Error('3'));\n  let promises = [ promise1, promise2, promise3 ];\n\n  RSVP.allSettled(promises).then(function(array){\n    // array == [\n    //   { state: 'fulfilled', value: 1 },\n    //   { state: 'rejected', reason: Error },\n    //   { state: 'rejected', reason: Error }\n    // ]\n    // Note that for the second item, reason.message will be '2', and for the\n    // third item, reason.message will be '3'.\n  }, function(error) {\n    // Not run. (This block would only be called if allSettled had failed,\n    // for instance if passed an incorrect argument type.)\n  });\n  ```\n\n  @method allSettled\n  @public\n  @static\n  @for rsvp\n  @param {Array} entries\n  @param {String} [label] - optional string that describes the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled with an array of the settled\n  states of the constituent promises.\n  */\n\nfunction allSettled(entries, label) {\n  if (!Array.isArray(entries)) {\n    return Promise.reject(new TypeError(\"Promise.allSettled must be called with an array\"), label);\n  }\n\n  return new AllSettled(Promise, entries, label).promise;\n}\n\n/**\n  This is a convenient alias for `Promise.race`.\n\n  @method race\n  @public\n  @static\n  @for rsvp\n  @param {Array} array Array of promises.\n  @param {String} [label] An optional label. This is useful\n  for tooling.\n */\nfunction race$1(array, label) {\n  return Promise.race(array, label);\n}\n\nclass PromiseHash extends Enumerator {\n  constructor(Constructor, object, abortOnReject = true, label) {\n    super(Constructor, object, abortOnReject, label);\n  }\n\n  _init(Constructor, object) {\n    this._result = {};\n    this._enumerate(object);\n  }\n\n  _enumerate(input) {\n    let keys = Object.keys(input);\n\n    let length = keys.length;\n    let promise = this.promise;\n    this._remaining = length;\n\n    let key, val;\n    for (let i = 0; promise._state === PENDING && i < length; i++) {\n      key = keys[i];\n      val = input[key];\n      this._eachEntry(val, key, true);\n    }\n\n    this._checkFullfillment();\n  }\n}\n\n/**\n  `hash` is similar to `all`, but takes an object instead of an array\n  for its `promises` argument.\n\n  Returns a promise that is fulfilled when all the given promises have been\n  fulfilled, or rejected if any of them become rejected. The returned promise\n  is fulfilled with a hash that has the same key names as the `promises` object\n  argument. If any of the values in the object are not promises, they will\n  simply be copied over to the fulfilled object.\n\n  Example:\n\n  ```javascript\n  let promises = {\n    myPromise: resolve(1),\n    yourPromise: resolve(2),\n    theirPromise: resolve(3),\n    notAPromise: 4\n  };\n\n  hash(promises).then(function(hash){\n    // hash here is an object that looks like:\n    // {\n    //   myPromise: 1,\n    //   yourPromise: 2,\n    //   theirPromise: 3,\n    //   notAPromise: 4\n    // }\n  });\n  ```\n\n  If any of the `promises` given to `hash` are rejected, the first promise\n  that is rejected will be given as the reason to the rejection handler.\n\n  Example:\n\n  ```javascript\n  let promises = {\n    myPromise: resolve(1),\n    rejectedPromise: reject(new Error('rejectedPromise')),\n    anotherRejectedPromise: reject(new Error('anotherRejectedPromise')),\n  };\n\n  hash(promises).then(function(hash){\n    // Code here never runs because there are rejected promises!\n  }, function(reason) {\n    // reason.message === 'rejectedPromise'\n  });\n  ```\n\n  An important note: `hash` is intended for plain JavaScript objects that\n  are just a set of keys and values. `hash` will NOT preserve prototype\n  chains.\n\n  Example:\n\n  ```javascript\n  import { hash, resolve } from 'rsvp';\n  function MyConstructor(){\n    this.example = resolve('Example');\n  }\n\n  MyConstructor.prototype = {\n    protoProperty: resolve('Proto Property')\n  };\n\n  let myObject = new MyConstructor();\n\n  hash(myObject).then(function(hash){\n    // protoProperty will not be present, instead you will just have an\n    // object that looks like:\n    // {\n    //   example: 'Example'\n    // }\n    //\n    // hash.hasOwnProperty('protoProperty'); // false\n    // 'undefined' === typeof hash.protoProperty\n  });\n  ```\n\n  @method hash\n  @public\n  @static\n  @for rsvp\n  @param {Object} object\n  @param {String} [label] optional string that describes the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when all properties of `promises`\n  have been fulfilled, or rejected if any of them become rejected.\n*/\nfunction hash(object, label) {\n  return Promise.resolve(object, label)\n    .then(function(object) {\n      if (object === null || typeof object !== 'object') {\n        throw new TypeError(\"Promise.hash must be called with an object\");\n      }\n      return new PromiseHash(Promise, object, label).promise;\n    });\n}\n\nclass HashSettled extends PromiseHash {\n  constructor(Constructor, object, label) {\n    super(Constructor, object, false, label);\n  }\n}\n\nHashSettled.prototype._setResultAt = setSettledResult;\n\n/**\n  `hashSettled` is similar to `allSettled`, but takes an object\n  instead of an array for its `promises` argument.\n\n  Unlike `all` or `hash`, which implement a fail-fast method,\n  but like `allSettled`, `hashSettled` waits until all the\n  constituent promises have returned and then shows you all the results\n  with their states and values/reasons. This is useful if you want to\n  handle multiple promises' failure states together as a set.\n\n  Returns a promise that is fulfilled when all the given promises have been\n  settled, or rejected if the passed parameters are invalid.\n\n  The returned promise is fulfilled with a hash that has the same key names as\n  the `promises` object argument. If any of the values in the object are not\n  promises, they will be copied over to the fulfilled object and marked with state\n  'fulfilled'.\n\n  Example:\n\n  ```javascript\n  import { hashSettled, resolve } from 'rsvp';\n\n  let promises = {\n    myPromise: resolve(1),\n    yourPromise: resolve(2),\n    theirPromise: resolve(3),\n    notAPromise: 4\n  };\n\n  hashSettled(promises).then(function(hash){\n    // hash here is an object that looks like:\n    // {\n    //   myPromise: { state: 'fulfilled', value: 1 },\n    //   yourPromise: { state: 'fulfilled', value: 2 },\n    //   theirPromise: { state: 'fulfilled', value: 3 },\n    //   notAPromise: { state: 'fulfilled', value: 4 }\n    // }\n  });\n  ```\n\n  If any of the `promises` given to `hash` are rejected, the state will\n  be set to 'rejected' and the reason for rejection provided.\n\n  Example:\n\n  ```javascript\n  import { hashSettled, reject, resolve } from 'rsvp';\n\n  let promises = {\n    myPromise: resolve(1),\n    rejectedPromise: reject(new Error('rejection')),\n    anotherRejectedPromise: reject(new Error('more rejection')),\n  };\n\n  hashSettled(promises).then(function(hash){\n    // hash here is an object that looks like:\n    // {\n    //   myPromise:              { state: 'fulfilled', value: 1 },\n    //   rejectedPromise:        { state: 'rejected', reason: Error },\n    //   anotherRejectedPromise: { state: 'rejected', reason: Error },\n    // }\n    // Note that for rejectedPromise, reason.message == 'rejection',\n    // and for anotherRejectedPromise, reason.message == 'more rejection'.\n  });\n  ```\n\n  An important note: `hashSettled` is intended for plain JavaScript objects that\n  are just a set of keys and values. `hashSettled` will NOT preserve prototype\n  chains.\n\n  Example:\n\n  ```javascript\n  import Promise, { hashSettled, resolve } from 'rsvp';\n\n  function MyConstructor(){\n    this.example = resolve('Example');\n  }\n\n  MyConstructor.prototype = {\n    protoProperty: Promise.resolve('Proto Property')\n  };\n\n  let myObject = new MyConstructor();\n\n  hashSettled(myObject).then(function(hash){\n    // protoProperty will not be present, instead you will just have an\n    // object that looks like:\n    // {\n    //   example: { state: 'fulfilled', value: 'Example' }\n    // }\n    //\n    // hash.hasOwnProperty('protoProperty'); // false\n    // 'undefined' === typeof hash.protoProperty\n  });\n  ```\n\n  @method hashSettled\n  @public\n  @for rsvp\n  @param {Object} object\n  @param {String} [label] optional string that describes the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when when all properties of `promises`\n  have been settled.\n  @static\n*/\n\nfunction hashSettled(object, label) {\n  return Promise.resolve(object, label)\n    .then(function(object) {\n      if (object === null || typeof object !== 'object') {\n        throw new TypeError(\"hashSettled must be called with an object\");\n      }\n\n      return new HashSettled(Promise, object, false, label).promise;\n    });\n}\n\n/**\n  `rethrow` will rethrow an error on the next turn of the JavaScript event\n  loop in order to aid debugging.\n\n  Promises A+ specifies that any exceptions that occur with a promise must be\n  caught by the promises implementation and bubbled to the last handler. For\n  this reason, it is recommended that you always specify a second rejection\n  handler function to `then`. However, `rethrow` will throw the exception\n  outside of the promise, so it bubbles up to your console if in the browser,\n  or domain/cause uncaught exception in Node. `rethrow` will also throw the\n  error again so the error can be handled by the promise per the spec.\n\n  ```javascript\n  import { rethrow } from 'rsvp';\n\n  function throws(){\n    throw new Error('Whoops!');\n  }\n\n  let promise = new Promise(function(resolve, reject){\n    throws();\n  });\n\n  promise.catch(rethrow).then(function(){\n    // Code here doesn't run because the promise became rejected due to an\n    // error!\n  }, function (err){\n    // handle the error here\n  });\n  ```\n\n  The 'Whoops' error will be thrown on the next turn of the event loop\n  and you can watch for it in your console. You can also handle it using a\n  rejection handler given to `.then` or `.catch` on the returned promise.\n\n  @method rethrow\n  @public\n  @static\n  @for rsvp\n  @param {Error} reason reason the promise became rejected.\n  @throws Error\n  @static\n*/\nfunction rethrow(reason) {\n  setTimeout(() => {\n    throw reason;\n  });\n  throw reason;\n}\n\n/**\n  `defer` returns an object similar to jQuery's `$.Deferred`.\n  `defer` should be used when porting over code reliant on `$.Deferred`'s\n  interface. New code should use the `Promise` constructor instead.\n\n  The object returned from `defer` is a plain object with three properties:\n\n  * promise - an `Promise`.\n  * reject - a function that causes the `promise` property on this object to\n    become rejected\n  * resolve - a function that causes the `promise` property on this object to\n    become fulfilled.\n\n  Example:\n\n   ```javascript\n   let deferred = defer();\n\n   deferred.resolve(\"Success!\");\n\n   deferred.promise.then(function(value){\n     // value here is \"Success!\"\n   });\n   ```\n\n  @method defer\n  @public\n  @static\n  @for rsvp\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Object}\n */\n\nfunction defer(label) {\n  let deferred = { resolve: undefined, reject: undefined };\n\n  deferred.promise = new Promise((resolve, reject) => {\n    deferred.resolve = resolve;\n    deferred.reject = reject;\n  }, label);\n\n  return deferred;\n}\n\nclass MapEnumerator extends Enumerator {\n  constructor(Constructor, entries, mapFn, label) {\n    super(Constructor, entries, true, label, mapFn);\n  }\n\n  _init(Constructor, input, bool, label, mapFn) {\n    let len = input.length || 0;\n    this.length     = len;\n    this._remaining = len;\n    this._result = new Array(len);\n    this._mapFn = mapFn;\n\n    this._enumerate(input);\n  }\n\n  _setResultAt(state, i, value, firstPass) {\n    if (firstPass) {\n      try {\n        this._eachEntry(this._mapFn(value, i), i, false);\n      } catch (error) {\n        this._settledAt(REJECTED, i, error, false);\n      }\n    } else {\n      this._remaining--;\n      this._result[i] = value;\n    }\n  }\n}\n\n\n/**\n `map` is similar to JavaScript's native `map` method. `mapFn` is eagerly called\n  meaning that as soon as any promise resolves its value will be passed to `mapFn`.\n  `map` returns a promise that will become fulfilled with the result of running\n  `mapFn` on the values the promises become fulfilled with.\n\n  For example:\n\n  ```javascript\n  import { map, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n  let promises = [ promise1, promise2, promise3 ];\n\n  let mapFn = function(item){\n    return item + 1;\n  };\n\n  map(promises, mapFn).then(function(result){\n    // result is [ 2, 3, 4 ]\n  });\n  ```\n\n  If any of the `promises` given to `map` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promise's\n  rejection handler. For example:\n\n  ```javascript\n  import { map, reject, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error('2'));\n  let promise3 = reject(new Error('3'));\n  let promises = [ promise1, promise2, promise3 ];\n\n  let mapFn = function(item){\n    return item + 1;\n  };\n\n  map(promises, mapFn).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(reason) {\n    // reason.message === '2'\n  });\n  ```\n\n  `map` will also wait if a promise is returned from `mapFn`. For example,\n  say you want to get all comments from a set of blog posts, but you need\n  the blog posts first because they contain a url to those comments.\n\n  ```javscript\n  import { map } from 'rsvp';\n\n  let mapFn = function(blogPost){\n    // getComments does some ajax and returns an Promise that is fulfilled\n    // with some comments data\n    return getComments(blogPost.comments_url);\n  };\n\n  // getBlogPosts does some ajax and returns an Promise that is fulfilled\n  // with some blog post data\n  map(getBlogPosts(), mapFn).then(function(comments){\n    // comments is the result of asking the server for the comments\n    // of all blog posts returned from getBlogPosts()\n  });\n  ```\n\n  @method map\n  @public\n  @static\n  @for rsvp\n  @param {Array} promises\n  @param {Function} mapFn function to be called on each fulfilled promise.\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled with the result of calling\n  `mapFn` on each fulfilled promise or value when they become fulfilled.\n   The promise will be rejected if any of the given `promises` become rejected.\n*/\nfunction map(promises, mapFn, label) {\n  if (typeof mapFn !== 'function') {\n    return Promise.reject(new TypeError(\"map expects a function as a second argument\"), label);\n  }\n\n  return Promise.resolve(promises, label)\n    .then(function(promises) {\n      if (!Array.isArray(promises)) {\n        throw new TypeError(\"map must be called with an array\");\n      }\n      return new MapEnumerator(Promise, promises, mapFn, label).promise;\n    });\n}\n\n/**\n  This is a convenient alias for `Promise.resolve`.\n\n  @method resolve\n  @public\n  @static\n  @for rsvp\n  @param {*} value value that the returned promise will be resolved with\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise that will become fulfilled with the given\n  `value`\n*/\nfunction resolve$2(value, label) {\n  return Promise.resolve(value, label);\n}\n\n/**\n  This is a convenient alias for `Promise.reject`.\n\n  @method reject\n  @public\n  @static\n  @for rsvp\n  @param {*} reason value that the returned promise will be rejected with.\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject$2(reason, label) {\n  return Promise.reject(reason, label);\n}\n\nconst EMPTY_OBJECT = {};\n\nclass FilterEnumerator extends MapEnumerator {\n\n  _checkFullfillment() {\n    if (this._remaining === 0 && this._result !== null) {\n      let result = this._result.filter((val) => val !== EMPTY_OBJECT);\n      fulfill(this.promise, result);\n      this._result = null;\n    }\n  }\n\n  _setResultAt(state, i, value, firstPass) {\n    if (firstPass) {\n      this._result[i] = value;\n      let val, succeeded = true;\n      try {\n        val = this._mapFn(value, i);\n      } catch (error) {\n        succeeded = false;\n        this._settledAt(REJECTED, i, error, false);\n      }\n      if (succeeded) {\n        this._eachEntry(val, i, false);\n      }\n    } else {\n      this._remaining--;\n      if (!value) {\n        this._result[i] = EMPTY_OBJECT;\n      }\n    }\n  }\n}\n\n/**\n `filter` is similar to JavaScript's native `filter` method.\n `filterFn` is eagerly called meaning that as soon as any promise\n  resolves its value will be passed to `filterFn`. `filter` returns\n  a promise that will become fulfilled with the result of running\n  `filterFn` on the values the promises become fulfilled with.\n\n  For example:\n\n  ```javascript\n  import { filter, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n\n  let promises = [promise1, promise2, promise3];\n\n  let filterFn = function(item){\n    return item > 1;\n  };\n\n  filter(promises, filterFn).then(function(result){\n    // result is [ 2, 3 ]\n  });\n  ```\n\n  If any of the `promises` given to `filter` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promise's\n  rejection handler. For example:\n\n  ```javascript\n  import { filter, reject, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error('2'));\n  let promise3 = reject(new Error('3'));\n  let promises = [ promise1, promise2, promise3 ];\n\n  let filterFn = function(item){\n    return item > 1;\n  };\n\n  filter(promises, filterFn).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(reason) {\n    // reason.message === '2'\n  });\n  ```\n\n  `filter` will also wait for any promises returned from `filterFn`.\n  For instance, you may want to fetch a list of users then return a subset\n  of those users based on some asynchronous operation:\n\n  ```javascript\n  import { filter, resolve } from 'rsvp';\n\n  let alice = { name: 'alice' };\n  let bob   = { name: 'bob' };\n  let users = [ alice, bob ];\n\n  let promises = users.map(function(user){\n    return resolve(user);\n  });\n\n  let filterFn = function(user){\n    // Here, Alice has permissions to create a blog post, but Bob does not.\n    return getPrivilegesForUser(user).then(function(privs){\n      return privs.can_create_blog_post === true;\n    });\n  };\n  filter(promises, filterFn).then(function(users){\n    // true, because the server told us only Alice can create a blog post.\n    users.length === 1;\n    // false, because Alice is the only user present in `users`\n    users[0] === bob;\n  });\n  ```\n\n  @method filter\n  @public\n  @static\n  @for rsvp\n  @param {Array} promises\n  @param {Function} filterFn - function to be called on each resolved value to\n  filter the final results.\n  @param {String} [label] optional string describing the promise. Useful for\n  tooling.\n  @return {Promise}\n*/\n\nfunction filter(promises, filterFn, label) {\n  if (typeof filterFn !== 'function') {\n    return Promise.reject(new TypeError(\"filter expects function as a second argument\"), label);\n  }\n\n  return Promise.resolve(promises, label)\n    .then(function(promises) {\n      if (!Array.isArray(promises)) {\n        throw new TypeError(\"filter must be called with an array\");\n      }\n      return new FilterEnumerator(Promise, promises, filterFn, label).promise;\n    });\n}\n\nlet len = 0;\nlet vertxNext;\nfunction asap(callback, arg) {\n  queue$1[len] = callback;\n  queue$1[len + 1] = arg;\n  len += 2;\n  if (len === 2) {\n    // If len is 1, that means that we need to schedule an async flush.\n    // If additional callbacks are queued before the queue is flushed, they\n    // will be processed by this flush that we are scheduling.\n    scheduleFlush$1();\n  }\n}\n\nconst browserWindow = (typeof window !== 'undefined') ? window : undefined;\nconst browserGlobal = browserWindow || {};\nconst BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nconst isNode = typeof self === 'undefined' &&\n  typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n// test for web worker but not in IE10\nconst isWorker = typeof Uint8ClampedArray !== 'undefined' &&\n  typeof importScripts !== 'undefined' &&\n  typeof MessageChannel !== 'undefined';\n\n// node\nfunction useNextTick() {\n  let nextTick = process.nextTick;\n  // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n  // setImmediate should be used instead instead\n  let version = process.versions.node.match(/^(?:(\\d+)\\.)?(?:(\\d+)\\.)?(\\*|\\d+)$/);\n  if (Array.isArray(version) && version[1] === '0' && version[2] === '10') {\n    nextTick = setImmediate;\n  }\n  return () => nextTick(flush);\n}\n\n// vertx\nfunction useVertxTimer() {\n  if (typeof vertxNext !== 'undefined') {\n    return function() {\n      vertxNext(flush);\n    };\n  }\n  return useSetTimeout();\n}\n\nfunction useMutationObserver() {\n  let iterations = 0;\n  let observer = new BrowserMutationObserver(flush);\n  let node = document.createTextNode('');\n  observer.observe(node, { characterData: true });\n\n  return () => node.data = (iterations = ++iterations % 2);\n}\n\n// web worker\nfunction useMessageChannel() {\n  let channel = new MessageChannel();\n  channel.port1.onmessage = flush;\n  return () => channel.port2.postMessage(0);\n}\n\nfunction useSetTimeout() {\n  return () => setTimeout(flush, 1);\n}\n\nconst queue$1 = new Array(1000);\n\nfunction flush() {\n  for (let i = 0; i < len; i+=2) {\n    let callback = queue$1[i];\n    let arg = queue$1[i+1];\n\n    callback(arg);\n\n    queue$1[i] = undefined;\n    queue$1[i+1] = undefined;\n  }\n\n  len = 0;\n}\n\nfunction attemptVertex() {\n  try {\n    const vertx = Function('return this')().require('vertx');\n    vertxNext = vertx.runOnLoop || vertx.runOnContext;\n    return useVertxTimer();\n  } catch(e) {\n    return useSetTimeout();\n  }\n}\n\nlet scheduleFlush$1;\n// Decide what async method to use to triggering processing of queued callbacks:\nif (isNode) {\n  scheduleFlush$1 = useNextTick();\n} else if (BrowserMutationObserver) {\n  scheduleFlush$1 = useMutationObserver();\n} else if (isWorker) {\n  scheduleFlush$1 = useMessageChannel();\n} else if (browserWindow === undefined && typeof require === 'function') {\n  scheduleFlush$1 = attemptVertex();\n} else {\n  scheduleFlush$1 = useSetTimeout();\n}\n\n// defaults\nconfig.async = asap;\nconfig.after = cb => setTimeout(cb, 0);\nconst cast = resolve$2;\n\nconst async = (callback, arg) => config.async(callback, arg);\n\nfunction on() {\n  config.on(...arguments);\n}\n\nfunction off() {\n  config.off(...arguments);\n}\n\n// Set up instrumentation through `window.__PROMISE_INTRUMENTATION__`\nif (typeof window !== 'undefined' && typeof window['__PROMISE_INSTRUMENTATION__'] === 'object') {\n  let callbacks = window['__PROMISE_INSTRUMENTATION__'];\n  configure('instrument', true);\n  for (let eventName in callbacks) {\n    if (callbacks.hasOwnProperty(eventName)) {\n      on(eventName, callbacks[eventName]);\n    }\n  }\n}\n\n// the default export here is for backwards compat:\n//   https://github.com/tildeio/rsvp.js/issues/434\nvar rsvp = {\n  asap,\n  cast,\n  Promise,\n  EventTarget,\n  all: all$1,\n  allSettled,\n  race: race$1,\n  hash,\n  hashSettled,\n  rethrow,\n  defer,\n  denodeify,\n  configure,\n  on,\n  off,\n  resolve: resolve$2,\n  reject: reject$2,\n  map,\n  async,\n  filter\n};\n\nexport default rsvp;\nexport { asap, cast, Promise, EventTarget, all$1 as all, allSettled, race$1 as race, hash, hashSettled, rethrow, defer, denodeify, configure, on, off, resolve$2 as resolve, reject$2 as reject, map, async, filter };\n","(function () {\n  function vendorModule() {\n    'use strict';\n\n    return {\n      'default': self['jQuery'],\n      __esModule: true\n    };\n  }\n  define('jquery', [], vendorModule);\n})();","(function () {\n  Ember.Component.reopen({\n    $(sel) {\n      (true && !(this.tagName !== '') && Ember.assert(\"You cannot access this.$() on a component with `tagName: ''` specified.\", this.tagName !== ''));\n      (true && !(false) && Ember.deprecate('Using this.$() in a component has been deprecated, consider using this.element', false, {\n        id: 'ember-views.curly-components.jquery-element',\n        until: '4.0.0',\n        url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-apis'\n      }));\n      if (this.element) {\n        return sel ? jQuery(sel, this.element) : jQuery(this.element);\n      }\n    }\n  });\n})();","if (typeof FastBoot === 'undefined') {\n/*!\n * Chart.js v2.9.4\n * https://www.chartjs.org\n * (c) 2020 Chart.js Contributors\n * Released under the MIT License\n */\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(function() { try { return require('moment'); } catch(e) { } }()) :\ntypeof define === 'function' && define.amd ? define(['require'], function(require) { return factory(function() { try { return require('moment'); } catch(e) { } }()); }) :\n(global = global || self, global.Chart = factory(global.moment));\n}(this, (function (moment) { 'use strict';\n\nmoment = moment && moment.hasOwnProperty('default') ? moment['default'] : moment;\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nfunction getCjsExportFromNamespace (n) {\n\treturn n && n['default'] || n;\n}\n\nvar colorName = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\n\nvar conversions = createCommonjsModule(function (module) {\n/* MIT license */\n\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n//       values that give correct `typeof` results).\n//       do not use box values types (i.e. Number(), String(), etc.)\n\nvar reverseKeywords = {};\nfor (var key in colorName) {\n\tif (colorName.hasOwnProperty(key)) {\n\t\treverseKeywords[colorName[key]] = key;\n\t}\n}\n\nvar convert = module.exports = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\n// hide .channels and .labels properties\nfor (var model in convert) {\n\tif (convert.hasOwnProperty(model)) {\n\t\tif (!('channels' in convert[model])) {\n\t\t\tthrow new Error('missing channels property: ' + model);\n\t\t}\n\n\t\tif (!('labels' in convert[model])) {\n\t\t\tthrow new Error('missing channel labels property: ' + model);\n\t\t}\n\n\t\tif (convert[model].labels.length !== convert[model].channels) {\n\t\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t\t}\n\n\t\tvar channels = convert[model].channels;\n\t\tvar labels = convert[model].labels;\n\t\tdelete convert[model].channels;\n\t\tdelete convert[model].labels;\n\t\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\t\tObject.defineProperty(convert[model], 'labels', {value: labels});\n\t}\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar min = Math.min(r, g, b);\n\tvar max = Math.max(r, g, b);\n\tvar delta = max - min;\n\tvar h;\n\tvar s;\n\tvar l;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tl = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tvar rdif;\n\tvar gdif;\n\tvar bdif;\n\tvar h;\n\tvar s;\n\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar v = Math.max(r, g, b);\n\tvar diff = v - Math.min(r, g, b);\n\tvar diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = s = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tvar r = rgb[0];\n\tvar g = rgb[1];\n\tvar b = rgb[2];\n\tvar h = convert.rgb.hsl(rgb)[0];\n\tvar w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar c;\n\tvar m;\n\tvar y;\n\tvar k;\n\n\tk = Math.min(1 - r, 1 - g, 1 - b);\n\tc = (1 - r - k) / (1 - k) || 0;\n\tm = (1 - g - k) / (1 - k) || 0;\n\ty = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\n/**\n * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n * */\nfunction comparativeDistance(x, y) {\n\treturn (\n\t\tMath.pow(x[0] - y[0], 2) +\n\t\tMath.pow(x[1] - y[1], 2) +\n\t\tMath.pow(x[2] - y[2], 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tvar reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tvar currentClosestDistance = Infinity;\n\tvar currentClosestKeyword;\n\n\tfor (var keyword in colorName) {\n\t\tif (colorName.hasOwnProperty(keyword)) {\n\t\t\tvar value = colorName[keyword];\n\n\t\t\t// Compute comparative distance\n\t\t\tvar distance = comparativeDistance(rgb, value);\n\n\t\t\t// Check if its less, if so set as closest\n\t\t\tif (distance < currentClosestDistance) {\n\t\t\t\tcurrentClosestDistance = distance;\n\t\t\t\tcurrentClosestKeyword = keyword;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn colorName[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\n\t// assume sRGB\n\tr = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);\n\n\tvar x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tvar y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tvar z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tvar xyz = convert.rgb.xyz(rgb);\n\tvar x = xyz[0];\n\tvar y = xyz[1];\n\tvar z = xyz[2];\n\tvar l;\n\tvar a;\n\tvar b;\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);\n\n\tl = (116 * y) - 16;\n\ta = 500 * (x - y);\n\tb = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tvar h = hsl[0] / 360;\n\tvar s = hsl[1] / 100;\n\tvar l = hsl[2] / 100;\n\tvar t1;\n\tvar t2;\n\tvar t3;\n\tvar rgb;\n\tvar val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tt1 = 2 * l - t2;\n\n\trgb = [0, 0, 0];\n\tfor (var i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tvar h = hsl[0];\n\tvar s = hsl[1] / 100;\n\tvar l = hsl[2] / 100;\n\tvar smin = s;\n\tvar lmin = Math.max(l, 0.01);\n\tvar sv;\n\tvar v;\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tv = (l + s) / 2;\n\tsv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tvar h = hsv[0] / 60;\n\tvar s = hsv[1] / 100;\n\tvar v = hsv[2] / 100;\n\tvar hi = Math.floor(h) % 6;\n\n\tvar f = h - Math.floor(h);\n\tvar p = 255 * v * (1 - s);\n\tvar q = 255 * v * (1 - (s * f));\n\tvar t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tvar h = hsv[0];\n\tvar s = hsv[1] / 100;\n\tvar v = hsv[2] / 100;\n\tvar vmin = Math.max(v, 0.01);\n\tvar lmin;\n\tvar sl;\n\tvar l;\n\n\tl = (2 - s) * v;\n\tlmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tvar h = hwb[0] / 360;\n\tvar wh = hwb[1] / 100;\n\tvar bl = hwb[2] / 100;\n\tvar ratio = wh + bl;\n\tvar i;\n\tvar v;\n\tvar f;\n\tvar n;\n\n\t// wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\ti = Math.floor(6 * h);\n\tv = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tn = wh + f * (v - wh); // linear interpolation\n\n\tvar r;\n\tvar g;\n\tvar b;\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tvar c = cmyk[0] / 100;\n\tvar m = cmyk[1] / 100;\n\tvar y = cmyk[2] / 100;\n\tvar k = cmyk[3] / 100;\n\tvar r;\n\tvar g;\n\tvar b;\n\n\tr = 1 - Math.min(1, c * (1 - k) + k);\n\tg = 1 - Math.min(1, m * (1 - k) + k);\n\tb = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tvar x = xyz[0] / 100;\n\tvar y = xyz[1] / 100;\n\tvar z = xyz[2] / 100;\n\tvar r;\n\tvar g;\n\tvar b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tvar x = xyz[0];\n\tvar y = xyz[1];\n\tvar z = xyz[2];\n\tvar l;\n\tvar a;\n\tvar b;\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);\n\n\tl = (116 * y) - 16;\n\ta = 500 * (x - y);\n\tb = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tvar l = lab[0];\n\tvar a = lab[1];\n\tvar b = lab[2];\n\tvar x;\n\tvar y;\n\tvar z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tvar y2 = Math.pow(y, 3);\n\tvar x2 = Math.pow(x, 3);\n\tvar z2 = Math.pow(z, 3);\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tvar l = lab[0];\n\tvar a = lab[1];\n\tvar b = lab[2];\n\tvar hr;\n\tvar h;\n\tvar c;\n\n\thr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tc = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tvar l = lch[0];\n\tvar c = lch[1];\n\tvar h = lch[2];\n\tvar a;\n\tvar b;\n\tvar hr;\n\n\thr = h / 360 * 2 * Math.PI;\n\ta = c * Math.cos(hr);\n\tb = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args) {\n\tvar r = args[0];\n\tvar g = args[1];\n\tvar b = args[2];\n\tvar value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tvar ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tvar r = args[0];\n\tvar g = args[1];\n\tvar b = args[2];\n\n\t// we use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tvar ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tvar color = args % 10;\n\n\t// handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tvar mult = (~~(args > 50) + 1) * 0.5;\n\tvar r = ((color & 1) * mult) * 255;\n\tvar g = (((color >> 1) & 1) * mult) * 255;\n\tvar b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// handle greyscale\n\tif (args >= 232) {\n\t\tvar c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tvar rem;\n\tvar r = Math.floor(args / 36) / 5 * 255;\n\tvar g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tvar b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tvar integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tvar string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tvar match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tvar colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(function (char) {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tvar integer = parseInt(colorString, 16);\n\tvar r = (integer >> 16) & 0xFF;\n\tvar g = (integer >> 8) & 0xFF;\n\tvar b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar max = Math.max(Math.max(r, g), b);\n\tvar min = Math.min(Math.min(r, g), b);\n\tvar chroma = (max - min);\n\tvar grayscale;\n\tvar hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma + 4;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tvar s = hsl[1] / 100;\n\tvar l = hsl[2] / 100;\n\tvar c = 1;\n\tvar f = 0;\n\n\tif (l < 0.5) {\n\t\tc = 2.0 * s * l;\n\t} else {\n\t\tc = 2.0 * s * (1.0 - l);\n\t}\n\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tvar s = hsv[1] / 100;\n\tvar v = hsv[2] / 100;\n\n\tvar c = s * v;\n\tvar f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tvar h = hcg[0] / 360;\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tvar pure = [0, 0, 0];\n\tvar hi = (h % 1) * 6;\n\tvar v = hi % 1;\n\tvar w = 1 - v;\n\tvar mg = 0;\n\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\n\tvar v = c + g * (1.0 - c);\n\tvar f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\n\tvar l = g * (1.0 - c) + 0.5 * c;\n\tvar s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\tvar v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tvar w = hwb[1] / 100;\n\tvar b = hwb[2] / 100;\n\tvar v = 1 - b;\n\tvar c = v - w;\n\tvar g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = convert.gray.hsv = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tvar val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tvar integer = (val << 16) + (val << 8) + val;\n\n\tvar string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tvar val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n});\nvar conversions_1 = conversions.rgb;\nvar conversions_2 = conversions.hsl;\nvar conversions_3 = conversions.hsv;\nvar conversions_4 = conversions.hwb;\nvar conversions_5 = conversions.cmyk;\nvar conversions_6 = conversions.xyz;\nvar conversions_7 = conversions.lab;\nvar conversions_8 = conversions.lch;\nvar conversions_9 = conversions.hex;\nvar conversions_10 = conversions.keyword;\nvar conversions_11 = conversions.ansi16;\nvar conversions_12 = conversions.ansi256;\nvar conversions_13 = conversions.hcg;\nvar conversions_14 = conversions.apple;\nvar conversions_15 = conversions.gray;\n\n/*\n\tthis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tvar graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tvar models = Object.keys(conversions);\n\n\tfor (var len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tvar graph = buildGraph();\n\tvar queue = [fromModel]; // unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tvar current = queue.pop();\n\t\tvar adjacents = Object.keys(conversions[current]);\n\n\t\tfor (var len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tvar adjacent = adjacents[i];\n\t\t\tvar node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tvar path = [graph[toModel].parent, toModel];\n\tvar fn = conversions[graph[toModel].parent][toModel];\n\n\tvar cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nvar route = function (fromModel) {\n\tvar graph = deriveBFS(fromModel);\n\tvar conversion = {};\n\n\tvar models = Object.keys(graph);\n\tfor (var len = models.length, i = 0; i < len; i++) {\n\t\tvar toModel = models[i];\n\t\tvar node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// no possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\nvar convert = {};\n\nvar models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tvar wrappedFn = function (args) {\n\t\tif (args === undefined || args === null) {\n\t\t\treturn args;\n\t\t}\n\n\t\tif (arguments.length > 1) {\n\t\t\targs = Array.prototype.slice.call(arguments);\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tvar wrappedFn = function (args) {\n\t\tif (args === undefined || args === null) {\n\t\t\treturn args;\n\t\t}\n\n\t\tif (arguments.length > 1) {\n\t\t\targs = Array.prototype.slice.call(arguments);\n\t\t}\n\n\t\tvar result = fn(args);\n\n\t\t// we're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (var len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(function (fromModel) {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tvar routes = route(fromModel);\n\tvar routeModels = Object.keys(routes);\n\n\trouteModels.forEach(function (toModel) {\n\t\tvar fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nvar colorConvert = convert;\n\nvar colorName$1 = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\n\n/* MIT license */\n\n\nvar colorString = {\n   getRgba: getRgba,\n   getHsla: getHsla,\n   getRgb: getRgb,\n   getHsl: getHsl,\n   getHwb: getHwb,\n   getAlpha: getAlpha,\n\n   hexString: hexString,\n   rgbString: rgbString,\n   rgbaString: rgbaString,\n   percentString: percentString,\n   percentaString: percentaString,\n   hslString: hslString,\n   hslaString: hslaString,\n   hwbString: hwbString,\n   keyword: keyword\n};\n\nfunction getRgba(string) {\n   if (!string) {\n      return;\n   }\n   var abbr =  /^#([a-fA-F0-9]{3,4})$/i,\n       hex =  /^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,\n       rgba = /^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,\n       per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,\n       keyword = /(\\w+)/;\n\n   var rgb = [0, 0, 0],\n       a = 1,\n       match = string.match(abbr),\n       hexAlpha = \"\";\n   if (match) {\n      match = match[1];\n      hexAlpha = match[3];\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = parseInt(match[i] + match[i], 16);\n      }\n      if (hexAlpha) {\n         a = Math.round((parseInt(hexAlpha + hexAlpha, 16) / 255) * 100) / 100;\n      }\n   }\n   else if (match = string.match(hex)) {\n      hexAlpha = match[2];\n      match = match[1];\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = parseInt(match.slice(i * 2, i * 2 + 2), 16);\n      }\n      if (hexAlpha) {\n         a = Math.round((parseInt(hexAlpha, 16) / 255) * 100) / 100;\n      }\n   }\n   else if (match = string.match(rgba)) {\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = parseInt(match[i + 1]);\n      }\n      a = parseFloat(match[4]);\n   }\n   else if (match = string.match(per)) {\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n      }\n      a = parseFloat(match[4]);\n   }\n   else if (match = string.match(keyword)) {\n      if (match[1] == \"transparent\") {\n         return [0, 0, 0, 0];\n      }\n      rgb = colorName$1[match[1]];\n      if (!rgb) {\n         return;\n      }\n   }\n\n   for (var i = 0; i < rgb.length; i++) {\n      rgb[i] = scale(rgb[i], 0, 255);\n   }\n   if (!a && a != 0) {\n      a = 1;\n   }\n   else {\n      a = scale(a, 0, 1);\n   }\n   rgb[3] = a;\n   return rgb;\n}\n\nfunction getHsla(string) {\n   if (!string) {\n      return;\n   }\n   var hsl = /^hsla?\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;\n   var match = string.match(hsl);\n   if (match) {\n      var alpha = parseFloat(match[4]);\n      var h = scale(parseInt(match[1]), 0, 360),\n          s = scale(parseFloat(match[2]), 0, 100),\n          l = scale(parseFloat(match[3]), 0, 100),\n          a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);\n      return [h, s, l, a];\n   }\n}\n\nfunction getHwb(string) {\n   if (!string) {\n      return;\n   }\n   var hwb = /^hwb\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;\n   var match = string.match(hwb);\n   if (match) {\n    var alpha = parseFloat(match[4]);\n      var h = scale(parseInt(match[1]), 0, 360),\n          w = scale(parseFloat(match[2]), 0, 100),\n          b = scale(parseFloat(match[3]), 0, 100),\n          a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);\n      return [h, w, b, a];\n   }\n}\n\nfunction getRgb(string) {\n   var rgba = getRgba(string);\n   return rgba && rgba.slice(0, 3);\n}\n\nfunction getHsl(string) {\n  var hsla = getHsla(string);\n  return hsla && hsla.slice(0, 3);\n}\n\nfunction getAlpha(string) {\n   var vals = getRgba(string);\n   if (vals) {\n      return vals[3];\n   }\n   else if (vals = getHsla(string)) {\n      return vals[3];\n   }\n   else if (vals = getHwb(string)) {\n      return vals[3];\n   }\n}\n\n// generators\nfunction hexString(rgba, a) {\n   var a = (a !== undefined && rgba.length === 3) ? a : rgba[3];\n   return \"#\" + hexDouble(rgba[0]) \n              + hexDouble(rgba[1])\n              + hexDouble(rgba[2])\n              + (\n                 (a >= 0 && a < 1)\n                 ? hexDouble(Math.round(a * 255))\n                 : \"\"\n              );\n}\n\nfunction rgbString(rgba, alpha) {\n   if (alpha < 1 || (rgba[3] && rgba[3] < 1)) {\n      return rgbaString(rgba, alpha);\n   }\n   return \"rgb(\" + rgba[0] + \", \" + rgba[1] + \", \" + rgba[2] + \")\";\n}\n\nfunction rgbaString(rgba, alpha) {\n   if (alpha === undefined) {\n      alpha = (rgba[3] !== undefined ? rgba[3] : 1);\n   }\n   return \"rgba(\" + rgba[0] + \", \" + rgba[1] + \", \" + rgba[2]\n           + \", \" + alpha + \")\";\n}\n\nfunction percentString(rgba, alpha) {\n   if (alpha < 1 || (rgba[3] && rgba[3] < 1)) {\n      return percentaString(rgba, alpha);\n   }\n   var r = Math.round(rgba[0]/255 * 100),\n       g = Math.round(rgba[1]/255 * 100),\n       b = Math.round(rgba[2]/255 * 100);\n\n   return \"rgb(\" + r + \"%, \" + g + \"%, \" + b + \"%)\";\n}\n\nfunction percentaString(rgba, alpha) {\n   var r = Math.round(rgba[0]/255 * 100),\n       g = Math.round(rgba[1]/255 * 100),\n       b = Math.round(rgba[2]/255 * 100);\n   return \"rgba(\" + r + \"%, \" + g + \"%, \" + b + \"%, \" + (alpha || rgba[3] || 1) + \")\";\n}\n\nfunction hslString(hsla, alpha) {\n   if (alpha < 1 || (hsla[3] && hsla[3] < 1)) {\n      return hslaString(hsla, alpha);\n   }\n   return \"hsl(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%)\";\n}\n\nfunction hslaString(hsla, alpha) {\n   if (alpha === undefined) {\n      alpha = (hsla[3] !== undefined ? hsla[3] : 1);\n   }\n   return \"hsla(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%, \"\n           + alpha + \")\";\n}\n\n// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n// (hwb have alpha optional & 1 is default value)\nfunction hwbString(hwb, alpha) {\n   if (alpha === undefined) {\n      alpha = (hwb[3] !== undefined ? hwb[3] : 1);\n   }\n   return \"hwb(\" + hwb[0] + \", \" + hwb[1] + \"%, \" + hwb[2] + \"%\"\n           + (alpha !== undefined && alpha !== 1 ? \", \" + alpha : \"\") + \")\";\n}\n\nfunction keyword(rgb) {\n  return reverseNames[rgb.slice(0, 3)];\n}\n\n// helpers\nfunction scale(num, min, max) {\n   return Math.min(Math.max(min, num), max);\n}\n\nfunction hexDouble(num) {\n  var str = num.toString(16).toUpperCase();\n  return (str.length < 2) ? \"0\" + str : str;\n}\n\n\n//create a list of reverse color names\nvar reverseNames = {};\nfor (var name in colorName$1) {\n   reverseNames[colorName$1[name]] = name;\n}\n\n/* MIT license */\n\n\n\nvar Color = function (obj) {\n\tif (obj instanceof Color) {\n\t\treturn obj;\n\t}\n\tif (!(this instanceof Color)) {\n\t\treturn new Color(obj);\n\t}\n\n\tthis.valid = false;\n\tthis.values = {\n\t\trgb: [0, 0, 0],\n\t\thsl: [0, 0, 0],\n\t\thsv: [0, 0, 0],\n\t\thwb: [0, 0, 0],\n\t\tcmyk: [0, 0, 0, 0],\n\t\talpha: 1\n\t};\n\n\t// parse Color() argument\n\tvar vals;\n\tif (typeof obj === 'string') {\n\t\tvals = colorString.getRgba(obj);\n\t\tif (vals) {\n\t\t\tthis.setValues('rgb', vals);\n\t\t} else if (vals = colorString.getHsla(obj)) {\n\t\t\tthis.setValues('hsl', vals);\n\t\t} else if (vals = colorString.getHwb(obj)) {\n\t\t\tthis.setValues('hwb', vals);\n\t\t}\n\t} else if (typeof obj === 'object') {\n\t\tvals = obj;\n\t\tif (vals.r !== undefined || vals.red !== undefined) {\n\t\t\tthis.setValues('rgb', vals);\n\t\t} else if (vals.l !== undefined || vals.lightness !== undefined) {\n\t\t\tthis.setValues('hsl', vals);\n\t\t} else if (vals.v !== undefined || vals.value !== undefined) {\n\t\t\tthis.setValues('hsv', vals);\n\t\t} else if (vals.w !== undefined || vals.whiteness !== undefined) {\n\t\t\tthis.setValues('hwb', vals);\n\t\t} else if (vals.c !== undefined || vals.cyan !== undefined) {\n\t\t\tthis.setValues('cmyk', vals);\n\t\t}\n\t}\n};\n\nColor.prototype = {\n\tisValid: function () {\n\t\treturn this.valid;\n\t},\n\trgb: function () {\n\t\treturn this.setSpace('rgb', arguments);\n\t},\n\thsl: function () {\n\t\treturn this.setSpace('hsl', arguments);\n\t},\n\thsv: function () {\n\t\treturn this.setSpace('hsv', arguments);\n\t},\n\thwb: function () {\n\t\treturn this.setSpace('hwb', arguments);\n\t},\n\tcmyk: function () {\n\t\treturn this.setSpace('cmyk', arguments);\n\t},\n\n\trgbArray: function () {\n\t\treturn this.values.rgb;\n\t},\n\thslArray: function () {\n\t\treturn this.values.hsl;\n\t},\n\thsvArray: function () {\n\t\treturn this.values.hsv;\n\t},\n\thwbArray: function () {\n\t\tvar values = this.values;\n\t\tif (values.alpha !== 1) {\n\t\t\treturn values.hwb.concat([values.alpha]);\n\t\t}\n\t\treturn values.hwb;\n\t},\n\tcmykArray: function () {\n\t\treturn this.values.cmyk;\n\t},\n\trgbaArray: function () {\n\t\tvar values = this.values;\n\t\treturn values.rgb.concat([values.alpha]);\n\t},\n\thslaArray: function () {\n\t\tvar values = this.values;\n\t\treturn values.hsl.concat([values.alpha]);\n\t},\n\talpha: function (val) {\n\t\tif (val === undefined) {\n\t\t\treturn this.values.alpha;\n\t\t}\n\t\tthis.setValues('alpha', val);\n\t\treturn this;\n\t},\n\n\tred: function (val) {\n\t\treturn this.setChannel('rgb', 0, val);\n\t},\n\tgreen: function (val) {\n\t\treturn this.setChannel('rgb', 1, val);\n\t},\n\tblue: function (val) {\n\t\treturn this.setChannel('rgb', 2, val);\n\t},\n\thue: function (val) {\n\t\tif (val) {\n\t\t\tval %= 360;\n\t\t\tval = val < 0 ? 360 + val : val;\n\t\t}\n\t\treturn this.setChannel('hsl', 0, val);\n\t},\n\tsaturation: function (val) {\n\t\treturn this.setChannel('hsl', 1, val);\n\t},\n\tlightness: function (val) {\n\t\treturn this.setChannel('hsl', 2, val);\n\t},\n\tsaturationv: function (val) {\n\t\treturn this.setChannel('hsv', 1, val);\n\t},\n\twhiteness: function (val) {\n\t\treturn this.setChannel('hwb', 1, val);\n\t},\n\tblackness: function (val) {\n\t\treturn this.setChannel('hwb', 2, val);\n\t},\n\tvalue: function (val) {\n\t\treturn this.setChannel('hsv', 2, val);\n\t},\n\tcyan: function (val) {\n\t\treturn this.setChannel('cmyk', 0, val);\n\t},\n\tmagenta: function (val) {\n\t\treturn this.setChannel('cmyk', 1, val);\n\t},\n\tyellow: function (val) {\n\t\treturn this.setChannel('cmyk', 2, val);\n\t},\n\tblack: function (val) {\n\t\treturn this.setChannel('cmyk', 3, val);\n\t},\n\n\thexString: function () {\n\t\treturn colorString.hexString(this.values.rgb);\n\t},\n\trgbString: function () {\n\t\treturn colorString.rgbString(this.values.rgb, this.values.alpha);\n\t},\n\trgbaString: function () {\n\t\treturn colorString.rgbaString(this.values.rgb, this.values.alpha);\n\t},\n\tpercentString: function () {\n\t\treturn colorString.percentString(this.values.rgb, this.values.alpha);\n\t},\n\thslString: function () {\n\t\treturn colorString.hslString(this.values.hsl, this.values.alpha);\n\t},\n\thslaString: function () {\n\t\treturn colorString.hslaString(this.values.hsl, this.values.alpha);\n\t},\n\thwbString: function () {\n\t\treturn colorString.hwbString(this.values.hwb, this.values.alpha);\n\t},\n\tkeyword: function () {\n\t\treturn colorString.keyword(this.values.rgb, this.values.alpha);\n\t},\n\n\trgbNumber: function () {\n\t\tvar rgb = this.values.rgb;\n\t\treturn (rgb[0] << 16) | (rgb[1] << 8) | rgb[2];\n\t},\n\n\tluminosity: function () {\n\t\t// http://www.w3.org/TR/WCAG20/#relativeluminancedef\n\t\tvar rgb = this.values.rgb;\n\t\tvar lum = [];\n\t\tfor (var i = 0; i < rgb.length; i++) {\n\t\t\tvar chan = rgb[i] / 255;\n\t\t\tlum[i] = (chan <= 0.03928) ? chan / 12.92 : Math.pow(((chan + 0.055) / 1.055), 2.4);\n\t\t}\n\t\treturn 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];\n\t},\n\n\tcontrast: function (color2) {\n\t\t// http://www.w3.org/TR/WCAG20/#contrast-ratiodef\n\t\tvar lum1 = this.luminosity();\n\t\tvar lum2 = color2.luminosity();\n\t\tif (lum1 > lum2) {\n\t\t\treturn (lum1 + 0.05) / (lum2 + 0.05);\n\t\t}\n\t\treturn (lum2 + 0.05) / (lum1 + 0.05);\n\t},\n\n\tlevel: function (color2) {\n\t\tvar contrastRatio = this.contrast(color2);\n\t\tif (contrastRatio >= 7.1) {\n\t\t\treturn 'AAA';\n\t\t}\n\n\t\treturn (contrastRatio >= 4.5) ? 'AA' : '';\n\t},\n\n\tdark: function () {\n\t\t// YIQ equation from http://24ways.org/2010/calculating-color-contrast\n\t\tvar rgb = this.values.rgb;\n\t\tvar yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;\n\t\treturn yiq < 128;\n\t},\n\n\tlight: function () {\n\t\treturn !this.dark();\n\t},\n\n\tnegate: function () {\n\t\tvar rgb = [];\n\t\tfor (var i = 0; i < 3; i++) {\n\t\t\trgb[i] = 255 - this.values.rgb[i];\n\t\t}\n\t\tthis.setValues('rgb', rgb);\n\t\treturn this;\n\t},\n\n\tlighten: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[2] += hsl[2] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\tdarken: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[2] -= hsl[2] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\tsaturate: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[1] += hsl[1] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\tdesaturate: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[1] -= hsl[1] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\twhiten: function (ratio) {\n\t\tvar hwb = this.values.hwb;\n\t\thwb[1] += hwb[1] * ratio;\n\t\tthis.setValues('hwb', hwb);\n\t\treturn this;\n\t},\n\n\tblacken: function (ratio) {\n\t\tvar hwb = this.values.hwb;\n\t\thwb[2] += hwb[2] * ratio;\n\t\tthis.setValues('hwb', hwb);\n\t\treturn this;\n\t},\n\n\tgreyscale: function () {\n\t\tvar rgb = this.values.rgb;\n\t\t// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale\n\t\tvar val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;\n\t\tthis.setValues('rgb', [val, val, val]);\n\t\treturn this;\n\t},\n\n\tclearer: function (ratio) {\n\t\tvar alpha = this.values.alpha;\n\t\tthis.setValues('alpha', alpha - (alpha * ratio));\n\t\treturn this;\n\t},\n\n\topaquer: function (ratio) {\n\t\tvar alpha = this.values.alpha;\n\t\tthis.setValues('alpha', alpha + (alpha * ratio));\n\t\treturn this;\n\t},\n\n\trotate: function (degrees) {\n\t\tvar hsl = this.values.hsl;\n\t\tvar hue = (hsl[0] + degrees) % 360;\n\t\thsl[0] = hue < 0 ? 360 + hue : hue;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\t/**\n\t * Ported from sass implementation in C\n\t * https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\n\t */\n\tmix: function (mixinColor, weight) {\n\t\tvar color1 = this;\n\t\tvar color2 = mixinColor;\n\t\tvar p = weight === undefined ? 0.5 : weight;\n\n\t\tvar w = 2 * p - 1;\n\t\tvar a = color1.alpha() - color2.alpha();\n\n\t\tvar w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2.0;\n\t\tvar w2 = 1 - w1;\n\n\t\treturn this\n\t\t\t.rgb(\n\t\t\t\tw1 * color1.red() + w2 * color2.red(),\n\t\t\t\tw1 * color1.green() + w2 * color2.green(),\n\t\t\t\tw1 * color1.blue() + w2 * color2.blue()\n\t\t\t)\n\t\t\t.alpha(color1.alpha() * p + color2.alpha() * (1 - p));\n\t},\n\n\ttoJSON: function () {\n\t\treturn this.rgb();\n\t},\n\n\tclone: function () {\n\t\t// NOTE(SB): using node-clone creates a dependency to Buffer when using browserify,\n\t\t// making the final build way to big to embed in Chart.js. So let's do it manually,\n\t\t// assuming that values to clone are 1 dimension arrays containing only numbers,\n\t\t// except 'alpha' which is a number.\n\t\tvar result = new Color();\n\t\tvar source = this.values;\n\t\tvar target = result.values;\n\t\tvar value, type;\n\n\t\tfor (var prop in source) {\n\t\t\tif (source.hasOwnProperty(prop)) {\n\t\t\t\tvalue = source[prop];\n\t\t\t\ttype = ({}).toString.call(value);\n\t\t\t\tif (type === '[object Array]') {\n\t\t\t\t\ttarget[prop] = value.slice(0);\n\t\t\t\t} else if (type === '[object Number]') {\n\t\t\t\t\ttarget[prop] = value;\n\t\t\t\t} else {\n\t\t\t\t\tconsole.error('unexpected color value:', value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}\n};\n\nColor.prototype.spaces = {\n\trgb: ['red', 'green', 'blue'],\n\thsl: ['hue', 'saturation', 'lightness'],\n\thsv: ['hue', 'saturation', 'value'],\n\thwb: ['hue', 'whiteness', 'blackness'],\n\tcmyk: ['cyan', 'magenta', 'yellow', 'black']\n};\n\nColor.prototype.maxes = {\n\trgb: [255, 255, 255],\n\thsl: [360, 100, 100],\n\thsv: [360, 100, 100],\n\thwb: [360, 100, 100],\n\tcmyk: [100, 100, 100, 100]\n};\n\nColor.prototype.getValues = function (space) {\n\tvar values = this.values;\n\tvar vals = {};\n\n\tfor (var i = 0; i < space.length; i++) {\n\t\tvals[space.charAt(i)] = values[space][i];\n\t}\n\n\tif (values.alpha !== 1) {\n\t\tvals.a = values.alpha;\n\t}\n\n\t// {r: 255, g: 255, b: 255, a: 0.4}\n\treturn vals;\n};\n\nColor.prototype.setValues = function (space, vals) {\n\tvar values = this.values;\n\tvar spaces = this.spaces;\n\tvar maxes = this.maxes;\n\tvar alpha = 1;\n\tvar i;\n\n\tthis.valid = true;\n\n\tif (space === 'alpha') {\n\t\talpha = vals;\n\t} else if (vals.length) {\n\t\t// [10, 10, 10]\n\t\tvalues[space] = vals.slice(0, space.length);\n\t\talpha = vals[space.length];\n\t} else if (vals[space.charAt(0)] !== undefined) {\n\t\t// {r: 10, g: 10, b: 10}\n\t\tfor (i = 0; i < space.length; i++) {\n\t\t\tvalues[space][i] = vals[space.charAt(i)];\n\t\t}\n\n\t\talpha = vals.a;\n\t} else if (vals[spaces[space][0]] !== undefined) {\n\t\t// {red: 10, green: 10, blue: 10}\n\t\tvar chans = spaces[space];\n\n\t\tfor (i = 0; i < space.length; i++) {\n\t\t\tvalues[space][i] = vals[chans[i]];\n\t\t}\n\n\t\talpha = vals.alpha;\n\t}\n\n\tvalues.alpha = Math.max(0, Math.min(1, (alpha === undefined ? values.alpha : alpha)));\n\n\tif (space === 'alpha') {\n\t\treturn false;\n\t}\n\n\tvar capped;\n\n\t// cap values of the space prior converting all values\n\tfor (i = 0; i < space.length; i++) {\n\t\tcapped = Math.max(0, Math.min(maxes[space][i], values[space][i]));\n\t\tvalues[space][i] = Math.round(capped);\n\t}\n\n\t// convert to all the other color spaces\n\tfor (var sname in spaces) {\n\t\tif (sname !== space) {\n\t\t\tvalues[sname] = colorConvert[space][sname](values[space]);\n\t\t}\n\t}\n\n\treturn true;\n};\n\nColor.prototype.setSpace = function (space, args) {\n\tvar vals = args[0];\n\n\tif (vals === undefined) {\n\t\t// color.rgb()\n\t\treturn this.getValues(space);\n\t}\n\n\t// color.rgb(10, 10, 10)\n\tif (typeof vals === 'number') {\n\t\tvals = Array.prototype.slice.call(args);\n\t}\n\n\tthis.setValues(space, vals);\n\treturn this;\n};\n\nColor.prototype.setChannel = function (space, index, val) {\n\tvar svalues = this.values[space];\n\tif (val === undefined) {\n\t\t// color.red()\n\t\treturn svalues[index];\n\t} else if (val === svalues[index]) {\n\t\t// color.red(color.red())\n\t\treturn this;\n\t}\n\n\t// color.red(100)\n\tsvalues[index] = val;\n\tthis.setValues(space, svalues);\n\n\treturn this;\n};\n\nif (typeof window !== 'undefined') {\n\twindow.Color = Color;\n}\n\nvar chartjsColor = Color;\n\nfunction isValidKey(key) {\r\n\treturn ['__proto__', 'prototype', 'constructor'].indexOf(key) === -1;\r\n}\r\n\r\n/**\r\n * @namespace Chart.helpers\r\n */\r\nvar helpers = {\r\n\t/**\r\n\t * An empty function that can be used, for example, for optional callback.\r\n\t */\r\n\tnoop: function() {},\r\n\r\n\t/**\r\n\t * Returns a unique id, sequentially generated from a global variable.\r\n\t * @returns {number}\r\n\t * @function\r\n\t */\r\n\tuid: (function() {\r\n\t\tvar id = 0;\r\n\t\treturn function() {\r\n\t\t\treturn id++;\r\n\t\t};\r\n\t}()),\r\n\r\n\t/**\r\n\t * Returns true if `value` is neither null nor undefined, else returns false.\r\n\t * @param {*} value - The value to test.\r\n\t * @returns {boolean}\r\n\t * @since 2.7.0\r\n\t */\r\n\tisNullOrUndef: function(value) {\r\n\t\treturn value === null || typeof value === 'undefined';\r\n\t},\r\n\r\n\t/**\r\n\t * Returns true if `value` is an array (including typed arrays), else returns false.\r\n\t * @param {*} value - The value to test.\r\n\t * @returns {boolean}\r\n\t * @function\r\n\t */\r\n\tisArray: function(value) {\r\n\t\tif (Array.isArray && Array.isArray(value)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tvar type = Object.prototype.toString.call(value);\r\n\t\tif (type.substr(0, 7) === '[object' && type.substr(-6) === 'Array]') {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns true if `value` is an object (excluding null), else returns false.\r\n\t * @param {*} value - The value to test.\r\n\t * @returns {boolean}\r\n\t * @since 2.7.0\r\n\t */\r\n\tisObject: function(value) {\r\n\t\treturn value !== null && Object.prototype.toString.call(value) === '[object Object]';\r\n\t},\r\n\r\n\t/**\r\n\t * Returns true if `value` is a finite number, else returns false\r\n\t * @param {*} value  - The value to test.\r\n\t * @returns {boolean}\r\n\t */\r\n\tisFinite: function(value) {\r\n\t\treturn (typeof value === 'number' || value instanceof Number) && isFinite(value);\r\n\t},\r\n\r\n\t/**\r\n\t * Returns `value` if defined, else returns `defaultValue`.\r\n\t * @param {*} value - The value to return if defined.\r\n\t * @param {*} defaultValue - The value to return if `value` is undefined.\r\n\t * @returns {*}\r\n\t */\r\n\tvalueOrDefault: function(value, defaultValue) {\r\n\t\treturn typeof value === 'undefined' ? defaultValue : value;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns value at the given `index` in array if defined, else returns `defaultValue`.\r\n\t * @param {Array} value - The array to lookup for value at `index`.\r\n\t * @param {number} index - The index in `value` to lookup for value.\r\n\t * @param {*} defaultValue - The value to return if `value[index]` is undefined.\r\n\t * @returns {*}\r\n\t */\r\n\tvalueAtIndexOrDefault: function(value, index, defaultValue) {\r\n\t\treturn helpers.valueOrDefault(helpers.isArray(value) ? value[index] : value, defaultValue);\r\n\t},\r\n\r\n\t/**\r\n\t * Calls `fn` with the given `args` in the scope defined by `thisArg` and returns the\r\n\t * value returned by `fn`. If `fn` is not a function, this method returns undefined.\r\n\t * @param {function} fn - The function to call.\r\n\t * @param {Array|undefined|null} args - The arguments with which `fn` should be called.\r\n\t * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.\r\n\t * @returns {*}\r\n\t */\r\n\tcallback: function(fn, args, thisArg) {\r\n\t\tif (fn && typeof fn.call === 'function') {\r\n\t\t\treturn fn.apply(thisArg, args);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Note(SB) for performance sake, this method should only be used when loopable type\r\n\t * is unknown or in none intensive code (not called often and small loopable). Else\r\n\t * it's preferable to use a regular for() loop and save extra function calls.\r\n\t * @param {object|Array} loopable - The object or array to be iterated.\r\n\t * @param {function} fn - The function to call for each item.\r\n\t * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.\r\n\t * @param {boolean} [reverse] - If true, iterates backward on the loopable.\r\n\t */\r\n\teach: function(loopable, fn, thisArg, reverse) {\r\n\t\tvar i, len, keys;\r\n\t\tif (helpers.isArray(loopable)) {\r\n\t\t\tlen = loopable.length;\r\n\t\t\tif (reverse) {\r\n\t\t\t\tfor (i = len - 1; i >= 0; i--) {\r\n\t\t\t\t\tfn.call(thisArg, loopable[i], i);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor (i = 0; i < len; i++) {\r\n\t\t\t\t\tfn.call(thisArg, loopable[i], i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (helpers.isObject(loopable)) {\r\n\t\t\tkeys = Object.keys(loopable);\r\n\t\t\tlen = keys.length;\r\n\t\t\tfor (i = 0; i < len; i++) {\r\n\t\t\t\tfn.call(thisArg, loopable[keys[i]], keys[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Returns true if the `a0` and `a1` arrays have the same content, else returns false.\r\n\t * @see https://stackoverflow.com/a/14853974\r\n\t * @param {Array} a0 - The array to compare\r\n\t * @param {Array} a1 - The array to compare\r\n\t * @returns {boolean}\r\n\t */\r\n\tarrayEquals: function(a0, a1) {\r\n\t\tvar i, ilen, v0, v1;\r\n\r\n\t\tif (!a0 || !a1 || a0.length !== a1.length) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = a0.length; i < ilen; ++i) {\r\n\t\t\tv0 = a0[i];\r\n\t\t\tv1 = a1[i];\r\n\r\n\t\t\tif (v0 instanceof Array && v1 instanceof Array) {\r\n\t\t\t\tif (!helpers.arrayEquals(v0, v1)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} else if (v0 !== v1) {\r\n\t\t\t\t// NOTE: two different object instances will never be equal: {x:20} != {x:20}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns a deep copy of `source` without keeping references on objects and arrays.\r\n\t * @param {*} source - The value to clone.\r\n\t * @returns {*}\r\n\t */\r\n\tclone: function(source) {\r\n\t\tif (helpers.isArray(source)) {\r\n\t\t\treturn source.map(helpers.clone);\r\n\t\t}\r\n\r\n\t\tif (helpers.isObject(source)) {\r\n\t\t\tvar target = Object.create(source);\r\n\t\t\tvar keys = Object.keys(source);\r\n\t\t\tvar klen = keys.length;\r\n\t\t\tvar k = 0;\r\n\r\n\t\t\tfor (; k < klen; ++k) {\r\n\t\t\t\ttarget[keys[k]] = helpers.clone(source[keys[k]]);\r\n\t\t\t}\r\n\r\n\t\t\treturn target;\r\n\t\t}\r\n\r\n\t\treturn source;\r\n\t},\r\n\r\n\t/**\r\n\t * The default merger when Chart.helpers.merge is called without merger option.\r\n\t * Note(SB): also used by mergeConfig and mergeScaleConfig as fallback.\r\n\t * @private\r\n\t */\r\n\t_merger: function(key, target, source, options) {\r\n\t\tif (!isValidKey(key)) {\r\n\t\t\t// We want to ensure we do not copy prototypes over\r\n\t\t\t// as this can pollute global namespaces\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar tval = target[key];\r\n\t\tvar sval = source[key];\r\n\r\n\t\tif (helpers.isObject(tval) && helpers.isObject(sval)) {\r\n\t\t\thelpers.merge(tval, sval, options);\r\n\t\t} else {\r\n\t\t\ttarget[key] = helpers.clone(sval);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Merges source[key] in target[key] only if target[key] is undefined.\r\n\t * @private\r\n\t */\r\n\t_mergerIf: function(key, target, source) {\r\n\t\tif (!isValidKey(key)) {\r\n\t\t\t// We want to ensure we do not copy prototypes over\r\n\t\t\t// as this can pollute global namespaces\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar tval = target[key];\r\n\t\tvar sval = source[key];\r\n\r\n\t\tif (helpers.isObject(tval) && helpers.isObject(sval)) {\r\n\t\t\thelpers.mergeIf(tval, sval);\r\n\t\t} else if (!target.hasOwnProperty(key)) {\r\n\t\t\ttarget[key] = helpers.clone(sval);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Recursively deep copies `source` properties into `target` with the given `options`.\r\n\t * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\r\n\t * @param {object} target - The target object in which all sources are merged into.\r\n\t * @param {object|object[]} source - Object(s) to merge into `target`.\r\n\t * @param {object} [options] - Merging options:\r\n\t * @param {function} [options.merger] - The merge method (key, target, source, options)\r\n\t * @returns {object} The `target` object.\r\n\t */\r\n\tmerge: function(target, source, options) {\r\n\t\tvar sources = helpers.isArray(source) ? source : [source];\r\n\t\tvar ilen = sources.length;\r\n\t\tvar merge, i, keys, klen, k;\r\n\r\n\t\tif (!helpers.isObject(target)) {\r\n\t\t\treturn target;\r\n\t\t}\r\n\r\n\t\toptions = options || {};\r\n\t\tmerge = options.merger || helpers._merger;\r\n\r\n\t\tfor (i = 0; i < ilen; ++i) {\r\n\t\t\tsource = sources[i];\r\n\t\t\tif (!helpers.isObject(source)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tkeys = Object.keys(source);\r\n\t\t\tfor (k = 0, klen = keys.length; k < klen; ++k) {\r\n\t\t\t\tmerge(keys[k], target, source, options);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn target;\r\n\t},\r\n\r\n\t/**\r\n\t * Recursively deep copies `source` properties into `target` *only* if not defined in target.\r\n\t * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\r\n\t * @param {object} target - The target object in which all sources are merged into.\r\n\t * @param {object|object[]} source - Object(s) to merge into `target`.\r\n\t * @returns {object} The `target` object.\r\n\t */\r\n\tmergeIf: function(target, source) {\r\n\t\treturn helpers.merge(target, source, {merger: helpers._mergerIf});\r\n\t},\r\n\r\n\t/**\r\n\t * Applies the contents of two or more objects together into the first object.\r\n\t * @param {object} target - The target object in which all objects are merged into.\r\n\t * @param {object} arg1 - Object containing additional properties to merge in target.\r\n\t * @param {object} argN - Additional objects containing properties to merge in target.\r\n\t * @returns {object} The `target` object.\r\n\t */\r\n\textend: Object.assign || function(target) {\r\n\t\treturn helpers.merge(target, [].slice.call(arguments, 1), {\r\n\t\t\tmerger: function(key, dst, src) {\r\n\t\t\t\tdst[key] = src[key];\r\n\t\t\t}\r\n\t\t});\r\n\t},\r\n\r\n\t/**\r\n\t * Basic javascript inheritance based on the model created in Backbone.js\r\n\t */\r\n\tinherits: function(extensions) {\r\n\t\tvar me = this;\r\n\t\tvar ChartElement = (extensions && extensions.hasOwnProperty('constructor')) ? extensions.constructor : function() {\r\n\t\t\treturn me.apply(this, arguments);\r\n\t\t};\r\n\r\n\t\tvar Surrogate = function() {\r\n\t\t\tthis.constructor = ChartElement;\r\n\t\t};\r\n\r\n\t\tSurrogate.prototype = me.prototype;\r\n\t\tChartElement.prototype = new Surrogate();\r\n\t\tChartElement.extend = helpers.inherits;\r\n\r\n\t\tif (extensions) {\r\n\t\t\thelpers.extend(ChartElement.prototype, extensions);\r\n\t\t}\r\n\r\n\t\tChartElement.__super__ = me.prototype;\r\n\t\treturn ChartElement;\r\n\t},\r\n\r\n\t_deprecated: function(scope, value, previous, current) {\r\n\t\tif (value !== undefined) {\r\n\t\t\tconsole.warn(scope + ': \"' + previous +\r\n\t\t\t\t'\" is deprecated. Please use \"' + current + '\" instead');\r\n\t\t}\r\n\t}\r\n};\r\n\r\nvar helpers_core = helpers;\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.callback instead.\r\n * @function Chart.helpers.callCallback\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers.callCallback = helpers.callback;\r\n\r\n/**\r\n * Provided for backward compatibility, use Array.prototype.indexOf instead.\r\n * Array.prototype.indexOf compatibility: Chrome, Opera, Safari, FF1.5+, IE9+\r\n * @function Chart.helpers.indexOf\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers.indexOf = function(array, item, fromIndex) {\r\n\treturn Array.prototype.indexOf.call(array, item, fromIndex);\r\n};\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.valueOrDefault instead.\r\n * @function Chart.helpers.getValueOrDefault\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers.getValueOrDefault = helpers.valueOrDefault;\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.valueAtIndexOrDefault instead.\r\n * @function Chart.helpers.getValueAtIndexOrDefault\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers.getValueAtIndexOrDefault = helpers.valueAtIndexOrDefault;\n\n/**\r\n * Easing functions adapted from Robert Penner's easing equations.\r\n * @namespace Chart.helpers.easingEffects\r\n * @see http://www.robertpenner.com/easing/\r\n */\r\nvar effects = {\r\n\tlinear: function(t) {\r\n\t\treturn t;\r\n\t},\r\n\r\n\teaseInQuad: function(t) {\r\n\t\treturn t * t;\r\n\t},\r\n\r\n\teaseOutQuad: function(t) {\r\n\t\treturn -t * (t - 2);\r\n\t},\r\n\r\n\teaseInOutQuad: function(t) {\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn 0.5 * t * t;\r\n\t\t}\r\n\t\treturn -0.5 * ((--t) * (t - 2) - 1);\r\n\t},\r\n\r\n\teaseInCubic: function(t) {\r\n\t\treturn t * t * t;\r\n\t},\r\n\r\n\teaseOutCubic: function(t) {\r\n\t\treturn (t = t - 1) * t * t + 1;\r\n\t},\r\n\r\n\teaseInOutCubic: function(t) {\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn 0.5 * t * t * t;\r\n\t\t}\r\n\t\treturn 0.5 * ((t -= 2) * t * t + 2);\r\n\t},\r\n\r\n\teaseInQuart: function(t) {\r\n\t\treturn t * t * t * t;\r\n\t},\r\n\r\n\teaseOutQuart: function(t) {\r\n\t\treturn -((t = t - 1) * t * t * t - 1);\r\n\t},\r\n\r\n\teaseInOutQuart: function(t) {\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn 0.5 * t * t * t * t;\r\n\t\t}\r\n\t\treturn -0.5 * ((t -= 2) * t * t * t - 2);\r\n\t},\r\n\r\n\teaseInQuint: function(t) {\r\n\t\treturn t * t * t * t * t;\r\n\t},\r\n\r\n\teaseOutQuint: function(t) {\r\n\t\treturn (t = t - 1) * t * t * t * t + 1;\r\n\t},\r\n\r\n\teaseInOutQuint: function(t) {\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn 0.5 * t * t * t * t * t;\r\n\t\t}\r\n\t\treturn 0.5 * ((t -= 2) * t * t * t * t + 2);\r\n\t},\r\n\r\n\teaseInSine: function(t) {\r\n\t\treturn -Math.cos(t * (Math.PI / 2)) + 1;\r\n\t},\r\n\r\n\teaseOutSine: function(t) {\r\n\t\treturn Math.sin(t * (Math.PI / 2));\r\n\t},\r\n\r\n\teaseInOutSine: function(t) {\r\n\t\treturn -0.5 * (Math.cos(Math.PI * t) - 1);\r\n\t},\r\n\r\n\teaseInExpo: function(t) {\r\n\t\treturn (t === 0) ? 0 : Math.pow(2, 10 * (t - 1));\r\n\t},\r\n\r\n\teaseOutExpo: function(t) {\r\n\t\treturn (t === 1) ? 1 : -Math.pow(2, -10 * t) + 1;\r\n\t},\r\n\r\n\teaseInOutExpo: function(t) {\r\n\t\tif (t === 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tif (t === 1) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn 0.5 * Math.pow(2, 10 * (t - 1));\r\n\t\t}\r\n\t\treturn 0.5 * (-Math.pow(2, -10 * --t) + 2);\r\n\t},\r\n\r\n\teaseInCirc: function(t) {\r\n\t\tif (t >= 1) {\r\n\t\t\treturn t;\r\n\t\t}\r\n\t\treturn -(Math.sqrt(1 - t * t) - 1);\r\n\t},\r\n\r\n\teaseOutCirc: function(t) {\r\n\t\treturn Math.sqrt(1 - (t = t - 1) * t);\r\n\t},\r\n\r\n\teaseInOutCirc: function(t) {\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn -0.5 * (Math.sqrt(1 - t * t) - 1);\r\n\t\t}\r\n\t\treturn 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\r\n\t},\r\n\r\n\teaseInElastic: function(t) {\r\n\t\tvar s = 1.70158;\r\n\t\tvar p = 0;\r\n\t\tvar a = 1;\r\n\t\tif (t === 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tif (t === 1) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif (!p) {\r\n\t\t\tp = 0.3;\r\n\t\t}\r\n\t\tif (a < 1) {\r\n\t\t\ta = 1;\r\n\t\t\ts = p / 4;\r\n\t\t} else {\r\n\t\t\ts = p / (2 * Math.PI) * Math.asin(1 / a);\r\n\t\t}\r\n\t\treturn -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));\r\n\t},\r\n\r\n\teaseOutElastic: function(t) {\r\n\t\tvar s = 1.70158;\r\n\t\tvar p = 0;\r\n\t\tvar a = 1;\r\n\t\tif (t === 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tif (t === 1) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif (!p) {\r\n\t\t\tp = 0.3;\r\n\t\t}\r\n\t\tif (a < 1) {\r\n\t\t\ta = 1;\r\n\t\t\ts = p / 4;\r\n\t\t} else {\r\n\t\t\ts = p / (2 * Math.PI) * Math.asin(1 / a);\r\n\t\t}\r\n\t\treturn a * Math.pow(2, -10 * t) * Math.sin((t - s) * (2 * Math.PI) / p) + 1;\r\n\t},\r\n\r\n\teaseInOutElastic: function(t) {\r\n\t\tvar s = 1.70158;\r\n\t\tvar p = 0;\r\n\t\tvar a = 1;\r\n\t\tif (t === 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tif ((t /= 0.5) === 2) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif (!p) {\r\n\t\t\tp = 0.45;\r\n\t\t}\r\n\t\tif (a < 1) {\r\n\t\t\ta = 1;\r\n\t\t\ts = p / 4;\r\n\t\t} else {\r\n\t\t\ts = p / (2 * Math.PI) * Math.asin(1 / a);\r\n\t\t}\r\n\t\tif (t < 1) {\r\n\t\t\treturn -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));\r\n\t\t}\r\n\t\treturn a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p) * 0.5 + 1;\r\n\t},\r\n\teaseInBack: function(t) {\r\n\t\tvar s = 1.70158;\r\n\t\treturn t * t * ((s + 1) * t - s);\r\n\t},\r\n\r\n\teaseOutBack: function(t) {\r\n\t\tvar s = 1.70158;\r\n\t\treturn (t = t - 1) * t * ((s + 1) * t + s) + 1;\r\n\t},\r\n\r\n\teaseInOutBack: function(t) {\r\n\t\tvar s = 1.70158;\r\n\t\tif ((t /= 0.5) < 1) {\r\n\t\t\treturn 0.5 * (t * t * (((s *= (1.525)) + 1) * t - s));\r\n\t\t}\r\n\t\treturn 0.5 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2);\r\n\t},\r\n\r\n\teaseInBounce: function(t) {\r\n\t\treturn 1 - effects.easeOutBounce(1 - t);\r\n\t},\r\n\r\n\teaseOutBounce: function(t) {\r\n\t\tif (t < (1 / 2.75)) {\r\n\t\t\treturn 7.5625 * t * t;\r\n\t\t}\r\n\t\tif (t < (2 / 2.75)) {\r\n\t\t\treturn 7.5625 * (t -= (1.5 / 2.75)) * t + 0.75;\r\n\t\t}\r\n\t\tif (t < (2.5 / 2.75)) {\r\n\t\t\treturn 7.5625 * (t -= (2.25 / 2.75)) * t + 0.9375;\r\n\t\t}\r\n\t\treturn 7.5625 * (t -= (2.625 / 2.75)) * t + 0.984375;\r\n\t},\r\n\r\n\teaseInOutBounce: function(t) {\r\n\t\tif (t < 0.5) {\r\n\t\t\treturn effects.easeInBounce(t * 2) * 0.5;\r\n\t\t}\r\n\t\treturn effects.easeOutBounce(t * 2 - 1) * 0.5 + 0.5;\r\n\t}\r\n};\r\n\r\nvar helpers_easing = {\r\n\teffects: effects\r\n};\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.easing.effects instead.\r\n * @function Chart.helpers.easingEffects\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers_core.easingEffects = effects;\n\nvar PI = Math.PI;\r\nvar RAD_PER_DEG = PI / 180;\r\nvar DOUBLE_PI = PI * 2;\r\nvar HALF_PI = PI / 2;\r\nvar QUARTER_PI = PI / 4;\r\nvar TWO_THIRDS_PI = PI * 2 / 3;\r\n\r\n/**\r\n * @namespace Chart.helpers.canvas\r\n */\r\nvar exports$1 = {\r\n\t/**\r\n\t * Clears the entire canvas associated to the given `chart`.\r\n\t * @param {Chart} chart - The chart for which to clear the canvas.\r\n\t */\r\n\tclear: function(chart) {\r\n\t\tchart.ctx.clearRect(0, 0, chart.width, chart.height);\r\n\t},\r\n\r\n\t/**\r\n\t * Creates a \"path\" for a rectangle with rounded corners at position (x, y) with a\r\n\t * given size (width, height) and the same `radius` for all corners.\r\n\t * @param {CanvasRenderingContext2D} ctx - The canvas 2D Context.\r\n\t * @param {number} x - The x axis of the coordinate for the rectangle starting point.\r\n\t * @param {number} y - The y axis of the coordinate for the rectangle starting point.\r\n\t * @param {number} width - The rectangle's width.\r\n\t * @param {number} height - The rectangle's height.\r\n\t * @param {number} radius - The rounded amount (in pixels) for the four corners.\r\n\t * @todo handle `radius` as top-left, top-right, bottom-right, bottom-left array/object?\r\n\t */\r\n\troundedRect: function(ctx, x, y, width, height, radius) {\r\n\t\tif (radius) {\r\n\t\t\tvar r = Math.min(radius, height / 2, width / 2);\r\n\t\t\tvar left = x + r;\r\n\t\t\tvar top = y + r;\r\n\t\t\tvar right = x + width - r;\r\n\t\t\tvar bottom = y + height - r;\r\n\r\n\t\t\tctx.moveTo(x, top);\r\n\t\t\tif (left < right && top < bottom) {\r\n\t\t\t\tctx.arc(left, top, r, -PI, -HALF_PI);\r\n\t\t\t\tctx.arc(right, top, r, -HALF_PI, 0);\r\n\t\t\t\tctx.arc(right, bottom, r, 0, HALF_PI);\r\n\t\t\t\tctx.arc(left, bottom, r, HALF_PI, PI);\r\n\t\t\t} else if (left < right) {\r\n\t\t\t\tctx.moveTo(left, y);\r\n\t\t\t\tctx.arc(right, top, r, -HALF_PI, HALF_PI);\r\n\t\t\t\tctx.arc(left, top, r, HALF_PI, PI + HALF_PI);\r\n\t\t\t} else if (top < bottom) {\r\n\t\t\t\tctx.arc(left, top, r, -PI, 0);\r\n\t\t\t\tctx.arc(left, bottom, r, 0, PI);\r\n\t\t\t} else {\r\n\t\t\t\tctx.arc(left, top, r, -PI, PI);\r\n\t\t\t}\r\n\t\t\tctx.closePath();\r\n\t\t\tctx.moveTo(x, y);\r\n\t\t} else {\r\n\t\t\tctx.rect(x, y, width, height);\r\n\t\t}\r\n\t},\r\n\r\n\tdrawPoint: function(ctx, style, radius, x, y, rotation) {\r\n\t\tvar type, xOffset, yOffset, size, cornerRadius;\r\n\t\tvar rad = (rotation || 0) * RAD_PER_DEG;\r\n\r\n\t\tif (style && typeof style === 'object') {\r\n\t\t\ttype = style.toString();\r\n\t\t\tif (type === '[object HTMLImageElement]' || type === '[object HTMLCanvasElement]') {\r\n\t\t\t\tctx.save();\r\n\t\t\t\tctx.translate(x, y);\r\n\t\t\t\tctx.rotate(rad);\r\n\t\t\t\tctx.drawImage(style, -style.width / 2, -style.height / 2, style.width, style.height);\r\n\t\t\t\tctx.restore();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (isNaN(radius) || radius <= 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tctx.beginPath();\r\n\r\n\t\tswitch (style) {\r\n\t\t// Default includes circle\r\n\t\tdefault:\r\n\t\t\tctx.arc(x, y, radius, 0, DOUBLE_PI);\r\n\t\t\tctx.closePath();\r\n\t\t\tbreak;\r\n\t\tcase 'triangle':\r\n\t\t\tctx.moveTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\r\n\t\t\trad += TWO_THIRDS_PI;\r\n\t\t\tctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\r\n\t\t\trad += TWO_THIRDS_PI;\r\n\t\t\tctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\r\n\t\t\tctx.closePath();\r\n\t\t\tbreak;\r\n\t\tcase 'rectRounded':\r\n\t\t\t// NOTE: the rounded rect implementation changed to use `arc` instead of\r\n\t\t\t// `quadraticCurveTo` since it generates better results when rect is\r\n\t\t\t// almost a circle. 0.516 (instead of 0.5) produces results with visually\r\n\t\t\t// closer proportion to the previous impl and it is inscribed in the\r\n\t\t\t// circle with `radius`. For more details, see the following PRs:\r\n\t\t\t// https://github.com/chartjs/Chart.js/issues/5597\r\n\t\t\t// https://github.com/chartjs/Chart.js/issues/5858\r\n\t\t\tcornerRadius = radius * 0.516;\r\n\t\t\tsize = radius - cornerRadius;\r\n\t\t\txOffset = Math.cos(rad + QUARTER_PI) * size;\r\n\t\t\tyOffset = Math.sin(rad + QUARTER_PI) * size;\r\n\t\t\tctx.arc(x - xOffset, y - yOffset, cornerRadius, rad - PI, rad - HALF_PI);\r\n\t\t\tctx.arc(x + yOffset, y - xOffset, cornerRadius, rad - HALF_PI, rad);\r\n\t\t\tctx.arc(x + xOffset, y + yOffset, cornerRadius, rad, rad + HALF_PI);\r\n\t\t\tctx.arc(x - yOffset, y + xOffset, cornerRadius, rad + HALF_PI, rad + PI);\r\n\t\t\tctx.closePath();\r\n\t\t\tbreak;\r\n\t\tcase 'rect':\r\n\t\t\tif (!rotation) {\r\n\t\t\t\tsize = Math.SQRT1_2 * radius;\r\n\t\t\t\tctx.rect(x - size, y - size, 2 * size, 2 * size);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\trad += QUARTER_PI;\r\n\t\t\t/* falls through */\r\n\t\tcase 'rectRot':\r\n\t\t\txOffset = Math.cos(rad) * radius;\r\n\t\t\tyOffset = Math.sin(rad) * radius;\r\n\t\t\tctx.moveTo(x - xOffset, y - yOffset);\r\n\t\t\tctx.lineTo(x + yOffset, y - xOffset);\r\n\t\t\tctx.lineTo(x + xOffset, y + yOffset);\r\n\t\t\tctx.lineTo(x - yOffset, y + xOffset);\r\n\t\t\tctx.closePath();\r\n\t\t\tbreak;\r\n\t\tcase 'crossRot':\r\n\t\t\trad += QUARTER_PI;\r\n\t\t\t/* falls through */\r\n\t\tcase 'cross':\r\n\t\t\txOffset = Math.cos(rad) * radius;\r\n\t\t\tyOffset = Math.sin(rad) * radius;\r\n\t\t\tctx.moveTo(x - xOffset, y - yOffset);\r\n\t\t\tctx.lineTo(x + xOffset, y + yOffset);\r\n\t\t\tctx.moveTo(x + yOffset, y - xOffset);\r\n\t\t\tctx.lineTo(x - yOffset, y + xOffset);\r\n\t\t\tbreak;\r\n\t\tcase 'star':\r\n\t\t\txOffset = Math.cos(rad) * radius;\r\n\t\t\tyOffset = Math.sin(rad) * radius;\r\n\t\t\tctx.moveTo(x - xOffset, y - yOffset);\r\n\t\t\tctx.lineTo(x + xOffset, y + yOffset);\r\n\t\t\tctx.moveTo(x + yOffset, y - xOffset);\r\n\t\t\tctx.lineTo(x - yOffset, y + xOffset);\r\n\t\t\trad += QUARTER_PI;\r\n\t\t\txOffset = Math.cos(rad) * radius;\r\n\t\t\tyOffset = Math.sin(rad) * radius;\r\n\t\t\tctx.moveTo(x - xOffset, y - yOffset);\r\n\t\t\tctx.lineTo(x + xOffset, y + yOffset);\r\n\t\t\tctx.moveTo(x + yOffset, y - xOffset);\r\n\t\t\tctx.lineTo(x - yOffset, y + xOffset);\r\n\t\t\tbreak;\r\n\t\tcase 'line':\r\n\t\t\txOffset = Math.cos(rad) * radius;\r\n\t\t\tyOffset = Math.sin(rad) * radius;\r\n\t\t\tctx.moveTo(x - xOffset, y - yOffset);\r\n\t\t\tctx.lineTo(x + xOffset, y + yOffset);\r\n\t\t\tbreak;\r\n\t\tcase 'dash':\r\n\t\t\tctx.moveTo(x, y);\r\n\t\t\tctx.lineTo(x + Math.cos(rad) * radius, y + Math.sin(rad) * radius);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tctx.fill();\r\n\t\tctx.stroke();\r\n\t},\r\n\r\n\t/**\r\n\t * Returns true if the point is inside the rectangle\r\n\t * @param {object} point - The point to test\r\n\t * @param {object} area - The rectangle\r\n\t * @returns {boolean}\r\n\t * @private\r\n\t */\r\n\t_isPointInArea: function(point, area) {\r\n\t\tvar epsilon = 1e-6; // 1e-6 is margin in pixels for accumulated error.\r\n\r\n\t\treturn point.x > area.left - epsilon && point.x < area.right + epsilon &&\r\n\t\t\tpoint.y > area.top - epsilon && point.y < area.bottom + epsilon;\r\n\t},\r\n\r\n\tclipArea: function(ctx, area) {\r\n\t\tctx.save();\r\n\t\tctx.beginPath();\r\n\t\tctx.rect(area.left, area.top, area.right - area.left, area.bottom - area.top);\r\n\t\tctx.clip();\r\n\t},\r\n\r\n\tunclipArea: function(ctx) {\r\n\t\tctx.restore();\r\n\t},\r\n\r\n\tlineTo: function(ctx, previous, target, flip) {\r\n\t\tvar stepped = target.steppedLine;\r\n\t\tif (stepped) {\r\n\t\t\tif (stepped === 'middle') {\r\n\t\t\t\tvar midpoint = (previous.x + target.x) / 2.0;\r\n\t\t\t\tctx.lineTo(midpoint, flip ? target.y : previous.y);\r\n\t\t\t\tctx.lineTo(midpoint, flip ? previous.y : target.y);\r\n\t\t\t} else if ((stepped === 'after' && !flip) || (stepped !== 'after' && flip)) {\r\n\t\t\t\tctx.lineTo(previous.x, target.y);\r\n\t\t\t} else {\r\n\t\t\t\tctx.lineTo(target.x, previous.y);\r\n\t\t\t}\r\n\t\t\tctx.lineTo(target.x, target.y);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!target.tension) {\r\n\t\t\tctx.lineTo(target.x, target.y);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tctx.bezierCurveTo(\r\n\t\t\tflip ? previous.controlPointPreviousX : previous.controlPointNextX,\r\n\t\t\tflip ? previous.controlPointPreviousY : previous.controlPointNextY,\r\n\t\t\tflip ? target.controlPointNextX : target.controlPointPreviousX,\r\n\t\t\tflip ? target.controlPointNextY : target.controlPointPreviousY,\r\n\t\t\ttarget.x,\r\n\t\t\ttarget.y);\r\n\t}\r\n};\r\n\r\nvar helpers_canvas = exports$1;\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.canvas.clear instead.\r\n * @namespace Chart.helpers.clear\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers_core.clear = exports$1.clear;\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.canvas.roundedRect instead.\r\n * @namespace Chart.helpers.drawRoundedRectangle\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers_core.drawRoundedRectangle = function(ctx) {\r\n\tctx.beginPath();\r\n\texports$1.roundedRect.apply(exports$1, arguments);\r\n};\n\nvar defaults = {\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_set: function(scope, values) {\r\n\t\treturn helpers_core.merge(this[scope] || (this[scope] = {}), values);\r\n\t}\r\n};\r\n\r\n// TODO(v3): remove 'global' from namespace.  all default are global and\r\n// there's inconsistency around which options are under 'global'\r\ndefaults._set('global', {\r\n\tdefaultColor: 'rgba(0,0,0,0.1)',\r\n\tdefaultFontColor: '#666',\r\n\tdefaultFontFamily: \"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",\r\n\tdefaultFontSize: 12,\r\n\tdefaultFontStyle: 'normal',\r\n\tdefaultLineHeight: 1.2,\r\n\tshowLines: true\r\n});\r\n\r\nvar core_defaults = defaults;\n\nvar valueOrDefault = helpers_core.valueOrDefault;\r\n\r\n/**\r\n * Converts the given font object into a CSS font string.\r\n * @param {object} font - A font object.\r\n * @return {string} The CSS font string. See https://developer.mozilla.org/en-US/docs/Web/CSS/font\r\n * @private\r\n */\r\nfunction toFontString(font) {\r\n\tif (!font || helpers_core.isNullOrUndef(font.size) || helpers_core.isNullOrUndef(font.family)) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\treturn (font.style ? font.style + ' ' : '')\r\n\t\t+ (font.weight ? font.weight + ' ' : '')\r\n\t\t+ font.size + 'px '\r\n\t\t+ font.family;\r\n}\r\n\r\n/**\r\n * @alias Chart.helpers.options\r\n * @namespace\r\n */\r\nvar helpers_options = {\r\n\t/**\r\n\t * Converts the given line height `value` in pixels for a specific font `size`.\r\n\t * @param {number|string} value - The lineHeight to parse (eg. 1.6, '14px', '75%', '1.6em').\r\n\t * @param {number} size - The font size (in pixels) used to resolve relative `value`.\r\n\t * @returns {number} The effective line height in pixels (size * 1.2 if value is invalid).\r\n\t * @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-height\r\n\t * @since 2.7.0\r\n\t */\r\n\ttoLineHeight: function(value, size) {\r\n\t\tvar matches = ('' + value).match(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/);\r\n\t\tif (!matches || matches[1] === 'normal') {\r\n\t\t\treturn size * 1.2;\r\n\t\t}\r\n\r\n\t\tvalue = +matches[2];\r\n\r\n\t\tswitch (matches[3]) {\r\n\t\tcase 'px':\r\n\t\t\treturn value;\r\n\t\tcase '%':\r\n\t\t\tvalue /= 100;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn size * value;\r\n\t},\r\n\r\n\t/**\r\n\t * Converts the given value into a padding object with pre-computed width/height.\r\n\t * @param {number|object} value - If a number, set the value to all TRBL component,\r\n\t *  else, if and object, use defined properties and sets undefined ones to 0.\r\n\t * @returns {object} The padding values (top, right, bottom, left, width, height)\r\n\t * @since 2.7.0\r\n\t */\r\n\ttoPadding: function(value) {\r\n\t\tvar t, r, b, l;\r\n\r\n\t\tif (helpers_core.isObject(value)) {\r\n\t\t\tt = +value.top || 0;\r\n\t\t\tr = +value.right || 0;\r\n\t\t\tb = +value.bottom || 0;\r\n\t\t\tl = +value.left || 0;\r\n\t\t} else {\r\n\t\t\tt = r = b = l = +value || 0;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\ttop: t,\r\n\t\t\tright: r,\r\n\t\t\tbottom: b,\r\n\t\t\tleft: l,\r\n\t\t\theight: t + b,\r\n\t\t\twidth: l + r\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * Parses font options and returns the font object.\r\n\t * @param {object} options - A object that contains font options to be parsed.\r\n\t * @return {object} The font object.\r\n\t * @todo Support font.* options and renamed to toFont().\r\n\t * @private\r\n\t */\r\n\t_parseFont: function(options) {\r\n\t\tvar globalDefaults = core_defaults.global;\r\n\t\tvar size = valueOrDefault(options.fontSize, globalDefaults.defaultFontSize);\r\n\t\tvar font = {\r\n\t\t\tfamily: valueOrDefault(options.fontFamily, globalDefaults.defaultFontFamily),\r\n\t\t\tlineHeight: helpers_core.options.toLineHeight(valueOrDefault(options.lineHeight, globalDefaults.defaultLineHeight), size),\r\n\t\t\tsize: size,\r\n\t\t\tstyle: valueOrDefault(options.fontStyle, globalDefaults.defaultFontStyle),\r\n\t\t\tweight: null,\r\n\t\t\tstring: ''\r\n\t\t};\r\n\r\n\t\tfont.string = toFontString(font);\r\n\t\treturn font;\r\n\t},\r\n\r\n\t/**\r\n\t * Evaluates the given `inputs` sequentially and returns the first defined value.\r\n\t * @param {Array} inputs - An array of values, falling back to the last value.\r\n\t * @param {object} [context] - If defined and the current value is a function, the value\r\n\t * is called with `context` as first argument and the result becomes the new input.\r\n\t * @param {number} [index] - If defined and the current value is an array, the value\r\n\t * at `index` become the new input.\r\n\t * @param {object} [info] - object to return information about resolution in\r\n\t * @param {boolean} [info.cacheable] - Will be set to `false` if option is not cacheable.\r\n\t * @since 2.7.0\r\n\t */\r\n\tresolve: function(inputs, context, index, info) {\r\n\t\tvar cacheable = true;\r\n\t\tvar i, ilen, value;\r\n\r\n\t\tfor (i = 0, ilen = inputs.length; i < ilen; ++i) {\r\n\t\t\tvalue = inputs[i];\r\n\t\t\tif (value === undefined) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (context !== undefined && typeof value === 'function') {\r\n\t\t\t\tvalue = value(context);\r\n\t\t\t\tcacheable = false;\r\n\t\t\t}\r\n\t\t\tif (index !== undefined && helpers_core.isArray(value)) {\r\n\t\t\t\tvalue = value[index];\r\n\t\t\t\tcacheable = false;\r\n\t\t\t}\r\n\t\t\tif (value !== undefined) {\r\n\t\t\t\tif (info && !cacheable) {\r\n\t\t\t\t\tinfo.cacheable = false;\r\n\t\t\t\t}\r\n\t\t\t\treturn value;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\n\n/**\r\n * @alias Chart.helpers.math\r\n * @namespace\r\n */\r\nvar exports$2 = {\r\n\t/**\r\n\t * Returns an array of factors sorted from 1 to sqrt(value)\r\n\t * @private\r\n\t */\r\n\t_factorize: function(value) {\r\n\t\tvar result = [];\r\n\t\tvar sqrt = Math.sqrt(value);\r\n\t\tvar i;\r\n\r\n\t\tfor (i = 1; i < sqrt; i++) {\r\n\t\t\tif (value % i === 0) {\r\n\t\t\t\tresult.push(i);\r\n\t\t\t\tresult.push(value / i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (sqrt === (sqrt | 0)) { // if value is a square number\r\n\t\t\tresult.push(sqrt);\r\n\t\t}\r\n\r\n\t\tresult.sort(function(a, b) {\r\n\t\t\treturn a - b;\r\n\t\t}).pop();\r\n\t\treturn result;\r\n\t},\r\n\r\n\tlog10: Math.log10 || function(x) {\r\n\t\tvar exponent = Math.log(x) * Math.LOG10E; // Math.LOG10E = 1 / Math.LN10.\r\n\t\t// Check for whole powers of 10,\r\n\t\t// which due to floating point rounding error should be corrected.\r\n\t\tvar powerOf10 = Math.round(exponent);\r\n\t\tvar isPowerOf10 = x === Math.pow(10, powerOf10);\r\n\r\n\t\treturn isPowerOf10 ? powerOf10 : exponent;\r\n\t}\r\n};\r\n\r\nvar helpers_math = exports$2;\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.math.log10 instead.\r\n * @namespace Chart.helpers.log10\r\n * @deprecated since version 2.9.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers_core.log10 = exports$2.log10;\n\nvar getRtlAdapter = function(rectX, width) {\r\n\treturn {\r\n\t\tx: function(x) {\r\n\t\t\treturn rectX + rectX + width - x;\r\n\t\t},\r\n\t\tsetWidth: function(w) {\r\n\t\t\twidth = w;\r\n\t\t},\r\n\t\ttextAlign: function(align) {\r\n\t\t\tif (align === 'center') {\r\n\t\t\t\treturn align;\r\n\t\t\t}\r\n\t\t\treturn align === 'right' ? 'left' : 'right';\r\n\t\t},\r\n\t\txPlus: function(x, value) {\r\n\t\t\treturn x - value;\r\n\t\t},\r\n\t\tleftForLtr: function(x, itemWidth) {\r\n\t\t\treturn x - itemWidth;\r\n\t\t},\r\n\t};\r\n};\r\n\r\nvar getLtrAdapter = function() {\r\n\treturn {\r\n\t\tx: function(x) {\r\n\t\t\treturn x;\r\n\t\t},\r\n\t\tsetWidth: function(w) { // eslint-disable-line no-unused-vars\r\n\t\t},\r\n\t\ttextAlign: function(align) {\r\n\t\t\treturn align;\r\n\t\t},\r\n\t\txPlus: function(x, value) {\r\n\t\t\treturn x + value;\r\n\t\t},\r\n\t\tleftForLtr: function(x, _itemWidth) { // eslint-disable-line no-unused-vars\r\n\t\t\treturn x;\r\n\t\t},\r\n\t};\r\n};\r\n\r\nvar getAdapter = function(rtl, rectX, width) {\r\n\treturn rtl ? getRtlAdapter(rectX, width) : getLtrAdapter();\r\n};\r\n\r\nvar overrideTextDirection = function(ctx, direction) {\r\n\tvar style, original;\r\n\tif (direction === 'ltr' || direction === 'rtl') {\r\n\t\tstyle = ctx.canvas.style;\r\n\t\toriginal = [\r\n\t\t\tstyle.getPropertyValue('direction'),\r\n\t\t\tstyle.getPropertyPriority('direction'),\r\n\t\t];\r\n\r\n\t\tstyle.setProperty('direction', direction, 'important');\r\n\t\tctx.prevTextDirection = original;\r\n\t}\r\n};\r\n\r\nvar restoreTextDirection = function(ctx) {\r\n\tvar original = ctx.prevTextDirection;\r\n\tif (original !== undefined) {\r\n\t\tdelete ctx.prevTextDirection;\r\n\t\tctx.canvas.style.setProperty('direction', original[0], original[1]);\r\n\t}\r\n};\r\n\r\nvar helpers_rtl = {\r\n\tgetRtlAdapter: getAdapter,\r\n\toverrideTextDirection: overrideTextDirection,\r\n\trestoreTextDirection: restoreTextDirection,\r\n};\n\nvar helpers$1 = helpers_core;\r\nvar easing = helpers_easing;\r\nvar canvas = helpers_canvas;\r\nvar options = helpers_options;\r\nvar math = helpers_math;\r\nvar rtl = helpers_rtl;\nhelpers$1.easing = easing;\nhelpers$1.canvas = canvas;\nhelpers$1.options = options;\nhelpers$1.math = math;\nhelpers$1.rtl = rtl;\n\nfunction interpolate(start, view, model, ease) {\r\n\tvar keys = Object.keys(model);\r\n\tvar i, ilen, key, actual, origin, target, type, c0, c1;\r\n\r\n\tfor (i = 0, ilen = keys.length; i < ilen; ++i) {\r\n\t\tkey = keys[i];\r\n\r\n\t\ttarget = model[key];\r\n\r\n\t\t// if a value is added to the model after pivot() has been called, the view\r\n\t\t// doesn't contain it, so let's initialize the view to the target value.\r\n\t\tif (!view.hasOwnProperty(key)) {\r\n\t\t\tview[key] = target;\r\n\t\t}\r\n\r\n\t\tactual = view[key];\r\n\r\n\t\tif (actual === target || key[0] === '_') {\r\n\t\t\tcontinue;\r\n\t\t}\r\n\r\n\t\tif (!start.hasOwnProperty(key)) {\r\n\t\t\tstart[key] = actual;\r\n\t\t}\r\n\r\n\t\torigin = start[key];\r\n\r\n\t\ttype = typeof target;\r\n\r\n\t\tif (type === typeof origin) {\r\n\t\t\tif (type === 'string') {\r\n\t\t\t\tc0 = chartjsColor(origin);\r\n\t\t\t\tif (c0.valid) {\r\n\t\t\t\t\tc1 = chartjsColor(target);\r\n\t\t\t\t\tif (c1.valid) {\r\n\t\t\t\t\t\tview[key] = c1.mix(c0, ease).rgbString();\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (helpers$1.isFinite(origin) && helpers$1.isFinite(target)) {\r\n\t\t\t\tview[key] = origin + (target - origin) * ease;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tview[key] = target;\r\n\t}\r\n}\r\n\r\nvar Element = function(configuration) {\r\n\thelpers$1.extend(this, configuration);\r\n\tthis.initialize.apply(this, arguments);\r\n};\r\n\r\nhelpers$1.extend(Element.prototype, {\r\n\t_type: undefined,\r\n\r\n\tinitialize: function() {\r\n\t\tthis.hidden = false;\r\n\t},\r\n\r\n\tpivot: function() {\r\n\t\tvar me = this;\r\n\t\tif (!me._view) {\r\n\t\t\tme._view = helpers$1.extend({}, me._model);\r\n\t\t}\r\n\t\tme._start = {};\r\n\t\treturn me;\r\n\t},\r\n\r\n\ttransition: function(ease) {\r\n\t\tvar me = this;\r\n\t\tvar model = me._model;\r\n\t\tvar start = me._start;\r\n\t\tvar view = me._view;\r\n\r\n\t\t// No animation -> No Transition\r\n\t\tif (!model || ease === 1) {\r\n\t\t\tme._view = helpers$1.extend({}, model);\r\n\t\t\tme._start = null;\r\n\t\t\treturn me;\r\n\t\t}\r\n\r\n\t\tif (!view) {\r\n\t\t\tview = me._view = {};\r\n\t\t}\r\n\r\n\t\tif (!start) {\r\n\t\t\tstart = me._start = {};\r\n\t\t}\r\n\r\n\t\tinterpolate(start, view, model, ease);\r\n\r\n\t\treturn me;\r\n\t},\r\n\r\n\ttooltipPosition: function() {\r\n\t\treturn {\r\n\t\t\tx: this._model.x,\r\n\t\t\ty: this._model.y\r\n\t\t};\r\n\t},\r\n\r\n\thasValue: function() {\r\n\t\treturn helpers$1.isNumber(this._model.x) && helpers$1.isNumber(this._model.y);\r\n\t}\r\n});\r\n\r\nElement.extend = helpers$1.inherits;\r\n\r\nvar core_element = Element;\n\nvar exports$3 = core_element.extend({\r\n\tchart: null, // the animation associated chart instance\r\n\tcurrentStep: 0, // the current animation step\r\n\tnumSteps: 60, // default number of steps\r\n\teasing: '', // the easing to use for this animation\r\n\trender: null, // render function used by the animation service\r\n\r\n\tonAnimationProgress: null, // user specified callback to fire on each step of the animation\r\n\tonAnimationComplete: null, // user specified callback to fire when the animation finishes\r\n});\r\n\r\nvar core_animation = exports$3;\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.Animation instead\r\n * @prop Chart.Animation#animationObject\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n */\r\nObject.defineProperty(exports$3.prototype, 'animationObject', {\r\n\tget: function() {\r\n\t\treturn this;\r\n\t}\r\n});\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.Animation#chart instead\r\n * @prop Chart.Animation#chartInstance\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n */\r\nObject.defineProperty(exports$3.prototype, 'chartInstance', {\r\n\tget: function() {\r\n\t\treturn this.chart;\r\n\t},\r\n\tset: function(value) {\r\n\t\tthis.chart = value;\r\n\t}\r\n});\n\ncore_defaults._set('global', {\r\n\tanimation: {\r\n\t\tduration: 1000,\r\n\t\teasing: 'easeOutQuart',\r\n\t\tonProgress: helpers$1.noop,\r\n\t\tonComplete: helpers$1.noop\r\n\t}\r\n});\r\n\r\nvar core_animations = {\r\n\tanimations: [],\r\n\trequest: null,\r\n\r\n\t/**\r\n\t * @param {Chart} chart - The chart to animate.\r\n\t * @param {Chart.Animation} animation - The animation that we will animate.\r\n\t * @param {number} duration - The animation duration in ms.\r\n\t * @param {boolean} lazy - if true, the chart is not marked as animating to enable more responsive interactions\r\n\t */\r\n\taddAnimation: function(chart, animation, duration, lazy) {\r\n\t\tvar animations = this.animations;\r\n\t\tvar i, ilen;\r\n\r\n\t\tanimation.chart = chart;\r\n\t\tanimation.startTime = Date.now();\r\n\t\tanimation.duration = duration;\r\n\r\n\t\tif (!lazy) {\r\n\t\t\tchart.animating = true;\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = animations.length; i < ilen; ++i) {\r\n\t\t\tif (animations[i].chart === chart) {\r\n\t\t\t\tanimations[i] = animation;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tanimations.push(animation);\r\n\r\n\t\t// If there are no animations queued, manually kickstart a digest, for lack of a better word\r\n\t\tif (animations.length === 1) {\r\n\t\t\tthis.requestAnimationFrame();\r\n\t\t}\r\n\t},\r\n\r\n\tcancelAnimation: function(chart) {\r\n\t\tvar index = helpers$1.findIndex(this.animations, function(animation) {\r\n\t\t\treturn animation.chart === chart;\r\n\t\t});\r\n\r\n\t\tif (index !== -1) {\r\n\t\t\tthis.animations.splice(index, 1);\r\n\t\t\tchart.animating = false;\r\n\t\t}\r\n\t},\r\n\r\n\trequestAnimationFrame: function() {\r\n\t\tvar me = this;\r\n\t\tif (me.request === null) {\r\n\t\t\t// Skip animation frame requests until the active one is executed.\r\n\t\t\t// This can happen when processing mouse events, e.g. 'mousemove'\r\n\t\t\t// and 'mouseout' events will trigger multiple renders.\r\n\t\t\tme.request = helpers$1.requestAnimFrame.call(window, function() {\r\n\t\t\t\tme.request = null;\r\n\t\t\t\tme.startDigest();\r\n\t\t\t});\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tstartDigest: function() {\r\n\t\tvar me = this;\r\n\r\n\t\tme.advance();\r\n\r\n\t\t// Do we have more stuff to animate?\r\n\t\tif (me.animations.length > 0) {\r\n\t\t\tme.requestAnimationFrame();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tadvance: function() {\r\n\t\tvar animations = this.animations;\r\n\t\tvar animation, chart, numSteps, nextStep;\r\n\t\tvar i = 0;\r\n\r\n\t\t// 1 animation per chart, so we are looping charts here\r\n\t\twhile (i < animations.length) {\r\n\t\t\tanimation = animations[i];\r\n\t\t\tchart = animation.chart;\r\n\t\t\tnumSteps = animation.numSteps;\r\n\r\n\t\t\t// Make sure that currentStep starts at 1\r\n\t\t\t// https://github.com/chartjs/Chart.js/issues/6104\r\n\t\t\tnextStep = Math.floor((Date.now() - animation.startTime) / animation.duration * numSteps) + 1;\r\n\t\t\tanimation.currentStep = Math.min(nextStep, numSteps);\r\n\r\n\t\t\thelpers$1.callback(animation.render, [chart, animation], chart);\r\n\t\t\thelpers$1.callback(animation.onAnimationProgress, [animation], chart);\r\n\r\n\t\t\tif (animation.currentStep >= numSteps) {\r\n\t\t\t\thelpers$1.callback(animation.onAnimationComplete, [animation], chart);\r\n\t\t\t\tchart.animating = false;\r\n\t\t\t\tanimations.splice(i, 1);\r\n\t\t\t} else {\r\n\t\t\t\t++i;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\n\nvar resolve = helpers$1.options.resolve;\r\n\r\nvar arrayEvents = ['push', 'pop', 'shift', 'splice', 'unshift'];\r\n\r\n/**\r\n * Hooks the array methods that add or remove values ('push', pop', 'shift', 'splice',\r\n * 'unshift') and notify the listener AFTER the array has been altered. Listeners are\r\n * called on the 'onData*' callbacks (e.g. onDataPush, etc.) with same arguments.\r\n */\r\nfunction listenArrayEvents(array, listener) {\r\n\tif (array._chartjs) {\r\n\t\tarray._chartjs.listeners.push(listener);\r\n\t\treturn;\r\n\t}\r\n\r\n\tObject.defineProperty(array, '_chartjs', {\r\n\t\tconfigurable: true,\r\n\t\tenumerable: false,\r\n\t\tvalue: {\r\n\t\t\tlisteners: [listener]\r\n\t\t}\r\n\t});\r\n\r\n\tarrayEvents.forEach(function(key) {\r\n\t\tvar method = 'onData' + key.charAt(0).toUpperCase() + key.slice(1);\r\n\t\tvar base = array[key];\r\n\r\n\t\tObject.defineProperty(array, key, {\r\n\t\t\tconfigurable: true,\r\n\t\t\tenumerable: false,\r\n\t\t\tvalue: function() {\r\n\t\t\t\tvar args = Array.prototype.slice.call(arguments);\r\n\t\t\t\tvar res = base.apply(this, args);\r\n\r\n\t\t\t\thelpers$1.each(array._chartjs.listeners, function(object) {\r\n\t\t\t\t\tif (typeof object[method] === 'function') {\r\n\t\t\t\t\t\tobject[method].apply(object, args);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\treturn res;\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n}\r\n\r\n/**\r\n * Removes the given array event listener and cleanup extra attached properties (such as\r\n * the _chartjs stub and overridden methods) if array doesn't have any more listeners.\r\n */\r\nfunction unlistenArrayEvents(array, listener) {\r\n\tvar stub = array._chartjs;\r\n\tif (!stub) {\r\n\t\treturn;\r\n\t}\r\n\r\n\tvar listeners = stub.listeners;\r\n\tvar index = listeners.indexOf(listener);\r\n\tif (index !== -1) {\r\n\t\tlisteners.splice(index, 1);\r\n\t}\r\n\r\n\tif (listeners.length > 0) {\r\n\t\treturn;\r\n\t}\r\n\r\n\tarrayEvents.forEach(function(key) {\r\n\t\tdelete array[key];\r\n\t});\r\n\r\n\tdelete array._chartjs;\r\n}\r\n\r\n// Base class for all dataset controllers (line, bar, etc)\r\nvar DatasetController = function(chart, datasetIndex) {\r\n\tthis.initialize(chart, datasetIndex);\r\n};\r\n\r\nhelpers$1.extend(DatasetController.prototype, {\r\n\r\n\t/**\r\n\t * Element type used to generate a meta dataset (e.g. Chart.element.Line).\r\n\t * @type {Chart.core.element}\r\n\t */\r\n\tdatasetElementType: null,\r\n\r\n\t/**\r\n\t * Element type used to generate a meta data (e.g. Chart.element.Point).\r\n\t * @type {Chart.core.element}\r\n\t */\r\n\tdataElementType: null,\r\n\r\n\t/**\r\n\t * Dataset element option keys to be resolved in _resolveDatasetElementOptions.\r\n\t * A derived controller may override this to resolve controller-specific options.\r\n\t * The keys defined here are for backward compatibility for legend styles.\r\n\t * @private\r\n\t */\r\n\t_datasetElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderCapStyle',\r\n\t\t'borderColor',\r\n\t\t'borderDash',\r\n\t\t'borderDashOffset',\r\n\t\t'borderJoinStyle',\r\n\t\t'borderWidth'\r\n\t],\r\n\r\n\t/**\r\n\t * Data element option keys to be resolved in _resolveDataElementOptions.\r\n\t * A derived controller may override this to resolve controller-specific options.\r\n\t * The keys defined here are for backward compatibility for legend styles.\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderColor',\r\n\t\t'borderWidth',\r\n\t\t'pointStyle'\r\n\t],\r\n\r\n\tinitialize: function(chart, datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tme.chart = chart;\r\n\t\tme.index = datasetIndex;\r\n\t\tme.linkScales();\r\n\t\tme.addElements();\r\n\t\tme._type = me.getMeta().type;\r\n\t},\r\n\r\n\tupdateIndex: function(datasetIndex) {\r\n\t\tthis.index = datasetIndex;\r\n\t},\r\n\r\n\tlinkScales: function() {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar chart = me.chart;\r\n\t\tvar scales = chart.scales;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar scalesOpts = chart.options.scales;\r\n\r\n\t\tif (meta.xAxisID === null || !(meta.xAxisID in scales) || dataset.xAxisID) {\r\n\t\t\tmeta.xAxisID = dataset.xAxisID || scalesOpts.xAxes[0].id;\r\n\t\t}\r\n\t\tif (meta.yAxisID === null || !(meta.yAxisID in scales) || dataset.yAxisID) {\r\n\t\t\tmeta.yAxisID = dataset.yAxisID || scalesOpts.yAxes[0].id;\r\n\t\t}\r\n\t},\r\n\r\n\tgetDataset: function() {\r\n\t\treturn this.chart.data.datasets[this.index];\r\n\t},\r\n\r\n\tgetMeta: function() {\r\n\t\treturn this.chart.getDatasetMeta(this.index);\r\n\t},\r\n\r\n\tgetScaleForId: function(scaleID) {\r\n\t\treturn this.chart.scales[scaleID];\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getValueScaleId: function() {\r\n\t\treturn this.getMeta().yAxisID;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getIndexScaleId: function() {\r\n\t\treturn this.getMeta().xAxisID;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getValueScale: function() {\r\n\t\treturn this.getScaleForId(this._getValueScaleId());\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getIndexScale: function() {\r\n\t\treturn this.getScaleForId(this._getIndexScaleId());\r\n\t},\r\n\r\n\treset: function() {\r\n\t\tthis._update(true);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tdestroy: function() {\r\n\t\tif (this._data) {\r\n\t\t\tunlistenArrayEvents(this._data, this);\r\n\t\t}\r\n\t},\r\n\r\n\tcreateMetaDataset: function() {\r\n\t\tvar me = this;\r\n\t\tvar type = me.datasetElementType;\r\n\t\treturn type && new type({\r\n\t\t\t_chart: me.chart,\r\n\t\t\t_datasetIndex: me.index\r\n\t\t});\r\n\t},\r\n\r\n\tcreateMetaData: function(index) {\r\n\t\tvar me = this;\r\n\t\tvar type = me.dataElementType;\r\n\t\treturn type && new type({\r\n\t\t\t_chart: me.chart,\r\n\t\t\t_datasetIndex: me.index,\r\n\t\t\t_index: index\r\n\t\t});\r\n\t},\r\n\r\n\taddElements: function() {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar data = me.getDataset().data || [];\r\n\t\tvar metaData = meta.data;\r\n\t\tvar i, ilen;\r\n\r\n\t\tfor (i = 0, ilen = data.length; i < ilen; ++i) {\r\n\t\t\tmetaData[i] = metaData[i] || me.createMetaData(i);\r\n\t\t}\r\n\r\n\t\tmeta.dataset = meta.dataset || me.createMetaDataset();\r\n\t},\r\n\r\n\taddElementAndReset: function(index) {\r\n\t\tvar element = this.createMetaData(index);\r\n\t\tthis.getMeta().data.splice(index, 0, element);\r\n\t\tthis.updateElement(element, index, true);\r\n\t},\r\n\r\n\tbuildOrUpdateElements: function() {\r\n\t\tvar me = this;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar data = dataset.data || (dataset.data = []);\r\n\r\n\t\t// In order to correctly handle data addition/deletion animation (an thus simulate\r\n\t\t// real-time charts), we need to monitor these data modifications and synchronize\r\n\t\t// the internal meta data accordingly.\r\n\t\tif (me._data !== data) {\r\n\t\t\tif (me._data) {\r\n\t\t\t\t// This case happens when the user replaced the data array instance.\r\n\t\t\t\tunlistenArrayEvents(me._data, me);\r\n\t\t\t}\r\n\r\n\t\t\tif (data && Object.isExtensible(data)) {\r\n\t\t\t\tlistenArrayEvents(data, me);\r\n\t\t\t}\r\n\t\t\tme._data = data;\r\n\t\t}\r\n\r\n\t\t// Re-sync meta data in case the user replaced the data array or if we missed\r\n\t\t// any updates and so make sure that we handle number of datapoints changing.\r\n\t\tme.resyncElements();\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the merged user-supplied and default dataset-level options\r\n\t * @private\r\n\t */\r\n\t_configure: function() {\r\n\t\tvar me = this;\r\n\t\tme._config = helpers$1.merge(Object.create(null), [\r\n\t\t\tme.chart.options.datasets[me._type],\r\n\t\t\tme.getDataset(),\r\n\t\t], {\r\n\t\t\tmerger: function(key, target, source) {\r\n\t\t\t\tif (key !== '_meta' && key !== 'data') {\r\n\t\t\t\t\thelpers$1._merger(key, target, source);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t},\r\n\r\n\t_update: function(reset) {\r\n\t\tvar me = this;\r\n\t\tme._configure();\r\n\t\tme._cachedDataOpts = null;\r\n\t\tme.update(reset);\r\n\t},\r\n\r\n\tupdate: helpers$1.noop,\r\n\r\n\ttransition: function(easingValue) {\r\n\t\tvar meta = this.getMeta();\r\n\t\tvar elements = meta.data || [];\r\n\t\tvar ilen = elements.length;\r\n\t\tvar i = 0;\r\n\r\n\t\tfor (; i < ilen; ++i) {\r\n\t\t\telements[i].transition(easingValue);\r\n\t\t}\r\n\r\n\t\tif (meta.dataset) {\r\n\t\t\tmeta.dataset.transition(easingValue);\r\n\t\t}\r\n\t},\r\n\r\n\tdraw: function() {\r\n\t\tvar meta = this.getMeta();\r\n\t\tvar elements = meta.data || [];\r\n\t\tvar ilen = elements.length;\r\n\t\tvar i = 0;\r\n\r\n\t\tif (meta.dataset) {\r\n\t\t\tmeta.dataset.draw();\r\n\t\t}\r\n\r\n\t\tfor (; i < ilen; ++i) {\r\n\t\t\telements[i].draw();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Returns a set of predefined style properties that should be used to represent the dataset\r\n\t * or the data if the index is specified\r\n\t * @param {number} index - data index\r\n\t * @return {IStyleInterface} style object\r\n\t */\r\n\tgetStyle: function(index) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar dataset = meta.dataset;\r\n\t\tvar style;\r\n\r\n\t\tme._configure();\r\n\t\tif (dataset && index === undefined) {\r\n\t\t\tstyle = me._resolveDatasetElementOptions(dataset || {});\r\n\t\t} else {\r\n\t\t\tindex = index || 0;\r\n\t\t\tstyle = me._resolveDataElementOptions(meta.data[index] || {}, index);\r\n\t\t}\r\n\r\n\t\tif (style.fill === false || style.fill === null) {\r\n\t\t\tstyle.backgroundColor = style.borderColor;\r\n\t\t}\r\n\r\n\t\treturn style;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_resolveDatasetElementOptions: function(element, hover) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar datasetOpts = me._config;\r\n\t\tvar custom = element.custom || {};\r\n\t\tvar options = chart.options.elements[me.datasetElementType.prototype._type] || {};\r\n\t\tvar elementOptions = me._datasetElementOptions;\r\n\t\tvar values = {};\r\n\t\tvar i, ilen, key, readKey;\r\n\r\n\t\t// Scriptable options\r\n\t\tvar context = {\r\n\t\t\tchart: chart,\r\n\t\t\tdataset: me.getDataset(),\r\n\t\t\tdatasetIndex: me.index,\r\n\t\t\thover: hover\r\n\t\t};\r\n\r\n\t\tfor (i = 0, ilen = elementOptions.length; i < ilen; ++i) {\r\n\t\t\tkey = elementOptions[i];\r\n\t\t\treadKey = hover ? 'hover' + key.charAt(0).toUpperCase() + key.slice(1) : key;\r\n\t\t\tvalues[key] = resolve([\r\n\t\t\t\tcustom[readKey],\r\n\t\t\t\tdatasetOpts[readKey],\r\n\t\t\t\toptions[readKey]\r\n\t\t\t], context);\r\n\t\t}\r\n\r\n\t\treturn values;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_resolveDataElementOptions: function(element, index) {\r\n\t\tvar me = this;\r\n\t\tvar custom = element && element.custom;\r\n\t\tvar cached = me._cachedDataOpts;\r\n\t\tif (cached && !custom) {\r\n\t\t\treturn cached;\r\n\t\t}\r\n\t\tvar chart = me.chart;\r\n\t\tvar datasetOpts = me._config;\r\n\t\tvar options = chart.options.elements[me.dataElementType.prototype._type] || {};\r\n\t\tvar elementOptions = me._dataElementOptions;\r\n\t\tvar values = {};\r\n\r\n\t\t// Scriptable options\r\n\t\tvar context = {\r\n\t\t\tchart: chart,\r\n\t\t\tdataIndex: index,\r\n\t\t\tdataset: me.getDataset(),\r\n\t\t\tdatasetIndex: me.index\r\n\t\t};\r\n\r\n\t\t// `resolve` sets cacheable to `false` if any option is indexed or scripted\r\n\t\tvar info = {cacheable: !custom};\r\n\r\n\t\tvar keys, i, ilen, key;\r\n\r\n\t\tcustom = custom || {};\r\n\r\n\t\tif (helpers$1.isArray(elementOptions)) {\r\n\t\t\tfor (i = 0, ilen = elementOptions.length; i < ilen; ++i) {\r\n\t\t\t\tkey = elementOptions[i];\r\n\t\t\t\tvalues[key] = resolve([\r\n\t\t\t\t\tcustom[key],\r\n\t\t\t\t\tdatasetOpts[key],\r\n\t\t\t\t\toptions[key]\r\n\t\t\t\t], context, index, info);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tkeys = Object.keys(elementOptions);\r\n\t\t\tfor (i = 0, ilen = keys.length; i < ilen; ++i) {\r\n\t\t\t\tkey = keys[i];\r\n\t\t\t\tvalues[key] = resolve([\r\n\t\t\t\t\tcustom[key],\r\n\t\t\t\t\tdatasetOpts[elementOptions[key]],\r\n\t\t\t\t\tdatasetOpts[key],\r\n\t\t\t\t\toptions[key]\r\n\t\t\t\t], context, index, info);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (info.cacheable) {\r\n\t\t\tme._cachedDataOpts = Object.freeze(values);\r\n\t\t}\r\n\r\n\t\treturn values;\r\n\t},\r\n\r\n\tremoveHoverStyle: function(element) {\r\n\t\thelpers$1.merge(element._model, element.$previousStyle || {});\r\n\t\tdelete element.$previousStyle;\r\n\t},\r\n\r\n\tsetHoverStyle: function(element) {\r\n\t\tvar dataset = this.chart.data.datasets[element._datasetIndex];\r\n\t\tvar index = element._index;\r\n\t\tvar custom = element.custom || {};\r\n\t\tvar model = element._model;\r\n\t\tvar getHoverColor = helpers$1.getHoverColor;\r\n\r\n\t\telement.$previousStyle = {\r\n\t\t\tbackgroundColor: model.backgroundColor,\r\n\t\t\tborderColor: model.borderColor,\r\n\t\t\tborderWidth: model.borderWidth\r\n\t\t};\r\n\r\n\t\tmodel.backgroundColor = resolve([custom.hoverBackgroundColor, dataset.hoverBackgroundColor, getHoverColor(model.backgroundColor)], undefined, index);\r\n\t\tmodel.borderColor = resolve([custom.hoverBorderColor, dataset.hoverBorderColor, getHoverColor(model.borderColor)], undefined, index);\r\n\t\tmodel.borderWidth = resolve([custom.hoverBorderWidth, dataset.hoverBorderWidth, model.borderWidth], undefined, index);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_removeDatasetHoverStyle: function() {\r\n\t\tvar element = this.getMeta().dataset;\r\n\r\n\t\tif (element) {\r\n\t\t\tthis.removeHoverStyle(element);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_setDatasetHoverStyle: function() {\r\n\t\tvar element = this.getMeta().dataset;\r\n\t\tvar prev = {};\r\n\t\tvar i, ilen, key, keys, hoverOptions, model;\r\n\r\n\t\tif (!element) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmodel = element._model;\r\n\t\thoverOptions = this._resolveDatasetElementOptions(element, true);\r\n\r\n\t\tkeys = Object.keys(hoverOptions);\r\n\t\tfor (i = 0, ilen = keys.length; i < ilen; ++i) {\r\n\t\t\tkey = keys[i];\r\n\t\t\tprev[key] = model[key];\r\n\t\t\tmodel[key] = hoverOptions[key];\r\n\t\t}\r\n\r\n\t\telement.$previousStyle = prev;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tresyncElements: function() {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar data = me.getDataset().data;\r\n\t\tvar numMeta = meta.data.length;\r\n\t\tvar numData = data.length;\r\n\r\n\t\tif (numData < numMeta) {\r\n\t\t\tmeta.data.splice(numData, numMeta - numData);\r\n\t\t} else if (numData > numMeta) {\r\n\t\t\tme.insertElements(numMeta, numData - numMeta);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tinsertElements: function(start, count) {\r\n\t\tfor (var i = 0; i < count; ++i) {\r\n\t\t\tthis.addElementAndReset(start + i);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tonDataPush: function() {\r\n\t\tvar count = arguments.length;\r\n\t\tthis.insertElements(this.getDataset().data.length - count, count);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tonDataPop: function() {\r\n\t\tthis.getMeta().data.pop();\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tonDataShift: function() {\r\n\t\tthis.getMeta().data.shift();\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tonDataSplice: function(start, count) {\r\n\t\tthis.getMeta().data.splice(start, count);\r\n\t\tthis.insertElements(start, arguments.length - 2);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tonDataUnshift: function() {\r\n\t\tthis.insertElements(0, arguments.length);\r\n\t}\r\n});\r\n\r\nDatasetController.extend = helpers$1.inherits;\r\n\r\nvar core_datasetController = DatasetController;\n\nvar TAU = Math.PI * 2;\r\n\r\ncore_defaults._set('global', {\r\n\telements: {\r\n\t\tarc: {\r\n\t\t\tbackgroundColor: core_defaults.global.defaultColor,\r\n\t\t\tborderColor: '#fff',\r\n\t\t\tborderWidth: 2,\r\n\t\t\tborderAlign: 'center'\r\n\t\t}\r\n\t}\r\n});\r\n\r\nfunction clipArc(ctx, arc) {\r\n\tvar startAngle = arc.startAngle;\r\n\tvar endAngle = arc.endAngle;\r\n\tvar pixelMargin = arc.pixelMargin;\r\n\tvar angleMargin = pixelMargin / arc.outerRadius;\r\n\tvar x = arc.x;\r\n\tvar y = arc.y;\r\n\r\n\t// Draw an inner border by cliping the arc and drawing a double-width border\r\n\t// Enlarge the clipping arc by 0.33 pixels to eliminate glitches between borders\r\n\tctx.beginPath();\r\n\tctx.arc(x, y, arc.outerRadius, startAngle - angleMargin, endAngle + angleMargin);\r\n\tif (arc.innerRadius > pixelMargin) {\r\n\t\tangleMargin = pixelMargin / arc.innerRadius;\r\n\t\tctx.arc(x, y, arc.innerRadius - pixelMargin, endAngle + angleMargin, startAngle - angleMargin, true);\r\n\t} else {\r\n\t\tctx.arc(x, y, pixelMargin, endAngle + Math.PI / 2, startAngle - Math.PI / 2);\r\n\t}\r\n\tctx.closePath();\r\n\tctx.clip();\r\n}\r\n\r\nfunction drawFullCircleBorders(ctx, vm, arc, inner) {\r\n\tvar endAngle = arc.endAngle;\r\n\tvar i;\r\n\r\n\tif (inner) {\r\n\t\tarc.endAngle = arc.startAngle + TAU;\r\n\t\tclipArc(ctx, arc);\r\n\t\tarc.endAngle = endAngle;\r\n\t\tif (arc.endAngle === arc.startAngle && arc.fullCircles) {\r\n\t\t\tarc.endAngle += TAU;\r\n\t\t\tarc.fullCircles--;\r\n\t\t}\r\n\t}\r\n\r\n\tctx.beginPath();\r\n\tctx.arc(arc.x, arc.y, arc.innerRadius, arc.startAngle + TAU, arc.startAngle, true);\r\n\tfor (i = 0; i < arc.fullCircles; ++i) {\r\n\t\tctx.stroke();\r\n\t}\r\n\r\n\tctx.beginPath();\r\n\tctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.startAngle + TAU);\r\n\tfor (i = 0; i < arc.fullCircles; ++i) {\r\n\t\tctx.stroke();\r\n\t}\r\n}\r\n\r\nfunction drawBorder(ctx, vm, arc) {\r\n\tvar inner = vm.borderAlign === 'inner';\r\n\r\n\tif (inner) {\r\n\t\tctx.lineWidth = vm.borderWidth * 2;\r\n\t\tctx.lineJoin = 'round';\r\n\t} else {\r\n\t\tctx.lineWidth = vm.borderWidth;\r\n\t\tctx.lineJoin = 'bevel';\r\n\t}\r\n\r\n\tif (arc.fullCircles) {\r\n\t\tdrawFullCircleBorders(ctx, vm, arc, inner);\r\n\t}\r\n\r\n\tif (inner) {\r\n\t\tclipArc(ctx, arc);\r\n\t}\r\n\r\n\tctx.beginPath();\r\n\tctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.endAngle);\r\n\tctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);\r\n\tctx.closePath();\r\n\tctx.stroke();\r\n}\r\n\r\nvar element_arc = core_element.extend({\r\n\t_type: 'arc',\r\n\r\n\tinLabelRange: function(mouseX) {\r\n\t\tvar vm = this._view;\r\n\r\n\t\tif (vm) {\r\n\t\t\treturn (Math.pow(mouseX - vm.x, 2) < Math.pow(vm.radius + vm.hoverRadius, 2));\r\n\t\t}\r\n\t\treturn false;\r\n\t},\r\n\r\n\tinRange: function(chartX, chartY) {\r\n\t\tvar vm = this._view;\r\n\r\n\t\tif (vm) {\r\n\t\t\tvar pointRelativePosition = helpers$1.getAngleFromPoint(vm, {x: chartX, y: chartY});\r\n\t\t\tvar angle = pointRelativePosition.angle;\r\n\t\t\tvar distance = pointRelativePosition.distance;\r\n\r\n\t\t\t// Sanitise angle range\r\n\t\t\tvar startAngle = vm.startAngle;\r\n\t\t\tvar endAngle = vm.endAngle;\r\n\t\t\twhile (endAngle < startAngle) {\r\n\t\t\t\tendAngle += TAU;\r\n\t\t\t}\r\n\t\t\twhile (angle > endAngle) {\r\n\t\t\t\tangle -= TAU;\r\n\t\t\t}\r\n\t\t\twhile (angle < startAngle) {\r\n\t\t\t\tangle += TAU;\r\n\t\t\t}\r\n\r\n\t\t\t// Check if within the range of the open/close angle\r\n\t\t\tvar betweenAngles = (angle >= startAngle && angle <= endAngle);\r\n\t\t\tvar withinRadius = (distance >= vm.innerRadius && distance <= vm.outerRadius);\r\n\r\n\t\t\treturn (betweenAngles && withinRadius);\r\n\t\t}\r\n\t\treturn false;\r\n\t},\r\n\r\n\tgetCenterPoint: function() {\r\n\t\tvar vm = this._view;\r\n\t\tvar halfAngle = (vm.startAngle + vm.endAngle) / 2;\r\n\t\tvar halfRadius = (vm.innerRadius + vm.outerRadius) / 2;\r\n\t\treturn {\r\n\t\t\tx: vm.x + Math.cos(halfAngle) * halfRadius,\r\n\t\t\ty: vm.y + Math.sin(halfAngle) * halfRadius\r\n\t\t};\r\n\t},\r\n\r\n\tgetArea: function() {\r\n\t\tvar vm = this._view;\r\n\t\treturn Math.PI * ((vm.endAngle - vm.startAngle) / (2 * Math.PI)) * (Math.pow(vm.outerRadius, 2) - Math.pow(vm.innerRadius, 2));\r\n\t},\r\n\r\n\ttooltipPosition: function() {\r\n\t\tvar vm = this._view;\r\n\t\tvar centreAngle = vm.startAngle + ((vm.endAngle - vm.startAngle) / 2);\r\n\t\tvar rangeFromCentre = (vm.outerRadius - vm.innerRadius) / 2 + vm.innerRadius;\r\n\r\n\t\treturn {\r\n\t\t\tx: vm.x + (Math.cos(centreAngle) * rangeFromCentre),\r\n\t\t\ty: vm.y + (Math.sin(centreAngle) * rangeFromCentre)\r\n\t\t};\r\n\t},\r\n\r\n\tdraw: function() {\r\n\t\tvar ctx = this._chart.ctx;\r\n\t\tvar vm = this._view;\r\n\t\tvar pixelMargin = (vm.borderAlign === 'inner') ? 0.33 : 0;\r\n\t\tvar arc = {\r\n\t\t\tx: vm.x,\r\n\t\t\ty: vm.y,\r\n\t\t\tinnerRadius: vm.innerRadius,\r\n\t\t\touterRadius: Math.max(vm.outerRadius - pixelMargin, 0),\r\n\t\t\tpixelMargin: pixelMargin,\r\n\t\t\tstartAngle: vm.startAngle,\r\n\t\t\tendAngle: vm.endAngle,\r\n\t\t\tfullCircles: Math.floor(vm.circumference / TAU)\r\n\t\t};\r\n\t\tvar i;\r\n\r\n\t\tctx.save();\r\n\r\n\t\tctx.fillStyle = vm.backgroundColor;\r\n\t\tctx.strokeStyle = vm.borderColor;\r\n\r\n\t\tif (arc.fullCircles) {\r\n\t\t\tarc.endAngle = arc.startAngle + TAU;\r\n\t\t\tctx.beginPath();\r\n\t\t\tctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle);\r\n\t\t\tctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);\r\n\t\t\tctx.closePath();\r\n\t\t\tfor (i = 0; i < arc.fullCircles; ++i) {\r\n\t\t\t\tctx.fill();\r\n\t\t\t}\r\n\t\t\tarc.endAngle = arc.startAngle + vm.circumference % TAU;\r\n\t\t}\r\n\r\n\t\tctx.beginPath();\r\n\t\tctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle);\r\n\t\tctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);\r\n\t\tctx.closePath();\r\n\t\tctx.fill();\r\n\r\n\t\tif (vm.borderWidth) {\r\n\t\t\tdrawBorder(ctx, vm, arc);\r\n\t\t}\r\n\r\n\t\tctx.restore();\r\n\t}\r\n});\n\nvar valueOrDefault$1 = helpers$1.valueOrDefault;\r\n\r\nvar defaultColor = core_defaults.global.defaultColor;\r\n\r\ncore_defaults._set('global', {\r\n\telements: {\r\n\t\tline: {\r\n\t\t\ttension: 0.4,\r\n\t\t\tbackgroundColor: defaultColor,\r\n\t\t\tborderWidth: 3,\r\n\t\t\tborderColor: defaultColor,\r\n\t\t\tborderCapStyle: 'butt',\r\n\t\t\tborderDash: [],\r\n\t\t\tborderDashOffset: 0.0,\r\n\t\t\tborderJoinStyle: 'miter',\r\n\t\t\tcapBezierPoints: true,\r\n\t\t\tfill: true, // do we fill in the area between the line and its base axis\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar element_line = core_element.extend({\r\n\t_type: 'line',\r\n\r\n\tdraw: function() {\r\n\t\tvar me = this;\r\n\t\tvar vm = me._view;\r\n\t\tvar ctx = me._chart.ctx;\r\n\t\tvar spanGaps = vm.spanGaps;\r\n\t\tvar points = me._children.slice(); // clone array\r\n\t\tvar globalDefaults = core_defaults.global;\r\n\t\tvar globalOptionLineElements = globalDefaults.elements.line;\r\n\t\tvar lastDrawnIndex = -1;\r\n\t\tvar closePath = me._loop;\r\n\t\tvar index, previous, currentVM;\r\n\r\n\t\tif (!points.length) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (me._loop) {\r\n\t\t\tfor (index = 0; index < points.length; ++index) {\r\n\t\t\t\tprevious = helpers$1.previousItem(points, index);\r\n\t\t\t\t// If the line has an open path, shift the point array\r\n\t\t\t\tif (!points[index]._view.skip && previous._view.skip) {\r\n\t\t\t\t\tpoints = points.slice(index).concat(points.slice(0, index));\r\n\t\t\t\t\tclosePath = spanGaps;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If the line has a close path, add the first point again\r\n\t\t\tif (closePath) {\r\n\t\t\t\tpoints.push(points[0]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tctx.save();\r\n\r\n\t\t// Stroke Line Options\r\n\t\tctx.lineCap = vm.borderCapStyle || globalOptionLineElements.borderCapStyle;\r\n\r\n\t\t// IE 9 and 10 do not support line dash\r\n\t\tif (ctx.setLineDash) {\r\n\t\t\tctx.setLineDash(vm.borderDash || globalOptionLineElements.borderDash);\r\n\t\t}\r\n\r\n\t\tctx.lineDashOffset = valueOrDefault$1(vm.borderDashOffset, globalOptionLineElements.borderDashOffset);\r\n\t\tctx.lineJoin = vm.borderJoinStyle || globalOptionLineElements.borderJoinStyle;\r\n\t\tctx.lineWidth = valueOrDefault$1(vm.borderWidth, globalOptionLineElements.borderWidth);\r\n\t\tctx.strokeStyle = vm.borderColor || globalDefaults.defaultColor;\r\n\r\n\t\t// Stroke Line\r\n\t\tctx.beginPath();\r\n\r\n\t\t// First point moves to it's starting position no matter what\r\n\t\tcurrentVM = points[0]._view;\r\n\t\tif (!currentVM.skip) {\r\n\t\t\tctx.moveTo(currentVM.x, currentVM.y);\r\n\t\t\tlastDrawnIndex = 0;\r\n\t\t}\r\n\r\n\t\tfor (index = 1; index < points.length; ++index) {\r\n\t\t\tcurrentVM = points[index]._view;\r\n\t\t\tprevious = lastDrawnIndex === -1 ? helpers$1.previousItem(points, index) : points[lastDrawnIndex];\r\n\r\n\t\t\tif (!currentVM.skip) {\r\n\t\t\t\tif ((lastDrawnIndex !== (index - 1) && !spanGaps) || lastDrawnIndex === -1) {\r\n\t\t\t\t\t// There was a gap and this is the first point after the gap\r\n\t\t\t\t\tctx.moveTo(currentVM.x, currentVM.y);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Line to next point\r\n\t\t\t\t\thelpers$1.canvas.lineTo(ctx, previous._view, currentVM);\r\n\t\t\t\t}\r\n\t\t\t\tlastDrawnIndex = index;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (closePath) {\r\n\t\t\tctx.closePath();\r\n\t\t}\r\n\r\n\t\tctx.stroke();\r\n\t\tctx.restore();\r\n\t}\r\n});\n\nvar valueOrDefault$2 = helpers$1.valueOrDefault;\r\n\r\nvar defaultColor$1 = core_defaults.global.defaultColor;\r\n\r\ncore_defaults._set('global', {\r\n\telements: {\r\n\t\tpoint: {\r\n\t\t\tradius: 3,\r\n\t\t\tpointStyle: 'circle',\r\n\t\t\tbackgroundColor: defaultColor$1,\r\n\t\t\tborderColor: defaultColor$1,\r\n\t\t\tborderWidth: 1,\r\n\t\t\t// Hover\r\n\t\t\thitRadius: 1,\r\n\t\t\thoverRadius: 4,\r\n\t\t\thoverBorderWidth: 1\r\n\t\t}\r\n\t}\r\n});\r\n\r\nfunction xRange(mouseX) {\r\n\tvar vm = this._view;\r\n\treturn vm ? (Math.abs(mouseX - vm.x) < vm.radius + vm.hitRadius) : false;\r\n}\r\n\r\nfunction yRange(mouseY) {\r\n\tvar vm = this._view;\r\n\treturn vm ? (Math.abs(mouseY - vm.y) < vm.radius + vm.hitRadius) : false;\r\n}\r\n\r\nvar element_point = core_element.extend({\r\n\t_type: 'point',\r\n\r\n\tinRange: function(mouseX, mouseY) {\r\n\t\tvar vm = this._view;\r\n\t\treturn vm ? ((Math.pow(mouseX - vm.x, 2) + Math.pow(mouseY - vm.y, 2)) < Math.pow(vm.hitRadius + vm.radius, 2)) : false;\r\n\t},\r\n\r\n\tinLabelRange: xRange,\r\n\tinXRange: xRange,\r\n\tinYRange: yRange,\r\n\r\n\tgetCenterPoint: function() {\r\n\t\tvar vm = this._view;\r\n\t\treturn {\r\n\t\t\tx: vm.x,\r\n\t\t\ty: vm.y\r\n\t\t};\r\n\t},\r\n\r\n\tgetArea: function() {\r\n\t\treturn Math.PI * Math.pow(this._view.radius, 2);\r\n\t},\r\n\r\n\ttooltipPosition: function() {\r\n\t\tvar vm = this._view;\r\n\t\treturn {\r\n\t\t\tx: vm.x,\r\n\t\t\ty: vm.y,\r\n\t\t\tpadding: vm.radius + vm.borderWidth\r\n\t\t};\r\n\t},\r\n\r\n\tdraw: function(chartArea) {\r\n\t\tvar vm = this._view;\r\n\t\tvar ctx = this._chart.ctx;\r\n\t\tvar pointStyle = vm.pointStyle;\r\n\t\tvar rotation = vm.rotation;\r\n\t\tvar radius = vm.radius;\r\n\t\tvar x = vm.x;\r\n\t\tvar y = vm.y;\r\n\t\tvar globalDefaults = core_defaults.global;\r\n\t\tvar defaultColor = globalDefaults.defaultColor; // eslint-disable-line no-shadow\r\n\r\n\t\tif (vm.skip) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Clipping for Points.\r\n\t\tif (chartArea === undefined || helpers$1.canvas._isPointInArea(vm, chartArea)) {\r\n\t\t\tctx.strokeStyle = vm.borderColor || defaultColor;\r\n\t\t\tctx.lineWidth = valueOrDefault$2(vm.borderWidth, globalDefaults.elements.point.borderWidth);\r\n\t\t\tctx.fillStyle = vm.backgroundColor || defaultColor;\r\n\t\t\thelpers$1.canvas.drawPoint(ctx, pointStyle, radius, x, y, rotation);\r\n\t\t}\r\n\t}\r\n});\n\nvar defaultColor$2 = core_defaults.global.defaultColor;\r\n\r\ncore_defaults._set('global', {\r\n\telements: {\r\n\t\trectangle: {\r\n\t\t\tbackgroundColor: defaultColor$2,\r\n\t\t\tborderColor: defaultColor$2,\r\n\t\t\tborderSkipped: 'bottom',\r\n\t\t\tborderWidth: 0\r\n\t\t}\r\n\t}\r\n});\r\n\r\nfunction isVertical(vm) {\r\n\treturn vm && vm.width !== undefined;\r\n}\r\n\r\n/**\r\n * Helper function to get the bounds of the bar regardless of the orientation\r\n * @param bar {Chart.Element.Rectangle} the bar\r\n * @return {Bounds} bounds of the bar\r\n * @private\r\n */\r\nfunction getBarBounds(vm) {\r\n\tvar x1, x2, y1, y2, half;\r\n\r\n\tif (isVertical(vm)) {\r\n\t\thalf = vm.width / 2;\r\n\t\tx1 = vm.x - half;\r\n\t\tx2 = vm.x + half;\r\n\t\ty1 = Math.min(vm.y, vm.base);\r\n\t\ty2 = Math.max(vm.y, vm.base);\r\n\t} else {\r\n\t\thalf = vm.height / 2;\r\n\t\tx1 = Math.min(vm.x, vm.base);\r\n\t\tx2 = Math.max(vm.x, vm.base);\r\n\t\ty1 = vm.y - half;\r\n\t\ty2 = vm.y + half;\r\n\t}\r\n\r\n\treturn {\r\n\t\tleft: x1,\r\n\t\ttop: y1,\r\n\t\tright: x2,\r\n\t\tbottom: y2\r\n\t};\r\n}\r\n\r\nfunction swap(orig, v1, v2) {\r\n\treturn orig === v1 ? v2 : orig === v2 ? v1 : orig;\r\n}\r\n\r\nfunction parseBorderSkipped(vm) {\r\n\tvar edge = vm.borderSkipped;\r\n\tvar res = {};\r\n\r\n\tif (!edge) {\r\n\t\treturn res;\r\n\t}\r\n\r\n\tif (vm.horizontal) {\r\n\t\tif (vm.base > vm.x) {\r\n\t\t\tedge = swap(edge, 'left', 'right');\r\n\t\t}\r\n\t} else if (vm.base < vm.y) {\r\n\t\tedge = swap(edge, 'bottom', 'top');\r\n\t}\r\n\r\n\tres[edge] = true;\r\n\treturn res;\r\n}\r\n\r\nfunction parseBorderWidth(vm, maxW, maxH) {\r\n\tvar value = vm.borderWidth;\r\n\tvar skip = parseBorderSkipped(vm);\r\n\tvar t, r, b, l;\r\n\r\n\tif (helpers$1.isObject(value)) {\r\n\t\tt = +value.top || 0;\r\n\t\tr = +value.right || 0;\r\n\t\tb = +value.bottom || 0;\r\n\t\tl = +value.left || 0;\r\n\t} else {\r\n\t\tt = r = b = l = +value || 0;\r\n\t}\r\n\r\n\treturn {\r\n\t\tt: skip.top || (t < 0) ? 0 : t > maxH ? maxH : t,\r\n\t\tr: skip.right || (r < 0) ? 0 : r > maxW ? maxW : r,\r\n\t\tb: skip.bottom || (b < 0) ? 0 : b > maxH ? maxH : b,\r\n\t\tl: skip.left || (l < 0) ? 0 : l > maxW ? maxW : l\r\n\t};\r\n}\r\n\r\nfunction boundingRects(vm) {\r\n\tvar bounds = getBarBounds(vm);\r\n\tvar width = bounds.right - bounds.left;\r\n\tvar height = bounds.bottom - bounds.top;\r\n\tvar border = parseBorderWidth(vm, width / 2, height / 2);\r\n\r\n\treturn {\r\n\t\touter: {\r\n\t\t\tx: bounds.left,\r\n\t\t\ty: bounds.top,\r\n\t\t\tw: width,\r\n\t\t\th: height\r\n\t\t},\r\n\t\tinner: {\r\n\t\t\tx: bounds.left + border.l,\r\n\t\t\ty: bounds.top + border.t,\r\n\t\t\tw: width - border.l - border.r,\r\n\t\t\th: height - border.t - border.b\r\n\t\t}\r\n\t};\r\n}\r\n\r\nfunction inRange(vm, x, y) {\r\n\tvar skipX = x === null;\r\n\tvar skipY = y === null;\r\n\tvar bounds = !vm || (skipX && skipY) ? false : getBarBounds(vm);\r\n\r\n\treturn bounds\r\n\t\t&& (skipX || x >= bounds.left && x <= bounds.right)\r\n\t\t&& (skipY || y >= bounds.top && y <= bounds.bottom);\r\n}\r\n\r\nvar element_rectangle = core_element.extend({\r\n\t_type: 'rectangle',\r\n\r\n\tdraw: function() {\r\n\t\tvar ctx = this._chart.ctx;\r\n\t\tvar vm = this._view;\r\n\t\tvar rects = boundingRects(vm);\r\n\t\tvar outer = rects.outer;\r\n\t\tvar inner = rects.inner;\r\n\r\n\t\tctx.fillStyle = vm.backgroundColor;\r\n\t\tctx.fillRect(outer.x, outer.y, outer.w, outer.h);\r\n\r\n\t\tif (outer.w === inner.w && outer.h === inner.h) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tctx.save();\r\n\t\tctx.beginPath();\r\n\t\tctx.rect(outer.x, outer.y, outer.w, outer.h);\r\n\t\tctx.clip();\r\n\t\tctx.fillStyle = vm.borderColor;\r\n\t\tctx.rect(inner.x, inner.y, inner.w, inner.h);\r\n\t\tctx.fill('evenodd');\r\n\t\tctx.restore();\r\n\t},\r\n\r\n\theight: function() {\r\n\t\tvar vm = this._view;\r\n\t\treturn vm.base - vm.y;\r\n\t},\r\n\r\n\tinRange: function(mouseX, mouseY) {\r\n\t\treturn inRange(this._view, mouseX, mouseY);\r\n\t},\r\n\r\n\tinLabelRange: function(mouseX, mouseY) {\r\n\t\tvar vm = this._view;\r\n\t\treturn isVertical(vm)\r\n\t\t\t? inRange(vm, mouseX, null)\r\n\t\t\t: inRange(vm, null, mouseY);\r\n\t},\r\n\r\n\tinXRange: function(mouseX) {\r\n\t\treturn inRange(this._view, mouseX, null);\r\n\t},\r\n\r\n\tinYRange: function(mouseY) {\r\n\t\treturn inRange(this._view, null, mouseY);\r\n\t},\r\n\r\n\tgetCenterPoint: function() {\r\n\t\tvar vm = this._view;\r\n\t\tvar x, y;\r\n\t\tif (isVertical(vm)) {\r\n\t\t\tx = vm.x;\r\n\t\t\ty = (vm.y + vm.base) / 2;\r\n\t\t} else {\r\n\t\t\tx = (vm.x + vm.base) / 2;\r\n\t\t\ty = vm.y;\r\n\t\t}\r\n\r\n\t\treturn {x: x, y: y};\r\n\t},\r\n\r\n\tgetArea: function() {\r\n\t\tvar vm = this._view;\r\n\r\n\t\treturn isVertical(vm)\r\n\t\t\t? vm.width * Math.abs(vm.y - vm.base)\r\n\t\t\t: vm.height * Math.abs(vm.x - vm.base);\r\n\t},\r\n\r\n\ttooltipPosition: function() {\r\n\t\tvar vm = this._view;\r\n\t\treturn {\r\n\t\t\tx: vm.x,\r\n\t\t\ty: vm.y\r\n\t\t};\r\n\t}\r\n});\n\nvar elements = {};\r\nvar Arc = element_arc;\r\nvar Line = element_line;\r\nvar Point = element_point;\r\nvar Rectangle = element_rectangle;\nelements.Arc = Arc;\nelements.Line = Line;\nelements.Point = Point;\nelements.Rectangle = Rectangle;\n\nvar deprecated = helpers$1._deprecated;\r\nvar valueOrDefault$3 = helpers$1.valueOrDefault;\r\n\r\ncore_defaults._set('bar', {\r\n\thover: {\r\n\t\tmode: 'label'\r\n\t},\r\n\r\n\tscales: {\r\n\t\txAxes: [{\r\n\t\t\ttype: 'category',\r\n\t\t\toffset: true,\r\n\t\t\tgridLines: {\r\n\t\t\t\toffsetGridLines: true\r\n\t\t\t}\r\n\t\t}],\r\n\r\n\t\tyAxes: [{\r\n\t\t\ttype: 'linear'\r\n\t\t}]\r\n\t}\r\n});\r\n\r\ncore_defaults._set('global', {\r\n\tdatasets: {\r\n\t\tbar: {\r\n\t\t\tcategoryPercentage: 0.8,\r\n\t\t\tbarPercentage: 0.9\r\n\t\t}\r\n\t}\r\n});\r\n\r\n/**\r\n * Computes the \"optimal\" sample size to maintain bars equally sized while preventing overlap.\r\n * @private\r\n */\r\nfunction computeMinSampleSize(scale, pixels) {\r\n\tvar min = scale._length;\r\n\tvar prev, curr, i, ilen;\r\n\r\n\tfor (i = 1, ilen = pixels.length; i < ilen; ++i) {\r\n\t\tmin = Math.min(min, Math.abs(pixels[i] - pixels[i - 1]));\r\n\t}\r\n\r\n\tfor (i = 0, ilen = scale.getTicks().length; i < ilen; ++i) {\r\n\t\tcurr = scale.getPixelForTick(i);\r\n\t\tmin = i > 0 ? Math.min(min, Math.abs(curr - prev)) : min;\r\n\t\tprev = curr;\r\n\t}\r\n\r\n\treturn min;\r\n}\r\n\r\n/**\r\n * Computes an \"ideal\" category based on the absolute bar thickness or, if undefined or null,\r\n * uses the smallest interval (see computeMinSampleSize) that prevents bar overlapping. This\r\n * mode currently always generates bars equally sized (until we introduce scriptable options?).\r\n * @private\r\n */\r\nfunction computeFitCategoryTraits(index, ruler, options) {\r\n\tvar thickness = options.barThickness;\r\n\tvar count = ruler.stackCount;\r\n\tvar curr = ruler.pixels[index];\r\n\tvar min = helpers$1.isNullOrUndef(thickness)\r\n\t\t? computeMinSampleSize(ruler.scale, ruler.pixels)\r\n\t\t: -1;\r\n\tvar size, ratio;\r\n\r\n\tif (helpers$1.isNullOrUndef(thickness)) {\r\n\t\tsize = min * options.categoryPercentage;\r\n\t\tratio = options.barPercentage;\r\n\t} else {\r\n\t\t// When bar thickness is enforced, category and bar percentages are ignored.\r\n\t\t// Note(SB): we could add support for relative bar thickness (e.g. barThickness: '50%')\r\n\t\t// and deprecate barPercentage since this value is ignored when thickness is absolute.\r\n\t\tsize = thickness * count;\r\n\t\tratio = 1;\r\n\t}\r\n\r\n\treturn {\r\n\t\tchunk: size / count,\r\n\t\tratio: ratio,\r\n\t\tstart: curr - (size / 2)\r\n\t};\r\n}\r\n\r\n/**\r\n * Computes an \"optimal\" category that globally arranges bars side by side (no gap when\r\n * percentage options are 1), based on the previous and following categories. This mode\r\n * generates bars with different widths when data are not evenly spaced.\r\n * @private\r\n */\r\nfunction computeFlexCategoryTraits(index, ruler, options) {\r\n\tvar pixels = ruler.pixels;\r\n\tvar curr = pixels[index];\r\n\tvar prev = index > 0 ? pixels[index - 1] : null;\r\n\tvar next = index < pixels.length - 1 ? pixels[index + 1] : null;\r\n\tvar percent = options.categoryPercentage;\r\n\tvar start, size;\r\n\r\n\tif (prev === null) {\r\n\t\t// first data: its size is double based on the next point or,\r\n\t\t// if it's also the last data, we use the scale size.\r\n\t\tprev = curr - (next === null ? ruler.end - ruler.start : next - curr);\r\n\t}\r\n\r\n\tif (next === null) {\r\n\t\t// last data: its size is also double based on the previous point.\r\n\t\tnext = curr + curr - prev;\r\n\t}\r\n\r\n\tstart = curr - (curr - Math.min(prev, next)) / 2 * percent;\r\n\tsize = Math.abs(next - prev) / 2 * percent;\r\n\r\n\treturn {\r\n\t\tchunk: size / ruler.stackCount,\r\n\t\tratio: options.barPercentage,\r\n\t\tstart: start\r\n\t};\r\n}\r\n\r\nvar controller_bar = core_datasetController.extend({\r\n\r\n\tdataElementType: elements.Rectangle,\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderColor',\r\n\t\t'borderSkipped',\r\n\t\t'borderWidth',\r\n\t\t'barPercentage',\r\n\t\t'barThickness',\r\n\t\t'categoryPercentage',\r\n\t\t'maxBarThickness',\r\n\t\t'minBarLength'\r\n\t],\r\n\r\n\tinitialize: function() {\r\n\t\tvar me = this;\r\n\t\tvar meta, scaleOpts;\r\n\r\n\t\tcore_datasetController.prototype.initialize.apply(me, arguments);\r\n\r\n\t\tmeta = me.getMeta();\r\n\t\tmeta.stack = me.getDataset().stack;\r\n\t\tmeta.bar = true;\r\n\r\n\t\tscaleOpts = me._getIndexScale().options;\r\n\t\tdeprecated('bar chart', scaleOpts.barPercentage, 'scales.[x/y]Axes.barPercentage', 'dataset.barPercentage');\r\n\t\tdeprecated('bar chart', scaleOpts.barThickness, 'scales.[x/y]Axes.barThickness', 'dataset.barThickness');\r\n\t\tdeprecated('bar chart', scaleOpts.categoryPercentage, 'scales.[x/y]Axes.categoryPercentage', 'dataset.categoryPercentage');\r\n\t\tdeprecated('bar chart', me._getValueScale().options.minBarLength, 'scales.[x/y]Axes.minBarLength', 'dataset.minBarLength');\r\n\t\tdeprecated('bar chart', scaleOpts.maxBarThickness, 'scales.[x/y]Axes.maxBarThickness', 'dataset.maxBarThickness');\r\n\t},\r\n\r\n\tupdate: function(reset) {\r\n\t\tvar me = this;\r\n\t\tvar rects = me.getMeta().data;\r\n\t\tvar i, ilen;\r\n\r\n\t\tme._ruler = me.getRuler();\r\n\r\n\t\tfor (i = 0, ilen = rects.length; i < ilen; ++i) {\r\n\t\t\tme.updateElement(rects[i], i, reset);\r\n\t\t}\r\n\t},\r\n\r\n\tupdateElement: function(rectangle, index, reset) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar options = me._resolveDataElementOptions(rectangle, index);\r\n\r\n\t\trectangle._xScale = me.getScaleForId(meta.xAxisID);\r\n\t\trectangle._yScale = me.getScaleForId(meta.yAxisID);\r\n\t\trectangle._datasetIndex = me.index;\r\n\t\trectangle._index = index;\r\n\t\trectangle._model = {\r\n\t\t\tbackgroundColor: options.backgroundColor,\r\n\t\t\tborderColor: options.borderColor,\r\n\t\t\tborderSkipped: options.borderSkipped,\r\n\t\t\tborderWidth: options.borderWidth,\r\n\t\t\tdatasetLabel: dataset.label,\r\n\t\t\tlabel: me.chart.data.labels[index]\r\n\t\t};\r\n\r\n\t\tif (helpers$1.isArray(dataset.data[index])) {\r\n\t\t\trectangle._model.borderSkipped = null;\r\n\t\t}\r\n\r\n\t\tme._updateElementGeometry(rectangle, index, reset, options);\r\n\r\n\t\trectangle.pivot();\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_updateElementGeometry: function(rectangle, index, reset, options) {\r\n\t\tvar me = this;\r\n\t\tvar model = rectangle._model;\r\n\t\tvar vscale = me._getValueScale();\r\n\t\tvar base = vscale.getBasePixel();\r\n\t\tvar horizontal = vscale.isHorizontal();\r\n\t\tvar ruler = me._ruler || me.getRuler();\r\n\t\tvar vpixels = me.calculateBarValuePixels(me.index, index, options);\r\n\t\tvar ipixels = me.calculateBarIndexPixels(me.index, index, ruler, options);\r\n\r\n\t\tmodel.horizontal = horizontal;\r\n\t\tmodel.base = reset ? base : vpixels.base;\r\n\t\tmodel.x = horizontal ? reset ? base : vpixels.head : ipixels.center;\r\n\t\tmodel.y = horizontal ? ipixels.center : reset ? base : vpixels.head;\r\n\t\tmodel.height = horizontal ? ipixels.size : undefined;\r\n\t\tmodel.width = horizontal ? undefined : ipixels.size;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the stacks based on groups and bar visibility.\r\n\t * @param {number} [last] - The dataset index\r\n\t * @returns {string[]} The list of stack IDs\r\n\t * @private\r\n\t */\r\n\t_getStacks: function(last) {\r\n\t\tvar me = this;\r\n\t\tvar scale = me._getIndexScale();\r\n\t\tvar metasets = scale._getMatchingVisibleMetas(me._type);\r\n\t\tvar stacked = scale.options.stacked;\r\n\t\tvar ilen = metasets.length;\r\n\t\tvar stacks = [];\r\n\t\tvar i, meta;\r\n\r\n\t\tfor (i = 0; i < ilen; ++i) {\r\n\t\t\tmeta = metasets[i];\r\n\t\t\t// stacked   | meta.stack\r\n\t\t\t//           | found | not found | undefined\r\n\t\t\t// false     |   x   |     x     |     x\r\n\t\t\t// true      |       |     x     |\r\n\t\t\t// undefined |       |     x     |     x\r\n\t\t\tif (stacked === false || stacks.indexOf(meta.stack) === -1 ||\r\n\t\t\t\t(stacked === undefined && meta.stack === undefined)) {\r\n\t\t\t\tstacks.push(meta.stack);\r\n\t\t\t}\r\n\t\t\tif (meta.index === last) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn stacks;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the effective number of stacks based on groups and bar visibility.\r\n\t * @private\r\n\t */\r\n\tgetStackCount: function() {\r\n\t\treturn this._getStacks().length;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the stack index for the given dataset based on groups and bar visibility.\r\n\t * @param {number} [datasetIndex] - The dataset index\r\n\t * @param {string} [name] - The stack name to find\r\n\t * @returns {number} The stack index\r\n\t * @private\r\n\t */\r\n\tgetStackIndex: function(datasetIndex, name) {\r\n\t\tvar stacks = this._getStacks(datasetIndex);\r\n\t\tvar index = (name !== undefined)\r\n\t\t\t? stacks.indexOf(name)\r\n\t\t\t: -1; // indexOf returns -1 if element is not present\r\n\r\n\t\treturn (index === -1)\r\n\t\t\t? stacks.length - 1\r\n\t\t\t: index;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tgetRuler: function() {\r\n\t\tvar me = this;\r\n\t\tvar scale = me._getIndexScale();\r\n\t\tvar pixels = [];\r\n\t\tvar i, ilen;\r\n\r\n\t\tfor (i = 0, ilen = me.getMeta().data.length; i < ilen; ++i) {\r\n\t\t\tpixels.push(scale.getPixelForValue(null, i, me.index));\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tpixels: pixels,\r\n\t\t\tstart: scale._startPixel,\r\n\t\t\tend: scale._endPixel,\r\n\t\t\tstackCount: me.getStackCount(),\r\n\t\t\tscale: scale\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * Note: pixel values are not clamped to the scale area.\r\n\t * @private\r\n\t */\r\n\tcalculateBarValuePixels: function(datasetIndex, index, options) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar scale = me._getValueScale();\r\n\t\tvar isHorizontal = scale.isHorizontal();\r\n\t\tvar datasets = chart.data.datasets;\r\n\t\tvar metasets = scale._getMatchingVisibleMetas(me._type);\r\n\t\tvar value = scale._parseValue(datasets[datasetIndex].data[index]);\r\n\t\tvar minBarLength = options.minBarLength;\r\n\t\tvar stacked = scale.options.stacked;\r\n\t\tvar stack = me.getMeta().stack;\r\n\t\tvar start = value.start === undefined ? 0 : value.max >= 0 && value.min >= 0 ? value.min : value.max;\r\n\t\tvar length = value.start === undefined ? value.end : value.max >= 0 && value.min >= 0 ? value.max - value.min : value.min - value.max;\r\n\t\tvar ilen = metasets.length;\r\n\t\tvar i, imeta, ivalue, base, head, size, stackLength;\r\n\r\n\t\tif (stacked || (stacked === undefined && stack !== undefined)) {\r\n\t\t\tfor (i = 0; i < ilen; ++i) {\r\n\t\t\t\timeta = metasets[i];\r\n\r\n\t\t\t\tif (imeta.index === datasetIndex) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (imeta.stack === stack) {\r\n\t\t\t\t\tstackLength = scale._parseValue(datasets[imeta.index].data[index]);\r\n\t\t\t\t\tivalue = stackLength.start === undefined ? stackLength.end : stackLength.min >= 0 && stackLength.max >= 0 ? stackLength.max : stackLength.min;\r\n\r\n\t\t\t\t\tif ((value.min < 0 && ivalue < 0) || (value.max >= 0 && ivalue > 0)) {\r\n\t\t\t\t\t\tstart += ivalue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tbase = scale.getPixelForValue(start);\r\n\t\thead = scale.getPixelForValue(start + length);\r\n\t\tsize = head - base;\r\n\r\n\t\tif (minBarLength !== undefined && Math.abs(size) < minBarLength) {\r\n\t\t\tsize = minBarLength;\r\n\t\t\tif (length >= 0 && !isHorizontal || length < 0 && isHorizontal) {\r\n\t\t\t\thead = base - minBarLength;\r\n\t\t\t} else {\r\n\t\t\t\thead = base + minBarLength;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tsize: size,\r\n\t\t\tbase: base,\r\n\t\t\thead: head,\r\n\t\t\tcenter: head + size / 2\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tcalculateBarIndexPixels: function(datasetIndex, index, ruler, options) {\r\n\t\tvar me = this;\r\n\t\tvar range = options.barThickness === 'flex'\r\n\t\t\t? computeFlexCategoryTraits(index, ruler, options)\r\n\t\t\t: computeFitCategoryTraits(index, ruler, options);\r\n\r\n\t\tvar stackIndex = me.getStackIndex(datasetIndex, me.getMeta().stack);\r\n\t\tvar center = range.start + (range.chunk * stackIndex) + (range.chunk / 2);\r\n\t\tvar size = Math.min(\r\n\t\t\tvalueOrDefault$3(options.maxBarThickness, Infinity),\r\n\t\t\trange.chunk * range.ratio);\r\n\r\n\t\treturn {\r\n\t\t\tbase: center - size / 2,\r\n\t\t\thead: center + size / 2,\r\n\t\t\tcenter: center,\r\n\t\t\tsize: size\r\n\t\t};\r\n\t},\r\n\r\n\tdraw: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar scale = me._getValueScale();\r\n\t\tvar rects = me.getMeta().data;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar ilen = rects.length;\r\n\t\tvar i = 0;\r\n\r\n\t\thelpers$1.canvas.clipArea(chart.ctx, chart.chartArea);\r\n\r\n\t\tfor (; i < ilen; ++i) {\r\n\t\t\tvar val = scale._parseValue(dataset.data[i]);\r\n\t\t\tif (!isNaN(val.min) && !isNaN(val.max)) {\r\n\t\t\t\trects[i].draw();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\thelpers$1.canvas.unclipArea(chart.ctx);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_resolveDataElementOptions: function() {\r\n\t\tvar me = this;\r\n\t\tvar values = helpers$1.extend({}, core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments));\r\n\t\tvar indexOpts = me._getIndexScale().options;\r\n\t\tvar valueOpts = me._getValueScale().options;\r\n\r\n\t\tvalues.barPercentage = valueOrDefault$3(indexOpts.barPercentage, values.barPercentage);\r\n\t\tvalues.barThickness = valueOrDefault$3(indexOpts.barThickness, values.barThickness);\r\n\t\tvalues.categoryPercentage = valueOrDefault$3(indexOpts.categoryPercentage, values.categoryPercentage);\r\n\t\tvalues.maxBarThickness = valueOrDefault$3(indexOpts.maxBarThickness, values.maxBarThickness);\r\n\t\tvalues.minBarLength = valueOrDefault$3(valueOpts.minBarLength, values.minBarLength);\r\n\r\n\t\treturn values;\r\n\t}\r\n\r\n});\n\nvar valueOrDefault$4 = helpers$1.valueOrDefault;\r\nvar resolve$1 = helpers$1.options.resolve;\r\n\r\ncore_defaults._set('bubble', {\r\n\thover: {\r\n\t\tmode: 'single'\r\n\t},\r\n\r\n\tscales: {\r\n\t\txAxes: [{\r\n\t\t\ttype: 'linear', // bubble should probably use a linear scale by default\r\n\t\t\tposition: 'bottom',\r\n\t\t\tid: 'x-axis-0' // need an ID so datasets can reference the scale\r\n\t\t}],\r\n\t\tyAxes: [{\r\n\t\t\ttype: 'linear',\r\n\t\t\tposition: 'left',\r\n\t\t\tid: 'y-axis-0'\r\n\t\t}]\r\n\t},\r\n\r\n\ttooltips: {\r\n\t\tcallbacks: {\r\n\t\t\ttitle: function() {\r\n\t\t\t\t// Title doesn't make sense for scatter since we format the data as a point\r\n\t\t\t\treturn '';\r\n\t\t\t},\r\n\t\t\tlabel: function(item, data) {\r\n\t\t\t\tvar datasetLabel = data.datasets[item.datasetIndex].label || '';\r\n\t\t\t\tvar dataPoint = data.datasets[item.datasetIndex].data[item.index];\r\n\t\t\t\treturn datasetLabel + ': (' + item.xLabel + ', ' + item.yLabel + ', ' + dataPoint.r + ')';\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar controller_bubble = core_datasetController.extend({\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tdataElementType: elements.Point,\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderColor',\r\n\t\t'borderWidth',\r\n\t\t'hoverBackgroundColor',\r\n\t\t'hoverBorderColor',\r\n\t\t'hoverBorderWidth',\r\n\t\t'hoverRadius',\r\n\t\t'hitRadius',\r\n\t\t'pointStyle',\r\n\t\t'rotation'\r\n\t],\r\n\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tupdate: function(reset) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar points = meta.data;\r\n\r\n\t\t// Update Points\r\n\t\thelpers$1.each(points, function(point, index) {\r\n\t\t\tme.updateElement(point, index, reset);\r\n\t\t});\r\n\t},\r\n\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tupdateElement: function(point, index, reset) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar custom = point.custom || {};\r\n\t\tvar xScale = me.getScaleForId(meta.xAxisID);\r\n\t\tvar yScale = me.getScaleForId(meta.yAxisID);\r\n\t\tvar options = me._resolveDataElementOptions(point, index);\r\n\t\tvar data = me.getDataset().data[index];\r\n\t\tvar dsIndex = me.index;\r\n\r\n\t\tvar x = reset ? xScale.getPixelForDecimal(0.5) : xScale.getPixelForValue(typeof data === 'object' ? data : NaN, index, dsIndex);\r\n\t\tvar y = reset ? yScale.getBasePixel() : yScale.getPixelForValue(data, index, dsIndex);\r\n\r\n\t\tpoint._xScale = xScale;\r\n\t\tpoint._yScale = yScale;\r\n\t\tpoint._options = options;\r\n\t\tpoint._datasetIndex = dsIndex;\r\n\t\tpoint._index = index;\r\n\t\tpoint._model = {\r\n\t\t\tbackgroundColor: options.backgroundColor,\r\n\t\t\tborderColor: options.borderColor,\r\n\t\t\tborderWidth: options.borderWidth,\r\n\t\t\thitRadius: options.hitRadius,\r\n\t\t\tpointStyle: options.pointStyle,\r\n\t\t\trotation: options.rotation,\r\n\t\t\tradius: reset ? 0 : options.radius,\r\n\t\t\tskip: custom.skip || isNaN(x) || isNaN(y),\r\n\t\t\tx: x,\r\n\t\t\ty: y,\r\n\t\t};\r\n\r\n\t\tpoint.pivot();\r\n\t},\r\n\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tsetHoverStyle: function(point) {\r\n\t\tvar model = point._model;\r\n\t\tvar options = point._options;\r\n\t\tvar getHoverColor = helpers$1.getHoverColor;\r\n\r\n\t\tpoint.$previousStyle = {\r\n\t\t\tbackgroundColor: model.backgroundColor,\r\n\t\t\tborderColor: model.borderColor,\r\n\t\t\tborderWidth: model.borderWidth,\r\n\t\t\tradius: model.radius\r\n\t\t};\r\n\r\n\t\tmodel.backgroundColor = valueOrDefault$4(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\r\n\t\tmodel.borderColor = valueOrDefault$4(options.hoverBorderColor, getHoverColor(options.borderColor));\r\n\t\tmodel.borderWidth = valueOrDefault$4(options.hoverBorderWidth, options.borderWidth);\r\n\t\tmodel.radius = options.radius + options.hoverRadius;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_resolveDataElementOptions: function(point, index) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar custom = point.custom || {};\r\n\t\tvar data = dataset.data[index] || {};\r\n\t\tvar values = core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments);\r\n\r\n\t\t// Scriptable options\r\n\t\tvar context = {\r\n\t\t\tchart: chart,\r\n\t\t\tdataIndex: index,\r\n\t\t\tdataset: dataset,\r\n\t\t\tdatasetIndex: me.index\r\n\t\t};\r\n\r\n\t\t// In case values were cached (and thus frozen), we need to clone the values\r\n\t\tif (me._cachedDataOpts === values) {\r\n\t\t\tvalues = helpers$1.extend({}, values);\r\n\t\t}\r\n\r\n\t\t// Custom radius resolution\r\n\t\tvalues.radius = resolve$1([\r\n\t\t\tcustom.radius,\r\n\t\t\tdata.r,\r\n\t\t\tme._config.radius,\r\n\t\t\tchart.options.elements.point.radius\r\n\t\t], context, index);\r\n\r\n\t\treturn values;\r\n\t}\r\n});\n\nvar valueOrDefault$5 = helpers$1.valueOrDefault;\r\n\r\nvar PI$1 = Math.PI;\r\nvar DOUBLE_PI$1 = PI$1 * 2;\r\nvar HALF_PI$1 = PI$1 / 2;\r\n\r\ncore_defaults._set('doughnut', {\r\n\tanimation: {\r\n\t\t// Boolean - Whether we animate the rotation of the Doughnut\r\n\t\tanimateRotate: true,\r\n\t\t// Boolean - Whether we animate scaling the Doughnut from the centre\r\n\t\tanimateScale: false\r\n\t},\r\n\thover: {\r\n\t\tmode: 'single'\r\n\t},\r\n\tlegendCallback: function(chart) {\r\n\t\tvar list = document.createElement('ul');\r\n\t\tvar data = chart.data;\r\n\t\tvar datasets = data.datasets;\r\n\t\tvar labels = data.labels;\r\n\t\tvar i, ilen, listItem, listItemSpan;\r\n\r\n\t\tlist.setAttribute('class', chart.id + '-legend');\r\n\t\tif (datasets.length) {\r\n\t\t\tfor (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) {\r\n\t\t\t\tlistItem = list.appendChild(document.createElement('li'));\r\n\t\t\t\tlistItemSpan = listItem.appendChild(document.createElement('span'));\r\n\t\t\t\tlistItemSpan.style.backgroundColor = datasets[0].backgroundColor[i];\r\n\t\t\t\tif (labels[i]) {\r\n\t\t\t\t\tlistItem.appendChild(document.createTextNode(labels[i]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn list.outerHTML;\r\n\t},\r\n\tlegend: {\r\n\t\tlabels: {\r\n\t\t\tgenerateLabels: function(chart) {\r\n\t\t\t\tvar data = chart.data;\r\n\t\t\t\tif (data.labels.length && data.datasets.length) {\r\n\t\t\t\t\treturn data.labels.map(function(label, i) {\r\n\t\t\t\t\t\tvar meta = chart.getDatasetMeta(0);\r\n\t\t\t\t\t\tvar style = meta.controller.getStyle(i);\r\n\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\ttext: label,\r\n\t\t\t\t\t\t\tfillStyle: style.backgroundColor,\r\n\t\t\t\t\t\t\tstrokeStyle: style.borderColor,\r\n\t\t\t\t\t\t\tlineWidth: style.borderWidth,\r\n\t\t\t\t\t\t\thidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden,\r\n\r\n\t\t\t\t\t\t\t// Extra data used for toggling the correct item\r\n\t\t\t\t\t\t\tindex: i\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\treturn [];\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tonClick: function(e, legendItem) {\r\n\t\t\tvar index = legendItem.index;\r\n\t\t\tvar chart = this.chart;\r\n\t\t\tvar i, ilen, meta;\r\n\r\n\t\t\tfor (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\r\n\t\t\t\tmeta = chart.getDatasetMeta(i);\r\n\t\t\t\t// toggle visibility of index if exists\r\n\t\t\t\tif (meta.data[index]) {\r\n\t\t\t\t\tmeta.data[index].hidden = !meta.data[index].hidden;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tchart.update();\r\n\t\t}\r\n\t},\r\n\r\n\t// The percentage of the chart that we cut out of the middle.\r\n\tcutoutPercentage: 50,\r\n\r\n\t// The rotation of the chart, where the first data arc begins.\r\n\trotation: -HALF_PI$1,\r\n\r\n\t// The total circumference of the chart.\r\n\tcircumference: DOUBLE_PI$1,\r\n\r\n\t// Need to override these to give a nice default\r\n\ttooltips: {\r\n\t\tcallbacks: {\r\n\t\t\ttitle: function() {\r\n\t\t\t\treturn '';\r\n\t\t\t},\r\n\t\t\tlabel: function(tooltipItem, data) {\r\n\t\t\t\tvar dataLabel = data.labels[tooltipItem.index];\r\n\t\t\t\tvar value = ': ' + data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];\r\n\r\n\t\t\t\tif (helpers$1.isArray(dataLabel)) {\r\n\t\t\t\t\t// show value on first line of multiline label\r\n\t\t\t\t\t// need to clone because we are changing the value\r\n\t\t\t\t\tdataLabel = dataLabel.slice();\r\n\t\t\t\t\tdataLabel[0] += value;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdataLabel += value;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn dataLabel;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar controller_doughnut = core_datasetController.extend({\r\n\r\n\tdataElementType: elements.Arc,\r\n\r\n\tlinkScales: helpers$1.noop,\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderColor',\r\n\t\t'borderWidth',\r\n\t\t'borderAlign',\r\n\t\t'hoverBackgroundColor',\r\n\t\t'hoverBorderColor',\r\n\t\t'hoverBorderWidth',\r\n\t],\r\n\r\n\t// Get index of the dataset in relation to the visible datasets. This allows determining the inner and outer radius correctly\r\n\tgetRingIndex: function(datasetIndex) {\r\n\t\tvar ringIndex = 0;\r\n\r\n\t\tfor (var j = 0; j < datasetIndex; ++j) {\r\n\t\t\tif (this.chart.isDatasetVisible(j)) {\r\n\t\t\t\t++ringIndex;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ringIndex;\r\n\t},\r\n\r\n\tupdate: function(reset) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar chartArea = chart.chartArea;\r\n\t\tvar opts = chart.options;\r\n\t\tvar ratioX = 1;\r\n\t\tvar ratioY = 1;\r\n\t\tvar offsetX = 0;\r\n\t\tvar offsetY = 0;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar arcs = meta.data;\r\n\t\tvar cutout = opts.cutoutPercentage / 100 || 0;\r\n\t\tvar circumference = opts.circumference;\r\n\t\tvar chartWeight = me._getRingWeight(me.index);\r\n\t\tvar maxWidth, maxHeight, i, ilen;\r\n\r\n\t\t// If the chart's circumference isn't a full circle, calculate size as a ratio of the width/height of the arc\r\n\t\tif (circumference < DOUBLE_PI$1) {\r\n\t\t\tvar startAngle = opts.rotation % DOUBLE_PI$1;\r\n\t\t\tstartAngle += startAngle >= PI$1 ? -DOUBLE_PI$1 : startAngle < -PI$1 ? DOUBLE_PI$1 : 0;\r\n\t\t\tvar endAngle = startAngle + circumference;\r\n\t\t\tvar startX = Math.cos(startAngle);\r\n\t\t\tvar startY = Math.sin(startAngle);\r\n\t\t\tvar endX = Math.cos(endAngle);\r\n\t\t\tvar endY = Math.sin(endAngle);\r\n\t\t\tvar contains0 = (startAngle <= 0 && endAngle >= 0) || endAngle >= DOUBLE_PI$1;\r\n\t\t\tvar contains90 = (startAngle <= HALF_PI$1 && endAngle >= HALF_PI$1) || endAngle >= DOUBLE_PI$1 + HALF_PI$1;\r\n\t\t\tvar contains180 = startAngle === -PI$1 || endAngle >= PI$1;\r\n\t\t\tvar contains270 = (startAngle <= -HALF_PI$1 && endAngle >= -HALF_PI$1) || endAngle >= PI$1 + HALF_PI$1;\r\n\t\t\tvar minX = contains180 ? -1 : Math.min(startX, startX * cutout, endX, endX * cutout);\r\n\t\t\tvar minY = contains270 ? -1 : Math.min(startY, startY * cutout, endY, endY * cutout);\r\n\t\t\tvar maxX = contains0 ? 1 : Math.max(startX, startX * cutout, endX, endX * cutout);\r\n\t\t\tvar maxY = contains90 ? 1 : Math.max(startY, startY * cutout, endY, endY * cutout);\r\n\t\t\tratioX = (maxX - minX) / 2;\r\n\t\t\tratioY = (maxY - minY) / 2;\r\n\t\t\toffsetX = -(maxX + minX) / 2;\r\n\t\t\toffsetY = -(maxY + minY) / 2;\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = arcs.length; i < ilen; ++i) {\r\n\t\t\tarcs[i]._options = me._resolveDataElementOptions(arcs[i], i);\r\n\t\t}\r\n\r\n\t\tchart.borderWidth = me.getMaxBorderWidth();\r\n\t\tmaxWidth = (chartArea.right - chartArea.left - chart.borderWidth) / ratioX;\r\n\t\tmaxHeight = (chartArea.bottom - chartArea.top - chart.borderWidth) / ratioY;\r\n\t\tchart.outerRadius = Math.max(Math.min(maxWidth, maxHeight) / 2, 0);\r\n\t\tchart.innerRadius = Math.max(chart.outerRadius * cutout, 0);\r\n\t\tchart.radiusLength = (chart.outerRadius - chart.innerRadius) / (me._getVisibleDatasetWeightTotal() || 1);\r\n\t\tchart.offsetX = offsetX * chart.outerRadius;\r\n\t\tchart.offsetY = offsetY * chart.outerRadius;\r\n\r\n\t\tmeta.total = me.calculateTotal();\r\n\r\n\t\tme.outerRadius = chart.outerRadius - chart.radiusLength * me._getRingWeightOffset(me.index);\r\n\t\tme.innerRadius = Math.max(me.outerRadius - chart.radiusLength * chartWeight, 0);\r\n\r\n\t\tfor (i = 0, ilen = arcs.length; i < ilen; ++i) {\r\n\t\t\tme.updateElement(arcs[i], i, reset);\r\n\t\t}\r\n\t},\r\n\r\n\tupdateElement: function(arc, index, reset) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar chartArea = chart.chartArea;\r\n\t\tvar opts = chart.options;\r\n\t\tvar animationOpts = opts.animation;\r\n\t\tvar centerX = (chartArea.left + chartArea.right) / 2;\r\n\t\tvar centerY = (chartArea.top + chartArea.bottom) / 2;\r\n\t\tvar startAngle = opts.rotation; // non reset case handled later\r\n\t\tvar endAngle = opts.rotation; // non reset case handled later\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar circumference = reset && animationOpts.animateRotate ? 0 : arc.hidden ? 0 : me.calculateCircumference(dataset.data[index]) * (opts.circumference / DOUBLE_PI$1);\r\n\t\tvar innerRadius = reset && animationOpts.animateScale ? 0 : me.innerRadius;\r\n\t\tvar outerRadius = reset && animationOpts.animateScale ? 0 : me.outerRadius;\r\n\t\tvar options = arc._options || {};\r\n\r\n\t\thelpers$1.extend(arc, {\r\n\t\t\t// Utility\r\n\t\t\t_datasetIndex: me.index,\r\n\t\t\t_index: index,\r\n\r\n\t\t\t// Desired view properties\r\n\t\t\t_model: {\r\n\t\t\t\tbackgroundColor: options.backgroundColor,\r\n\t\t\t\tborderColor: options.borderColor,\r\n\t\t\t\tborderWidth: options.borderWidth,\r\n\t\t\t\tborderAlign: options.borderAlign,\r\n\t\t\t\tx: centerX + chart.offsetX,\r\n\t\t\t\ty: centerY + chart.offsetY,\r\n\t\t\t\tstartAngle: startAngle,\r\n\t\t\t\tendAngle: endAngle,\r\n\t\t\t\tcircumference: circumference,\r\n\t\t\t\touterRadius: outerRadius,\r\n\t\t\t\tinnerRadius: innerRadius,\r\n\t\t\t\tlabel: helpers$1.valueAtIndexOrDefault(dataset.label, index, chart.data.labels[index])\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tvar model = arc._model;\r\n\r\n\t\t// Set correct angles if not resetting\r\n\t\tif (!reset || !animationOpts.animateRotate) {\r\n\t\t\tif (index === 0) {\r\n\t\t\t\tmodel.startAngle = opts.rotation;\r\n\t\t\t} else {\r\n\t\t\t\tmodel.startAngle = me.getMeta().data[index - 1]._model.endAngle;\r\n\t\t\t}\r\n\r\n\t\t\tmodel.endAngle = model.startAngle + model.circumference;\r\n\t\t}\r\n\r\n\t\tarc.pivot();\r\n\t},\r\n\r\n\tcalculateTotal: function() {\r\n\t\tvar dataset = this.getDataset();\r\n\t\tvar meta = this.getMeta();\r\n\t\tvar total = 0;\r\n\t\tvar value;\r\n\r\n\t\thelpers$1.each(meta.data, function(element, index) {\r\n\t\t\tvalue = dataset.data[index];\r\n\t\t\tif (!isNaN(value) && !element.hidden) {\r\n\t\t\t\ttotal += Math.abs(value);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t/* if (total === 0) {\r\n\t\t\ttotal = NaN;\r\n\t\t}*/\r\n\r\n\t\treturn total;\r\n\t},\r\n\r\n\tcalculateCircumference: function(value) {\r\n\t\tvar total = this.getMeta().total;\r\n\t\tif (total > 0 && !isNaN(value)) {\r\n\t\t\treturn DOUBLE_PI$1 * (Math.abs(value) / total);\r\n\t\t}\r\n\t\treturn 0;\r\n\t},\r\n\r\n\t// gets the max border or hover width to properly scale pie charts\r\n\tgetMaxBorderWidth: function(arcs) {\r\n\t\tvar me = this;\r\n\t\tvar max = 0;\r\n\t\tvar chart = me.chart;\r\n\t\tvar i, ilen, meta, arc, controller, options, borderWidth, hoverWidth;\r\n\r\n\t\tif (!arcs) {\r\n\t\t\t// Find the outmost visible dataset\r\n\t\t\tfor (i = 0, ilen = chart.data.datasets.length; i < ilen; ++i) {\r\n\t\t\t\tif (chart.isDatasetVisible(i)) {\r\n\t\t\t\t\tmeta = chart.getDatasetMeta(i);\r\n\t\t\t\t\tarcs = meta.data;\r\n\t\t\t\t\tif (i !== me.index) {\r\n\t\t\t\t\t\tcontroller = meta.controller;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!arcs) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = arcs.length; i < ilen; ++i) {\r\n\t\t\tarc = arcs[i];\r\n\t\t\tif (controller) {\r\n\t\t\t\tcontroller._configure();\r\n\t\t\t\toptions = controller._resolveDataElementOptions(arc, i);\r\n\t\t\t} else {\r\n\t\t\t\toptions = arc._options;\r\n\t\t\t}\r\n\t\t\tif (options.borderAlign !== 'inner') {\r\n\t\t\t\tborderWidth = options.borderWidth;\r\n\t\t\t\thoverWidth = options.hoverBorderWidth;\r\n\r\n\t\t\t\tmax = borderWidth > max ? borderWidth : max;\r\n\t\t\t\tmax = hoverWidth > max ? hoverWidth : max;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max;\r\n\t},\r\n\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tsetHoverStyle: function(arc) {\r\n\t\tvar model = arc._model;\r\n\t\tvar options = arc._options;\r\n\t\tvar getHoverColor = helpers$1.getHoverColor;\r\n\r\n\t\tarc.$previousStyle = {\r\n\t\t\tbackgroundColor: model.backgroundColor,\r\n\t\t\tborderColor: model.borderColor,\r\n\t\t\tborderWidth: model.borderWidth,\r\n\t\t};\r\n\r\n\t\tmodel.backgroundColor = valueOrDefault$5(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\r\n\t\tmodel.borderColor = valueOrDefault$5(options.hoverBorderColor, getHoverColor(options.borderColor));\r\n\t\tmodel.borderWidth = valueOrDefault$5(options.hoverBorderWidth, options.borderWidth);\r\n\t},\r\n\r\n\t/**\r\n\t * Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly\r\n\t * @private\r\n\t */\r\n\t_getRingWeightOffset: function(datasetIndex) {\r\n\t\tvar ringWeightOffset = 0;\r\n\r\n\t\tfor (var i = 0; i < datasetIndex; ++i) {\r\n\t\t\tif (this.chart.isDatasetVisible(i)) {\r\n\t\t\t\tringWeightOffset += this._getRingWeight(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ringWeightOffset;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getRingWeight: function(dataSetIndex) {\r\n\t\treturn Math.max(valueOrDefault$5(this.chart.data.datasets[dataSetIndex].weight, 1), 0);\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the sum of all visibile data set weights.  This value can be 0.\r\n\t * @private\r\n\t */\r\n\t_getVisibleDatasetWeightTotal: function() {\r\n\t\treturn this._getRingWeightOffset(this.chart.data.datasets.length);\r\n\t}\r\n});\n\ncore_defaults._set('horizontalBar', {\r\n\thover: {\r\n\t\tmode: 'index',\r\n\t\taxis: 'y'\r\n\t},\r\n\r\n\tscales: {\r\n\t\txAxes: [{\r\n\t\t\ttype: 'linear',\r\n\t\t\tposition: 'bottom'\r\n\t\t}],\r\n\r\n\t\tyAxes: [{\r\n\t\t\ttype: 'category',\r\n\t\t\tposition: 'left',\r\n\t\t\toffset: true,\r\n\t\t\tgridLines: {\r\n\t\t\t\toffsetGridLines: true\r\n\t\t\t}\r\n\t\t}]\r\n\t},\r\n\r\n\telements: {\r\n\t\trectangle: {\r\n\t\t\tborderSkipped: 'left'\r\n\t\t}\r\n\t},\r\n\r\n\ttooltips: {\r\n\t\tmode: 'index',\r\n\t\taxis: 'y'\r\n\t}\r\n});\r\n\r\ncore_defaults._set('global', {\r\n\tdatasets: {\r\n\t\thorizontalBar: {\r\n\t\t\tcategoryPercentage: 0.8,\r\n\t\t\tbarPercentage: 0.9\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar controller_horizontalBar = controller_bar.extend({\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getValueScaleId: function() {\r\n\t\treturn this.getMeta().xAxisID;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getIndexScaleId: function() {\r\n\t\treturn this.getMeta().yAxisID;\r\n\t}\r\n});\n\nvar valueOrDefault$6 = helpers$1.valueOrDefault;\r\nvar resolve$2 = helpers$1.options.resolve;\r\nvar isPointInArea = helpers$1.canvas._isPointInArea;\r\n\r\ncore_defaults._set('line', {\r\n\tshowLines: true,\r\n\tspanGaps: false,\r\n\r\n\thover: {\r\n\t\tmode: 'label'\r\n\t},\r\n\r\n\tscales: {\r\n\t\txAxes: [{\r\n\t\t\ttype: 'category',\r\n\t\t\tid: 'x-axis-0'\r\n\t\t}],\r\n\t\tyAxes: [{\r\n\t\t\ttype: 'linear',\r\n\t\t\tid: 'y-axis-0'\r\n\t\t}]\r\n\t}\r\n});\r\n\r\nfunction scaleClip(scale, halfBorderWidth) {\r\n\tvar tickOpts = scale && scale.options.ticks || {};\r\n\tvar reverse = tickOpts.reverse;\r\n\tvar min = tickOpts.min === undefined ? halfBorderWidth : 0;\r\n\tvar max = tickOpts.max === undefined ? halfBorderWidth : 0;\r\n\treturn {\r\n\t\tstart: reverse ? max : min,\r\n\t\tend: reverse ? min : max\r\n\t};\r\n}\r\n\r\nfunction defaultClip(xScale, yScale, borderWidth) {\r\n\tvar halfBorderWidth = borderWidth / 2;\r\n\tvar x = scaleClip(xScale, halfBorderWidth);\r\n\tvar y = scaleClip(yScale, halfBorderWidth);\r\n\r\n\treturn {\r\n\t\ttop: y.end,\r\n\t\tright: x.end,\r\n\t\tbottom: y.start,\r\n\t\tleft: x.start\r\n\t};\r\n}\r\n\r\nfunction toClip(value) {\r\n\tvar t, r, b, l;\r\n\r\n\tif (helpers$1.isObject(value)) {\r\n\t\tt = value.top;\r\n\t\tr = value.right;\r\n\t\tb = value.bottom;\r\n\t\tl = value.left;\r\n\t} else {\r\n\t\tt = r = b = l = value;\r\n\t}\r\n\r\n\treturn {\r\n\t\ttop: t,\r\n\t\tright: r,\r\n\t\tbottom: b,\r\n\t\tleft: l\r\n\t};\r\n}\r\n\r\n\r\nvar controller_line = core_datasetController.extend({\r\n\r\n\tdatasetElementType: elements.Line,\r\n\r\n\tdataElementType: elements.Point,\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_datasetElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderCapStyle',\r\n\t\t'borderColor',\r\n\t\t'borderDash',\r\n\t\t'borderDashOffset',\r\n\t\t'borderJoinStyle',\r\n\t\t'borderWidth',\r\n\t\t'cubicInterpolationMode',\r\n\t\t'fill'\r\n\t],\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: {\r\n\t\tbackgroundColor: 'pointBackgroundColor',\r\n\t\tborderColor: 'pointBorderColor',\r\n\t\tborderWidth: 'pointBorderWidth',\r\n\t\thitRadius: 'pointHitRadius',\r\n\t\thoverBackgroundColor: 'pointHoverBackgroundColor',\r\n\t\thoverBorderColor: 'pointHoverBorderColor',\r\n\t\thoverBorderWidth: 'pointHoverBorderWidth',\r\n\t\thoverRadius: 'pointHoverRadius',\r\n\t\tpointStyle: 'pointStyle',\r\n\t\tradius: 'pointRadius',\r\n\t\trotation: 'pointRotation'\r\n\t},\r\n\r\n\tupdate: function(reset) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar line = meta.dataset;\r\n\t\tvar points = meta.data || [];\r\n\t\tvar options = me.chart.options;\r\n\t\tvar config = me._config;\r\n\t\tvar showLine = me._showLine = valueOrDefault$6(config.showLine, options.showLines);\r\n\t\tvar i, ilen;\r\n\r\n\t\tme._xScale = me.getScaleForId(meta.xAxisID);\r\n\t\tme._yScale = me.getScaleForId(meta.yAxisID);\r\n\r\n\t\t// Update Line\r\n\t\tif (showLine) {\r\n\t\t\t// Compatibility: If the properties are defined with only the old name, use those values\r\n\t\t\tif (config.tension !== undefined && config.lineTension === undefined) {\r\n\t\t\t\tconfig.lineTension = config.tension;\r\n\t\t\t}\r\n\r\n\t\t\t// Utility\r\n\t\t\tline._scale = me._yScale;\r\n\t\t\tline._datasetIndex = me.index;\r\n\t\t\t// Data\r\n\t\t\tline._children = points;\r\n\t\t\t// Model\r\n\t\t\tline._model = me._resolveDatasetElementOptions(line);\r\n\r\n\t\t\tline.pivot();\r\n\t\t}\r\n\r\n\t\t// Update Points\r\n\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\tme.updateElement(points[i], i, reset);\r\n\t\t}\r\n\r\n\t\tif (showLine && line._model.tension !== 0) {\r\n\t\t\tme.updateBezierControlPoints();\r\n\t\t}\r\n\r\n\t\t// Now pivot the point for animation\r\n\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\tpoints[i].pivot();\r\n\t\t}\r\n\t},\r\n\r\n\tupdateElement: function(point, index, reset) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar custom = point.custom || {};\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar datasetIndex = me.index;\r\n\t\tvar value = dataset.data[index];\r\n\t\tvar xScale = me._xScale;\r\n\t\tvar yScale = me._yScale;\r\n\t\tvar lineModel = meta.dataset._model;\r\n\t\tvar x, y;\r\n\r\n\t\tvar options = me._resolveDataElementOptions(point, index);\r\n\r\n\t\tx = xScale.getPixelForValue(typeof value === 'object' ? value : NaN, index, datasetIndex);\r\n\t\ty = reset ? yScale.getBasePixel() : me.calculatePointY(value, index, datasetIndex);\r\n\r\n\t\t// Utility\r\n\t\tpoint._xScale = xScale;\r\n\t\tpoint._yScale = yScale;\r\n\t\tpoint._options = options;\r\n\t\tpoint._datasetIndex = datasetIndex;\r\n\t\tpoint._index = index;\r\n\r\n\t\t// Desired view properties\r\n\t\tpoint._model = {\r\n\t\t\tx: x,\r\n\t\t\ty: y,\r\n\t\t\tskip: custom.skip || isNaN(x) || isNaN(y),\r\n\t\t\t// Appearance\r\n\t\t\tradius: options.radius,\r\n\t\t\tpointStyle: options.pointStyle,\r\n\t\t\trotation: options.rotation,\r\n\t\t\tbackgroundColor: options.backgroundColor,\r\n\t\t\tborderColor: options.borderColor,\r\n\t\t\tborderWidth: options.borderWidth,\r\n\t\t\ttension: valueOrDefault$6(custom.tension, lineModel ? lineModel.tension : 0),\r\n\t\t\tsteppedLine: lineModel ? lineModel.steppedLine : false,\r\n\t\t\t// Tooltip\r\n\t\t\thitRadius: options.hitRadius\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_resolveDatasetElementOptions: function(element) {\r\n\t\tvar me = this;\r\n\t\tvar config = me._config;\r\n\t\tvar custom = element.custom || {};\r\n\t\tvar options = me.chart.options;\r\n\t\tvar lineOptions = options.elements.line;\r\n\t\tvar values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments);\r\n\r\n\t\t// The default behavior of lines is to break at null values, according\r\n\t\t// to https://github.com/chartjs/Chart.js/issues/2435#issuecomment-216718158\r\n\t\t// This option gives lines the ability to span gaps\r\n\t\tvalues.spanGaps = valueOrDefault$6(config.spanGaps, options.spanGaps);\r\n\t\tvalues.tension = valueOrDefault$6(config.lineTension, lineOptions.tension);\r\n\t\tvalues.steppedLine = resolve$2([custom.steppedLine, config.steppedLine, lineOptions.stepped]);\r\n\t\tvalues.clip = toClip(valueOrDefault$6(config.clip, defaultClip(me._xScale, me._yScale, values.borderWidth)));\r\n\r\n\t\treturn values;\r\n\t},\r\n\r\n\tcalculatePointY: function(value, index, datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar yScale = me._yScale;\r\n\t\tvar sumPos = 0;\r\n\t\tvar sumNeg = 0;\r\n\t\tvar i, ds, dsMeta, stackedRightValue, rightValue, metasets, ilen;\r\n\r\n\t\tif (yScale.options.stacked) {\r\n\t\t\trightValue = +yScale.getRightValue(value);\r\n\t\t\tmetasets = chart._getSortedVisibleDatasetMetas();\r\n\t\t\tilen = metasets.length;\r\n\r\n\t\t\tfor (i = 0; i < ilen; ++i) {\r\n\t\t\t\tdsMeta = metasets[i];\r\n\t\t\t\tif (dsMeta.index === datasetIndex) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tds = chart.data.datasets[dsMeta.index];\r\n\t\t\t\tif (dsMeta.type === 'line' && dsMeta.yAxisID === yScale.id) {\r\n\t\t\t\t\tstackedRightValue = +yScale.getRightValue(ds.data[index]);\r\n\t\t\t\t\tif (stackedRightValue < 0) {\r\n\t\t\t\t\t\tsumNeg += stackedRightValue || 0;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsumPos += stackedRightValue || 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (rightValue < 0) {\r\n\t\t\t\treturn yScale.getPixelForValue(sumNeg + rightValue);\r\n\t\t\t}\r\n\t\t\treturn yScale.getPixelForValue(sumPos + rightValue);\r\n\t\t}\r\n\t\treturn yScale.getPixelForValue(value);\r\n\t},\r\n\r\n\tupdateBezierControlPoints: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar lineModel = meta.dataset._model;\r\n\t\tvar area = chart.chartArea;\r\n\t\tvar points = meta.data || [];\r\n\t\tvar i, ilen, model, controlPoints;\r\n\r\n\t\t// Only consider points that are drawn in case the spanGaps option is used\r\n\t\tif (lineModel.spanGaps) {\r\n\t\t\tpoints = points.filter(function(pt) {\r\n\t\t\t\treturn !pt._model.skip;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tfunction capControlPoint(pt, min, max) {\r\n\t\t\treturn Math.max(Math.min(pt, max), min);\r\n\t\t}\r\n\r\n\t\tif (lineModel.cubicInterpolationMode === 'monotone') {\r\n\t\t\thelpers$1.splineCurveMonotone(points);\r\n\t\t} else {\r\n\t\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\t\tmodel = points[i]._model;\r\n\t\t\t\tcontrolPoints = helpers$1.splineCurve(\r\n\t\t\t\t\thelpers$1.previousItem(points, i)._model,\r\n\t\t\t\t\tmodel,\r\n\t\t\t\t\thelpers$1.nextItem(points, i)._model,\r\n\t\t\t\t\tlineModel.tension\r\n\t\t\t\t);\r\n\t\t\t\tmodel.controlPointPreviousX = controlPoints.previous.x;\r\n\t\t\t\tmodel.controlPointPreviousY = controlPoints.previous.y;\r\n\t\t\t\tmodel.controlPointNextX = controlPoints.next.x;\r\n\t\t\t\tmodel.controlPointNextY = controlPoints.next.y;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (chart.options.elements.line.capBezierPoints) {\r\n\t\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\t\tmodel = points[i]._model;\r\n\t\t\t\tif (isPointInArea(model, area)) {\r\n\t\t\t\t\tif (i > 0 && isPointInArea(points[i - 1]._model, area)) {\r\n\t\t\t\t\t\tmodel.controlPointPreviousX = capControlPoint(model.controlPointPreviousX, area.left, area.right);\r\n\t\t\t\t\t\tmodel.controlPointPreviousY = capControlPoint(model.controlPointPreviousY, area.top, area.bottom);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (i < points.length - 1 && isPointInArea(points[i + 1]._model, area)) {\r\n\t\t\t\t\t\tmodel.controlPointNextX = capControlPoint(model.controlPointNextX, area.left, area.right);\r\n\t\t\t\t\t\tmodel.controlPointNextY = capControlPoint(model.controlPointNextY, area.top, area.bottom);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tdraw: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar points = meta.data || [];\r\n\t\tvar area = chart.chartArea;\r\n\t\tvar canvas = chart.canvas;\r\n\t\tvar i = 0;\r\n\t\tvar ilen = points.length;\r\n\t\tvar clip;\r\n\r\n\t\tif (me._showLine) {\r\n\t\t\tclip = meta.dataset._model.clip;\r\n\r\n\t\t\thelpers$1.canvas.clipArea(chart.ctx, {\r\n\t\t\t\tleft: clip.left === false ? 0 : area.left - clip.left,\r\n\t\t\t\tright: clip.right === false ? canvas.width : area.right + clip.right,\r\n\t\t\t\ttop: clip.top === false ? 0 : area.top - clip.top,\r\n\t\t\t\tbottom: clip.bottom === false ? canvas.height : area.bottom + clip.bottom\r\n\t\t\t});\r\n\r\n\t\t\tmeta.dataset.draw();\r\n\r\n\t\t\thelpers$1.canvas.unclipArea(chart.ctx);\r\n\t\t}\r\n\r\n\t\t// Draw the points\r\n\t\tfor (; i < ilen; ++i) {\r\n\t\t\tpoints[i].draw(area);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tsetHoverStyle: function(point) {\r\n\t\tvar model = point._model;\r\n\t\tvar options = point._options;\r\n\t\tvar getHoverColor = helpers$1.getHoverColor;\r\n\r\n\t\tpoint.$previousStyle = {\r\n\t\t\tbackgroundColor: model.backgroundColor,\r\n\t\t\tborderColor: model.borderColor,\r\n\t\t\tborderWidth: model.borderWidth,\r\n\t\t\tradius: model.radius\r\n\t\t};\r\n\r\n\t\tmodel.backgroundColor = valueOrDefault$6(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\r\n\t\tmodel.borderColor = valueOrDefault$6(options.hoverBorderColor, getHoverColor(options.borderColor));\r\n\t\tmodel.borderWidth = valueOrDefault$6(options.hoverBorderWidth, options.borderWidth);\r\n\t\tmodel.radius = valueOrDefault$6(options.hoverRadius, options.radius);\r\n\t},\r\n});\n\nvar resolve$3 = helpers$1.options.resolve;\r\n\r\ncore_defaults._set('polarArea', {\r\n\tscale: {\r\n\t\ttype: 'radialLinear',\r\n\t\tangleLines: {\r\n\t\t\tdisplay: false\r\n\t\t},\r\n\t\tgridLines: {\r\n\t\t\tcircular: true\r\n\t\t},\r\n\t\tpointLabels: {\r\n\t\t\tdisplay: false\r\n\t\t},\r\n\t\tticks: {\r\n\t\t\tbeginAtZero: true\r\n\t\t}\r\n\t},\r\n\r\n\t// Boolean - Whether to animate the rotation of the chart\r\n\tanimation: {\r\n\t\tanimateRotate: true,\r\n\t\tanimateScale: true\r\n\t},\r\n\r\n\tstartAngle: -0.5 * Math.PI,\r\n\tlegendCallback: function(chart) {\r\n\t\tvar list = document.createElement('ul');\r\n\t\tvar data = chart.data;\r\n\t\tvar datasets = data.datasets;\r\n\t\tvar labels = data.labels;\r\n\t\tvar i, ilen, listItem, listItemSpan;\r\n\r\n\t\tlist.setAttribute('class', chart.id + '-legend');\r\n\t\tif (datasets.length) {\r\n\t\t\tfor (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) {\r\n\t\t\t\tlistItem = list.appendChild(document.createElement('li'));\r\n\t\t\t\tlistItemSpan = listItem.appendChild(document.createElement('span'));\r\n\t\t\t\tlistItemSpan.style.backgroundColor = datasets[0].backgroundColor[i];\r\n\t\t\t\tif (labels[i]) {\r\n\t\t\t\t\tlistItem.appendChild(document.createTextNode(labels[i]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn list.outerHTML;\r\n\t},\r\n\tlegend: {\r\n\t\tlabels: {\r\n\t\t\tgenerateLabels: function(chart) {\r\n\t\t\t\tvar data = chart.data;\r\n\t\t\t\tif (data.labels.length && data.datasets.length) {\r\n\t\t\t\t\treturn data.labels.map(function(label, i) {\r\n\t\t\t\t\t\tvar meta = chart.getDatasetMeta(0);\r\n\t\t\t\t\t\tvar style = meta.controller.getStyle(i);\r\n\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\ttext: label,\r\n\t\t\t\t\t\t\tfillStyle: style.backgroundColor,\r\n\t\t\t\t\t\t\tstrokeStyle: style.borderColor,\r\n\t\t\t\t\t\t\tlineWidth: style.borderWidth,\r\n\t\t\t\t\t\t\thidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden,\r\n\r\n\t\t\t\t\t\t\t// Extra data used for toggling the correct item\r\n\t\t\t\t\t\t\tindex: i\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\treturn [];\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tonClick: function(e, legendItem) {\r\n\t\t\tvar index = legendItem.index;\r\n\t\t\tvar chart = this.chart;\r\n\t\t\tvar i, ilen, meta;\r\n\r\n\t\t\tfor (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\r\n\t\t\t\tmeta = chart.getDatasetMeta(i);\r\n\t\t\t\tmeta.data[index].hidden = !meta.data[index].hidden;\r\n\t\t\t}\r\n\r\n\t\t\tchart.update();\r\n\t\t}\r\n\t},\r\n\r\n\t// Need to override these to give a nice default\r\n\ttooltips: {\r\n\t\tcallbacks: {\r\n\t\t\ttitle: function() {\r\n\t\t\t\treturn '';\r\n\t\t\t},\r\n\t\t\tlabel: function(item, data) {\r\n\t\t\t\treturn data.labels[item.index] + ': ' + item.yLabel;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar controller_polarArea = core_datasetController.extend({\r\n\r\n\tdataElementType: elements.Arc,\r\n\r\n\tlinkScales: helpers$1.noop,\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderColor',\r\n\t\t'borderWidth',\r\n\t\t'borderAlign',\r\n\t\t'hoverBackgroundColor',\r\n\t\t'hoverBorderColor',\r\n\t\t'hoverBorderWidth',\r\n\t],\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getIndexScaleId: function() {\r\n\t\treturn this.chart.scale.id;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getValueScaleId: function() {\r\n\t\treturn this.chart.scale.id;\r\n\t},\r\n\r\n\tupdate: function(reset) {\r\n\t\tvar me = this;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar start = me.chart.options.startAngle || 0;\r\n\t\tvar starts = me._starts = [];\r\n\t\tvar angles = me._angles = [];\r\n\t\tvar arcs = meta.data;\r\n\t\tvar i, ilen, angle;\r\n\r\n\t\tme._updateRadius();\r\n\r\n\t\tmeta.count = me.countVisibleElements();\r\n\r\n\t\tfor (i = 0, ilen = dataset.data.length; i < ilen; i++) {\r\n\t\t\tstarts[i] = start;\r\n\t\t\tangle = me._computeAngle(i);\r\n\t\t\tangles[i] = angle;\r\n\t\t\tstart += angle;\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = arcs.length; i < ilen; ++i) {\r\n\t\t\tarcs[i]._options = me._resolveDataElementOptions(arcs[i], i);\r\n\t\t\tme.updateElement(arcs[i], i, reset);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_updateRadius: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar chartArea = chart.chartArea;\r\n\t\tvar opts = chart.options;\r\n\t\tvar minSize = Math.min(chartArea.right - chartArea.left, chartArea.bottom - chartArea.top);\r\n\r\n\t\tchart.outerRadius = Math.max(minSize / 2, 0);\r\n\t\tchart.innerRadius = Math.max(opts.cutoutPercentage ? (chart.outerRadius / 100) * (opts.cutoutPercentage) : 1, 0);\r\n\t\tchart.radiusLength = (chart.outerRadius - chart.innerRadius) / chart.getVisibleDatasetCount();\r\n\r\n\t\tme.outerRadius = chart.outerRadius - (chart.radiusLength * me.index);\r\n\t\tme.innerRadius = me.outerRadius - chart.radiusLength;\r\n\t},\r\n\r\n\tupdateElement: function(arc, index, reset) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar opts = chart.options;\r\n\t\tvar animationOpts = opts.animation;\r\n\t\tvar scale = chart.scale;\r\n\t\tvar labels = chart.data.labels;\r\n\r\n\t\tvar centerX = scale.xCenter;\r\n\t\tvar centerY = scale.yCenter;\r\n\r\n\t\t// var negHalfPI = -0.5 * Math.PI;\r\n\t\tvar datasetStartAngle = opts.startAngle;\r\n\t\tvar distance = arc.hidden ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);\r\n\t\tvar startAngle = me._starts[index];\r\n\t\tvar endAngle = startAngle + (arc.hidden ? 0 : me._angles[index]);\r\n\r\n\t\tvar resetRadius = animationOpts.animateScale ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);\r\n\t\tvar options = arc._options || {};\r\n\r\n\t\thelpers$1.extend(arc, {\r\n\t\t\t// Utility\r\n\t\t\t_datasetIndex: me.index,\r\n\t\t\t_index: index,\r\n\t\t\t_scale: scale,\r\n\r\n\t\t\t// Desired view properties\r\n\t\t\t_model: {\r\n\t\t\t\tbackgroundColor: options.backgroundColor,\r\n\t\t\t\tborderColor: options.borderColor,\r\n\t\t\t\tborderWidth: options.borderWidth,\r\n\t\t\t\tborderAlign: options.borderAlign,\r\n\t\t\t\tx: centerX,\r\n\t\t\t\ty: centerY,\r\n\t\t\t\tinnerRadius: 0,\r\n\t\t\t\touterRadius: reset ? resetRadius : distance,\r\n\t\t\t\tstartAngle: reset && animationOpts.animateRotate ? datasetStartAngle : startAngle,\r\n\t\t\t\tendAngle: reset && animationOpts.animateRotate ? datasetStartAngle : endAngle,\r\n\t\t\t\tlabel: helpers$1.valueAtIndexOrDefault(labels, index, labels[index])\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tarc.pivot();\r\n\t},\r\n\r\n\tcountVisibleElements: function() {\r\n\t\tvar dataset = this.getDataset();\r\n\t\tvar meta = this.getMeta();\r\n\t\tvar count = 0;\r\n\r\n\t\thelpers$1.each(meta.data, function(element, index) {\r\n\t\t\tif (!isNaN(dataset.data[index]) && !element.hidden) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn count;\r\n\t},\r\n\r\n\t/**\r\n\t * @protected\r\n\t */\r\n\tsetHoverStyle: function(arc) {\r\n\t\tvar model = arc._model;\r\n\t\tvar options = arc._options;\r\n\t\tvar getHoverColor = helpers$1.getHoverColor;\r\n\t\tvar valueOrDefault = helpers$1.valueOrDefault;\r\n\r\n\t\tarc.$previousStyle = {\r\n\t\t\tbackgroundColor: model.backgroundColor,\r\n\t\t\tborderColor: model.borderColor,\r\n\t\t\tborderWidth: model.borderWidth,\r\n\t\t};\r\n\r\n\t\tmodel.backgroundColor = valueOrDefault(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\r\n\t\tmodel.borderColor = valueOrDefault(options.hoverBorderColor, getHoverColor(options.borderColor));\r\n\t\tmodel.borderWidth = valueOrDefault(options.hoverBorderWidth, options.borderWidth);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_computeAngle: function(index) {\r\n\t\tvar me = this;\r\n\t\tvar count = this.getMeta().count;\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar meta = me.getMeta();\r\n\r\n\t\tif (isNaN(dataset.data[index]) || meta.data[index].hidden) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\t// Scriptable options\r\n\t\tvar context = {\r\n\t\t\tchart: me.chart,\r\n\t\t\tdataIndex: index,\r\n\t\t\tdataset: dataset,\r\n\t\t\tdatasetIndex: me.index\r\n\t\t};\r\n\r\n\t\treturn resolve$3([\r\n\t\t\tme.chart.options.elements.arc.angle,\r\n\t\t\t(2 * Math.PI) / count\r\n\t\t], context, index);\r\n\t}\r\n});\n\ncore_defaults._set('pie', helpers$1.clone(core_defaults.doughnut));\r\ncore_defaults._set('pie', {\r\n\tcutoutPercentage: 0\r\n});\r\n\r\n// Pie charts are Doughnut chart with different defaults\r\nvar controller_pie = controller_doughnut;\n\nvar valueOrDefault$7 = helpers$1.valueOrDefault;\r\n\r\ncore_defaults._set('radar', {\r\n\tspanGaps: false,\r\n\tscale: {\r\n\t\ttype: 'radialLinear'\r\n\t},\r\n\telements: {\r\n\t\tline: {\r\n\t\t\tfill: 'start',\r\n\t\t\ttension: 0 // no bezier in radar\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar controller_radar = core_datasetController.extend({\r\n\tdatasetElementType: elements.Line,\r\n\r\n\tdataElementType: elements.Point,\r\n\r\n\tlinkScales: helpers$1.noop,\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_datasetElementOptions: [\r\n\t\t'backgroundColor',\r\n\t\t'borderWidth',\r\n\t\t'borderColor',\r\n\t\t'borderCapStyle',\r\n\t\t'borderDash',\r\n\t\t'borderDashOffset',\r\n\t\t'borderJoinStyle',\r\n\t\t'fill'\r\n\t],\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_dataElementOptions: {\r\n\t\tbackgroundColor: 'pointBackgroundColor',\r\n\t\tborderColor: 'pointBorderColor',\r\n\t\tborderWidth: 'pointBorderWidth',\r\n\t\thitRadius: 'pointHitRadius',\r\n\t\thoverBackgroundColor: 'pointHoverBackgroundColor',\r\n\t\thoverBorderColor: 'pointHoverBorderColor',\r\n\t\thoverBorderWidth: 'pointHoverBorderWidth',\r\n\t\thoverRadius: 'pointHoverRadius',\r\n\t\tpointStyle: 'pointStyle',\r\n\t\tradius: 'pointRadius',\r\n\t\trotation: 'pointRotation'\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getIndexScaleId: function() {\r\n\t\treturn this.chart.scale.id;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getValueScaleId: function() {\r\n\t\treturn this.chart.scale.id;\r\n\t},\r\n\r\n\tupdate: function(reset) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar line = meta.dataset;\r\n\t\tvar points = meta.data || [];\r\n\t\tvar scale = me.chart.scale;\r\n\t\tvar config = me._config;\r\n\t\tvar i, ilen;\r\n\r\n\t\t// Compatibility: If the properties are defined with only the old name, use those values\r\n\t\tif (config.tension !== undefined && config.lineTension === undefined) {\r\n\t\t\tconfig.lineTension = config.tension;\r\n\t\t}\r\n\r\n\t\t// Utility\r\n\t\tline._scale = scale;\r\n\t\tline._datasetIndex = me.index;\r\n\t\t// Data\r\n\t\tline._children = points;\r\n\t\tline._loop = true;\r\n\t\t// Model\r\n\t\tline._model = me._resolveDatasetElementOptions(line);\r\n\r\n\t\tline.pivot();\r\n\r\n\t\t// Update Points\r\n\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\tme.updateElement(points[i], i, reset);\r\n\t\t}\r\n\r\n\t\t// Update bezier control points\r\n\t\tme.updateBezierControlPoints();\r\n\r\n\t\t// Now pivot the point for animation\r\n\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\tpoints[i].pivot();\r\n\t\t}\r\n\t},\r\n\r\n\tupdateElement: function(point, index, reset) {\r\n\t\tvar me = this;\r\n\t\tvar custom = point.custom || {};\r\n\t\tvar dataset = me.getDataset();\r\n\t\tvar scale = me.chart.scale;\r\n\t\tvar pointPosition = scale.getPointPositionForValue(index, dataset.data[index]);\r\n\t\tvar options = me._resolveDataElementOptions(point, index);\r\n\t\tvar lineModel = me.getMeta().dataset._model;\r\n\t\tvar x = reset ? scale.xCenter : pointPosition.x;\r\n\t\tvar y = reset ? scale.yCenter : pointPosition.y;\r\n\r\n\t\t// Utility\r\n\t\tpoint._scale = scale;\r\n\t\tpoint._options = options;\r\n\t\tpoint._datasetIndex = me.index;\r\n\t\tpoint._index = index;\r\n\r\n\t\t// Desired view properties\r\n\t\tpoint._model = {\r\n\t\t\tx: x, // value not used in dataset scale, but we want a consistent API between scales\r\n\t\t\ty: y,\r\n\t\t\tskip: custom.skip || isNaN(x) || isNaN(y),\r\n\t\t\t// Appearance\r\n\t\t\tradius: options.radius,\r\n\t\t\tpointStyle: options.pointStyle,\r\n\t\t\trotation: options.rotation,\r\n\t\t\tbackgroundColor: options.backgroundColor,\r\n\t\t\tborderColor: options.borderColor,\r\n\t\t\tborderWidth: options.borderWidth,\r\n\t\t\ttension: valueOrDefault$7(custom.tension, lineModel ? lineModel.tension : 0),\r\n\r\n\t\t\t// Tooltip\r\n\t\t\thitRadius: options.hitRadius\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_resolveDatasetElementOptions: function() {\r\n\t\tvar me = this;\r\n\t\tvar config = me._config;\r\n\t\tvar options = me.chart.options;\r\n\t\tvar values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments);\r\n\r\n\t\tvalues.spanGaps = valueOrDefault$7(config.spanGaps, options.spanGaps);\r\n\t\tvalues.tension = valueOrDefault$7(config.lineTension, options.elements.line.tension);\r\n\r\n\t\treturn values;\r\n\t},\r\n\r\n\tupdateBezierControlPoints: function() {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getMeta();\r\n\t\tvar area = me.chart.chartArea;\r\n\t\tvar points = meta.data || [];\r\n\t\tvar i, ilen, model, controlPoints;\r\n\r\n\t\t// Only consider points that are drawn in case the spanGaps option is used\r\n\t\tif (meta.dataset._model.spanGaps) {\r\n\t\t\tpoints = points.filter(function(pt) {\r\n\t\t\t\treturn !pt._model.skip;\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tfunction capControlPoint(pt, min, max) {\r\n\t\t\treturn Math.max(Math.min(pt, max), min);\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\r\n\t\t\tmodel = points[i]._model;\r\n\t\t\tcontrolPoints = helpers$1.splineCurve(\r\n\t\t\t\thelpers$1.previousItem(points, i, true)._model,\r\n\t\t\t\tmodel,\r\n\t\t\t\thelpers$1.nextItem(points, i, true)._model,\r\n\t\t\t\tmodel.tension\r\n\t\t\t);\r\n\r\n\t\t\t// Prevent the bezier going outside of the bounds of the graph\r\n\t\t\tmodel.controlPointPreviousX = capControlPoint(controlPoints.previous.x, area.left, area.right);\r\n\t\t\tmodel.controlPointPreviousY = capControlPoint(controlPoints.previous.y, area.top, area.bottom);\r\n\t\t\tmodel.controlPointNextX = capControlPoint(controlPoints.next.x, area.left, area.right);\r\n\t\t\tmodel.controlPointNextY = capControlPoint(controlPoints.next.y, area.top, area.bottom);\r\n\t\t}\r\n\t},\r\n\r\n\tsetHoverStyle: function(point) {\r\n\t\tvar model = point._model;\r\n\t\tvar options = point._options;\r\n\t\tvar getHoverColor = helpers$1.getHoverColor;\r\n\r\n\t\tpoint.$previousStyle = {\r\n\t\t\tbackgroundColor: model.backgroundColor,\r\n\t\t\tborderColor: model.borderColor,\r\n\t\t\tborderWidth: model.borderWidth,\r\n\t\t\tradius: model.radius\r\n\t\t};\r\n\r\n\t\tmodel.backgroundColor = valueOrDefault$7(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\r\n\t\tmodel.borderColor = valueOrDefault$7(options.hoverBorderColor, getHoverColor(options.borderColor));\r\n\t\tmodel.borderWidth = valueOrDefault$7(options.hoverBorderWidth, options.borderWidth);\r\n\t\tmodel.radius = valueOrDefault$7(options.hoverRadius, options.radius);\r\n\t}\r\n});\n\ncore_defaults._set('scatter', {\r\n\thover: {\r\n\t\tmode: 'single'\r\n\t},\r\n\r\n\tscales: {\r\n\t\txAxes: [{\r\n\t\t\tid: 'x-axis-1',    // need an ID so datasets can reference the scale\r\n\t\t\ttype: 'linear',    // scatter should not use a category axis\r\n\t\t\tposition: 'bottom'\r\n\t\t}],\r\n\t\tyAxes: [{\r\n\t\t\tid: 'y-axis-1',\r\n\t\t\ttype: 'linear',\r\n\t\t\tposition: 'left'\r\n\t\t}]\r\n\t},\r\n\r\n\ttooltips: {\r\n\t\tcallbacks: {\r\n\t\t\ttitle: function() {\r\n\t\t\t\treturn '';     // doesn't make sense for scatter since data are formatted as a point\r\n\t\t\t},\r\n\t\t\tlabel: function(item) {\r\n\t\t\t\treturn '(' + item.xLabel + ', ' + item.yLabel + ')';\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\ncore_defaults._set('global', {\r\n\tdatasets: {\r\n\t\tscatter: {\r\n\t\t\tshowLine: false\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Scatter charts use line controllers\r\nvar controller_scatter = controller_line;\n\n// NOTE export a map in which the key represents the controller type, not\r\n// the class, and so must be CamelCase in order to be correctly retrieved\r\n// by the controller in core.controller.js (`controllers[meta.type]`).\r\n\r\nvar controllers = {\r\n\tbar: controller_bar,\r\n\tbubble: controller_bubble,\r\n\tdoughnut: controller_doughnut,\r\n\thorizontalBar: controller_horizontalBar,\r\n\tline: controller_line,\r\n\tpolarArea: controller_polarArea,\r\n\tpie: controller_pie,\r\n\tradar: controller_radar,\r\n\tscatter: controller_scatter\r\n};\n\n/**\r\n * Helper function to get relative position for an event\r\n * @param {Event|IEvent} event - The event to get the position for\r\n * @param {Chart} chart - The chart\r\n * @returns {object} the event position\r\n */\r\nfunction getRelativePosition(e, chart) {\r\n\tif (e.native) {\r\n\t\treturn {\r\n\t\t\tx: e.x,\r\n\t\t\ty: e.y\r\n\t\t};\r\n\t}\r\n\r\n\treturn helpers$1.getRelativePosition(e, chart);\r\n}\r\n\r\n/**\r\n * Helper function to traverse all of the visible elements in the chart\r\n * @param {Chart} chart - the chart\r\n * @param {function} handler - the callback to execute for each visible item\r\n */\r\nfunction parseVisibleItems(chart, handler) {\r\n\tvar metasets = chart._getSortedVisibleDatasetMetas();\r\n\tvar metadata, i, j, ilen, jlen, element;\r\n\r\n\tfor (i = 0, ilen = metasets.length; i < ilen; ++i) {\r\n\t\tmetadata = metasets[i].data;\r\n\t\tfor (j = 0, jlen = metadata.length; j < jlen; ++j) {\r\n\t\t\telement = metadata[j];\r\n\t\t\tif (!element._view.skip) {\r\n\t\t\t\thandler(element);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/**\r\n * Helper function to get the items that intersect the event position\r\n * @param {ChartElement[]} items - elements to filter\r\n * @param {object} position - the point to be nearest to\r\n * @return {ChartElement[]} the nearest items\r\n */\r\nfunction getIntersectItems(chart, position) {\r\n\tvar elements = [];\r\n\r\n\tparseVisibleItems(chart, function(element) {\r\n\t\tif (element.inRange(position.x, position.y)) {\r\n\t\t\telements.push(element);\r\n\t\t}\r\n\t});\r\n\r\n\treturn elements;\r\n}\r\n\r\n/**\r\n * Helper function to get the items nearest to the event position considering all visible items in teh chart\r\n * @param {Chart} chart - the chart to look at elements from\r\n * @param {object} position - the point to be nearest to\r\n * @param {boolean} intersect - if true, only consider items that intersect the position\r\n * @param {function} distanceMetric - function to provide the distance between points\r\n * @return {ChartElement[]} the nearest items\r\n */\r\nfunction getNearestItems(chart, position, intersect, distanceMetric) {\r\n\tvar minDistance = Number.POSITIVE_INFINITY;\r\n\tvar nearestItems = [];\r\n\r\n\tparseVisibleItems(chart, function(element) {\r\n\t\tif (intersect && !element.inRange(position.x, position.y)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar center = element.getCenterPoint();\r\n\t\tvar distance = distanceMetric(position, center);\r\n\t\tif (distance < minDistance) {\r\n\t\t\tnearestItems = [element];\r\n\t\t\tminDistance = distance;\r\n\t\t} else if (distance === minDistance) {\r\n\t\t\t// Can have multiple items at the same distance in which case we sort by size\r\n\t\t\tnearestItems.push(element);\r\n\t\t}\r\n\t});\r\n\r\n\treturn nearestItems;\r\n}\r\n\r\n/**\r\n * Get a distance metric function for two points based on the\r\n * axis mode setting\r\n * @param {string} axis - the axis mode. x|y|xy\r\n */\r\nfunction getDistanceMetricForAxis(axis) {\r\n\tvar useX = axis.indexOf('x') !== -1;\r\n\tvar useY = axis.indexOf('y') !== -1;\r\n\r\n\treturn function(pt1, pt2) {\r\n\t\tvar deltaX = useX ? Math.abs(pt1.x - pt2.x) : 0;\r\n\t\tvar deltaY = useY ? Math.abs(pt1.y - pt2.y) : 0;\r\n\t\treturn Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));\r\n\t};\r\n}\r\n\r\nfunction indexMode(chart, e, options) {\r\n\tvar position = getRelativePosition(e, chart);\r\n\t// Default axis for index mode is 'x' to match old behaviour\r\n\toptions.axis = options.axis || 'x';\r\n\tvar distanceMetric = getDistanceMetricForAxis(options.axis);\r\n\tvar items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);\r\n\tvar elements = [];\r\n\r\n\tif (!items.length) {\r\n\t\treturn [];\r\n\t}\r\n\r\n\tchart._getSortedVisibleDatasetMetas().forEach(function(meta) {\r\n\t\tvar element = meta.data[items[0]._index];\r\n\r\n\t\t// don't count items that are skipped (null data)\r\n\t\tif (element && !element._view.skip) {\r\n\t\t\telements.push(element);\r\n\t\t}\r\n\t});\r\n\r\n\treturn elements;\r\n}\r\n\r\n/**\r\n * @interface IInteractionOptions\r\n */\r\n/**\r\n * If true, only consider items that intersect the point\r\n * @name IInterfaceOptions#boolean\r\n * @type Boolean\r\n */\r\n\r\n/**\r\n * Contains interaction related functions\r\n * @namespace Chart.Interaction\r\n */\r\nvar core_interaction = {\r\n\t// Helper function for different modes\r\n\tmodes: {\r\n\t\tsingle: function(chart, e) {\r\n\t\t\tvar position = getRelativePosition(e, chart);\r\n\t\t\tvar elements = [];\r\n\r\n\t\t\tparseVisibleItems(chart, function(element) {\r\n\t\t\t\tif (element.inRange(position.x, position.y)) {\r\n\t\t\t\t\telements.push(element);\r\n\t\t\t\t\treturn elements;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\treturn elements.slice(0, 1);\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * @function Chart.Interaction.modes.label\r\n\t\t * @deprecated since version 2.4.0\r\n\t\t * @todo remove at version 3\r\n\t\t * @private\r\n\t\t */\r\n\t\tlabel: indexMode,\r\n\r\n\t\t/**\r\n\t\t * Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something\r\n\t\t * If the options.intersect mode is false, we find the nearest item and return the items at the same index as that item\r\n\t\t * @function Chart.Interaction.modes.index\r\n\t\t * @since v2.4.0\r\n\t\t * @param {Chart} chart - the chart we are returning items from\r\n\t\t * @param {Event} e - the event we are find things at\r\n\t\t * @param {IInteractionOptions} options - options to use during interaction\r\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n\t\t */\r\n\t\tindex: indexMode,\r\n\r\n\t\t/**\r\n\t\t * Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something\r\n\t\t * If the options.intersect is false, we find the nearest item and return the items in that dataset\r\n\t\t * @function Chart.Interaction.modes.dataset\r\n\t\t * @param {Chart} chart - the chart we are returning items from\r\n\t\t * @param {Event} e - the event we are find things at\r\n\t\t * @param {IInteractionOptions} options - options to use during interaction\r\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n\t\t */\r\n\t\tdataset: function(chart, e, options) {\r\n\t\t\tvar position = getRelativePosition(e, chart);\r\n\t\t\toptions.axis = options.axis || 'xy';\r\n\t\t\tvar distanceMetric = getDistanceMetricForAxis(options.axis);\r\n\t\t\tvar items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);\r\n\r\n\t\t\tif (items.length > 0) {\r\n\t\t\t\titems = chart.getDatasetMeta(items[0]._datasetIndex).data;\r\n\t\t\t}\r\n\r\n\t\t\treturn items;\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * @function Chart.Interaction.modes.x-axis\r\n\t\t * @deprecated since version 2.4.0. Use index mode and intersect == true\r\n\t\t * @todo remove at version 3\r\n\t\t * @private\r\n\t\t */\r\n\t\t'x-axis': function(chart, e) {\r\n\t\t\treturn indexMode(chart, e, {intersect: false});\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * Point mode returns all elements that hit test based on the event position\r\n\t\t * of the event\r\n\t\t * @function Chart.Interaction.modes.intersect\r\n\t\t * @param {Chart} chart - the chart we are returning items from\r\n\t\t * @param {Event} e - the event we are find things at\r\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n\t\t */\r\n\t\tpoint: function(chart, e) {\r\n\t\t\tvar position = getRelativePosition(e, chart);\r\n\t\t\treturn getIntersectItems(chart, position);\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * nearest mode returns the element closest to the point\r\n\t\t * @function Chart.Interaction.modes.intersect\r\n\t\t * @param {Chart} chart - the chart we are returning items from\r\n\t\t * @param {Event} e - the event we are find things at\r\n\t\t * @param {IInteractionOptions} options - options to use\r\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n\t\t */\r\n\t\tnearest: function(chart, e, options) {\r\n\t\t\tvar position = getRelativePosition(e, chart);\r\n\t\t\toptions.axis = options.axis || 'xy';\r\n\t\t\tvar distanceMetric = getDistanceMetricForAxis(options.axis);\r\n\t\t\treturn getNearestItems(chart, position, options.intersect, distanceMetric);\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * x mode returns the elements that hit-test at the current x coordinate\r\n\t\t * @function Chart.Interaction.modes.x\r\n\t\t * @param {Chart} chart - the chart we are returning items from\r\n\t\t * @param {Event} e - the event we are find things at\r\n\t\t * @param {IInteractionOptions} options - options to use\r\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n\t\t */\r\n\t\tx: function(chart, e, options) {\r\n\t\t\tvar position = getRelativePosition(e, chart);\r\n\t\t\tvar items = [];\r\n\t\t\tvar intersectsItem = false;\r\n\r\n\t\t\tparseVisibleItems(chart, function(element) {\r\n\t\t\t\tif (element.inXRange(position.x)) {\r\n\t\t\t\t\titems.push(element);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (element.inRange(position.x, position.y)) {\r\n\t\t\t\t\tintersectsItem = true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// If we want to trigger on an intersect and we don't have any items\r\n\t\t\t// that intersect the position, return nothing\r\n\t\t\tif (options.intersect && !intersectsItem) {\r\n\t\t\t\titems = [];\r\n\t\t\t}\r\n\t\t\treturn items;\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * y mode returns the elements that hit-test at the current y coordinate\r\n\t\t * @function Chart.Interaction.modes.y\r\n\t\t * @param {Chart} chart - the chart we are returning items from\r\n\t\t * @param {Event} e - the event we are find things at\r\n\t\t * @param {IInteractionOptions} options - options to use\r\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n\t\t */\r\n\t\ty: function(chart, e, options) {\r\n\t\t\tvar position = getRelativePosition(e, chart);\r\n\t\t\tvar items = [];\r\n\t\t\tvar intersectsItem = false;\r\n\r\n\t\t\tparseVisibleItems(chart, function(element) {\r\n\t\t\t\tif (element.inYRange(position.y)) {\r\n\t\t\t\t\titems.push(element);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (element.inRange(position.x, position.y)) {\r\n\t\t\t\t\tintersectsItem = true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// If we want to trigger on an intersect and we don't have any items\r\n\t\t\t// that intersect the position, return nothing\r\n\t\t\tif (options.intersect && !intersectsItem) {\r\n\t\t\t\titems = [];\r\n\t\t\t}\r\n\t\t\treturn items;\r\n\t\t}\r\n\t}\r\n};\n\nvar extend = helpers$1.extend;\r\n\r\nfunction filterByPosition(array, position) {\r\n\treturn helpers$1.where(array, function(v) {\r\n\t\treturn v.pos === position;\r\n\t});\r\n}\r\n\r\nfunction sortByWeight(array, reverse) {\r\n\treturn array.sort(function(a, b) {\r\n\t\tvar v0 = reverse ? b : a;\r\n\t\tvar v1 = reverse ? a : b;\r\n\t\treturn v0.weight === v1.weight ?\r\n\t\t\tv0.index - v1.index :\r\n\t\t\tv0.weight - v1.weight;\r\n\t});\r\n}\r\n\r\nfunction wrapBoxes(boxes) {\r\n\tvar layoutBoxes = [];\r\n\tvar i, ilen, box;\r\n\r\n\tfor (i = 0, ilen = (boxes || []).length; i < ilen; ++i) {\r\n\t\tbox = boxes[i];\r\n\t\tlayoutBoxes.push({\r\n\t\t\tindex: i,\r\n\t\t\tbox: box,\r\n\t\t\tpos: box.position,\r\n\t\t\thorizontal: box.isHorizontal(),\r\n\t\t\tweight: box.weight\r\n\t\t});\r\n\t}\r\n\treturn layoutBoxes;\r\n}\r\n\r\nfunction setLayoutDims(layouts, params) {\r\n\tvar i, ilen, layout;\r\n\tfor (i = 0, ilen = layouts.length; i < ilen; ++i) {\r\n\t\tlayout = layouts[i];\r\n\t\t// store width used instead of chartArea.w in fitBoxes\r\n\t\tlayout.width = layout.horizontal\r\n\t\t\t? layout.box.fullWidth && params.availableWidth\r\n\t\t\t: params.vBoxMaxWidth;\r\n\t\t// store height used instead of chartArea.h in fitBoxes\r\n\t\tlayout.height = layout.horizontal && params.hBoxMaxHeight;\r\n\t}\r\n}\r\n\r\nfunction buildLayoutBoxes(boxes) {\r\n\tvar layoutBoxes = wrapBoxes(boxes);\r\n\tvar left = sortByWeight(filterByPosition(layoutBoxes, 'left'), true);\r\n\tvar right = sortByWeight(filterByPosition(layoutBoxes, 'right'));\r\n\tvar top = sortByWeight(filterByPosition(layoutBoxes, 'top'), true);\r\n\tvar bottom = sortByWeight(filterByPosition(layoutBoxes, 'bottom'));\r\n\r\n\treturn {\r\n\t\tleftAndTop: left.concat(top),\r\n\t\trightAndBottom: right.concat(bottom),\r\n\t\tchartArea: filterByPosition(layoutBoxes, 'chartArea'),\r\n\t\tvertical: left.concat(right),\r\n\t\thorizontal: top.concat(bottom)\r\n\t};\r\n}\r\n\r\nfunction getCombinedMax(maxPadding, chartArea, a, b) {\r\n\treturn Math.max(maxPadding[a], chartArea[a]) + Math.max(maxPadding[b], chartArea[b]);\r\n}\r\n\r\nfunction updateDims(chartArea, params, layout) {\r\n\tvar box = layout.box;\r\n\tvar maxPadding = chartArea.maxPadding;\r\n\tvar newWidth, newHeight;\r\n\r\n\tif (layout.size) {\r\n\t\t// this layout was already counted for, lets first reduce old size\r\n\t\tchartArea[layout.pos] -= layout.size;\r\n\t}\r\n\tlayout.size = layout.horizontal ? box.height : box.width;\r\n\tchartArea[layout.pos] += layout.size;\r\n\r\n\tif (box.getPadding) {\r\n\t\tvar boxPadding = box.getPadding();\r\n\t\tmaxPadding.top = Math.max(maxPadding.top, boxPadding.top);\r\n\t\tmaxPadding.left = Math.max(maxPadding.left, boxPadding.left);\r\n\t\tmaxPadding.bottom = Math.max(maxPadding.bottom, boxPadding.bottom);\r\n\t\tmaxPadding.right = Math.max(maxPadding.right, boxPadding.right);\r\n\t}\r\n\r\n\tnewWidth = params.outerWidth - getCombinedMax(maxPadding, chartArea, 'left', 'right');\r\n\tnewHeight = params.outerHeight - getCombinedMax(maxPadding, chartArea, 'top', 'bottom');\r\n\r\n\tif (newWidth !== chartArea.w || newHeight !== chartArea.h) {\r\n\t\tchartArea.w = newWidth;\r\n\t\tchartArea.h = newHeight;\r\n\r\n\t\t// return true if chart area changed in layout's direction\r\n\t\tvar sizes = layout.horizontal ? [newWidth, chartArea.w] : [newHeight, chartArea.h];\r\n\t\treturn sizes[0] !== sizes[1] && (!isNaN(sizes[0]) || !isNaN(sizes[1]));\r\n\t}\r\n}\r\n\r\nfunction handleMaxPadding(chartArea) {\r\n\tvar maxPadding = chartArea.maxPadding;\r\n\r\n\tfunction updatePos(pos) {\r\n\t\tvar change = Math.max(maxPadding[pos] - chartArea[pos], 0);\r\n\t\tchartArea[pos] += change;\r\n\t\treturn change;\r\n\t}\r\n\tchartArea.y += updatePos('top');\r\n\tchartArea.x += updatePos('left');\r\n\tupdatePos('right');\r\n\tupdatePos('bottom');\r\n}\r\n\r\nfunction getMargins(horizontal, chartArea) {\r\n\tvar maxPadding = chartArea.maxPadding;\r\n\r\n\tfunction marginForPositions(positions) {\r\n\t\tvar margin = {left: 0, top: 0, right: 0, bottom: 0};\r\n\t\tpositions.forEach(function(pos) {\r\n\t\t\tmargin[pos] = Math.max(chartArea[pos], maxPadding[pos]);\r\n\t\t});\r\n\t\treturn margin;\r\n\t}\r\n\r\n\treturn horizontal\r\n\t\t? marginForPositions(['left', 'right'])\r\n\t\t: marginForPositions(['top', 'bottom']);\r\n}\r\n\r\nfunction fitBoxes(boxes, chartArea, params) {\r\n\tvar refitBoxes = [];\r\n\tvar i, ilen, layout, box, refit, changed;\r\n\r\n\tfor (i = 0, ilen = boxes.length; i < ilen; ++i) {\r\n\t\tlayout = boxes[i];\r\n\t\tbox = layout.box;\r\n\r\n\t\tbox.update(\r\n\t\t\tlayout.width || chartArea.w,\r\n\t\t\tlayout.height || chartArea.h,\r\n\t\t\tgetMargins(layout.horizontal, chartArea)\r\n\t\t);\r\n\t\tif (updateDims(chartArea, params, layout)) {\r\n\t\t\tchanged = true;\r\n\t\t\tif (refitBoxes.length) {\r\n\t\t\t\t// Dimensions changed and there were non full width boxes before this\r\n\t\t\t\t// -> we have to refit those\r\n\t\t\t\trefit = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!box.fullWidth) { // fullWidth boxes don't need to be re-fitted in any case\r\n\t\t\trefitBoxes.push(layout);\r\n\t\t}\r\n\t}\r\n\r\n\treturn refit ? fitBoxes(refitBoxes, chartArea, params) || changed : changed;\r\n}\r\n\r\nfunction placeBoxes(boxes, chartArea, params) {\r\n\tvar userPadding = params.padding;\r\n\tvar x = chartArea.x;\r\n\tvar y = chartArea.y;\r\n\tvar i, ilen, layout, box;\r\n\r\n\tfor (i = 0, ilen = boxes.length; i < ilen; ++i) {\r\n\t\tlayout = boxes[i];\r\n\t\tbox = layout.box;\r\n\t\tif (layout.horizontal) {\r\n\t\t\tbox.left = box.fullWidth ? userPadding.left : chartArea.left;\r\n\t\t\tbox.right = box.fullWidth ? params.outerWidth - userPadding.right : chartArea.left + chartArea.w;\r\n\t\t\tbox.top = y;\r\n\t\t\tbox.bottom = y + box.height;\r\n\t\t\tbox.width = box.right - box.left;\r\n\t\t\ty = box.bottom;\r\n\t\t} else {\r\n\t\t\tbox.left = x;\r\n\t\t\tbox.right = x + box.width;\r\n\t\t\tbox.top = chartArea.top;\r\n\t\t\tbox.bottom = chartArea.top + chartArea.h;\r\n\t\t\tbox.height = box.bottom - box.top;\r\n\t\t\tx = box.right;\r\n\t\t}\r\n\t}\r\n\r\n\tchartArea.x = x;\r\n\tchartArea.y = y;\r\n}\r\n\r\ncore_defaults._set('global', {\r\n\tlayout: {\r\n\t\tpadding: {\r\n\t\t\ttop: 0,\r\n\t\t\tright: 0,\r\n\t\t\tbottom: 0,\r\n\t\t\tleft: 0\r\n\t\t}\r\n\t}\r\n});\r\n\r\n/**\r\n * @interface ILayoutItem\r\n * @prop {string} position - The position of the item in the chart layout. Possible values are\r\n * 'left', 'top', 'right', 'bottom', and 'chartArea'\r\n * @prop {number} weight - The weight used to sort the item. Higher weights are further away from the chart area\r\n * @prop {boolean} fullWidth - if true, and the item is horizontal, then push vertical boxes down\r\n * @prop {function} isHorizontal - returns true if the layout item is horizontal (ie. top or bottom)\r\n * @prop {function} update - Takes two parameters: width and height. Returns size of item\r\n * @prop {function} getPadding -  Returns an object with padding on the edges\r\n * @prop {number} width - Width of item. Must be valid after update()\r\n * @prop {number} height - Height of item. Must be valid after update()\r\n * @prop {number} left - Left edge of the item. Set by layout system and cannot be used in update\r\n * @prop {number} top - Top edge of the item. Set by layout system and cannot be used in update\r\n * @prop {number} right - Right edge of the item. Set by layout system and cannot be used in update\r\n * @prop {number} bottom - Bottom edge of the item. Set by layout system and cannot be used in update\r\n */\r\n\r\n// The layout service is very self explanatory.  It's responsible for the layout within a chart.\r\n// Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need\r\n// It is this service's responsibility of carrying out that layout.\r\nvar core_layouts = {\r\n\tdefaults: {},\r\n\r\n\t/**\r\n\t * Register a box to a chart.\r\n\t * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title.\r\n\t * @param {Chart} chart - the chart to use\r\n\t * @param {ILayoutItem} item - the item to add to be layed out\r\n\t */\r\n\taddBox: function(chart, item) {\r\n\t\tif (!chart.boxes) {\r\n\t\t\tchart.boxes = [];\r\n\t\t}\r\n\r\n\t\t// initialize item with default values\r\n\t\titem.fullWidth = item.fullWidth || false;\r\n\t\titem.position = item.position || 'top';\r\n\t\titem.weight = item.weight || 0;\r\n\t\titem._layers = item._layers || function() {\r\n\t\t\treturn [{\r\n\t\t\t\tz: 0,\r\n\t\t\t\tdraw: function() {\r\n\t\t\t\t\titem.draw.apply(item, arguments);\r\n\t\t\t\t}\r\n\t\t\t}];\r\n\t\t};\r\n\r\n\t\tchart.boxes.push(item);\r\n\t},\r\n\r\n\t/**\r\n\t * Remove a layoutItem from a chart\r\n\t * @param {Chart} chart - the chart to remove the box from\r\n\t * @param {ILayoutItem} layoutItem - the item to remove from the layout\r\n\t */\r\n\tremoveBox: function(chart, layoutItem) {\r\n\t\tvar index = chart.boxes ? chart.boxes.indexOf(layoutItem) : -1;\r\n\t\tif (index !== -1) {\r\n\t\t\tchart.boxes.splice(index, 1);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Sets (or updates) options on the given `item`.\r\n\t * @param {Chart} chart - the chart in which the item lives (or will be added to)\r\n\t * @param {ILayoutItem} item - the item to configure with the given options\r\n\t * @param {object} options - the new item options.\r\n\t */\r\n\tconfigure: function(chart, item, options) {\r\n\t\tvar props = ['fullWidth', 'position', 'weight'];\r\n\t\tvar ilen = props.length;\r\n\t\tvar i = 0;\r\n\t\tvar prop;\r\n\r\n\t\tfor (; i < ilen; ++i) {\r\n\t\t\tprop = props[i];\r\n\t\t\tif (options.hasOwnProperty(prop)) {\r\n\t\t\t\titem[prop] = options[prop];\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Fits boxes of the given chart into the given size by having each box measure itself\r\n\t * then running a fitting algorithm\r\n\t * @param {Chart} chart - the chart\r\n\t * @param {number} width - the width to fit into\r\n\t * @param {number} height - the height to fit into\r\n\t */\r\n\tupdate: function(chart, width, height) {\r\n\t\tif (!chart) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar layoutOptions = chart.options.layout || {};\r\n\t\tvar padding = helpers$1.options.toPadding(layoutOptions.padding);\r\n\r\n\t\tvar availableWidth = width - padding.width;\r\n\t\tvar availableHeight = height - padding.height;\r\n\t\tvar boxes = buildLayoutBoxes(chart.boxes);\r\n\t\tvar verticalBoxes = boxes.vertical;\r\n\t\tvar horizontalBoxes = boxes.horizontal;\r\n\r\n\t\t// Essentially we now have any number of boxes on each of the 4 sides.\r\n\t\t// Our canvas looks like the following.\r\n\t\t// The areas L1 and L2 are the left axes. R1 is the right axis, T1 is the top axis and\r\n\t\t// B1 is the bottom axis\r\n\t\t// There are also 4 quadrant-like locations (left to right instead of clockwise) reserved for chart overlays\r\n\t\t// These locations are single-box locations only, when trying to register a chartArea location that is already taken,\r\n\t\t// an error will be thrown.\r\n\t\t//\r\n\t\t// |----------------------------------------------------|\r\n\t\t// |                  T1 (Full Width)                   |\r\n\t\t// |----------------------------------------------------|\r\n\t\t// |    |    |                 T2                  |    |\r\n\t\t// |    |----|-------------------------------------|----|\r\n\t\t// |    |    | C1 |                           | C2 |    |\r\n\t\t// |    |    |----|                           |----|    |\r\n\t\t// |    |    |                                     |    |\r\n\t\t// | L1 | L2 |           ChartArea (C0)            | R1 |\r\n\t\t// |    |    |                                     |    |\r\n\t\t// |    |    |----|                           |----|    |\r\n\t\t// |    |    | C3 |                           | C4 |    |\r\n\t\t// |    |----|-------------------------------------|----|\r\n\t\t// |    |    |                 B1                  |    |\r\n\t\t// |----------------------------------------------------|\r\n\t\t// |                  B2 (Full Width)                   |\r\n\t\t// |----------------------------------------------------|\r\n\t\t//\r\n\r\n\t\tvar params = Object.freeze({\r\n\t\t\touterWidth: width,\r\n\t\t\touterHeight: height,\r\n\t\t\tpadding: padding,\r\n\t\t\tavailableWidth: availableWidth,\r\n\t\t\tvBoxMaxWidth: availableWidth / 2 / verticalBoxes.length,\r\n\t\t\thBoxMaxHeight: availableHeight / 2\r\n\t\t});\r\n\t\tvar chartArea = extend({\r\n\t\t\tmaxPadding: extend({}, padding),\r\n\t\t\tw: availableWidth,\r\n\t\t\th: availableHeight,\r\n\t\t\tx: padding.left,\r\n\t\t\ty: padding.top\r\n\t\t}, padding);\r\n\r\n\t\tsetLayoutDims(verticalBoxes.concat(horizontalBoxes), params);\r\n\r\n\t\t// First fit vertical boxes\r\n\t\tfitBoxes(verticalBoxes, chartArea, params);\r\n\r\n\t\t// Then fit horizontal boxes\r\n\t\tif (fitBoxes(horizontalBoxes, chartArea, params)) {\r\n\t\t\t// if the area changed, re-fit vertical boxes\r\n\t\t\tfitBoxes(verticalBoxes, chartArea, params);\r\n\t\t}\r\n\r\n\t\thandleMaxPadding(chartArea);\r\n\r\n\t\t// Finally place the boxes to correct coordinates\r\n\t\tplaceBoxes(boxes.leftAndTop, chartArea, params);\r\n\r\n\t\t// Move to opposite side of chart\r\n\t\tchartArea.x += chartArea.w;\r\n\t\tchartArea.y += chartArea.h;\r\n\r\n\t\tplaceBoxes(boxes.rightAndBottom, chartArea, params);\r\n\r\n\t\tchart.chartArea = {\r\n\t\t\tleft: chartArea.left,\r\n\t\t\ttop: chartArea.top,\r\n\t\t\tright: chartArea.left + chartArea.w,\r\n\t\t\tbottom: chartArea.top + chartArea.h\r\n\t\t};\r\n\r\n\t\t// Finally update boxes in chartArea (radial scale for example)\r\n\t\thelpers$1.each(boxes.chartArea, function(layout) {\r\n\t\t\tvar box = layout.box;\r\n\t\t\textend(box, chart.chartArea);\r\n\t\t\tbox.update(chartArea.w, chartArea.h);\r\n\t\t});\r\n\t}\r\n};\n\n/**\r\n * Platform fallback implementation (minimal).\r\n * @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939\r\n */\r\n\r\nvar platform_basic = {\r\n\tacquireContext: function(item) {\r\n\t\tif (item && item.canvas) {\r\n\t\t\t// Support for any object associated to a canvas (including a context2d)\r\n\t\t\titem = item.canvas;\r\n\t\t}\r\n\r\n\t\treturn item && item.getContext('2d') || null;\r\n\t}\r\n};\n\nvar platform_dom = \"/*\\r\\n * DOM element rendering detection\\r\\n * https://davidwalsh.name/detect-node-insertion\\r\\n */\\r\\n@keyframes chartjs-render-animation {\\r\\n\\tfrom { opacity: 0.99; }\\r\\n\\tto { opacity: 1; }\\r\\n}\\r\\n\\r\\n.chartjs-render-monitor {\\r\\n\\tanimation: chartjs-render-animation 0.001s;\\r\\n}\\r\\n\\r\\n/*\\r\\n * DOM element resizing detection\\r\\n * https://github.com/marcj/css-element-queries\\r\\n */\\r\\n.chartjs-size-monitor,\\r\\n.chartjs-size-monitor-expand,\\r\\n.chartjs-size-monitor-shrink {\\r\\n\\tposition: absolute;\\r\\n\\tdirection: ltr;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n\\tright: 0;\\r\\n\\tbottom: 0;\\r\\n\\toverflow: hidden;\\r\\n\\tpointer-events: none;\\r\\n\\tvisibility: hidden;\\r\\n\\tz-index: -1;\\r\\n}\\r\\n\\r\\n.chartjs-size-monitor-expand > div {\\r\\n\\tposition: absolute;\\r\\n\\twidth: 1000000px;\\r\\n\\theight: 1000000px;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n}\\r\\n\\r\\n.chartjs-size-monitor-shrink > div {\\r\\n\\tposition: absolute;\\r\\n\\twidth: 200%;\\r\\n\\theight: 200%;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n}\\r\\n\";\n\nvar platform_dom$1 = /*#__PURE__*/Object.freeze({\n__proto__: null,\n'default': platform_dom\n});\n\nvar stylesheet = getCjsExportFromNamespace(platform_dom$1);\n\nvar EXPANDO_KEY = '$chartjs';\r\nvar CSS_PREFIX = 'chartjs-';\r\nvar CSS_SIZE_MONITOR = CSS_PREFIX + 'size-monitor';\r\nvar CSS_RENDER_MONITOR = CSS_PREFIX + 'render-monitor';\r\nvar CSS_RENDER_ANIMATION = CSS_PREFIX + 'render-animation';\r\nvar ANIMATION_START_EVENTS = ['animationstart', 'webkitAnimationStart'];\r\n\r\n/**\r\n * DOM event types -> Chart.js event types.\r\n * Note: only events with different types are mapped.\r\n * @see https://developer.mozilla.org/en-US/docs/Web/Events\r\n */\r\nvar EVENT_TYPES = {\r\n\ttouchstart: 'mousedown',\r\n\ttouchmove: 'mousemove',\r\n\ttouchend: 'mouseup',\r\n\tpointerenter: 'mouseenter',\r\n\tpointerdown: 'mousedown',\r\n\tpointermove: 'mousemove',\r\n\tpointerup: 'mouseup',\r\n\tpointerleave: 'mouseout',\r\n\tpointerout: 'mouseout'\r\n};\r\n\r\n/**\r\n * The \"used\" size is the final value of a dimension property after all calculations have\r\n * been performed. This method uses the computed style of `element` but returns undefined\r\n * if the computed style is not expressed in pixels. That can happen in some cases where\r\n * `element` has a size relative to its parent and this last one is not yet displayed,\r\n * for example because of `display: none` on a parent node.\r\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/used_value\r\n * @returns {number} Size in pixels or undefined if unknown.\r\n */\r\nfunction readUsedSize(element, property) {\r\n\tvar value = helpers$1.getStyle(element, property);\r\n\tvar matches = value && value.match(/^(\\d+)(\\.\\d+)?px$/);\r\n\treturn matches ? Number(matches[1]) : undefined;\r\n}\r\n\r\n/**\r\n * Initializes the canvas style and render size without modifying the canvas display size,\r\n * since responsiveness is handled by the controller.resize() method. The config is used\r\n * to determine the aspect ratio to apply in case no explicit height has been specified.\r\n */\r\nfunction initCanvas(canvas, config) {\r\n\tvar style = canvas.style;\r\n\r\n\t// NOTE(SB) canvas.getAttribute('width') !== canvas.width: in the first case it\r\n\t// returns null or '' if no explicit value has been set to the canvas attribute.\r\n\tvar renderHeight = canvas.getAttribute('height');\r\n\tvar renderWidth = canvas.getAttribute('width');\r\n\r\n\t// Chart.js modifies some canvas values that we want to restore on destroy\r\n\tcanvas[EXPANDO_KEY] = {\r\n\t\tinitial: {\r\n\t\t\theight: renderHeight,\r\n\t\t\twidth: renderWidth,\r\n\t\t\tstyle: {\r\n\t\t\t\tdisplay: style.display,\r\n\t\t\t\theight: style.height,\r\n\t\t\t\twidth: style.width\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\t// Force canvas to display as block to avoid extra space caused by inline\r\n\t// elements, which would interfere with the responsive resize process.\r\n\t// https://github.com/chartjs/Chart.js/issues/2538\r\n\tstyle.display = style.display || 'block';\r\n\r\n\tif (renderWidth === null || renderWidth === '') {\r\n\t\tvar displayWidth = readUsedSize(canvas, 'width');\r\n\t\tif (displayWidth !== undefined) {\r\n\t\t\tcanvas.width = displayWidth;\r\n\t\t}\r\n\t}\r\n\r\n\tif (renderHeight === null || renderHeight === '') {\r\n\t\tif (canvas.style.height === '') {\r\n\t\t\t// If no explicit render height and style height, let's apply the aspect ratio,\r\n\t\t\t// which one can be specified by the user but also by charts as default option\r\n\t\t\t// (i.e. options.aspectRatio). If not specified, use canvas aspect ratio of 2.\r\n\t\t\tcanvas.height = canvas.width / (config.options.aspectRatio || 2);\r\n\t\t} else {\r\n\t\t\tvar displayHeight = readUsedSize(canvas, 'height');\r\n\t\t\tif (displayWidth !== undefined) {\r\n\t\t\t\tcanvas.height = displayHeight;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn canvas;\r\n}\r\n\r\n/**\r\n * Detects support for options object argument in addEventListener.\r\n * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support\r\n * @private\r\n */\r\nvar supportsEventListenerOptions = (function() {\r\n\tvar supports = false;\r\n\ttry {\r\n\t\tvar options = Object.defineProperty({}, 'passive', {\r\n\t\t\t// eslint-disable-next-line getter-return\r\n\t\t\tget: function() {\r\n\t\t\t\tsupports = true;\r\n\t\t\t}\r\n\t\t});\r\n\t\twindow.addEventListener('e', null, options);\r\n\t} catch (e) {\r\n\t\t// continue regardless of error\r\n\t}\r\n\treturn supports;\r\n}());\r\n\r\n// Default passive to true as expected by Chrome for 'touchstart' and 'touchend' events.\r\n// https://github.com/chartjs/Chart.js/issues/4287\r\nvar eventListenerOptions = supportsEventListenerOptions ? {passive: true} : false;\r\n\r\nfunction addListener(node, type, listener) {\r\n\tnode.addEventListener(type, listener, eventListenerOptions);\r\n}\r\n\r\nfunction removeListener(node, type, listener) {\r\n\tnode.removeEventListener(type, listener, eventListenerOptions);\r\n}\r\n\r\nfunction createEvent(type, chart, x, y, nativeEvent) {\r\n\treturn {\r\n\t\ttype: type,\r\n\t\tchart: chart,\r\n\t\tnative: nativeEvent || null,\r\n\t\tx: x !== undefined ? x : null,\r\n\t\ty: y !== undefined ? y : null,\r\n\t};\r\n}\r\n\r\nfunction fromNativeEvent(event, chart) {\r\n\tvar type = EVENT_TYPES[event.type] || event.type;\r\n\tvar pos = helpers$1.getRelativePosition(event, chart);\r\n\treturn createEvent(type, chart, pos.x, pos.y, event);\r\n}\r\n\r\nfunction throttled(fn, thisArg) {\r\n\tvar ticking = false;\r\n\tvar args = [];\r\n\r\n\treturn function() {\r\n\t\targs = Array.prototype.slice.call(arguments);\r\n\t\tthisArg = thisArg || this;\r\n\r\n\t\tif (!ticking) {\r\n\t\t\tticking = true;\r\n\t\t\thelpers$1.requestAnimFrame.call(window, function() {\r\n\t\t\t\tticking = false;\r\n\t\t\t\tfn.apply(thisArg, args);\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n}\r\n\r\nfunction createDiv(cls) {\r\n\tvar el = document.createElement('div');\r\n\tel.className = cls || '';\r\n\treturn el;\r\n}\r\n\r\n// Implementation based on https://github.com/marcj/css-element-queries\r\nfunction createResizer(handler) {\r\n\tvar maxSize = 1000000;\r\n\r\n\t// NOTE(SB) Don't use innerHTML because it could be considered unsafe.\r\n\t// https://github.com/chartjs/Chart.js/issues/5902\r\n\tvar resizer = createDiv(CSS_SIZE_MONITOR);\r\n\tvar expand = createDiv(CSS_SIZE_MONITOR + '-expand');\r\n\tvar shrink = createDiv(CSS_SIZE_MONITOR + '-shrink');\r\n\r\n\texpand.appendChild(createDiv());\r\n\tshrink.appendChild(createDiv());\r\n\r\n\tresizer.appendChild(expand);\r\n\tresizer.appendChild(shrink);\r\n\tresizer._reset = function() {\r\n\t\texpand.scrollLeft = maxSize;\r\n\t\texpand.scrollTop = maxSize;\r\n\t\tshrink.scrollLeft = maxSize;\r\n\t\tshrink.scrollTop = maxSize;\r\n\t};\r\n\r\n\tvar onScroll = function() {\r\n\t\tresizer._reset();\r\n\t\thandler();\r\n\t};\r\n\r\n\taddListener(expand, 'scroll', onScroll.bind(expand, 'expand'));\r\n\taddListener(shrink, 'scroll', onScroll.bind(shrink, 'shrink'));\r\n\r\n\treturn resizer;\r\n}\r\n\r\n// https://davidwalsh.name/detect-node-insertion\r\nfunction watchForRender(node, handler) {\r\n\tvar expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});\r\n\tvar proxy = expando.renderProxy = function(e) {\r\n\t\tif (e.animationName === CSS_RENDER_ANIMATION) {\r\n\t\t\thandler();\r\n\t\t}\r\n\t};\r\n\r\n\thelpers$1.each(ANIMATION_START_EVENTS, function(type) {\r\n\t\taddListener(node, type, proxy);\r\n\t});\r\n\r\n\t// #4737: Chrome might skip the CSS animation when the CSS_RENDER_MONITOR class\r\n\t// is removed then added back immediately (same animation frame?). Accessing the\r\n\t// `offsetParent` property will force a reflow and re-evaluate the CSS animation.\r\n\t// https://gist.github.com/paulirish/5d52fb081b3570c81e3a#box-metrics\r\n\t// https://github.com/chartjs/Chart.js/issues/4737\r\n\texpando.reflow = !!node.offsetParent;\r\n\r\n\tnode.classList.add(CSS_RENDER_MONITOR);\r\n}\r\n\r\nfunction unwatchForRender(node) {\r\n\tvar expando = node[EXPANDO_KEY] || {};\r\n\tvar proxy = expando.renderProxy;\r\n\r\n\tif (proxy) {\r\n\t\thelpers$1.each(ANIMATION_START_EVENTS, function(type) {\r\n\t\t\tremoveListener(node, type, proxy);\r\n\t\t});\r\n\r\n\t\tdelete expando.renderProxy;\r\n\t}\r\n\r\n\tnode.classList.remove(CSS_RENDER_MONITOR);\r\n}\r\n\r\nfunction addResizeListener(node, listener, chart) {\r\n\tvar expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});\r\n\r\n\t// Let's keep track of this added resizer and thus avoid DOM query when removing it.\r\n\tvar resizer = expando.resizer = createResizer(throttled(function() {\r\n\t\tif (expando.resizer) {\r\n\t\t\tvar container = chart.options.maintainAspectRatio && node.parentNode;\r\n\t\t\tvar w = container ? container.clientWidth : 0;\r\n\t\t\tlistener(createEvent('resize', chart));\r\n\t\t\tif (container && container.clientWidth < w && chart.canvas) {\r\n\t\t\t\t// If the container size shrank during chart resize, let's assume\r\n\t\t\t\t// scrollbar appeared. So we resize again with the scrollbar visible -\r\n\t\t\t\t// effectively making chart smaller and the scrollbar hidden again.\r\n\t\t\t\t// Because we are inside `throttled`, and currently `ticking`, scroll\r\n\t\t\t\t// events are ignored during this whole 2 resize process.\r\n\t\t\t\t// If we assumed wrong and something else happened, we are resizing\r\n\t\t\t\t// twice in a frame (potential performance issue)\r\n\t\t\t\tlistener(createEvent('resize', chart));\r\n\t\t\t}\r\n\t\t}\r\n\t}));\r\n\r\n\t// The resizer needs to be attached to the node parent, so we first need to be\r\n\t// sure that `node` is attached to the DOM before injecting the resizer element.\r\n\twatchForRender(node, function() {\r\n\t\tif (expando.resizer) {\r\n\t\t\tvar container = node.parentNode;\r\n\t\t\tif (container && container !== resizer.parentNode) {\r\n\t\t\t\tcontainer.insertBefore(resizer, container.firstChild);\r\n\t\t\t}\r\n\r\n\t\t\t// The container size might have changed, let's reset the resizer state.\r\n\t\t\tresizer._reset();\r\n\t\t}\r\n\t});\r\n}\r\n\r\nfunction removeResizeListener(node) {\r\n\tvar expando = node[EXPANDO_KEY] || {};\r\n\tvar resizer = expando.resizer;\r\n\r\n\tdelete expando.resizer;\r\n\tunwatchForRender(node);\r\n\r\n\tif (resizer && resizer.parentNode) {\r\n\t\tresizer.parentNode.removeChild(resizer);\r\n\t}\r\n}\r\n\r\n/**\r\n * Injects CSS styles inline if the styles are not already present.\r\n * @param {HTMLDocument|ShadowRoot} rootNode - the node to contain the <style>.\r\n * @param {string} css - the CSS to be injected.\r\n */\r\nfunction injectCSS(rootNode, css) {\r\n\t// https://stackoverflow.com/q/3922139\r\n\tvar expando = rootNode[EXPANDO_KEY] || (rootNode[EXPANDO_KEY] = {});\r\n\tif (!expando.containsStyles) {\r\n\t\texpando.containsStyles = true;\r\n\t\tcss = '/* Chart.js */\\n' + css;\r\n\t\tvar style = document.createElement('style');\r\n\t\tstyle.setAttribute('type', 'text/css');\r\n\t\tstyle.appendChild(document.createTextNode(css));\r\n\t\trootNode.appendChild(style);\r\n\t}\r\n}\r\n\r\nvar platform_dom$2 = {\r\n\t/**\r\n\t * When `true`, prevents the automatic injection of the stylesheet required to\r\n\t * correctly detect when the chart is added to the DOM and then resized. This\r\n\t * switch has been added to allow external stylesheet (`dist/Chart(.min)?.js`)\r\n\t * to be manually imported to make this library compatible with any CSP.\r\n\t * See https://github.com/chartjs/Chart.js/issues/5208\r\n\t */\r\n\tdisableCSSInjection: false,\r\n\r\n\t/**\r\n\t * This property holds whether this platform is enabled for the current environment.\r\n\t * Currently used by platform.js to select the proper implementation.\r\n\t * @private\r\n\t */\r\n\t_enabled: typeof window !== 'undefined' && typeof document !== 'undefined',\r\n\r\n\t/**\r\n\t * Initializes resources that depend on platform options.\r\n\t * @param {HTMLCanvasElement} canvas - The Canvas element.\r\n\t * @private\r\n\t */\r\n\t_ensureLoaded: function(canvas) {\r\n\t\tif (!this.disableCSSInjection) {\r\n\t\t\t// If the canvas is in a shadow DOM, then the styles must also be inserted\r\n\t\t\t// into the same shadow DOM.\r\n\t\t\t// https://github.com/chartjs/Chart.js/issues/5763\r\n\t\t\tvar root = canvas.getRootNode ? canvas.getRootNode() : document;\r\n\t\t\tvar targetNode = root.host ? root : document.head;\r\n\t\t\tinjectCSS(targetNode, stylesheet);\r\n\t\t}\r\n\t},\r\n\r\n\tacquireContext: function(item, config) {\r\n\t\tif (typeof item === 'string') {\r\n\t\t\titem = document.getElementById(item);\r\n\t\t} else if (item.length) {\r\n\t\t\t// Support for array based queries (such as jQuery)\r\n\t\t\titem = item[0];\r\n\t\t}\r\n\r\n\t\tif (item && item.canvas) {\r\n\t\t\t// Support for any object associated to a canvas (including a context2d)\r\n\t\t\titem = item.canvas;\r\n\t\t}\r\n\r\n\t\t// To prevent canvas fingerprinting, some add-ons undefine the getContext\r\n\t\t// method, for example: https://github.com/kkapsner/CanvasBlocker\r\n\t\t// https://github.com/chartjs/Chart.js/issues/2807\r\n\t\tvar context = item && item.getContext && item.getContext('2d');\r\n\r\n\t\t// `instanceof HTMLCanvasElement/CanvasRenderingContext2D` fails when the item is\r\n\t\t// inside an iframe or when running in a protected environment. We could guess the\r\n\t\t// types from their toString() value but let's keep things flexible and assume it's\r\n\t\t// a sufficient condition if the item has a context2D which has item as `canvas`.\r\n\t\t// https://github.com/chartjs/Chart.js/issues/3887\r\n\t\t// https://github.com/chartjs/Chart.js/issues/4102\r\n\t\t// https://github.com/chartjs/Chart.js/issues/4152\r\n\t\tif (context && context.canvas === item) {\r\n\t\t\t// Load platform resources on first chart creation, to make it possible to\r\n\t\t\t// import the library before setting platform options.\r\n\t\t\tthis._ensureLoaded(item);\r\n\t\t\tinitCanvas(item, config);\r\n\t\t\treturn context;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t},\r\n\r\n\treleaseContext: function(context) {\r\n\t\tvar canvas = context.canvas;\r\n\t\tif (!canvas[EXPANDO_KEY]) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar initial = canvas[EXPANDO_KEY].initial;\r\n\t\t['height', 'width'].forEach(function(prop) {\r\n\t\t\tvar value = initial[prop];\r\n\t\t\tif (helpers$1.isNullOrUndef(value)) {\r\n\t\t\t\tcanvas.removeAttribute(prop);\r\n\t\t\t} else {\r\n\t\t\t\tcanvas.setAttribute(prop, value);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\thelpers$1.each(initial.style || {}, function(value, key) {\r\n\t\t\tcanvas.style[key] = value;\r\n\t\t});\r\n\r\n\t\t// The canvas render size might have been changed (and thus the state stack discarded),\r\n\t\t// we can't use save() and restore() to restore the initial state. So make sure that at\r\n\t\t// least the canvas context is reset to the default state by setting the canvas width.\r\n\t\t// https://www.w3.org/TR/2011/WD-html5-20110525/the-canvas-element.html\r\n\t\t// eslint-disable-next-line no-self-assign\r\n\t\tcanvas.width = canvas.width;\r\n\r\n\t\tdelete canvas[EXPANDO_KEY];\r\n\t},\r\n\r\n\taddEventListener: function(chart, type, listener) {\r\n\t\tvar canvas = chart.canvas;\r\n\t\tif (type === 'resize') {\r\n\t\t\t// Note: the resize event is not supported on all browsers.\r\n\t\t\taddResizeListener(canvas, listener, chart);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar expando = listener[EXPANDO_KEY] || (listener[EXPANDO_KEY] = {});\r\n\t\tvar proxies = expando.proxies || (expando.proxies = {});\r\n\t\tvar proxy = proxies[chart.id + '_' + type] = function(event) {\r\n\t\t\tlistener(fromNativeEvent(event, chart));\r\n\t\t};\r\n\r\n\t\taddListener(canvas, type, proxy);\r\n\t},\r\n\r\n\tremoveEventListener: function(chart, type, listener) {\r\n\t\tvar canvas = chart.canvas;\r\n\t\tif (type === 'resize') {\r\n\t\t\t// Note: the resize event is not supported on all browsers.\r\n\t\t\tremoveResizeListener(canvas);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar expando = listener[EXPANDO_KEY] || {};\r\n\t\tvar proxies = expando.proxies || {};\r\n\t\tvar proxy = proxies[chart.id + '_' + type];\r\n\t\tif (!proxy) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tremoveListener(canvas, type, proxy);\r\n\t}\r\n};\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use EventTarget.addEventListener instead.\r\n * EventTarget.addEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+\r\n * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener\r\n * @function Chart.helpers.addEvent\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers$1.addEvent = addListener;\r\n\r\n/**\r\n * Provided for backward compatibility, use EventTarget.removeEventListener instead.\r\n * EventTarget.removeEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+\r\n * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener\r\n * @function Chart.helpers.removeEvent\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers$1.removeEvent = removeListener;\n\n// @TODO Make possible to select another platform at build time.\r\nvar implementation = platform_dom$2._enabled ? platform_dom$2 : platform_basic;\r\n\r\n/**\r\n * @namespace Chart.platform\r\n * @see https://chartjs.gitbooks.io/proposals/content/Platform.html\r\n * @since 2.4.0\r\n */\r\nvar platform = helpers$1.extend({\r\n\t/**\r\n\t * @since 2.7.0\r\n\t */\r\n\tinitialize: function() {},\r\n\r\n\t/**\r\n\t * Called at chart construction time, returns a context2d instance implementing\r\n\t * the [W3C Canvas 2D Context API standard]{@link https://www.w3.org/TR/2dcontext/}.\r\n\t * @param {*} item - The native item from which to acquire context (platform specific)\r\n\t * @param {object} options - The chart options\r\n\t * @returns {CanvasRenderingContext2D} context2d instance\r\n\t */\r\n\tacquireContext: function() {},\r\n\r\n\t/**\r\n\t * Called at chart destruction time, releases any resources associated to the context\r\n\t * previously returned by the acquireContext() method.\r\n\t * @param {CanvasRenderingContext2D} context - The context2d instance\r\n\t * @returns {boolean} true if the method succeeded, else false\r\n\t */\r\n\treleaseContext: function() {},\r\n\r\n\t/**\r\n\t * Registers the specified listener on the given chart.\r\n\t * @param {Chart} chart - Chart from which to listen for event\r\n\t * @param {string} type - The ({@link IEvent}) type to listen for\r\n\t * @param {function} listener - Receives a notification (an object that implements\r\n\t * the {@link IEvent} interface) when an event of the specified type occurs.\r\n\t */\r\n\taddEventListener: function() {},\r\n\r\n\t/**\r\n\t * Removes the specified listener previously registered with addEventListener.\r\n\t * @param {Chart} chart - Chart from which to remove the listener\r\n\t * @param {string} type - The ({@link IEvent}) type to remove\r\n\t * @param {function} listener - The listener function to remove from the event target.\r\n\t */\r\n\tremoveEventListener: function() {}\r\n\r\n}, implementation);\n\ncore_defaults._set('global', {\r\n\tplugins: {}\r\n});\r\n\r\n/**\r\n * The plugin service singleton\r\n * @namespace Chart.plugins\r\n * @since 2.1.0\r\n */\r\nvar core_plugins = {\r\n\t/**\r\n\t * Globally registered plugins.\r\n\t * @private\r\n\t */\r\n\t_plugins: [],\r\n\r\n\t/**\r\n\t * This identifier is used to invalidate the descriptors cache attached to each chart\r\n\t * when a global plugin is registered or unregistered. In this case, the cache ID is\r\n\t * incremented and descriptors are regenerated during following API calls.\r\n\t * @private\r\n\t */\r\n\t_cacheId: 0,\r\n\r\n\t/**\r\n\t * Registers the given plugin(s) if not already registered.\r\n\t * @param {IPlugin[]|IPlugin} plugins plugin instance(s).\r\n\t */\r\n\tregister: function(plugins) {\r\n\t\tvar p = this._plugins;\r\n\t\t([]).concat(plugins).forEach(function(plugin) {\r\n\t\t\tif (p.indexOf(plugin) === -1) {\r\n\t\t\t\tp.push(plugin);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis._cacheId++;\r\n\t},\r\n\r\n\t/**\r\n\t * Unregisters the given plugin(s) only if registered.\r\n\t * @param {IPlugin[]|IPlugin} plugins plugin instance(s).\r\n\t */\r\n\tunregister: function(plugins) {\r\n\t\tvar p = this._plugins;\r\n\t\t([]).concat(plugins).forEach(function(plugin) {\r\n\t\t\tvar idx = p.indexOf(plugin);\r\n\t\t\tif (idx !== -1) {\r\n\t\t\t\tp.splice(idx, 1);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis._cacheId++;\r\n\t},\r\n\r\n\t/**\r\n\t * Remove all registered plugins.\r\n\t * @since 2.1.5\r\n\t */\r\n\tclear: function() {\r\n\t\tthis._plugins = [];\r\n\t\tthis._cacheId++;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the number of registered plugins?\r\n\t * @returns {number}\r\n\t * @since 2.1.5\r\n\t */\r\n\tcount: function() {\r\n\t\treturn this._plugins.length;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns all registered plugin instances.\r\n\t * @returns {IPlugin[]} array of plugin objects.\r\n\t * @since 2.1.5\r\n\t */\r\n\tgetAll: function() {\r\n\t\treturn this._plugins;\r\n\t},\r\n\r\n\t/**\r\n\t * Calls enabled plugins for `chart` on the specified hook and with the given args.\r\n\t * This method immediately returns as soon as a plugin explicitly returns false. The\r\n\t * returned value can be used, for instance, to interrupt the current action.\r\n\t * @param {Chart} chart - The chart instance for which plugins should be called.\r\n\t * @param {string} hook - The name of the plugin method to call (e.g. 'beforeUpdate').\r\n\t * @param {Array} [args] - Extra arguments to apply to the hook call.\r\n\t * @returns {boolean} false if any of the plugins return false, else returns true.\r\n\t */\r\n\tnotify: function(chart, hook, args) {\r\n\t\tvar descriptors = this.descriptors(chart);\r\n\t\tvar ilen = descriptors.length;\r\n\t\tvar i, descriptor, plugin, params, method;\r\n\r\n\t\tfor (i = 0; i < ilen; ++i) {\r\n\t\t\tdescriptor = descriptors[i];\r\n\t\t\tplugin = descriptor.plugin;\r\n\t\t\tmethod = plugin[hook];\r\n\t\t\tif (typeof method === 'function') {\r\n\t\t\t\tparams = [chart].concat(args || []);\r\n\t\t\t\tparams.push(descriptor.options);\r\n\t\t\t\tif (method.apply(plugin, params) === false) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns descriptors of enabled plugins for the given chart.\r\n\t * @returns {object[]} [{ plugin, options }]\r\n\t * @private\r\n\t */\r\n\tdescriptors: function(chart) {\r\n\t\tvar cache = chart.$plugins || (chart.$plugins = {});\r\n\t\tif (cache.id === this._cacheId) {\r\n\t\t\treturn cache.descriptors;\r\n\t\t}\r\n\r\n\t\tvar plugins = [];\r\n\t\tvar descriptors = [];\r\n\t\tvar config = (chart && chart.config) || {};\r\n\t\tvar options = (config.options && config.options.plugins) || {};\r\n\r\n\t\tthis._plugins.concat(config.plugins || []).forEach(function(plugin) {\r\n\t\t\tvar idx = plugins.indexOf(plugin);\r\n\t\t\tif (idx !== -1) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tvar id = plugin.id;\r\n\t\t\tvar opts = options[id];\r\n\t\t\tif (opts === false) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif (opts === true) {\r\n\t\t\t\topts = helpers$1.clone(core_defaults.global.plugins[id]);\r\n\t\t\t}\r\n\r\n\t\t\tplugins.push(plugin);\r\n\t\t\tdescriptors.push({\r\n\t\t\t\tplugin: plugin,\r\n\t\t\t\toptions: opts || {}\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\tcache.descriptors = descriptors;\r\n\t\tcache.id = this._cacheId;\r\n\t\treturn descriptors;\r\n\t},\r\n\r\n\t/**\r\n\t * Invalidates cache for the given chart: descriptors hold a reference on plugin option,\r\n\t * but in some cases, this reference can be changed by the user when updating options.\r\n\t * https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167\r\n\t * @private\r\n\t */\r\n\t_invalidate: function(chart) {\r\n\t\tdelete chart.$plugins;\r\n\t}\r\n};\n\nvar core_scaleService = {\r\n\t// Scale registration object. Extensions can register new scale types (such as log or DB scales) and then\r\n\t// use the new chart options to grab the correct scale\r\n\tconstructors: {},\r\n\t// Use a registration function so that we can move to an ES6 map when we no longer need to support\r\n\t// old browsers\r\n\r\n\t// Scale config defaults\r\n\tdefaults: {},\r\n\tregisterScaleType: function(type, scaleConstructor, scaleDefaults) {\r\n\t\tthis.constructors[type] = scaleConstructor;\r\n\t\tthis.defaults[type] = helpers$1.clone(scaleDefaults);\r\n\t},\r\n\tgetScaleConstructor: function(type) {\r\n\t\treturn this.constructors.hasOwnProperty(type) ? this.constructors[type] : undefined;\r\n\t},\r\n\tgetScaleDefaults: function(type) {\r\n\t\t// Return the scale defaults merged with the global settings so that we always use the latest ones\r\n\t\treturn this.defaults.hasOwnProperty(type) ? helpers$1.merge(Object.create(null), [core_defaults.scale, this.defaults[type]]) : {};\r\n\t},\r\n\tupdateScaleDefaults: function(type, additions) {\r\n\t\tvar me = this;\r\n\t\tif (me.defaults.hasOwnProperty(type)) {\r\n\t\t\tme.defaults[type] = helpers$1.extend(me.defaults[type], additions);\r\n\t\t}\r\n\t},\r\n\taddScalesToLayout: function(chart) {\r\n\t\t// Adds each scale to the chart.boxes array to be sized accordingly\r\n\t\thelpers$1.each(chart.scales, function(scale) {\r\n\t\t\t// Set ILayoutItem parameters for backwards compatibility\r\n\t\t\tscale.fullWidth = scale.options.fullWidth;\r\n\t\t\tscale.position = scale.options.position;\r\n\t\t\tscale.weight = scale.options.weight;\r\n\t\t\tcore_layouts.addBox(chart, scale);\r\n\t\t});\r\n\t}\r\n};\n\nvar valueOrDefault$8 = helpers$1.valueOrDefault;\r\nvar getRtlHelper = helpers$1.rtl.getRtlAdapter;\r\n\r\ncore_defaults._set('global', {\r\n\ttooltips: {\r\n\t\tenabled: true,\r\n\t\tcustom: null,\r\n\t\tmode: 'nearest',\r\n\t\tposition: 'average',\r\n\t\tintersect: true,\r\n\t\tbackgroundColor: 'rgba(0,0,0,0.8)',\r\n\t\ttitleFontStyle: 'bold',\r\n\t\ttitleSpacing: 2,\r\n\t\ttitleMarginBottom: 6,\r\n\t\ttitleFontColor: '#fff',\r\n\t\ttitleAlign: 'left',\r\n\t\tbodySpacing: 2,\r\n\t\tbodyFontColor: '#fff',\r\n\t\tbodyAlign: 'left',\r\n\t\tfooterFontStyle: 'bold',\r\n\t\tfooterSpacing: 2,\r\n\t\tfooterMarginTop: 6,\r\n\t\tfooterFontColor: '#fff',\r\n\t\tfooterAlign: 'left',\r\n\t\tyPadding: 6,\r\n\t\txPadding: 6,\r\n\t\tcaretPadding: 2,\r\n\t\tcaretSize: 5,\r\n\t\tcornerRadius: 6,\r\n\t\tmultiKeyBackground: '#fff',\r\n\t\tdisplayColors: true,\r\n\t\tborderColor: 'rgba(0,0,0,0)',\r\n\t\tborderWidth: 0,\r\n\t\tcallbacks: {\r\n\t\t\t// Args are: (tooltipItems, data)\r\n\t\t\tbeforeTitle: helpers$1.noop,\r\n\t\t\ttitle: function(tooltipItems, data) {\r\n\t\t\t\tvar title = '';\r\n\t\t\t\tvar labels = data.labels;\r\n\t\t\t\tvar labelCount = labels ? labels.length : 0;\r\n\r\n\t\t\t\tif (tooltipItems.length > 0) {\r\n\t\t\t\t\tvar item = tooltipItems[0];\r\n\t\t\t\t\tif (item.label) {\r\n\t\t\t\t\t\ttitle = item.label;\r\n\t\t\t\t\t} else if (item.xLabel) {\r\n\t\t\t\t\t\ttitle = item.xLabel;\r\n\t\t\t\t\t} else if (labelCount > 0 && item.index < labelCount) {\r\n\t\t\t\t\t\ttitle = labels[item.index];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn title;\r\n\t\t\t},\r\n\t\t\tafterTitle: helpers$1.noop,\r\n\r\n\t\t\t// Args are: (tooltipItems, data)\r\n\t\t\tbeforeBody: helpers$1.noop,\r\n\r\n\t\t\t// Args are: (tooltipItem, data)\r\n\t\t\tbeforeLabel: helpers$1.noop,\r\n\t\t\tlabel: function(tooltipItem, data) {\r\n\t\t\t\tvar label = data.datasets[tooltipItem.datasetIndex].label || '';\r\n\r\n\t\t\t\tif (label) {\r\n\t\t\t\t\tlabel += ': ';\r\n\t\t\t\t}\r\n\t\t\t\tif (!helpers$1.isNullOrUndef(tooltipItem.value)) {\r\n\t\t\t\t\tlabel += tooltipItem.value;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlabel += tooltipItem.yLabel;\r\n\t\t\t\t}\r\n\t\t\t\treturn label;\r\n\t\t\t},\r\n\t\t\tlabelColor: function(tooltipItem, chart) {\r\n\t\t\t\tvar meta = chart.getDatasetMeta(tooltipItem.datasetIndex);\r\n\t\t\t\tvar activeElement = meta.data[tooltipItem.index];\r\n\t\t\t\tvar view = activeElement._view;\r\n\t\t\t\treturn {\r\n\t\t\t\t\tborderColor: view.borderColor,\r\n\t\t\t\t\tbackgroundColor: view.backgroundColor\r\n\t\t\t\t};\r\n\t\t\t},\r\n\t\t\tlabelTextColor: function() {\r\n\t\t\t\treturn this._options.bodyFontColor;\r\n\t\t\t},\r\n\t\t\tafterLabel: helpers$1.noop,\r\n\r\n\t\t\t// Args are: (tooltipItems, data)\r\n\t\t\tafterBody: helpers$1.noop,\r\n\r\n\t\t\t// Args are: (tooltipItems, data)\r\n\t\t\tbeforeFooter: helpers$1.noop,\r\n\t\t\tfooter: helpers$1.noop,\r\n\t\t\tafterFooter: helpers$1.noop\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar positioners = {\r\n\t/**\r\n\t * Average mode places the tooltip at the average position of the elements shown\r\n\t * @function Chart.Tooltip.positioners.average\r\n\t * @param elements {ChartElement[]} the elements being displayed in the tooltip\r\n\t * @returns {object} tooltip position\r\n\t */\r\n\taverage: function(elements) {\r\n\t\tif (!elements.length) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvar i, len;\r\n\t\tvar x = 0;\r\n\t\tvar y = 0;\r\n\t\tvar count = 0;\r\n\r\n\t\tfor (i = 0, len = elements.length; i < len; ++i) {\r\n\t\t\tvar el = elements[i];\r\n\t\t\tif (el && el.hasValue()) {\r\n\t\t\t\tvar pos = el.tooltipPosition();\r\n\t\t\t\tx += pos.x;\r\n\t\t\t\ty += pos.y;\r\n\t\t\t\t++count;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tx: x / count,\r\n\t\t\ty: y / count\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * Gets the tooltip position nearest of the item nearest to the event position\r\n\t * @function Chart.Tooltip.positioners.nearest\r\n\t * @param elements {Chart.Element[]} the tooltip elements\r\n\t * @param eventPosition {object} the position of the event in canvas coordinates\r\n\t * @returns {object} the tooltip position\r\n\t */\r\n\tnearest: function(elements, eventPosition) {\r\n\t\tvar x = eventPosition.x;\r\n\t\tvar y = eventPosition.y;\r\n\t\tvar minDistance = Number.POSITIVE_INFINITY;\r\n\t\tvar i, len, nearestElement;\r\n\r\n\t\tfor (i = 0, len = elements.length; i < len; ++i) {\r\n\t\t\tvar el = elements[i];\r\n\t\t\tif (el && el.hasValue()) {\r\n\t\t\t\tvar center = el.getCenterPoint();\r\n\t\t\t\tvar d = helpers$1.distanceBetweenPoints(eventPosition, center);\r\n\r\n\t\t\t\tif (d < minDistance) {\r\n\t\t\t\t\tminDistance = d;\r\n\t\t\t\t\tnearestElement = el;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (nearestElement) {\r\n\t\t\tvar tp = nearestElement.tooltipPosition();\r\n\t\t\tx = tp.x;\r\n\t\t\ty = tp.y;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tx: x,\r\n\t\t\ty: y\r\n\t\t};\r\n\t}\r\n};\r\n\r\n// Helper to push or concat based on if the 2nd parameter is an array or not\r\nfunction pushOrConcat(base, toPush) {\r\n\tif (toPush) {\r\n\t\tif (helpers$1.isArray(toPush)) {\r\n\t\t\t// base = base.concat(toPush);\r\n\t\t\tArray.prototype.push.apply(base, toPush);\r\n\t\t} else {\r\n\t\t\tbase.push(toPush);\r\n\t\t}\r\n\t}\r\n\r\n\treturn base;\r\n}\r\n\r\n/**\r\n * Returns array of strings split by newline\r\n * @param {string} value - The value to split by newline.\r\n * @returns {string[]} value if newline present - Returned from String split() method\r\n * @function\r\n */\r\nfunction splitNewlines(str) {\r\n\tif ((typeof str === 'string' || str instanceof String) && str.indexOf('\\n') > -1) {\r\n\t\treturn str.split('\\n');\r\n\t}\r\n\treturn str;\r\n}\r\n\r\n\r\n/**\r\n * Private helper to create a tooltip item model\r\n * @param element - the chart element (point, arc, bar) to create the tooltip item for\r\n * @return new tooltip item\r\n */\r\nfunction createTooltipItem(element) {\r\n\tvar xScale = element._xScale;\r\n\tvar yScale = element._yScale || element._scale; // handle radar || polarArea charts\r\n\tvar index = element._index;\r\n\tvar datasetIndex = element._datasetIndex;\r\n\tvar controller = element._chart.getDatasetMeta(datasetIndex).controller;\r\n\tvar indexScale = controller._getIndexScale();\r\n\tvar valueScale = controller._getValueScale();\r\n\r\n\treturn {\r\n\t\txLabel: xScale ? xScale.getLabelForIndex(index, datasetIndex) : '',\r\n\t\tyLabel: yScale ? yScale.getLabelForIndex(index, datasetIndex) : '',\r\n\t\tlabel: indexScale ? '' + indexScale.getLabelForIndex(index, datasetIndex) : '',\r\n\t\tvalue: valueScale ? '' + valueScale.getLabelForIndex(index, datasetIndex) : '',\r\n\t\tindex: index,\r\n\t\tdatasetIndex: datasetIndex,\r\n\t\tx: element._model.x,\r\n\t\ty: element._model.y\r\n\t};\r\n}\r\n\r\n/**\r\n * Helper to get the reset model for the tooltip\r\n * @param tooltipOpts {object} the tooltip options\r\n */\r\nfunction getBaseModel(tooltipOpts) {\r\n\tvar globalDefaults = core_defaults.global;\r\n\r\n\treturn {\r\n\t\t// Positioning\r\n\t\txPadding: tooltipOpts.xPadding,\r\n\t\tyPadding: tooltipOpts.yPadding,\r\n\t\txAlign: tooltipOpts.xAlign,\r\n\t\tyAlign: tooltipOpts.yAlign,\r\n\r\n\t\t// Drawing direction and text direction\r\n\t\trtl: tooltipOpts.rtl,\r\n\t\ttextDirection: tooltipOpts.textDirection,\r\n\r\n\t\t// Body\r\n\t\tbodyFontColor: tooltipOpts.bodyFontColor,\r\n\t\t_bodyFontFamily: valueOrDefault$8(tooltipOpts.bodyFontFamily, globalDefaults.defaultFontFamily),\r\n\t\t_bodyFontStyle: valueOrDefault$8(tooltipOpts.bodyFontStyle, globalDefaults.defaultFontStyle),\r\n\t\t_bodyAlign: tooltipOpts.bodyAlign,\r\n\t\tbodyFontSize: valueOrDefault$8(tooltipOpts.bodyFontSize, globalDefaults.defaultFontSize),\r\n\t\tbodySpacing: tooltipOpts.bodySpacing,\r\n\r\n\t\t// Title\r\n\t\ttitleFontColor: tooltipOpts.titleFontColor,\r\n\t\t_titleFontFamily: valueOrDefault$8(tooltipOpts.titleFontFamily, globalDefaults.defaultFontFamily),\r\n\t\t_titleFontStyle: valueOrDefault$8(tooltipOpts.titleFontStyle, globalDefaults.defaultFontStyle),\r\n\t\ttitleFontSize: valueOrDefault$8(tooltipOpts.titleFontSize, globalDefaults.defaultFontSize),\r\n\t\t_titleAlign: tooltipOpts.titleAlign,\r\n\t\ttitleSpacing: tooltipOpts.titleSpacing,\r\n\t\ttitleMarginBottom: tooltipOpts.titleMarginBottom,\r\n\r\n\t\t// Footer\r\n\t\tfooterFontColor: tooltipOpts.footerFontColor,\r\n\t\t_footerFontFamily: valueOrDefault$8(tooltipOpts.footerFontFamily, globalDefaults.defaultFontFamily),\r\n\t\t_footerFontStyle: valueOrDefault$8(tooltipOpts.footerFontStyle, globalDefaults.defaultFontStyle),\r\n\t\tfooterFontSize: valueOrDefault$8(tooltipOpts.footerFontSize, globalDefaults.defaultFontSize),\r\n\t\t_footerAlign: tooltipOpts.footerAlign,\r\n\t\tfooterSpacing: tooltipOpts.footerSpacing,\r\n\t\tfooterMarginTop: tooltipOpts.footerMarginTop,\r\n\r\n\t\t// Appearance\r\n\t\tcaretSize: tooltipOpts.caretSize,\r\n\t\tcornerRadius: tooltipOpts.cornerRadius,\r\n\t\tbackgroundColor: tooltipOpts.backgroundColor,\r\n\t\topacity: 0,\r\n\t\tlegendColorBackground: tooltipOpts.multiKeyBackground,\r\n\t\tdisplayColors: tooltipOpts.displayColors,\r\n\t\tborderColor: tooltipOpts.borderColor,\r\n\t\tborderWidth: tooltipOpts.borderWidth\r\n\t};\r\n}\r\n\r\n/**\r\n * Get the size of the tooltip\r\n */\r\nfunction getTooltipSize(tooltip, model) {\r\n\tvar ctx = tooltip._chart.ctx;\r\n\r\n\tvar height = model.yPadding * 2; // Tooltip Padding\r\n\tvar width = 0;\r\n\r\n\t// Count of all lines in the body\r\n\tvar body = model.body;\r\n\tvar combinedBodyLength = body.reduce(function(count, bodyItem) {\r\n\t\treturn count + bodyItem.before.length + bodyItem.lines.length + bodyItem.after.length;\r\n\t}, 0);\r\n\tcombinedBodyLength += model.beforeBody.length + model.afterBody.length;\r\n\r\n\tvar titleLineCount = model.title.length;\r\n\tvar footerLineCount = model.footer.length;\r\n\tvar titleFontSize = model.titleFontSize;\r\n\tvar bodyFontSize = model.bodyFontSize;\r\n\tvar footerFontSize = model.footerFontSize;\r\n\r\n\theight += titleLineCount * titleFontSize; // Title Lines\r\n\theight += titleLineCount ? (titleLineCount - 1) * model.titleSpacing : 0; // Title Line Spacing\r\n\theight += titleLineCount ? model.titleMarginBottom : 0; // Title's bottom Margin\r\n\theight += combinedBodyLength * bodyFontSize; // Body Lines\r\n\theight += combinedBodyLength ? (combinedBodyLength - 1) * model.bodySpacing : 0; // Body Line Spacing\r\n\theight += footerLineCount ? model.footerMarginTop : 0; // Footer Margin\r\n\theight += footerLineCount * (footerFontSize); // Footer Lines\r\n\theight += footerLineCount ? (footerLineCount - 1) * model.footerSpacing : 0; // Footer Line Spacing\r\n\r\n\t// Title width\r\n\tvar widthPadding = 0;\r\n\tvar maxLineWidth = function(line) {\r\n\t\twidth = Math.max(width, ctx.measureText(line).width + widthPadding);\r\n\t};\r\n\r\n\tctx.font = helpers$1.fontString(titleFontSize, model._titleFontStyle, model._titleFontFamily);\r\n\thelpers$1.each(model.title, maxLineWidth);\r\n\r\n\t// Body width\r\n\tctx.font = helpers$1.fontString(bodyFontSize, model._bodyFontStyle, model._bodyFontFamily);\r\n\thelpers$1.each(model.beforeBody.concat(model.afterBody), maxLineWidth);\r\n\r\n\t// Body lines may include some extra width due to the color box\r\n\twidthPadding = model.displayColors ? (bodyFontSize + 2) : 0;\r\n\thelpers$1.each(body, function(bodyItem) {\r\n\t\thelpers$1.each(bodyItem.before, maxLineWidth);\r\n\t\thelpers$1.each(bodyItem.lines, maxLineWidth);\r\n\t\thelpers$1.each(bodyItem.after, maxLineWidth);\r\n\t});\r\n\r\n\t// Reset back to 0\r\n\twidthPadding = 0;\r\n\r\n\t// Footer width\r\n\tctx.font = helpers$1.fontString(footerFontSize, model._footerFontStyle, model._footerFontFamily);\r\n\thelpers$1.each(model.footer, maxLineWidth);\r\n\r\n\t// Add padding\r\n\twidth += 2 * model.xPadding;\r\n\r\n\treturn {\r\n\t\twidth: width,\r\n\t\theight: height\r\n\t};\r\n}\r\n\r\n/**\r\n * Helper to get the alignment of a tooltip given the size\r\n */\r\nfunction determineAlignment(tooltip, size) {\r\n\tvar model = tooltip._model;\r\n\tvar chart = tooltip._chart;\r\n\tvar chartArea = tooltip._chart.chartArea;\r\n\tvar xAlign = 'center';\r\n\tvar yAlign = 'center';\r\n\r\n\tif (model.y < size.height) {\r\n\t\tyAlign = 'top';\r\n\t} else if (model.y > (chart.height - size.height)) {\r\n\t\tyAlign = 'bottom';\r\n\t}\r\n\r\n\tvar lf, rf; // functions to determine left, right alignment\r\n\tvar olf, orf; // functions to determine if left/right alignment causes tooltip to go outside chart\r\n\tvar yf; // function to get the y alignment if the tooltip goes outside of the left or right edges\r\n\tvar midX = (chartArea.left + chartArea.right) / 2;\r\n\tvar midY = (chartArea.top + chartArea.bottom) / 2;\r\n\r\n\tif (yAlign === 'center') {\r\n\t\tlf = function(x) {\r\n\t\t\treturn x <= midX;\r\n\t\t};\r\n\t\trf = function(x) {\r\n\t\t\treturn x > midX;\r\n\t\t};\r\n\t} else {\r\n\t\tlf = function(x) {\r\n\t\t\treturn x <= (size.width / 2);\r\n\t\t};\r\n\t\trf = function(x) {\r\n\t\t\treturn x >= (chart.width - (size.width / 2));\r\n\t\t};\r\n\t}\r\n\r\n\tolf = function(x) {\r\n\t\treturn x + size.width + model.caretSize + model.caretPadding > chart.width;\r\n\t};\r\n\torf = function(x) {\r\n\t\treturn x - size.width - model.caretSize - model.caretPadding < 0;\r\n\t};\r\n\tyf = function(y) {\r\n\t\treturn y <= midY ? 'top' : 'bottom';\r\n\t};\r\n\r\n\tif (lf(model.x)) {\r\n\t\txAlign = 'left';\r\n\r\n\t\t// Is tooltip too wide and goes over the right side of the chart.?\r\n\t\tif (olf(model.x)) {\r\n\t\t\txAlign = 'center';\r\n\t\t\tyAlign = yf(model.y);\r\n\t\t}\r\n\t} else if (rf(model.x)) {\r\n\t\txAlign = 'right';\r\n\r\n\t\t// Is tooltip too wide and goes outside left edge of canvas?\r\n\t\tif (orf(model.x)) {\r\n\t\t\txAlign = 'center';\r\n\t\t\tyAlign = yf(model.y);\r\n\t\t}\r\n\t}\r\n\r\n\tvar opts = tooltip._options;\r\n\treturn {\r\n\t\txAlign: opts.xAlign ? opts.xAlign : xAlign,\r\n\t\tyAlign: opts.yAlign ? opts.yAlign : yAlign\r\n\t};\r\n}\r\n\r\n/**\r\n * Helper to get the location a tooltip needs to be placed at given the initial position (via the vm) and the size and alignment\r\n */\r\nfunction getBackgroundPoint(vm, size, alignment, chart) {\r\n\t// Background Position\r\n\tvar x = vm.x;\r\n\tvar y = vm.y;\r\n\r\n\tvar caretSize = vm.caretSize;\r\n\tvar caretPadding = vm.caretPadding;\r\n\tvar cornerRadius = vm.cornerRadius;\r\n\tvar xAlign = alignment.xAlign;\r\n\tvar yAlign = alignment.yAlign;\r\n\tvar paddingAndSize = caretSize + caretPadding;\r\n\tvar radiusAndPadding = cornerRadius + caretPadding;\r\n\r\n\tif (xAlign === 'right') {\r\n\t\tx -= size.width;\r\n\t} else if (xAlign === 'center') {\r\n\t\tx -= (size.width / 2);\r\n\t\tif (x + size.width > chart.width) {\r\n\t\t\tx = chart.width - size.width;\r\n\t\t}\r\n\t\tif (x < 0) {\r\n\t\t\tx = 0;\r\n\t\t}\r\n\t}\r\n\r\n\tif (yAlign === 'top') {\r\n\t\ty += paddingAndSize;\r\n\t} else if (yAlign === 'bottom') {\r\n\t\ty -= size.height + paddingAndSize;\r\n\t} else {\r\n\t\ty -= (size.height / 2);\r\n\t}\r\n\r\n\tif (yAlign === 'center') {\r\n\t\tif (xAlign === 'left') {\r\n\t\t\tx += paddingAndSize;\r\n\t\t} else if (xAlign === 'right') {\r\n\t\t\tx -= paddingAndSize;\r\n\t\t}\r\n\t} else if (xAlign === 'left') {\r\n\t\tx -= radiusAndPadding;\r\n\t} else if (xAlign === 'right') {\r\n\t\tx += radiusAndPadding;\r\n\t}\r\n\r\n\treturn {\r\n\t\tx: x,\r\n\t\ty: y\r\n\t};\r\n}\r\n\r\nfunction getAlignedX(vm, align) {\r\n\treturn align === 'center'\r\n\t\t? vm.x + vm.width / 2\r\n\t\t: align === 'right'\r\n\t\t\t? vm.x + vm.width - vm.xPadding\r\n\t\t\t: vm.x + vm.xPadding;\r\n}\r\n\r\n/**\r\n * Helper to build before and after body lines\r\n */\r\nfunction getBeforeAfterBodyLines(callback) {\r\n\treturn pushOrConcat([], splitNewlines(callback));\r\n}\r\n\r\nvar exports$4 = core_element.extend({\r\n\tinitialize: function() {\r\n\t\tthis._model = getBaseModel(this._options);\r\n\t\tthis._lastActive = [];\r\n\t},\r\n\r\n\t// Get the title\r\n\t// Args are: (tooltipItem, data)\r\n\tgetTitle: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me._options;\r\n\t\tvar callbacks = opts.callbacks;\r\n\r\n\t\tvar beforeTitle = callbacks.beforeTitle.apply(me, arguments);\r\n\t\tvar title = callbacks.title.apply(me, arguments);\r\n\t\tvar afterTitle = callbacks.afterTitle.apply(me, arguments);\r\n\r\n\t\tvar lines = [];\r\n\t\tlines = pushOrConcat(lines, splitNewlines(beforeTitle));\r\n\t\tlines = pushOrConcat(lines, splitNewlines(title));\r\n\t\tlines = pushOrConcat(lines, splitNewlines(afterTitle));\r\n\r\n\t\treturn lines;\r\n\t},\r\n\r\n\t// Args are: (tooltipItem, data)\r\n\tgetBeforeBody: function() {\r\n\t\treturn getBeforeAfterBodyLines(this._options.callbacks.beforeBody.apply(this, arguments));\r\n\t},\r\n\r\n\t// Args are: (tooltipItem, data)\r\n\tgetBody: function(tooltipItems, data) {\r\n\t\tvar me = this;\r\n\t\tvar callbacks = me._options.callbacks;\r\n\t\tvar bodyItems = [];\r\n\r\n\t\thelpers$1.each(tooltipItems, function(tooltipItem) {\r\n\t\t\tvar bodyItem = {\r\n\t\t\t\tbefore: [],\r\n\t\t\t\tlines: [],\r\n\t\t\t\tafter: []\r\n\t\t\t};\r\n\t\t\tpushOrConcat(bodyItem.before, splitNewlines(callbacks.beforeLabel.call(me, tooltipItem, data)));\r\n\t\t\tpushOrConcat(bodyItem.lines, callbacks.label.call(me, tooltipItem, data));\r\n\t\t\tpushOrConcat(bodyItem.after, splitNewlines(callbacks.afterLabel.call(me, tooltipItem, data)));\r\n\r\n\t\t\tbodyItems.push(bodyItem);\r\n\t\t});\r\n\r\n\t\treturn bodyItems;\r\n\t},\r\n\r\n\t// Args are: (tooltipItem, data)\r\n\tgetAfterBody: function() {\r\n\t\treturn getBeforeAfterBodyLines(this._options.callbacks.afterBody.apply(this, arguments));\r\n\t},\r\n\r\n\t// Get the footer and beforeFooter and afterFooter lines\r\n\t// Args are: (tooltipItem, data)\r\n\tgetFooter: function() {\r\n\t\tvar me = this;\r\n\t\tvar callbacks = me._options.callbacks;\r\n\r\n\t\tvar beforeFooter = callbacks.beforeFooter.apply(me, arguments);\r\n\t\tvar footer = callbacks.footer.apply(me, arguments);\r\n\t\tvar afterFooter = callbacks.afterFooter.apply(me, arguments);\r\n\r\n\t\tvar lines = [];\r\n\t\tlines = pushOrConcat(lines, splitNewlines(beforeFooter));\r\n\t\tlines = pushOrConcat(lines, splitNewlines(footer));\r\n\t\tlines = pushOrConcat(lines, splitNewlines(afterFooter));\r\n\r\n\t\treturn lines;\r\n\t},\r\n\r\n\tupdate: function(changed) {\r\n\t\tvar me = this;\r\n\t\tvar opts = me._options;\r\n\r\n\t\t// Need to regenerate the model because its faster than using extend and it is necessary due to the optimization in Chart.Element.transition\r\n\t\t// that does _view = _model if ease === 1. This causes the 2nd tooltip update to set properties in both the view and model at the same time\r\n\t\t// which breaks any animations.\r\n\t\tvar existingModel = me._model;\r\n\t\tvar model = me._model = getBaseModel(opts);\r\n\t\tvar active = me._active;\r\n\r\n\t\tvar data = me._data;\r\n\r\n\t\t// In the case where active.length === 0 we need to keep these at existing values for good animations\r\n\t\tvar alignment = {\r\n\t\t\txAlign: existingModel.xAlign,\r\n\t\t\tyAlign: existingModel.yAlign\r\n\t\t};\r\n\t\tvar backgroundPoint = {\r\n\t\t\tx: existingModel.x,\r\n\t\t\ty: existingModel.y\r\n\t\t};\r\n\t\tvar tooltipSize = {\r\n\t\t\twidth: existingModel.width,\r\n\t\t\theight: existingModel.height\r\n\t\t};\r\n\t\tvar tooltipPosition = {\r\n\t\t\tx: existingModel.caretX,\r\n\t\t\ty: existingModel.caretY\r\n\t\t};\r\n\r\n\t\tvar i, len;\r\n\r\n\t\tif (active.length) {\r\n\t\t\tmodel.opacity = 1;\r\n\r\n\t\t\tvar labelColors = [];\r\n\t\t\tvar labelTextColors = [];\r\n\t\t\ttooltipPosition = positioners[opts.position].call(me, active, me._eventPosition);\r\n\r\n\t\t\tvar tooltipItems = [];\r\n\t\t\tfor (i = 0, len = active.length; i < len; ++i) {\r\n\t\t\t\ttooltipItems.push(createTooltipItem(active[i]));\r\n\t\t\t}\r\n\r\n\t\t\t// If the user provided a filter function, use it to modify the tooltip items\r\n\t\t\tif (opts.filter) {\r\n\t\t\t\ttooltipItems = tooltipItems.filter(function(a) {\r\n\t\t\t\t\treturn opts.filter(a, data);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\t// If the user provided a sorting function, use it to modify the tooltip items\r\n\t\t\tif (opts.itemSort) {\r\n\t\t\t\ttooltipItems = tooltipItems.sort(function(a, b) {\r\n\t\t\t\t\treturn opts.itemSort(a, b, data);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\t// Determine colors for boxes\r\n\t\t\thelpers$1.each(tooltipItems, function(tooltipItem) {\r\n\t\t\t\tlabelColors.push(opts.callbacks.labelColor.call(me, tooltipItem, me._chart));\r\n\t\t\t\tlabelTextColors.push(opts.callbacks.labelTextColor.call(me, tooltipItem, me._chart));\r\n\t\t\t});\r\n\r\n\r\n\t\t\t// Build the Text Lines\r\n\t\t\tmodel.title = me.getTitle(tooltipItems, data);\r\n\t\t\tmodel.beforeBody = me.getBeforeBody(tooltipItems, data);\r\n\t\t\tmodel.body = me.getBody(tooltipItems, data);\r\n\t\t\tmodel.afterBody = me.getAfterBody(tooltipItems, data);\r\n\t\t\tmodel.footer = me.getFooter(tooltipItems, data);\r\n\r\n\t\t\t// Initial positioning and colors\r\n\t\t\tmodel.x = tooltipPosition.x;\r\n\t\t\tmodel.y = tooltipPosition.y;\r\n\t\t\tmodel.caretPadding = opts.caretPadding;\r\n\t\t\tmodel.labelColors = labelColors;\r\n\t\t\tmodel.labelTextColors = labelTextColors;\r\n\r\n\t\t\t// data points\r\n\t\t\tmodel.dataPoints = tooltipItems;\r\n\r\n\t\t\t// We need to determine alignment of the tooltip\r\n\t\t\ttooltipSize = getTooltipSize(this, model);\r\n\t\t\talignment = determineAlignment(this, tooltipSize);\r\n\t\t\t// Final Size and Position\r\n\t\t\tbackgroundPoint = getBackgroundPoint(model, tooltipSize, alignment, me._chart);\r\n\t\t} else {\r\n\t\t\tmodel.opacity = 0;\r\n\t\t}\r\n\r\n\t\tmodel.xAlign = alignment.xAlign;\r\n\t\tmodel.yAlign = alignment.yAlign;\r\n\t\tmodel.x = backgroundPoint.x;\r\n\t\tmodel.y = backgroundPoint.y;\r\n\t\tmodel.width = tooltipSize.width;\r\n\t\tmodel.height = tooltipSize.height;\r\n\r\n\t\t// Point where the caret on the tooltip points to\r\n\t\tmodel.caretX = tooltipPosition.x;\r\n\t\tmodel.caretY = tooltipPosition.y;\r\n\r\n\t\tme._model = model;\r\n\r\n\t\tif (changed && opts.custom) {\r\n\t\t\topts.custom.call(me, model);\r\n\t\t}\r\n\r\n\t\treturn me;\r\n\t},\r\n\r\n\tdrawCaret: function(tooltipPoint, size) {\r\n\t\tvar ctx = this._chart.ctx;\r\n\t\tvar vm = this._view;\r\n\t\tvar caretPosition = this.getCaretPosition(tooltipPoint, size, vm);\r\n\r\n\t\tctx.lineTo(caretPosition.x1, caretPosition.y1);\r\n\t\tctx.lineTo(caretPosition.x2, caretPosition.y2);\r\n\t\tctx.lineTo(caretPosition.x3, caretPosition.y3);\r\n\t},\r\n\tgetCaretPosition: function(tooltipPoint, size, vm) {\r\n\t\tvar x1, x2, x3, y1, y2, y3;\r\n\t\tvar caretSize = vm.caretSize;\r\n\t\tvar cornerRadius = vm.cornerRadius;\r\n\t\tvar xAlign = vm.xAlign;\r\n\t\tvar yAlign = vm.yAlign;\r\n\t\tvar ptX = tooltipPoint.x;\r\n\t\tvar ptY = tooltipPoint.y;\r\n\t\tvar width = size.width;\r\n\t\tvar height = size.height;\r\n\r\n\t\tif (yAlign === 'center') {\r\n\t\t\ty2 = ptY + (height / 2);\r\n\r\n\t\t\tif (xAlign === 'left') {\r\n\t\t\t\tx1 = ptX;\r\n\t\t\t\tx2 = x1 - caretSize;\r\n\t\t\t\tx3 = x1;\r\n\r\n\t\t\t\ty1 = y2 + caretSize;\r\n\t\t\t\ty3 = y2 - caretSize;\r\n\t\t\t} else {\r\n\t\t\t\tx1 = ptX + width;\r\n\t\t\t\tx2 = x1 + caretSize;\r\n\t\t\t\tx3 = x1;\r\n\r\n\t\t\t\ty1 = y2 - caretSize;\r\n\t\t\t\ty3 = y2 + caretSize;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (xAlign === 'left') {\r\n\t\t\t\tx2 = ptX + cornerRadius + (caretSize);\r\n\t\t\t\tx1 = x2 - caretSize;\r\n\t\t\t\tx3 = x2 + caretSize;\r\n\t\t\t} else if (xAlign === 'right') {\r\n\t\t\t\tx2 = ptX + width - cornerRadius - caretSize;\r\n\t\t\t\tx1 = x2 - caretSize;\r\n\t\t\t\tx3 = x2 + caretSize;\r\n\t\t\t} else {\r\n\t\t\t\tx2 = vm.caretX;\r\n\t\t\t\tx1 = x2 - caretSize;\r\n\t\t\t\tx3 = x2 + caretSize;\r\n\t\t\t}\r\n\t\t\tif (yAlign === 'top') {\r\n\t\t\t\ty1 = ptY;\r\n\t\t\t\ty2 = y1 - caretSize;\r\n\t\t\t\ty3 = y1;\r\n\t\t\t} else {\r\n\t\t\t\ty1 = ptY + height;\r\n\t\t\t\ty2 = y1 + caretSize;\r\n\t\t\t\ty3 = y1;\r\n\t\t\t\t// invert drawing order\r\n\t\t\t\tvar tmp = x3;\r\n\t\t\t\tx3 = x1;\r\n\t\t\t\tx1 = tmp;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn {x1: x1, x2: x2, x3: x3, y1: y1, y2: y2, y3: y3};\r\n\t},\r\n\r\n\tdrawTitle: function(pt, vm, ctx) {\r\n\t\tvar title = vm.title;\r\n\t\tvar length = title.length;\r\n\t\tvar titleFontSize, titleSpacing, i;\r\n\r\n\t\tif (length) {\r\n\t\t\tvar rtlHelper = getRtlHelper(vm.rtl, vm.x, vm.width);\r\n\r\n\t\t\tpt.x = getAlignedX(vm, vm._titleAlign);\r\n\r\n\t\t\tctx.textAlign = rtlHelper.textAlign(vm._titleAlign);\r\n\t\t\tctx.textBaseline = 'middle';\r\n\r\n\t\t\ttitleFontSize = vm.titleFontSize;\r\n\t\t\ttitleSpacing = vm.titleSpacing;\r\n\r\n\t\t\tctx.fillStyle = vm.titleFontColor;\r\n\t\t\tctx.font = helpers$1.fontString(titleFontSize, vm._titleFontStyle, vm._titleFontFamily);\r\n\r\n\t\t\tfor (i = 0; i < length; ++i) {\r\n\t\t\t\tctx.fillText(title[i], rtlHelper.x(pt.x), pt.y + titleFontSize / 2);\r\n\t\t\t\tpt.y += titleFontSize + titleSpacing; // Line Height and spacing\r\n\r\n\t\t\t\tif (i + 1 === length) {\r\n\t\t\t\t\tpt.y += vm.titleMarginBottom - titleSpacing; // If Last, add margin, remove spacing\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tdrawBody: function(pt, vm, ctx) {\r\n\t\tvar bodyFontSize = vm.bodyFontSize;\r\n\t\tvar bodySpacing = vm.bodySpacing;\r\n\t\tvar bodyAlign = vm._bodyAlign;\r\n\t\tvar body = vm.body;\r\n\t\tvar drawColorBoxes = vm.displayColors;\r\n\t\tvar xLinePadding = 0;\r\n\t\tvar colorX = drawColorBoxes ? getAlignedX(vm, 'left') : 0;\r\n\r\n\t\tvar rtlHelper = getRtlHelper(vm.rtl, vm.x, vm.width);\r\n\r\n\t\tvar fillLineOfText = function(line) {\r\n\t\t\tctx.fillText(line, rtlHelper.x(pt.x + xLinePadding), pt.y + bodyFontSize / 2);\r\n\t\t\tpt.y += bodyFontSize + bodySpacing;\r\n\t\t};\r\n\r\n\t\tvar bodyItem, textColor, labelColors, lines, i, j, ilen, jlen;\r\n\t\tvar bodyAlignForCalculation = rtlHelper.textAlign(bodyAlign);\r\n\r\n\t\tctx.textAlign = bodyAlign;\r\n\t\tctx.textBaseline = 'middle';\r\n\t\tctx.font = helpers$1.fontString(bodyFontSize, vm._bodyFontStyle, vm._bodyFontFamily);\r\n\r\n\t\tpt.x = getAlignedX(vm, bodyAlignForCalculation);\r\n\r\n\t\t// Before body lines\r\n\t\tctx.fillStyle = vm.bodyFontColor;\r\n\t\thelpers$1.each(vm.beforeBody, fillLineOfText);\r\n\r\n\t\txLinePadding = drawColorBoxes && bodyAlignForCalculation !== 'right'\r\n\t\t\t? bodyAlign === 'center' ? (bodyFontSize / 2 + 1) : (bodyFontSize + 2)\r\n\t\t\t: 0;\r\n\r\n\t\t// Draw body lines now\r\n\t\tfor (i = 0, ilen = body.length; i < ilen; ++i) {\r\n\t\t\tbodyItem = body[i];\r\n\t\t\ttextColor = vm.labelTextColors[i];\r\n\t\t\tlabelColors = vm.labelColors[i];\r\n\r\n\t\t\tctx.fillStyle = textColor;\r\n\t\t\thelpers$1.each(bodyItem.before, fillLineOfText);\r\n\r\n\t\t\tlines = bodyItem.lines;\r\n\t\t\tfor (j = 0, jlen = lines.length; j < jlen; ++j) {\r\n\t\t\t\t// Draw Legend-like boxes if needed\r\n\t\t\t\tif (drawColorBoxes) {\r\n\t\t\t\t\tvar rtlColorX = rtlHelper.x(colorX);\r\n\r\n\t\t\t\t\t// Fill a white rect so that colours merge nicely if the opacity is < 1\r\n\t\t\t\t\tctx.fillStyle = vm.legendColorBackground;\r\n\t\t\t\t\tctx.fillRect(rtlHelper.leftForLtr(rtlColorX, bodyFontSize), pt.y, bodyFontSize, bodyFontSize);\r\n\r\n\t\t\t\t\t// Border\r\n\t\t\t\t\tctx.lineWidth = 1;\r\n\t\t\t\t\tctx.strokeStyle = labelColors.borderColor;\r\n\t\t\t\t\tctx.strokeRect(rtlHelper.leftForLtr(rtlColorX, bodyFontSize), pt.y, bodyFontSize, bodyFontSize);\r\n\r\n\t\t\t\t\t// Inner square\r\n\t\t\t\t\tctx.fillStyle = labelColors.backgroundColor;\r\n\t\t\t\t\tctx.fillRect(rtlHelper.leftForLtr(rtlHelper.xPlus(rtlColorX, 1), bodyFontSize - 2), pt.y + 1, bodyFontSize - 2, bodyFontSize - 2);\r\n\t\t\t\t\tctx.fillStyle = textColor;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfillLineOfText(lines[j]);\r\n\t\t\t}\r\n\r\n\t\t\thelpers$1.each(bodyItem.after, fillLineOfText);\r\n\t\t}\r\n\r\n\t\t// Reset back to 0 for after body\r\n\t\txLinePadding = 0;\r\n\r\n\t\t// After body lines\r\n\t\thelpers$1.each(vm.afterBody, fillLineOfText);\r\n\t\tpt.y -= bodySpacing; // Remove last body spacing\r\n\t},\r\n\r\n\tdrawFooter: function(pt, vm, ctx) {\r\n\t\tvar footer = vm.footer;\r\n\t\tvar length = footer.length;\r\n\t\tvar footerFontSize, i;\r\n\r\n\t\tif (length) {\r\n\t\t\tvar rtlHelper = getRtlHelper(vm.rtl, vm.x, vm.width);\r\n\r\n\t\t\tpt.x = getAlignedX(vm, vm._footerAlign);\r\n\t\t\tpt.y += vm.footerMarginTop;\r\n\r\n\t\t\tctx.textAlign = rtlHelper.textAlign(vm._footerAlign);\r\n\t\t\tctx.textBaseline = 'middle';\r\n\r\n\t\t\tfooterFontSize = vm.footerFontSize;\r\n\r\n\t\t\tctx.fillStyle = vm.footerFontColor;\r\n\t\t\tctx.font = helpers$1.fontString(footerFontSize, vm._footerFontStyle, vm._footerFontFamily);\r\n\r\n\t\t\tfor (i = 0; i < length; ++i) {\r\n\t\t\t\tctx.fillText(footer[i], rtlHelper.x(pt.x), pt.y + footerFontSize / 2);\r\n\t\t\t\tpt.y += footerFontSize + vm.footerSpacing;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tdrawBackground: function(pt, vm, ctx, tooltipSize) {\r\n\t\tctx.fillStyle = vm.backgroundColor;\r\n\t\tctx.strokeStyle = vm.borderColor;\r\n\t\tctx.lineWidth = vm.borderWidth;\r\n\t\tvar xAlign = vm.xAlign;\r\n\t\tvar yAlign = vm.yAlign;\r\n\t\tvar x = pt.x;\r\n\t\tvar y = pt.y;\r\n\t\tvar width = tooltipSize.width;\r\n\t\tvar height = tooltipSize.height;\r\n\t\tvar radius = vm.cornerRadius;\r\n\r\n\t\tctx.beginPath();\r\n\t\tctx.moveTo(x + radius, y);\r\n\t\tif (yAlign === 'top') {\r\n\t\t\tthis.drawCaret(pt, tooltipSize);\r\n\t\t}\r\n\t\tctx.lineTo(x + width - radius, y);\r\n\t\tctx.quadraticCurveTo(x + width, y, x + width, y + radius);\r\n\t\tif (yAlign === 'center' && xAlign === 'right') {\r\n\t\t\tthis.drawCaret(pt, tooltipSize);\r\n\t\t}\r\n\t\tctx.lineTo(x + width, y + height - radius);\r\n\t\tctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);\r\n\t\tif (yAlign === 'bottom') {\r\n\t\t\tthis.drawCaret(pt, tooltipSize);\r\n\t\t}\r\n\t\tctx.lineTo(x + radius, y + height);\r\n\t\tctx.quadraticCurveTo(x, y + height, x, y + height - radius);\r\n\t\tif (yAlign === 'center' && xAlign === 'left') {\r\n\t\t\tthis.drawCaret(pt, tooltipSize);\r\n\t\t}\r\n\t\tctx.lineTo(x, y + radius);\r\n\t\tctx.quadraticCurveTo(x, y, x + radius, y);\r\n\t\tctx.closePath();\r\n\r\n\t\tctx.fill();\r\n\r\n\t\tif (vm.borderWidth > 0) {\r\n\t\t\tctx.stroke();\r\n\t\t}\r\n\t},\r\n\r\n\tdraw: function() {\r\n\t\tvar ctx = this._chart.ctx;\r\n\t\tvar vm = this._view;\r\n\r\n\t\tif (vm.opacity === 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar tooltipSize = {\r\n\t\t\twidth: vm.width,\r\n\t\t\theight: vm.height\r\n\t\t};\r\n\t\tvar pt = {\r\n\t\t\tx: vm.x,\r\n\t\t\ty: vm.y\r\n\t\t};\r\n\r\n\t\t// IE11/Edge does not like very small opacities, so snap to 0\r\n\t\tvar opacity = Math.abs(vm.opacity < 1e-3) ? 0 : vm.opacity;\r\n\r\n\t\t// Truthy/falsey value for empty tooltip\r\n\t\tvar hasTooltipContent = vm.title.length || vm.beforeBody.length || vm.body.length || vm.afterBody.length || vm.footer.length;\r\n\r\n\t\tif (this._options.enabled && hasTooltipContent) {\r\n\t\t\tctx.save();\r\n\t\t\tctx.globalAlpha = opacity;\r\n\r\n\t\t\t// Draw Background\r\n\t\t\tthis.drawBackground(pt, vm, ctx, tooltipSize);\r\n\r\n\t\t\t// Draw Title, Body, and Footer\r\n\t\t\tpt.y += vm.yPadding;\r\n\r\n\t\t\thelpers$1.rtl.overrideTextDirection(ctx, vm.textDirection);\r\n\r\n\t\t\t// Titles\r\n\t\t\tthis.drawTitle(pt, vm, ctx);\r\n\r\n\t\t\t// Body\r\n\t\t\tthis.drawBody(pt, vm, ctx);\r\n\r\n\t\t\t// Footer\r\n\t\t\tthis.drawFooter(pt, vm, ctx);\r\n\r\n\t\t\thelpers$1.rtl.restoreTextDirection(ctx, vm.textDirection);\r\n\r\n\t\t\tctx.restore();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Handle an event\r\n\t * @private\r\n\t * @param {IEvent} event - The event to handle\r\n\t * @returns {boolean} true if the tooltip changed\r\n\t */\r\n\thandleEvent: function(e) {\r\n\t\tvar me = this;\r\n\t\tvar options = me._options;\r\n\t\tvar changed = false;\r\n\r\n\t\tme._lastActive = me._lastActive || [];\r\n\r\n\t\t// Find Active Elements for tooltips\r\n\t\tif (e.type === 'mouseout') {\r\n\t\t\tme._active = [];\r\n\t\t} else {\r\n\t\t\tme._active = me._chart.getElementsAtEventForMode(e, options.mode, options);\r\n\t\t\tif (options.reverse) {\r\n\t\t\t\tme._active.reverse();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Remember Last Actives\r\n\t\tchanged = !helpers$1.arrayEquals(me._active, me._lastActive);\r\n\r\n\t\t// Only handle target event on tooltip change\r\n\t\tif (changed) {\r\n\t\t\tme._lastActive = me._active;\r\n\r\n\t\t\tif (options.enabled || options.custom) {\r\n\t\t\t\tme._eventPosition = {\r\n\t\t\t\t\tx: e.x,\r\n\t\t\t\t\ty: e.y\r\n\t\t\t\t};\r\n\r\n\t\t\t\tme.update(true);\r\n\t\t\t\tme.pivot();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn changed;\r\n\t}\r\n});\r\n\r\n/**\r\n * @namespace Chart.Tooltip.positioners\r\n */\r\nvar positioners_1 = positioners;\r\n\r\nvar core_tooltip = exports$4;\ncore_tooltip.positioners = positioners_1;\n\nvar valueOrDefault$9 = helpers$1.valueOrDefault;\r\n\r\ncore_defaults._set('global', {\r\n\telements: {},\r\n\tevents: [\r\n\t\t'mousemove',\r\n\t\t'mouseout',\r\n\t\t'click',\r\n\t\t'touchstart',\r\n\t\t'touchmove'\r\n\t],\r\n\thover: {\r\n\t\tonHover: null,\r\n\t\tmode: 'nearest',\r\n\t\tintersect: true,\r\n\t\tanimationDuration: 400\r\n\t},\r\n\tonClick: null,\r\n\tmaintainAspectRatio: true,\r\n\tresponsive: true,\r\n\tresponsiveAnimationDuration: 0\r\n});\r\n\r\n/**\r\n * Recursively merge the given config objects representing the `scales` option\r\n * by incorporating scale defaults in `xAxes` and `yAxes` array items, then\r\n * returns a deep copy of the result, thus doesn't alter inputs.\r\n */\r\nfunction mergeScaleConfig(/* config objects ... */) {\r\n\treturn helpers$1.merge(Object.create(null), [].slice.call(arguments), {\r\n\t\tmerger: function(key, target, source, options) {\r\n\t\t\tif (key === 'xAxes' || key === 'yAxes') {\r\n\t\t\t\tvar slen = source[key].length;\r\n\t\t\t\tvar i, type, scale;\r\n\r\n\t\t\t\tif (!target[key]) {\r\n\t\t\t\t\ttarget[key] = [];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (i = 0; i < slen; ++i) {\r\n\t\t\t\t\tscale = source[key][i];\r\n\t\t\t\t\ttype = valueOrDefault$9(scale.type, key === 'xAxes' ? 'category' : 'linear');\r\n\r\n\t\t\t\t\tif (i >= target[key].length) {\r\n\t\t\t\t\t\ttarget[key].push({});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (!target[key][i].type || (scale.type && scale.type !== target[key][i].type)) {\r\n\t\t\t\t\t\t// new/untyped scale or type changed: let's apply the new defaults\r\n\t\t\t\t\t\t// then merge source scale to correctly overwrite the defaults.\r\n\t\t\t\t\t\thelpers$1.merge(target[key][i], [core_scaleService.getScaleDefaults(type), scale]);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// scales type are the same\r\n\t\t\t\t\t\thelpers$1.merge(target[key][i], scale);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\thelpers$1._merger(key, target, source, options);\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}\r\n\r\n/**\r\n * Recursively merge the given config objects as the root options by handling\r\n * default scale options for the `scales` and `scale` properties, then returns\r\n * a deep copy of the result, thus doesn't alter inputs.\r\n */\r\nfunction mergeConfig(/* config objects ... */) {\r\n\treturn helpers$1.merge(Object.create(null), [].slice.call(arguments), {\r\n\t\tmerger: function(key, target, source, options) {\r\n\t\t\tvar tval = target[key] || Object.create(null);\r\n\t\t\tvar sval = source[key];\r\n\r\n\t\t\tif (key === 'scales') {\r\n\t\t\t\t// scale config merging is complex. Add our own function here for that\r\n\t\t\t\ttarget[key] = mergeScaleConfig(tval, sval);\r\n\t\t\t} else if (key === 'scale') {\r\n\t\t\t\t// used in polar area & radar charts since there is only one scale\r\n\t\t\t\ttarget[key] = helpers$1.merge(tval, [core_scaleService.getScaleDefaults(sval.type), sval]);\r\n\t\t\t} else {\r\n\t\t\t\thelpers$1._merger(key, target, source, options);\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}\r\n\r\nfunction initConfig(config) {\r\n\tconfig = config || Object.create(null);\r\n\r\n\t// Do NOT use mergeConfig for the data object because this method merges arrays\r\n\t// and so would change references to labels and datasets, preventing data updates.\r\n\tvar data = config.data = config.data || {};\r\n\tdata.datasets = data.datasets || [];\r\n\tdata.labels = data.labels || [];\r\n\r\n\tconfig.options = mergeConfig(\r\n\t\tcore_defaults.global,\r\n\t\tcore_defaults[config.type],\r\n\t\tconfig.options || {});\r\n\r\n\treturn config;\r\n}\r\n\r\nfunction updateConfig(chart) {\r\n\tvar newOptions = chart.options;\r\n\r\n\thelpers$1.each(chart.scales, function(scale) {\r\n\t\tcore_layouts.removeBox(chart, scale);\r\n\t});\r\n\r\n\tnewOptions = mergeConfig(\r\n\t\tcore_defaults.global,\r\n\t\tcore_defaults[chart.config.type],\r\n\t\tnewOptions);\r\n\r\n\tchart.options = chart.config.options = newOptions;\r\n\tchart.ensureScalesHaveIDs();\r\n\tchart.buildOrUpdateScales();\r\n\r\n\t// Tooltip\r\n\tchart.tooltip._options = newOptions.tooltips;\r\n\tchart.tooltip.initialize();\r\n}\r\n\r\nfunction nextAvailableScaleId(axesOpts, prefix, index) {\r\n\tvar id;\r\n\tvar hasId = function(obj) {\r\n\t\treturn obj.id === id;\r\n\t};\r\n\r\n\tdo {\r\n\t\tid = prefix + index++;\r\n\t} while (helpers$1.findIndex(axesOpts, hasId) >= 0);\r\n\r\n\treturn id;\r\n}\r\n\r\nfunction positionIsHorizontal(position) {\r\n\treturn position === 'top' || position === 'bottom';\r\n}\r\n\r\nfunction compare2Level(l1, l2) {\r\n\treturn function(a, b) {\r\n\t\treturn a[l1] === b[l1]\r\n\t\t\t? a[l2] - b[l2]\r\n\t\t\t: a[l1] - b[l1];\r\n\t};\r\n}\r\n\r\nvar Chart = function(item, config) {\r\n\tthis.construct(item, config);\r\n\treturn this;\r\n};\r\n\r\nhelpers$1.extend(Chart.prototype, /** @lends Chart */ {\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tconstruct: function(item, config) {\r\n\t\tvar me = this;\r\n\r\n\t\tconfig = initConfig(config);\r\n\r\n\t\tvar context = platform.acquireContext(item, config);\r\n\t\tvar canvas = context && context.canvas;\r\n\t\tvar height = canvas && canvas.height;\r\n\t\tvar width = canvas && canvas.width;\r\n\r\n\t\tme.id = helpers$1.uid();\r\n\t\tme.ctx = context;\r\n\t\tme.canvas = canvas;\r\n\t\tme.config = config;\r\n\t\tme.width = width;\r\n\t\tme.height = height;\r\n\t\tme.aspectRatio = height ? width / height : null;\r\n\t\tme.options = config.options;\r\n\t\tme._bufferedRender = false;\r\n\t\tme._layers = [];\r\n\r\n\t\t/**\r\n\t\t * Provided for backward compatibility, Chart and Chart.Controller have been merged,\r\n\t\t * the \"instance\" still need to be defined since it might be called from plugins.\r\n\t\t * @prop Chart#chart\r\n\t\t * @deprecated since version 2.6.0\r\n\t\t * @todo remove at version 3\r\n\t\t * @private\r\n\t\t */\r\n\t\tme.chart = me;\r\n\t\tme.controller = me; // chart.chart.controller #inception\r\n\r\n\t\t// Add the chart instance to the global namespace\r\n\t\tChart.instances[me.id] = me;\r\n\r\n\t\t// Define alias to the config data: `chart.data === chart.config.data`\r\n\t\tObject.defineProperty(me, 'data', {\r\n\t\t\tget: function() {\r\n\t\t\t\treturn me.config.data;\r\n\t\t\t},\r\n\t\t\tset: function(value) {\r\n\t\t\t\tme.config.data = value;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tif (!context || !canvas) {\r\n\t\t\t// The given item is not a compatible context2d element, let's return before finalizing\r\n\t\t\t// the chart initialization but after setting basic chart / controller properties that\r\n\t\t\t// can help to figure out that the chart is not valid (e.g chart.canvas !== null);\r\n\t\t\t// https://github.com/chartjs/Chart.js/issues/2807\r\n\t\t\tconsole.error(\"Failed to create chart: can't acquire context from the given item\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tme.initialize();\r\n\t\tme.update();\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tinitialize: function() {\r\n\t\tvar me = this;\r\n\r\n\t\t// Before init plugin notification\r\n\t\tcore_plugins.notify(me, 'beforeInit');\r\n\r\n\t\thelpers$1.retinaScale(me, me.options.devicePixelRatio);\r\n\r\n\t\tme.bindEvents();\r\n\r\n\t\tif (me.options.responsive) {\r\n\t\t\t// Initial resize before chart draws (must be silent to preserve initial animations).\r\n\t\t\tme.resize(true);\r\n\t\t}\r\n\r\n\t\tme.initToolTip();\r\n\r\n\t\t// After init plugin notification\r\n\t\tcore_plugins.notify(me, 'afterInit');\r\n\r\n\t\treturn me;\r\n\t},\r\n\r\n\tclear: function() {\r\n\t\thelpers$1.canvas.clear(this);\r\n\t\treturn this;\r\n\t},\r\n\r\n\tstop: function() {\r\n\t\t// Stops any current animation loop occurring\r\n\t\tcore_animations.cancelAnimation(this);\r\n\t\treturn this;\r\n\t},\r\n\r\n\tresize: function(silent) {\r\n\t\tvar me = this;\r\n\t\tvar options = me.options;\r\n\t\tvar canvas = me.canvas;\r\n\t\tvar aspectRatio = (options.maintainAspectRatio && me.aspectRatio) || null;\r\n\r\n\t\t// the canvas render width and height will be casted to integers so make sure that\r\n\t\t// the canvas display style uses the same integer values to avoid blurring effect.\r\n\r\n\t\t// Set to 0 instead of canvas.size because the size defaults to 300x150 if the element is collapsed\r\n\t\tvar newWidth = Math.max(0, Math.floor(helpers$1.getMaximumWidth(canvas)));\r\n\t\tvar newHeight = Math.max(0, Math.floor(aspectRatio ? newWidth / aspectRatio : helpers$1.getMaximumHeight(canvas)));\r\n\r\n\t\tif (me.width === newWidth && me.height === newHeight) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tcanvas.width = me.width = newWidth;\r\n\t\tcanvas.height = me.height = newHeight;\r\n\t\tcanvas.style.width = newWidth + 'px';\r\n\t\tcanvas.style.height = newHeight + 'px';\r\n\r\n\t\thelpers$1.retinaScale(me, options.devicePixelRatio);\r\n\r\n\t\tif (!silent) {\r\n\t\t\t// Notify any plugins about the resize\r\n\t\t\tvar newSize = {width: newWidth, height: newHeight};\r\n\t\t\tcore_plugins.notify(me, 'resize', [newSize]);\r\n\r\n\t\t\t// Notify of resize\r\n\t\t\tif (options.onResize) {\r\n\t\t\t\toptions.onResize(me, newSize);\r\n\t\t\t}\r\n\r\n\t\t\tme.stop();\r\n\t\t\tme.update({\r\n\t\t\t\tduration: options.responsiveAnimationDuration\r\n\t\t\t});\r\n\t\t}\r\n\t},\r\n\r\n\tensureScalesHaveIDs: function() {\r\n\t\tvar options = this.options;\r\n\t\tvar scalesOptions = options.scales || {};\r\n\t\tvar scaleOptions = options.scale;\r\n\r\n\t\thelpers$1.each(scalesOptions.xAxes, function(xAxisOptions, index) {\r\n\t\t\tif (!xAxisOptions.id) {\r\n\t\t\t\txAxisOptions.id = nextAvailableScaleId(scalesOptions.xAxes, 'x-axis-', index);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\thelpers$1.each(scalesOptions.yAxes, function(yAxisOptions, index) {\r\n\t\t\tif (!yAxisOptions.id) {\r\n\t\t\t\tyAxisOptions.id = nextAvailableScaleId(scalesOptions.yAxes, 'y-axis-', index);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tif (scaleOptions) {\r\n\t\t\tscaleOptions.id = scaleOptions.id || 'scale';\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Builds a map of scale ID to scale object for future lookup.\r\n\t */\r\n\tbuildOrUpdateScales: function() {\r\n\t\tvar me = this;\r\n\t\tvar options = me.options;\r\n\t\tvar scales = me.scales || {};\r\n\t\tvar items = [];\r\n\t\tvar updated = Object.keys(scales).reduce(function(obj, id) {\r\n\t\t\tobj[id] = false;\r\n\t\t\treturn obj;\r\n\t\t}, {});\r\n\r\n\t\tif (options.scales) {\r\n\t\t\titems = items.concat(\r\n\t\t\t\t(options.scales.xAxes || []).map(function(xAxisOptions) {\r\n\t\t\t\t\treturn {options: xAxisOptions, dtype: 'category', dposition: 'bottom'};\r\n\t\t\t\t}),\r\n\t\t\t\t(options.scales.yAxes || []).map(function(yAxisOptions) {\r\n\t\t\t\t\treturn {options: yAxisOptions, dtype: 'linear', dposition: 'left'};\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tif (options.scale) {\r\n\t\t\titems.push({\r\n\t\t\t\toptions: options.scale,\r\n\t\t\t\tdtype: 'radialLinear',\r\n\t\t\t\tisDefault: true,\r\n\t\t\t\tdposition: 'chartArea'\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\thelpers$1.each(items, function(item) {\r\n\t\t\tvar scaleOptions = item.options;\r\n\t\t\tvar id = scaleOptions.id;\r\n\t\t\tvar scaleType = valueOrDefault$9(scaleOptions.type, item.dtype);\r\n\r\n\t\t\tif (positionIsHorizontal(scaleOptions.position) !== positionIsHorizontal(item.dposition)) {\r\n\t\t\t\tscaleOptions.position = item.dposition;\r\n\t\t\t}\r\n\r\n\t\t\tupdated[id] = true;\r\n\t\t\tvar scale = null;\r\n\t\t\tif (id in scales && scales[id].type === scaleType) {\r\n\t\t\t\tscale = scales[id];\r\n\t\t\t\tscale.options = scaleOptions;\r\n\t\t\t\tscale.ctx = me.ctx;\r\n\t\t\t\tscale.chart = me;\r\n\t\t\t} else {\r\n\t\t\t\tvar scaleClass = core_scaleService.getScaleConstructor(scaleType);\r\n\t\t\t\tif (!scaleClass) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tscale = new scaleClass({\r\n\t\t\t\t\tid: id,\r\n\t\t\t\t\ttype: scaleType,\r\n\t\t\t\t\toptions: scaleOptions,\r\n\t\t\t\t\tctx: me.ctx,\r\n\t\t\t\t\tchart: me\r\n\t\t\t\t});\r\n\t\t\t\tscales[scale.id] = scale;\r\n\t\t\t}\r\n\r\n\t\t\tscale.mergeTicksOptions();\r\n\r\n\t\t\t// TODO(SB): I think we should be able to remove this custom case (options.scale)\r\n\t\t\t// and consider it as a regular scale part of the \"scales\"\" map only! This would\r\n\t\t\t// make the logic easier and remove some useless? custom code.\r\n\t\t\tif (item.isDefault) {\r\n\t\t\t\tme.scale = scale;\r\n\t\t\t}\r\n\t\t});\r\n\t\t// clear up discarded scales\r\n\t\thelpers$1.each(updated, function(hasUpdated, id) {\r\n\t\t\tif (!hasUpdated) {\r\n\t\t\t\tdelete scales[id];\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tme.scales = scales;\r\n\r\n\t\tcore_scaleService.addScalesToLayout(this);\r\n\t},\r\n\r\n\tbuildOrUpdateControllers: function() {\r\n\t\tvar me = this;\r\n\t\tvar newControllers = [];\r\n\t\tvar datasets = me.data.datasets;\r\n\t\tvar i, ilen;\r\n\r\n\t\tfor (i = 0, ilen = datasets.length; i < ilen; i++) {\r\n\t\t\tvar dataset = datasets[i];\r\n\t\t\tvar meta = me.getDatasetMeta(i);\r\n\t\t\tvar type = dataset.type || me.config.type;\r\n\r\n\t\t\tif (meta.type && meta.type !== type) {\r\n\t\t\t\tme.destroyDatasetMeta(i);\r\n\t\t\t\tmeta = me.getDatasetMeta(i);\r\n\t\t\t}\r\n\t\t\tmeta.type = type;\r\n\t\t\tmeta.order = dataset.order || 0;\r\n\t\t\tmeta.index = i;\r\n\r\n\t\t\tif (meta.controller) {\r\n\t\t\t\tmeta.controller.updateIndex(i);\r\n\t\t\t\tmeta.controller.linkScales();\r\n\t\t\t} else {\r\n\t\t\t\tvar ControllerClass = controllers[meta.type];\r\n\t\t\t\tif (ControllerClass === undefined) {\r\n\t\t\t\t\tthrow new Error('\"' + meta.type + '\" is not a chart type.');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmeta.controller = new ControllerClass(me, i);\r\n\t\t\t\tnewControllers.push(meta.controller);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn newControllers;\r\n\t},\r\n\r\n\t/**\r\n\t * Reset the elements of all datasets\r\n\t * @private\r\n\t */\r\n\tresetElements: function() {\r\n\t\tvar me = this;\r\n\t\thelpers$1.each(me.data.datasets, function(dataset, datasetIndex) {\r\n\t\t\tme.getDatasetMeta(datasetIndex).controller.reset();\r\n\t\t}, me);\r\n\t},\r\n\r\n\t/**\r\n\t* Resets the chart back to it's state before the initial animation\r\n\t*/\r\n\treset: function() {\r\n\t\tthis.resetElements();\r\n\t\tthis.tooltip.initialize();\r\n\t},\r\n\r\n\tupdate: function(config) {\r\n\t\tvar me = this;\r\n\t\tvar i, ilen;\r\n\r\n\t\tif (!config || typeof config !== 'object') {\r\n\t\t\t// backwards compatibility\r\n\t\t\tconfig = {\r\n\t\t\t\tduration: config,\r\n\t\t\t\tlazy: arguments[1]\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tupdateConfig(me);\r\n\r\n\t\t// plugins options references might have change, let's invalidate the cache\r\n\t\t// https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167\r\n\t\tcore_plugins._invalidate(me);\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeUpdate') === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// In case the entire data object changed\r\n\t\tme.tooltip._data = me.data;\r\n\r\n\t\t// Make sure dataset controllers are updated and new controllers are reset\r\n\t\tvar newControllers = me.buildOrUpdateControllers();\r\n\r\n\t\t// Make sure all dataset controllers have correct meta data counts\r\n\t\tfor (i = 0, ilen = me.data.datasets.length; i < ilen; i++) {\r\n\t\t\tme.getDatasetMeta(i).controller.buildOrUpdateElements();\r\n\t\t}\r\n\r\n\t\tme.updateLayout();\r\n\r\n\t\t// Can only reset the new controllers after the scales have been updated\r\n\t\tif (me.options.animation && me.options.animation.duration) {\r\n\t\t\thelpers$1.each(newControllers, function(controller) {\r\n\t\t\t\tcontroller.reset();\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tme.updateDatasets();\r\n\r\n\t\t// Need to reset tooltip in case it is displayed with elements that are removed\r\n\t\t// after update.\r\n\t\tme.tooltip.initialize();\r\n\r\n\t\t// Last active contains items that were previously in the tooltip.\r\n\t\t// When we reset the tooltip, we need to clear it\r\n\t\tme.lastActive = [];\r\n\r\n\t\t// Do this before render so that any plugins that need final scale updates can use it\r\n\t\tcore_plugins.notify(me, 'afterUpdate');\r\n\r\n\t\tme._layers.sort(compare2Level('z', '_idx'));\r\n\r\n\t\tif (me._bufferedRender) {\r\n\t\t\tme._bufferedRequest = {\r\n\t\t\t\tduration: config.duration,\r\n\t\t\t\teasing: config.easing,\r\n\t\t\t\tlazy: config.lazy\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\tme.render(config);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Updates the chart layout unless a plugin returns `false` to the `beforeLayout`\r\n\t * hook, in which case, plugins will not be called on `afterLayout`.\r\n\t * @private\r\n\t */\r\n\tupdateLayout: function() {\r\n\t\tvar me = this;\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeLayout') === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tcore_layouts.update(this, this.width, this.height);\r\n\r\n\t\tme._layers = [];\r\n\t\thelpers$1.each(me.boxes, function(box) {\r\n\t\t\t// _configure is called twice, once in core.scale.update and once here.\r\n\t\t\t// Here the boxes are fully updated and at their final positions.\r\n\t\t\tif (box._configure) {\r\n\t\t\t\tbox._configure();\r\n\t\t\t}\r\n\t\t\tme._layers.push.apply(me._layers, box._layers());\r\n\t\t}, me);\r\n\r\n\t\tme._layers.forEach(function(item, index) {\r\n\t\t\titem._idx = index;\r\n\t\t});\r\n\r\n\t\t/**\r\n\t\t * Provided for backward compatibility, use `afterLayout` instead.\r\n\t\t * @method IPlugin#afterScaleUpdate\r\n\t\t * @deprecated since version 2.5.0\r\n\t\t * @todo remove at version 3\r\n\t\t * @private\r\n\t\t */\r\n\t\tcore_plugins.notify(me, 'afterScaleUpdate');\r\n\t\tcore_plugins.notify(me, 'afterLayout');\r\n\t},\r\n\r\n\t/**\r\n\t * Updates all datasets unless a plugin returns `false` to the `beforeDatasetsUpdate`\r\n\t * hook, in which case, plugins will not be called on `afterDatasetsUpdate`.\r\n\t * @private\r\n\t */\r\n\tupdateDatasets: function() {\r\n\t\tvar me = this;\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeDatasetsUpdate') === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (var i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {\r\n\t\t\tme.updateDataset(i);\r\n\t\t}\r\n\r\n\t\tcore_plugins.notify(me, 'afterDatasetsUpdate');\r\n\t},\r\n\r\n\t/**\r\n\t * Updates dataset at index unless a plugin returns `false` to the `beforeDatasetUpdate`\r\n\t * hook, in which case, plugins will not be called on `afterDatasetUpdate`.\r\n\t * @private\r\n\t */\r\n\tupdateDataset: function(index) {\r\n\t\tvar me = this;\r\n\t\tvar meta = me.getDatasetMeta(index);\r\n\t\tvar args = {\r\n\t\t\tmeta: meta,\r\n\t\t\tindex: index\r\n\t\t};\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeDatasetUpdate', [args]) === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmeta.controller._update();\r\n\r\n\t\tcore_plugins.notify(me, 'afterDatasetUpdate', [args]);\r\n\t},\r\n\r\n\trender: function(config) {\r\n\t\tvar me = this;\r\n\r\n\t\tif (!config || typeof config !== 'object') {\r\n\t\t\t// backwards compatibility\r\n\t\t\tconfig = {\r\n\t\t\t\tduration: config,\r\n\t\t\t\tlazy: arguments[1]\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tvar animationOptions = me.options.animation;\r\n\t\tvar duration = valueOrDefault$9(config.duration, animationOptions && animationOptions.duration);\r\n\t\tvar lazy = config.lazy;\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeRender') === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar onComplete = function(animation) {\r\n\t\t\tcore_plugins.notify(me, 'afterRender');\r\n\t\t\thelpers$1.callback(animationOptions && animationOptions.onComplete, [animation], me);\r\n\t\t};\r\n\r\n\t\tif (animationOptions && duration) {\r\n\t\t\tvar animation = new core_animation({\r\n\t\t\t\tnumSteps: duration / 16.66, // 60 fps\r\n\t\t\t\teasing: config.easing || animationOptions.easing,\r\n\r\n\t\t\t\trender: function(chart, animationObject) {\r\n\t\t\t\t\tvar easingFunction = helpers$1.easing.effects[animationObject.easing];\r\n\t\t\t\t\tvar currentStep = animationObject.currentStep;\r\n\t\t\t\t\tvar stepDecimal = currentStep / animationObject.numSteps;\r\n\r\n\t\t\t\t\tchart.draw(easingFunction(stepDecimal), stepDecimal, currentStep);\r\n\t\t\t\t},\r\n\r\n\t\t\t\tonAnimationProgress: animationOptions.onProgress,\r\n\t\t\t\tonAnimationComplete: onComplete\r\n\t\t\t});\r\n\r\n\t\t\tcore_animations.addAnimation(me, animation, duration, lazy);\r\n\t\t} else {\r\n\t\t\tme.draw();\r\n\r\n\t\t\t// See https://github.com/chartjs/Chart.js/issues/3781\r\n\t\t\tonComplete(new core_animation({numSteps: 0, chart: me}));\r\n\t\t}\r\n\r\n\t\treturn me;\r\n\t},\r\n\r\n\tdraw: function(easingValue) {\r\n\t\tvar me = this;\r\n\t\tvar i, layers;\r\n\r\n\t\tme.clear();\r\n\r\n\t\tif (helpers$1.isNullOrUndef(easingValue)) {\r\n\t\t\teasingValue = 1;\r\n\t\t}\r\n\r\n\t\tme.transition(easingValue);\r\n\r\n\t\tif (me.width <= 0 || me.height <= 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeDraw', [easingValue]) === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Because of plugin hooks (before/afterDatasetsDraw), datasets can't\r\n\t\t// currently be part of layers. Instead, we draw\r\n\t\t// layers <= 0 before(default, backward compat), and the rest after\r\n\t\tlayers = me._layers;\r\n\t\tfor (i = 0; i < layers.length && layers[i].z <= 0; ++i) {\r\n\t\t\tlayers[i].draw(me.chartArea);\r\n\t\t}\r\n\r\n\t\tme.drawDatasets(easingValue);\r\n\r\n\t\t// Rest of layers\r\n\t\tfor (; i < layers.length; ++i) {\r\n\t\t\tlayers[i].draw(me.chartArea);\r\n\t\t}\r\n\r\n\t\tme._drawTooltip(easingValue);\r\n\r\n\t\tcore_plugins.notify(me, 'afterDraw', [easingValue]);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\ttransition: function(easingValue) {\r\n\t\tvar me = this;\r\n\r\n\t\tfor (var i = 0, ilen = (me.data.datasets || []).length; i < ilen; ++i) {\r\n\t\t\tif (me.isDatasetVisible(i)) {\r\n\t\t\t\tme.getDatasetMeta(i).controller.transition(easingValue);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tme.tooltip.transition(easingValue);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getSortedDatasetMetas: function(filterVisible) {\r\n\t\tvar me = this;\r\n\t\tvar datasets = me.data.datasets || [];\r\n\t\tvar result = [];\r\n\t\tvar i, ilen;\r\n\r\n\t\tfor (i = 0, ilen = datasets.length; i < ilen; ++i) {\r\n\t\t\tif (!filterVisible || me.isDatasetVisible(i)) {\r\n\t\t\t\tresult.push(me.getDatasetMeta(i));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tresult.sort(compare2Level('order', 'index'));\r\n\r\n\t\treturn result;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getSortedVisibleDatasetMetas: function() {\r\n\t\treturn this._getSortedDatasetMetas(true);\r\n\t},\r\n\r\n\t/**\r\n\t * Draws all datasets unless a plugin returns `false` to the `beforeDatasetsDraw`\r\n\t * hook, in which case, plugins will not be called on `afterDatasetsDraw`.\r\n\t * @private\r\n\t */\r\n\tdrawDatasets: function(easingValue) {\r\n\t\tvar me = this;\r\n\t\tvar metasets, i;\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeDatasetsDraw', [easingValue]) === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmetasets = me._getSortedVisibleDatasetMetas();\r\n\t\tfor (i = metasets.length - 1; i >= 0; --i) {\r\n\t\t\tme.drawDataset(metasets[i], easingValue);\r\n\t\t}\r\n\r\n\t\tcore_plugins.notify(me, 'afterDatasetsDraw', [easingValue]);\r\n\t},\r\n\r\n\t/**\r\n\t * Draws dataset at index unless a plugin returns `false` to the `beforeDatasetDraw`\r\n\t * hook, in which case, plugins will not be called on `afterDatasetDraw`.\r\n\t * @private\r\n\t */\r\n\tdrawDataset: function(meta, easingValue) {\r\n\t\tvar me = this;\r\n\t\tvar args = {\r\n\t\t\tmeta: meta,\r\n\t\t\tindex: meta.index,\r\n\t\t\teasingValue: easingValue\r\n\t\t};\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeDatasetDraw', [args]) === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tmeta.controller.draw(easingValue);\r\n\r\n\t\tcore_plugins.notify(me, 'afterDatasetDraw', [args]);\r\n\t},\r\n\r\n\t/**\r\n\t * Draws tooltip unless a plugin returns `false` to the `beforeTooltipDraw`\r\n\t * hook, in which case, plugins will not be called on `afterTooltipDraw`.\r\n\t * @private\r\n\t */\r\n\t_drawTooltip: function(easingValue) {\r\n\t\tvar me = this;\r\n\t\tvar tooltip = me.tooltip;\r\n\t\tvar args = {\r\n\t\t\ttooltip: tooltip,\r\n\t\t\teasingValue: easingValue\r\n\t\t};\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeTooltipDraw', [args]) === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\ttooltip.draw();\r\n\r\n\t\tcore_plugins.notify(me, 'afterTooltipDraw', [args]);\r\n\t},\r\n\r\n\t/**\r\n\t * Get the single element that was clicked on\r\n\t * @return An object containing the dataset index and element index of the matching element. Also contains the rectangle that was draw\r\n\t */\r\n\tgetElementAtEvent: function(e) {\r\n\t\treturn core_interaction.modes.single(this, e);\r\n\t},\r\n\r\n\tgetElementsAtEvent: function(e) {\r\n\t\treturn core_interaction.modes.label(this, e, {intersect: true});\r\n\t},\r\n\r\n\tgetElementsAtXAxis: function(e) {\r\n\t\treturn core_interaction.modes['x-axis'](this, e, {intersect: true});\r\n\t},\r\n\r\n\tgetElementsAtEventForMode: function(e, mode, options) {\r\n\t\tvar method = core_interaction.modes[mode];\r\n\t\tif (typeof method === 'function') {\r\n\t\t\treturn method(this, e, options);\r\n\t\t}\r\n\r\n\t\treturn [];\r\n\t},\r\n\r\n\tgetDatasetAtEvent: function(e) {\r\n\t\treturn core_interaction.modes.dataset(this, e, {intersect: true});\r\n\t},\r\n\r\n\tgetDatasetMeta: function(datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tvar dataset = me.data.datasets[datasetIndex];\r\n\t\tif (!dataset._meta) {\r\n\t\t\tdataset._meta = {};\r\n\t\t}\r\n\r\n\t\tvar meta = dataset._meta[me.id];\r\n\t\tif (!meta) {\r\n\t\t\tmeta = dataset._meta[me.id] = {\r\n\t\t\t\ttype: null,\r\n\t\t\t\tdata: [],\r\n\t\t\t\tdataset: null,\r\n\t\t\t\tcontroller: null,\r\n\t\t\t\thidden: null,\t\t\t// See isDatasetVisible() comment\r\n\t\t\t\txAxisID: null,\r\n\t\t\t\tyAxisID: null,\r\n\t\t\t\torder: dataset.order || 0,\r\n\t\t\t\tindex: datasetIndex\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\treturn meta;\r\n\t},\r\n\r\n\tgetVisibleDatasetCount: function() {\r\n\t\tvar count = 0;\r\n\t\tfor (var i = 0, ilen = this.data.datasets.length; i < ilen; ++i) {\r\n\t\t\tif (this.isDatasetVisible(i)) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t},\r\n\r\n\tisDatasetVisible: function(datasetIndex) {\r\n\t\tvar meta = this.getDatasetMeta(datasetIndex);\r\n\r\n\t\t// meta.hidden is a per chart dataset hidden flag override with 3 states: if true or false,\r\n\t\t// the dataset.hidden value is ignored, else if null, the dataset hidden state is returned.\r\n\t\treturn typeof meta.hidden === 'boolean' ? !meta.hidden : !this.data.datasets[datasetIndex].hidden;\r\n\t},\r\n\r\n\tgenerateLegend: function() {\r\n\t\treturn this.options.legendCallback(this);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tdestroyDatasetMeta: function(datasetIndex) {\r\n\t\tvar id = this.id;\r\n\t\tvar dataset = this.data.datasets[datasetIndex];\r\n\t\tvar meta = dataset._meta && dataset._meta[id];\r\n\r\n\t\tif (meta) {\r\n\t\t\tmeta.controller.destroy();\r\n\t\t\tdelete dataset._meta[id];\r\n\t\t}\r\n\t},\r\n\r\n\tdestroy: function() {\r\n\t\tvar me = this;\r\n\t\tvar canvas = me.canvas;\r\n\t\tvar i, ilen;\r\n\r\n\t\tme.stop();\r\n\r\n\t\t// dataset controllers need to cleanup associated data\r\n\t\tfor (i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {\r\n\t\t\tme.destroyDatasetMeta(i);\r\n\t\t}\r\n\r\n\t\tif (canvas) {\r\n\t\t\tme.unbindEvents();\r\n\t\t\thelpers$1.canvas.clear(me);\r\n\t\t\tplatform.releaseContext(me.ctx);\r\n\t\t\tme.canvas = null;\r\n\t\t\tme.ctx = null;\r\n\t\t}\r\n\r\n\t\tcore_plugins.notify(me, 'destroy');\r\n\r\n\t\tdelete Chart.instances[me.id];\r\n\t},\r\n\r\n\ttoBase64Image: function() {\r\n\t\treturn this.canvas.toDataURL.apply(this.canvas, arguments);\r\n\t},\r\n\r\n\tinitToolTip: function() {\r\n\t\tvar me = this;\r\n\t\tme.tooltip = new core_tooltip({\r\n\t\t\t_chart: me,\r\n\t\t\t_chartInstance: me, // deprecated, backward compatibility\r\n\t\t\t_data: me.data,\r\n\t\t\t_options: me.options.tooltips\r\n\t\t}, me);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tbindEvents: function() {\r\n\t\tvar me = this;\r\n\t\tvar listeners = me._listeners = {};\r\n\t\tvar listener = function() {\r\n\t\t\tme.eventHandler.apply(me, arguments);\r\n\t\t};\r\n\r\n\t\thelpers$1.each(me.options.events, function(type) {\r\n\t\t\tplatform.addEventListener(me, type, listener);\r\n\t\t\tlisteners[type] = listener;\r\n\t\t});\r\n\r\n\t\t// Elements used to detect size change should not be injected for non responsive charts.\r\n\t\t// See https://github.com/chartjs/Chart.js/issues/2210\r\n\t\tif (me.options.responsive) {\r\n\t\t\tlistener = function() {\r\n\t\t\t\tme.resize();\r\n\t\t\t};\r\n\r\n\t\t\tplatform.addEventListener(me, 'resize', listener);\r\n\t\t\tlisteners.resize = listener;\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tunbindEvents: function() {\r\n\t\tvar me = this;\r\n\t\tvar listeners = me._listeners;\r\n\t\tif (!listeners) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tdelete me._listeners;\r\n\t\thelpers$1.each(listeners, function(listener, type) {\r\n\t\t\tplatform.removeEventListener(me, type, listener);\r\n\t\t});\r\n\t},\r\n\r\n\tupdateHoverStyle: function(elements, mode, enabled) {\r\n\t\tvar prefix = enabled ? 'set' : 'remove';\r\n\t\tvar element, i, ilen;\r\n\r\n\t\tfor (i = 0, ilen = elements.length; i < ilen; ++i) {\r\n\t\t\telement = elements[i];\r\n\t\t\tif (element) {\r\n\t\t\t\tthis.getDatasetMeta(element._datasetIndex).controller[prefix + 'HoverStyle'](element);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (mode === 'dataset') {\r\n\t\t\tthis.getDatasetMeta(elements[0]._datasetIndex).controller['_' + prefix + 'DatasetHoverStyle']();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\teventHandler: function(e) {\r\n\t\tvar me = this;\r\n\t\tvar tooltip = me.tooltip;\r\n\r\n\t\tif (core_plugins.notify(me, 'beforeEvent', [e]) === false) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Buffer any update calls so that renders do not occur\r\n\t\tme._bufferedRender = true;\r\n\t\tme._bufferedRequest = null;\r\n\r\n\t\tvar changed = me.handleEvent(e);\r\n\t\t// for smooth tooltip animations issue #4989\r\n\t\t// the tooltip should be the source of change\r\n\t\t// Animation check workaround:\r\n\t\t// tooltip._start will be null when tooltip isn't animating\r\n\t\tif (tooltip) {\r\n\t\t\tchanged = tooltip._start\r\n\t\t\t\t? tooltip.handleEvent(e)\r\n\t\t\t\t: changed | tooltip.handleEvent(e);\r\n\t\t}\r\n\r\n\t\tcore_plugins.notify(me, 'afterEvent', [e]);\r\n\r\n\t\tvar bufferedRequest = me._bufferedRequest;\r\n\t\tif (bufferedRequest) {\r\n\t\t\t// If we have an update that was triggered, we need to do a normal render\r\n\t\t\tme.render(bufferedRequest);\r\n\t\t} else if (changed && !me.animating) {\r\n\t\t\t// If entering, leaving, or changing elements, animate the change via pivot\r\n\t\t\tme.stop();\r\n\r\n\t\t\t// We only need to render at this point. Updating will cause scales to be\r\n\t\t\t// recomputed generating flicker & using more memory than necessary.\r\n\t\t\tme.render({\r\n\t\t\t\tduration: me.options.hover.animationDuration,\r\n\t\t\t\tlazy: true\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tme._bufferedRender = false;\r\n\t\tme._bufferedRequest = null;\r\n\r\n\t\treturn me;\r\n\t},\r\n\r\n\t/**\r\n\t * Handle an event\r\n\t * @private\r\n\t * @param {IEvent} event the event to handle\r\n\t * @return {boolean} true if the chart needs to re-render\r\n\t */\r\n\thandleEvent: function(e) {\r\n\t\tvar me = this;\r\n\t\tvar options = me.options || {};\r\n\t\tvar hoverOptions = options.hover;\r\n\t\tvar changed = false;\r\n\r\n\t\tme.lastActive = me.lastActive || [];\r\n\r\n\t\t// Find Active Elements for hover and tooltips\r\n\t\tif (e.type === 'mouseout') {\r\n\t\t\tme.active = [];\r\n\t\t} else {\r\n\t\t\tme.active = me.getElementsAtEventForMode(e, hoverOptions.mode, hoverOptions);\r\n\t\t}\r\n\r\n\t\t// Invoke onHover hook\r\n\t\t// Need to call with native event here to not break backwards compatibility\r\n\t\thelpers$1.callback(options.onHover || options.hover.onHover, [e.native, me.active], me);\r\n\r\n\t\tif (e.type === 'mouseup' || e.type === 'click') {\r\n\t\t\tif (options.onClick) {\r\n\t\t\t\t// Use e.native here for backwards compatibility\r\n\t\t\t\toptions.onClick.call(me, e.native, me.active);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Remove styling for last active (even if it may still be active)\r\n\t\tif (me.lastActive.length) {\r\n\t\t\tme.updateHoverStyle(me.lastActive, hoverOptions.mode, false);\r\n\t\t}\r\n\r\n\t\t// Built in hover styling\r\n\t\tif (me.active.length && hoverOptions.mode) {\r\n\t\t\tme.updateHoverStyle(me.active, hoverOptions.mode, true);\r\n\t\t}\r\n\r\n\t\tchanged = !helpers$1.arrayEquals(me.active, me.lastActive);\r\n\r\n\t\t// Remember Last Actives\r\n\t\tme.lastActive = me.active;\r\n\r\n\t\treturn changed;\r\n\t}\r\n});\r\n\r\n/**\r\n * NOTE(SB) We actually don't use this container anymore but we need to keep it\r\n * for backward compatibility. Though, it can still be useful for plugins that\r\n * would need to work on multiple charts?!\r\n */\r\nChart.instances = {};\r\n\r\nvar core_controller = Chart;\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart instead.\r\n * @class Chart.Controller\r\n * @deprecated since version 2.6\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nChart.Controller = Chart;\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore.\r\n * @namespace Chart\r\n * @deprecated since version 2.8\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nChart.types = {};\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore.\r\n * @namespace Chart.helpers.configMerge\r\n * @deprecated since version 2.8.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers$1.configMerge = mergeConfig;\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore.\r\n * @namespace Chart.helpers.scaleMerge\r\n * @deprecated since version 2.8.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\nhelpers$1.scaleMerge = mergeScaleConfig;\n\nvar core_helpers = function() {\r\n\r\n\t// -- Basic js utility methods\r\n\r\n\thelpers$1.where = function(collection, filterCallback) {\r\n\t\tif (helpers$1.isArray(collection) && Array.prototype.filter) {\r\n\t\t\treturn collection.filter(filterCallback);\r\n\t\t}\r\n\t\tvar filtered = [];\r\n\r\n\t\thelpers$1.each(collection, function(item) {\r\n\t\t\tif (filterCallback(item)) {\r\n\t\t\t\tfiltered.push(item);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn filtered;\r\n\t};\r\n\thelpers$1.findIndex = Array.prototype.findIndex ?\r\n\t\tfunction(array, callback, scope) {\r\n\t\t\treturn array.findIndex(callback, scope);\r\n\t\t} :\r\n\t\tfunction(array, callback, scope) {\r\n\t\t\tscope = scope === undefined ? array : scope;\r\n\t\t\tfor (var i = 0, ilen = array.length; i < ilen; ++i) {\r\n\t\t\t\tif (callback.call(scope, array[i], i, array)) {\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn -1;\r\n\t\t};\r\n\thelpers$1.findNextWhere = function(arrayToSearch, filterCallback, startIndex) {\r\n\t\t// Default to start of the array\r\n\t\tif (helpers$1.isNullOrUndef(startIndex)) {\r\n\t\t\tstartIndex = -1;\r\n\t\t}\r\n\t\tfor (var i = startIndex + 1; i < arrayToSearch.length; i++) {\r\n\t\t\tvar currentItem = arrayToSearch[i];\r\n\t\t\tif (filterCallback(currentItem)) {\r\n\t\t\t\treturn currentItem;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\thelpers$1.findPreviousWhere = function(arrayToSearch, filterCallback, startIndex) {\r\n\t\t// Default to end of the array\r\n\t\tif (helpers$1.isNullOrUndef(startIndex)) {\r\n\t\t\tstartIndex = arrayToSearch.length;\r\n\t\t}\r\n\t\tfor (var i = startIndex - 1; i >= 0; i--) {\r\n\t\t\tvar currentItem = arrayToSearch[i];\r\n\t\t\tif (filterCallback(currentItem)) {\r\n\t\t\t\treturn currentItem;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\t// -- Math methods\r\n\thelpers$1.isNumber = function(n) {\r\n\t\treturn !isNaN(parseFloat(n)) && isFinite(n);\r\n\t};\r\n\thelpers$1.almostEquals = function(x, y, epsilon) {\r\n\t\treturn Math.abs(x - y) < epsilon;\r\n\t};\r\n\thelpers$1.almostWhole = function(x, epsilon) {\r\n\t\tvar rounded = Math.round(x);\r\n\t\treturn ((rounded - epsilon) <= x) && ((rounded + epsilon) >= x);\r\n\t};\r\n\thelpers$1.max = function(array) {\r\n\t\treturn array.reduce(function(max, value) {\r\n\t\t\tif (!isNaN(value)) {\r\n\t\t\t\treturn Math.max(max, value);\r\n\t\t\t}\r\n\t\t\treturn max;\r\n\t\t}, Number.NEGATIVE_INFINITY);\r\n\t};\r\n\thelpers$1.min = function(array) {\r\n\t\treturn array.reduce(function(min, value) {\r\n\t\t\tif (!isNaN(value)) {\r\n\t\t\t\treturn Math.min(min, value);\r\n\t\t\t}\r\n\t\t\treturn min;\r\n\t\t}, Number.POSITIVE_INFINITY);\r\n\t};\r\n\thelpers$1.sign = Math.sign ?\r\n\t\tfunction(x) {\r\n\t\t\treturn Math.sign(x);\r\n\t\t} :\r\n\t\tfunction(x) {\r\n\t\t\tx = +x; // convert to a number\r\n\t\t\tif (x === 0 || isNaN(x)) {\r\n\t\t\t\treturn x;\r\n\t\t\t}\r\n\t\t\treturn x > 0 ? 1 : -1;\r\n\t\t};\r\n\thelpers$1.toRadians = function(degrees) {\r\n\t\treturn degrees * (Math.PI / 180);\r\n\t};\r\n\thelpers$1.toDegrees = function(radians) {\r\n\t\treturn radians * (180 / Math.PI);\r\n\t};\r\n\r\n\t/**\r\n\t * Returns the number of decimal places\r\n\t * i.e. the number of digits after the decimal point, of the value of this Number.\r\n\t * @param {number} x - A number.\r\n\t * @returns {number} The number of decimal places.\r\n\t * @private\r\n\t */\r\n\thelpers$1._decimalPlaces = function(x) {\r\n\t\tif (!helpers$1.isFinite(x)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar e = 1;\r\n\t\tvar p = 0;\r\n\t\twhile (Math.round(x * e) / e !== x) {\r\n\t\t\te *= 10;\r\n\t\t\tp++;\r\n\t\t}\r\n\t\treturn p;\r\n\t};\r\n\r\n\t// Gets the angle from vertical upright to the point about a centre.\r\n\thelpers$1.getAngleFromPoint = function(centrePoint, anglePoint) {\r\n\t\tvar distanceFromXCenter = anglePoint.x - centrePoint.x;\r\n\t\tvar distanceFromYCenter = anglePoint.y - centrePoint.y;\r\n\t\tvar radialDistanceFromCenter = Math.sqrt(distanceFromXCenter * distanceFromXCenter + distanceFromYCenter * distanceFromYCenter);\r\n\r\n\t\tvar angle = Math.atan2(distanceFromYCenter, distanceFromXCenter);\r\n\r\n\t\tif (angle < (-0.5 * Math.PI)) {\r\n\t\t\tangle += 2.0 * Math.PI; // make sure the returned angle is in the range of (-PI/2, 3PI/2]\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tangle: angle,\r\n\t\t\tdistance: radialDistanceFromCenter\r\n\t\t};\r\n\t};\r\n\thelpers$1.distanceBetweenPoints = function(pt1, pt2) {\r\n\t\treturn Math.sqrt(Math.pow(pt2.x - pt1.x, 2) + Math.pow(pt2.y - pt1.y, 2));\r\n\t};\r\n\r\n\t/**\r\n\t * Provided for backward compatibility, not available anymore\r\n\t * @function Chart.helpers.aliasPixel\r\n\t * @deprecated since version 2.8.0\r\n\t * @todo remove at version 3\r\n\t */\r\n\thelpers$1.aliasPixel = function(pixelWidth) {\r\n\t\treturn (pixelWidth % 2 === 0) ? 0 : 0.5;\r\n\t};\r\n\r\n\t/**\r\n\t * Returns the aligned pixel value to avoid anti-aliasing blur\r\n\t * @param {Chart} chart - The chart instance.\r\n\t * @param {number} pixel - A pixel value.\r\n\t * @param {number} width - The width of the element.\r\n\t * @returns {number} The aligned pixel value.\r\n\t * @private\r\n\t */\r\n\thelpers$1._alignPixel = function(chart, pixel, width) {\r\n\t\tvar devicePixelRatio = chart.currentDevicePixelRatio;\r\n\t\tvar halfWidth = width / 2;\r\n\t\treturn Math.round((pixel - halfWidth) * devicePixelRatio) / devicePixelRatio + halfWidth;\r\n\t};\r\n\r\n\thelpers$1.splineCurve = function(firstPoint, middlePoint, afterPoint, t) {\r\n\t\t// Props to Rob Spencer at scaled innovation for his post on splining between points\r\n\t\t// http://scaledinnovation.com/analytics/splines/aboutSplines.html\r\n\r\n\t\t// This function must also respect \"skipped\" points\r\n\r\n\t\tvar previous = firstPoint.skip ? middlePoint : firstPoint;\r\n\t\tvar current = middlePoint;\r\n\t\tvar next = afterPoint.skip ? middlePoint : afterPoint;\r\n\r\n\t\tvar d01 = Math.sqrt(Math.pow(current.x - previous.x, 2) + Math.pow(current.y - previous.y, 2));\r\n\t\tvar d12 = Math.sqrt(Math.pow(next.x - current.x, 2) + Math.pow(next.y - current.y, 2));\r\n\r\n\t\tvar s01 = d01 / (d01 + d12);\r\n\t\tvar s12 = d12 / (d01 + d12);\r\n\r\n\t\t// If all points are the same, s01 & s02 will be inf\r\n\t\ts01 = isNaN(s01) ? 0 : s01;\r\n\t\ts12 = isNaN(s12) ? 0 : s12;\r\n\r\n\t\tvar fa = t * s01; // scaling factor for triangle Ta\r\n\t\tvar fb = t * s12;\r\n\r\n\t\treturn {\r\n\t\t\tprevious: {\r\n\t\t\t\tx: current.x - fa * (next.x - previous.x),\r\n\t\t\t\ty: current.y - fa * (next.y - previous.y)\r\n\t\t\t},\r\n\t\t\tnext: {\r\n\t\t\t\tx: current.x + fb * (next.x - previous.x),\r\n\t\t\t\ty: current.y + fb * (next.y - previous.y)\r\n\t\t\t}\r\n\t\t};\r\n\t};\r\n\thelpers$1.EPSILON = Number.EPSILON || 1e-14;\r\n\thelpers$1.splineCurveMonotone = function(points) {\r\n\t\t// This function calculates Bézier control points in a similar way than |splineCurve|,\r\n\t\t// but preserves monotonicity of the provided data and ensures no local extremums are added\r\n\t\t// between the dataset discrete points due to the interpolation.\r\n\t\t// See : https://en.wikipedia.org/wiki/Monotone_cubic_interpolation\r\n\r\n\t\tvar pointsWithTangents = (points || []).map(function(point) {\r\n\t\t\treturn {\r\n\t\t\t\tmodel: point._model,\r\n\t\t\t\tdeltaK: 0,\r\n\t\t\t\tmK: 0\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\t// Calculate slopes (deltaK) and initialize tangents (mK)\r\n\t\tvar pointsLen = pointsWithTangents.length;\r\n\t\tvar i, pointBefore, pointCurrent, pointAfter;\r\n\t\tfor (i = 0; i < pointsLen; ++i) {\r\n\t\t\tpointCurrent = pointsWithTangents[i];\r\n\t\t\tif (pointCurrent.model.skip) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tpointBefore = i > 0 ? pointsWithTangents[i - 1] : null;\r\n\t\t\tpointAfter = i < pointsLen - 1 ? pointsWithTangents[i + 1] : null;\r\n\t\t\tif (pointAfter && !pointAfter.model.skip) {\r\n\t\t\t\tvar slopeDeltaX = (pointAfter.model.x - pointCurrent.model.x);\r\n\r\n\t\t\t\t// In the case of two points that appear at the same x pixel, slopeDeltaX is 0\r\n\t\t\t\tpointCurrent.deltaK = slopeDeltaX !== 0 ? (pointAfter.model.y - pointCurrent.model.y) / slopeDeltaX : 0;\r\n\t\t\t}\r\n\r\n\t\t\tif (!pointBefore || pointBefore.model.skip) {\r\n\t\t\t\tpointCurrent.mK = pointCurrent.deltaK;\r\n\t\t\t} else if (!pointAfter || pointAfter.model.skip) {\r\n\t\t\t\tpointCurrent.mK = pointBefore.deltaK;\r\n\t\t\t} else if (this.sign(pointBefore.deltaK) !== this.sign(pointCurrent.deltaK)) {\r\n\t\t\t\tpointCurrent.mK = 0;\r\n\t\t\t} else {\r\n\t\t\t\tpointCurrent.mK = (pointBefore.deltaK + pointCurrent.deltaK) / 2;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Adjust tangents to ensure monotonic properties\r\n\t\tvar alphaK, betaK, tauK, squaredMagnitude;\r\n\t\tfor (i = 0; i < pointsLen - 1; ++i) {\r\n\t\t\tpointCurrent = pointsWithTangents[i];\r\n\t\t\tpointAfter = pointsWithTangents[i + 1];\r\n\t\t\tif (pointCurrent.model.skip || pointAfter.model.skip) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tif (helpers$1.almostEquals(pointCurrent.deltaK, 0, this.EPSILON)) {\r\n\t\t\t\tpointCurrent.mK = pointAfter.mK = 0;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\talphaK = pointCurrent.mK / pointCurrent.deltaK;\r\n\t\t\tbetaK = pointAfter.mK / pointCurrent.deltaK;\r\n\t\t\tsquaredMagnitude = Math.pow(alphaK, 2) + Math.pow(betaK, 2);\r\n\t\t\tif (squaredMagnitude <= 9) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\ttauK = 3 / Math.sqrt(squaredMagnitude);\r\n\t\t\tpointCurrent.mK = alphaK * tauK * pointCurrent.deltaK;\r\n\t\t\tpointAfter.mK = betaK * tauK * pointCurrent.deltaK;\r\n\t\t}\r\n\r\n\t\t// Compute control points\r\n\t\tvar deltaX;\r\n\t\tfor (i = 0; i < pointsLen; ++i) {\r\n\t\t\tpointCurrent = pointsWithTangents[i];\r\n\t\t\tif (pointCurrent.model.skip) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tpointBefore = i > 0 ? pointsWithTangents[i - 1] : null;\r\n\t\t\tpointAfter = i < pointsLen - 1 ? pointsWithTangents[i + 1] : null;\r\n\t\t\tif (pointBefore && !pointBefore.model.skip) {\r\n\t\t\t\tdeltaX = (pointCurrent.model.x - pointBefore.model.x) / 3;\r\n\t\t\t\tpointCurrent.model.controlPointPreviousX = pointCurrent.model.x - deltaX;\r\n\t\t\t\tpointCurrent.model.controlPointPreviousY = pointCurrent.model.y - deltaX * pointCurrent.mK;\r\n\t\t\t}\r\n\t\t\tif (pointAfter && !pointAfter.model.skip) {\r\n\t\t\t\tdeltaX = (pointAfter.model.x - pointCurrent.model.x) / 3;\r\n\t\t\t\tpointCurrent.model.controlPointNextX = pointCurrent.model.x + deltaX;\r\n\t\t\t\tpointCurrent.model.controlPointNextY = pointCurrent.model.y + deltaX * pointCurrent.mK;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\thelpers$1.nextItem = function(collection, index, loop) {\r\n\t\tif (loop) {\r\n\t\t\treturn index >= collection.length - 1 ? collection[0] : collection[index + 1];\r\n\t\t}\r\n\t\treturn index >= collection.length - 1 ? collection[collection.length - 1] : collection[index + 1];\r\n\t};\r\n\thelpers$1.previousItem = function(collection, index, loop) {\r\n\t\tif (loop) {\r\n\t\t\treturn index <= 0 ? collection[collection.length - 1] : collection[index - 1];\r\n\t\t}\r\n\t\treturn index <= 0 ? collection[0] : collection[index - 1];\r\n\t};\r\n\t// Implementation of the nice number algorithm used in determining where axis labels will go\r\n\thelpers$1.niceNum = function(range, round) {\r\n\t\tvar exponent = Math.floor(helpers$1.log10(range));\r\n\t\tvar fraction = range / Math.pow(10, exponent);\r\n\t\tvar niceFraction;\r\n\r\n\t\tif (round) {\r\n\t\t\tif (fraction < 1.5) {\r\n\t\t\t\tniceFraction = 1;\r\n\t\t\t} else if (fraction < 3) {\r\n\t\t\t\tniceFraction = 2;\r\n\t\t\t} else if (fraction < 7) {\r\n\t\t\t\tniceFraction = 5;\r\n\t\t\t} else {\r\n\t\t\t\tniceFraction = 10;\r\n\t\t\t}\r\n\t\t} else if (fraction <= 1.0) {\r\n\t\t\tniceFraction = 1;\r\n\t\t} else if (fraction <= 2) {\r\n\t\t\tniceFraction = 2;\r\n\t\t} else if (fraction <= 5) {\r\n\t\t\tniceFraction = 5;\r\n\t\t} else {\r\n\t\t\tniceFraction = 10;\r\n\t\t}\r\n\r\n\t\treturn niceFraction * Math.pow(10, exponent);\r\n\t};\r\n\t// Request animation polyfill - https://www.paulirish.com/2011/requestanimationframe-for-smart-animating/\r\n\thelpers$1.requestAnimFrame = (function() {\r\n\t\tif (typeof window === 'undefined') {\r\n\t\t\treturn function(callback) {\r\n\t\t\t\tcallback();\r\n\t\t\t};\r\n\t\t}\r\n\t\treturn window.requestAnimationFrame ||\r\n\t\t\twindow.webkitRequestAnimationFrame ||\r\n\t\t\twindow.mozRequestAnimationFrame ||\r\n\t\t\twindow.oRequestAnimationFrame ||\r\n\t\t\twindow.msRequestAnimationFrame ||\r\n\t\t\tfunction(callback) {\r\n\t\t\t\treturn window.setTimeout(callback, 1000 / 60);\r\n\t\t\t};\r\n\t}());\r\n\t// -- DOM methods\r\n\thelpers$1.getRelativePosition = function(evt, chart) {\r\n\t\tvar mouseX, mouseY;\r\n\t\tvar e = evt.originalEvent || evt;\r\n\t\tvar canvas = evt.target || evt.srcElement;\r\n\t\tvar boundingRect = canvas.getBoundingClientRect();\r\n\r\n\t\tvar touches = e.touches;\r\n\t\tif (touches && touches.length > 0) {\r\n\t\t\tmouseX = touches[0].clientX;\r\n\t\t\tmouseY = touches[0].clientY;\r\n\r\n\t\t} else {\r\n\t\t\tmouseX = e.clientX;\r\n\t\t\tmouseY = e.clientY;\r\n\t\t}\r\n\r\n\t\t// Scale mouse coordinates into canvas coordinates\r\n\t\t// by following the pattern laid out by 'jerryj' in the comments of\r\n\t\t// https://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/\r\n\t\tvar paddingLeft = parseFloat(helpers$1.getStyle(canvas, 'padding-left'));\r\n\t\tvar paddingTop = parseFloat(helpers$1.getStyle(canvas, 'padding-top'));\r\n\t\tvar paddingRight = parseFloat(helpers$1.getStyle(canvas, 'padding-right'));\r\n\t\tvar paddingBottom = parseFloat(helpers$1.getStyle(canvas, 'padding-bottom'));\r\n\t\tvar width = boundingRect.right - boundingRect.left - paddingLeft - paddingRight;\r\n\t\tvar height = boundingRect.bottom - boundingRect.top - paddingTop - paddingBottom;\r\n\r\n\t\t// We divide by the current device pixel ratio, because the canvas is scaled up by that amount in each direction. However\r\n\t\t// the backend model is in unscaled coordinates. Since we are going to deal with our model coordinates, we go back here\r\n\t\tmouseX = Math.round((mouseX - boundingRect.left - paddingLeft) / (width) * canvas.width / chart.currentDevicePixelRatio);\r\n\t\tmouseY = Math.round((mouseY - boundingRect.top - paddingTop) / (height) * canvas.height / chart.currentDevicePixelRatio);\r\n\r\n\t\treturn {\r\n\t\t\tx: mouseX,\r\n\t\t\ty: mouseY\r\n\t\t};\r\n\r\n\t};\r\n\r\n\t// Private helper function to convert max-width/max-height values that may be percentages into a number\r\n\tfunction parseMaxStyle(styleValue, node, parentProperty) {\r\n\t\tvar valueInPixels;\r\n\t\tif (typeof styleValue === 'string') {\r\n\t\t\tvalueInPixels = parseInt(styleValue, 10);\r\n\r\n\t\t\tif (styleValue.indexOf('%') !== -1) {\r\n\t\t\t\t// percentage * size in dimension\r\n\t\t\t\tvalueInPixels = valueInPixels / 100 * node.parentNode[parentProperty];\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tvalueInPixels = styleValue;\r\n\t\t}\r\n\r\n\t\treturn valueInPixels;\r\n\t}\r\n\r\n\t/**\r\n\t * Returns if the given value contains an effective constraint.\r\n\t * @private\r\n\t */\r\n\tfunction isConstrainedValue(value) {\r\n\t\treturn value !== undefined && value !== null && value !== 'none';\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the max width or height of the given DOM node in a cross-browser compatible fashion\r\n\t * @param {HTMLElement} domNode - the node to check the constraint on\r\n\t * @param {string} maxStyle - the style that defines the maximum for the direction we are using ('max-width' / 'max-height')\r\n\t * @param {string} percentageProperty - property of parent to use when calculating width as a percentage\r\n\t * @see {@link https://www.nathanaeljones.com/blog/2013/reading-max-width-cross-browser}\r\n\t */\r\n\tfunction getConstraintDimension(domNode, maxStyle, percentageProperty) {\r\n\t\tvar view = document.defaultView;\r\n\t\tvar parentNode = helpers$1._getParentNode(domNode);\r\n\t\tvar constrainedNode = view.getComputedStyle(domNode)[maxStyle];\r\n\t\tvar constrainedContainer = view.getComputedStyle(parentNode)[maxStyle];\r\n\t\tvar hasCNode = isConstrainedValue(constrainedNode);\r\n\t\tvar hasCContainer = isConstrainedValue(constrainedContainer);\r\n\t\tvar infinity = Number.POSITIVE_INFINITY;\r\n\r\n\t\tif (hasCNode || hasCContainer) {\r\n\t\t\treturn Math.min(\r\n\t\t\t\thasCNode ? parseMaxStyle(constrainedNode, domNode, percentageProperty) : infinity,\r\n\t\t\t\thasCContainer ? parseMaxStyle(constrainedContainer, parentNode, percentageProperty) : infinity);\r\n\t\t}\r\n\r\n\t\treturn 'none';\r\n\t}\r\n\t// returns Number or undefined if no constraint\r\n\thelpers$1.getConstraintWidth = function(domNode) {\r\n\t\treturn getConstraintDimension(domNode, 'max-width', 'clientWidth');\r\n\t};\r\n\t// returns Number or undefined if no constraint\r\n\thelpers$1.getConstraintHeight = function(domNode) {\r\n\t\treturn getConstraintDimension(domNode, 'max-height', 'clientHeight');\r\n\t};\r\n\t/**\r\n\t * @private\r\n \t */\r\n\thelpers$1._calculatePadding = function(container, padding, parentDimension) {\r\n\t\tpadding = helpers$1.getStyle(container, padding);\r\n\r\n\t\treturn padding.indexOf('%') > -1 ? parentDimension * parseInt(padding, 10) / 100 : parseInt(padding, 10);\r\n\t};\r\n\t/**\r\n\t * @private\r\n\t */\r\n\thelpers$1._getParentNode = function(domNode) {\r\n\t\tvar parent = domNode.parentNode;\r\n\t\tif (parent && parent.toString() === '[object ShadowRoot]') {\r\n\t\t\tparent = parent.host;\r\n\t\t}\r\n\t\treturn parent;\r\n\t};\r\n\thelpers$1.getMaximumWidth = function(domNode) {\r\n\t\tvar container = helpers$1._getParentNode(domNode);\r\n\t\tif (!container) {\r\n\t\t\treturn domNode.clientWidth;\r\n\t\t}\r\n\r\n\t\tvar clientWidth = container.clientWidth;\r\n\t\tvar paddingLeft = helpers$1._calculatePadding(container, 'padding-left', clientWidth);\r\n\t\tvar paddingRight = helpers$1._calculatePadding(container, 'padding-right', clientWidth);\r\n\r\n\t\tvar w = clientWidth - paddingLeft - paddingRight;\r\n\t\tvar cw = helpers$1.getConstraintWidth(domNode);\r\n\t\treturn isNaN(cw) ? w : Math.min(w, cw);\r\n\t};\r\n\thelpers$1.getMaximumHeight = function(domNode) {\r\n\t\tvar container = helpers$1._getParentNode(domNode);\r\n\t\tif (!container) {\r\n\t\t\treturn domNode.clientHeight;\r\n\t\t}\r\n\r\n\t\tvar clientHeight = container.clientHeight;\r\n\t\tvar paddingTop = helpers$1._calculatePadding(container, 'padding-top', clientHeight);\r\n\t\tvar paddingBottom = helpers$1._calculatePadding(container, 'padding-bottom', clientHeight);\r\n\r\n\t\tvar h = clientHeight - paddingTop - paddingBottom;\r\n\t\tvar ch = helpers$1.getConstraintHeight(domNode);\r\n\t\treturn isNaN(ch) ? h : Math.min(h, ch);\r\n\t};\r\n\thelpers$1.getStyle = function(el, property) {\r\n\t\treturn el.currentStyle ?\r\n\t\t\tel.currentStyle[property] :\r\n\t\t\tdocument.defaultView.getComputedStyle(el, null).getPropertyValue(property);\r\n\t};\r\n\thelpers$1.retinaScale = function(chart, forceRatio) {\r\n\t\tvar pixelRatio = chart.currentDevicePixelRatio = forceRatio || (typeof window !== 'undefined' && window.devicePixelRatio) || 1;\r\n\t\tif (pixelRatio === 1) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar canvas = chart.canvas;\r\n\t\tvar height = chart.height;\r\n\t\tvar width = chart.width;\r\n\r\n\t\tcanvas.height = height * pixelRatio;\r\n\t\tcanvas.width = width * pixelRatio;\r\n\t\tchart.ctx.scale(pixelRatio, pixelRatio);\r\n\r\n\t\t// If no style has been set on the canvas, the render size is used as display size,\r\n\t\t// making the chart visually bigger, so let's enforce it to the \"correct\" values.\r\n\t\t// See https://github.com/chartjs/Chart.js/issues/3575\r\n\t\tif (!canvas.style.height && !canvas.style.width) {\r\n\t\t\tcanvas.style.height = height + 'px';\r\n\t\t\tcanvas.style.width = width + 'px';\r\n\t\t}\r\n\t};\r\n\t// -- Canvas methods\r\n\thelpers$1.fontString = function(pixelSize, fontStyle, fontFamily) {\r\n\t\treturn fontStyle + ' ' + pixelSize + 'px ' + fontFamily;\r\n\t};\r\n\thelpers$1.longestText = function(ctx, font, arrayOfThings, cache) {\r\n\t\tcache = cache || {};\r\n\t\tvar data = cache.data = cache.data || {};\r\n\t\tvar gc = cache.garbageCollect = cache.garbageCollect || [];\r\n\r\n\t\tif (cache.font !== font) {\r\n\t\t\tdata = cache.data = {};\r\n\t\t\tgc = cache.garbageCollect = [];\r\n\t\t\tcache.font = font;\r\n\t\t}\r\n\r\n\t\tctx.font = font;\r\n\t\tvar longest = 0;\r\n\t\tvar ilen = arrayOfThings.length;\r\n\t\tvar i, j, jlen, thing, nestedThing;\r\n\t\tfor (i = 0; i < ilen; i++) {\r\n\t\t\tthing = arrayOfThings[i];\r\n\r\n\t\t\t// Undefined strings and arrays should not be measured\r\n\t\t\tif (thing !== undefined && thing !== null && helpers$1.isArray(thing) !== true) {\r\n\t\t\t\tlongest = helpers$1.measureText(ctx, data, gc, longest, thing);\r\n\t\t\t} else if (helpers$1.isArray(thing)) {\r\n\t\t\t\t// if it is an array lets measure each element\r\n\t\t\t\t// to do maybe simplify this function a bit so we can do this more recursively?\r\n\t\t\t\tfor (j = 0, jlen = thing.length; j < jlen; j++) {\r\n\t\t\t\t\tnestedThing = thing[j];\r\n\t\t\t\t\t// Undefined strings and arrays should not be measured\r\n\t\t\t\t\tif (nestedThing !== undefined && nestedThing !== null && !helpers$1.isArray(nestedThing)) {\r\n\t\t\t\t\t\tlongest = helpers$1.measureText(ctx, data, gc, longest, nestedThing);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar gcLen = gc.length / 2;\r\n\t\tif (gcLen > arrayOfThings.length) {\r\n\t\t\tfor (i = 0; i < gcLen; i++) {\r\n\t\t\t\tdelete data[gc[i]];\r\n\t\t\t}\r\n\t\t\tgc.splice(0, gcLen);\r\n\t\t}\r\n\t\treturn longest;\r\n\t};\r\n\thelpers$1.measureText = function(ctx, data, gc, longest, string) {\r\n\t\tvar textWidth = data[string];\r\n\t\tif (!textWidth) {\r\n\t\t\ttextWidth = data[string] = ctx.measureText(string).width;\r\n\t\t\tgc.push(string);\r\n\t\t}\r\n\t\tif (textWidth > longest) {\r\n\t\t\tlongest = textWidth;\r\n\t\t}\r\n\t\treturn longest;\r\n\t};\r\n\r\n\t/**\r\n\t * @deprecated\r\n\t */\r\n\thelpers$1.numberOfLabelLines = function(arrayOfThings) {\r\n\t\tvar numberOfLines = 1;\r\n\t\thelpers$1.each(arrayOfThings, function(thing) {\r\n\t\t\tif (helpers$1.isArray(thing)) {\r\n\t\t\t\tif (thing.length > numberOfLines) {\r\n\t\t\t\t\tnumberOfLines = thing.length;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn numberOfLines;\r\n\t};\r\n\r\n\thelpers$1.color = !chartjsColor ?\r\n\t\tfunction(value) {\r\n\t\t\tconsole.error('Color.js not found!');\r\n\t\t\treturn value;\r\n\t\t} :\r\n\t\tfunction(value) {\r\n\t\t\t/* global CanvasGradient */\r\n\t\t\tif (value instanceof CanvasGradient) {\r\n\t\t\t\tvalue = core_defaults.global.defaultColor;\r\n\t\t\t}\r\n\r\n\t\t\treturn chartjsColor(value);\r\n\t\t};\r\n\r\n\thelpers$1.getHoverColor = function(colorValue) {\r\n\t\t/* global CanvasPattern */\r\n\t\treturn (colorValue instanceof CanvasPattern || colorValue instanceof CanvasGradient) ?\r\n\t\t\tcolorValue :\r\n\t\t\thelpers$1.color(colorValue).saturate(0.5).darken(0.1).rgbString();\r\n\t};\r\n};\n\nfunction abstract() {\r\n\tthrow new Error(\r\n\t\t'This method is not implemented: either no adapter can ' +\r\n\t\t'be found or an incomplete integration was provided.'\r\n\t);\r\n}\r\n\r\n/**\r\n * Date adapter (current used by the time scale)\r\n * @namespace Chart._adapters._date\r\n * @memberof Chart._adapters\r\n * @private\r\n */\r\n\r\n/**\r\n * Currently supported unit string values.\r\n * @typedef {('millisecond'|'second'|'minute'|'hour'|'day'|'week'|'month'|'quarter'|'year')}\r\n * @memberof Chart._adapters._date\r\n * @name Unit\r\n */\r\n\r\n/**\r\n * @class\r\n */\r\nfunction DateAdapter(options) {\r\n\tthis.options = options || {};\r\n}\r\n\r\nhelpers$1.extend(DateAdapter.prototype, /** @lends DateAdapter */ {\r\n\t/**\r\n\t * Returns a map of time formats for the supported formatting units defined\r\n\t * in Unit as well as 'datetime' representing a detailed date/time string.\r\n\t * @returns {{string: string}}\r\n\t */\r\n\tformats: abstract,\r\n\r\n\t/**\r\n\t * Parses the given `value` and return the associated timestamp.\r\n\t * @param {any} value - the value to parse (usually comes from the data)\r\n\t * @param {string} [format] - the expected data format\r\n\t * @returns {(number|null)}\r\n\t * @function\r\n\t */\r\n\tparse: abstract,\r\n\r\n\t/**\r\n\t * Returns the formatted date in the specified `format` for a given `timestamp`.\r\n\t * @param {number} timestamp - the timestamp to format\r\n\t * @param {string} format - the date/time token\r\n\t * @return {string}\r\n\t * @function\r\n\t */\r\n\tformat: abstract,\r\n\r\n\t/**\r\n\t * Adds the specified `amount` of `unit` to the given `timestamp`.\r\n\t * @param {number} timestamp - the input timestamp\r\n\t * @param {number} amount - the amount to add\r\n\t * @param {Unit} unit - the unit as string\r\n\t * @return {number}\r\n\t * @function\r\n\t */\r\n\tadd: abstract,\r\n\r\n\t/**\r\n\t * Returns the number of `unit` between the given timestamps.\r\n\t * @param {number} max - the input timestamp (reference)\r\n\t * @param {number} min - the timestamp to substract\r\n\t * @param {Unit} unit - the unit as string\r\n\t * @return {number}\r\n\t * @function\r\n\t */\r\n\tdiff: abstract,\r\n\r\n\t/**\r\n\t * Returns start of `unit` for the given `timestamp`.\r\n\t * @param {number} timestamp - the input timestamp\r\n\t * @param {Unit} unit - the unit as string\r\n\t * @param {number} [weekday] - the ISO day of the week with 1 being Monday\r\n\t * and 7 being Sunday (only needed if param *unit* is `isoWeek`).\r\n\t * @function\r\n\t */\r\n\tstartOf: abstract,\r\n\r\n\t/**\r\n\t * Returns end of `unit` for the given `timestamp`.\r\n\t * @param {number} timestamp - the input timestamp\r\n\t * @param {Unit} unit - the unit as string\r\n\t * @function\r\n\t */\r\n\tendOf: abstract,\r\n\r\n\t// DEPRECATIONS\r\n\r\n\t/**\r\n\t * Provided for backward compatibility for scale.getValueForPixel(),\r\n\t * this method should be overridden only by the moment adapter.\r\n\t * @deprecated since version 2.8.0\r\n\t * @todo remove at version 3\r\n\t * @private\r\n\t */\r\n\t_create: function(value) {\r\n\t\treturn value;\r\n\t}\r\n});\r\n\r\nDateAdapter.override = function(members) {\r\n\thelpers$1.extend(DateAdapter.prototype, members);\r\n};\r\n\r\nvar _date = DateAdapter;\n\nvar core_adapters = {\n\t_date: _date\n};\n\n/**\r\n * Namespace to hold static tick generation functions\r\n * @namespace Chart.Ticks\r\n */\r\nvar core_ticks = {\r\n\t/**\r\n\t * Namespace to hold formatters for different types of ticks\r\n\t * @namespace Chart.Ticks.formatters\r\n\t */\r\n\tformatters: {\r\n\t\t/**\r\n\t\t * Formatter for value labels\r\n\t\t * @method Chart.Ticks.formatters.values\r\n\t\t * @param value the value to display\r\n\t\t * @return {string|string[]} the label to display\r\n\t\t */\r\n\t\tvalues: function(value) {\r\n\t\t\treturn helpers$1.isArray(value) ? value : '' + value;\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * Formatter for linear numeric ticks\r\n\t\t * @method Chart.Ticks.formatters.linear\r\n\t\t * @param tickValue {number} the value to be formatted\r\n\t\t * @param index {number} the position of the tickValue parameter in the ticks array\r\n\t\t * @param ticks {number[]} the list of ticks being converted\r\n\t\t * @return {string} string representation of the tickValue parameter\r\n\t\t */\r\n\t\tlinear: function(tickValue, index, ticks) {\r\n\t\t\t// If we have lots of ticks, don't use the ones\r\n\t\t\tvar delta = ticks.length > 3 ? ticks[2] - ticks[1] : ticks[1] - ticks[0];\r\n\r\n\t\t\t// If we have a number like 2.5 as the delta, figure out how many decimal places we need\r\n\t\t\tif (Math.abs(delta) > 1) {\r\n\t\t\t\tif (tickValue !== Math.floor(tickValue)) {\r\n\t\t\t\t\t// not an integer\r\n\t\t\t\t\tdelta = tickValue - Math.floor(tickValue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tvar logDelta = helpers$1.log10(Math.abs(delta));\r\n\t\t\tvar tickString = '';\r\n\r\n\t\t\tif (tickValue !== 0) {\r\n\t\t\t\tvar maxTick = Math.max(Math.abs(ticks[0]), Math.abs(ticks[ticks.length - 1]));\r\n\t\t\t\tif (maxTick < 1e-4) { // all ticks are small numbers; use scientific notation\r\n\t\t\t\t\tvar logTick = helpers$1.log10(Math.abs(tickValue));\r\n\t\t\t\t\tvar numExponential = Math.floor(logTick) - Math.floor(logDelta);\r\n\t\t\t\t\tnumExponential = Math.max(Math.min(numExponential, 20), 0);\r\n\t\t\t\t\ttickString = tickValue.toExponential(numExponential);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar numDecimal = -1 * Math.floor(logDelta);\r\n\t\t\t\t\tnumDecimal = Math.max(Math.min(numDecimal, 20), 0); // toFixed has a max of 20 decimal places\r\n\t\t\t\t\ttickString = tickValue.toFixed(numDecimal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\ttickString = '0'; // never show decimal places for 0\r\n\t\t\t}\r\n\r\n\t\t\treturn tickString;\r\n\t\t},\r\n\r\n\t\tlogarithmic: function(tickValue, index, ticks) {\r\n\t\t\tvar remain = tickValue / (Math.pow(10, Math.floor(helpers$1.log10(tickValue))));\r\n\r\n\t\t\tif (tickValue === 0) {\r\n\t\t\t\treturn '0';\r\n\t\t\t} else if (remain === 1 || remain === 2 || remain === 5 || index === 0 || index === ticks.length - 1) {\r\n\t\t\t\treturn tickValue.toExponential();\r\n\t\t\t}\r\n\t\t\treturn '';\r\n\t\t}\r\n\t}\r\n};\n\nvar isArray = helpers$1.isArray;\r\nvar isNullOrUndef = helpers$1.isNullOrUndef;\r\nvar valueOrDefault$a = helpers$1.valueOrDefault;\r\nvar valueAtIndexOrDefault = helpers$1.valueAtIndexOrDefault;\r\n\r\ncore_defaults._set('scale', {\r\n\tdisplay: true,\r\n\tposition: 'left',\r\n\toffset: false,\r\n\r\n\t// grid line settings\r\n\tgridLines: {\r\n\t\tdisplay: true,\r\n\t\tcolor: 'rgba(0,0,0,0.1)',\r\n\t\tlineWidth: 1,\r\n\t\tdrawBorder: true,\r\n\t\tdrawOnChartArea: true,\r\n\t\tdrawTicks: true,\r\n\t\ttickMarkLength: 10,\r\n\t\tzeroLineWidth: 1,\r\n\t\tzeroLineColor: 'rgba(0,0,0,0.25)',\r\n\t\tzeroLineBorderDash: [],\r\n\t\tzeroLineBorderDashOffset: 0.0,\r\n\t\toffsetGridLines: false,\r\n\t\tborderDash: [],\r\n\t\tborderDashOffset: 0.0\r\n\t},\r\n\r\n\t// scale label\r\n\tscaleLabel: {\r\n\t\t// display property\r\n\t\tdisplay: false,\r\n\r\n\t\t// actual label\r\n\t\tlabelString: '',\r\n\r\n\t\t// top/bottom padding\r\n\t\tpadding: {\r\n\t\t\ttop: 4,\r\n\t\t\tbottom: 4\r\n\t\t}\r\n\t},\r\n\r\n\t// label settings\r\n\tticks: {\r\n\t\tbeginAtZero: false,\r\n\t\tminRotation: 0,\r\n\t\tmaxRotation: 50,\r\n\t\tmirror: false,\r\n\t\tpadding: 0,\r\n\t\treverse: false,\r\n\t\tdisplay: true,\r\n\t\tautoSkip: true,\r\n\t\tautoSkipPadding: 0,\r\n\t\tlabelOffset: 0,\r\n\t\t// We pass through arrays to be rendered as multiline labels, we convert Others to strings here.\r\n\t\tcallback: core_ticks.formatters.values,\r\n\t\tminor: {},\r\n\t\tmajor: {}\r\n\t}\r\n});\r\n\r\n/** Returns a new array containing numItems from arr */\r\nfunction sample(arr, numItems) {\r\n\tvar result = [];\r\n\tvar increment = arr.length / numItems;\r\n\tvar i = 0;\r\n\tvar len = arr.length;\r\n\r\n\tfor (; i < len; i += increment) {\r\n\t\tresult.push(arr[Math.floor(i)]);\r\n\t}\r\n\treturn result;\r\n}\r\n\r\nfunction getPixelForGridLine(scale, index, offsetGridLines) {\r\n\tvar length = scale.getTicks().length;\r\n\tvar validIndex = Math.min(index, length - 1);\r\n\tvar lineValue = scale.getPixelForTick(validIndex);\r\n\tvar start = scale._startPixel;\r\n\tvar end = scale._endPixel;\r\n\tvar epsilon = 1e-6; // 1e-6 is margin in pixels for accumulated error.\r\n\tvar offset;\r\n\r\n\tif (offsetGridLines) {\r\n\t\tif (length === 1) {\r\n\t\t\toffset = Math.max(lineValue - start, end - lineValue);\r\n\t\t} else if (index === 0) {\r\n\t\t\toffset = (scale.getPixelForTick(1) - lineValue) / 2;\r\n\t\t} else {\r\n\t\t\toffset = (lineValue - scale.getPixelForTick(validIndex - 1)) / 2;\r\n\t\t}\r\n\t\tlineValue += validIndex < index ? offset : -offset;\r\n\r\n\t\t// Return undefined if the pixel is out of the range\r\n\t\tif (lineValue < start - epsilon || lineValue > end + epsilon) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t}\r\n\treturn lineValue;\r\n}\r\n\r\nfunction garbageCollect(caches, length) {\r\n\thelpers$1.each(caches, function(cache) {\r\n\t\tvar gc = cache.gc;\r\n\t\tvar gcLen = gc.length / 2;\r\n\t\tvar i;\r\n\t\tif (gcLen > length) {\r\n\t\t\tfor (i = 0; i < gcLen; ++i) {\r\n\t\t\t\tdelete cache.data[gc[i]];\r\n\t\t\t}\r\n\t\t\tgc.splice(0, gcLen);\r\n\t\t}\r\n\t});\r\n}\r\n\r\n/**\r\n * Returns {width, height, offset} objects for the first, last, widest, highest tick\r\n * labels where offset indicates the anchor point offset from the top in pixels.\r\n */\r\nfunction computeLabelSizes(ctx, tickFonts, ticks, caches) {\r\n\tvar length = ticks.length;\r\n\tvar widths = [];\r\n\tvar heights = [];\r\n\tvar offsets = [];\r\n\tvar widestLabelSize = 0;\r\n\tvar highestLabelSize = 0;\r\n\tvar i, j, jlen, label, tickFont, fontString, cache, lineHeight, width, height, nestedLabel, widest, highest;\r\n\r\n\tfor (i = 0; i < length; ++i) {\r\n\t\tlabel = ticks[i].label;\r\n\t\ttickFont = ticks[i].major ? tickFonts.major : tickFonts.minor;\r\n\t\tctx.font = fontString = tickFont.string;\r\n\t\tcache = caches[fontString] = caches[fontString] || {data: {}, gc: []};\r\n\t\tlineHeight = tickFont.lineHeight;\r\n\t\twidth = height = 0;\r\n\t\t// Undefined labels and arrays should not be measured\r\n\t\tif (!isNullOrUndef(label) && !isArray(label)) {\r\n\t\t\twidth = helpers$1.measureText(ctx, cache.data, cache.gc, width, label);\r\n\t\t\theight = lineHeight;\r\n\t\t} else if (isArray(label)) {\r\n\t\t\t// if it is an array let's measure each element\r\n\t\t\tfor (j = 0, jlen = label.length; j < jlen; ++j) {\r\n\t\t\t\tnestedLabel = label[j];\r\n\t\t\t\t// Undefined labels and arrays should not be measured\r\n\t\t\t\tif (!isNullOrUndef(nestedLabel) && !isArray(nestedLabel)) {\r\n\t\t\t\t\twidth = helpers$1.measureText(ctx, cache.data, cache.gc, width, nestedLabel);\r\n\t\t\t\t\theight += lineHeight;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\twidths.push(width);\r\n\t\theights.push(height);\r\n\t\toffsets.push(lineHeight / 2);\r\n\t\twidestLabelSize = Math.max(width, widestLabelSize);\r\n\t\thighestLabelSize = Math.max(height, highestLabelSize);\r\n\t}\r\n\tgarbageCollect(caches, length);\r\n\r\n\twidest = widths.indexOf(widestLabelSize);\r\n\thighest = heights.indexOf(highestLabelSize);\r\n\r\n\tfunction valueAt(idx) {\r\n\t\treturn {\r\n\t\t\twidth: widths[idx] || 0,\r\n\t\t\theight: heights[idx] || 0,\r\n\t\t\toffset: offsets[idx] || 0\r\n\t\t};\r\n\t}\r\n\r\n\treturn {\r\n\t\tfirst: valueAt(0),\r\n\t\tlast: valueAt(length - 1),\r\n\t\twidest: valueAt(widest),\r\n\t\thighest: valueAt(highest)\r\n\t};\r\n}\r\n\r\nfunction getTickMarkLength(options) {\r\n\treturn options.drawTicks ? options.tickMarkLength : 0;\r\n}\r\n\r\nfunction getScaleLabelHeight(options) {\r\n\tvar font, padding;\r\n\r\n\tif (!options.display) {\r\n\t\treturn 0;\r\n\t}\r\n\r\n\tfont = helpers$1.options._parseFont(options);\r\n\tpadding = helpers$1.options.toPadding(options.padding);\r\n\r\n\treturn font.lineHeight + padding.height;\r\n}\r\n\r\nfunction parseFontOptions(options, nestedOpts) {\r\n\treturn helpers$1.extend(helpers$1.options._parseFont({\r\n\t\tfontFamily: valueOrDefault$a(nestedOpts.fontFamily, options.fontFamily),\r\n\t\tfontSize: valueOrDefault$a(nestedOpts.fontSize, options.fontSize),\r\n\t\tfontStyle: valueOrDefault$a(nestedOpts.fontStyle, options.fontStyle),\r\n\t\tlineHeight: valueOrDefault$a(nestedOpts.lineHeight, options.lineHeight)\r\n\t}), {\r\n\t\tcolor: helpers$1.options.resolve([nestedOpts.fontColor, options.fontColor, core_defaults.global.defaultFontColor])\r\n\t});\r\n}\r\n\r\nfunction parseTickFontOptions(options) {\r\n\tvar minor = parseFontOptions(options, options.minor);\r\n\tvar major = options.major.enabled ? parseFontOptions(options, options.major) : minor;\r\n\r\n\treturn {minor: minor, major: major};\r\n}\r\n\r\nfunction nonSkipped(ticksToFilter) {\r\n\tvar filtered = [];\r\n\tvar item, index, len;\r\n\tfor (index = 0, len = ticksToFilter.length; index < len; ++index) {\r\n\t\titem = ticksToFilter[index];\r\n\t\tif (typeof item._index !== 'undefined') {\r\n\t\t\tfiltered.push(item);\r\n\t\t}\r\n\t}\r\n\treturn filtered;\r\n}\r\n\r\nfunction getEvenSpacing(arr) {\r\n\tvar len = arr.length;\r\n\tvar i, diff;\r\n\r\n\tif (len < 2) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\tfor (diff = arr[0], i = 1; i < len; ++i) {\r\n\t\tif (arr[i] - arr[i - 1] !== diff) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\treturn diff;\r\n}\r\n\r\nfunction calculateSpacing(majorIndices, ticks, axisLength, ticksLimit) {\r\n\tvar evenMajorSpacing = getEvenSpacing(majorIndices);\r\n\tvar spacing = (ticks.length - 1) / ticksLimit;\r\n\tvar factors, factor, i, ilen;\r\n\r\n\t// If the major ticks are evenly spaced apart, place the minor ticks\r\n\t// so that they divide the major ticks into even chunks\r\n\tif (!evenMajorSpacing) {\r\n\t\treturn Math.max(spacing, 1);\r\n\t}\r\n\r\n\tfactors = helpers$1.math._factorize(evenMajorSpacing);\r\n\tfor (i = 0, ilen = factors.length - 1; i < ilen; i++) {\r\n\t\tfactor = factors[i];\r\n\t\tif (factor > spacing) {\r\n\t\t\treturn factor;\r\n\t\t}\r\n\t}\r\n\treturn Math.max(spacing, 1);\r\n}\r\n\r\nfunction getMajorIndices(ticks) {\r\n\tvar result = [];\r\n\tvar i, ilen;\r\n\tfor (i = 0, ilen = ticks.length; i < ilen; i++) {\r\n\t\tif (ticks[i].major) {\r\n\t\t\tresult.push(i);\r\n\t\t}\r\n\t}\r\n\treturn result;\r\n}\r\n\r\nfunction skipMajors(ticks, majorIndices, spacing) {\r\n\tvar count = 0;\r\n\tvar next = majorIndices[0];\r\n\tvar i, tick;\r\n\r\n\tspacing = Math.ceil(spacing);\r\n\tfor (i = 0; i < ticks.length; i++) {\r\n\t\ttick = ticks[i];\r\n\t\tif (i === next) {\r\n\t\t\ttick._index = i;\r\n\t\t\tcount++;\r\n\t\t\tnext = majorIndices[count * spacing];\r\n\t\t} else {\r\n\t\t\tdelete tick.label;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction skip(ticks, spacing, majorStart, majorEnd) {\r\n\tvar start = valueOrDefault$a(majorStart, 0);\r\n\tvar end = Math.min(valueOrDefault$a(majorEnd, ticks.length), ticks.length);\r\n\tvar count = 0;\r\n\tvar length, i, tick, next;\r\n\r\n\tspacing = Math.ceil(spacing);\r\n\tif (majorEnd) {\r\n\t\tlength = majorEnd - majorStart;\r\n\t\tspacing = length / Math.floor(length / spacing);\r\n\t}\r\n\r\n\tnext = start;\r\n\r\n\twhile (next < 0) {\r\n\t\tcount++;\r\n\t\tnext = Math.round(start + count * spacing);\r\n\t}\r\n\r\n\tfor (i = Math.max(start, 0); i < end; i++) {\r\n\t\ttick = ticks[i];\r\n\t\tif (i === next) {\r\n\t\t\ttick._index = i;\r\n\t\t\tcount++;\r\n\t\t\tnext = Math.round(start + count * spacing);\r\n\t\t} else {\r\n\t\t\tdelete tick.label;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nvar Scale = core_element.extend({\r\n\r\n\tzeroLineIndex: 0,\r\n\r\n\t/**\r\n\t * Get the padding needed for the scale\r\n\t * @method getPadding\r\n\t * @private\r\n\t * @returns {Padding} the necessary padding\r\n\t */\r\n\tgetPadding: function() {\r\n\t\tvar me = this;\r\n\t\treturn {\r\n\t\t\tleft: me.paddingLeft || 0,\r\n\t\t\ttop: me.paddingTop || 0,\r\n\t\t\tright: me.paddingRight || 0,\r\n\t\t\tbottom: me.paddingBottom || 0\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the scale tick objects ({label, major})\r\n\t * @since 2.7\r\n\t */\r\n\tgetTicks: function() {\r\n\t\treturn this._ticks;\r\n\t},\r\n\r\n\t/**\r\n\t* @private\r\n\t*/\r\n\t_getLabels: function() {\r\n\t\tvar data = this.chart.data;\r\n\t\treturn this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels || [];\r\n\t},\r\n\r\n\t// These methods are ordered by lifecyle. Utilities then follow.\r\n\t// Any function defined here is inherited by all scale types.\r\n\t// Any function can be extended by the scale type\r\n\r\n\t/**\r\n\t * Provided for backward compatibility, not available anymore\r\n\t * @function Chart.Scale.mergeTicksOptions\r\n\t * @deprecated since version 2.8.0\r\n\t * @todo remove at version 3\r\n\t */\r\n\tmergeTicksOptions: function() {\r\n\t\t// noop\r\n\t},\r\n\r\n\tbeforeUpdate: function() {\r\n\t\thelpers$1.callback(this.options.beforeUpdate, [this]);\r\n\t},\r\n\r\n\t/**\r\n\t * @param {number} maxWidth - the max width in pixels\r\n\t * @param {number} maxHeight - the max height in pixels\r\n\t * @param {object} margins - the space between the edge of the other scales and edge of the chart\r\n\t *   This space comes from two sources:\r\n\t *     - padding - space that's required to show the labels at the edges of the scale\r\n\t *     - thickness of scales or legends in another orientation\r\n\t */\r\n\tupdate: function(maxWidth, maxHeight, margins) {\r\n\t\tvar me = this;\r\n\t\tvar tickOpts = me.options.ticks;\r\n\t\tvar sampleSize = tickOpts.sampleSize;\r\n\t\tvar i, ilen, labels, ticks, samplingEnabled;\r\n\r\n\t\t// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\r\n\t\tme.beforeUpdate();\r\n\r\n\t\t// Absorb the master measurements\r\n\t\tme.maxWidth = maxWidth;\r\n\t\tme.maxHeight = maxHeight;\r\n\t\tme.margins = helpers$1.extend({\r\n\t\t\tleft: 0,\r\n\t\t\tright: 0,\r\n\t\t\ttop: 0,\r\n\t\t\tbottom: 0\r\n\t\t}, margins);\r\n\r\n\t\tme._ticks = null;\r\n\t\tme.ticks = null;\r\n\t\tme._labelSizes = null;\r\n\t\tme._maxLabelLines = 0;\r\n\t\tme.longestLabelWidth = 0;\r\n\t\tme.longestTextCache = me.longestTextCache || {};\r\n\t\tme._gridLineItems = null;\r\n\t\tme._labelItems = null;\r\n\r\n\t\t// Dimensions\r\n\t\tme.beforeSetDimensions();\r\n\t\tme.setDimensions();\r\n\t\tme.afterSetDimensions();\r\n\r\n\t\t// Data min/max\r\n\t\tme.beforeDataLimits();\r\n\t\tme.determineDataLimits();\r\n\t\tme.afterDataLimits();\r\n\r\n\t\t// Ticks - `this.ticks` is now DEPRECATED!\r\n\t\t// Internal ticks are now stored as objects in the PRIVATE `this._ticks` member\r\n\t\t// and must not be accessed directly from outside this class. `this.ticks` being\r\n\t\t// around for long time and not marked as private, we can't change its structure\r\n\t\t// without unexpected breaking changes. If you need to access the scale ticks,\r\n\t\t// use scale.getTicks() instead.\r\n\r\n\t\tme.beforeBuildTicks();\r\n\r\n\t\t// New implementations should return an array of objects but for BACKWARD COMPAT,\r\n\t\t// we still support no return (`this.ticks` internally set by calling this method).\r\n\t\tticks = me.buildTicks() || [];\r\n\r\n\t\t// Allow modification of ticks in callback.\r\n\t\tticks = me.afterBuildTicks(ticks) || ticks;\r\n\r\n\t\t// Ensure ticks contains ticks in new tick format\r\n\t\tif ((!ticks || !ticks.length) && me.ticks) {\r\n\t\t\tticks = [];\r\n\t\t\tfor (i = 0, ilen = me.ticks.length; i < ilen; ++i) {\r\n\t\t\t\tticks.push({\r\n\t\t\t\t\tvalue: me.ticks[i],\r\n\t\t\t\t\tmajor: false\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tme._ticks = ticks;\r\n\r\n\t\t// Compute tick rotation and fit using a sampled subset of labels\r\n\t\t// We generally don't need to compute the size of every single label for determining scale size\r\n\t\tsamplingEnabled = sampleSize < ticks.length;\r\n\t\tlabels = me._convertTicksToLabels(samplingEnabled ? sample(ticks, sampleSize) : ticks);\r\n\r\n\t\t// _configure is called twice, once here, once from core.controller.updateLayout.\r\n\t\t// Here we haven't been positioned yet, but dimensions are correct.\r\n\t\t// Variables set in _configure are needed for calculateTickRotation, and\r\n\t\t// it's ok that coordinates are not correct there, only dimensions matter.\r\n\t\tme._configure();\r\n\r\n\t\t// Tick Rotation\r\n\t\tme.beforeCalculateTickRotation();\r\n\t\tme.calculateTickRotation();\r\n\t\tme.afterCalculateTickRotation();\r\n\r\n\t\tme.beforeFit();\r\n\t\tme.fit();\r\n\t\tme.afterFit();\r\n\r\n\t\t// Auto-skip\r\n\t\tme._ticksToDraw = tickOpts.display && (tickOpts.autoSkip || tickOpts.source === 'auto') ? me._autoSkip(ticks) : ticks;\r\n\r\n\t\tif (samplingEnabled) {\r\n\t\t\t// Generate labels using all non-skipped ticks\r\n\t\t\tlabels = me._convertTicksToLabels(me._ticksToDraw);\r\n\t\t}\r\n\r\n\t\tme.ticks = labels;   // BACKWARD COMPATIBILITY\r\n\r\n\t\t// IMPORTANT: after this point, we consider that `this.ticks` will NEVER change!\r\n\r\n\t\tme.afterUpdate();\r\n\r\n\t\t// TODO(v3): remove minSize as a public property and return value from all layout boxes. It is unused\r\n\t\t// make maxWidth and maxHeight private\r\n\t\treturn me.minSize;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_configure: function() {\r\n\t\tvar me = this;\r\n\t\tvar reversePixels = me.options.ticks.reverse;\r\n\t\tvar startPixel, endPixel;\r\n\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\tstartPixel = me.left;\r\n\t\t\tendPixel = me.right;\r\n\t\t} else {\r\n\t\t\tstartPixel = me.top;\r\n\t\t\tendPixel = me.bottom;\r\n\t\t\t// by default vertical scales are from bottom to top, so pixels are reversed\r\n\t\t\treversePixels = !reversePixels;\r\n\t\t}\r\n\t\tme._startPixel = startPixel;\r\n\t\tme._endPixel = endPixel;\r\n\t\tme._reversePixels = reversePixels;\r\n\t\tme._length = endPixel - startPixel;\r\n\t},\r\n\r\n\tafterUpdate: function() {\r\n\t\thelpers$1.callback(this.options.afterUpdate, [this]);\r\n\t},\r\n\r\n\t//\r\n\r\n\tbeforeSetDimensions: function() {\r\n\t\thelpers$1.callback(this.options.beforeSetDimensions, [this]);\r\n\t},\r\n\tsetDimensions: function() {\r\n\t\tvar me = this;\r\n\t\t// Set the unconstrained dimension before label rotation\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\t// Reset position before calculating rotation\r\n\t\t\tme.width = me.maxWidth;\r\n\t\t\tme.left = 0;\r\n\t\t\tme.right = me.width;\r\n\t\t} else {\r\n\t\t\tme.height = me.maxHeight;\r\n\r\n\t\t\t// Reset position before calculating rotation\r\n\t\t\tme.top = 0;\r\n\t\t\tme.bottom = me.height;\r\n\t\t}\r\n\r\n\t\t// Reset padding\r\n\t\tme.paddingLeft = 0;\r\n\t\tme.paddingTop = 0;\r\n\t\tme.paddingRight = 0;\r\n\t\tme.paddingBottom = 0;\r\n\t},\r\n\tafterSetDimensions: function() {\r\n\t\thelpers$1.callback(this.options.afterSetDimensions, [this]);\r\n\t},\r\n\r\n\t// Data limits\r\n\tbeforeDataLimits: function() {\r\n\t\thelpers$1.callback(this.options.beforeDataLimits, [this]);\r\n\t},\r\n\tdetermineDataLimits: helpers$1.noop,\r\n\tafterDataLimits: function() {\r\n\t\thelpers$1.callback(this.options.afterDataLimits, [this]);\r\n\t},\r\n\r\n\t//\r\n\tbeforeBuildTicks: function() {\r\n\t\thelpers$1.callback(this.options.beforeBuildTicks, [this]);\r\n\t},\r\n\tbuildTicks: helpers$1.noop,\r\n\tafterBuildTicks: function(ticks) {\r\n\t\tvar me = this;\r\n\t\t// ticks is empty for old axis implementations here\r\n\t\tif (isArray(ticks) && ticks.length) {\r\n\t\t\treturn helpers$1.callback(me.options.afterBuildTicks, [me, ticks]);\r\n\t\t}\r\n\t\t// Support old implementations (that modified `this.ticks` directly in buildTicks)\r\n\t\tme.ticks = helpers$1.callback(me.options.afterBuildTicks, [me, me.ticks]) || me.ticks;\r\n\t\treturn ticks;\r\n\t},\r\n\r\n\tbeforeTickToLabelConversion: function() {\r\n\t\thelpers$1.callback(this.options.beforeTickToLabelConversion, [this]);\r\n\t},\r\n\tconvertTicksToLabels: function() {\r\n\t\tvar me = this;\r\n\t\t// Convert ticks to strings\r\n\t\tvar tickOpts = me.options.ticks;\r\n\t\tme.ticks = me.ticks.map(tickOpts.userCallback || tickOpts.callback, this);\r\n\t},\r\n\tafterTickToLabelConversion: function() {\r\n\t\thelpers$1.callback(this.options.afterTickToLabelConversion, [this]);\r\n\t},\r\n\r\n\t//\r\n\r\n\tbeforeCalculateTickRotation: function() {\r\n\t\thelpers$1.callback(this.options.beforeCalculateTickRotation, [this]);\r\n\t},\r\n\tcalculateTickRotation: function() {\r\n\t\tvar me = this;\r\n\t\tvar options = me.options;\r\n\t\tvar tickOpts = options.ticks;\r\n\t\tvar numTicks = me.getTicks().length;\r\n\t\tvar minRotation = tickOpts.minRotation || 0;\r\n\t\tvar maxRotation = tickOpts.maxRotation;\r\n\t\tvar labelRotation = minRotation;\r\n\t\tvar labelSizes, maxLabelWidth, maxLabelHeight, maxWidth, tickWidth, maxHeight, maxLabelDiagonal;\r\n\r\n\t\tif (!me._isVisible() || !tickOpts.display || minRotation >= maxRotation || numTicks <= 1 || !me.isHorizontal()) {\r\n\t\t\tme.labelRotation = minRotation;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlabelSizes = me._getLabelSizes();\r\n\t\tmaxLabelWidth = labelSizes.widest.width;\r\n\t\tmaxLabelHeight = labelSizes.highest.height - labelSizes.highest.offset;\r\n\r\n\t\t// Estimate the width of each grid based on the canvas width, the maximum\r\n\t\t// label width and the number of tick intervals\r\n\t\tmaxWidth = Math.min(me.maxWidth, me.chart.width - maxLabelWidth);\r\n\t\ttickWidth = options.offset ? me.maxWidth / numTicks : maxWidth / (numTicks - 1);\r\n\r\n\t\t// Allow 3 pixels x2 padding either side for label readability\r\n\t\tif (maxLabelWidth + 6 > tickWidth) {\r\n\t\t\ttickWidth = maxWidth / (numTicks - (options.offset ? 0.5 : 1));\r\n\t\t\tmaxHeight = me.maxHeight - getTickMarkLength(options.gridLines)\r\n\t\t\t\t- tickOpts.padding - getScaleLabelHeight(options.scaleLabel);\r\n\t\t\tmaxLabelDiagonal = Math.sqrt(maxLabelWidth * maxLabelWidth + maxLabelHeight * maxLabelHeight);\r\n\t\t\tlabelRotation = helpers$1.toDegrees(Math.min(\r\n\t\t\t\tMath.asin(Math.min((labelSizes.highest.height + 6) / tickWidth, 1)),\r\n\t\t\t\tMath.asin(Math.min(maxHeight / maxLabelDiagonal, 1)) - Math.asin(maxLabelHeight / maxLabelDiagonal)\r\n\t\t\t));\r\n\t\t\tlabelRotation = Math.max(minRotation, Math.min(maxRotation, labelRotation));\r\n\t\t}\r\n\r\n\t\tme.labelRotation = labelRotation;\r\n\t},\r\n\tafterCalculateTickRotation: function() {\r\n\t\thelpers$1.callback(this.options.afterCalculateTickRotation, [this]);\r\n\t},\r\n\r\n\t//\r\n\r\n\tbeforeFit: function() {\r\n\t\thelpers$1.callback(this.options.beforeFit, [this]);\r\n\t},\r\n\tfit: function() {\r\n\t\tvar me = this;\r\n\t\t// Reset\r\n\t\tvar minSize = me.minSize = {\r\n\t\t\twidth: 0,\r\n\t\t\theight: 0\r\n\t\t};\r\n\r\n\t\tvar chart = me.chart;\r\n\t\tvar opts = me.options;\r\n\t\tvar tickOpts = opts.ticks;\r\n\t\tvar scaleLabelOpts = opts.scaleLabel;\r\n\t\tvar gridLineOpts = opts.gridLines;\r\n\t\tvar display = me._isVisible();\r\n\t\tvar isBottom = opts.position === 'bottom';\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\r\n\t\t// Width\r\n\t\tif (isHorizontal) {\r\n\t\t\tminSize.width = me.maxWidth;\r\n\t\t} else if (display) {\r\n\t\t\tminSize.width = getTickMarkLength(gridLineOpts) + getScaleLabelHeight(scaleLabelOpts);\r\n\t\t}\r\n\r\n\t\t// height\r\n\t\tif (!isHorizontal) {\r\n\t\t\tminSize.height = me.maxHeight; // fill all the height\r\n\t\t} else if (display) {\r\n\t\t\tminSize.height = getTickMarkLength(gridLineOpts) + getScaleLabelHeight(scaleLabelOpts);\r\n\t\t}\r\n\r\n\t\t// Don't bother fitting the ticks if we are not showing the labels\r\n\t\tif (tickOpts.display && display) {\r\n\t\t\tvar tickFonts = parseTickFontOptions(tickOpts);\r\n\t\t\tvar labelSizes = me._getLabelSizes();\r\n\t\t\tvar firstLabelSize = labelSizes.first;\r\n\t\t\tvar lastLabelSize = labelSizes.last;\r\n\t\t\tvar widestLabelSize = labelSizes.widest;\r\n\t\t\tvar highestLabelSize = labelSizes.highest;\r\n\t\t\tvar lineSpace = tickFonts.minor.lineHeight * 0.4;\r\n\t\t\tvar tickPadding = tickOpts.padding;\r\n\r\n\t\t\tif (isHorizontal) {\r\n\t\t\t\t// A horizontal axis is more constrained by the height.\r\n\t\t\t\tvar isRotated = me.labelRotation !== 0;\r\n\t\t\t\tvar angleRadians = helpers$1.toRadians(me.labelRotation);\r\n\t\t\t\tvar cosRotation = Math.cos(angleRadians);\r\n\t\t\t\tvar sinRotation = Math.sin(angleRadians);\r\n\r\n\t\t\t\tvar labelHeight = sinRotation * widestLabelSize.width\r\n\t\t\t\t\t+ cosRotation * (highestLabelSize.height - (isRotated ? highestLabelSize.offset : 0))\r\n\t\t\t\t\t+ (isRotated ? 0 : lineSpace); // padding\r\n\r\n\t\t\t\tminSize.height = Math.min(me.maxHeight, minSize.height + labelHeight + tickPadding);\r\n\r\n\t\t\t\tvar offsetLeft = me.getPixelForTick(0) - me.left;\r\n\t\t\t\tvar offsetRight = me.right - me.getPixelForTick(me.getTicks().length - 1);\r\n\t\t\t\tvar paddingLeft, paddingRight;\r\n\r\n\t\t\t\t// Ensure that our ticks are always inside the canvas. When rotated, ticks are right aligned\r\n\t\t\t\t// which means that the right padding is dominated by the font height\r\n\t\t\t\tif (isRotated) {\r\n\t\t\t\t\tpaddingLeft = isBottom ?\r\n\t\t\t\t\t\tcosRotation * firstLabelSize.width + sinRotation * firstLabelSize.offset :\r\n\t\t\t\t\t\tsinRotation * (firstLabelSize.height - firstLabelSize.offset);\r\n\t\t\t\t\tpaddingRight = isBottom ?\r\n\t\t\t\t\t\tsinRotation * (lastLabelSize.height - lastLabelSize.offset) :\r\n\t\t\t\t\t\tcosRotation * lastLabelSize.width + sinRotation * lastLabelSize.offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpaddingLeft = firstLabelSize.width / 2;\r\n\t\t\t\t\tpaddingRight = lastLabelSize.width / 2;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Adjust padding taking into account changes in offsets\r\n\t\t\t\t// and add 3 px to move away from canvas edges\r\n\t\t\t\tme.paddingLeft = Math.max((paddingLeft - offsetLeft) * me.width / (me.width - offsetLeft), 0) + 3;\r\n\t\t\t\tme.paddingRight = Math.max((paddingRight - offsetRight) * me.width / (me.width - offsetRight), 0) + 3;\r\n\t\t\t} else {\r\n\t\t\t\t// A vertical axis is more constrained by the width. Labels are the\r\n\t\t\t\t// dominant factor here, so get that length first and account for padding\r\n\t\t\t\tvar labelWidth = tickOpts.mirror ? 0 :\r\n\t\t\t\t\t// use lineSpace for consistency with horizontal axis\r\n\t\t\t\t\t// tickPadding is not implemented for horizontal\r\n\t\t\t\t\twidestLabelSize.width + tickPadding + lineSpace;\r\n\r\n\t\t\t\tminSize.width = Math.min(me.maxWidth, minSize.width + labelWidth);\r\n\r\n\t\t\t\tme.paddingTop = firstLabelSize.height / 2;\r\n\t\t\t\tme.paddingBottom = lastLabelSize.height / 2;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tme.handleMargins();\r\n\r\n\t\tif (isHorizontal) {\r\n\t\t\tme.width = me._length = chart.width - me.margins.left - me.margins.right;\r\n\t\t\tme.height = minSize.height;\r\n\t\t} else {\r\n\t\t\tme.width = minSize.width;\r\n\t\t\tme.height = me._length = chart.height - me.margins.top - me.margins.bottom;\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Handle margins and padding interactions\r\n\t * @private\r\n\t */\r\n\thandleMargins: function() {\r\n\t\tvar me = this;\r\n\t\tif (me.margins) {\r\n\t\t\tme.margins.left = Math.max(me.paddingLeft, me.margins.left);\r\n\t\t\tme.margins.top = Math.max(me.paddingTop, me.margins.top);\r\n\t\t\tme.margins.right = Math.max(me.paddingRight, me.margins.right);\r\n\t\t\tme.margins.bottom = Math.max(me.paddingBottom, me.margins.bottom);\r\n\t\t}\r\n\t},\r\n\r\n\tafterFit: function() {\r\n\t\thelpers$1.callback(this.options.afterFit, [this]);\r\n\t},\r\n\r\n\t// Shared Methods\r\n\tisHorizontal: function() {\r\n\t\tvar pos = this.options.position;\r\n\t\treturn pos === 'top' || pos === 'bottom';\r\n\t},\r\n\tisFullWidth: function() {\r\n\t\treturn this.options.fullWidth;\r\n\t},\r\n\r\n\t// Get the correct value. NaN bad inputs, If the value type is object get the x or y based on whether we are horizontal or not\r\n\tgetRightValue: function(rawValue) {\r\n\t\t// Null and undefined values first\r\n\t\tif (isNullOrUndef(rawValue)) {\r\n\t\t\treturn NaN;\r\n\t\t}\r\n\t\t// isNaN(object) returns true, so make sure NaN is checking for a number; Discard Infinite values\r\n\t\tif ((typeof rawValue === 'number' || rawValue instanceof Number) && !isFinite(rawValue)) {\r\n\t\t\treturn NaN;\r\n\t\t}\r\n\r\n\t\t// If it is in fact an object, dive in one more level\r\n\t\tif (rawValue) {\r\n\t\t\tif (this.isHorizontal()) {\r\n\t\t\t\tif (rawValue.x !== undefined) {\r\n\t\t\t\t\treturn this.getRightValue(rawValue.x);\r\n\t\t\t\t}\r\n\t\t\t} else if (rawValue.y !== undefined) {\r\n\t\t\t\treturn this.getRightValue(rawValue.y);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Value is good, return it\r\n\t\treturn rawValue;\r\n\t},\r\n\r\n\t_convertTicksToLabels: function(ticks) {\r\n\t\tvar me = this;\r\n\t\tvar labels, i, ilen;\r\n\r\n\t\tme.ticks = ticks.map(function(tick) {\r\n\t\t\treturn tick.value;\r\n\t\t});\r\n\r\n\t\tme.beforeTickToLabelConversion();\r\n\r\n\t\t// New implementations should return the formatted tick labels but for BACKWARD\r\n\t\t// COMPAT, we still support no return (`this.ticks` internally changed by calling\r\n\t\t// this method and supposed to contain only string values).\r\n\t\tlabels = me.convertTicksToLabels(ticks) || me.ticks;\r\n\r\n\t\tme.afterTickToLabelConversion();\r\n\r\n\t\t// BACKWARD COMPAT: synchronize `_ticks` with labels (so potentially `this.ticks`)\r\n\t\tfor (i = 0, ilen = ticks.length; i < ilen; ++i) {\r\n\t\t\tticks[i].label = labels[i];\r\n\t\t}\r\n\r\n\t\treturn labels;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getLabelSizes: function() {\r\n\t\tvar me = this;\r\n\t\tvar labelSizes = me._labelSizes;\r\n\r\n\t\tif (!labelSizes) {\r\n\t\t\tme._labelSizes = labelSizes = computeLabelSizes(me.ctx, parseTickFontOptions(me.options.ticks), me.getTicks(), me.longestTextCache);\r\n\t\t\tme.longestLabelWidth = labelSizes.widest.width;\r\n\t\t}\r\n\r\n\t\treturn labelSizes;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_parseValue: function(value) {\r\n\t\tvar start, end, min, max;\r\n\r\n\t\tif (isArray(value)) {\r\n\t\t\tstart = +this.getRightValue(value[0]);\r\n\t\t\tend = +this.getRightValue(value[1]);\r\n\t\t\tmin = Math.min(start, end);\r\n\t\t\tmax = Math.max(start, end);\r\n\t\t} else {\r\n\t\t\tvalue = +this.getRightValue(value);\r\n\t\t\tstart = undefined;\r\n\t\t\tend = value;\r\n\t\t\tmin = value;\r\n\t\t\tmax = value;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\tmin: min,\r\n\t\t\tmax: max,\r\n\t\t\tstart: start,\r\n\t\t\tend: end\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t* @private\r\n\t*/\r\n\t_getScaleLabel: function(rawValue) {\r\n\t\tvar v = this._parseValue(rawValue);\r\n\t\tif (v.start !== undefined) {\r\n\t\t\treturn '[' + v.start + ', ' + v.end + ']';\r\n\t\t}\r\n\r\n\t\treturn +this.getRightValue(rawValue);\r\n\t},\r\n\r\n\t/**\r\n\t * Used to get the value to display in the tooltip for the data at the given index\r\n\t * @param index\r\n\t * @param datasetIndex\r\n\t */\r\n\tgetLabelForIndex: helpers$1.noop,\r\n\r\n\t/**\r\n\t * Returns the location of the given data point. Value can either be an index or a numerical value\r\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n\t * @param value\r\n\t * @param index\r\n\t * @param datasetIndex\r\n\t */\r\n\tgetPixelForValue: helpers$1.noop,\r\n\r\n\t/**\r\n\t * Used to get the data value from a given pixel. This is the inverse of getPixelForValue\r\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n\t * @param pixel\r\n\t */\r\n\tgetValueForPixel: helpers$1.noop,\r\n\r\n\t/**\r\n\t * Returns the location of the tick at the given index\r\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n\t */\r\n\tgetPixelForTick: function(index) {\r\n\t\tvar me = this;\r\n\t\tvar offset = me.options.offset;\r\n\t\tvar numTicks = me._ticks.length;\r\n\t\tvar tickWidth = 1 / Math.max(numTicks - (offset ? 0 : 1), 1);\r\n\r\n\t\treturn index < 0 || index > numTicks - 1\r\n\t\t\t? null\r\n\t\t\t: me.getPixelForDecimal(index * tickWidth + (offset ? tickWidth / 2 : 0));\r\n\t},\r\n\r\n\t/**\r\n\t * Utility for getting the pixel location of a percentage of scale\r\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n\t */\r\n\tgetPixelForDecimal: function(decimal) {\r\n\t\tvar me = this;\r\n\r\n\t\tif (me._reversePixels) {\r\n\t\t\tdecimal = 1 - decimal;\r\n\t\t}\r\n\r\n\t\treturn me._startPixel + decimal * me._length;\r\n\t},\r\n\r\n\tgetDecimalForPixel: function(pixel) {\r\n\t\tvar decimal = (pixel - this._startPixel) / this._length;\r\n\t\treturn this._reversePixels ? 1 - decimal : decimal;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the pixel for the minimum chart value\r\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n\t */\r\n\tgetBasePixel: function() {\r\n\t\treturn this.getPixelForValue(this.getBaseValue());\r\n\t},\r\n\r\n\tgetBaseValue: function() {\r\n\t\tvar me = this;\r\n\t\tvar min = me.min;\r\n\t\tvar max = me.max;\r\n\r\n\t\treturn me.beginAtZero ? 0 :\r\n\t\t\tmin < 0 && max < 0 ? max :\r\n\t\t\tmin > 0 && max > 0 ? min :\r\n\t\t\t0;\r\n\t},\r\n\r\n\t/**\r\n\t * Returns a subset of ticks to be plotted to avoid overlapping labels.\r\n\t * @private\r\n\t */\r\n\t_autoSkip: function(ticks) {\r\n\t\tvar me = this;\r\n\t\tvar tickOpts = me.options.ticks;\r\n\t\tvar axisLength = me._length;\r\n\t\tvar ticksLimit = tickOpts.maxTicksLimit || axisLength / me._tickSize() + 1;\r\n\t\tvar majorIndices = tickOpts.major.enabled ? getMajorIndices(ticks) : [];\r\n\t\tvar numMajorIndices = majorIndices.length;\r\n\t\tvar first = majorIndices[0];\r\n\t\tvar last = majorIndices[numMajorIndices - 1];\r\n\t\tvar i, ilen, spacing, avgMajorSpacing;\r\n\r\n\t\t// If there are too many major ticks to display them all\r\n\t\tif (numMajorIndices > ticksLimit) {\r\n\t\t\tskipMajors(ticks, majorIndices, numMajorIndices / ticksLimit);\r\n\t\t\treturn nonSkipped(ticks);\r\n\t\t}\r\n\r\n\t\tspacing = calculateSpacing(majorIndices, ticks, axisLength, ticksLimit);\r\n\r\n\t\tif (numMajorIndices > 0) {\r\n\t\t\tfor (i = 0, ilen = numMajorIndices - 1; i < ilen; i++) {\r\n\t\t\t\tskip(ticks, spacing, majorIndices[i], majorIndices[i + 1]);\r\n\t\t\t}\r\n\t\t\tavgMajorSpacing = numMajorIndices > 1 ? (last - first) / (numMajorIndices - 1) : null;\r\n\t\t\tskip(ticks, spacing, helpers$1.isNullOrUndef(avgMajorSpacing) ? 0 : first - avgMajorSpacing, first);\r\n\t\t\tskip(ticks, spacing, last, helpers$1.isNullOrUndef(avgMajorSpacing) ? ticks.length : last + avgMajorSpacing);\r\n\t\t\treturn nonSkipped(ticks);\r\n\t\t}\r\n\t\tskip(ticks, spacing);\r\n\t\treturn nonSkipped(ticks);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_tickSize: function() {\r\n\t\tvar me = this;\r\n\t\tvar optionTicks = me.options.ticks;\r\n\r\n\t\t// Calculate space needed by label in axis direction.\r\n\t\tvar rot = helpers$1.toRadians(me.labelRotation);\r\n\t\tvar cos = Math.abs(Math.cos(rot));\r\n\t\tvar sin = Math.abs(Math.sin(rot));\r\n\r\n\t\tvar labelSizes = me._getLabelSizes();\r\n\t\tvar padding = optionTicks.autoSkipPadding || 0;\r\n\t\tvar w = labelSizes ? labelSizes.widest.width + padding : 0;\r\n\t\tvar h = labelSizes ? labelSizes.highest.height + padding : 0;\r\n\r\n\t\t// Calculate space needed for 1 tick in axis direction.\r\n\t\treturn me.isHorizontal()\r\n\t\t\t? h * cos > w * sin ? w / cos : h / sin\r\n\t\t\t: h * sin < w * cos ? h / cos : w / sin;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_isVisible: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar display = me.options.display;\r\n\t\tvar i, ilen, meta;\r\n\r\n\t\tif (display !== 'auto') {\r\n\t\t\treturn !!display;\r\n\t\t}\r\n\r\n\t\t// When 'auto', the scale is visible if at least one associated dataset is visible.\r\n\t\tfor (i = 0, ilen = chart.data.datasets.length; i < ilen; ++i) {\r\n\t\t\tif (chart.isDatasetVisible(i)) {\r\n\t\t\t\tmeta = chart.getDatasetMeta(i);\r\n\t\t\t\tif (meta.xAxisID === me.id || meta.yAxisID === me.id) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_computeGridLineItems: function(chartArea) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar options = me.options;\r\n\t\tvar gridLines = options.gridLines;\r\n\t\tvar position = options.position;\r\n\t\tvar offsetGridLines = gridLines.offsetGridLines;\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\t\tvar ticks = me._ticksToDraw;\r\n\t\tvar ticksLength = ticks.length + (offsetGridLines ? 1 : 0);\r\n\r\n\t\tvar tl = getTickMarkLength(gridLines);\r\n\t\tvar items = [];\r\n\t\tvar axisWidth = gridLines.drawBorder ? valueAtIndexOrDefault(gridLines.lineWidth, 0, 0) : 0;\r\n\t\tvar axisHalfWidth = axisWidth / 2;\r\n\t\tvar alignPixel = helpers$1._alignPixel;\r\n\t\tvar alignBorderValue = function(pixel) {\r\n\t\t\treturn alignPixel(chart, pixel, axisWidth);\r\n\t\t};\r\n\t\tvar borderValue, i, tick, lineValue, alignedLineValue;\r\n\t\tvar tx1, ty1, tx2, ty2, x1, y1, x2, y2, lineWidth, lineColor, borderDash, borderDashOffset;\r\n\r\n\t\tif (position === 'top') {\r\n\t\t\tborderValue = alignBorderValue(me.bottom);\r\n\t\t\tty1 = me.bottom - tl;\r\n\t\t\tty2 = borderValue - axisHalfWidth;\r\n\t\t\ty1 = alignBorderValue(chartArea.top) + axisHalfWidth;\r\n\t\t\ty2 = chartArea.bottom;\r\n\t\t} else if (position === 'bottom') {\r\n\t\t\tborderValue = alignBorderValue(me.top);\r\n\t\t\ty1 = chartArea.top;\r\n\t\t\ty2 = alignBorderValue(chartArea.bottom) - axisHalfWidth;\r\n\t\t\tty1 = borderValue + axisHalfWidth;\r\n\t\t\tty2 = me.top + tl;\r\n\t\t} else if (position === 'left') {\r\n\t\t\tborderValue = alignBorderValue(me.right);\r\n\t\t\ttx1 = me.right - tl;\r\n\t\t\ttx2 = borderValue - axisHalfWidth;\r\n\t\t\tx1 = alignBorderValue(chartArea.left) + axisHalfWidth;\r\n\t\t\tx2 = chartArea.right;\r\n\t\t} else {\r\n\t\t\tborderValue = alignBorderValue(me.left);\r\n\t\t\tx1 = chartArea.left;\r\n\t\t\tx2 = alignBorderValue(chartArea.right) - axisHalfWidth;\r\n\t\t\ttx1 = borderValue + axisHalfWidth;\r\n\t\t\ttx2 = me.left + tl;\r\n\t\t}\r\n\r\n\t\tfor (i = 0; i < ticksLength; ++i) {\r\n\t\t\ttick = ticks[i] || {};\r\n\r\n\t\t\t// autoskipper skipped this tick (#4635)\r\n\t\t\tif (isNullOrUndef(tick.label) && i < ticks.length) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tif (i === me.zeroLineIndex && options.offset === offsetGridLines) {\r\n\t\t\t\t// Draw the first index specially\r\n\t\t\t\tlineWidth = gridLines.zeroLineWidth;\r\n\t\t\t\tlineColor = gridLines.zeroLineColor;\r\n\t\t\t\tborderDash = gridLines.zeroLineBorderDash || [];\r\n\t\t\t\tborderDashOffset = gridLines.zeroLineBorderDashOffset || 0.0;\r\n\t\t\t} else {\r\n\t\t\t\tlineWidth = valueAtIndexOrDefault(gridLines.lineWidth, i, 1);\r\n\t\t\t\tlineColor = valueAtIndexOrDefault(gridLines.color, i, 'rgba(0,0,0,0.1)');\r\n\t\t\t\tborderDash = gridLines.borderDash || [];\r\n\t\t\t\tborderDashOffset = gridLines.borderDashOffset || 0.0;\r\n\t\t\t}\r\n\r\n\t\t\tlineValue = getPixelForGridLine(me, tick._index || i, offsetGridLines);\r\n\r\n\t\t\t// Skip if the pixel is out of the range\r\n\t\t\tif (lineValue === undefined) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\talignedLineValue = alignPixel(chart, lineValue, lineWidth);\r\n\r\n\t\t\tif (isHorizontal) {\r\n\t\t\t\ttx1 = tx2 = x1 = x2 = alignedLineValue;\r\n\t\t\t} else {\r\n\t\t\t\tty1 = ty2 = y1 = y2 = alignedLineValue;\r\n\t\t\t}\r\n\r\n\t\t\titems.push({\r\n\t\t\t\ttx1: tx1,\r\n\t\t\t\tty1: ty1,\r\n\t\t\t\ttx2: tx2,\r\n\t\t\t\tty2: ty2,\r\n\t\t\t\tx1: x1,\r\n\t\t\t\ty1: y1,\r\n\t\t\t\tx2: x2,\r\n\t\t\t\ty2: y2,\r\n\t\t\t\twidth: lineWidth,\r\n\t\t\t\tcolor: lineColor,\r\n\t\t\t\tborderDash: borderDash,\r\n\t\t\t\tborderDashOffset: borderDashOffset,\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\titems.ticksLength = ticksLength;\r\n\t\titems.borderValue = borderValue;\r\n\r\n\t\treturn items;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_computeLabelItems: function() {\r\n\t\tvar me = this;\r\n\t\tvar options = me.options;\r\n\t\tvar optionTicks = options.ticks;\r\n\t\tvar position = options.position;\r\n\t\tvar isMirrored = optionTicks.mirror;\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\t\tvar ticks = me._ticksToDraw;\r\n\t\tvar fonts = parseTickFontOptions(optionTicks);\r\n\t\tvar tickPadding = optionTicks.padding;\r\n\t\tvar tl = getTickMarkLength(options.gridLines);\r\n\t\tvar rotation = -helpers$1.toRadians(me.labelRotation);\r\n\t\tvar items = [];\r\n\t\tvar i, ilen, tick, label, x, y, textAlign, pixel, font, lineHeight, lineCount, textOffset;\r\n\r\n\t\tif (position === 'top') {\r\n\t\t\ty = me.bottom - tl - tickPadding;\r\n\t\t\ttextAlign = !rotation ? 'center' : 'left';\r\n\t\t} else if (position === 'bottom') {\r\n\t\t\ty = me.top + tl + tickPadding;\r\n\t\t\ttextAlign = !rotation ? 'center' : 'right';\r\n\t\t} else if (position === 'left') {\r\n\t\t\tx = me.right - (isMirrored ? 0 : tl) - tickPadding;\r\n\t\t\ttextAlign = isMirrored ? 'left' : 'right';\r\n\t\t} else {\r\n\t\t\tx = me.left + (isMirrored ? 0 : tl) + tickPadding;\r\n\t\t\ttextAlign = isMirrored ? 'right' : 'left';\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = ticks.length; i < ilen; ++i) {\r\n\t\t\ttick = ticks[i];\r\n\t\t\tlabel = tick.label;\r\n\r\n\t\t\t// autoskipper skipped this tick (#4635)\r\n\t\t\tif (isNullOrUndef(label)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tpixel = me.getPixelForTick(tick._index || i) + optionTicks.labelOffset;\r\n\t\t\tfont = tick.major ? fonts.major : fonts.minor;\r\n\t\t\tlineHeight = font.lineHeight;\r\n\t\t\tlineCount = isArray(label) ? label.length : 1;\r\n\r\n\t\t\tif (isHorizontal) {\r\n\t\t\t\tx = pixel;\r\n\t\t\t\ttextOffset = position === 'top'\r\n\t\t\t\t\t? ((!rotation ? 0.5 : 1) - lineCount) * lineHeight\r\n\t\t\t\t\t: (!rotation ? 0.5 : 0) * lineHeight;\r\n\t\t\t} else {\r\n\t\t\t\ty = pixel;\r\n\t\t\t\ttextOffset = (1 - lineCount) * lineHeight / 2;\r\n\t\t\t}\r\n\r\n\t\t\titems.push({\r\n\t\t\t\tx: x,\r\n\t\t\t\ty: y,\r\n\t\t\t\trotation: rotation,\r\n\t\t\t\tlabel: label,\r\n\t\t\t\tfont: font,\r\n\t\t\t\ttextOffset: textOffset,\r\n\t\t\t\ttextAlign: textAlign\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\treturn items;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_drawGrid: function(chartArea) {\r\n\t\tvar me = this;\r\n\t\tvar gridLines = me.options.gridLines;\r\n\r\n\t\tif (!gridLines.display) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar chart = me.chart;\r\n\t\tvar alignPixel = helpers$1._alignPixel;\r\n\t\tvar axisWidth = gridLines.drawBorder ? valueAtIndexOrDefault(gridLines.lineWidth, 0, 0) : 0;\r\n\t\tvar items = me._gridLineItems || (me._gridLineItems = me._computeGridLineItems(chartArea));\r\n\t\tvar width, color, i, ilen, item;\r\n\r\n\t\tfor (i = 0, ilen = items.length; i < ilen; ++i) {\r\n\t\t\titem = items[i];\r\n\t\t\twidth = item.width;\r\n\t\t\tcolor = item.color;\r\n\r\n\t\t\tif (width && color) {\r\n\t\t\t\tctx.save();\r\n\t\t\t\tctx.lineWidth = width;\r\n\t\t\t\tctx.strokeStyle = color;\r\n\t\t\t\tif (ctx.setLineDash) {\r\n\t\t\t\t\tctx.setLineDash(item.borderDash);\r\n\t\t\t\t\tctx.lineDashOffset = item.borderDashOffset;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tctx.beginPath();\r\n\r\n\t\t\t\tif (gridLines.drawTicks) {\r\n\t\t\t\t\tctx.moveTo(item.tx1, item.ty1);\r\n\t\t\t\t\tctx.lineTo(item.tx2, item.ty2);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (gridLines.drawOnChartArea) {\r\n\t\t\t\t\tctx.moveTo(item.x1, item.y1);\r\n\t\t\t\t\tctx.lineTo(item.x2, item.y2);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tctx.stroke();\r\n\t\t\t\tctx.restore();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (axisWidth) {\r\n\t\t\t// Draw the line at the edge of the axis\r\n\t\t\tvar firstLineWidth = axisWidth;\r\n\t\t\tvar lastLineWidth = valueAtIndexOrDefault(gridLines.lineWidth, items.ticksLength - 1, 1);\r\n\t\t\tvar borderValue = items.borderValue;\r\n\t\t\tvar x1, x2, y1, y2;\r\n\r\n\t\t\tif (me.isHorizontal()) {\r\n\t\t\t\tx1 = alignPixel(chart, me.left, firstLineWidth) - firstLineWidth / 2;\r\n\t\t\t\tx2 = alignPixel(chart, me.right, lastLineWidth) + lastLineWidth / 2;\r\n\t\t\t\ty1 = y2 = borderValue;\r\n\t\t\t} else {\r\n\t\t\t\ty1 = alignPixel(chart, me.top, firstLineWidth) - firstLineWidth / 2;\r\n\t\t\t\ty2 = alignPixel(chart, me.bottom, lastLineWidth) + lastLineWidth / 2;\r\n\t\t\t\tx1 = x2 = borderValue;\r\n\t\t\t}\r\n\r\n\t\t\tctx.lineWidth = axisWidth;\r\n\t\t\tctx.strokeStyle = valueAtIndexOrDefault(gridLines.color, 0);\r\n\t\t\tctx.beginPath();\r\n\t\t\tctx.moveTo(x1, y1);\r\n\t\t\tctx.lineTo(x2, y2);\r\n\t\t\tctx.stroke();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_drawLabels: function() {\r\n\t\tvar me = this;\r\n\t\tvar optionTicks = me.options.ticks;\r\n\r\n\t\tif (!optionTicks.display) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar items = me._labelItems || (me._labelItems = me._computeLabelItems());\r\n\t\tvar i, j, ilen, jlen, item, tickFont, label, y;\r\n\r\n\t\tfor (i = 0, ilen = items.length; i < ilen; ++i) {\r\n\t\t\titem = items[i];\r\n\t\t\ttickFont = item.font;\r\n\r\n\t\t\t// Make sure we draw text in the correct color and font\r\n\t\t\tctx.save();\r\n\t\t\tctx.translate(item.x, item.y);\r\n\t\t\tctx.rotate(item.rotation);\r\n\t\t\tctx.font = tickFont.string;\r\n\t\t\tctx.fillStyle = tickFont.color;\r\n\t\t\tctx.textBaseline = 'middle';\r\n\t\t\tctx.textAlign = item.textAlign;\r\n\r\n\t\t\tlabel = item.label;\r\n\t\t\ty = item.textOffset;\r\n\t\t\tif (isArray(label)) {\r\n\t\t\t\tfor (j = 0, jlen = label.length; j < jlen; ++j) {\r\n\t\t\t\t\t// We just make sure the multiline element is a string here..\r\n\t\t\t\t\tctx.fillText('' + label[j], 0, y);\r\n\t\t\t\t\ty += tickFont.lineHeight;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tctx.fillText(label, 0, y);\r\n\t\t\t}\r\n\t\t\tctx.restore();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_drawTitle: function() {\r\n\t\tvar me = this;\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar options = me.options;\r\n\t\tvar scaleLabel = options.scaleLabel;\r\n\r\n\t\tif (!scaleLabel.display) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar scaleLabelFontColor = valueOrDefault$a(scaleLabel.fontColor, core_defaults.global.defaultFontColor);\r\n\t\tvar scaleLabelFont = helpers$1.options._parseFont(scaleLabel);\r\n\t\tvar scaleLabelPadding = helpers$1.options.toPadding(scaleLabel.padding);\r\n\t\tvar halfLineHeight = scaleLabelFont.lineHeight / 2;\r\n\t\tvar position = options.position;\r\n\t\tvar rotation = 0;\r\n\t\tvar scaleLabelX, scaleLabelY;\r\n\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\tscaleLabelX = me.left + me.width / 2; // midpoint of the width\r\n\t\t\tscaleLabelY = position === 'bottom'\r\n\t\t\t\t? me.bottom - halfLineHeight - scaleLabelPadding.bottom\r\n\t\t\t\t: me.top + halfLineHeight + scaleLabelPadding.top;\r\n\t\t} else {\r\n\t\t\tvar isLeft = position === 'left';\r\n\t\t\tscaleLabelX = isLeft\r\n\t\t\t\t? me.left + halfLineHeight + scaleLabelPadding.top\r\n\t\t\t\t: me.right - halfLineHeight - scaleLabelPadding.top;\r\n\t\t\tscaleLabelY = me.top + me.height / 2;\r\n\t\t\trotation = isLeft ? -0.5 * Math.PI : 0.5 * Math.PI;\r\n\t\t}\r\n\r\n\t\tctx.save();\r\n\t\tctx.translate(scaleLabelX, scaleLabelY);\r\n\t\tctx.rotate(rotation);\r\n\t\tctx.textAlign = 'center';\r\n\t\tctx.textBaseline = 'middle';\r\n\t\tctx.fillStyle = scaleLabelFontColor; // render in correct colour\r\n\t\tctx.font = scaleLabelFont.string;\r\n\t\tctx.fillText(scaleLabel.labelString, 0, 0);\r\n\t\tctx.restore();\r\n\t},\r\n\r\n\tdraw: function(chartArea) {\r\n\t\tvar me = this;\r\n\r\n\t\tif (!me._isVisible()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tme._drawGrid(chartArea);\r\n\t\tme._drawTitle();\r\n\t\tme._drawLabels();\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_layers: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar tz = opts.ticks && opts.ticks.z || 0;\r\n\t\tvar gz = opts.gridLines && opts.gridLines.z || 0;\r\n\r\n\t\tif (!me._isVisible() || tz === gz || me.draw !== me._draw) {\r\n\t\t\t// backward compatibility: draw has been overridden by custom scale\r\n\t\t\treturn [{\r\n\t\t\t\tz: tz,\r\n\t\t\t\tdraw: function() {\r\n\t\t\t\t\tme.draw.apply(me, arguments);\r\n\t\t\t\t}\r\n\t\t\t}];\r\n\t\t}\r\n\r\n\t\treturn [{\r\n\t\t\tz: gz,\r\n\t\t\tdraw: function() {\r\n\t\t\t\tme._drawGrid.apply(me, arguments);\r\n\t\t\t\tme._drawTitle.apply(me, arguments);\r\n\t\t\t}\r\n\t\t}, {\r\n\t\t\tz: tz,\r\n\t\t\tdraw: function() {\r\n\t\t\t\tme._drawLabels.apply(me, arguments);\r\n\t\t\t}\r\n\t\t}];\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getMatchingVisibleMetas: function(type) {\r\n\t\tvar me = this;\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\t\treturn me.chart._getSortedVisibleDatasetMetas()\r\n\t\t\t.filter(function(meta) {\r\n\t\t\t\treturn (!type || meta.type === type)\r\n\t\t\t\t\t&& (isHorizontal ? meta.xAxisID === me.id : meta.yAxisID === me.id);\r\n\t\t\t});\r\n\t}\r\n});\r\n\r\nScale.prototype._draw = Scale.prototype.draw;\r\n\r\nvar core_scale = Scale;\n\nvar isNullOrUndef$1 = helpers$1.isNullOrUndef;\r\n\r\nvar defaultConfig = {\r\n\tposition: 'bottom'\r\n};\r\n\r\nvar scale_category = core_scale.extend({\r\n\tdetermineDataLimits: function() {\r\n\t\tvar me = this;\r\n\t\tvar labels = me._getLabels();\r\n\t\tvar ticksOpts = me.options.ticks;\r\n\t\tvar min = ticksOpts.min;\r\n\t\tvar max = ticksOpts.max;\r\n\t\tvar minIndex = 0;\r\n\t\tvar maxIndex = labels.length - 1;\r\n\t\tvar findIndex;\r\n\r\n\t\tif (min !== undefined) {\r\n\t\t\t// user specified min value\r\n\t\t\tfindIndex = labels.indexOf(min);\r\n\t\t\tif (findIndex >= 0) {\r\n\t\t\t\tminIndex = findIndex;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (max !== undefined) {\r\n\t\t\t// user specified max value\r\n\t\t\tfindIndex = labels.indexOf(max);\r\n\t\t\tif (findIndex >= 0) {\r\n\t\t\t\tmaxIndex = findIndex;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tme.minIndex = minIndex;\r\n\t\tme.maxIndex = maxIndex;\r\n\t\tme.min = labels[minIndex];\r\n\t\tme.max = labels[maxIndex];\r\n\t},\r\n\r\n\tbuildTicks: function() {\r\n\t\tvar me = this;\r\n\t\tvar labels = me._getLabels();\r\n\t\tvar minIndex = me.minIndex;\r\n\t\tvar maxIndex = me.maxIndex;\r\n\r\n\t\t// If we are viewing some subset of labels, slice the original array\r\n\t\tme.ticks = (minIndex === 0 && maxIndex === labels.length - 1) ? labels : labels.slice(minIndex, maxIndex + 1);\r\n\t},\r\n\r\n\tgetLabelForIndex: function(index, datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\r\n\t\tif (chart.getDatasetMeta(datasetIndex).controller._getValueScaleId() === me.id) {\r\n\t\t\treturn me.getRightValue(chart.data.datasets[datasetIndex].data[index]);\r\n\t\t}\r\n\r\n\t\treturn me._getLabels()[index];\r\n\t},\r\n\r\n\t_configure: function() {\r\n\t\tvar me = this;\r\n\t\tvar offset = me.options.offset;\r\n\t\tvar ticks = me.ticks;\r\n\r\n\t\tcore_scale.prototype._configure.call(me);\r\n\r\n\t\tif (!me.isHorizontal()) {\r\n\t\t\t// For backward compatibility, vertical category scale reverse is inverted.\r\n\t\t\tme._reversePixels = !me._reversePixels;\r\n\t\t}\r\n\r\n\t\tif (!ticks) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tme._startValue = me.minIndex - (offset ? 0.5 : 0);\r\n\t\tme._valueRange = Math.max(ticks.length - (offset ? 0 : 1), 1);\r\n\t},\r\n\r\n\t// Used to get data value locations.  Value can either be an index or a numerical value\r\n\tgetPixelForValue: function(value, index, datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tvar valueCategory, labels, idx;\r\n\r\n\t\tif (!isNullOrUndef$1(index) && !isNullOrUndef$1(datasetIndex)) {\r\n\t\t\tvalue = me.chart.data.datasets[datasetIndex].data[index];\r\n\t\t}\r\n\r\n\t\t// If value is a data object, then index is the index in the data array,\r\n\t\t// not the index of the scale. We need to change that.\r\n\t\tif (!isNullOrUndef$1(value)) {\r\n\t\t\tvalueCategory = me.isHorizontal() ? value.x : value.y;\r\n\t\t}\r\n\t\tif (valueCategory !== undefined || (value !== undefined && isNaN(index))) {\r\n\t\t\tlabels = me._getLabels();\r\n\t\t\tvalue = helpers$1.valueOrDefault(valueCategory, value);\r\n\t\t\tidx = labels.indexOf(value);\r\n\t\t\tindex = idx !== -1 ? idx : index;\r\n\t\t\tif (isNaN(index)) {\r\n\t\t\t\tindex = value;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn me.getPixelForDecimal((index - me._startValue) / me._valueRange);\r\n\t},\r\n\r\n\tgetPixelForTick: function(index) {\r\n\t\tvar ticks = this.ticks;\r\n\t\treturn index < 0 || index > ticks.length - 1\r\n\t\t\t? null\r\n\t\t\t: this.getPixelForValue(ticks[index], index + this.minIndex);\r\n\t},\r\n\r\n\tgetValueForPixel: function(pixel) {\r\n\t\tvar me = this;\r\n\t\tvar value = Math.round(me._startValue + me.getDecimalForPixel(pixel) * me._valueRange);\r\n\t\treturn Math.min(Math.max(value, 0), me.ticks.length - 1);\r\n\t},\r\n\r\n\tgetBasePixel: function() {\r\n\t\treturn this.bottom;\r\n\t}\r\n});\r\n\r\n// INTERNAL: static default options, registered in src/index.js\r\nvar _defaults = defaultConfig;\nscale_category._defaults = _defaults;\n\nvar noop = helpers$1.noop;\r\nvar isNullOrUndef$2 = helpers$1.isNullOrUndef;\r\n\r\n/**\r\n * Generate a set of linear ticks\r\n * @param generationOptions the options used to generate the ticks\r\n * @param dataRange the range of the data\r\n * @returns {number[]} array of tick values\r\n */\r\nfunction generateTicks(generationOptions, dataRange) {\r\n\tvar ticks = [];\r\n\t// To get a \"nice\" value for the tick spacing, we will use the appropriately named\r\n\t// \"nice number\" algorithm. See https://stackoverflow.com/questions/8506881/nice-label-algorithm-for-charts-with-minimum-ticks\r\n\t// for details.\r\n\r\n\tvar MIN_SPACING = 1e-14;\r\n\tvar stepSize = generationOptions.stepSize;\r\n\tvar unit = stepSize || 1;\r\n\tvar maxNumSpaces = generationOptions.maxTicks - 1;\r\n\tvar min = generationOptions.min;\r\n\tvar max = generationOptions.max;\r\n\tvar precision = generationOptions.precision;\r\n\tvar rmin = dataRange.min;\r\n\tvar rmax = dataRange.max;\r\n\tvar spacing = helpers$1.niceNum((rmax - rmin) / maxNumSpaces / unit) * unit;\r\n\tvar factor, niceMin, niceMax, numSpaces;\r\n\r\n\t// Beyond MIN_SPACING floating point numbers being to lose precision\r\n\t// such that we can't do the math necessary to generate ticks\r\n\tif (spacing < MIN_SPACING && isNullOrUndef$2(min) && isNullOrUndef$2(max)) {\r\n\t\treturn [rmin, rmax];\r\n\t}\r\n\r\n\tnumSpaces = Math.ceil(rmax / spacing) - Math.floor(rmin / spacing);\r\n\tif (numSpaces > maxNumSpaces) {\r\n\t\t// If the calculated num of spaces exceeds maxNumSpaces, recalculate it\r\n\t\tspacing = helpers$1.niceNum(numSpaces * spacing / maxNumSpaces / unit) * unit;\r\n\t}\r\n\r\n\tif (stepSize || isNullOrUndef$2(precision)) {\r\n\t\t// If a precision is not specified, calculate factor based on spacing\r\n\t\tfactor = Math.pow(10, helpers$1._decimalPlaces(spacing));\r\n\t} else {\r\n\t\t// If the user specified a precision, round to that number of decimal places\r\n\t\tfactor = Math.pow(10, precision);\r\n\t\tspacing = Math.ceil(spacing * factor) / factor;\r\n\t}\r\n\r\n\tniceMin = Math.floor(rmin / spacing) * spacing;\r\n\tniceMax = Math.ceil(rmax / spacing) * spacing;\r\n\r\n\t// If min, max and stepSize is set and they make an evenly spaced scale use it.\r\n\tif (stepSize) {\r\n\t\t// If very close to our whole number, use it.\r\n\t\tif (!isNullOrUndef$2(min) && helpers$1.almostWhole(min / spacing, spacing / 1000)) {\r\n\t\t\tniceMin = min;\r\n\t\t}\r\n\t\tif (!isNullOrUndef$2(max) && helpers$1.almostWhole(max / spacing, spacing / 1000)) {\r\n\t\t\tniceMax = max;\r\n\t\t}\r\n\t}\r\n\r\n\tnumSpaces = (niceMax - niceMin) / spacing;\r\n\t// If very close to our rounded value, use it.\r\n\tif (helpers$1.almostEquals(numSpaces, Math.round(numSpaces), spacing / 1000)) {\r\n\t\tnumSpaces = Math.round(numSpaces);\r\n\t} else {\r\n\t\tnumSpaces = Math.ceil(numSpaces);\r\n\t}\r\n\r\n\tniceMin = Math.round(niceMin * factor) / factor;\r\n\tniceMax = Math.round(niceMax * factor) / factor;\r\n\tticks.push(isNullOrUndef$2(min) ? niceMin : min);\r\n\tfor (var j = 1; j < numSpaces; ++j) {\r\n\t\tticks.push(Math.round((niceMin + j * spacing) * factor) / factor);\r\n\t}\r\n\tticks.push(isNullOrUndef$2(max) ? niceMax : max);\r\n\r\n\treturn ticks;\r\n}\r\n\r\nvar scale_linearbase = core_scale.extend({\r\n\tgetRightValue: function(value) {\r\n\t\tif (typeof value === 'string') {\r\n\t\t\treturn +value;\r\n\t\t}\r\n\t\treturn core_scale.prototype.getRightValue.call(this, value);\r\n\t},\r\n\r\n\thandleTickRangeOptions: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar tickOpts = opts.ticks;\r\n\r\n\t\t// If we are forcing it to begin at 0, but 0 will already be rendered on the chart,\r\n\t\t// do nothing since that would make the chart weird. If the user really wants a weird chart\r\n\t\t// axis, they can manually override it\r\n\t\tif (tickOpts.beginAtZero) {\r\n\t\t\tvar minSign = helpers$1.sign(me.min);\r\n\t\t\tvar maxSign = helpers$1.sign(me.max);\r\n\r\n\t\t\tif (minSign < 0 && maxSign < 0) {\r\n\t\t\t\t// move the top up to 0\r\n\t\t\t\tme.max = 0;\r\n\t\t\t} else if (minSign > 0 && maxSign > 0) {\r\n\t\t\t\t// move the bottom down to 0\r\n\t\t\t\tme.min = 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar setMin = tickOpts.min !== undefined || tickOpts.suggestedMin !== undefined;\r\n\t\tvar setMax = tickOpts.max !== undefined || tickOpts.suggestedMax !== undefined;\r\n\r\n\t\tif (tickOpts.min !== undefined) {\r\n\t\t\tme.min = tickOpts.min;\r\n\t\t} else if (tickOpts.suggestedMin !== undefined) {\r\n\t\t\tif (me.min === null) {\r\n\t\t\t\tme.min = tickOpts.suggestedMin;\r\n\t\t\t} else {\r\n\t\t\t\tme.min = Math.min(me.min, tickOpts.suggestedMin);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (tickOpts.max !== undefined) {\r\n\t\t\tme.max = tickOpts.max;\r\n\t\t} else if (tickOpts.suggestedMax !== undefined) {\r\n\t\t\tif (me.max === null) {\r\n\t\t\t\tme.max = tickOpts.suggestedMax;\r\n\t\t\t} else {\r\n\t\t\t\tme.max = Math.max(me.max, tickOpts.suggestedMax);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (setMin !== setMax) {\r\n\t\t\t// We set the min or the max but not both.\r\n\t\t\t// So ensure that our range is good\r\n\t\t\t// Inverted or 0 length range can happen when\r\n\t\t\t// ticks.min is set, and no datasets are visible\r\n\t\t\tif (me.min >= me.max) {\r\n\t\t\t\tif (setMin) {\r\n\t\t\t\t\tme.max = me.min + 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tme.min = me.max - 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (me.min === me.max) {\r\n\t\t\tme.max++;\r\n\r\n\t\t\tif (!tickOpts.beginAtZero) {\r\n\t\t\t\tme.min--;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tgetTickLimit: function() {\r\n\t\tvar me = this;\r\n\t\tvar tickOpts = me.options.ticks;\r\n\t\tvar stepSize = tickOpts.stepSize;\r\n\t\tvar maxTicksLimit = tickOpts.maxTicksLimit;\r\n\t\tvar maxTicks;\r\n\r\n\t\tif (stepSize) {\r\n\t\t\tmaxTicks = Math.ceil(me.max / stepSize) - Math.floor(me.min / stepSize) + 1;\r\n\t\t} else {\r\n\t\t\tmaxTicks = me._computeTickLimit();\r\n\t\t\tmaxTicksLimit = maxTicksLimit || 11;\r\n\t\t}\r\n\r\n\t\tif (maxTicksLimit) {\r\n\t\t\tmaxTicks = Math.min(maxTicksLimit, maxTicks);\r\n\t\t}\r\n\r\n\t\treturn maxTicks;\r\n\t},\r\n\r\n\t_computeTickLimit: function() {\r\n\t\treturn Number.POSITIVE_INFINITY;\r\n\t},\r\n\r\n\thandleDirectionalChanges: noop,\r\n\r\n\tbuildTicks: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar tickOpts = opts.ticks;\r\n\r\n\t\t// Figure out what the max number of ticks we can support it is based on the size of\r\n\t\t// the axis area. For now, we say that the minimum tick spacing in pixels must be 40\r\n\t\t// We also limit the maximum number of ticks to 11 which gives a nice 10 squares on\r\n\t\t// the graph. Make sure we always have at least 2 ticks\r\n\t\tvar maxTicks = me.getTickLimit();\r\n\t\tmaxTicks = Math.max(2, maxTicks);\r\n\r\n\t\tvar numericGeneratorOptions = {\r\n\t\t\tmaxTicks: maxTicks,\r\n\t\t\tmin: tickOpts.min,\r\n\t\t\tmax: tickOpts.max,\r\n\t\t\tprecision: tickOpts.precision,\r\n\t\t\tstepSize: helpers$1.valueOrDefault(tickOpts.fixedStepSize, tickOpts.stepSize)\r\n\t\t};\r\n\t\tvar ticks = me.ticks = generateTicks(numericGeneratorOptions, me);\r\n\r\n\t\tme.handleDirectionalChanges();\r\n\r\n\t\t// At this point, we need to update our max and min given the tick values since we have expanded the\r\n\t\t// range of the scale\r\n\t\tme.max = helpers$1.max(ticks);\r\n\t\tme.min = helpers$1.min(ticks);\r\n\r\n\t\tif (tickOpts.reverse) {\r\n\t\t\tticks.reverse();\r\n\r\n\t\t\tme.start = me.max;\r\n\t\t\tme.end = me.min;\r\n\t\t} else {\r\n\t\t\tme.start = me.min;\r\n\t\t\tme.end = me.max;\r\n\t\t}\r\n\t},\r\n\r\n\tconvertTicksToLabels: function() {\r\n\t\tvar me = this;\r\n\t\tme.ticksAsNumbers = me.ticks.slice();\r\n\t\tme.zeroLineIndex = me.ticks.indexOf(0);\r\n\r\n\t\tcore_scale.prototype.convertTicksToLabels.call(me);\r\n\t},\r\n\r\n\t_configure: function() {\r\n\t\tvar me = this;\r\n\t\tvar ticks = me.getTicks();\r\n\t\tvar start = me.min;\r\n\t\tvar end = me.max;\r\n\t\tvar offset;\r\n\r\n\t\tcore_scale.prototype._configure.call(me);\r\n\r\n\t\tif (me.options.offset && ticks.length) {\r\n\t\t\toffset = (end - start) / Math.max(ticks.length - 1, 1) / 2;\r\n\t\t\tstart -= offset;\r\n\t\t\tend += offset;\r\n\t\t}\r\n\t\tme._startValue = start;\r\n\t\tme._endValue = end;\r\n\t\tme._valueRange = end - start;\r\n\t}\r\n});\n\nvar defaultConfig$1 = {\r\n\tposition: 'left',\r\n\tticks: {\r\n\t\tcallback: core_ticks.formatters.linear\r\n\t}\r\n};\r\n\r\nvar DEFAULT_MIN = 0;\r\nvar DEFAULT_MAX = 1;\r\n\r\nfunction getOrCreateStack(stacks, stacked, meta) {\r\n\tvar key = [\r\n\t\tmeta.type,\r\n\t\t// we have a separate stack for stack=undefined datasets when the opts.stacked is undefined\r\n\t\tstacked === undefined && meta.stack === undefined ? meta.index : '',\r\n\t\tmeta.stack\r\n\t].join('.');\r\n\r\n\tif (stacks[key] === undefined) {\r\n\t\tstacks[key] = {\r\n\t\t\tpos: [],\r\n\t\t\tneg: []\r\n\t\t};\r\n\t}\r\n\r\n\treturn stacks[key];\r\n}\r\n\r\nfunction stackData(scale, stacks, meta, data) {\r\n\tvar opts = scale.options;\r\n\tvar stacked = opts.stacked;\r\n\tvar stack = getOrCreateStack(stacks, stacked, meta);\r\n\tvar pos = stack.pos;\r\n\tvar neg = stack.neg;\r\n\tvar ilen = data.length;\r\n\tvar i, value;\r\n\r\n\tfor (i = 0; i < ilen; ++i) {\r\n\t\tvalue = scale._parseValue(data[i]);\r\n\t\tif (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden) {\r\n\t\t\tcontinue;\r\n\t\t}\r\n\r\n\t\tpos[i] = pos[i] || 0;\r\n\t\tneg[i] = neg[i] || 0;\r\n\r\n\t\tif (opts.relativePoints) {\r\n\t\t\tpos[i] = 100;\r\n\t\t} else if (value.min < 0 || value.max < 0) {\r\n\t\t\tneg[i] += value.min;\r\n\t\t} else {\r\n\t\t\tpos[i] += value.max;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction updateMinMax(scale, meta, data) {\r\n\tvar ilen = data.length;\r\n\tvar i, value;\r\n\r\n\tfor (i = 0; i < ilen; ++i) {\r\n\t\tvalue = scale._parseValue(data[i]);\r\n\t\tif (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden) {\r\n\t\t\tcontinue;\r\n\t\t}\r\n\r\n\t\tscale.min = Math.min(scale.min, value.min);\r\n\t\tscale.max = Math.max(scale.max, value.max);\r\n\t}\r\n}\r\n\r\nvar scale_linear = scale_linearbase.extend({\r\n\tdetermineDataLimits: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar chart = me.chart;\r\n\t\tvar datasets = chart.data.datasets;\r\n\t\tvar metasets = me._getMatchingVisibleMetas();\r\n\t\tvar hasStacks = opts.stacked;\r\n\t\tvar stacks = {};\r\n\t\tvar ilen = metasets.length;\r\n\t\tvar i, meta, data, values;\r\n\r\n\t\tme.min = Number.POSITIVE_INFINITY;\r\n\t\tme.max = Number.NEGATIVE_INFINITY;\r\n\r\n\t\tif (hasStacks === undefined) {\r\n\t\t\tfor (i = 0; !hasStacks && i < ilen; ++i) {\r\n\t\t\t\tmeta = metasets[i];\r\n\t\t\t\thasStacks = meta.stack !== undefined;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (i = 0; i < ilen; ++i) {\r\n\t\t\tmeta = metasets[i];\r\n\t\t\tdata = datasets[meta.index].data;\r\n\t\t\tif (hasStacks) {\r\n\t\t\t\tstackData(me, stacks, meta, data);\r\n\t\t\t} else {\r\n\t\t\t\tupdateMinMax(me, meta, data);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\thelpers$1.each(stacks, function(stackValues) {\r\n\t\t\tvalues = stackValues.pos.concat(stackValues.neg);\r\n\t\t\tme.min = Math.min(me.min, helpers$1.min(values));\r\n\t\t\tme.max = Math.max(me.max, helpers$1.max(values));\r\n\t\t});\r\n\r\n\t\tme.min = helpers$1.isFinite(me.min) && !isNaN(me.min) ? me.min : DEFAULT_MIN;\r\n\t\tme.max = helpers$1.isFinite(me.max) && !isNaN(me.max) ? me.max : DEFAULT_MAX;\r\n\r\n\t\t// Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero\r\n\t\tme.handleTickRangeOptions();\r\n\t},\r\n\r\n\t// Returns the maximum number of ticks based on the scale dimension\r\n\t_computeTickLimit: function() {\r\n\t\tvar me = this;\r\n\t\tvar tickFont;\r\n\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\treturn Math.ceil(me.width / 40);\r\n\t\t}\r\n\t\ttickFont = helpers$1.options._parseFont(me.options.ticks);\r\n\t\treturn Math.ceil(me.height / tickFont.lineHeight);\r\n\t},\r\n\r\n\t// Called after the ticks are built. We need\r\n\thandleDirectionalChanges: function() {\r\n\t\tif (!this.isHorizontal()) {\r\n\t\t\t// We are in a vertical orientation. The top value is the highest. So reverse the array\r\n\t\t\tthis.ticks.reverse();\r\n\t\t}\r\n\t},\r\n\r\n\tgetLabelForIndex: function(index, datasetIndex) {\r\n\t\treturn this._getScaleLabel(this.chart.data.datasets[datasetIndex].data[index]);\r\n\t},\r\n\r\n\t// Utils\r\n\tgetPixelForValue: function(value) {\r\n\t\tvar me = this;\r\n\t\treturn me.getPixelForDecimal((+me.getRightValue(value) - me._startValue) / me._valueRange);\r\n\t},\r\n\r\n\tgetValueForPixel: function(pixel) {\r\n\t\treturn this._startValue + this.getDecimalForPixel(pixel) * this._valueRange;\r\n\t},\r\n\r\n\tgetPixelForTick: function(index) {\r\n\t\tvar ticks = this.ticksAsNumbers;\r\n\t\tif (index < 0 || index > ticks.length - 1) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn this.getPixelForValue(ticks[index]);\r\n\t}\r\n});\r\n\r\n// INTERNAL: static default options, registered in src/index.js\r\nvar _defaults$1 = defaultConfig$1;\nscale_linear._defaults = _defaults$1;\n\nvar valueOrDefault$b = helpers$1.valueOrDefault;\r\nvar log10 = helpers$1.math.log10;\r\n\r\n/**\r\n * Generate a set of logarithmic ticks\r\n * @param generationOptions the options used to generate the ticks\r\n * @param dataRange the range of the data\r\n * @returns {number[]} array of tick values\r\n */\r\nfunction generateTicks$1(generationOptions, dataRange) {\r\n\tvar ticks = [];\r\n\r\n\tvar tickVal = valueOrDefault$b(generationOptions.min, Math.pow(10, Math.floor(log10(dataRange.min))));\r\n\r\n\tvar endExp = Math.floor(log10(dataRange.max));\r\n\tvar endSignificand = Math.ceil(dataRange.max / Math.pow(10, endExp));\r\n\tvar exp, significand;\r\n\r\n\tif (tickVal === 0) {\r\n\t\texp = Math.floor(log10(dataRange.minNotZero));\r\n\t\tsignificand = Math.floor(dataRange.minNotZero / Math.pow(10, exp));\r\n\r\n\t\tticks.push(tickVal);\r\n\t\ttickVal = significand * Math.pow(10, exp);\r\n\t} else {\r\n\t\texp = Math.floor(log10(tickVal));\r\n\t\tsignificand = Math.floor(tickVal / Math.pow(10, exp));\r\n\t}\r\n\tvar precision = exp < 0 ? Math.pow(10, Math.abs(exp)) : 1;\r\n\r\n\tdo {\r\n\t\tticks.push(tickVal);\r\n\r\n\t\t++significand;\r\n\t\tif (significand === 10) {\r\n\t\t\tsignificand = 1;\r\n\t\t\t++exp;\r\n\t\t\tprecision = exp >= 0 ? 1 : precision;\r\n\t\t}\r\n\r\n\t\ttickVal = Math.round(significand * Math.pow(10, exp) * precision) / precision;\r\n\t} while (exp < endExp || (exp === endExp && significand < endSignificand));\r\n\r\n\tvar lastTick = valueOrDefault$b(generationOptions.max, tickVal);\r\n\tticks.push(lastTick);\r\n\r\n\treturn ticks;\r\n}\r\n\r\nvar defaultConfig$2 = {\r\n\tposition: 'left',\r\n\r\n\t// label settings\r\n\tticks: {\r\n\t\tcallback: core_ticks.formatters.logarithmic\r\n\t}\r\n};\r\n\r\n// TODO(v3): change this to positiveOrDefault\r\nfunction nonNegativeOrDefault(value, defaultValue) {\r\n\treturn helpers$1.isFinite(value) && value >= 0 ? value : defaultValue;\r\n}\r\n\r\nvar scale_logarithmic = core_scale.extend({\r\n\tdetermineDataLimits: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar chart = me.chart;\r\n\t\tvar datasets = chart.data.datasets;\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\t\tfunction IDMatches(meta) {\r\n\t\t\treturn isHorizontal ? meta.xAxisID === me.id : meta.yAxisID === me.id;\r\n\t\t}\r\n\t\tvar datasetIndex, meta, value, data, i, ilen;\r\n\r\n\t\t// Calculate Range\r\n\t\tme.min = Number.POSITIVE_INFINITY;\r\n\t\tme.max = Number.NEGATIVE_INFINITY;\r\n\t\tme.minNotZero = Number.POSITIVE_INFINITY;\r\n\r\n\t\tvar hasStacks = opts.stacked;\r\n\t\tif (hasStacks === undefined) {\r\n\t\t\tfor (datasetIndex = 0; datasetIndex < datasets.length; datasetIndex++) {\r\n\t\t\t\tmeta = chart.getDatasetMeta(datasetIndex);\r\n\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta) &&\r\n\t\t\t\t\tmeta.stack !== undefined) {\r\n\t\t\t\t\thasStacks = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (opts.stacked || hasStacks) {\r\n\t\t\tvar valuesPerStack = {};\r\n\r\n\t\t\tfor (datasetIndex = 0; datasetIndex < datasets.length; datasetIndex++) {\r\n\t\t\t\tmeta = chart.getDatasetMeta(datasetIndex);\r\n\t\t\t\tvar key = [\r\n\t\t\t\t\tmeta.type,\r\n\t\t\t\t\t// we have a separate stack for stack=undefined datasets when the opts.stacked is undefined\r\n\t\t\t\t\t((opts.stacked === undefined && meta.stack === undefined) ? datasetIndex : ''),\r\n\t\t\t\t\tmeta.stack\r\n\t\t\t\t].join('.');\r\n\r\n\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {\r\n\t\t\t\t\tif (valuesPerStack[key] === undefined) {\r\n\t\t\t\t\t\tvaluesPerStack[key] = [];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdata = datasets[datasetIndex].data;\r\n\t\t\t\t\tfor (i = 0, ilen = data.length; i < ilen; i++) {\r\n\t\t\t\t\t\tvar values = valuesPerStack[key];\r\n\t\t\t\t\t\tvalue = me._parseValue(data[i]);\r\n\t\t\t\t\t\t// invalid, hidden and negative values are ignored\r\n\t\t\t\t\t\tif (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden || value.min < 0 || value.max < 0) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tvalues[i] = values[i] || 0;\r\n\t\t\t\t\t\tvalues[i] += value.max;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\thelpers$1.each(valuesPerStack, function(valuesForType) {\r\n\t\t\t\tif (valuesForType.length > 0) {\r\n\t\t\t\t\tvar minVal = helpers$1.min(valuesForType);\r\n\t\t\t\t\tvar maxVal = helpers$1.max(valuesForType);\r\n\t\t\t\t\tme.min = Math.min(me.min, minVal);\r\n\t\t\t\t\tme.max = Math.max(me.max, maxVal);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t} else {\r\n\t\t\tfor (datasetIndex = 0; datasetIndex < datasets.length; datasetIndex++) {\r\n\t\t\t\tmeta = chart.getDatasetMeta(datasetIndex);\r\n\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {\r\n\t\t\t\t\tdata = datasets[datasetIndex].data;\r\n\t\t\t\t\tfor (i = 0, ilen = data.length; i < ilen; i++) {\r\n\t\t\t\t\t\tvalue = me._parseValue(data[i]);\r\n\t\t\t\t\t\t// invalid, hidden and negative values are ignored\r\n\t\t\t\t\t\tif (isNaN(value.min) || isNaN(value.max) || meta.data[i].hidden || value.min < 0 || value.max < 0) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tme.min = Math.min(value.min, me.min);\r\n\t\t\t\t\t\tme.max = Math.max(value.max, me.max);\r\n\r\n\t\t\t\t\t\tif (value.min !== 0) {\r\n\t\t\t\t\t\t\tme.minNotZero = Math.min(value.min, me.minNotZero);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tme.min = helpers$1.isFinite(me.min) ? me.min : null;\r\n\t\tme.max = helpers$1.isFinite(me.max) ? me.max : null;\r\n\t\tme.minNotZero = helpers$1.isFinite(me.minNotZero) ? me.minNotZero : null;\r\n\r\n\t\t// Common base implementation to handle ticks.min, ticks.max\r\n\t\tthis.handleTickRangeOptions();\r\n\t},\r\n\r\n\thandleTickRangeOptions: function() {\r\n\t\tvar me = this;\r\n\t\tvar tickOpts = me.options.ticks;\r\n\t\tvar DEFAULT_MIN = 1;\r\n\t\tvar DEFAULT_MAX = 10;\r\n\r\n\t\tme.min = nonNegativeOrDefault(tickOpts.min, me.min);\r\n\t\tme.max = nonNegativeOrDefault(tickOpts.max, me.max);\r\n\r\n\t\tif (me.min === me.max) {\r\n\t\t\tif (me.min !== 0 && me.min !== null) {\r\n\t\t\t\tme.min = Math.pow(10, Math.floor(log10(me.min)) - 1);\r\n\t\t\t\tme.max = Math.pow(10, Math.floor(log10(me.max)) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tme.min = DEFAULT_MIN;\r\n\t\t\t\tme.max = DEFAULT_MAX;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (me.min === null) {\r\n\t\t\tme.min = Math.pow(10, Math.floor(log10(me.max)) - 1);\r\n\t\t}\r\n\t\tif (me.max === null) {\r\n\t\t\tme.max = me.min !== 0\r\n\t\t\t\t? Math.pow(10, Math.floor(log10(me.min)) + 1)\r\n\t\t\t\t: DEFAULT_MAX;\r\n\t\t}\r\n\t\tif (me.minNotZero === null) {\r\n\t\t\tif (me.min > 0) {\r\n\t\t\t\tme.minNotZero = me.min;\r\n\t\t\t} else if (me.max < 1) {\r\n\t\t\t\tme.minNotZero = Math.pow(10, Math.floor(log10(me.max)));\r\n\t\t\t} else {\r\n\t\t\t\tme.minNotZero = DEFAULT_MIN;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tbuildTicks: function() {\r\n\t\tvar me = this;\r\n\t\tvar tickOpts = me.options.ticks;\r\n\t\tvar reverse = !me.isHorizontal();\r\n\r\n\t\tvar generationOptions = {\r\n\t\t\tmin: nonNegativeOrDefault(tickOpts.min),\r\n\t\t\tmax: nonNegativeOrDefault(tickOpts.max)\r\n\t\t};\r\n\t\tvar ticks = me.ticks = generateTicks$1(generationOptions, me);\r\n\r\n\t\t// At this point, we need to update our max and min given the tick values since we have expanded the\r\n\t\t// range of the scale\r\n\t\tme.max = helpers$1.max(ticks);\r\n\t\tme.min = helpers$1.min(ticks);\r\n\r\n\t\tif (tickOpts.reverse) {\r\n\t\t\treverse = !reverse;\r\n\t\t\tme.start = me.max;\r\n\t\t\tme.end = me.min;\r\n\t\t} else {\r\n\t\t\tme.start = me.min;\r\n\t\t\tme.end = me.max;\r\n\t\t}\r\n\t\tif (reverse) {\r\n\t\t\tticks.reverse();\r\n\t\t}\r\n\t},\r\n\r\n\tconvertTicksToLabels: function() {\r\n\t\tthis.tickValues = this.ticks.slice();\r\n\r\n\t\tcore_scale.prototype.convertTicksToLabels.call(this);\r\n\t},\r\n\r\n\t// Get the correct tooltip label\r\n\tgetLabelForIndex: function(index, datasetIndex) {\r\n\t\treturn this._getScaleLabel(this.chart.data.datasets[datasetIndex].data[index]);\r\n\t},\r\n\r\n\tgetPixelForTick: function(index) {\r\n\t\tvar ticks = this.tickValues;\r\n\t\tif (index < 0 || index > ticks.length - 1) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn this.getPixelForValue(ticks[index]);\r\n\t},\r\n\r\n\t/**\r\n\t * Returns the value of the first tick.\r\n\t * @param {number} value - The minimum not zero value.\r\n\t * @return {number} The first tick value.\r\n\t * @private\r\n\t */\r\n\t_getFirstTickValue: function(value) {\r\n\t\tvar exp = Math.floor(log10(value));\r\n\t\tvar significand = Math.floor(value / Math.pow(10, exp));\r\n\r\n\t\treturn significand * Math.pow(10, exp);\r\n\t},\r\n\r\n\t_configure: function() {\r\n\t\tvar me = this;\r\n\t\tvar start = me.min;\r\n\t\tvar offset = 0;\r\n\r\n\t\tcore_scale.prototype._configure.call(me);\r\n\r\n\t\tif (start === 0) {\r\n\t\t\tstart = me._getFirstTickValue(me.minNotZero);\r\n\t\t\toffset = valueOrDefault$b(me.options.ticks.fontSize, core_defaults.global.defaultFontSize) / me._length;\r\n\t\t}\r\n\r\n\t\tme._startValue = log10(start);\r\n\t\tme._valueOffset = offset;\r\n\t\tme._valueRange = (log10(me.max) - log10(start)) / (1 - offset);\r\n\t},\r\n\r\n\tgetPixelForValue: function(value) {\r\n\t\tvar me = this;\r\n\t\tvar decimal = 0;\r\n\r\n\t\tvalue = +me.getRightValue(value);\r\n\r\n\t\tif (value > me.min && value > 0) {\r\n\t\t\tdecimal = (log10(value) - me._startValue) / me._valueRange + me._valueOffset;\r\n\t\t}\r\n\t\treturn me.getPixelForDecimal(decimal);\r\n\t},\r\n\r\n\tgetValueForPixel: function(pixel) {\r\n\t\tvar me = this;\r\n\t\tvar decimal = me.getDecimalForPixel(pixel);\r\n\t\treturn decimal === 0 && me.min === 0\r\n\t\t\t? 0\r\n\t\t\t: Math.pow(10, me._startValue + (decimal - me._valueOffset) * me._valueRange);\r\n\t}\r\n});\r\n\r\n// INTERNAL: static default options, registered in src/index.js\r\nvar _defaults$2 = defaultConfig$2;\nscale_logarithmic._defaults = _defaults$2;\n\nvar valueOrDefault$c = helpers$1.valueOrDefault;\r\nvar valueAtIndexOrDefault$1 = helpers$1.valueAtIndexOrDefault;\r\nvar resolve$4 = helpers$1.options.resolve;\r\n\r\nvar defaultConfig$3 = {\r\n\tdisplay: true,\r\n\r\n\t// Boolean - Whether to animate scaling the chart from the centre\r\n\tanimate: true,\r\n\tposition: 'chartArea',\r\n\r\n\tangleLines: {\r\n\t\tdisplay: true,\r\n\t\tcolor: 'rgba(0,0,0,0.1)',\r\n\t\tlineWidth: 1,\r\n\t\tborderDash: [],\r\n\t\tborderDashOffset: 0.0\r\n\t},\r\n\r\n\tgridLines: {\r\n\t\tcircular: false\r\n\t},\r\n\r\n\t// label settings\r\n\tticks: {\r\n\t\t// Boolean - Show a backdrop to the scale label\r\n\t\tshowLabelBackdrop: true,\r\n\r\n\t\t// String - The colour of the label backdrop\r\n\t\tbackdropColor: 'rgba(255,255,255,0.75)',\r\n\r\n\t\t// Number - The backdrop padding above & below the label in pixels\r\n\t\tbackdropPaddingY: 2,\r\n\r\n\t\t// Number - The backdrop padding to the side of the label in pixels\r\n\t\tbackdropPaddingX: 2,\r\n\r\n\t\tcallback: core_ticks.formatters.linear\r\n\t},\r\n\r\n\tpointLabels: {\r\n\t\t// Boolean - if true, show point labels\r\n\t\tdisplay: true,\r\n\r\n\t\t// Number - Point label font size in pixels\r\n\t\tfontSize: 10,\r\n\r\n\t\t// Function - Used to convert point labels\r\n\t\tcallback: function(label) {\r\n\t\t\treturn label;\r\n\t\t}\r\n\t}\r\n};\r\n\r\nfunction getTickBackdropHeight(opts) {\r\n\tvar tickOpts = opts.ticks;\r\n\r\n\tif (tickOpts.display && opts.display) {\r\n\t\treturn valueOrDefault$c(tickOpts.fontSize, core_defaults.global.defaultFontSize) + tickOpts.backdropPaddingY * 2;\r\n\t}\r\n\treturn 0;\r\n}\r\n\r\nfunction measureLabelSize(ctx, lineHeight, label) {\r\n\tif (helpers$1.isArray(label)) {\r\n\t\treturn {\r\n\t\t\tw: helpers$1.longestText(ctx, ctx.font, label),\r\n\t\t\th: label.length * lineHeight\r\n\t\t};\r\n\t}\r\n\r\n\treturn {\r\n\t\tw: ctx.measureText(label).width,\r\n\t\th: lineHeight\r\n\t};\r\n}\r\n\r\nfunction determineLimits(angle, pos, size, min, max) {\r\n\tif (angle === min || angle === max) {\r\n\t\treturn {\r\n\t\t\tstart: pos - (size / 2),\r\n\t\t\tend: pos + (size / 2)\r\n\t\t};\r\n\t} else if (angle < min || angle > max) {\r\n\t\treturn {\r\n\t\t\tstart: pos - size,\r\n\t\t\tend: pos\r\n\t\t};\r\n\t}\r\n\r\n\treturn {\r\n\t\tstart: pos,\r\n\t\tend: pos + size\r\n\t};\r\n}\r\n\r\n/**\r\n * Helper function to fit a radial linear scale with point labels\r\n */\r\nfunction fitWithPointLabels(scale) {\r\n\r\n\t// Right, this is really confusing and there is a lot of maths going on here\r\n\t// The gist of the problem is here: https://gist.github.com/nnnick/696cc9c55f4b0beb8fe9\r\n\t//\r\n\t// Reaction: https://dl.dropboxusercontent.com/u/34601363/toomuchscience.gif\r\n\t//\r\n\t// Solution:\r\n\t//\r\n\t// We assume the radius of the polygon is half the size of the canvas at first\r\n\t// at each index we check if the text overlaps.\r\n\t//\r\n\t// Where it does, we store that angle and that index.\r\n\t//\r\n\t// After finding the largest index and angle we calculate how much we need to remove\r\n\t// from the shape radius to move the point inwards by that x.\r\n\t//\r\n\t// We average the left and right distances to get the maximum shape radius that can fit in the box\r\n\t// along with labels.\r\n\t//\r\n\t// Once we have that, we can find the centre point for the chart, by taking the x text protrusion\r\n\t// on each side, removing that from the size, halving it and adding the left x protrusion width.\r\n\t//\r\n\t// This will mean we have a shape fitted to the canvas, as large as it can be with the labels\r\n\t// and position it in the most space efficient manner\r\n\t//\r\n\t// https://dl.dropboxusercontent.com/u/34601363/yeahscience.gif\r\n\r\n\tvar plFont = helpers$1.options._parseFont(scale.options.pointLabels);\r\n\r\n\t// Get maximum radius of the polygon. Either half the height (minus the text width) or half the width.\r\n\t// Use this to calculate the offset + change. - Make sure L/R protrusion is at least 0 to stop issues with centre points\r\n\tvar furthestLimits = {\r\n\t\tl: 0,\r\n\t\tr: scale.width,\r\n\t\tt: 0,\r\n\t\tb: scale.height - scale.paddingTop\r\n\t};\r\n\tvar furthestAngles = {};\r\n\tvar i, textSize, pointPosition;\r\n\r\n\tscale.ctx.font = plFont.string;\r\n\tscale._pointLabelSizes = [];\r\n\r\n\tvar valueCount = scale.chart.data.labels.length;\r\n\tfor (i = 0; i < valueCount; i++) {\r\n\t\tpointPosition = scale.getPointPosition(i, scale.drawingArea + 5);\r\n\t\ttextSize = measureLabelSize(scale.ctx, plFont.lineHeight, scale.pointLabels[i]);\r\n\t\tscale._pointLabelSizes[i] = textSize;\r\n\r\n\t\t// Add quarter circle to make degree 0 mean top of circle\r\n\t\tvar angleRadians = scale.getIndexAngle(i);\r\n\t\tvar angle = helpers$1.toDegrees(angleRadians) % 360;\r\n\t\tvar hLimits = determineLimits(angle, pointPosition.x, textSize.w, 0, 180);\r\n\t\tvar vLimits = determineLimits(angle, pointPosition.y, textSize.h, 90, 270);\r\n\r\n\t\tif (hLimits.start < furthestLimits.l) {\r\n\t\t\tfurthestLimits.l = hLimits.start;\r\n\t\t\tfurthestAngles.l = angleRadians;\r\n\t\t}\r\n\r\n\t\tif (hLimits.end > furthestLimits.r) {\r\n\t\t\tfurthestLimits.r = hLimits.end;\r\n\t\t\tfurthestAngles.r = angleRadians;\r\n\t\t}\r\n\r\n\t\tif (vLimits.start < furthestLimits.t) {\r\n\t\t\tfurthestLimits.t = vLimits.start;\r\n\t\t\tfurthestAngles.t = angleRadians;\r\n\t\t}\r\n\r\n\t\tif (vLimits.end > furthestLimits.b) {\r\n\t\t\tfurthestLimits.b = vLimits.end;\r\n\t\t\tfurthestAngles.b = angleRadians;\r\n\t\t}\r\n\t}\r\n\r\n\tscale.setReductions(scale.drawingArea, furthestLimits, furthestAngles);\r\n}\r\n\r\nfunction getTextAlignForAngle(angle) {\r\n\tif (angle === 0 || angle === 180) {\r\n\t\treturn 'center';\r\n\t} else if (angle < 180) {\r\n\t\treturn 'left';\r\n\t}\r\n\r\n\treturn 'right';\r\n}\r\n\r\nfunction fillText(ctx, text, position, lineHeight) {\r\n\tvar y = position.y + lineHeight / 2;\r\n\tvar i, ilen;\r\n\r\n\tif (helpers$1.isArray(text)) {\r\n\t\tfor (i = 0, ilen = text.length; i < ilen; ++i) {\r\n\t\t\tctx.fillText(text[i], position.x, y);\r\n\t\t\ty += lineHeight;\r\n\t\t}\r\n\t} else {\r\n\t\tctx.fillText(text, position.x, y);\r\n\t}\r\n}\r\n\r\nfunction adjustPointPositionForLabelHeight(angle, textSize, position) {\r\n\tif (angle === 90 || angle === 270) {\r\n\t\tposition.y -= (textSize.h / 2);\r\n\t} else if (angle > 270 || angle < 90) {\r\n\t\tposition.y -= textSize.h;\r\n\t}\r\n}\r\n\r\nfunction drawPointLabels(scale) {\r\n\tvar ctx = scale.ctx;\r\n\tvar opts = scale.options;\r\n\tvar pointLabelOpts = opts.pointLabels;\r\n\tvar tickBackdropHeight = getTickBackdropHeight(opts);\r\n\tvar outerDistance = scale.getDistanceFromCenterForValue(opts.ticks.reverse ? scale.min : scale.max);\r\n\tvar plFont = helpers$1.options._parseFont(pointLabelOpts);\r\n\r\n\tctx.save();\r\n\r\n\tctx.font = plFont.string;\r\n\tctx.textBaseline = 'middle';\r\n\r\n\tfor (var i = scale.chart.data.labels.length - 1; i >= 0; i--) {\r\n\t\t// Extra pixels out for some label spacing\r\n\t\tvar extra = (i === 0 ? tickBackdropHeight / 2 : 0);\r\n\t\tvar pointLabelPosition = scale.getPointPosition(i, outerDistance + extra + 5);\r\n\r\n\t\t// Keep this in loop since we may support array properties here\r\n\t\tvar pointLabelFontColor = valueAtIndexOrDefault$1(pointLabelOpts.fontColor, i, core_defaults.global.defaultFontColor);\r\n\t\tctx.fillStyle = pointLabelFontColor;\r\n\r\n\t\tvar angleRadians = scale.getIndexAngle(i);\r\n\t\tvar angle = helpers$1.toDegrees(angleRadians);\r\n\t\tctx.textAlign = getTextAlignForAngle(angle);\r\n\t\tadjustPointPositionForLabelHeight(angle, scale._pointLabelSizes[i], pointLabelPosition);\r\n\t\tfillText(ctx, scale.pointLabels[i], pointLabelPosition, plFont.lineHeight);\r\n\t}\r\n\tctx.restore();\r\n}\r\n\r\nfunction drawRadiusLine(scale, gridLineOpts, radius, index) {\r\n\tvar ctx = scale.ctx;\r\n\tvar circular = gridLineOpts.circular;\r\n\tvar valueCount = scale.chart.data.labels.length;\r\n\tvar lineColor = valueAtIndexOrDefault$1(gridLineOpts.color, index - 1);\r\n\tvar lineWidth = valueAtIndexOrDefault$1(gridLineOpts.lineWidth, index - 1);\r\n\tvar pointPosition;\r\n\r\n\tif ((!circular && !valueCount) || !lineColor || !lineWidth) {\r\n\t\treturn;\r\n\t}\r\n\r\n\tctx.save();\r\n\tctx.strokeStyle = lineColor;\r\n\tctx.lineWidth = lineWidth;\r\n\tif (ctx.setLineDash) {\r\n\t\tctx.setLineDash(gridLineOpts.borderDash || []);\r\n\t\tctx.lineDashOffset = gridLineOpts.borderDashOffset || 0.0;\r\n\t}\r\n\r\n\tctx.beginPath();\r\n\tif (circular) {\r\n\t\t// Draw circular arcs between the points\r\n\t\tctx.arc(scale.xCenter, scale.yCenter, radius, 0, Math.PI * 2);\r\n\t} else {\r\n\t\t// Draw straight lines connecting each index\r\n\t\tpointPosition = scale.getPointPosition(0, radius);\r\n\t\tctx.moveTo(pointPosition.x, pointPosition.y);\r\n\r\n\t\tfor (var i = 1; i < valueCount; i++) {\r\n\t\t\tpointPosition = scale.getPointPosition(i, radius);\r\n\t\t\tctx.lineTo(pointPosition.x, pointPosition.y);\r\n\t\t}\r\n\t}\r\n\tctx.closePath();\r\n\tctx.stroke();\r\n\tctx.restore();\r\n}\r\n\r\nfunction numberOrZero(param) {\r\n\treturn helpers$1.isNumber(param) ? param : 0;\r\n}\r\n\r\nvar scale_radialLinear = scale_linearbase.extend({\r\n\tsetDimensions: function() {\r\n\t\tvar me = this;\r\n\r\n\t\t// Set the unconstrained dimension before label rotation\r\n\t\tme.width = me.maxWidth;\r\n\t\tme.height = me.maxHeight;\r\n\t\tme.paddingTop = getTickBackdropHeight(me.options) / 2;\r\n\t\tme.xCenter = Math.floor(me.width / 2);\r\n\t\tme.yCenter = Math.floor((me.height - me.paddingTop) / 2);\r\n\t\tme.drawingArea = Math.min(me.height - me.paddingTop, me.width) / 2;\r\n\t},\r\n\r\n\tdetermineDataLimits: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar min = Number.POSITIVE_INFINITY;\r\n\t\tvar max = Number.NEGATIVE_INFINITY;\r\n\r\n\t\thelpers$1.each(chart.data.datasets, function(dataset, datasetIndex) {\r\n\t\t\tif (chart.isDatasetVisible(datasetIndex)) {\r\n\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\r\n\r\n\t\t\t\thelpers$1.each(dataset.data, function(rawValue, index) {\r\n\t\t\t\t\tvar value = +me.getRightValue(rawValue);\r\n\t\t\t\t\tif (isNaN(value) || meta.data[index].hidden) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tmin = Math.min(value, min);\r\n\t\t\t\t\tmax = Math.max(value, max);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tme.min = (min === Number.POSITIVE_INFINITY ? 0 : min);\r\n\t\tme.max = (max === Number.NEGATIVE_INFINITY ? 0 : max);\r\n\r\n\t\t// Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero\r\n\t\tme.handleTickRangeOptions();\r\n\t},\r\n\r\n\t// Returns the maximum number of ticks based on the scale dimension\r\n\t_computeTickLimit: function() {\r\n\t\treturn Math.ceil(this.drawingArea / getTickBackdropHeight(this.options));\r\n\t},\r\n\r\n\tconvertTicksToLabels: function() {\r\n\t\tvar me = this;\r\n\r\n\t\tscale_linearbase.prototype.convertTicksToLabels.call(me);\r\n\r\n\t\t// Point labels\r\n\t\tme.pointLabels = me.chart.data.labels.map(function() {\r\n\t\t\tvar label = helpers$1.callback(me.options.pointLabels.callback, arguments, me);\r\n\t\t\treturn label || label === 0 ? label : '';\r\n\t\t});\r\n\t},\r\n\r\n\tgetLabelForIndex: function(index, datasetIndex) {\r\n\t\treturn +this.getRightValue(this.chart.data.datasets[datasetIndex].data[index]);\r\n\t},\r\n\r\n\tfit: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\r\n\t\tif (opts.display && opts.pointLabels.display) {\r\n\t\t\tfitWithPointLabels(me);\r\n\t\t} else {\r\n\t\t\tme.setCenterPoint(0, 0, 0, 0);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Set radius reductions and determine new radius and center point\r\n\t * @private\r\n\t */\r\n\tsetReductions: function(largestPossibleRadius, furthestLimits, furthestAngles) {\r\n\t\tvar me = this;\r\n\t\tvar radiusReductionLeft = furthestLimits.l / Math.sin(furthestAngles.l);\r\n\t\tvar radiusReductionRight = Math.max(furthestLimits.r - me.width, 0) / Math.sin(furthestAngles.r);\r\n\t\tvar radiusReductionTop = -furthestLimits.t / Math.cos(furthestAngles.t);\r\n\t\tvar radiusReductionBottom = -Math.max(furthestLimits.b - (me.height - me.paddingTop), 0) / Math.cos(furthestAngles.b);\r\n\r\n\t\tradiusReductionLeft = numberOrZero(radiusReductionLeft);\r\n\t\tradiusReductionRight = numberOrZero(radiusReductionRight);\r\n\t\tradiusReductionTop = numberOrZero(radiusReductionTop);\r\n\t\tradiusReductionBottom = numberOrZero(radiusReductionBottom);\r\n\r\n\t\tme.drawingArea = Math.min(\r\n\t\t\tMath.floor(largestPossibleRadius - (radiusReductionLeft + radiusReductionRight) / 2),\r\n\t\t\tMath.floor(largestPossibleRadius - (radiusReductionTop + radiusReductionBottom) / 2));\r\n\t\tme.setCenterPoint(radiusReductionLeft, radiusReductionRight, radiusReductionTop, radiusReductionBottom);\r\n\t},\r\n\r\n\tsetCenterPoint: function(leftMovement, rightMovement, topMovement, bottomMovement) {\r\n\t\tvar me = this;\r\n\t\tvar maxRight = me.width - rightMovement - me.drawingArea;\r\n\t\tvar maxLeft = leftMovement + me.drawingArea;\r\n\t\tvar maxTop = topMovement + me.drawingArea;\r\n\t\tvar maxBottom = (me.height - me.paddingTop) - bottomMovement - me.drawingArea;\r\n\r\n\t\tme.xCenter = Math.floor(((maxLeft + maxRight) / 2) + me.left);\r\n\t\tme.yCenter = Math.floor(((maxTop + maxBottom) / 2) + me.top + me.paddingTop);\r\n\t},\r\n\r\n\tgetIndexAngle: function(index) {\r\n\t\tvar chart = this.chart;\r\n\t\tvar angleMultiplier = 360 / chart.data.labels.length;\r\n\t\tvar options = chart.options || {};\r\n\t\tvar startAngle = options.startAngle || 0;\r\n\r\n\t\t// Start from the top instead of right, so remove a quarter of the circle\r\n\t\tvar angle = (index * angleMultiplier + startAngle) % 360;\r\n\r\n\t\treturn (angle < 0 ? angle + 360 : angle) * Math.PI * 2 / 360;\r\n\t},\r\n\r\n\tgetDistanceFromCenterForValue: function(value) {\r\n\t\tvar me = this;\r\n\r\n\t\tif (helpers$1.isNullOrUndef(value)) {\r\n\t\t\treturn NaN;\r\n\t\t}\r\n\r\n\t\t// Take into account half font size + the yPadding of the top value\r\n\t\tvar scalingFactor = me.drawingArea / (me.max - me.min);\r\n\t\tif (me.options.ticks.reverse) {\r\n\t\t\treturn (me.max - value) * scalingFactor;\r\n\t\t}\r\n\t\treturn (value - me.min) * scalingFactor;\r\n\t},\r\n\r\n\tgetPointPosition: function(index, distanceFromCenter) {\r\n\t\tvar me = this;\r\n\t\tvar thisAngle = me.getIndexAngle(index) - (Math.PI / 2);\r\n\t\treturn {\r\n\t\t\tx: Math.cos(thisAngle) * distanceFromCenter + me.xCenter,\r\n\t\t\ty: Math.sin(thisAngle) * distanceFromCenter + me.yCenter\r\n\t\t};\r\n\t},\r\n\r\n\tgetPointPositionForValue: function(index, value) {\r\n\t\treturn this.getPointPosition(index, this.getDistanceFromCenterForValue(value));\r\n\t},\r\n\r\n\tgetBasePosition: function(index) {\r\n\t\tvar me = this;\r\n\t\tvar min = me.min;\r\n\t\tvar max = me.max;\r\n\r\n\t\treturn me.getPointPositionForValue(index || 0,\r\n\t\t\tme.beginAtZero ? 0 :\r\n\t\t\tmin < 0 && max < 0 ? max :\r\n\t\t\tmin > 0 && max > 0 ? min :\r\n\t\t\t0);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_drawGrid: function() {\r\n\t\tvar me = this;\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar opts = me.options;\r\n\t\tvar gridLineOpts = opts.gridLines;\r\n\t\tvar angleLineOpts = opts.angleLines;\r\n\t\tvar lineWidth = valueOrDefault$c(angleLineOpts.lineWidth, gridLineOpts.lineWidth);\r\n\t\tvar lineColor = valueOrDefault$c(angleLineOpts.color, gridLineOpts.color);\r\n\t\tvar i, offset, position;\r\n\r\n\t\tif (opts.pointLabels.display) {\r\n\t\t\tdrawPointLabels(me);\r\n\t\t}\r\n\r\n\t\tif (gridLineOpts.display) {\r\n\t\t\thelpers$1.each(me.ticks, function(label, index) {\r\n\t\t\t\tif (index !== 0) {\r\n\t\t\t\t\toffset = me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]);\r\n\t\t\t\t\tdrawRadiusLine(me, gridLineOpts, offset, index);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (angleLineOpts.display && lineWidth && lineColor) {\r\n\t\t\tctx.save();\r\n\t\t\tctx.lineWidth = lineWidth;\r\n\t\t\tctx.strokeStyle = lineColor;\r\n\t\t\tif (ctx.setLineDash) {\r\n\t\t\t\tctx.setLineDash(resolve$4([angleLineOpts.borderDash, gridLineOpts.borderDash, []]));\r\n\t\t\t\tctx.lineDashOffset = resolve$4([angleLineOpts.borderDashOffset, gridLineOpts.borderDashOffset, 0.0]);\r\n\t\t\t}\r\n\r\n\t\t\tfor (i = me.chart.data.labels.length - 1; i >= 0; i--) {\r\n\t\t\t\toffset = me.getDistanceFromCenterForValue(opts.ticks.reverse ? me.min : me.max);\r\n\t\t\t\tposition = me.getPointPosition(i, offset);\r\n\t\t\t\tctx.beginPath();\r\n\t\t\t\tctx.moveTo(me.xCenter, me.yCenter);\r\n\t\t\t\tctx.lineTo(position.x, position.y);\r\n\t\t\t\tctx.stroke();\r\n\t\t\t}\r\n\r\n\t\t\tctx.restore();\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_drawLabels: function() {\r\n\t\tvar me = this;\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar opts = me.options;\r\n\t\tvar tickOpts = opts.ticks;\r\n\r\n\t\tif (!tickOpts.display) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar startAngle = me.getIndexAngle(0);\r\n\t\tvar tickFont = helpers$1.options._parseFont(tickOpts);\r\n\t\tvar tickFontColor = valueOrDefault$c(tickOpts.fontColor, core_defaults.global.defaultFontColor);\r\n\t\tvar offset, width;\r\n\r\n\t\tctx.save();\r\n\t\tctx.font = tickFont.string;\r\n\t\tctx.translate(me.xCenter, me.yCenter);\r\n\t\tctx.rotate(startAngle);\r\n\t\tctx.textAlign = 'center';\r\n\t\tctx.textBaseline = 'middle';\r\n\r\n\t\thelpers$1.each(me.ticks, function(label, index) {\r\n\t\t\tif (index === 0 && !tickOpts.reverse) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\toffset = me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]);\r\n\r\n\t\t\tif (tickOpts.showLabelBackdrop) {\r\n\t\t\t\twidth = ctx.measureText(label).width;\r\n\t\t\t\tctx.fillStyle = tickOpts.backdropColor;\r\n\r\n\t\t\t\tctx.fillRect(\r\n\t\t\t\t\t-width / 2 - tickOpts.backdropPaddingX,\r\n\t\t\t\t\t-offset - tickFont.size / 2 - tickOpts.backdropPaddingY,\r\n\t\t\t\t\twidth + tickOpts.backdropPaddingX * 2,\r\n\t\t\t\t\ttickFont.size + tickOpts.backdropPaddingY * 2\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t\tctx.fillStyle = tickFontColor;\r\n\t\t\tctx.fillText(label, 0, -offset);\r\n\t\t});\r\n\r\n\t\tctx.restore();\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_drawTitle: helpers$1.noop\r\n});\r\n\r\n// INTERNAL: static default options, registered in src/index.js\r\nvar _defaults$3 = defaultConfig$3;\nscale_radialLinear._defaults = _defaults$3;\n\nvar deprecated$1 = helpers$1._deprecated;\r\nvar resolve$5 = helpers$1.options.resolve;\r\nvar valueOrDefault$d = helpers$1.valueOrDefault;\r\n\r\n// Integer constants are from the ES6 spec.\r\nvar MIN_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991;\r\nvar MAX_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;\r\n\r\nvar INTERVALS = {\r\n\tmillisecond: {\r\n\t\tcommon: true,\r\n\t\tsize: 1,\r\n\t\tsteps: 1000\r\n\t},\r\n\tsecond: {\r\n\t\tcommon: true,\r\n\t\tsize: 1000,\r\n\t\tsteps: 60\r\n\t},\r\n\tminute: {\r\n\t\tcommon: true,\r\n\t\tsize: 60000,\r\n\t\tsteps: 60\r\n\t},\r\n\thour: {\r\n\t\tcommon: true,\r\n\t\tsize: 3600000,\r\n\t\tsteps: 24\r\n\t},\r\n\tday: {\r\n\t\tcommon: true,\r\n\t\tsize: 86400000,\r\n\t\tsteps: 30\r\n\t},\r\n\tweek: {\r\n\t\tcommon: false,\r\n\t\tsize: 604800000,\r\n\t\tsteps: 4\r\n\t},\r\n\tmonth: {\r\n\t\tcommon: true,\r\n\t\tsize: 2.628e9,\r\n\t\tsteps: 12\r\n\t},\r\n\tquarter: {\r\n\t\tcommon: false,\r\n\t\tsize: 7.884e9,\r\n\t\tsteps: 4\r\n\t},\r\n\tyear: {\r\n\t\tcommon: true,\r\n\t\tsize: 3.154e10\r\n\t}\r\n};\r\n\r\nvar UNITS = Object.keys(INTERVALS);\r\n\r\nfunction sorter(a, b) {\r\n\treturn a - b;\r\n}\r\n\r\nfunction arrayUnique(items) {\r\n\tvar hash = {};\r\n\tvar out = [];\r\n\tvar i, ilen, item;\r\n\r\n\tfor (i = 0, ilen = items.length; i < ilen; ++i) {\r\n\t\titem = items[i];\r\n\t\tif (!hash[item]) {\r\n\t\t\thash[item] = true;\r\n\t\t\tout.push(item);\r\n\t\t}\r\n\t}\r\n\r\n\treturn out;\r\n}\r\n\r\nfunction getMin(options) {\r\n\treturn helpers$1.valueOrDefault(options.time.min, options.ticks.min);\r\n}\r\n\r\nfunction getMax(options) {\r\n\treturn helpers$1.valueOrDefault(options.time.max, options.ticks.max);\r\n}\r\n\r\n/**\r\n * Returns an array of {time, pos} objects used to interpolate a specific `time` or position\r\n * (`pos`) on the scale, by searching entries before and after the requested value. `pos` is\r\n * a decimal between 0 and 1: 0 being the start of the scale (left or top) and 1 the other\r\n * extremity (left + width or top + height). Note that it would be more optimized to directly\r\n * store pre-computed pixels, but the scale dimensions are not guaranteed at the time we need\r\n * to create the lookup table. The table ALWAYS contains at least two items: min and max.\r\n *\r\n * @param {number[]} timestamps - timestamps sorted from lowest to highest.\r\n * @param {string} distribution - If 'linear', timestamps will be spread linearly along the min\r\n * and max range, so basically, the table will contains only two items: {min, 0} and {max, 1}.\r\n * If 'series', timestamps will be positioned at the same distance from each other. In this\r\n * case, only timestamps that break the time linearity are registered, meaning that in the\r\n * best case, all timestamps are linear, the table contains only min and max.\r\n */\r\nfunction buildLookupTable(timestamps, min, max, distribution) {\r\n\tif (distribution === 'linear' || !timestamps.length) {\r\n\t\treturn [\r\n\t\t\t{time: min, pos: 0},\r\n\t\t\t{time: max, pos: 1}\r\n\t\t];\r\n\t}\r\n\r\n\tvar table = [];\r\n\tvar items = [min];\r\n\tvar i, ilen, prev, curr, next;\r\n\r\n\tfor (i = 0, ilen = timestamps.length; i < ilen; ++i) {\r\n\t\tcurr = timestamps[i];\r\n\t\tif (curr > min && curr < max) {\r\n\t\t\titems.push(curr);\r\n\t\t}\r\n\t}\r\n\r\n\titems.push(max);\r\n\r\n\tfor (i = 0, ilen = items.length; i < ilen; ++i) {\r\n\t\tnext = items[i + 1];\r\n\t\tprev = items[i - 1];\r\n\t\tcurr = items[i];\r\n\r\n\t\t// only add points that breaks the scale linearity\r\n\t\tif (prev === undefined || next === undefined || Math.round((next + prev) / 2) !== curr) {\r\n\t\t\ttable.push({time: curr, pos: i / (ilen - 1)});\r\n\t\t}\r\n\t}\r\n\r\n\treturn table;\r\n}\r\n\r\n// @see adapted from https://www.anujgakhar.com/2014/03/01/binary-search-in-javascript/\r\nfunction lookup(table, key, value) {\r\n\tvar lo = 0;\r\n\tvar hi = table.length - 1;\r\n\tvar mid, i0, i1;\r\n\r\n\twhile (lo >= 0 && lo <= hi) {\r\n\t\tmid = (lo + hi) >> 1;\r\n\t\ti0 = table[mid - 1] || null;\r\n\t\ti1 = table[mid];\r\n\r\n\t\tif (!i0) {\r\n\t\t\t// given value is outside table (before first item)\r\n\t\t\treturn {lo: null, hi: i1};\r\n\t\t} else if (i1[key] < value) {\r\n\t\t\tlo = mid + 1;\r\n\t\t} else if (i0[key] > value) {\r\n\t\t\thi = mid - 1;\r\n\t\t} else {\r\n\t\t\treturn {lo: i0, hi: i1};\r\n\t\t}\r\n\t}\r\n\r\n\t// given value is outside table (after last item)\r\n\treturn {lo: i1, hi: null};\r\n}\r\n\r\n/**\r\n * Linearly interpolates the given source `value` using the table items `skey` values and\r\n * returns the associated `tkey` value. For example, interpolate(table, 'time', 42, 'pos')\r\n * returns the position for a timestamp equal to 42. If value is out of bounds, values at\r\n * index [0, 1] or [n - 1, n] are used for the interpolation.\r\n */\r\nfunction interpolate$1(table, skey, sval, tkey) {\r\n\tvar range = lookup(table, skey, sval);\r\n\r\n\t// Note: the lookup table ALWAYS contains at least 2 items (min and max)\r\n\tvar prev = !range.lo ? table[0] : !range.hi ? table[table.length - 2] : range.lo;\r\n\tvar next = !range.lo ? table[1] : !range.hi ? table[table.length - 1] : range.hi;\r\n\r\n\tvar span = next[skey] - prev[skey];\r\n\tvar ratio = span ? (sval - prev[skey]) / span : 0;\r\n\tvar offset = (next[tkey] - prev[tkey]) * ratio;\r\n\r\n\treturn prev[tkey] + offset;\r\n}\r\n\r\nfunction toTimestamp(scale, input) {\r\n\tvar adapter = scale._adapter;\r\n\tvar options = scale.options.time;\r\n\tvar parser = options.parser;\r\n\tvar format = parser || options.format;\r\n\tvar value = input;\r\n\r\n\tif (typeof parser === 'function') {\r\n\t\tvalue = parser(value);\r\n\t}\r\n\r\n\t// Only parse if its not a timestamp already\r\n\tif (!helpers$1.isFinite(value)) {\r\n\t\tvalue = typeof format === 'string'\r\n\t\t\t? adapter.parse(value, format)\r\n\t\t\t: adapter.parse(value);\r\n\t}\r\n\r\n\tif (value !== null) {\r\n\t\treturn +value;\r\n\t}\r\n\r\n\t// Labels are in an incompatible format and no `parser` has been provided.\r\n\t// The user might still use the deprecated `format` option for parsing.\r\n\tif (!parser && typeof format === 'function') {\r\n\t\tvalue = format(input);\r\n\r\n\t\t// `format` could return something else than a timestamp, if so, parse it\r\n\t\tif (!helpers$1.isFinite(value)) {\r\n\t\t\tvalue = adapter.parse(value);\r\n\t\t}\r\n\t}\r\n\r\n\treturn value;\r\n}\r\n\r\nfunction parse(scale, input) {\r\n\tif (helpers$1.isNullOrUndef(input)) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\tvar options = scale.options.time;\r\n\tvar value = toTimestamp(scale, scale.getRightValue(input));\r\n\tif (value === null) {\r\n\t\treturn value;\r\n\t}\r\n\r\n\tif (options.round) {\r\n\t\tvalue = +scale._adapter.startOf(value, options.round);\r\n\t}\r\n\r\n\treturn value;\r\n}\r\n\r\n/**\r\n * Figures out what unit results in an appropriate number of auto-generated ticks\r\n */\r\nfunction determineUnitForAutoTicks(minUnit, min, max, capacity) {\r\n\tvar ilen = UNITS.length;\r\n\tvar i, interval, factor;\r\n\r\n\tfor (i = UNITS.indexOf(minUnit); i < ilen - 1; ++i) {\r\n\t\tinterval = INTERVALS[UNITS[i]];\r\n\t\tfactor = interval.steps ? interval.steps : MAX_INTEGER;\r\n\r\n\t\tif (interval.common && Math.ceil((max - min) / (factor * interval.size)) <= capacity) {\r\n\t\t\treturn UNITS[i];\r\n\t\t}\r\n\t}\r\n\r\n\treturn UNITS[ilen - 1];\r\n}\r\n\r\n/**\r\n * Figures out what unit to format a set of ticks with\r\n */\r\nfunction determineUnitForFormatting(scale, numTicks, minUnit, min, max) {\r\n\tvar i, unit;\r\n\r\n\tfor (i = UNITS.length - 1; i >= UNITS.indexOf(minUnit); i--) {\r\n\t\tunit = UNITS[i];\r\n\t\tif (INTERVALS[unit].common && scale._adapter.diff(max, min, unit) >= numTicks - 1) {\r\n\t\t\treturn unit;\r\n\t\t}\r\n\t}\r\n\r\n\treturn UNITS[minUnit ? UNITS.indexOf(minUnit) : 0];\r\n}\r\n\r\nfunction determineMajorUnit(unit) {\r\n\tfor (var i = UNITS.indexOf(unit) + 1, ilen = UNITS.length; i < ilen; ++i) {\r\n\t\tif (INTERVALS[UNITS[i]].common) {\r\n\t\t\treturn UNITS[i];\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/**\r\n * Generates a maximum of `capacity` timestamps between min and max, rounded to the\r\n * `minor` unit using the given scale time `options`.\r\n * Important: this method can return ticks outside the min and max range, it's the\r\n * responsibility of the calling code to clamp values if needed.\r\n */\r\nfunction generate(scale, min, max, capacity) {\r\n\tvar adapter = scale._adapter;\r\n\tvar options = scale.options;\r\n\tvar timeOpts = options.time;\r\n\tvar minor = timeOpts.unit || determineUnitForAutoTicks(timeOpts.minUnit, min, max, capacity);\r\n\tvar stepSize = resolve$5([timeOpts.stepSize, timeOpts.unitStepSize, 1]);\r\n\tvar weekday = minor === 'week' ? timeOpts.isoWeekday : false;\r\n\tvar first = min;\r\n\tvar ticks = [];\r\n\tvar time;\r\n\r\n\t// For 'week' unit, handle the first day of week option\r\n\tif (weekday) {\r\n\t\tfirst = +adapter.startOf(first, 'isoWeek', weekday);\r\n\t}\r\n\r\n\t// Align first ticks on unit\r\n\tfirst = +adapter.startOf(first, weekday ? 'day' : minor);\r\n\r\n\t// Prevent browser from freezing in case user options request millions of milliseconds\r\n\tif (adapter.diff(max, min, minor) > 100000 * stepSize) {\r\n\t\tthrow min + ' and ' + max + ' are too far apart with stepSize of ' + stepSize + ' ' + minor;\r\n\t}\r\n\r\n\tfor (time = first; time < max; time = +adapter.add(time, stepSize, minor)) {\r\n\t\tticks.push(time);\r\n\t}\r\n\r\n\tif (time === max || options.bounds === 'ticks') {\r\n\t\tticks.push(time);\r\n\t}\r\n\r\n\treturn ticks;\r\n}\r\n\r\n/**\r\n * Returns the start and end offsets from edges in the form of {start, end}\r\n * where each value is a relative width to the scale and ranges between 0 and 1.\r\n * They add extra margins on the both sides by scaling down the original scale.\r\n * Offsets are added when the `offset` option is true.\r\n */\r\nfunction computeOffsets(table, ticks, min, max, options) {\r\n\tvar start = 0;\r\n\tvar end = 0;\r\n\tvar first, last;\r\n\r\n\tif (options.offset && ticks.length) {\r\n\t\tfirst = interpolate$1(table, 'time', ticks[0], 'pos');\r\n\t\tif (ticks.length === 1) {\r\n\t\t\tstart = 1 - first;\r\n\t\t} else {\r\n\t\t\tstart = (interpolate$1(table, 'time', ticks[1], 'pos') - first) / 2;\r\n\t\t}\r\n\t\tlast = interpolate$1(table, 'time', ticks[ticks.length - 1], 'pos');\r\n\t\tif (ticks.length === 1) {\r\n\t\t\tend = last;\r\n\t\t} else {\r\n\t\t\tend = (last - interpolate$1(table, 'time', ticks[ticks.length - 2], 'pos')) / 2;\r\n\t\t}\r\n\t}\r\n\r\n\treturn {start: start, end: end, factor: 1 / (start + 1 + end)};\r\n}\r\n\r\nfunction setMajorTicks(scale, ticks, map, majorUnit) {\r\n\tvar adapter = scale._adapter;\r\n\tvar first = +adapter.startOf(ticks[0].value, majorUnit);\r\n\tvar last = ticks[ticks.length - 1].value;\r\n\tvar major, index;\r\n\r\n\tfor (major = first; major <= last; major = +adapter.add(major, 1, majorUnit)) {\r\n\t\tindex = map[major];\r\n\t\tif (index >= 0) {\r\n\t\t\tticks[index].major = true;\r\n\t\t}\r\n\t}\r\n\treturn ticks;\r\n}\r\n\r\nfunction ticksFromTimestamps(scale, values, majorUnit) {\r\n\tvar ticks = [];\r\n\tvar map = {};\r\n\tvar ilen = values.length;\r\n\tvar i, value;\r\n\r\n\tfor (i = 0; i < ilen; ++i) {\r\n\t\tvalue = values[i];\r\n\t\tmap[value] = i;\r\n\r\n\t\tticks.push({\r\n\t\t\tvalue: value,\r\n\t\t\tmajor: false\r\n\t\t});\r\n\t}\r\n\r\n\t// We set the major ticks separately from the above loop because calling startOf for every tick\r\n\t// is expensive when there is a large number of ticks\r\n\treturn (ilen === 0 || !majorUnit) ? ticks : setMajorTicks(scale, ticks, map, majorUnit);\r\n}\r\n\r\nvar defaultConfig$4 = {\r\n\tposition: 'bottom',\r\n\r\n\t/**\r\n\t * Data distribution along the scale:\r\n\t * - 'linear': data are spread according to their time (distances can vary),\r\n\t * - 'series': data are spread at the same distance from each other.\r\n\t * @see https://github.com/chartjs/Chart.js/pull/4507\r\n\t * @since 2.7.0\r\n\t */\r\n\tdistribution: 'linear',\r\n\r\n\t/**\r\n\t * Scale boundary strategy (bypassed by min/max time options)\r\n\t * - `data`: make sure data are fully visible, ticks outside are removed\r\n\t * - `ticks`: make sure ticks are fully visible, data outside are truncated\r\n\t * @see https://github.com/chartjs/Chart.js/pull/4556\r\n\t * @since 2.7.0\r\n\t */\r\n\tbounds: 'data',\r\n\r\n\tadapters: {},\r\n\ttime: {\r\n\t\tparser: false, // false == a pattern string from https://momentjs.com/docs/#/parsing/string-format/ or a custom callback that converts its argument to a moment\r\n\t\tunit: false, // false == automatic or override with week, month, year, etc.\r\n\t\tround: false, // none, or override with week, month, year, etc.\r\n\t\tdisplayFormat: false, // DEPRECATED\r\n\t\tisoWeekday: false, // override week start day - see https://momentjs.com/docs/#/get-set/iso-weekday/\r\n\t\tminUnit: 'millisecond',\r\n\t\tdisplayFormats: {}\r\n\t},\r\n\tticks: {\r\n\t\tautoSkip: false,\r\n\r\n\t\t/**\r\n\t\t * Ticks generation input values:\r\n\t\t * - 'auto': generates \"optimal\" ticks based on scale size and time options.\r\n\t\t * - 'data': generates ticks from data (including labels from data {t|x|y} objects).\r\n\t\t * - 'labels': generates ticks from user given `data.labels` values ONLY.\r\n\t\t * @see https://github.com/chartjs/Chart.js/pull/4507\r\n\t\t * @since 2.7.0\r\n\t\t */\r\n\t\tsource: 'auto',\r\n\r\n\t\tmajor: {\r\n\t\t\tenabled: false\r\n\t\t}\r\n\t}\r\n};\r\n\r\nvar scale_time = core_scale.extend({\r\n\tinitialize: function() {\r\n\t\tthis.mergeTicksOptions();\r\n\t\tcore_scale.prototype.initialize.call(this);\r\n\t},\r\n\r\n\tupdate: function() {\r\n\t\tvar me = this;\r\n\t\tvar options = me.options;\r\n\t\tvar time = options.time || (options.time = {});\r\n\t\tvar adapter = me._adapter = new core_adapters._date(options.adapters.date);\r\n\r\n\t\t// DEPRECATIONS: output a message only one time per update\r\n\t\tdeprecated$1('time scale', time.format, 'time.format', 'time.parser');\r\n\t\tdeprecated$1('time scale', time.min, 'time.min', 'ticks.min');\r\n\t\tdeprecated$1('time scale', time.max, 'time.max', 'ticks.max');\r\n\r\n\t\t// Backward compatibility: before introducing adapter, `displayFormats` was\r\n\t\t// supposed to contain *all* unit/string pairs but this can't be resolved\r\n\t\t// when loading the scale (adapters are loaded afterward), so let's populate\r\n\t\t// missing formats on update\r\n\t\thelpers$1.mergeIf(time.displayFormats, adapter.formats());\r\n\r\n\t\treturn core_scale.prototype.update.apply(me, arguments);\r\n\t},\r\n\r\n\t/**\r\n\t * Allows data to be referenced via 't' attribute\r\n\t */\r\n\tgetRightValue: function(rawValue) {\r\n\t\tif (rawValue && rawValue.t !== undefined) {\r\n\t\t\trawValue = rawValue.t;\r\n\t\t}\r\n\t\treturn core_scale.prototype.getRightValue.call(this, rawValue);\r\n\t},\r\n\r\n\tdetermineDataLimits: function() {\r\n\t\tvar me = this;\r\n\t\tvar chart = me.chart;\r\n\t\tvar adapter = me._adapter;\r\n\t\tvar options = me.options;\r\n\t\tvar unit = options.time.unit || 'day';\r\n\t\tvar min = MAX_INTEGER;\r\n\t\tvar max = MIN_INTEGER;\r\n\t\tvar timestamps = [];\r\n\t\tvar datasets = [];\r\n\t\tvar labels = [];\r\n\t\tvar i, j, ilen, jlen, data, timestamp, labelsAdded;\r\n\t\tvar dataLabels = me._getLabels();\r\n\r\n\t\tfor (i = 0, ilen = dataLabels.length; i < ilen; ++i) {\r\n\t\t\tlabels.push(parse(me, dataLabels[i]));\r\n\t\t}\r\n\r\n\t\tfor (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\r\n\t\t\tif (chart.isDatasetVisible(i)) {\r\n\t\t\t\tdata = chart.data.datasets[i].data;\r\n\r\n\t\t\t\t// Let's consider that all data have the same format.\r\n\t\t\t\tif (helpers$1.isObject(data[0])) {\r\n\t\t\t\t\tdatasets[i] = [];\r\n\r\n\t\t\t\t\tfor (j = 0, jlen = data.length; j < jlen; ++j) {\r\n\t\t\t\t\t\ttimestamp = parse(me, data[j]);\r\n\t\t\t\t\t\ttimestamps.push(timestamp);\r\n\t\t\t\t\t\tdatasets[i][j] = timestamp;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdatasets[i] = labels.slice(0);\r\n\t\t\t\t\tif (!labelsAdded) {\r\n\t\t\t\t\t\ttimestamps = timestamps.concat(labels);\r\n\t\t\t\t\t\tlabelsAdded = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tdatasets[i] = [];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (labels.length) {\r\n\t\t\tmin = Math.min(min, labels[0]);\r\n\t\t\tmax = Math.max(max, labels[labels.length - 1]);\r\n\t\t}\r\n\r\n\t\tif (timestamps.length) {\r\n\t\t\ttimestamps = ilen > 1 ? arrayUnique(timestamps).sort(sorter) : timestamps.sort(sorter);\r\n\t\t\tmin = Math.min(min, timestamps[0]);\r\n\t\t\tmax = Math.max(max, timestamps[timestamps.length - 1]);\r\n\t\t}\r\n\r\n\t\tmin = parse(me, getMin(options)) || min;\r\n\t\tmax = parse(me, getMax(options)) || max;\r\n\r\n\t\t// In case there is no valid min/max, set limits based on unit time option\r\n\t\tmin = min === MAX_INTEGER ? +adapter.startOf(Date.now(), unit) : min;\r\n\t\tmax = max === MIN_INTEGER ? +adapter.endOf(Date.now(), unit) + 1 : max;\r\n\r\n\t\t// Make sure that max is strictly higher than min (required by the lookup table)\r\n\t\tme.min = Math.min(min, max);\r\n\t\tme.max = Math.max(min + 1, max);\r\n\r\n\t\t// PRIVATE\r\n\t\tme._table = [];\r\n\t\tme._timestamps = {\r\n\t\t\tdata: timestamps,\r\n\t\t\tdatasets: datasets,\r\n\t\t\tlabels: labels\r\n\t\t};\r\n\t},\r\n\r\n\tbuildTicks: function() {\r\n\t\tvar me = this;\r\n\t\tvar min = me.min;\r\n\t\tvar max = me.max;\r\n\t\tvar options = me.options;\r\n\t\tvar tickOpts = options.ticks;\r\n\t\tvar timeOpts = options.time;\r\n\t\tvar timestamps = me._timestamps;\r\n\t\tvar ticks = [];\r\n\t\tvar capacity = me.getLabelCapacity(min);\r\n\t\tvar source = tickOpts.source;\r\n\t\tvar distribution = options.distribution;\r\n\t\tvar i, ilen, timestamp;\r\n\r\n\t\tif (source === 'data' || (source === 'auto' && distribution === 'series')) {\r\n\t\t\ttimestamps = timestamps.data;\r\n\t\t} else if (source === 'labels') {\r\n\t\t\ttimestamps = timestamps.labels;\r\n\t\t} else {\r\n\t\t\ttimestamps = generate(me, min, max, capacity);\r\n\t\t}\r\n\r\n\t\tif (options.bounds === 'ticks' && timestamps.length) {\r\n\t\t\tmin = timestamps[0];\r\n\t\t\tmax = timestamps[timestamps.length - 1];\r\n\t\t}\r\n\r\n\t\t// Enforce limits with user min/max options\r\n\t\tmin = parse(me, getMin(options)) || min;\r\n\t\tmax = parse(me, getMax(options)) || max;\r\n\r\n\t\t// Remove ticks outside the min/max range\r\n\t\tfor (i = 0, ilen = timestamps.length; i < ilen; ++i) {\r\n\t\t\ttimestamp = timestamps[i];\r\n\t\t\tif (timestamp >= min && timestamp <= max) {\r\n\t\t\t\tticks.push(timestamp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tme.min = min;\r\n\t\tme.max = max;\r\n\r\n\t\t// PRIVATE\r\n\t\t// determineUnitForFormatting relies on the number of ticks so we don't use it when\r\n\t\t// autoSkip is enabled because we don't yet know what the final number of ticks will be\r\n\t\tme._unit = timeOpts.unit || (tickOpts.autoSkip\r\n\t\t\t? determineUnitForAutoTicks(timeOpts.minUnit, me.min, me.max, capacity)\r\n\t\t\t: determineUnitForFormatting(me, ticks.length, timeOpts.minUnit, me.min, me.max));\r\n\t\tme._majorUnit = !tickOpts.major.enabled || me._unit === 'year' ? undefined\r\n\t\t\t: determineMajorUnit(me._unit);\r\n\t\tme._table = buildLookupTable(me._timestamps.data, min, max, distribution);\r\n\t\tme._offsets = computeOffsets(me._table, ticks, min, max, options);\r\n\r\n\t\tif (tickOpts.reverse) {\r\n\t\t\tticks.reverse();\r\n\t\t}\r\n\r\n\t\treturn ticksFromTimestamps(me, ticks, me._majorUnit);\r\n\t},\r\n\r\n\tgetLabelForIndex: function(index, datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tvar adapter = me._adapter;\r\n\t\tvar data = me.chart.data;\r\n\t\tvar timeOpts = me.options.time;\r\n\t\tvar label = data.labels && index < data.labels.length ? data.labels[index] : '';\r\n\t\tvar value = data.datasets[datasetIndex].data[index];\r\n\r\n\t\tif (helpers$1.isObject(value)) {\r\n\t\t\tlabel = me.getRightValue(value);\r\n\t\t}\r\n\t\tif (timeOpts.tooltipFormat) {\r\n\t\t\treturn adapter.format(toTimestamp(me, label), timeOpts.tooltipFormat);\r\n\t\t}\r\n\t\tif (typeof label === 'string') {\r\n\t\t\treturn label;\r\n\t\t}\r\n\t\treturn adapter.format(toTimestamp(me, label), timeOpts.displayFormats.datetime);\r\n\t},\r\n\r\n\t/**\r\n\t * Function to format an individual tick mark\r\n\t * @private\r\n\t */\r\n\ttickFormatFunction: function(time, index, ticks, format) {\r\n\t\tvar me = this;\r\n\t\tvar adapter = me._adapter;\r\n\t\tvar options = me.options;\r\n\t\tvar formats = options.time.displayFormats;\r\n\t\tvar minorFormat = formats[me._unit];\r\n\t\tvar majorUnit = me._majorUnit;\r\n\t\tvar majorFormat = formats[majorUnit];\r\n\t\tvar tick = ticks[index];\r\n\t\tvar tickOpts = options.ticks;\r\n\t\tvar major = majorUnit && majorFormat && tick && tick.major;\r\n\t\tvar label = adapter.format(time, format ? format : major ? majorFormat : minorFormat);\r\n\t\tvar nestedTickOpts = major ? tickOpts.major : tickOpts.minor;\r\n\t\tvar formatter = resolve$5([\r\n\t\t\tnestedTickOpts.callback,\r\n\t\t\tnestedTickOpts.userCallback,\r\n\t\t\ttickOpts.callback,\r\n\t\t\ttickOpts.userCallback\r\n\t\t]);\r\n\r\n\t\treturn formatter ? formatter(label, index, ticks) : label;\r\n\t},\r\n\r\n\tconvertTicksToLabels: function(ticks) {\r\n\t\tvar labels = [];\r\n\t\tvar i, ilen;\r\n\r\n\t\tfor (i = 0, ilen = ticks.length; i < ilen; ++i) {\r\n\t\t\tlabels.push(this.tickFormatFunction(ticks[i].value, i, ticks));\r\n\t\t}\r\n\r\n\t\treturn labels;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tgetPixelForOffset: function(time) {\r\n\t\tvar me = this;\r\n\t\tvar offsets = me._offsets;\r\n\t\tvar pos = interpolate$1(me._table, 'time', time, 'pos');\r\n\t\treturn me.getPixelForDecimal((offsets.start + pos) * offsets.factor);\r\n\t},\r\n\r\n\tgetPixelForValue: function(value, index, datasetIndex) {\r\n\t\tvar me = this;\r\n\t\tvar time = null;\r\n\r\n\t\tif (index !== undefined && datasetIndex !== undefined) {\r\n\t\t\ttime = me._timestamps.datasets[datasetIndex][index];\r\n\t\t}\r\n\r\n\t\tif (time === null) {\r\n\t\t\ttime = parse(me, value);\r\n\t\t}\r\n\r\n\t\tif (time !== null) {\r\n\t\t\treturn me.getPixelForOffset(time);\r\n\t\t}\r\n\t},\r\n\r\n\tgetPixelForTick: function(index) {\r\n\t\tvar ticks = this.getTicks();\r\n\t\treturn index >= 0 && index < ticks.length ?\r\n\t\t\tthis.getPixelForOffset(ticks[index].value) :\r\n\t\t\tnull;\r\n\t},\r\n\r\n\tgetValueForPixel: function(pixel) {\r\n\t\tvar me = this;\r\n\t\tvar offsets = me._offsets;\r\n\t\tvar pos = me.getDecimalForPixel(pixel) / offsets.factor - offsets.end;\r\n\t\tvar time = interpolate$1(me._table, 'pos', pos, 'time');\r\n\r\n\t\t// DEPRECATION, we should return time directly\r\n\t\treturn me._adapter._create(time);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getLabelSize: function(label) {\r\n\t\tvar me = this;\r\n\t\tvar ticksOpts = me.options.ticks;\r\n\t\tvar tickLabelWidth = me.ctx.measureText(label).width;\r\n\t\tvar angle = helpers$1.toRadians(me.isHorizontal() ? ticksOpts.maxRotation : ticksOpts.minRotation);\r\n\t\tvar cosRotation = Math.cos(angle);\r\n\t\tvar sinRotation = Math.sin(angle);\r\n\t\tvar tickFontSize = valueOrDefault$d(ticksOpts.fontSize, core_defaults.global.defaultFontSize);\r\n\r\n\t\treturn {\r\n\t\t\tw: (tickLabelWidth * cosRotation) + (tickFontSize * sinRotation),\r\n\t\t\th: (tickLabelWidth * sinRotation) + (tickFontSize * cosRotation)\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * Crude approximation of what the label width might be\r\n\t * @private\r\n\t */\r\n\tgetLabelWidth: function(label) {\r\n\t\treturn this._getLabelSize(label).w;\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tgetLabelCapacity: function(exampleTime) {\r\n\t\tvar me = this;\r\n\t\tvar timeOpts = me.options.time;\r\n\t\tvar displayFormats = timeOpts.displayFormats;\r\n\r\n\t\t// pick the longest format (milliseconds) for guestimation\r\n\t\tvar format = displayFormats[timeOpts.unit] || displayFormats.millisecond;\r\n\t\tvar exampleLabel = me.tickFormatFunction(exampleTime, 0, ticksFromTimestamps(me, [exampleTime], me._majorUnit), format);\r\n\t\tvar size = me._getLabelSize(exampleLabel);\r\n\t\tvar capacity = Math.floor(me.isHorizontal() ? me.width / size.w : me.height / size.h);\r\n\r\n\t\tif (me.options.offset) {\r\n\t\t\tcapacity--;\r\n\t\t}\r\n\r\n\t\treturn capacity > 0 ? capacity : 1;\r\n\t}\r\n});\r\n\r\n// INTERNAL: static default options, registered in src/index.js\r\nvar _defaults$4 = defaultConfig$4;\nscale_time._defaults = _defaults$4;\n\nvar scales = {\r\n\tcategory: scale_category,\r\n\tlinear: scale_linear,\r\n\tlogarithmic: scale_logarithmic,\r\n\tradialLinear: scale_radialLinear,\r\n\ttime: scale_time\r\n};\n\nvar FORMATS = {\r\n\tdatetime: 'MMM D, YYYY, h:mm:ss a',\r\n\tmillisecond: 'h:mm:ss.SSS a',\r\n\tsecond: 'h:mm:ss a',\r\n\tminute: 'h:mm a',\r\n\thour: 'hA',\r\n\tday: 'MMM D',\r\n\tweek: 'll',\r\n\tmonth: 'MMM YYYY',\r\n\tquarter: '[Q]Q - YYYY',\r\n\tyear: 'YYYY'\r\n};\r\n\r\ncore_adapters._date.override(typeof moment === 'function' ? {\r\n\t_id: 'moment', // DEBUG ONLY\r\n\r\n\tformats: function() {\r\n\t\treturn FORMATS;\r\n\t},\r\n\r\n\tparse: function(value, format) {\r\n\t\tif (typeof value === 'string' && typeof format === 'string') {\r\n\t\t\tvalue = moment(value, format);\r\n\t\t} else if (!(value instanceof moment)) {\r\n\t\t\tvalue = moment(value);\r\n\t\t}\r\n\t\treturn value.isValid() ? value.valueOf() : null;\r\n\t},\r\n\r\n\tformat: function(time, format) {\r\n\t\treturn moment(time).format(format);\r\n\t},\r\n\r\n\tadd: function(time, amount, unit) {\r\n\t\treturn moment(time).add(amount, unit).valueOf();\r\n\t},\r\n\r\n\tdiff: function(max, min, unit) {\r\n\t\treturn moment(max).diff(moment(min), unit);\r\n\t},\r\n\r\n\tstartOf: function(time, unit, weekday) {\r\n\t\ttime = moment(time);\r\n\t\tif (unit === 'isoWeek') {\r\n\t\t\treturn time.isoWeekday(weekday).valueOf();\r\n\t\t}\r\n\t\treturn time.startOf(unit).valueOf();\r\n\t},\r\n\r\n\tendOf: function(time, unit) {\r\n\t\treturn moment(time).endOf(unit).valueOf();\r\n\t},\r\n\r\n\t// DEPRECATIONS\r\n\r\n\t/**\r\n\t * Provided for backward compatibility with scale.getValueForPixel().\r\n\t * @deprecated since version 2.8.0\r\n\t * @todo remove at version 3\r\n\t * @private\r\n\t */\r\n\t_create: function(time) {\r\n\t\treturn moment(time);\r\n\t},\r\n} : {});\n\ncore_defaults._set('global', {\r\n\tplugins: {\r\n\t\tfiller: {\r\n\t\t\tpropagate: true\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar mappers = {\r\n\tdataset: function(source) {\r\n\t\tvar index = source.fill;\r\n\t\tvar chart = source.chart;\r\n\t\tvar meta = chart.getDatasetMeta(index);\r\n\t\tvar visible = meta && chart.isDatasetVisible(index);\r\n\t\tvar points = (visible && meta.dataset._children) || [];\r\n\t\tvar length = points.length || 0;\r\n\r\n\t\treturn !length ? null : function(point, i) {\r\n\t\t\treturn (i < length && points[i]._view) || null;\r\n\t\t};\r\n\t},\r\n\r\n\tboundary: function(source) {\r\n\t\tvar boundary = source.boundary;\r\n\t\tvar x = boundary ? boundary.x : null;\r\n\t\tvar y = boundary ? boundary.y : null;\r\n\r\n\t\tif (helpers$1.isArray(boundary)) {\r\n\t\t\treturn function(point, i) {\r\n\t\t\t\treturn boundary[i];\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\treturn function(point) {\r\n\t\t\treturn {\r\n\t\t\t\tx: x === null ? point.x : x,\r\n\t\t\t\ty: y === null ? point.y : y,\r\n\t\t\t};\r\n\t\t};\r\n\t}\r\n};\r\n\r\n// @todo if (fill[0] === '#')\r\nfunction decodeFill(el, index, count) {\r\n\tvar model = el._model || {};\r\n\tvar fill = model.fill;\r\n\tvar target;\r\n\r\n\tif (fill === undefined) {\r\n\t\tfill = !!model.backgroundColor;\r\n\t}\r\n\r\n\tif (fill === false || fill === null) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\tif (fill === true) {\r\n\t\treturn 'origin';\r\n\t}\r\n\r\n\ttarget = parseFloat(fill, 10);\r\n\tif (isFinite(target) && Math.floor(target) === target) {\r\n\t\tif (fill[0] === '-' || fill[0] === '+') {\r\n\t\t\ttarget = index + target;\r\n\t\t}\r\n\r\n\t\tif (target === index || target < 0 || target >= count) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn target;\r\n\t}\r\n\r\n\tswitch (fill) {\r\n\t// compatibility\r\n\tcase 'bottom':\r\n\t\treturn 'start';\r\n\tcase 'top':\r\n\t\treturn 'end';\r\n\tcase 'zero':\r\n\t\treturn 'origin';\r\n\t// supported boundaries\r\n\tcase 'origin':\r\n\tcase 'start':\r\n\tcase 'end':\r\n\t\treturn fill;\r\n\t// invalid fill values\r\n\tdefault:\r\n\t\treturn false;\r\n\t}\r\n}\r\n\r\nfunction computeLinearBoundary(source) {\r\n\tvar model = source.el._model || {};\r\n\tvar scale = source.el._scale || {};\r\n\tvar fill = source.fill;\r\n\tvar target = null;\r\n\tvar horizontal;\r\n\r\n\tif (isFinite(fill)) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\t// Backward compatibility: until v3, we still need to support boundary values set on\r\n\t// the model (scaleTop, scaleBottom and scaleZero) because some external plugins and\r\n\t// controllers might still use it (e.g. the Smith chart).\r\n\r\n\tif (fill === 'start') {\r\n\t\ttarget = model.scaleBottom === undefined ? scale.bottom : model.scaleBottom;\r\n\t} else if (fill === 'end') {\r\n\t\ttarget = model.scaleTop === undefined ? scale.top : model.scaleTop;\r\n\t} else if (model.scaleZero !== undefined) {\r\n\t\ttarget = model.scaleZero;\r\n\t} else if (scale.getBasePixel) {\r\n\t\ttarget = scale.getBasePixel();\r\n\t}\r\n\r\n\tif (target !== undefined && target !== null) {\r\n\t\tif (target.x !== undefined && target.y !== undefined) {\r\n\t\t\treturn target;\r\n\t\t}\r\n\r\n\t\tif (helpers$1.isFinite(target)) {\r\n\t\t\thorizontal = scale.isHorizontal();\r\n\t\t\treturn {\r\n\t\t\t\tx: horizontal ? target : null,\r\n\t\t\t\ty: horizontal ? null : target\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\r\n\treturn null;\r\n}\r\n\r\nfunction computeCircularBoundary(source) {\r\n\tvar scale = source.el._scale;\r\n\tvar options = scale.options;\r\n\tvar length = scale.chart.data.labels.length;\r\n\tvar fill = source.fill;\r\n\tvar target = [];\r\n\tvar start, end, center, i, point;\r\n\r\n\tif (!length) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\tstart = options.ticks.reverse ? scale.max : scale.min;\r\n\tend = options.ticks.reverse ? scale.min : scale.max;\r\n\tcenter = scale.getPointPositionForValue(0, start);\r\n\tfor (i = 0; i < length; ++i) {\r\n\t\tpoint = fill === 'start' || fill === 'end'\r\n\t\t\t? scale.getPointPositionForValue(i, fill === 'start' ? start : end)\r\n\t\t\t: scale.getBasePosition(i);\r\n\t\tif (options.gridLines.circular) {\r\n\t\t\tpoint.cx = center.x;\r\n\t\t\tpoint.cy = center.y;\r\n\t\t\tpoint.angle = scale.getIndexAngle(i) - Math.PI / 2;\r\n\t\t}\r\n\t\ttarget.push(point);\r\n\t}\r\n\treturn target;\r\n}\r\n\r\nfunction computeBoundary(source) {\r\n\tvar scale = source.el._scale || {};\r\n\r\n\tif (scale.getPointPositionForValue) {\r\n\t\treturn computeCircularBoundary(source);\r\n\t}\r\n\treturn computeLinearBoundary(source);\r\n}\r\n\r\nfunction resolveTarget(sources, index, propagate) {\r\n\tvar source = sources[index];\r\n\tvar fill = source.fill;\r\n\tvar visited = [index];\r\n\tvar target;\r\n\r\n\tif (!propagate) {\r\n\t\treturn fill;\r\n\t}\r\n\r\n\twhile (fill !== false && visited.indexOf(fill) === -1) {\r\n\t\tif (!isFinite(fill)) {\r\n\t\t\treturn fill;\r\n\t\t}\r\n\r\n\t\ttarget = sources[fill];\r\n\t\tif (!target) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (target.visible) {\r\n\t\t\treturn fill;\r\n\t\t}\r\n\r\n\t\tvisited.push(fill);\r\n\t\tfill = target.fill;\r\n\t}\r\n\r\n\treturn false;\r\n}\r\n\r\nfunction createMapper(source) {\r\n\tvar fill = source.fill;\r\n\tvar type = 'dataset';\r\n\r\n\tif (fill === false) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\tif (!isFinite(fill)) {\r\n\t\ttype = 'boundary';\r\n\t}\r\n\r\n\treturn mappers[type](source);\r\n}\r\n\r\nfunction isDrawable(point) {\r\n\treturn point && !point.skip;\r\n}\r\n\r\nfunction drawArea(ctx, curve0, curve1, len0, len1) {\r\n\tvar i, cx, cy, r;\r\n\r\n\tif (!len0 || !len1) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t// building first area curve (normal)\r\n\tctx.moveTo(curve0[0].x, curve0[0].y);\r\n\tfor (i = 1; i < len0; ++i) {\r\n\t\thelpers$1.canvas.lineTo(ctx, curve0[i - 1], curve0[i]);\r\n\t}\r\n\r\n\tif (curve1[0].angle !== undefined) {\r\n\t\tcx = curve1[0].cx;\r\n\t\tcy = curve1[0].cy;\r\n\t\tr = Math.sqrt(Math.pow(curve1[0].x - cx, 2) + Math.pow(curve1[0].y - cy, 2));\r\n\t\tfor (i = len1 - 1; i > 0; --i) {\r\n\t\t\tctx.arc(cx, cy, r, curve1[i].angle, curve1[i - 1].angle, true);\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n\r\n\t// joining the two area curves\r\n\tctx.lineTo(curve1[len1 - 1].x, curve1[len1 - 1].y);\r\n\r\n\t// building opposite area curve (reverse)\r\n\tfor (i = len1 - 1; i > 0; --i) {\r\n\t\thelpers$1.canvas.lineTo(ctx, curve1[i], curve1[i - 1], true);\r\n\t}\r\n}\r\n\r\nfunction doFill(ctx, points, mapper, view, color, loop) {\r\n\tvar count = points.length;\r\n\tvar span = view.spanGaps;\r\n\tvar curve0 = [];\r\n\tvar curve1 = [];\r\n\tvar len0 = 0;\r\n\tvar len1 = 0;\r\n\tvar i, ilen, index, p0, p1, d0, d1, loopOffset;\r\n\r\n\tctx.beginPath();\r\n\r\n\tfor (i = 0, ilen = count; i < ilen; ++i) {\r\n\t\tindex = i % count;\r\n\t\tp0 = points[index]._view;\r\n\t\tp1 = mapper(p0, index, view);\r\n\t\td0 = isDrawable(p0);\r\n\t\td1 = isDrawable(p1);\r\n\r\n\t\tif (loop && loopOffset === undefined && d0) {\r\n\t\t\tloopOffset = i + 1;\r\n\t\t\tilen = count + loopOffset;\r\n\t\t}\r\n\r\n\t\tif (d0 && d1) {\r\n\t\t\tlen0 = curve0.push(p0);\r\n\t\t\tlen1 = curve1.push(p1);\r\n\t\t} else if (len0 && len1) {\r\n\t\t\tif (!span) {\r\n\t\t\t\tdrawArea(ctx, curve0, curve1, len0, len1);\r\n\t\t\t\tlen0 = len1 = 0;\r\n\t\t\t\tcurve0 = [];\r\n\t\t\t\tcurve1 = [];\r\n\t\t\t} else {\r\n\t\t\t\tif (d0) {\r\n\t\t\t\t\tcurve0.push(p0);\r\n\t\t\t\t}\r\n\t\t\t\tif (d1) {\r\n\t\t\t\t\tcurve1.push(p1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tdrawArea(ctx, curve0, curve1, len0, len1);\r\n\r\n\tctx.closePath();\r\n\tctx.fillStyle = color;\r\n\tctx.fill();\r\n}\r\n\r\nvar plugin_filler = {\r\n\tid: 'filler',\r\n\r\n\tafterDatasetsUpdate: function(chart, options) {\r\n\t\tvar count = (chart.data.datasets || []).length;\r\n\t\tvar propagate = options.propagate;\r\n\t\tvar sources = [];\r\n\t\tvar meta, i, el, source;\r\n\r\n\t\tfor (i = 0; i < count; ++i) {\r\n\t\t\tmeta = chart.getDatasetMeta(i);\r\n\t\t\tel = meta.dataset;\r\n\t\t\tsource = null;\r\n\r\n\t\t\tif (el && el._model && el instanceof elements.Line) {\r\n\t\t\t\tsource = {\r\n\t\t\t\t\tvisible: chart.isDatasetVisible(i),\r\n\t\t\t\t\tfill: decodeFill(el, i, count),\r\n\t\t\t\t\tchart: chart,\r\n\t\t\t\t\tel: el\r\n\t\t\t\t};\r\n\t\t\t}\r\n\r\n\t\t\tmeta.$filler = source;\r\n\t\t\tsources.push(source);\r\n\t\t}\r\n\r\n\t\tfor (i = 0; i < count; ++i) {\r\n\t\t\tsource = sources[i];\r\n\t\t\tif (!source) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tsource.fill = resolveTarget(sources, i, propagate);\r\n\t\t\tsource.boundary = computeBoundary(source);\r\n\t\t\tsource.mapper = createMapper(source);\r\n\t\t}\r\n\t},\r\n\r\n\tbeforeDatasetsDraw: function(chart) {\r\n\t\tvar metasets = chart._getSortedVisibleDatasetMetas();\r\n\t\tvar ctx = chart.ctx;\r\n\t\tvar meta, i, el, view, points, mapper, color;\r\n\r\n\t\tfor (i = metasets.length - 1; i >= 0; --i) {\r\n\t\t\tmeta = metasets[i].$filler;\r\n\r\n\t\t\tif (!meta || !meta.visible) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tel = meta.el;\r\n\t\t\tview = el._view;\r\n\t\t\tpoints = el._children || [];\r\n\t\t\tmapper = meta.mapper;\r\n\t\t\tcolor = view.backgroundColor || core_defaults.global.defaultColor;\r\n\r\n\t\t\tif (mapper && color && points.length) {\r\n\t\t\t\thelpers$1.canvas.clipArea(ctx, chart.chartArea);\r\n\t\t\t\tdoFill(ctx, points, mapper, view, color, el._loop);\r\n\t\t\t\thelpers$1.canvas.unclipArea(ctx);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\n\nvar getRtlHelper$1 = helpers$1.rtl.getRtlAdapter;\r\nvar noop$1 = helpers$1.noop;\r\nvar valueOrDefault$e = helpers$1.valueOrDefault;\r\n\r\ncore_defaults._set('global', {\r\n\tlegend: {\r\n\t\tdisplay: true,\r\n\t\tposition: 'top',\r\n\t\talign: 'center',\r\n\t\tfullWidth: true,\r\n\t\treverse: false,\r\n\t\tweight: 1000,\r\n\r\n\t\t// a callback that will handle\r\n\t\tonClick: function(e, legendItem) {\r\n\t\t\tvar index = legendItem.datasetIndex;\r\n\t\t\tvar ci = this.chart;\r\n\t\t\tvar meta = ci.getDatasetMeta(index);\r\n\r\n\t\t\t// See controller.isDatasetVisible comment\r\n\t\t\tmeta.hidden = meta.hidden === null ? !ci.data.datasets[index].hidden : null;\r\n\r\n\t\t\t// We hid a dataset ... rerender the chart\r\n\t\t\tci.update();\r\n\t\t},\r\n\r\n\t\tonHover: null,\r\n\t\tonLeave: null,\r\n\r\n\t\tlabels: {\r\n\t\t\tboxWidth: 40,\r\n\t\t\tpadding: 10,\r\n\t\t\t// Generates labels shown in the legend\r\n\t\t\t// Valid properties to return:\r\n\t\t\t// text : text to display\r\n\t\t\t// fillStyle : fill of coloured box\r\n\t\t\t// strokeStyle: stroke of coloured box\r\n\t\t\t// hidden : if this legend item refers to a hidden item\r\n\t\t\t// lineCap : cap style for line\r\n\t\t\t// lineDash\r\n\t\t\t// lineDashOffset :\r\n\t\t\t// lineJoin :\r\n\t\t\t// lineWidth :\r\n\t\t\tgenerateLabels: function(chart) {\r\n\t\t\t\tvar datasets = chart.data.datasets;\r\n\t\t\t\tvar options = chart.options.legend || {};\r\n\t\t\t\tvar usePointStyle = options.labels && options.labels.usePointStyle;\r\n\r\n\t\t\t\treturn chart._getSortedDatasetMetas().map(function(meta) {\r\n\t\t\t\t\tvar style = meta.controller.getStyle(usePointStyle ? 0 : undefined);\r\n\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\ttext: datasets[meta.index].label,\r\n\t\t\t\t\t\tfillStyle: style.backgroundColor,\r\n\t\t\t\t\t\thidden: !chart.isDatasetVisible(meta.index),\r\n\t\t\t\t\t\tlineCap: style.borderCapStyle,\r\n\t\t\t\t\t\tlineDash: style.borderDash,\r\n\t\t\t\t\t\tlineDashOffset: style.borderDashOffset,\r\n\t\t\t\t\t\tlineJoin: style.borderJoinStyle,\r\n\t\t\t\t\t\tlineWidth: style.borderWidth,\r\n\t\t\t\t\t\tstrokeStyle: style.borderColor,\r\n\t\t\t\t\t\tpointStyle: style.pointStyle,\r\n\t\t\t\t\t\trotation: style.rotation,\r\n\r\n\t\t\t\t\t\t// Below is extra data used for toggling the datasets\r\n\t\t\t\t\t\tdatasetIndex: meta.index\r\n\t\t\t\t\t};\r\n\t\t\t\t}, this);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tlegendCallback: function(chart) {\r\n\t\tvar list = document.createElement('ul');\r\n\t\tvar datasets = chart.data.datasets;\r\n\t\tvar i, ilen, listItem, listItemSpan;\r\n\r\n\t\tlist.setAttribute('class', chart.id + '-legend');\r\n\r\n\t\tfor (i = 0, ilen = datasets.length; i < ilen; i++) {\r\n\t\t\tlistItem = list.appendChild(document.createElement('li'));\r\n\t\t\tlistItemSpan = listItem.appendChild(document.createElement('span'));\r\n\t\t\tlistItemSpan.style.backgroundColor = datasets[i].backgroundColor;\r\n\t\t\tif (datasets[i].label) {\r\n\t\t\t\tlistItem.appendChild(document.createTextNode(datasets[i].label));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn list.outerHTML;\r\n\t}\r\n});\r\n\r\n/**\r\n * Helper function to get the box width based on the usePointStyle option\r\n * @param {object} labelopts - the label options on the legend\r\n * @param {number} fontSize - the label font size\r\n * @return {number} width of the color box area\r\n */\r\nfunction getBoxWidth(labelOpts, fontSize) {\r\n\treturn labelOpts.usePointStyle && labelOpts.boxWidth > fontSize ?\r\n\t\tfontSize :\r\n\t\tlabelOpts.boxWidth;\r\n}\r\n\r\n/**\r\n * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!\r\n */\r\nvar Legend = core_element.extend({\r\n\r\n\tinitialize: function(config) {\r\n\t\tvar me = this;\r\n\t\thelpers$1.extend(me, config);\r\n\r\n\t\t// Contains hit boxes for each dataset (in dataset order)\r\n\t\tme.legendHitBoxes = [];\r\n\r\n\t\t/**\r\n \t\t * @private\r\n \t\t */\r\n\t\tme._hoveredItem = null;\r\n\r\n\t\t// Are we in doughnut mode which has a different data type\r\n\t\tme.doughnutMode = false;\r\n\t},\r\n\r\n\t// These methods are ordered by lifecycle. Utilities then follow.\r\n\t// Any function defined here is inherited by all legend types.\r\n\t// Any function can be extended by the legend type\r\n\r\n\tbeforeUpdate: noop$1,\r\n\tupdate: function(maxWidth, maxHeight, margins) {\r\n\t\tvar me = this;\r\n\r\n\t\t// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\r\n\t\tme.beforeUpdate();\r\n\r\n\t\t// Absorb the master measurements\r\n\t\tme.maxWidth = maxWidth;\r\n\t\tme.maxHeight = maxHeight;\r\n\t\tme.margins = margins;\r\n\r\n\t\t// Dimensions\r\n\t\tme.beforeSetDimensions();\r\n\t\tme.setDimensions();\r\n\t\tme.afterSetDimensions();\r\n\t\t// Labels\r\n\t\tme.beforeBuildLabels();\r\n\t\tme.buildLabels();\r\n\t\tme.afterBuildLabels();\r\n\r\n\t\t// Fit\r\n\t\tme.beforeFit();\r\n\t\tme.fit();\r\n\t\tme.afterFit();\r\n\t\t//\r\n\t\tme.afterUpdate();\r\n\r\n\t\treturn me.minSize;\r\n\t},\r\n\tafterUpdate: noop$1,\r\n\r\n\t//\r\n\r\n\tbeforeSetDimensions: noop$1,\r\n\tsetDimensions: function() {\r\n\t\tvar me = this;\r\n\t\t// Set the unconstrained dimension before label rotation\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\t// Reset position before calculating rotation\r\n\t\t\tme.width = me.maxWidth;\r\n\t\t\tme.left = 0;\r\n\t\t\tme.right = me.width;\r\n\t\t} else {\r\n\t\t\tme.height = me.maxHeight;\r\n\r\n\t\t\t// Reset position before calculating rotation\r\n\t\t\tme.top = 0;\r\n\t\t\tme.bottom = me.height;\r\n\t\t}\r\n\r\n\t\t// Reset padding\r\n\t\tme.paddingLeft = 0;\r\n\t\tme.paddingTop = 0;\r\n\t\tme.paddingRight = 0;\r\n\t\tme.paddingBottom = 0;\r\n\r\n\t\t// Reset minSize\r\n\t\tme.minSize = {\r\n\t\t\twidth: 0,\r\n\t\t\theight: 0\r\n\t\t};\r\n\t},\r\n\tafterSetDimensions: noop$1,\r\n\r\n\t//\r\n\r\n\tbeforeBuildLabels: noop$1,\r\n\tbuildLabels: function() {\r\n\t\tvar me = this;\r\n\t\tvar labelOpts = me.options.labels || {};\r\n\t\tvar legendItems = helpers$1.callback(labelOpts.generateLabels, [me.chart], me) || [];\r\n\r\n\t\tif (labelOpts.filter) {\r\n\t\t\tlegendItems = legendItems.filter(function(item) {\r\n\t\t\t\treturn labelOpts.filter(item, me.chart.data);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (me.options.reverse) {\r\n\t\t\tlegendItems.reverse();\r\n\t\t}\r\n\r\n\t\tme.legendItems = legendItems;\r\n\t},\r\n\tafterBuildLabels: noop$1,\r\n\r\n\t//\r\n\r\n\tbeforeFit: noop$1,\r\n\tfit: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar labelOpts = opts.labels;\r\n\t\tvar display = opts.display;\r\n\r\n\t\tvar ctx = me.ctx;\r\n\r\n\t\tvar labelFont = helpers$1.options._parseFont(labelOpts);\r\n\t\tvar fontSize = labelFont.size;\r\n\r\n\t\t// Reset hit boxes\r\n\t\tvar hitboxes = me.legendHitBoxes = [];\r\n\r\n\t\tvar minSize = me.minSize;\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\r\n\t\tif (isHorizontal) {\r\n\t\t\tminSize.width = me.maxWidth; // fill all the width\r\n\t\t\tminSize.height = display ? 10 : 0;\r\n\t\t} else {\r\n\t\t\tminSize.width = display ? 10 : 0;\r\n\t\t\tminSize.height = me.maxHeight; // fill all the height\r\n\t\t}\r\n\r\n\t\t// Increase sizes here\r\n\t\tif (!display) {\r\n\t\t\tme.width = minSize.width = me.height = minSize.height = 0;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tctx.font = labelFont.string;\r\n\r\n\t\tif (isHorizontal) {\r\n\t\t\t// Labels\r\n\r\n\t\t\t// Width of each line of legend boxes. Labels wrap onto multiple lines when there are too many to fit on one\r\n\t\t\tvar lineWidths = me.lineWidths = [0];\r\n\t\t\tvar totalHeight = 0;\r\n\r\n\t\t\tctx.textAlign = 'left';\r\n\t\t\tctx.textBaseline = 'middle';\r\n\r\n\t\t\thelpers$1.each(me.legendItems, function(legendItem, i) {\r\n\t\t\t\tvar boxWidth = getBoxWidth(labelOpts, fontSize);\r\n\t\t\t\tvar width = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;\r\n\r\n\t\t\t\tif (i === 0 || lineWidths[lineWidths.length - 1] + width + 2 * labelOpts.padding > minSize.width) {\r\n\t\t\t\t\ttotalHeight += fontSize + labelOpts.padding;\r\n\t\t\t\t\tlineWidths[lineWidths.length - (i > 0 ? 0 : 1)] = 0;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Store the hitbox width and height here. Final position will be updated in `draw`\r\n\t\t\t\thitboxes[i] = {\r\n\t\t\t\t\tleft: 0,\r\n\t\t\t\t\ttop: 0,\r\n\t\t\t\t\twidth: width,\r\n\t\t\t\t\theight: fontSize\r\n\t\t\t\t};\r\n\r\n\t\t\t\tlineWidths[lineWidths.length - 1] += width + labelOpts.padding;\r\n\t\t\t});\r\n\r\n\t\t\tminSize.height += totalHeight;\r\n\r\n\t\t} else {\r\n\t\t\tvar vPadding = labelOpts.padding;\r\n\t\t\tvar columnWidths = me.columnWidths = [];\r\n\t\t\tvar columnHeights = me.columnHeights = [];\r\n\t\t\tvar totalWidth = labelOpts.padding;\r\n\t\t\tvar currentColWidth = 0;\r\n\t\t\tvar currentColHeight = 0;\r\n\r\n\t\t\thelpers$1.each(me.legendItems, function(legendItem, i) {\r\n\t\t\t\tvar boxWidth = getBoxWidth(labelOpts, fontSize);\r\n\t\t\t\tvar itemWidth = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;\r\n\r\n\t\t\t\t// If too tall, go to new column\r\n\t\t\t\tif (i > 0 && currentColHeight + fontSize + 2 * vPadding > minSize.height) {\r\n\t\t\t\t\ttotalWidth += currentColWidth + labelOpts.padding;\r\n\t\t\t\t\tcolumnWidths.push(currentColWidth); // previous column width\r\n\t\t\t\t\tcolumnHeights.push(currentColHeight);\r\n\t\t\t\t\tcurrentColWidth = 0;\r\n\t\t\t\t\tcurrentColHeight = 0;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Get max width\r\n\t\t\t\tcurrentColWidth = Math.max(currentColWidth, itemWidth);\r\n\t\t\t\tcurrentColHeight += fontSize + vPadding;\r\n\r\n\t\t\t\t// Store the hitbox width and height here. Final position will be updated in `draw`\r\n\t\t\t\thitboxes[i] = {\r\n\t\t\t\t\tleft: 0,\r\n\t\t\t\t\ttop: 0,\r\n\t\t\t\t\twidth: itemWidth,\r\n\t\t\t\t\theight: fontSize\r\n\t\t\t\t};\r\n\t\t\t});\r\n\r\n\t\t\ttotalWidth += currentColWidth;\r\n\t\t\tcolumnWidths.push(currentColWidth);\r\n\t\t\tcolumnHeights.push(currentColHeight);\r\n\t\t\tminSize.width += totalWidth;\r\n\t\t}\r\n\r\n\t\tme.width = minSize.width;\r\n\t\tme.height = minSize.height;\r\n\t},\r\n\tafterFit: noop$1,\r\n\r\n\t// Shared Methods\r\n\tisHorizontal: function() {\r\n\t\treturn this.options.position === 'top' || this.options.position === 'bottom';\r\n\t},\r\n\r\n\t// Actually draw the legend on the canvas\r\n\tdraw: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar labelOpts = opts.labels;\r\n\t\tvar globalDefaults = core_defaults.global;\r\n\t\tvar defaultColor = globalDefaults.defaultColor;\r\n\t\tvar lineDefault = globalDefaults.elements.line;\r\n\t\tvar legendHeight = me.height;\r\n\t\tvar columnHeights = me.columnHeights;\r\n\t\tvar legendWidth = me.width;\r\n\t\tvar lineWidths = me.lineWidths;\r\n\r\n\t\tif (!opts.display) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar rtlHelper = getRtlHelper$1(opts.rtl, me.left, me.minSize.width);\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar fontColor = valueOrDefault$e(labelOpts.fontColor, globalDefaults.defaultFontColor);\r\n\t\tvar labelFont = helpers$1.options._parseFont(labelOpts);\r\n\t\tvar fontSize = labelFont.size;\r\n\t\tvar cursor;\r\n\r\n\t\t// Canvas setup\r\n\t\tctx.textAlign = rtlHelper.textAlign('left');\r\n\t\tctx.textBaseline = 'middle';\r\n\t\tctx.lineWidth = 0.5;\r\n\t\tctx.strokeStyle = fontColor; // for strikethrough effect\r\n\t\tctx.fillStyle = fontColor; // render in correct colour\r\n\t\tctx.font = labelFont.string;\r\n\r\n\t\tvar boxWidth = getBoxWidth(labelOpts, fontSize);\r\n\t\tvar hitboxes = me.legendHitBoxes;\r\n\r\n\t\t// current position\r\n\t\tvar drawLegendBox = function(x, y, legendItem) {\r\n\t\t\tif (isNaN(boxWidth) || boxWidth <= 0) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Set the ctx for the box\r\n\t\t\tctx.save();\r\n\r\n\t\t\tvar lineWidth = valueOrDefault$e(legendItem.lineWidth, lineDefault.borderWidth);\r\n\t\t\tctx.fillStyle = valueOrDefault$e(legendItem.fillStyle, defaultColor);\r\n\t\t\tctx.lineCap = valueOrDefault$e(legendItem.lineCap, lineDefault.borderCapStyle);\r\n\t\t\tctx.lineDashOffset = valueOrDefault$e(legendItem.lineDashOffset, lineDefault.borderDashOffset);\r\n\t\t\tctx.lineJoin = valueOrDefault$e(legendItem.lineJoin, lineDefault.borderJoinStyle);\r\n\t\t\tctx.lineWidth = lineWidth;\r\n\t\t\tctx.strokeStyle = valueOrDefault$e(legendItem.strokeStyle, defaultColor);\r\n\r\n\t\t\tif (ctx.setLineDash) {\r\n\t\t\t\t// IE 9 and 10 do not support line dash\r\n\t\t\t\tctx.setLineDash(valueOrDefault$e(legendItem.lineDash, lineDefault.borderDash));\r\n\t\t\t}\r\n\r\n\t\t\tif (labelOpts && labelOpts.usePointStyle) {\r\n\t\t\t\t// Recalculate x and y for drawPoint() because its expecting\r\n\t\t\t\t// x and y to be center of figure (instead of top left)\r\n\t\t\t\tvar radius = boxWidth * Math.SQRT2 / 2;\r\n\t\t\t\tvar centerX = rtlHelper.xPlus(x, boxWidth / 2);\r\n\t\t\t\tvar centerY = y + fontSize / 2;\r\n\r\n\t\t\t\t// Draw pointStyle as legend symbol\r\n\t\t\t\thelpers$1.canvas.drawPoint(ctx, legendItem.pointStyle, radius, centerX, centerY, legendItem.rotation);\r\n\t\t\t} else {\r\n\t\t\t\t// Draw box as legend symbol\r\n\t\t\t\tctx.fillRect(rtlHelper.leftForLtr(x, boxWidth), y, boxWidth, fontSize);\r\n\t\t\t\tif (lineWidth !== 0) {\r\n\t\t\t\t\tctx.strokeRect(rtlHelper.leftForLtr(x, boxWidth), y, boxWidth, fontSize);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tctx.restore();\r\n\t\t};\r\n\r\n\t\tvar fillText = function(x, y, legendItem, textWidth) {\r\n\t\t\tvar halfFontSize = fontSize / 2;\r\n\t\t\tvar xLeft = rtlHelper.xPlus(x, boxWidth + halfFontSize);\r\n\t\t\tvar yMiddle = y + halfFontSize;\r\n\r\n\t\t\tctx.fillText(legendItem.text, xLeft, yMiddle);\r\n\r\n\t\t\tif (legendItem.hidden) {\r\n\t\t\t\t// Strikethrough the text if hidden\r\n\t\t\t\tctx.beginPath();\r\n\t\t\t\tctx.lineWidth = 2;\r\n\t\t\t\tctx.moveTo(xLeft, yMiddle);\r\n\t\t\t\tctx.lineTo(rtlHelper.xPlus(xLeft, textWidth), yMiddle);\r\n\t\t\t\tctx.stroke();\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tvar alignmentOffset = function(dimension, blockSize) {\r\n\t\t\tswitch (opts.align) {\r\n\t\t\tcase 'start':\r\n\t\t\t\treturn labelOpts.padding;\r\n\t\t\tcase 'end':\r\n\t\t\t\treturn dimension - blockSize;\r\n\t\t\tdefault: // center\r\n\t\t\t\treturn (dimension - blockSize + labelOpts.padding) / 2;\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// Horizontal\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\t\tif (isHorizontal) {\r\n\t\t\tcursor = {\r\n\t\t\t\tx: me.left + alignmentOffset(legendWidth, lineWidths[0]),\r\n\t\t\t\ty: me.top + labelOpts.padding,\r\n\t\t\t\tline: 0\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\tcursor = {\r\n\t\t\t\tx: me.left + labelOpts.padding,\r\n\t\t\t\ty: me.top + alignmentOffset(legendHeight, columnHeights[0]),\r\n\t\t\t\tline: 0\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\thelpers$1.rtl.overrideTextDirection(me.ctx, opts.textDirection);\r\n\r\n\t\tvar itemHeight = fontSize + labelOpts.padding;\r\n\t\thelpers$1.each(me.legendItems, function(legendItem, i) {\r\n\t\t\tvar textWidth = ctx.measureText(legendItem.text).width;\r\n\t\t\tvar width = boxWidth + (fontSize / 2) + textWidth;\r\n\t\t\tvar x = cursor.x;\r\n\t\t\tvar y = cursor.y;\r\n\r\n\t\t\trtlHelper.setWidth(me.minSize.width);\r\n\r\n\t\t\t// Use (me.left + me.minSize.width) and (me.top + me.minSize.height)\r\n\t\t\t// instead of me.right and me.bottom because me.width and me.height\r\n\t\t\t// may have been changed since me.minSize was calculated\r\n\t\t\tif (isHorizontal) {\r\n\t\t\t\tif (i > 0 && x + width + labelOpts.padding > me.left + me.minSize.width) {\r\n\t\t\t\t\ty = cursor.y += itemHeight;\r\n\t\t\t\t\tcursor.line++;\r\n\t\t\t\t\tx = cursor.x = me.left + alignmentOffset(legendWidth, lineWidths[cursor.line]);\r\n\t\t\t\t}\r\n\t\t\t} else if (i > 0 && y + itemHeight > me.top + me.minSize.height) {\r\n\t\t\t\tx = cursor.x = x + me.columnWidths[cursor.line] + labelOpts.padding;\r\n\t\t\t\tcursor.line++;\r\n\t\t\t\ty = cursor.y = me.top + alignmentOffset(legendHeight, columnHeights[cursor.line]);\r\n\t\t\t}\r\n\r\n\t\t\tvar realX = rtlHelper.x(x);\r\n\r\n\t\t\tdrawLegendBox(realX, y, legendItem);\r\n\r\n\t\t\thitboxes[i].left = rtlHelper.leftForLtr(realX, hitboxes[i].width);\r\n\t\t\thitboxes[i].top = y;\r\n\r\n\t\t\t// Fill the actual label\r\n\t\t\tfillText(realX, y, legendItem, textWidth);\r\n\r\n\t\t\tif (isHorizontal) {\r\n\t\t\t\tcursor.x += width + labelOpts.padding;\r\n\t\t\t} else {\r\n\t\t\t\tcursor.y += itemHeight;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\thelpers$1.rtl.restoreTextDirection(me.ctx, opts.textDirection);\r\n\t},\r\n\r\n\t/**\r\n\t * @private\r\n\t */\r\n\t_getLegendItemAt: function(x, y) {\r\n\t\tvar me = this;\r\n\t\tvar i, hitBox, lh;\r\n\r\n\t\tif (x >= me.left && x <= me.right && y >= me.top && y <= me.bottom) {\r\n\t\t\t// See if we are touching one of the dataset boxes\r\n\t\t\tlh = me.legendHitBoxes;\r\n\t\t\tfor (i = 0; i < lh.length; ++i) {\r\n\t\t\t\thitBox = lh[i];\r\n\r\n\t\t\t\tif (x >= hitBox.left && x <= hitBox.left + hitBox.width && y >= hitBox.top && y <= hitBox.top + hitBox.height) {\r\n\t\t\t\t\t// Touching an element\r\n\t\t\t\t\treturn me.legendItems[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t},\r\n\r\n\t/**\r\n\t * Handle an event\r\n\t * @private\r\n\t * @param {IEvent} event - The event to handle\r\n\t */\r\n\thandleEvent: function(e) {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar type = e.type === 'mouseup' ? 'click' : e.type;\r\n\t\tvar hoveredItem;\r\n\r\n\t\tif (type === 'mousemove') {\r\n\t\t\tif (!opts.onHover && !opts.onLeave) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} else if (type === 'click') {\r\n\t\t\tif (!opts.onClick) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Chart event already has relative position in it\r\n\t\thoveredItem = me._getLegendItemAt(e.x, e.y);\r\n\r\n\t\tif (type === 'click') {\r\n\t\t\tif (hoveredItem && opts.onClick) {\r\n\t\t\t\t// use e.native for backwards compatibility\r\n\t\t\t\topts.onClick.call(me, e.native, hoveredItem);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (opts.onLeave && hoveredItem !== me._hoveredItem) {\r\n\t\t\t\tif (me._hoveredItem) {\r\n\t\t\t\t\topts.onLeave.call(me, e.native, me._hoveredItem);\r\n\t\t\t\t}\r\n\t\t\t\tme._hoveredItem = hoveredItem;\r\n\t\t\t}\r\n\r\n\t\t\tif (opts.onHover && hoveredItem) {\r\n\t\t\t\t// use e.native for backwards compatibility\r\n\t\t\t\topts.onHover.call(me, e.native, hoveredItem);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\nfunction createNewLegendAndAttach(chart, legendOpts) {\r\n\tvar legend = new Legend({\r\n\t\tctx: chart.ctx,\r\n\t\toptions: legendOpts,\r\n\t\tchart: chart\r\n\t});\r\n\r\n\tcore_layouts.configure(chart, legend, legendOpts);\r\n\tcore_layouts.addBox(chart, legend);\r\n\tchart.legend = legend;\r\n}\r\n\r\nvar plugin_legend = {\r\n\tid: 'legend',\r\n\r\n\t/**\r\n\t * Backward compatibility: since 2.1.5, the legend is registered as a plugin, making\r\n\t * Chart.Legend obsolete. To avoid a breaking change, we export the Legend as part of\r\n\t * the plugin, which one will be re-exposed in the chart.js file.\r\n\t * https://github.com/chartjs/Chart.js/pull/2640\r\n\t * @private\r\n\t */\r\n\t_element: Legend,\r\n\r\n\tbeforeInit: function(chart) {\r\n\t\tvar legendOpts = chart.options.legend;\r\n\r\n\t\tif (legendOpts) {\r\n\t\t\tcreateNewLegendAndAttach(chart, legendOpts);\r\n\t\t}\r\n\t},\r\n\r\n\tbeforeUpdate: function(chart) {\r\n\t\tvar legendOpts = chart.options.legend;\r\n\t\tvar legend = chart.legend;\r\n\r\n\t\tif (legendOpts) {\r\n\t\t\thelpers$1.mergeIf(legendOpts, core_defaults.global.legend);\r\n\r\n\t\t\tif (legend) {\r\n\t\t\t\tcore_layouts.configure(chart, legend, legendOpts);\r\n\t\t\t\tlegend.options = legendOpts;\r\n\t\t\t} else {\r\n\t\t\t\tcreateNewLegendAndAttach(chart, legendOpts);\r\n\t\t\t}\r\n\t\t} else if (legend) {\r\n\t\t\tcore_layouts.removeBox(chart, legend);\r\n\t\t\tdelete chart.legend;\r\n\t\t}\r\n\t},\r\n\r\n\tafterEvent: function(chart, e) {\r\n\t\tvar legend = chart.legend;\r\n\t\tif (legend) {\r\n\t\t\tlegend.handleEvent(e);\r\n\t\t}\r\n\t}\r\n};\n\nvar noop$2 = helpers$1.noop;\r\n\r\ncore_defaults._set('global', {\r\n\ttitle: {\r\n\t\tdisplay: false,\r\n\t\tfontStyle: 'bold',\r\n\t\tfullWidth: true,\r\n\t\tpadding: 10,\r\n\t\tposition: 'top',\r\n\t\ttext: '',\r\n\t\tweight: 2000         // by default greater than legend (1000) to be above\r\n\t}\r\n});\r\n\r\n/**\r\n * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!\r\n */\r\nvar Title = core_element.extend({\r\n\tinitialize: function(config) {\r\n\t\tvar me = this;\r\n\t\thelpers$1.extend(me, config);\r\n\r\n\t\t// Contains hit boxes for each dataset (in dataset order)\r\n\t\tme.legendHitBoxes = [];\r\n\t},\r\n\r\n\t// These methods are ordered by lifecycle. Utilities then follow.\r\n\r\n\tbeforeUpdate: noop$2,\r\n\tupdate: function(maxWidth, maxHeight, margins) {\r\n\t\tvar me = this;\r\n\r\n\t\t// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\r\n\t\tme.beforeUpdate();\r\n\r\n\t\t// Absorb the master measurements\r\n\t\tme.maxWidth = maxWidth;\r\n\t\tme.maxHeight = maxHeight;\r\n\t\tme.margins = margins;\r\n\r\n\t\t// Dimensions\r\n\t\tme.beforeSetDimensions();\r\n\t\tme.setDimensions();\r\n\t\tme.afterSetDimensions();\r\n\t\t// Labels\r\n\t\tme.beforeBuildLabels();\r\n\t\tme.buildLabels();\r\n\t\tme.afterBuildLabels();\r\n\r\n\t\t// Fit\r\n\t\tme.beforeFit();\r\n\t\tme.fit();\r\n\t\tme.afterFit();\r\n\t\t//\r\n\t\tme.afterUpdate();\r\n\r\n\t\treturn me.minSize;\r\n\r\n\t},\r\n\tafterUpdate: noop$2,\r\n\r\n\t//\r\n\r\n\tbeforeSetDimensions: noop$2,\r\n\tsetDimensions: function() {\r\n\t\tvar me = this;\r\n\t\t// Set the unconstrained dimension before label rotation\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\t// Reset position before calculating rotation\r\n\t\t\tme.width = me.maxWidth;\r\n\t\t\tme.left = 0;\r\n\t\t\tme.right = me.width;\r\n\t\t} else {\r\n\t\t\tme.height = me.maxHeight;\r\n\r\n\t\t\t// Reset position before calculating rotation\r\n\t\t\tme.top = 0;\r\n\t\t\tme.bottom = me.height;\r\n\t\t}\r\n\r\n\t\t// Reset padding\r\n\t\tme.paddingLeft = 0;\r\n\t\tme.paddingTop = 0;\r\n\t\tme.paddingRight = 0;\r\n\t\tme.paddingBottom = 0;\r\n\r\n\t\t// Reset minSize\r\n\t\tme.minSize = {\r\n\t\t\twidth: 0,\r\n\t\t\theight: 0\r\n\t\t};\r\n\t},\r\n\tafterSetDimensions: noop$2,\r\n\r\n\t//\r\n\r\n\tbeforeBuildLabels: noop$2,\r\n\tbuildLabels: noop$2,\r\n\tafterBuildLabels: noop$2,\r\n\r\n\t//\r\n\r\n\tbeforeFit: noop$2,\r\n\tfit: function() {\r\n\t\tvar me = this;\r\n\t\tvar opts = me.options;\r\n\t\tvar minSize = me.minSize = {};\r\n\t\tvar isHorizontal = me.isHorizontal();\r\n\t\tvar lineCount, textSize;\r\n\r\n\t\tif (!opts.display) {\r\n\t\t\tme.width = minSize.width = me.height = minSize.height = 0;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlineCount = helpers$1.isArray(opts.text) ? opts.text.length : 1;\r\n\t\ttextSize = lineCount * helpers$1.options._parseFont(opts).lineHeight + opts.padding * 2;\r\n\r\n\t\tme.width = minSize.width = isHorizontal ? me.maxWidth : textSize;\r\n\t\tme.height = minSize.height = isHorizontal ? textSize : me.maxHeight;\r\n\t},\r\n\tafterFit: noop$2,\r\n\r\n\t// Shared Methods\r\n\tisHorizontal: function() {\r\n\t\tvar pos = this.options.position;\r\n\t\treturn pos === 'top' || pos === 'bottom';\r\n\t},\r\n\r\n\t// Actually draw the title block on the canvas\r\n\tdraw: function() {\r\n\t\tvar me = this;\r\n\t\tvar ctx = me.ctx;\r\n\t\tvar opts = me.options;\r\n\r\n\t\tif (!opts.display) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar fontOpts = helpers$1.options._parseFont(opts);\r\n\t\tvar lineHeight = fontOpts.lineHeight;\r\n\t\tvar offset = lineHeight / 2 + opts.padding;\r\n\t\tvar rotation = 0;\r\n\t\tvar top = me.top;\r\n\t\tvar left = me.left;\r\n\t\tvar bottom = me.bottom;\r\n\t\tvar right = me.right;\r\n\t\tvar maxWidth, titleX, titleY;\r\n\r\n\t\tctx.fillStyle = helpers$1.valueOrDefault(opts.fontColor, core_defaults.global.defaultFontColor); // render in correct colour\r\n\t\tctx.font = fontOpts.string;\r\n\r\n\t\t// Horizontal\r\n\t\tif (me.isHorizontal()) {\r\n\t\t\ttitleX = left + ((right - left) / 2); // midpoint of the width\r\n\t\t\ttitleY = top + offset;\r\n\t\t\tmaxWidth = right - left;\r\n\t\t} else {\r\n\t\t\ttitleX = opts.position === 'left' ? left + offset : right - offset;\r\n\t\t\ttitleY = top + ((bottom - top) / 2);\r\n\t\t\tmaxWidth = bottom - top;\r\n\t\t\trotation = Math.PI * (opts.position === 'left' ? -0.5 : 0.5);\r\n\t\t}\r\n\r\n\t\tctx.save();\r\n\t\tctx.translate(titleX, titleY);\r\n\t\tctx.rotate(rotation);\r\n\t\tctx.textAlign = 'center';\r\n\t\tctx.textBaseline = 'middle';\r\n\r\n\t\tvar text = opts.text;\r\n\t\tif (helpers$1.isArray(text)) {\r\n\t\t\tvar y = 0;\r\n\t\t\tfor (var i = 0; i < text.length; ++i) {\r\n\t\t\t\tctx.fillText(text[i], 0, y, maxWidth);\r\n\t\t\t\ty += lineHeight;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tctx.fillText(text, 0, 0, maxWidth);\r\n\t\t}\r\n\r\n\t\tctx.restore();\r\n\t}\r\n});\r\n\r\nfunction createNewTitleBlockAndAttach(chart, titleOpts) {\r\n\tvar title = new Title({\r\n\t\tctx: chart.ctx,\r\n\t\toptions: titleOpts,\r\n\t\tchart: chart\r\n\t});\r\n\r\n\tcore_layouts.configure(chart, title, titleOpts);\r\n\tcore_layouts.addBox(chart, title);\r\n\tchart.titleBlock = title;\r\n}\r\n\r\nvar plugin_title = {\r\n\tid: 'title',\r\n\r\n\t/**\r\n\t * Backward compatibility: since 2.1.5, the title is registered as a plugin, making\r\n\t * Chart.Title obsolete. To avoid a breaking change, we export the Title as part of\r\n\t * the plugin, which one will be re-exposed in the chart.js file.\r\n\t * https://github.com/chartjs/Chart.js/pull/2640\r\n\t * @private\r\n\t */\r\n\t_element: Title,\r\n\r\n\tbeforeInit: function(chart) {\r\n\t\tvar titleOpts = chart.options.title;\r\n\r\n\t\tif (titleOpts) {\r\n\t\t\tcreateNewTitleBlockAndAttach(chart, titleOpts);\r\n\t\t}\r\n\t},\r\n\r\n\tbeforeUpdate: function(chart) {\r\n\t\tvar titleOpts = chart.options.title;\r\n\t\tvar titleBlock = chart.titleBlock;\r\n\r\n\t\tif (titleOpts) {\r\n\t\t\thelpers$1.mergeIf(titleOpts, core_defaults.global.title);\r\n\r\n\t\t\tif (titleBlock) {\r\n\t\t\t\tcore_layouts.configure(chart, titleBlock, titleOpts);\r\n\t\t\t\ttitleBlock.options = titleOpts;\r\n\t\t\t} else {\r\n\t\t\t\tcreateNewTitleBlockAndAttach(chart, titleOpts);\r\n\t\t\t}\r\n\t\t} else if (titleBlock) {\r\n\t\t\tcore_layouts.removeBox(chart, titleBlock);\r\n\t\t\tdelete chart.titleBlock;\r\n\t\t}\r\n\t}\r\n};\n\nvar plugins = {};\r\nvar filler = plugin_filler;\r\nvar legend = plugin_legend;\r\nvar title = plugin_title;\nplugins.filler = filler;\nplugins.legend = legend;\nplugins.title = title;\n\n/**\r\n * @namespace Chart\r\n */\r\n\r\n\r\ncore_controller.helpers = helpers$1;\r\n\r\n// @todo dispatch these helpers into appropriated helpers/helpers.* file and write unit tests!\r\ncore_helpers();\r\n\r\ncore_controller._adapters = core_adapters;\r\ncore_controller.Animation = core_animation;\r\ncore_controller.animationService = core_animations;\r\ncore_controller.controllers = controllers;\r\ncore_controller.DatasetController = core_datasetController;\r\ncore_controller.defaults = core_defaults;\r\ncore_controller.Element = core_element;\r\ncore_controller.elements = elements;\r\ncore_controller.Interaction = core_interaction;\r\ncore_controller.layouts = core_layouts;\r\ncore_controller.platform = platform;\r\ncore_controller.plugins = core_plugins;\r\ncore_controller.Scale = core_scale;\r\ncore_controller.scaleService = core_scaleService;\r\ncore_controller.Ticks = core_ticks;\r\ncore_controller.Tooltip = core_tooltip;\r\n\r\n// Register built-in scales\r\n\r\ncore_controller.helpers.each(scales, function(scale, type) {\r\n\tcore_controller.scaleService.registerScaleType(type, scale, scale._defaults);\r\n});\r\n\r\n// Load to register built-in adapters (as side effects)\r\n\r\n\r\n// Loading built-in plugins\r\n\r\nfor (var k in plugins) {\r\n\tif (plugins.hasOwnProperty(k)) {\r\n\t\tcore_controller.plugins.register(plugins[k]);\r\n\t}\r\n}\r\n\r\ncore_controller.platform.initialize();\r\n\r\nvar src = core_controller;\r\nif (typeof window !== 'undefined') {\r\n\twindow.Chart = core_controller;\r\n}\r\n\r\n// DEPRECATIONS\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore\r\n * @namespace Chart.Chart\r\n * @deprecated since version 2.8.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.Chart = core_controller;\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore\r\n * @namespace Chart.Legend\r\n * @deprecated since version 2.1.5\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.Legend = plugins.legend._element;\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore\r\n * @namespace Chart.Title\r\n * @deprecated since version 2.1.5\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.Title = plugins.title._element;\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.plugins instead\r\n * @namespace Chart.pluginService\r\n * @deprecated since version 2.1.5\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.pluginService = core_controller.plugins;\r\n\r\n/**\r\n * Provided for backward compatibility, inheriting from Chart.PlugingBase has no\r\n * effect, instead simply create/register plugins via plain JavaScript objects.\r\n * @interface Chart.PluginBase\r\n * @deprecated since version 2.5.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.PluginBase = core_controller.Element.extend({});\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.helpers.canvas instead.\r\n * @namespace Chart.canvasHelpers\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.canvasHelpers = core_controller.helpers.canvas;\r\n\r\n/**\r\n * Provided for backward compatibility, use Chart.layouts instead.\r\n * @namespace Chart.layoutService\r\n * @deprecated since version 2.7.3\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.layoutService = core_controller.layouts;\r\n\r\n/**\r\n * Provided for backward compatibility, not available anymore.\r\n * @namespace Chart.LinearScaleBase\r\n * @deprecated since version 2.8\r\n * @todo remove at version 3\r\n * @private\r\n */\r\ncore_controller.LinearScaleBase = scale_linearbase;\r\n\r\n/**\r\n * Provided for backward compatibility, instead we should create a new Chart\r\n * by setting the type in the config (`new Chart(id, {type: '{chart-type}'}`).\r\n * @deprecated since version 2.8.0\r\n * @todo remove at version 3\r\n */\r\ncore_controller.helpers.each(\r\n\t[\r\n\t\t'Bar',\r\n\t\t'Bubble',\r\n\t\t'Doughnut',\r\n\t\t'Line',\r\n\t\t'PolarArea',\r\n\t\t'Radar',\r\n\t\t'Scatter'\r\n\t],\r\n\tfunction(klass) {\r\n\t\tcore_controller[klass] = function(ctx, cfg) {\r\n\t\t\treturn new core_controller(ctx, core_controller.helpers.merge(cfg || {}, {\r\n\t\t\t\ttype: klass.charAt(0).toLowerCase() + klass.slice(1)\r\n\t\t\t}));\r\n\t\t};\r\n\t}\r\n);\n\nreturn src;\n\n})));\n\n}","Ember.libraries.register('Ember Django Adapter', '2.1.1');\n","if (typeof FastBoot === 'undefined') {\n      var preferNative = false;\n      (function (originalGlobal) {\n  define('fetch', ['exports', 'ember', 'rsvp'], function (exports, Ember__module, RSVP__module) {\n    'use strict';\n\n    var Ember = 'default' in Ember__module ? Ember__module['default'] : Ember__module;\n    var RSVP = 'default' in RSVP__module ? RSVP__module['default'] : RSVP__module;\n    var Promise = RSVP.Promise;\n    var supportProps = ['FormData', 'FileReader', 'Blob', 'URLSearchParams', 'Symbol', 'ArrayBuffer'];\n    var polyfillProps = ['fetch', 'Headers', 'Request', 'Response', 'AbortController'];\n    var combinedProps = supportProps;\n    if (preferNative) {\n      combinedProps = supportProps.concat(polyfillProps);\n    }\n    combinedProps.forEach(function (prop) {\n      if (originalGlobal[prop]) {\n        Object.defineProperty(exports, prop, {\n          configurable: true,\n          get: function () {\n            return originalGlobal[prop];\n          },\n          set: function (v) {\n            originalGlobal[prop] = v;\n          }\n        });\n      }\n    });\n\n    // shadow github/fetch global object\n    // https://github.com/github/fetch/blob/v3.4.0/fetch.js\n    var globalThis = exports;\n    // shadow mo/abortcontroller-polyfill global object\n    // https://github.com/mo/abortcontroller-polyfill/blob/v1.4.0/src/abortcontroller-polyfill.js\n    var self = exports;\n    (function () {\n      'use strict';\n\n      class Emitter {\n        constructor() {\n          Object.defineProperty(this, 'listeners', {\n            value: {},\n            writable: true,\n            configurable: true\n          });\n        }\n        addEventListener(type, callback, options) {\n          if (!(type in this.listeners)) {\n            this.listeners[type] = [];\n          }\n          this.listeners[type].push({\n            callback,\n            options\n          });\n        }\n        removeEventListener(type, callback) {\n          if (!(type in this.listeners)) {\n            return;\n          }\n          const stack = this.listeners[type];\n          for (let i = 0, l = stack.length; i < l; i++) {\n            if (stack[i].callback === callback) {\n              stack.splice(i, 1);\n              return;\n            }\n          }\n        }\n        dispatchEvent(event) {\n          if (!(event.type in this.listeners)) {\n            return;\n          }\n          const stack = this.listeners[event.type];\n          const stackToCall = stack.slice();\n          for (let i = 0, l = stackToCall.length; i < l; i++) {\n            const listener = stackToCall[i];\n            try {\n              listener.callback.call(this, event);\n            } catch (e) {\n              Promise.resolve().then(() => {\n                throw e;\n              });\n            }\n            if (listener.options && listener.options.once) {\n              this.removeEventListener(event.type, listener.callback);\n            }\n          }\n          return !event.defaultPrevented;\n        }\n      }\n      class AbortSignal extends Emitter {\n        constructor() {\n          super();\n          // Some versions of babel does not transpile super() correctly for IE <= 10, if the parent\n          // constructor has failed to run, then \"this.listeners\" will still be undefined and then we call\n          // the parent constructor directly instead as a workaround. For general details, see babel bug:\n          // https://github.com/babel/babel/issues/3041\n          // This hack was added as a fix for the issue described here:\n          // https://github.com/Financial-Times/polyfill-library/pull/59#issuecomment-477558042\n          if (!this.listeners) {\n            Emitter.call(this);\n          }\n\n          // Compared to assignment, Object.defineProperty makes properties non-enumerable by default and\n          // we want Object.keys(new AbortController().signal) to be [] for compat with the native impl\n          Object.defineProperty(this, 'aborted', {\n            value: false,\n            writable: true,\n            configurable: true\n          });\n          Object.defineProperty(this, 'onabort', {\n            value: null,\n            writable: true,\n            configurable: true\n          });\n          Object.defineProperty(this, 'reason', {\n            value: undefined,\n            writable: true,\n            configurable: true\n          });\n        }\n        toString() {\n          return '[object AbortSignal]';\n        }\n        dispatchEvent(event) {\n          if (event.type === 'abort') {\n            this.aborted = true;\n            if (typeof this.onabort === 'function') {\n              this.onabort.call(this, event);\n            }\n          }\n          super.dispatchEvent(event);\n        }\n      }\n      class AbortController {\n        constructor() {\n          // Compared to assignment, Object.defineProperty makes properties non-enumerable by default and\n          // we want Object.keys(new AbortController()) to be [] for compat with the native impl\n          Object.defineProperty(this, 'signal', {\n            value: new AbortSignal(),\n            writable: true,\n            configurable: true\n          });\n        }\n        abort(reason) {\n          let event;\n          try {\n            event = new Event('abort');\n          } catch (e) {\n            if (typeof document !== 'undefined') {\n              if (!document.createEvent) {\n                // For Internet Explorer 8:\n                event = document.createEventObject();\n                event.type = 'abort';\n              } else {\n                // For Internet Explorer 11:\n                event = document.createEvent('Event');\n                event.initEvent('abort', false, false);\n              }\n            } else {\n              // Fallback where document isn't available:\n              event = {\n                type: 'abort',\n                bubbles: false,\n                cancelable: false\n              };\n            }\n          }\n          let signalReason = reason;\n          if (signalReason === undefined) {\n            if (typeof document === 'undefined') {\n              signalReason = new Error('This operation was aborted');\n              signalReason.name = 'AbortError';\n            } else {\n              try {\n                signalReason = new DOMException('signal is aborted without reason');\n              } catch (err) {\n                // IE 11 does not support calling the DOMException constructor, use a\n                // regular error object on it instead.\n                signalReason = new Error('This operation was aborted');\n                signalReason.name = 'AbortError';\n              }\n            }\n          }\n          this.signal.reason = signalReason;\n          this.signal.dispatchEvent(event);\n        }\n        toString() {\n          return '[object AbortController]';\n        }\n      }\n      if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n        // These are necessary to make sure that we get correct output for:\n        // Object.prototype.toString.call(new AbortController())\n        AbortController.prototype[Symbol.toStringTag] = 'AbortController';\n        AbortSignal.prototype[Symbol.toStringTag] = 'AbortSignal';\n      }\n      function polyfillNeeded(self) {\n        if (self.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL) {\n          console.log('__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill');\n          return true;\n        }\n\n        // Note that the \"unfetch\" minimal fetch polyfill defines fetch() without\n        // defining window.Request, and this polyfill need to work on top of unfetch\n        // so the below feature detection needs the !self.AbortController part.\n        // The Request.prototype check is also needed because Safari versions 11.1.2\n        // up to and including 12.1.x has a window.AbortController present but still\n        // does NOT correctly implement abortable fetch:\n        // https://bugs.webkit.org/show_bug.cgi?id=174980#c2\n        return typeof self.Request === 'function' && !self.Request.prototype.hasOwnProperty('signal') || !self.AbortController;\n      }\n      (function (self) {\n        if (!polyfillNeeded(self)) {\n          return;\n        }\n        self.AbortController = AbortController;\n        self.AbortSignal = AbortSignal;\n      })(typeof self !== 'undefined' ? self : global);\n    })();\n    var WHATWGFetch = function (exports) {\n      'use strict';\n\n      /* eslint-disable no-prototype-builtins */\n      var g = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self ||\n      // eslint-disable-next-line no-undef\n      typeof global !== 'undefined' && global || {};\n      var support = {\n        searchParams: 'URLSearchParams' in g,\n        iterable: 'Symbol' in g && 'iterator' in Symbol,\n        blob: 'FileReader' in g && 'Blob' in g && function () {\n          try {\n            new Blob();\n            return true;\n          } catch (e) {\n            return false;\n          }\n        }(),\n        formData: 'FormData' in g,\n        arrayBuffer: 'ArrayBuffer' in g\n      };\n      function isDataView(obj) {\n        return obj && DataView.prototype.isPrototypeOf(obj);\n      }\n      if (support.arrayBuffer) {\n        var viewClasses = ['[object Int8Array]', '[object Uint8Array]', '[object Uint8ClampedArray]', '[object Int16Array]', '[object Uint16Array]', '[object Int32Array]', '[object Uint32Array]', '[object Float32Array]', '[object Float64Array]'];\n        var isArrayBufferView = ArrayBuffer.isView || function (obj) {\n          return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1;\n        };\n      }\n      function normalizeName(name) {\n        if (typeof name !== 'string') {\n          name = String(name);\n        }\n        if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n          throw new TypeError('Invalid character in header field name: \"' + name + '\"');\n        }\n        return name.toLowerCase();\n      }\n      function normalizeValue(value) {\n        if (typeof value !== 'string') {\n          value = String(value);\n        }\n        return value;\n      }\n\n      // Build a destructive iterator for the value list\n      function iteratorFor(items) {\n        var iterator = {\n          next: function () {\n            var value = items.shift();\n            return {\n              done: value === undefined,\n              value: value\n            };\n          }\n        };\n        if (support.iterable) {\n          iterator[Symbol.iterator] = function () {\n            return iterator;\n          };\n        }\n        return iterator;\n      }\n      function Headers(headers) {\n        this.map = {};\n        if (headers instanceof Headers) {\n          headers.forEach(function (value, name) {\n            this.append(name, value);\n          }, this);\n        } else if (Array.isArray(headers)) {\n          headers.forEach(function (header) {\n            if (header.length != 2) {\n              throw new TypeError('Headers constructor: expected name/value pair to be length 2, found' + header.length);\n            }\n            this.append(header[0], header[1]);\n          }, this);\n        } else if (headers) {\n          Object.getOwnPropertyNames(headers).forEach(function (name) {\n            this.append(name, headers[name]);\n          }, this);\n        }\n      }\n      Headers.prototype.append = function (name, value) {\n        name = normalizeName(name);\n        value = normalizeValue(value);\n        var oldValue = this.map[name];\n        this.map[name] = oldValue ? oldValue + ', ' + value : value;\n      };\n      Headers.prototype['delete'] = function (name) {\n        delete this.map[normalizeName(name)];\n      };\n      Headers.prototype.get = function (name) {\n        name = normalizeName(name);\n        return this.has(name) ? this.map[name] : null;\n      };\n      Headers.prototype.has = function (name) {\n        return this.map.hasOwnProperty(normalizeName(name));\n      };\n      Headers.prototype.set = function (name, value) {\n        this.map[normalizeName(name)] = normalizeValue(value);\n      };\n      Headers.prototype.forEach = function (callback, thisArg) {\n        for (var name in this.map) {\n          if (this.map.hasOwnProperty(name)) {\n            callback.call(thisArg, this.map[name], name, this);\n          }\n        }\n      };\n      Headers.prototype.keys = function () {\n        var items = [];\n        this.forEach(function (value, name) {\n          items.push(name);\n        });\n        return iteratorFor(items);\n      };\n      Headers.prototype.values = function () {\n        var items = [];\n        this.forEach(function (value) {\n          items.push(value);\n        });\n        return iteratorFor(items);\n      };\n      Headers.prototype.entries = function () {\n        var items = [];\n        this.forEach(function (value, name) {\n          items.push([name, value]);\n        });\n        return iteratorFor(items);\n      };\n      if (support.iterable) {\n        Headers.prototype[Symbol.iterator] = Headers.prototype.entries;\n      }\n      function consumed(body) {\n        if (body._noBody) return;\n        if (body.bodyUsed) {\n          return Promise.reject(new TypeError('Already read'));\n        }\n        body.bodyUsed = true;\n      }\n      function fileReaderReady(reader) {\n        return new Promise(function (resolve, reject) {\n          reader.onload = function () {\n            resolve(reader.result);\n          };\n          reader.onerror = function () {\n            reject(reader.error);\n          };\n        });\n      }\n      function readBlobAsArrayBuffer(blob) {\n        var reader = new FileReader();\n        var promise = fileReaderReady(reader);\n        reader.readAsArrayBuffer(blob);\n        return promise;\n      }\n      function readBlobAsText(blob) {\n        var reader = new FileReader();\n        var promise = fileReaderReady(reader);\n        var match = /charset=([A-Za-z0-9_-]+)/.exec(blob.type);\n        var encoding = match ? match[1] : 'utf-8';\n        reader.readAsText(blob, encoding);\n        return promise;\n      }\n      function readArrayBufferAsText(buf) {\n        var view = new Uint8Array(buf);\n        var chars = new Array(view.length);\n        for (var i = 0; i < view.length; i++) {\n          chars[i] = String.fromCharCode(view[i]);\n        }\n        return chars.join('');\n      }\n      function bufferClone(buf) {\n        if (buf.slice) {\n          return buf.slice(0);\n        } else {\n          var view = new Uint8Array(buf.byteLength);\n          view.set(new Uint8Array(buf));\n          return view.buffer;\n        }\n      }\n      function Body() {\n        this.bodyUsed = false;\n        this._initBody = function (body) {\n          /*\n            fetch-mock wraps the Response object in an ES6 Proxy to\n            provide useful test harness features such as flush. However, on\n            ES5 browsers without fetch or Proxy support pollyfills must be used;\n            the proxy-pollyfill is unable to proxy an attribute unless it exists\n            on the object before the Proxy is created. This change ensures\n            Response.bodyUsed exists on the instance, while maintaining the\n            semantic of setting Request.bodyUsed in the constructor before\n            _initBody is called.\n          */\n          // eslint-disable-next-line no-self-assign\n          this.bodyUsed = this.bodyUsed;\n          this._bodyInit = body;\n          if (!body) {\n            this._noBody = true;\n            this._bodyText = '';\n          } else if (typeof body === 'string') {\n            this._bodyText = body;\n          } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n            this._bodyBlob = body;\n          } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n            this._bodyFormData = body;\n          } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n            this._bodyText = body.toString();\n          } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n            this._bodyArrayBuffer = bufferClone(body.buffer);\n            // IE 10-11 can't handle a DataView body.\n            this._bodyInit = new Blob([this._bodyArrayBuffer]);\n          } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n            this._bodyArrayBuffer = bufferClone(body);\n          } else {\n            this._bodyText = body = Object.prototype.toString.call(body);\n          }\n          if (!this.headers.get('content-type')) {\n            if (typeof body === 'string') {\n              this.headers.set('content-type', 'text/plain;charset=UTF-8');\n            } else if (this._bodyBlob && this._bodyBlob.type) {\n              this.headers.set('content-type', this._bodyBlob.type);\n            } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n              this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n            }\n          }\n        };\n        if (support.blob) {\n          this.blob = function () {\n            var rejected = consumed(this);\n            if (rejected) {\n              return rejected;\n            }\n            if (this._bodyBlob) {\n              return Promise.resolve(this._bodyBlob);\n            } else if (this._bodyArrayBuffer) {\n              return Promise.resolve(new Blob([this._bodyArrayBuffer]));\n            } else if (this._bodyFormData) {\n              throw new Error('could not read FormData body as blob');\n            } else {\n              return Promise.resolve(new Blob([this._bodyText]));\n            }\n          };\n        }\n        this.arrayBuffer = function () {\n          if (this._bodyArrayBuffer) {\n            var isConsumed = consumed(this);\n            if (isConsumed) {\n              return isConsumed;\n            } else if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n              return Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength));\n            } else {\n              return Promise.resolve(this._bodyArrayBuffer);\n            }\n          } else if (support.blob) {\n            return this.blob().then(readBlobAsArrayBuffer);\n          } else {\n            throw new Error('could not read as ArrayBuffer');\n          }\n        };\n        this.text = function () {\n          var rejected = consumed(this);\n          if (rejected) {\n            return rejected;\n          }\n          if (this._bodyBlob) {\n            return readBlobAsText(this._bodyBlob);\n          } else if (this._bodyArrayBuffer) {\n            return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));\n          } else if (this._bodyFormData) {\n            throw new Error('could not read FormData body as text');\n          } else {\n            return Promise.resolve(this._bodyText);\n          }\n        };\n        if (support.formData) {\n          this.formData = function () {\n            return this.text().then(decode);\n          };\n        }\n        this.json = function () {\n          return this.text().then(JSON.parse);\n        };\n        return this;\n      }\n\n      // HTTP methods whose capitalization should be normalized\n      var methods = ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE'];\n      function normalizeMethod(method) {\n        var upcased = method.toUpperCase();\n        return methods.indexOf(upcased) > -1 ? upcased : method;\n      }\n      function Request(input, options) {\n        if (!(this instanceof Request)) {\n          throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');\n        }\n        options = options || {};\n        var body = options.body;\n        if (input instanceof Request) {\n          if (input.bodyUsed) {\n            throw new TypeError('Already read');\n          }\n          this.url = input.url;\n          this.credentials = input.credentials;\n          if (!options.headers) {\n            this.headers = new Headers(input.headers);\n          }\n          this.method = input.method;\n          this.mode = input.mode;\n          this.signal = input.signal;\n          if (!body && input._bodyInit != null) {\n            body = input._bodyInit;\n            input.bodyUsed = true;\n          }\n        } else {\n          this.url = String(input);\n        }\n        this.credentials = options.credentials || this.credentials || 'same-origin';\n        if (options.headers || !this.headers) {\n          this.headers = new Headers(options.headers);\n        }\n        this.method = normalizeMethod(options.method || this.method || 'GET');\n        this.mode = options.mode || this.mode || null;\n        this.signal = options.signal || this.signal || function () {\n          if ('AbortController' in g) {\n            var ctrl = new AbortController();\n            return ctrl.signal;\n          }\n        }();\n        this.referrer = null;\n        if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n          throw new TypeError('Body not allowed for GET or HEAD requests');\n        }\n        this._initBody(body);\n        if (this.method === 'GET' || this.method === 'HEAD') {\n          if (options.cache === 'no-store' || options.cache === 'no-cache') {\n            // Search for a '_' parameter in the query string\n            var reParamSearch = /([?&])_=[^&]*/;\n            if (reParamSearch.test(this.url)) {\n              // If it already exists then set the value with the current time\n              this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime());\n            } else {\n              // Otherwise add a new '_' parameter to the end with the current time\n              var reQueryString = /\\?/;\n              this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime();\n            }\n          }\n        }\n      }\n      Request.prototype.clone = function () {\n        return new Request(this, {\n          body: this._bodyInit\n        });\n      };\n      function decode(body) {\n        var form = new FormData();\n        body.trim().split('&').forEach(function (bytes) {\n          if (bytes) {\n            var split = bytes.split('=');\n            var name = split.shift().replace(/\\+/g, ' ');\n            var value = split.join('=').replace(/\\+/g, ' ');\n            form.append(decodeURIComponent(name), decodeURIComponent(value));\n          }\n        });\n        return form;\n      }\n      function parseHeaders(rawHeaders) {\n        var headers = new Headers();\n        // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n        // https://tools.ietf.org/html/rfc7230#section-3.2\n        var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ');\n        // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n        // https://github.com/github/fetch/issues/748\n        // https://github.com/zloirock/core-js/issues/751\n        preProcessedHeaders.split('\\r').map(function (header) {\n          return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header;\n        }).forEach(function (line) {\n          var parts = line.split(':');\n          var key = parts.shift().trim();\n          if (key) {\n            var value = parts.join(':').trim();\n            try {\n              headers.append(key, value);\n            } catch (error) {\n              console.warn('Response ' + error.message);\n            }\n          }\n        });\n        return headers;\n      }\n      Body.call(Request.prototype);\n      function Response(bodyInit, options) {\n        if (!(this instanceof Response)) {\n          throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.');\n        }\n        if (!options) {\n          options = {};\n        }\n        this.type = 'default';\n        this.status = options.status === undefined ? 200 : options.status;\n        if (this.status < 200 || this.status > 599) {\n          throw new RangeError(\"Failed to construct 'Response': The status provided (0) is outside the range [200, 599].\");\n        }\n        this.ok = this.status >= 200 && this.status < 300;\n        this.statusText = options.statusText === undefined ? '' : '' + options.statusText;\n        this.headers = new Headers(options.headers);\n        this.url = options.url || '';\n        this._initBody(bodyInit);\n      }\n      Body.call(Response.prototype);\n      Response.prototype.clone = function () {\n        return new Response(this._bodyInit, {\n          status: this.status,\n          statusText: this.statusText,\n          headers: new Headers(this.headers),\n          url: this.url\n        });\n      };\n      Response.error = function () {\n        var response = new Response(null, {\n          status: 200,\n          statusText: ''\n        });\n        response.status = 0;\n        response.type = 'error';\n        return response;\n      };\n      var redirectStatuses = [301, 302, 303, 307, 308];\n      Response.redirect = function (url, status) {\n        if (redirectStatuses.indexOf(status) === -1) {\n          throw new RangeError('Invalid status code');\n        }\n        return new Response(null, {\n          status: status,\n          headers: {\n            location: url\n          }\n        });\n      };\n      exports.DOMException = g.DOMException;\n      try {\n        new exports.DOMException();\n      } catch (err) {\n        exports.DOMException = function (message, name) {\n          this.message = message;\n          this.name = name;\n          var error = Error(message);\n          this.stack = error.stack;\n        };\n        exports.DOMException.prototype = Object.create(Error.prototype);\n        exports.DOMException.prototype.constructor = exports.DOMException;\n      }\n      function fetch(input, init) {\n        return new Promise(function (resolve, reject) {\n          var request = new Request(input, init);\n          if (request.signal && request.signal.aborted) {\n            return reject(new exports.DOMException('Aborted', 'AbortError'));\n          }\n          var xhr = new XMLHttpRequest();\n          function abortXhr() {\n            xhr.abort();\n          }\n          xhr.onload = function () {\n            var options = {\n              statusText: xhr.statusText,\n              headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n            };\n            // This check if specifically for when a user fetches a file locally from the file system\n            // Only if the status is out of a normal range\n            if (request.url.startsWith('file://') && (xhr.status < 200 || xhr.status > 599)) {\n              options.status = 200;\n            } else {\n              options.status = xhr.status;\n            }\n            options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');\n            var body = 'response' in xhr ? xhr.response : xhr.responseText;\n            setTimeout(function () {\n              resolve(new Response(body, options));\n            }, 0);\n          };\n          xhr.onerror = function () {\n            setTimeout(function () {\n              reject(new TypeError('Network request failed'));\n            }, 0);\n          };\n          xhr.ontimeout = function () {\n            setTimeout(function () {\n              reject(new TypeError('Network request timed out'));\n            }, 0);\n          };\n          xhr.onabort = function () {\n            setTimeout(function () {\n              reject(new exports.DOMException('Aborted', 'AbortError'));\n            }, 0);\n          };\n          function fixUrl(url) {\n            try {\n              return url === '' && g.location.href ? g.location.href : url;\n            } catch (e) {\n              return url;\n            }\n          }\n          xhr.open(request.method, fixUrl(request.url), true);\n          if (request.credentials === 'include') {\n            xhr.withCredentials = true;\n          } else if (request.credentials === 'omit') {\n            xhr.withCredentials = false;\n          }\n          if ('responseType' in xhr) {\n            if (support.blob) {\n              xhr.responseType = 'blob';\n            } else if (support.arrayBuffer) {\n              xhr.responseType = 'arraybuffer';\n            }\n          }\n          if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers || g.Headers && init.headers instanceof g.Headers)) {\n            var names = [];\n            Object.getOwnPropertyNames(init.headers).forEach(function (name) {\n              names.push(normalizeName(name));\n              xhr.setRequestHeader(name, normalizeValue(init.headers[name]));\n            });\n            request.headers.forEach(function (value, name) {\n              if (names.indexOf(name) === -1) {\n                xhr.setRequestHeader(name, value);\n              }\n            });\n          } else {\n            request.headers.forEach(function (value, name) {\n              xhr.setRequestHeader(name, value);\n            });\n          }\n          if (request.signal) {\n            request.signal.addEventListener('abort', abortXhr);\n            xhr.onreadystatechange = function () {\n              // DONE (success or failure)\n              if (xhr.readyState === 4) {\n                request.signal.removeEventListener('abort', abortXhr);\n              }\n            };\n          }\n          xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);\n        });\n      }\n      fetch.polyfill = true;\n      if (!g.fetch) {\n        g.fetch = fetch;\n        g.Headers = Headers;\n        g.Request = Request;\n        g.Response = Response;\n      }\n      exports.Headers = Headers;\n      exports.Request = Request;\n      exports.Response = Response;\n      exports.fetch = fetch;\n      return exports;\n    }({});\n    if (!globalThis.fetch) {\n      throw new Error('fetch is not defined - maybe your browser targets are not covering everything you need?');\n    }\n    var pending = 0;\n    function decrement(result) {\n      pending--;\n      return result;\n    }\n    if (Ember.Test) {\n      Ember.Test.registerWaiter(function () {\n        return pending === 0;\n      });\n      exports['default'] = function () {\n        pending++;\n        return exports.fetch.apply(originalGlobal, arguments).then(function (response) {\n          response.clone().blob().then(decrement, decrement);\n          return response;\n        }, function (reason) {\n          decrement(reason);\n          throw reason;\n        });\n      };\n    } else {\n      exports['default'] = exports.fetch;\n    }\n    supportProps.forEach(function (prop) {\n      delete exports[prop];\n    });\n  });\n})(typeof window !== 'undefined' && window || typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global !== 'undefined' && global);\n    }","/**\n * Copyright Marc J. Schmidt. See the LICENSE file at the top-level\n * directory of this distribution and at\n * https://github.com/marcj/css-element-queries/blob/master/LICENSE.\n */\n;\n(function (root, factory) {\n    if (typeof define === \"function\" && define.amd) {\n        define(factory);\n    } else if (typeof exports === \"object\") {\n        module.exports = factory();\n    } else {\n        root.ResizeSensor = factory();\n    }\n}(this, function () {\n\n    //Make sure it does not throw in a SSR (Server Side Rendering) situation\n    if (typeof window === \"undefined\") {\n        return null;\n    }\n    // Only used for the dirty checking, so the event callback count is limted to max 1 call per fps per sensor.\n    // In combination with the event based resize sensor this saves cpu time, because the sensor is too fast and\n    // would generate too many unnecessary events.\n    var requestAnimationFrame = window.requestAnimationFrame ||\n        window.mozRequestAnimationFrame ||\n        window.webkitRequestAnimationFrame ||\n        function (fn) {\n            return window.setTimeout(fn, 20);\n        };\n\n    /**\n     * Iterate over each of the provided element(s).\n     *\n     * @param {HTMLElement|HTMLElement[]} elements\n     * @param {Function}                  callback\n     */\n    function forEachElement(elements, callback){\n        var elementsType = Object.prototype.toString.call(elements);\n        var isCollectionTyped = ('[object Array]' === elementsType\n            || ('[object NodeList]' === elementsType)\n            || ('[object HTMLCollection]' === elementsType)\n            || ('[object Object]' === elementsType)\n            || ('undefined' !== typeof jQuery && elements instanceof jQuery) //jquery\n            || ('undefined' !== typeof Elements && elements instanceof Elements) //mootools\n        );\n        var i = 0, j = elements.length;\n        if (isCollectionTyped) {\n            for (; i < j; i++) {\n                callback(elements[i]);\n            }\n        } else {\n            callback(elements);\n        }\n    }\n\n    /**\n     * Class for dimension change detection.\n     *\n     * @param {Element|Element[]|Elements|jQuery} element\n     * @param {Function} callback\n     *\n     * @constructor\n     */\n    var ResizeSensor = function(element, callback) {\n        /**\n         *\n         * @constructor\n         */\n        function EventQueue() {\n            var q = [];\n            this.add = function(ev) {\n                q.push(ev);\n            };\n\n            var i, j;\n            this.call = function() {\n                for (i = 0, j = q.length; i < j; i++) {\n                    q[i].call();\n                }\n            };\n\n            this.remove = function(ev) {\n                var newQueue = [];\n                for(i = 0, j = q.length; i < j; i++) {\n                    if(q[i] !== ev) newQueue.push(q[i]);\n                }\n                q = newQueue;\n            }\n\n            this.length = function() {\n                return q.length;\n            }\n        }\n\n        /**\n         * @param {HTMLElement} element\n         * @param {String}      prop\n         * @returns {String|Number}\n         */\n        function getComputedStyle(element, prop) {\n            if (element.currentStyle) {\n                return element.currentStyle[prop];\n            } else if (window.getComputedStyle) {\n                return window.getComputedStyle(element, null).getPropertyValue(prop);\n            } else {\n                return element.style[prop];\n            }\n        }\n\n        /**\n         *\n         * @param {HTMLElement} element\n         * @param {Function}    resized\n         */\n        function attachResizeEvent(element, resized) {\n            if (!element.resizedAttached) {\n                element.resizedAttached = new EventQueue();\n                element.resizedAttached.add(resized);\n            } else if (element.resizedAttached) {\n                element.resizedAttached.add(resized);\n                return;\n            }\n\n            element.resizeSensor = document.createElement('div');\n            element.resizeSensor.className = 'resize-sensor';\n            var style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';\n            var styleChild = 'position: absolute; left: 0; top: 0; transition: 0s;';\n\n            element.resizeSensor.style.cssText = style;\n            element.resizeSensor.innerHTML =\n                '<div class=\"resize-sensor-expand\" style=\"' + style + '\">' +\n                    '<div style=\"' + styleChild + '\"></div>' +\n                '</div>' +\n                '<div class=\"resize-sensor-shrink\" style=\"' + style + '\">' +\n                    '<div style=\"' + styleChild + ' width: 200%; height: 200%\"></div>' +\n                '</div>';\n            element.appendChild(element.resizeSensor);\n\n            if (getComputedStyle(element, 'position') == 'static') {\n                element.style.position = 'relative';\n            }\n\n            var expand = element.resizeSensor.childNodes[0];\n            var expandChild = expand.childNodes[0];\n            var shrink = element.resizeSensor.childNodes[1];\n            var dirty, rafId, newWidth, newHeight;\n            var lastWidth = element.offsetWidth;\n            var lastHeight = element.offsetHeight;\n\n            var reset = function() {\n                expandChild.style.width = '100000px';\n                expandChild.style.height = '100000px';\n\n                expand.scrollLeft = 100000;\n                expand.scrollTop = 100000;\n\n                shrink.scrollLeft = 100000;\n                shrink.scrollTop = 100000;\n            };\n\n            reset();\n\n            var onResized = function() {\n                rafId = 0;\n\n                if (!dirty) return;\n\n                lastWidth = newWidth;\n                lastHeight = newHeight;\n\n                if (element.resizedAttached) {\n                    element.resizedAttached.call();\n                }\n            };\n\n            var onScroll = function() {\n                newWidth = element.offsetWidth;\n                newHeight = element.offsetHeight;\n                dirty = newWidth != lastWidth || newHeight != lastHeight;\n\n                if (dirty && !rafId) {\n                    rafId = requestAnimationFrame(onResized);\n                }\n\n                reset();\n            };\n\n            var addEvent = function(el, name, cb) {\n                if (el.attachEvent) {\n                    el.attachEvent('on' + name, cb);\n                } else {\n                    el.addEventListener(name, cb);\n                }\n            };\n\n            addEvent(expand, 'scroll', onScroll);\n            addEvent(shrink, 'scroll', onScroll);\n        }\n\n        forEachElement(element, function(elem){\n            attachResizeEvent(elem, callback);\n        });\n\n        this.detach = function(ev) {\n            ResizeSensor.detach(element, ev);\n        };\n    };\n\n    ResizeSensor.detach = function(element, ev) {\n        forEachElement(element, function(elem){\n            if(elem.resizedAttached && typeof ev == \"function\"){\n                elem.resizedAttached.remove(ev);\n                if(elem.resizedAttached.length()) return;\n            }\n            if (elem.resizeSensor) {\n                if (elem.contains(elem.resizeSensor)) {\n                    elem.removeChild(elem.resizeSensor);\n                }\n                delete elem.resizeSensor;\n                delete elem.resizedAttached;\n            }\n        });\n    };\n\n    return ResizeSensor;\n\n}));\n","/*! Hammer.JS - v2.0.7 - 2016-04-22\n * http://hammerjs.github.io/\n *\n * Copyright (c) 2016 Jorik Tangelder;\n * Licensed under the MIT license */\n(function(window, document, exportName, undefined) {\n  'use strict';\n\nvar VENDOR_PREFIXES = ['', 'webkit', 'Moz', 'MS', 'ms', 'o'];\nvar TEST_ELEMENT = document.createElement('div');\n\nvar TYPE_FUNCTION = 'function';\n\nvar round = Math.round;\nvar abs = Math.abs;\nvar now = Date.now;\n\n/**\n * set a timeout with a given scope\n * @param {Function} fn\n * @param {Number} timeout\n * @param {Object} context\n * @returns {number}\n */\nfunction setTimeoutContext(fn, timeout, context) {\n    return setTimeout(bindFn(fn, context), timeout);\n}\n\n/**\n * if the argument is an array, we want to execute the fn on each entry\n * if it aint an array we don't want to do a thing.\n * this is used by all the methods that accept a single and array argument.\n * @param {*|Array} arg\n * @param {String} fn\n * @param {Object} [context]\n * @returns {Boolean}\n */\nfunction invokeArrayArg(arg, fn, context) {\n    if (Array.isArray(arg)) {\n        each(arg, context[fn], context);\n        return true;\n    }\n    return false;\n}\n\n/**\n * walk objects and arrays\n * @param {Object} obj\n * @param {Function} iterator\n * @param {Object} context\n */\nfunction each(obj, iterator, context) {\n    var i;\n\n    if (!obj) {\n        return;\n    }\n\n    if (obj.forEach) {\n        obj.forEach(iterator, context);\n    } else if (obj.length !== undefined) {\n        i = 0;\n        while (i < obj.length) {\n            iterator.call(context, obj[i], i, obj);\n            i++;\n        }\n    } else {\n        for (i in obj) {\n            obj.hasOwnProperty(i) && iterator.call(context, obj[i], i, obj);\n        }\n    }\n}\n\n/**\n * wrap a method with a deprecation warning and stack trace\n * @param {Function} method\n * @param {String} name\n * @param {String} message\n * @returns {Function} A new function wrapping the supplied method.\n */\nfunction deprecate(method, name, message) {\n    var deprecationMessage = 'DEPRECATED METHOD: ' + name + '\\n' + message + ' AT \\n';\n    return function() {\n        var e = new Error('get-stack-trace');\n        var stack = e && e.stack ? e.stack.replace(/^[^\\(]+?[\\n$]/gm, '')\n            .replace(/^\\s+at\\s+/gm, '')\n            .replace(/^Object.<anonymous>\\s*\\(/gm, '{anonymous}()@') : 'Unknown Stack Trace';\n\n        var log = window.console && (window.console.warn || window.console.log);\n        if (log) {\n            log.call(window.console, deprecationMessage, stack);\n        }\n        return method.apply(this, arguments);\n    };\n}\n\n/**\n * extend object.\n * means that properties in dest will be overwritten by the ones in src.\n * @param {Object} target\n * @param {...Object} objects_to_assign\n * @returns {Object} target\n */\nvar assign;\nif (typeof Object.assign !== 'function') {\n    assign = function assign(target) {\n        if (target === undefined || target === null) {\n            throw new TypeError('Cannot convert undefined or null to object');\n        }\n\n        var output = Object(target);\n        for (var index = 1; index < arguments.length; index++) {\n            var source = arguments[index];\n            if (source !== undefined && source !== null) {\n                for (var nextKey in source) {\n                    if (source.hasOwnProperty(nextKey)) {\n                        output[nextKey] = source[nextKey];\n                    }\n                }\n            }\n        }\n        return output;\n    };\n} else {\n    assign = Object.assign;\n}\n\n/**\n * extend object.\n * means that properties in dest will be overwritten by the ones in src.\n * @param {Object} dest\n * @param {Object} src\n * @param {Boolean} [merge=false]\n * @returns {Object} dest\n */\nvar extend = deprecate(function extend(dest, src, merge) {\n    var keys = Object.keys(src);\n    var i = 0;\n    while (i < keys.length) {\n        if (!merge || (merge && dest[keys[i]] === undefined)) {\n            dest[keys[i]] = src[keys[i]];\n        }\n        i++;\n    }\n    return dest;\n}, 'extend', 'Use `assign`.');\n\n/**\n * merge the values from src in the dest.\n * means that properties that exist in dest will not be overwritten by src\n * @param {Object} dest\n * @param {Object} src\n * @returns {Object} dest\n */\nvar merge = deprecate(function merge(dest, src) {\n    return extend(dest, src, true);\n}, 'merge', 'Use `assign`.');\n\n/**\n * simple class inheritance\n * @param {Function} child\n * @param {Function} base\n * @param {Object} [properties]\n */\nfunction inherit(child, base, properties) {\n    var baseP = base.prototype,\n        childP;\n\n    childP = child.prototype = Object.create(baseP);\n    childP.constructor = child;\n    childP._super = baseP;\n\n    if (properties) {\n        assign(childP, properties);\n    }\n}\n\n/**\n * simple function bind\n * @param {Function} fn\n * @param {Object} context\n * @returns {Function}\n */\nfunction bindFn(fn, context) {\n    return function boundFn() {\n        return fn.apply(context, arguments);\n    };\n}\n\n/**\n * let a boolean value also be a function that must return a boolean\n * this first item in args will be used as the context\n * @param {Boolean|Function} val\n * @param {Array} [args]\n * @returns {Boolean}\n */\nfunction boolOrFn(val, args) {\n    if (typeof val == TYPE_FUNCTION) {\n        return val.apply(args ? args[0] || undefined : undefined, args);\n    }\n    return val;\n}\n\n/**\n * use the val2 when val1 is undefined\n * @param {*} val1\n * @param {*} val2\n * @returns {*}\n */\nfunction ifUndefined(val1, val2) {\n    return (val1 === undefined) ? val2 : val1;\n}\n\n/**\n * addEventListener with multiple events at once\n * @param {EventTarget} target\n * @param {String} types\n * @param {Function} handler\n */\nfunction addEventListeners(target, types, handler) {\n    each(splitStr(types), function(type) {\n        target.addEventListener(type, handler, false);\n    });\n}\n\n/**\n * removeEventListener with multiple events at once\n * @param {EventTarget} target\n * @param {String} types\n * @param {Function} handler\n */\nfunction removeEventListeners(target, types, handler) {\n    each(splitStr(types), function(type) {\n        target.removeEventListener(type, handler, false);\n    });\n}\n\n/**\n * find if a node is in the given parent\n * @method hasParent\n * @param {HTMLElement} node\n * @param {HTMLElement} parent\n * @return {Boolean} found\n */\nfunction hasParent(node, parent) {\n    while (node) {\n        if (node == parent) {\n            return true;\n        }\n        node = node.parentNode;\n    }\n    return false;\n}\n\n/**\n * small indexOf wrapper\n * @param {String} str\n * @param {String} find\n * @returns {Boolean} found\n */\nfunction inStr(str, find) {\n    return str.indexOf(find) > -1;\n}\n\n/**\n * split string on whitespace\n * @param {String} str\n * @returns {Array} words\n */\nfunction splitStr(str) {\n    return str.trim().split(/\\s+/g);\n}\n\n/**\n * find if a array contains the object using indexOf or a simple polyFill\n * @param {Array} src\n * @param {String} find\n * @param {String} [findByKey]\n * @return {Boolean|Number} false when not found, or the index\n */\nfunction inArray(src, find, findByKey) {\n    if (src.indexOf && !findByKey) {\n        return src.indexOf(find);\n    } else {\n        var i = 0;\n        while (i < src.length) {\n            if ((findByKey && src[i][findByKey] == find) || (!findByKey && src[i] === find)) {\n                return i;\n            }\n            i++;\n        }\n        return -1;\n    }\n}\n\n/**\n * convert array-like objects to real arrays\n * @param {Object} obj\n * @returns {Array}\n */\nfunction toArray(obj) {\n    return Array.prototype.slice.call(obj, 0);\n}\n\n/**\n * unique array with objects based on a key (like 'id') or just by the array's value\n * @param {Array} src [{id:1},{id:2},{id:1}]\n * @param {String} [key]\n * @param {Boolean} [sort=False]\n * @returns {Array} [{id:1},{id:2}]\n */\nfunction uniqueArray(src, key, sort) {\n    var results = [];\n    var values = [];\n    var i = 0;\n\n    while (i < src.length) {\n        var val = key ? src[i][key] : src[i];\n        if (inArray(values, val) < 0) {\n            results.push(src[i]);\n        }\n        values[i] = val;\n        i++;\n    }\n\n    if (sort) {\n        if (!key) {\n            results = results.sort();\n        } else {\n            results = results.sort(function sortUniqueArray(a, b) {\n                return a[key] > b[key];\n            });\n        }\n    }\n\n    return results;\n}\n\n/**\n * get the prefixed property\n * @param {Object} obj\n * @param {String} property\n * @returns {String|Undefined} prefixed\n */\nfunction prefixed(obj, property) {\n    var prefix, prop;\n    var camelProp = property[0].toUpperCase() + property.slice(1);\n\n    var i = 0;\n    while (i < VENDOR_PREFIXES.length) {\n        prefix = VENDOR_PREFIXES[i];\n        prop = (prefix) ? prefix + camelProp : property;\n\n        if (prop in obj) {\n            return prop;\n        }\n        i++;\n    }\n    return undefined;\n}\n\n/**\n * get a unique id\n * @returns {number} uniqueId\n */\nvar _uniqueId = 1;\nfunction uniqueId() {\n    return _uniqueId++;\n}\n\n/**\n * get the window object of an element\n * @param {HTMLElement} element\n * @returns {DocumentView|Window}\n */\nfunction getWindowForElement(element) {\n    var doc = element.ownerDocument || element;\n    return (doc.defaultView || doc.parentWindow || window);\n}\n\nvar MOBILE_REGEX = /mobile|tablet|ip(ad|hone|od)|android/i;\n\nvar SUPPORT_TOUCH = ('ontouchstart' in window);\nvar SUPPORT_POINTER_EVENTS = prefixed(window, 'PointerEvent') !== undefined;\nvar SUPPORT_ONLY_TOUCH = SUPPORT_TOUCH && MOBILE_REGEX.test(navigator.userAgent);\n\nvar INPUT_TYPE_TOUCH = 'touch';\nvar INPUT_TYPE_PEN = 'pen';\nvar INPUT_TYPE_MOUSE = 'mouse';\nvar INPUT_TYPE_KINECT = 'kinect';\n\nvar COMPUTE_INTERVAL = 25;\n\nvar INPUT_START = 1;\nvar INPUT_MOVE = 2;\nvar INPUT_END = 4;\nvar INPUT_CANCEL = 8;\n\nvar DIRECTION_NONE = 1;\nvar DIRECTION_LEFT = 2;\nvar DIRECTION_RIGHT = 4;\nvar DIRECTION_UP = 8;\nvar DIRECTION_DOWN = 16;\n\nvar DIRECTION_HORIZONTAL = DIRECTION_LEFT | DIRECTION_RIGHT;\nvar DIRECTION_VERTICAL = DIRECTION_UP | DIRECTION_DOWN;\nvar DIRECTION_ALL = DIRECTION_HORIZONTAL | DIRECTION_VERTICAL;\n\nvar PROPS_XY = ['x', 'y'];\nvar PROPS_CLIENT_XY = ['clientX', 'clientY'];\n\n/**\n * create new input type manager\n * @param {Manager} manager\n * @param {Function} callback\n * @returns {Input}\n * @constructor\n */\nfunction Input(manager, callback) {\n    var self = this;\n    this.manager = manager;\n    this.callback = callback;\n    this.element = manager.element;\n    this.target = manager.options.inputTarget;\n\n    // smaller wrapper around the handler, for the scope and the enabled state of the manager,\n    // so when disabled the input events are completely bypassed.\n    this.domHandler = function(ev) {\n        if (boolOrFn(manager.options.enable, [manager])) {\n            self.handler(ev);\n        }\n    };\n\n    this.init();\n\n}\n\nInput.prototype = {\n    /**\n     * should handle the inputEvent data and trigger the callback\n     * @virtual\n     */\n    handler: function() { },\n\n    /**\n     * bind the events\n     */\n    init: function() {\n        this.evEl && addEventListeners(this.element, this.evEl, this.domHandler);\n        this.evTarget && addEventListeners(this.target, this.evTarget, this.domHandler);\n        this.evWin && addEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);\n    },\n\n    /**\n     * unbind the events\n     */\n    destroy: function() {\n        this.evEl && removeEventListeners(this.element, this.evEl, this.domHandler);\n        this.evTarget && removeEventListeners(this.target, this.evTarget, this.domHandler);\n        this.evWin && removeEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);\n    }\n};\n\n/**\n * create new input type manager\n * called by the Manager constructor\n * @param {Hammer} manager\n * @returns {Input}\n */\nfunction createInputInstance(manager) {\n    var Type;\n    var inputClass = manager.options.inputClass;\n\n    if (inputClass) {\n        Type = inputClass;\n    } else if (SUPPORT_POINTER_EVENTS) {\n        Type = PointerEventInput;\n    } else if (SUPPORT_ONLY_TOUCH) {\n        Type = TouchInput;\n    } else if (!SUPPORT_TOUCH) {\n        Type = MouseInput;\n    } else {\n        Type = TouchMouseInput;\n    }\n    return new (Type)(manager, inputHandler);\n}\n\n/**\n * handle input events\n * @param {Manager} manager\n * @param {String} eventType\n * @param {Object} input\n */\nfunction inputHandler(manager, eventType, input) {\n    var pointersLen = input.pointers.length;\n    var changedPointersLen = input.changedPointers.length;\n    var isFirst = (eventType & INPUT_START && (pointersLen - changedPointersLen === 0));\n    var isFinal = (eventType & (INPUT_END | INPUT_CANCEL) && (pointersLen - changedPointersLen === 0));\n\n    input.isFirst = !!isFirst;\n    input.isFinal = !!isFinal;\n\n    if (isFirst) {\n        manager.session = {};\n    }\n\n    // source event is the normalized value of the domEvents\n    // like 'touchstart, mouseup, pointerdown'\n    input.eventType = eventType;\n\n    // compute scale, rotation etc\n    computeInputData(manager, input);\n\n    // emit secret event\n    manager.emit('hammer.input', input);\n\n    manager.recognize(input);\n    manager.session.prevInput = input;\n}\n\n/**\n * extend the data with some usable properties like scale, rotate, velocity etc\n * @param {Object} manager\n * @param {Object} input\n */\nfunction computeInputData(manager, input) {\n    var session = manager.session;\n    var pointers = input.pointers;\n    var pointersLength = pointers.length;\n\n    // store the first input to calculate the distance and direction\n    if (!session.firstInput) {\n        session.firstInput = simpleCloneInputData(input);\n    }\n\n    // to compute scale and rotation we need to store the multiple touches\n    if (pointersLength > 1 && !session.firstMultiple) {\n        session.firstMultiple = simpleCloneInputData(input);\n    } else if (pointersLength === 1) {\n        session.firstMultiple = false;\n    }\n\n    var firstInput = session.firstInput;\n    var firstMultiple = session.firstMultiple;\n    var offsetCenter = firstMultiple ? firstMultiple.center : firstInput.center;\n\n    var center = input.center = getCenter(pointers);\n    input.timeStamp = now();\n    input.deltaTime = input.timeStamp - firstInput.timeStamp;\n\n    input.angle = getAngle(offsetCenter, center);\n    input.distance = getDistance(offsetCenter, center);\n\n    computeDeltaXY(session, input);\n    input.offsetDirection = getDirection(input.deltaX, input.deltaY);\n\n    var overallVelocity = getVelocity(input.deltaTime, input.deltaX, input.deltaY);\n    input.overallVelocityX = overallVelocity.x;\n    input.overallVelocityY = overallVelocity.y;\n    input.overallVelocity = (abs(overallVelocity.x) > abs(overallVelocity.y)) ? overallVelocity.x : overallVelocity.y;\n\n    input.scale = firstMultiple ? getScale(firstMultiple.pointers, pointers) : 1;\n    input.rotation = firstMultiple ? getRotation(firstMultiple.pointers, pointers) : 0;\n\n    input.maxPointers = !session.prevInput ? input.pointers.length : ((input.pointers.length >\n        session.prevInput.maxPointers) ? input.pointers.length : session.prevInput.maxPointers);\n\n    computeIntervalInputData(session, input);\n\n    // find the correct target\n    var target = manager.element;\n    if (hasParent(input.srcEvent.target, target)) {\n        target = input.srcEvent.target;\n    }\n    input.target = target;\n}\n\nfunction computeDeltaXY(session, input) {\n    var center = input.center;\n    var offset = session.offsetDelta || {};\n    var prevDelta = session.prevDelta || {};\n    var prevInput = session.prevInput || {};\n\n    if (input.eventType === INPUT_START || prevInput.eventType === INPUT_END) {\n        prevDelta = session.prevDelta = {\n            x: prevInput.deltaX || 0,\n            y: prevInput.deltaY || 0\n        };\n\n        offset = session.offsetDelta = {\n            x: center.x,\n            y: center.y\n        };\n    }\n\n    input.deltaX = prevDelta.x + (center.x - offset.x);\n    input.deltaY = prevDelta.y + (center.y - offset.y);\n}\n\n/**\n * velocity is calculated every x ms\n * @param {Object} session\n * @param {Object} input\n */\nfunction computeIntervalInputData(session, input) {\n    var last = session.lastInterval || input,\n        deltaTime = input.timeStamp - last.timeStamp,\n        velocity, velocityX, velocityY, direction;\n\n    if (input.eventType != INPUT_CANCEL && (deltaTime > COMPUTE_INTERVAL || last.velocity === undefined)) {\n        var deltaX = input.deltaX - last.deltaX;\n        var deltaY = input.deltaY - last.deltaY;\n\n        var v = getVelocity(deltaTime, deltaX, deltaY);\n        velocityX = v.x;\n        velocityY = v.y;\n        velocity = (abs(v.x) > abs(v.y)) ? v.x : v.y;\n        direction = getDirection(deltaX, deltaY);\n\n        session.lastInterval = input;\n    } else {\n        // use latest velocity info if it doesn't overtake a minimum period\n        velocity = last.velocity;\n        velocityX = last.velocityX;\n        velocityY = last.velocityY;\n        direction = last.direction;\n    }\n\n    input.velocity = velocity;\n    input.velocityX = velocityX;\n    input.velocityY = velocityY;\n    input.direction = direction;\n}\n\n/**\n * create a simple clone from the input used for storage of firstInput and firstMultiple\n * @param {Object} input\n * @returns {Object} clonedInputData\n */\nfunction simpleCloneInputData(input) {\n    // make a simple copy of the pointers because we will get a reference if we don't\n    // we only need clientXY for the calculations\n    var pointers = [];\n    var i = 0;\n    while (i < input.pointers.length) {\n        pointers[i] = {\n            clientX: round(input.pointers[i].clientX),\n            clientY: round(input.pointers[i].clientY)\n        };\n        i++;\n    }\n\n    return {\n        timeStamp: now(),\n        pointers: pointers,\n        center: getCenter(pointers),\n        deltaX: input.deltaX,\n        deltaY: input.deltaY\n    };\n}\n\n/**\n * get the center of all the pointers\n * @param {Array} pointers\n * @return {Object} center contains `x` and `y` properties\n */\nfunction getCenter(pointers) {\n    var pointersLength = pointers.length;\n\n    // no need to loop when only one touch\n    if (pointersLength === 1) {\n        return {\n            x: round(pointers[0].clientX),\n            y: round(pointers[0].clientY)\n        };\n    }\n\n    var x = 0, y = 0, i = 0;\n    while (i < pointersLength) {\n        x += pointers[i].clientX;\n        y += pointers[i].clientY;\n        i++;\n    }\n\n    return {\n        x: round(x / pointersLength),\n        y: round(y / pointersLength)\n    };\n}\n\n/**\n * calculate the velocity between two points. unit is in px per ms.\n * @param {Number} deltaTime\n * @param {Number} x\n * @param {Number} y\n * @return {Object} velocity `x` and `y`\n */\nfunction getVelocity(deltaTime, x, y) {\n    return {\n        x: x / deltaTime || 0,\n        y: y / deltaTime || 0\n    };\n}\n\n/**\n * get the direction between two points\n * @param {Number} x\n * @param {Number} y\n * @return {Number} direction\n */\nfunction getDirection(x, y) {\n    if (x === y) {\n        return DIRECTION_NONE;\n    }\n\n    if (abs(x) >= abs(y)) {\n        return x < 0 ? DIRECTION_LEFT : DIRECTION_RIGHT;\n    }\n    return y < 0 ? DIRECTION_UP : DIRECTION_DOWN;\n}\n\n/**\n * calculate the absolute distance between two points\n * @param {Object} p1 {x, y}\n * @param {Object} p2 {x, y}\n * @param {Array} [props] containing x and y keys\n * @return {Number} distance\n */\nfunction getDistance(p1, p2, props) {\n    if (!props) {\n        props = PROPS_XY;\n    }\n    var x = p2[props[0]] - p1[props[0]],\n        y = p2[props[1]] - p1[props[1]];\n\n    return Math.sqrt((x * x) + (y * y));\n}\n\n/**\n * calculate the angle between two coordinates\n * @param {Object} p1\n * @param {Object} p2\n * @param {Array} [props] containing x and y keys\n * @return {Number} angle\n */\nfunction getAngle(p1, p2, props) {\n    if (!props) {\n        props = PROPS_XY;\n    }\n    var x = p2[props[0]] - p1[props[0]],\n        y = p2[props[1]] - p1[props[1]];\n    return Math.atan2(y, x) * 180 / Math.PI;\n}\n\n/**\n * calculate the rotation degrees between two pointersets\n * @param {Array} start array of pointers\n * @param {Array} end array of pointers\n * @return {Number} rotation\n */\nfunction getRotation(start, end) {\n    return getAngle(end[1], end[0], PROPS_CLIENT_XY) + getAngle(start[1], start[0], PROPS_CLIENT_XY);\n}\n\n/**\n * calculate the scale factor between two pointersets\n * no scale is 1, and goes down to 0 when pinched together, and bigger when pinched out\n * @param {Array} start array of pointers\n * @param {Array} end array of pointers\n * @return {Number} scale\n */\nfunction getScale(start, end) {\n    return getDistance(end[0], end[1], PROPS_CLIENT_XY) / getDistance(start[0], start[1], PROPS_CLIENT_XY);\n}\n\nvar MOUSE_INPUT_MAP = {\n    mousedown: INPUT_START,\n    mousemove: INPUT_MOVE,\n    mouseup: INPUT_END\n};\n\nvar MOUSE_ELEMENT_EVENTS = 'mousedown';\nvar MOUSE_WINDOW_EVENTS = 'mousemove mouseup';\n\n/**\n * Mouse events input\n * @constructor\n * @extends Input\n */\nfunction MouseInput() {\n    this.evEl = MOUSE_ELEMENT_EVENTS;\n    this.evWin = MOUSE_WINDOW_EVENTS;\n\n    this.pressed = false; // mousedown state\n\n    Input.apply(this, arguments);\n}\n\ninherit(MouseInput, Input, {\n    /**\n     * handle mouse events\n     * @param {Object} ev\n     */\n    handler: function MEhandler(ev) {\n        var eventType = MOUSE_INPUT_MAP[ev.type];\n\n        // on start we want to have the left mouse button down\n        if (eventType & INPUT_START && ev.button === 0) {\n            this.pressed = true;\n        }\n\n        if (eventType & INPUT_MOVE && ev.which !== 1) {\n            eventType = INPUT_END;\n        }\n\n        // mouse must be down\n        if (!this.pressed) {\n            return;\n        }\n\n        if (eventType & INPUT_END) {\n            this.pressed = false;\n        }\n\n        this.callback(this.manager, eventType, {\n            pointers: [ev],\n            changedPointers: [ev],\n            pointerType: INPUT_TYPE_MOUSE,\n            srcEvent: ev\n        });\n    }\n});\n\nvar POINTER_INPUT_MAP = {\n    pointerdown: INPUT_START,\n    pointermove: INPUT_MOVE,\n    pointerup: INPUT_END,\n    pointercancel: INPUT_CANCEL,\n    pointerout: INPUT_CANCEL\n};\n\n// in IE10 the pointer types is defined as an enum\nvar IE10_POINTER_TYPE_ENUM = {\n    2: INPUT_TYPE_TOUCH,\n    3: INPUT_TYPE_PEN,\n    4: INPUT_TYPE_MOUSE,\n    5: INPUT_TYPE_KINECT // see https://twitter.com/jacobrossi/status/480596438489890816\n};\n\nvar POINTER_ELEMENT_EVENTS = 'pointerdown';\nvar POINTER_WINDOW_EVENTS = 'pointermove pointerup pointercancel';\n\n// IE10 has prefixed support, and case-sensitive\nif (window.MSPointerEvent && !window.PointerEvent) {\n    POINTER_ELEMENT_EVENTS = 'MSPointerDown';\n    POINTER_WINDOW_EVENTS = 'MSPointerMove MSPointerUp MSPointerCancel';\n}\n\n/**\n * Pointer events input\n * @constructor\n * @extends Input\n */\nfunction PointerEventInput() {\n    this.evEl = POINTER_ELEMENT_EVENTS;\n    this.evWin = POINTER_WINDOW_EVENTS;\n\n    Input.apply(this, arguments);\n\n    this.store = (this.manager.session.pointerEvents = []);\n}\n\ninherit(PointerEventInput, Input, {\n    /**\n     * handle mouse events\n     * @param {Object} ev\n     */\n    handler: function PEhandler(ev) {\n        var store = this.store;\n        var removePointer = false;\n\n        var eventTypeNormalized = ev.type.toLowerCase().replace('ms', '');\n        var eventType = POINTER_INPUT_MAP[eventTypeNormalized];\n        var pointerType = IE10_POINTER_TYPE_ENUM[ev.pointerType] || ev.pointerType;\n\n        var isTouch = (pointerType == INPUT_TYPE_TOUCH);\n\n        // get index of the event in the store\n        var storeIndex = inArray(store, ev.pointerId, 'pointerId');\n\n        // start and mouse must be down\n        if (eventType & INPUT_START && (ev.button === 0 || isTouch)) {\n            if (storeIndex < 0) {\n                store.push(ev);\n                storeIndex = store.length - 1;\n            }\n        } else if (eventType & (INPUT_END | INPUT_CANCEL)) {\n            removePointer = true;\n        }\n\n        // it not found, so the pointer hasn't been down (so it's probably a hover)\n        if (storeIndex < 0) {\n            return;\n        }\n\n        // update the event in the store\n        store[storeIndex] = ev;\n\n        this.callback(this.manager, eventType, {\n            pointers: store,\n            changedPointers: [ev],\n            pointerType: pointerType,\n            srcEvent: ev\n        });\n\n        if (removePointer) {\n            // remove from the store\n            store.splice(storeIndex, 1);\n        }\n    }\n});\n\nvar SINGLE_TOUCH_INPUT_MAP = {\n    touchstart: INPUT_START,\n    touchmove: INPUT_MOVE,\n    touchend: INPUT_END,\n    touchcancel: INPUT_CANCEL\n};\n\nvar SINGLE_TOUCH_TARGET_EVENTS = 'touchstart';\nvar SINGLE_TOUCH_WINDOW_EVENTS = 'touchstart touchmove touchend touchcancel';\n\n/**\n * Touch events input\n * @constructor\n * @extends Input\n */\nfunction SingleTouchInput() {\n    this.evTarget = SINGLE_TOUCH_TARGET_EVENTS;\n    this.evWin = SINGLE_TOUCH_WINDOW_EVENTS;\n    this.started = false;\n\n    Input.apply(this, arguments);\n}\n\ninherit(SingleTouchInput, Input, {\n    handler: function TEhandler(ev) {\n        var type = SINGLE_TOUCH_INPUT_MAP[ev.type];\n\n        // should we handle the touch events?\n        if (type === INPUT_START) {\n            this.started = true;\n        }\n\n        if (!this.started) {\n            return;\n        }\n\n        var touches = normalizeSingleTouches.call(this, ev, type);\n\n        // when done, reset the started state\n        if (type & (INPUT_END | INPUT_CANCEL) && touches[0].length - touches[1].length === 0) {\n            this.started = false;\n        }\n\n        this.callback(this.manager, type, {\n            pointers: touches[0],\n            changedPointers: touches[1],\n            pointerType: INPUT_TYPE_TOUCH,\n            srcEvent: ev\n        });\n    }\n});\n\n/**\n * @this {TouchInput}\n * @param {Object} ev\n * @param {Number} type flag\n * @returns {undefined|Array} [all, changed]\n */\nfunction normalizeSingleTouches(ev, type) {\n    var all = toArray(ev.touches);\n    var changed = toArray(ev.changedTouches);\n\n    if (type & (INPUT_END | INPUT_CANCEL)) {\n        all = uniqueArray(all.concat(changed), 'identifier', true);\n    }\n\n    return [all, changed];\n}\n\nvar TOUCH_INPUT_MAP = {\n    touchstart: INPUT_START,\n    touchmove: INPUT_MOVE,\n    touchend: INPUT_END,\n    touchcancel: INPUT_CANCEL\n};\n\nvar TOUCH_TARGET_EVENTS = 'touchstart touchmove touchend touchcancel';\n\n/**\n * Multi-user touch events input\n * @constructor\n * @extends Input\n */\nfunction TouchInput() {\n    this.evTarget = TOUCH_TARGET_EVENTS;\n    this.targetIds = {};\n\n    Input.apply(this, arguments);\n}\n\ninherit(TouchInput, Input, {\n    handler: function MTEhandler(ev) {\n        var type = TOUCH_INPUT_MAP[ev.type];\n        var touches = getTouches.call(this, ev, type);\n        if (!touches) {\n            return;\n        }\n\n        this.callback(this.manager, type, {\n            pointers: touches[0],\n            changedPointers: touches[1],\n            pointerType: INPUT_TYPE_TOUCH,\n            srcEvent: ev\n        });\n    }\n});\n\n/**\n * @this {TouchInput}\n * @param {Object} ev\n * @param {Number} type flag\n * @returns {undefined|Array} [all, changed]\n */\nfunction getTouches(ev, type) {\n    var allTouches = toArray(ev.touches);\n    var targetIds = this.targetIds;\n\n    // when there is only one touch, the process can be simplified\n    if (type & (INPUT_START | INPUT_MOVE) && allTouches.length === 1) {\n        targetIds[allTouches[0].identifier] = true;\n        return [allTouches, allTouches];\n    }\n\n    var i,\n        targetTouches,\n        changedTouches = toArray(ev.changedTouches),\n        changedTargetTouches = [],\n        target = this.target;\n\n    // get target touches from touches\n    targetTouches = allTouches.filter(function(touch) {\n        return hasParent(touch.target, target);\n    });\n\n    // collect touches\n    if (type === INPUT_START) {\n        i = 0;\n        while (i < targetTouches.length) {\n            targetIds[targetTouches[i].identifier] = true;\n            i++;\n        }\n    }\n\n    // filter changed touches to only contain touches that exist in the collected target ids\n    i = 0;\n    while (i < changedTouches.length) {\n        if (targetIds[changedTouches[i].identifier]) {\n            changedTargetTouches.push(changedTouches[i]);\n        }\n\n        // cleanup removed touches\n        if (type & (INPUT_END | INPUT_CANCEL)) {\n            delete targetIds[changedTouches[i].identifier];\n        }\n        i++;\n    }\n\n    if (!changedTargetTouches.length) {\n        return;\n    }\n\n    return [\n        // merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'\n        uniqueArray(targetTouches.concat(changedTargetTouches), 'identifier', true),\n        changedTargetTouches\n    ];\n}\n\n/**\n * Combined touch and mouse input\n *\n * Touch has a higher priority then mouse, and while touching no mouse events are allowed.\n * This because touch devices also emit mouse events while doing a touch.\n *\n * @constructor\n * @extends Input\n */\n\nvar DEDUP_TIMEOUT = 2500;\nvar DEDUP_DISTANCE = 25;\n\nfunction TouchMouseInput() {\n    Input.apply(this, arguments);\n\n    var handler = bindFn(this.handler, this);\n    this.touch = new TouchInput(this.manager, handler);\n    this.mouse = new MouseInput(this.manager, handler);\n\n    this.primaryTouch = null;\n    this.lastTouches = [];\n}\n\ninherit(TouchMouseInput, Input, {\n    /**\n     * handle mouse and touch events\n     * @param {Hammer} manager\n     * @param {String} inputEvent\n     * @param {Object} inputData\n     */\n    handler: function TMEhandler(manager, inputEvent, inputData) {\n        var isTouch = (inputData.pointerType == INPUT_TYPE_TOUCH),\n            isMouse = (inputData.pointerType == INPUT_TYPE_MOUSE);\n\n        if (isMouse && inputData.sourceCapabilities && inputData.sourceCapabilities.firesTouchEvents) {\n            return;\n        }\n\n        // when we're in a touch event, record touches to  de-dupe synthetic mouse event\n        if (isTouch) {\n            recordTouches.call(this, inputEvent, inputData);\n        } else if (isMouse && isSyntheticEvent.call(this, inputData)) {\n            return;\n        }\n\n        this.callback(manager, inputEvent, inputData);\n    },\n\n    /**\n     * remove the event listeners\n     */\n    destroy: function destroy() {\n        this.touch.destroy();\n        this.mouse.destroy();\n    }\n});\n\nfunction recordTouches(eventType, eventData) {\n    if (eventType & INPUT_START) {\n        this.primaryTouch = eventData.changedPointers[0].identifier;\n        setLastTouch.call(this, eventData);\n    } else if (eventType & (INPUT_END | INPUT_CANCEL)) {\n        setLastTouch.call(this, eventData);\n    }\n}\n\nfunction setLastTouch(eventData) {\n    var touch = eventData.changedPointers[0];\n\n    if (touch.identifier === this.primaryTouch) {\n        var lastTouch = {x: touch.clientX, y: touch.clientY};\n        this.lastTouches.push(lastTouch);\n        var lts = this.lastTouches;\n        var removeLastTouch = function() {\n            var i = lts.indexOf(lastTouch);\n            if (i > -1) {\n                lts.splice(i, 1);\n            }\n        };\n        setTimeout(removeLastTouch, DEDUP_TIMEOUT);\n    }\n}\n\nfunction isSyntheticEvent(eventData) {\n    var x = eventData.srcEvent.clientX, y = eventData.srcEvent.clientY;\n    for (var i = 0; i < this.lastTouches.length; i++) {\n        var t = this.lastTouches[i];\n        var dx = Math.abs(x - t.x), dy = Math.abs(y - t.y);\n        if (dx <= DEDUP_DISTANCE && dy <= DEDUP_DISTANCE) {\n            return true;\n        }\n    }\n    return false;\n}\n\nvar PREFIXED_TOUCH_ACTION = prefixed(TEST_ELEMENT.style, 'touchAction');\nvar NATIVE_TOUCH_ACTION = PREFIXED_TOUCH_ACTION !== undefined;\n\n// magical touchAction value\nvar TOUCH_ACTION_COMPUTE = 'compute';\nvar TOUCH_ACTION_AUTO = 'auto';\nvar TOUCH_ACTION_MANIPULATION = 'manipulation'; // not implemented\nvar TOUCH_ACTION_NONE = 'none';\nvar TOUCH_ACTION_PAN_X = 'pan-x';\nvar TOUCH_ACTION_PAN_Y = 'pan-y';\nvar TOUCH_ACTION_MAP = getTouchActionProps();\n\n/**\n * Touch Action\n * sets the touchAction property or uses the js alternative\n * @param {Manager} manager\n * @param {String} value\n * @constructor\n */\nfunction TouchAction(manager, value) {\n    this.manager = manager;\n    this.set(value);\n}\n\nTouchAction.prototype = {\n    /**\n     * set the touchAction value on the element or enable the polyfill\n     * @param {String} value\n     */\n    set: function(value) {\n        // find out the touch-action by the event handlers\n        if (value == TOUCH_ACTION_COMPUTE) {\n            value = this.compute();\n        }\n\n        if (NATIVE_TOUCH_ACTION && this.manager.element.style && TOUCH_ACTION_MAP[value]) {\n            this.manager.element.style[PREFIXED_TOUCH_ACTION] = value;\n        }\n        this.actions = value.toLowerCase().trim();\n    },\n\n    /**\n     * just re-set the touchAction value\n     */\n    update: function() {\n        this.set(this.manager.options.touchAction);\n    },\n\n    /**\n     * compute the value for the touchAction property based on the recognizer's settings\n     * @returns {String} value\n     */\n    compute: function() {\n        var actions = [];\n        each(this.manager.recognizers, function(recognizer) {\n            if (boolOrFn(recognizer.options.enable, [recognizer])) {\n                actions = actions.concat(recognizer.getTouchAction());\n            }\n        });\n        return cleanTouchActions(actions.join(' '));\n    },\n\n    /**\n     * this method is called on each input cycle and provides the preventing of the browser behavior\n     * @param {Object} input\n     */\n    preventDefaults: function(input) {\n        var srcEvent = input.srcEvent;\n        var direction = input.offsetDirection;\n\n        // if the touch action did prevented once this session\n        if (this.manager.session.prevented) {\n            srcEvent.preventDefault();\n            return;\n        }\n\n        var actions = this.actions;\n        var hasNone = inStr(actions, TOUCH_ACTION_NONE) && !TOUCH_ACTION_MAP[TOUCH_ACTION_NONE];\n        var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_Y];\n        var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_X];\n\n        if (hasNone) {\n            //do not prevent defaults if this is a tap gesture\n\n            var isTapPointer = input.pointers.length === 1;\n            var isTapMovement = input.distance < 2;\n            var isTapTouchTime = input.deltaTime < 250;\n\n            if (isTapPointer && isTapMovement && isTapTouchTime) {\n                return;\n            }\n        }\n\n        if (hasPanX && hasPanY) {\n            // `pan-x pan-y` means browser handles all scrolling/panning, do not prevent\n            return;\n        }\n\n        if (hasNone ||\n            (hasPanY && direction & DIRECTION_HORIZONTAL) ||\n            (hasPanX && direction & DIRECTION_VERTICAL)) {\n            return this.preventSrc(srcEvent);\n        }\n    },\n\n    /**\n     * call preventDefault to prevent the browser's default behavior (scrolling in most cases)\n     * @param {Object} srcEvent\n     */\n    preventSrc: function(srcEvent) {\n        this.manager.session.prevented = true;\n        srcEvent.preventDefault();\n    }\n};\n\n/**\n * when the touchActions are collected they are not a valid value, so we need to clean things up. *\n * @param {String} actions\n * @returns {*}\n */\nfunction cleanTouchActions(actions) {\n    // none\n    if (inStr(actions, TOUCH_ACTION_NONE)) {\n        return TOUCH_ACTION_NONE;\n    }\n\n    var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X);\n    var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y);\n\n    // if both pan-x and pan-y are set (different recognizers\n    // for different directions, e.g. horizontal pan but vertical swipe?)\n    // we need none (as otherwise with pan-x pan-y combined none of these\n    // recognizers will work, since the browser would handle all panning\n    if (hasPanX && hasPanY) {\n        return TOUCH_ACTION_NONE;\n    }\n\n    // pan-x OR pan-y\n    if (hasPanX || hasPanY) {\n        return hasPanX ? TOUCH_ACTION_PAN_X : TOUCH_ACTION_PAN_Y;\n    }\n\n    // manipulation\n    if (inStr(actions, TOUCH_ACTION_MANIPULATION)) {\n        return TOUCH_ACTION_MANIPULATION;\n    }\n\n    return TOUCH_ACTION_AUTO;\n}\n\nfunction getTouchActionProps() {\n    if (!NATIVE_TOUCH_ACTION) {\n        return false;\n    }\n    var touchMap = {};\n    var cssSupports = window.CSS && window.CSS.supports;\n    ['auto', 'manipulation', 'pan-y', 'pan-x', 'pan-x pan-y', 'none'].forEach(function(val) {\n\n        // If css.supports is not supported but there is native touch-action assume it supports\n        // all values. This is the case for IE 10 and 11.\n        touchMap[val] = cssSupports ? window.CSS.supports('touch-action', val) : true;\n    });\n    return touchMap;\n}\n\n/**\n * Recognizer flow explained; *\n * All recognizers have the initial state of POSSIBLE when a input session starts.\n * The definition of a input session is from the first input until the last input, with all it's movement in it. *\n * Example session for mouse-input: mousedown -> mousemove -> mouseup\n *\n * On each recognizing cycle (see Manager.recognize) the .recognize() method is executed\n * which determines with state it should be.\n *\n * If the recognizer has the state FAILED, CANCELLED or RECOGNIZED (equals ENDED), it is reset to\n * POSSIBLE to give it another change on the next cycle.\n *\n *               Possible\n *                  |\n *            +-----+---------------+\n *            |                     |\n *      +-----+-----+               |\n *      |           |               |\n *   Failed      Cancelled          |\n *                          +-------+------+\n *                          |              |\n *                      Recognized       Began\n *                                         |\n *                                      Changed\n *                                         |\n *                                  Ended/Recognized\n */\nvar STATE_POSSIBLE = 1;\nvar STATE_BEGAN = 2;\nvar STATE_CHANGED = 4;\nvar STATE_ENDED = 8;\nvar STATE_RECOGNIZED = STATE_ENDED;\nvar STATE_CANCELLED = 16;\nvar STATE_FAILED = 32;\n\n/**\n * Recognizer\n * Every recognizer needs to extend from this class.\n * @constructor\n * @param {Object} options\n */\nfunction Recognizer(options) {\n    this.options = assign({}, this.defaults, options || {});\n\n    this.id = uniqueId();\n\n    this.manager = null;\n\n    // default is enable true\n    this.options.enable = ifUndefined(this.options.enable, true);\n\n    this.state = STATE_POSSIBLE;\n\n    this.simultaneous = {};\n    this.requireFail = [];\n}\n\nRecognizer.prototype = {\n    /**\n     * @virtual\n     * @type {Object}\n     */\n    defaults: {},\n\n    /**\n     * set options\n     * @param {Object} options\n     * @return {Recognizer}\n     */\n    set: function(options) {\n        assign(this.options, options);\n\n        // also update the touchAction, in case something changed about the directions/enabled state\n        this.manager && this.manager.touchAction.update();\n        return this;\n    },\n\n    /**\n     * recognize simultaneous with an other recognizer.\n     * @param {Recognizer} otherRecognizer\n     * @returns {Recognizer} this\n     */\n    recognizeWith: function(otherRecognizer) {\n        if (invokeArrayArg(otherRecognizer, 'recognizeWith', this)) {\n            return this;\n        }\n\n        var simultaneous = this.simultaneous;\n        otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n        if (!simultaneous[otherRecognizer.id]) {\n            simultaneous[otherRecognizer.id] = otherRecognizer;\n            otherRecognizer.recognizeWith(this);\n        }\n        return this;\n    },\n\n    /**\n     * drop the simultaneous link. it doesnt remove the link on the other recognizer.\n     * @param {Recognizer} otherRecognizer\n     * @returns {Recognizer} this\n     */\n    dropRecognizeWith: function(otherRecognizer) {\n        if (invokeArrayArg(otherRecognizer, 'dropRecognizeWith', this)) {\n            return this;\n        }\n\n        otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n        delete this.simultaneous[otherRecognizer.id];\n        return this;\n    },\n\n    /**\n     * recognizer can only run when an other is failing\n     * @param {Recognizer} otherRecognizer\n     * @returns {Recognizer} this\n     */\n    requireFailure: function(otherRecognizer) {\n        if (invokeArrayArg(otherRecognizer, 'requireFailure', this)) {\n            return this;\n        }\n\n        var requireFail = this.requireFail;\n        otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n        if (inArray(requireFail, otherRecognizer) === -1) {\n            requireFail.push(otherRecognizer);\n            otherRecognizer.requireFailure(this);\n        }\n        return this;\n    },\n\n    /**\n     * drop the requireFailure link. it does not remove the link on the other recognizer.\n     * @param {Recognizer} otherRecognizer\n     * @returns {Recognizer} this\n     */\n    dropRequireFailure: function(otherRecognizer) {\n        if (invokeArrayArg(otherRecognizer, 'dropRequireFailure', this)) {\n            return this;\n        }\n\n        otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n        var index = inArray(this.requireFail, otherRecognizer);\n        if (index > -1) {\n            this.requireFail.splice(index, 1);\n        }\n        return this;\n    },\n\n    /**\n     * has require failures boolean\n     * @returns {boolean}\n     */\n    hasRequireFailures: function() {\n        return this.requireFail.length > 0;\n    },\n\n    /**\n     * if the recognizer can recognize simultaneous with an other recognizer\n     * @param {Recognizer} otherRecognizer\n     * @returns {Boolean}\n     */\n    canRecognizeWith: function(otherRecognizer) {\n        return !!this.simultaneous[otherRecognizer.id];\n    },\n\n    /**\n     * You should use `tryEmit` instead of `emit` directly to check\n     * that all the needed recognizers has failed before emitting.\n     * @param {Object} input\n     */\n    emit: function(input) {\n        var self = this;\n        var state = this.state;\n\n        function emit(event) {\n            self.manager.emit(event, input);\n        }\n\n        // 'panstart' and 'panmove'\n        if (state < STATE_ENDED) {\n            emit(self.options.event + stateStr(state));\n        }\n\n        emit(self.options.event); // simple 'eventName' events\n\n        if (input.additionalEvent) { // additional event(panleft, panright, pinchin, pinchout...)\n            emit(input.additionalEvent);\n        }\n\n        // panend and pancancel\n        if (state >= STATE_ENDED) {\n            emit(self.options.event + stateStr(state));\n        }\n    },\n\n    /**\n     * Check that all the require failure recognizers has failed,\n     * if true, it emits a gesture event,\n     * otherwise, setup the state to FAILED.\n     * @param {Object} input\n     */\n    tryEmit: function(input) {\n        if (this.canEmit()) {\n            return this.emit(input);\n        }\n        // it's failing anyway\n        this.state = STATE_FAILED;\n    },\n\n    /**\n     * can we emit?\n     * @returns {boolean}\n     */\n    canEmit: function() {\n        var i = 0;\n        while (i < this.requireFail.length) {\n            if (!(this.requireFail[i].state & (STATE_FAILED | STATE_POSSIBLE))) {\n                return false;\n            }\n            i++;\n        }\n        return true;\n    },\n\n    /**\n     * update the recognizer\n     * @param {Object} inputData\n     */\n    recognize: function(inputData) {\n        // make a new copy of the inputData\n        // so we can change the inputData without messing up the other recognizers\n        var inputDataClone = assign({}, inputData);\n\n        // is is enabled and allow recognizing?\n        if (!boolOrFn(this.options.enable, [this, inputDataClone])) {\n            this.reset();\n            this.state = STATE_FAILED;\n            return;\n        }\n\n        // reset when we've reached the end\n        if (this.state & (STATE_RECOGNIZED | STATE_CANCELLED | STATE_FAILED)) {\n            this.state = STATE_POSSIBLE;\n        }\n\n        this.state = this.process(inputDataClone);\n\n        // the recognizer has recognized a gesture\n        // so trigger an event\n        if (this.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED | STATE_CANCELLED)) {\n            this.tryEmit(inputDataClone);\n        }\n    },\n\n    /**\n     * return the state of the recognizer\n     * the actual recognizing happens in this method\n     * @virtual\n     * @param {Object} inputData\n     * @returns {Const} STATE\n     */\n    process: function(inputData) { }, // jshint ignore:line\n\n    /**\n     * return the preferred touch-action\n     * @virtual\n     * @returns {Array}\n     */\n    getTouchAction: function() { },\n\n    /**\n     * called when the gesture isn't allowed to recognize\n     * like when another is being recognized or it is disabled\n     * @virtual\n     */\n    reset: function() { }\n};\n\n/**\n * get a usable string, used as event postfix\n * @param {Const} state\n * @returns {String} state\n */\nfunction stateStr(state) {\n    if (state & STATE_CANCELLED) {\n        return 'cancel';\n    } else if (state & STATE_ENDED) {\n        return 'end';\n    } else if (state & STATE_CHANGED) {\n        return 'move';\n    } else if (state & STATE_BEGAN) {\n        return 'start';\n    }\n    return '';\n}\n\n/**\n * direction cons to string\n * @param {Const} direction\n * @returns {String}\n */\nfunction directionStr(direction) {\n    if (direction == DIRECTION_DOWN) {\n        return 'down';\n    } else if (direction == DIRECTION_UP) {\n        return 'up';\n    } else if (direction == DIRECTION_LEFT) {\n        return 'left';\n    } else if (direction == DIRECTION_RIGHT) {\n        return 'right';\n    }\n    return '';\n}\n\n/**\n * get a recognizer by name if it is bound to a manager\n * @param {Recognizer|String} otherRecognizer\n * @param {Recognizer} recognizer\n * @returns {Recognizer}\n */\nfunction getRecognizerByNameIfManager(otherRecognizer, recognizer) {\n    var manager = recognizer.manager;\n    if (manager) {\n        return manager.get(otherRecognizer);\n    }\n    return otherRecognizer;\n}\n\n/**\n * This recognizer is just used as a base for the simple attribute recognizers.\n * @constructor\n * @extends Recognizer\n */\nfunction AttrRecognizer() {\n    Recognizer.apply(this, arguments);\n}\n\ninherit(AttrRecognizer, Recognizer, {\n    /**\n     * @namespace\n     * @memberof AttrRecognizer\n     */\n    defaults: {\n        /**\n         * @type {Number}\n         * @default 1\n         */\n        pointers: 1\n    },\n\n    /**\n     * Used to check if it the recognizer receives valid input, like input.distance > 10.\n     * @memberof AttrRecognizer\n     * @param {Object} input\n     * @returns {Boolean} recognized\n     */\n    attrTest: function(input) {\n        var optionPointers = this.options.pointers;\n        return optionPointers === 0 || input.pointers.length === optionPointers;\n    },\n\n    /**\n     * Process the input and return the state for the recognizer\n     * @memberof AttrRecognizer\n     * @param {Object} input\n     * @returns {*} State\n     */\n    process: function(input) {\n        var state = this.state;\n        var eventType = input.eventType;\n\n        var isRecognized = state & (STATE_BEGAN | STATE_CHANGED);\n        var isValid = this.attrTest(input);\n\n        // on cancel input and we've recognized before, return STATE_CANCELLED\n        if (isRecognized && (eventType & INPUT_CANCEL || !isValid)) {\n            return state | STATE_CANCELLED;\n        } else if (isRecognized || isValid) {\n            if (eventType & INPUT_END) {\n                return state | STATE_ENDED;\n            } else if (!(state & STATE_BEGAN)) {\n                return STATE_BEGAN;\n            }\n            return state | STATE_CHANGED;\n        }\n        return STATE_FAILED;\n    }\n});\n\n/**\n * Pan\n * Recognized when the pointer is down and moved in the allowed direction.\n * @constructor\n * @extends AttrRecognizer\n */\nfunction PanRecognizer() {\n    AttrRecognizer.apply(this, arguments);\n\n    this.pX = null;\n    this.pY = null;\n}\n\ninherit(PanRecognizer, AttrRecognizer, {\n    /**\n     * @namespace\n     * @memberof PanRecognizer\n     */\n    defaults: {\n        event: 'pan',\n        threshold: 10,\n        pointers: 1,\n        direction: DIRECTION_ALL\n    },\n\n    getTouchAction: function() {\n        var direction = this.options.direction;\n        var actions = [];\n        if (direction & DIRECTION_HORIZONTAL) {\n            actions.push(TOUCH_ACTION_PAN_Y);\n        }\n        if (direction & DIRECTION_VERTICAL) {\n            actions.push(TOUCH_ACTION_PAN_X);\n        }\n        return actions;\n    },\n\n    directionTest: function(input) {\n        var options = this.options;\n        var hasMoved = true;\n        var distance = input.distance;\n        var direction = input.direction;\n        var x = input.deltaX;\n        var y = input.deltaY;\n\n        // lock to axis?\n        if (!(direction & options.direction)) {\n            if (options.direction & DIRECTION_HORIZONTAL) {\n                direction = (x === 0) ? DIRECTION_NONE : (x < 0) ? DIRECTION_LEFT : DIRECTION_RIGHT;\n                hasMoved = x != this.pX;\n                distance = Math.abs(input.deltaX);\n            } else {\n                direction = (y === 0) ? DIRECTION_NONE : (y < 0) ? DIRECTION_UP : DIRECTION_DOWN;\n                hasMoved = y != this.pY;\n                distance = Math.abs(input.deltaY);\n            }\n        }\n        input.direction = direction;\n        return hasMoved && distance > options.threshold && direction & options.direction;\n    },\n\n    attrTest: function(input) {\n        return AttrRecognizer.prototype.attrTest.call(this, input) &&\n            (this.state & STATE_BEGAN || (!(this.state & STATE_BEGAN) && this.directionTest(input)));\n    },\n\n    emit: function(input) {\n\n        this.pX = input.deltaX;\n        this.pY = input.deltaY;\n\n        var direction = directionStr(input.direction);\n\n        if (direction) {\n            input.additionalEvent = this.options.event + direction;\n        }\n        this._super.emit.call(this, input);\n    }\n});\n\n/**\n * Pinch\n * Recognized when two or more pointers are moving toward (zoom-in) or away from each other (zoom-out).\n * @constructor\n * @extends AttrRecognizer\n */\nfunction PinchRecognizer() {\n    AttrRecognizer.apply(this, arguments);\n}\n\ninherit(PinchRecognizer, AttrRecognizer, {\n    /**\n     * @namespace\n     * @memberof PinchRecognizer\n     */\n    defaults: {\n        event: 'pinch',\n        threshold: 0,\n        pointers: 2\n    },\n\n    getTouchAction: function() {\n        return [TOUCH_ACTION_NONE];\n    },\n\n    attrTest: function(input) {\n        return this._super.attrTest.call(this, input) &&\n            (Math.abs(input.scale - 1) > this.options.threshold || this.state & STATE_BEGAN);\n    },\n\n    emit: function(input) {\n        if (input.scale !== 1) {\n            var inOut = input.scale < 1 ? 'in' : 'out';\n            input.additionalEvent = this.options.event + inOut;\n        }\n        this._super.emit.call(this, input);\n    }\n});\n\n/**\n * Press\n * Recognized when the pointer is down for x ms without any movement.\n * @constructor\n * @extends Recognizer\n */\nfunction PressRecognizer() {\n    Recognizer.apply(this, arguments);\n\n    this._timer = null;\n    this._input = null;\n}\n\ninherit(PressRecognizer, Recognizer, {\n    /**\n     * @namespace\n     * @memberof PressRecognizer\n     */\n    defaults: {\n        event: 'press',\n        pointers: 1,\n        time: 251, // minimal time of the pointer to be pressed\n        threshold: 9 // a minimal movement is ok, but keep it low\n    },\n\n    getTouchAction: function() {\n        return [TOUCH_ACTION_AUTO];\n    },\n\n    process: function(input) {\n        var options = this.options;\n        var validPointers = input.pointers.length === options.pointers;\n        var validMovement = input.distance < options.threshold;\n        var validTime = input.deltaTime > options.time;\n\n        this._input = input;\n\n        // we only allow little movement\n        // and we've reached an end event, so a tap is possible\n        if (!validMovement || !validPointers || (input.eventType & (INPUT_END | INPUT_CANCEL) && !validTime)) {\n            this.reset();\n        } else if (input.eventType & INPUT_START) {\n            this.reset();\n            this._timer = setTimeoutContext(function() {\n                this.state = STATE_RECOGNIZED;\n                this.tryEmit();\n            }, options.time, this);\n        } else if (input.eventType & INPUT_END) {\n            return STATE_RECOGNIZED;\n        }\n        return STATE_FAILED;\n    },\n\n    reset: function() {\n        clearTimeout(this._timer);\n    },\n\n    emit: function(input) {\n        if (this.state !== STATE_RECOGNIZED) {\n            return;\n        }\n\n        if (input && (input.eventType & INPUT_END)) {\n            this.manager.emit(this.options.event + 'up', input);\n        } else {\n            this._input.timeStamp = now();\n            this.manager.emit(this.options.event, this._input);\n        }\n    }\n});\n\n/**\n * Rotate\n * Recognized when two or more pointer are moving in a circular motion.\n * @constructor\n * @extends AttrRecognizer\n */\nfunction RotateRecognizer() {\n    AttrRecognizer.apply(this, arguments);\n}\n\ninherit(RotateRecognizer, AttrRecognizer, {\n    /**\n     * @namespace\n     * @memberof RotateRecognizer\n     */\n    defaults: {\n        event: 'rotate',\n        threshold: 0,\n        pointers: 2\n    },\n\n    getTouchAction: function() {\n        return [TOUCH_ACTION_NONE];\n    },\n\n    attrTest: function(input) {\n        return this._super.attrTest.call(this, input) &&\n            (Math.abs(input.rotation) > this.options.threshold || this.state & STATE_BEGAN);\n    }\n});\n\n/**\n * Swipe\n * Recognized when the pointer is moving fast (velocity), with enough distance in the allowed direction.\n * @constructor\n * @extends AttrRecognizer\n */\nfunction SwipeRecognizer() {\n    AttrRecognizer.apply(this, arguments);\n}\n\ninherit(SwipeRecognizer, AttrRecognizer, {\n    /**\n     * @namespace\n     * @memberof SwipeRecognizer\n     */\n    defaults: {\n        event: 'swipe',\n        threshold: 10,\n        velocity: 0.3,\n        direction: DIRECTION_HORIZONTAL | DIRECTION_VERTICAL,\n        pointers: 1\n    },\n\n    getTouchAction: function() {\n        return PanRecognizer.prototype.getTouchAction.call(this);\n    },\n\n    attrTest: function(input) {\n        var direction = this.options.direction;\n        var velocity;\n\n        if (direction & (DIRECTION_HORIZONTAL | DIRECTION_VERTICAL)) {\n            velocity = input.overallVelocity;\n        } else if (direction & DIRECTION_HORIZONTAL) {\n            velocity = input.overallVelocityX;\n        } else if (direction & DIRECTION_VERTICAL) {\n            velocity = input.overallVelocityY;\n        }\n\n        return this._super.attrTest.call(this, input) &&\n            direction & input.offsetDirection &&\n            input.distance > this.options.threshold &&\n            input.maxPointers == this.options.pointers &&\n            abs(velocity) > this.options.velocity && input.eventType & INPUT_END;\n    },\n\n    emit: function(input) {\n        var direction = directionStr(input.offsetDirection);\n        if (direction) {\n            this.manager.emit(this.options.event + direction, input);\n        }\n\n        this.manager.emit(this.options.event, input);\n    }\n});\n\n/**\n * A tap is ecognized when the pointer is doing a small tap/click. Multiple taps are recognized if they occur\n * between the given interval and position. The delay option can be used to recognize multi-taps without firing\n * a single tap.\n *\n * The eventData from the emitted event contains the property `tapCount`, which contains the amount of\n * multi-taps being recognized.\n * @constructor\n * @extends Recognizer\n */\nfunction TapRecognizer() {\n    Recognizer.apply(this, arguments);\n\n    // previous time and center,\n    // used for tap counting\n    this.pTime = false;\n    this.pCenter = false;\n\n    this._timer = null;\n    this._input = null;\n    this.count = 0;\n}\n\ninherit(TapRecognizer, Recognizer, {\n    /**\n     * @namespace\n     * @memberof PinchRecognizer\n     */\n    defaults: {\n        event: 'tap',\n        pointers: 1,\n        taps: 1,\n        interval: 300, // max time between the multi-tap taps\n        time: 250, // max time of the pointer to be down (like finger on the screen)\n        threshold: 9, // a minimal movement is ok, but keep it low\n        posThreshold: 10 // a multi-tap can be a bit off the initial position\n    },\n\n    getTouchAction: function() {\n        return [TOUCH_ACTION_MANIPULATION];\n    },\n\n    process: function(input) {\n        var options = this.options;\n\n        var validPointers = input.pointers.length === options.pointers;\n        var validMovement = input.distance < options.threshold;\n        var validTouchTime = input.deltaTime < options.time;\n\n        this.reset();\n\n        if ((input.eventType & INPUT_START) && (this.count === 0)) {\n            return this.failTimeout();\n        }\n\n        // we only allow little movement\n        // and we've reached an end event, so a tap is possible\n        if (validMovement && validTouchTime && validPointers) {\n            if (input.eventType != INPUT_END) {\n                return this.failTimeout();\n            }\n\n            var validInterval = this.pTime ? (input.timeStamp - this.pTime < options.interval) : true;\n            var validMultiTap = !this.pCenter || getDistance(this.pCenter, input.center) < options.posThreshold;\n\n            this.pTime = input.timeStamp;\n            this.pCenter = input.center;\n\n            if (!validMultiTap || !validInterval) {\n                this.count = 1;\n            } else {\n                this.count += 1;\n            }\n\n            this._input = input;\n\n            // if tap count matches we have recognized it,\n            // else it has began recognizing...\n            var tapCount = this.count % options.taps;\n            if (tapCount === 0) {\n                // no failing requirements, immediately trigger the tap event\n                // or wait as long as the multitap interval to trigger\n                if (!this.hasRequireFailures()) {\n                    return STATE_RECOGNIZED;\n                } else {\n                    this._timer = setTimeoutContext(function() {\n                        this.state = STATE_RECOGNIZED;\n                        this.tryEmit();\n                    }, options.interval, this);\n                    return STATE_BEGAN;\n                }\n            }\n        }\n        return STATE_FAILED;\n    },\n\n    failTimeout: function() {\n        this._timer = setTimeoutContext(function() {\n            this.state = STATE_FAILED;\n        }, this.options.interval, this);\n        return STATE_FAILED;\n    },\n\n    reset: function() {\n        clearTimeout(this._timer);\n    },\n\n    emit: function() {\n        if (this.state == STATE_RECOGNIZED) {\n            this._input.tapCount = this.count;\n            this.manager.emit(this.options.event, this._input);\n        }\n    }\n});\n\n/**\n * Simple way to create a manager with a default set of recognizers.\n * @param {HTMLElement} element\n * @param {Object} [options]\n * @constructor\n */\nfunction Hammer(element, options) {\n    options = options || {};\n    options.recognizers = ifUndefined(options.recognizers, Hammer.defaults.preset);\n    return new Manager(element, options);\n}\n\n/**\n * @const {string}\n */\nHammer.VERSION = '2.0.7';\n\n/**\n * default settings\n * @namespace\n */\nHammer.defaults = {\n    /**\n     * set if DOM events are being triggered.\n     * But this is slower and unused by simple implementations, so disabled by default.\n     * @type {Boolean}\n     * @default false\n     */\n    domEvents: false,\n\n    /**\n     * The value for the touchAction property/fallback.\n     * When set to `compute` it will magically set the correct value based on the added recognizers.\n     * @type {String}\n     * @default compute\n     */\n    touchAction: TOUCH_ACTION_COMPUTE,\n\n    /**\n     * @type {Boolean}\n     * @default true\n     */\n    enable: true,\n\n    /**\n     * EXPERIMENTAL FEATURE -- can be removed/changed\n     * Change the parent input target element.\n     * If Null, then it is being set the to main element.\n     * @type {Null|EventTarget}\n     * @default null\n     */\n    inputTarget: null,\n\n    /**\n     * force an input class\n     * @type {Null|Function}\n     * @default null\n     */\n    inputClass: null,\n\n    /**\n     * Default recognizer setup when calling `Hammer()`\n     * When creating a new Manager these will be skipped.\n     * @type {Array}\n     */\n    preset: [\n        // RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]\n        [RotateRecognizer, {enable: false}],\n        [PinchRecognizer, {enable: false}, ['rotate']],\n        [SwipeRecognizer, {direction: DIRECTION_HORIZONTAL}],\n        [PanRecognizer, {direction: DIRECTION_HORIZONTAL}, ['swipe']],\n        [TapRecognizer],\n        [TapRecognizer, {event: 'doubletap', taps: 2}, ['tap']],\n        [PressRecognizer]\n    ],\n\n    /**\n     * Some CSS properties can be used to improve the working of Hammer.\n     * Add them to this method and they will be set when creating a new Manager.\n     * @namespace\n     */\n    cssProps: {\n        /**\n         * Disables text selection to improve the dragging gesture. Mainly for desktop browsers.\n         * @type {String}\n         * @default 'none'\n         */\n        userSelect: 'none',\n\n        /**\n         * Disable the Windows Phone grippers when pressing an element.\n         * @type {String}\n         * @default 'none'\n         */\n        touchSelect: 'none',\n\n        /**\n         * Disables the default callout shown when you touch and hold a touch target.\n         * On iOS, when you touch and hold a touch target such as a link, Safari displays\n         * a callout containing information about the link. This property allows you to disable that callout.\n         * @type {String}\n         * @default 'none'\n         */\n        touchCallout: 'none',\n\n        /**\n         * Specifies whether zooming is enabled. Used by IE10>\n         * @type {String}\n         * @default 'none'\n         */\n        contentZooming: 'none',\n\n        /**\n         * Specifies that an entire element should be draggable instead of its contents. Mainly for desktop browsers.\n         * @type {String}\n         * @default 'none'\n         */\n        userDrag: 'none',\n\n        /**\n         * Overrides the highlight color shown when the user taps a link or a JavaScript\n         * clickable element in iOS. This property obeys the alpha value, if specified.\n         * @type {String}\n         * @default 'rgba(0,0,0,0)'\n         */\n        tapHighlightColor: 'rgba(0,0,0,0)'\n    }\n};\n\nvar STOP = 1;\nvar FORCED_STOP = 2;\n\n/**\n * Manager\n * @param {HTMLElement} element\n * @param {Object} [options]\n * @constructor\n */\nfunction Manager(element, options) {\n    this.options = assign({}, Hammer.defaults, options || {});\n\n    this.options.inputTarget = this.options.inputTarget || element;\n\n    this.handlers = {};\n    this.session = {};\n    this.recognizers = [];\n    this.oldCssProps = {};\n\n    this.element = element;\n    this.input = createInputInstance(this);\n    this.touchAction = new TouchAction(this, this.options.touchAction);\n\n    toggleCssProps(this, true);\n\n    each(this.options.recognizers, function(item) {\n        var recognizer = this.add(new (item[0])(item[1]));\n        item[2] && recognizer.recognizeWith(item[2]);\n        item[3] && recognizer.requireFailure(item[3]);\n    }, this);\n}\n\nManager.prototype = {\n    /**\n     * set options\n     * @param {Object} options\n     * @returns {Manager}\n     */\n    set: function(options) {\n        assign(this.options, options);\n\n        // Options that need a little more setup\n        if (options.touchAction) {\n            this.touchAction.update();\n        }\n        if (options.inputTarget) {\n            // Clean up existing event listeners and reinitialize\n            this.input.destroy();\n            this.input.target = options.inputTarget;\n            this.input.init();\n        }\n        return this;\n    },\n\n    /**\n     * stop recognizing for this session.\n     * This session will be discarded, when a new [input]start event is fired.\n     * When forced, the recognizer cycle is stopped immediately.\n     * @param {Boolean} [force]\n     */\n    stop: function(force) {\n        this.session.stopped = force ? FORCED_STOP : STOP;\n    },\n\n    /**\n     * run the recognizers!\n     * called by the inputHandler function on every movement of the pointers (touches)\n     * it walks through all the recognizers and tries to detect the gesture that is being made\n     * @param {Object} inputData\n     */\n    recognize: function(inputData) {\n        var session = this.session;\n        if (session.stopped) {\n            return;\n        }\n\n        // run the touch-action polyfill\n        this.touchAction.preventDefaults(inputData);\n\n        var recognizer;\n        var recognizers = this.recognizers;\n\n        // this holds the recognizer that is being recognized.\n        // so the recognizer's state needs to be BEGAN, CHANGED, ENDED or RECOGNIZED\n        // if no recognizer is detecting a thing, it is set to `null`\n        var curRecognizer = session.curRecognizer;\n\n        // reset when the last recognizer is recognized\n        // or when we're in a new session\n        if (!curRecognizer || (curRecognizer && curRecognizer.state & STATE_RECOGNIZED)) {\n            curRecognizer = session.curRecognizer = null;\n        }\n\n        var i = 0;\n        while (i < recognizers.length) {\n            recognizer = recognizers[i];\n\n            // find out if we are allowed try to recognize the input for this one.\n            // 1.   allow if the session is NOT forced stopped (see the .stop() method)\n            // 2.   allow if we still haven't recognized a gesture in this session, or the this recognizer is the one\n            //      that is being recognized.\n            // 3.   allow if the recognizer is allowed to run simultaneous with the current recognized recognizer.\n            //      this can be setup with the `recognizeWith()` method on the recognizer.\n            if (session.stopped !== FORCED_STOP && ( // 1\n                    !curRecognizer || recognizer == curRecognizer || // 2\n                    recognizer.canRecognizeWith(curRecognizer))) { // 3\n                recognizer.recognize(inputData);\n            } else {\n                recognizer.reset();\n            }\n\n            // if the recognizer has been recognizing the input as a valid gesture, we want to store this one as the\n            // current active recognizer. but only if we don't already have an active recognizer\n            if (!curRecognizer && recognizer.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED)) {\n                curRecognizer = session.curRecognizer = recognizer;\n            }\n            i++;\n        }\n    },\n\n    /**\n     * get a recognizer by its event name.\n     * @param {Recognizer|String} recognizer\n     * @returns {Recognizer|Null}\n     */\n    get: function(recognizer) {\n        if (recognizer instanceof Recognizer) {\n            return recognizer;\n        }\n\n        var recognizers = this.recognizers;\n        for (var i = 0; i < recognizers.length; i++) {\n            if (recognizers[i].options.event == recognizer) {\n                return recognizers[i];\n            }\n        }\n        return null;\n    },\n\n    /**\n     * add a recognizer to the manager\n     * existing recognizers with the same event name will be removed\n     * @param {Recognizer} recognizer\n     * @returns {Recognizer|Manager}\n     */\n    add: function(recognizer) {\n        if (invokeArrayArg(recognizer, 'add', this)) {\n            return this;\n        }\n\n        // remove existing\n        var existing = this.get(recognizer.options.event);\n        if (existing) {\n            this.remove(existing);\n        }\n\n        this.recognizers.push(recognizer);\n        recognizer.manager = this;\n\n        this.touchAction.update();\n        return recognizer;\n    },\n\n    /**\n     * remove a recognizer by name or instance\n     * @param {Recognizer|String} recognizer\n     * @returns {Manager}\n     */\n    remove: function(recognizer) {\n        if (invokeArrayArg(recognizer, 'remove', this)) {\n            return this;\n        }\n\n        recognizer = this.get(recognizer);\n\n        // let's make sure this recognizer exists\n        if (recognizer) {\n            var recognizers = this.recognizers;\n            var index = inArray(recognizers, recognizer);\n\n            if (index !== -1) {\n                recognizers.splice(index, 1);\n                this.touchAction.update();\n            }\n        }\n\n        return this;\n    },\n\n    /**\n     * bind event\n     * @param {String} events\n     * @param {Function} handler\n     * @returns {EventEmitter} this\n     */\n    on: function(events, handler) {\n        if (events === undefined) {\n            return;\n        }\n        if (handler === undefined) {\n            return;\n        }\n\n        var handlers = this.handlers;\n        each(splitStr(events), function(event) {\n            handlers[event] = handlers[event] || [];\n            handlers[event].push(handler);\n        });\n        return this;\n    },\n\n    /**\n     * unbind event, leave emit blank to remove all handlers\n     * @param {String} events\n     * @param {Function} [handler]\n     * @returns {EventEmitter} this\n     */\n    off: function(events, handler) {\n        if (events === undefined) {\n            return;\n        }\n\n        var handlers = this.handlers;\n        each(splitStr(events), function(event) {\n            if (!handler) {\n                delete handlers[event];\n            } else {\n                handlers[event] && handlers[event].splice(inArray(handlers[event], handler), 1);\n            }\n        });\n        return this;\n    },\n\n    /**\n     * emit event to the listeners\n     * @param {String} event\n     * @param {Object} data\n     */\n    emit: function(event, data) {\n        // we also want to trigger dom events\n        if (this.options.domEvents) {\n            triggerDomEvent(event, data);\n        }\n\n        // no handlers, so skip it all\n        var handlers = this.handlers[event] && this.handlers[event].slice();\n        if (!handlers || !handlers.length) {\n            return;\n        }\n\n        data.type = event;\n        data.preventDefault = function() {\n            data.srcEvent.preventDefault();\n        };\n\n        var i = 0;\n        while (i < handlers.length) {\n            handlers[i](data);\n            i++;\n        }\n    },\n\n    /**\n     * destroy the manager and unbinds all events\n     * it doesn't unbind dom events, that is the user own responsibility\n     */\n    destroy: function() {\n        this.element && toggleCssProps(this, false);\n\n        this.handlers = {};\n        this.session = {};\n        this.input.destroy();\n        this.element = null;\n    }\n};\n\n/**\n * add/remove the css properties as defined in manager.options.cssProps\n * @param {Manager} manager\n * @param {Boolean} add\n */\nfunction toggleCssProps(manager, add) {\n    var element = manager.element;\n    if (!element.style) {\n        return;\n    }\n    var prop;\n    each(manager.options.cssProps, function(value, name) {\n        prop = prefixed(element.style, name);\n        if (add) {\n            manager.oldCssProps[prop] = element.style[prop];\n            element.style[prop] = value;\n        } else {\n            element.style[prop] = manager.oldCssProps[prop] || '';\n        }\n    });\n    if (!add) {\n        manager.oldCssProps = {};\n    }\n}\n\n/**\n * trigger dom event\n * @param {String} event\n * @param {Object} data\n */\nfunction triggerDomEvent(event, data) {\n    var gestureEvent = document.createEvent('Event');\n    gestureEvent.initEvent(event, true, true);\n    gestureEvent.gesture = data;\n    data.target.dispatchEvent(gestureEvent);\n}\n\nassign(Hammer, {\n    INPUT_START: INPUT_START,\n    INPUT_MOVE: INPUT_MOVE,\n    INPUT_END: INPUT_END,\n    INPUT_CANCEL: INPUT_CANCEL,\n\n    STATE_POSSIBLE: STATE_POSSIBLE,\n    STATE_BEGAN: STATE_BEGAN,\n    STATE_CHANGED: STATE_CHANGED,\n    STATE_ENDED: STATE_ENDED,\n    STATE_RECOGNIZED: STATE_RECOGNIZED,\n    STATE_CANCELLED: STATE_CANCELLED,\n    STATE_FAILED: STATE_FAILED,\n\n    DIRECTION_NONE: DIRECTION_NONE,\n    DIRECTION_LEFT: DIRECTION_LEFT,\n    DIRECTION_RIGHT: DIRECTION_RIGHT,\n    DIRECTION_UP: DIRECTION_UP,\n    DIRECTION_DOWN: DIRECTION_DOWN,\n    DIRECTION_HORIZONTAL: DIRECTION_HORIZONTAL,\n    DIRECTION_VERTICAL: DIRECTION_VERTICAL,\n    DIRECTION_ALL: DIRECTION_ALL,\n\n    Manager: Manager,\n    Input: Input,\n    TouchAction: TouchAction,\n\n    TouchInput: TouchInput,\n    MouseInput: MouseInput,\n    PointerEventInput: PointerEventInput,\n    TouchMouseInput: TouchMouseInput,\n    SingleTouchInput: SingleTouchInput,\n\n    Recognizer: Recognizer,\n    AttrRecognizer: AttrRecognizer,\n    Tap: TapRecognizer,\n    Pan: PanRecognizer,\n    Swipe: SwipeRecognizer,\n    Pinch: PinchRecognizer,\n    Rotate: RotateRecognizer,\n    Press: PressRecognizer,\n\n    on: addEventListeners,\n    off: removeEventListeners,\n    each: each,\n    merge: merge,\n    extend: extend,\n    assign: assign,\n    inherit: inherit,\n    bindFn: bindFn,\n    prefixed: prefixed\n});\n\n// this prevents errors when Hammer is loaded in the presence of an AMD\n//  style loader but by script tag, not by the loader.\nvar freeGlobal = (typeof window !== 'undefined' ? window : (typeof self !== 'undefined' ? self : {})); // jshint ignore:line\nfreeGlobal.Hammer = Hammer;\n\nif (typeof define === 'function' && define.amd) {\n    define(function() {\n        return Hammer;\n    });\n} else if (typeof module != 'undefined' && module.exports) {\n    module.exports = Hammer;\n} else {\n    window[exportName] = Hammer;\n}\n\n})(window, document, 'Hammer');\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"io\"] = factory();\n\telse\n\t\troot[\"io\"] = factory();\n})(self, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 17);\n","\r\n/**\r\n * Expose `Emitter`.\r\n */\r\n\r\nif (typeof module !== 'undefined') {\r\n  module.exports = Emitter;\r\n}\r\n\r\n/**\r\n * Initialize a new `Emitter`.\r\n *\r\n * @api public\r\n */\r\n\r\nfunction Emitter(obj) {\r\n  if (obj) return mixin(obj);\r\n};\r\n\r\n/**\r\n * Mixin the emitter properties.\r\n *\r\n * @param {Object} obj\r\n * @return {Object}\r\n * @api private\r\n */\r\n\r\nfunction mixin(obj) {\r\n  for (var key in Emitter.prototype) {\r\n    obj[key] = Emitter.prototype[key];\r\n  }\r\n  return obj;\r\n}\r\n\r\n/**\r\n * Listen on the given `event` with `fn`.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.on =\r\nEmitter.prototype.addEventListener = function(event, fn){\r\n  this._callbacks = this._callbacks || {};\r\n  (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\r\n    .push(fn);\r\n  return this;\r\n};\r\n\r\n/**\r\n * Adds an `event` listener that will be invoked a single\r\n * time then automatically removed.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.once = function(event, fn){\r\n  function on() {\r\n    this.off(event, on);\r\n    fn.apply(this, arguments);\r\n  }\r\n\r\n  on.fn = fn;\r\n  this.on(event, on);\r\n  return this;\r\n};\r\n\r\n/**\r\n * Remove the given callback for `event` or all\r\n * registered callbacks.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.off =\r\nEmitter.prototype.removeListener =\r\nEmitter.prototype.removeAllListeners =\r\nEmitter.prototype.removeEventListener = function(event, fn){\r\n  this._callbacks = this._callbacks || {};\r\n\r\n  // all\r\n  if (0 == arguments.length) {\r\n    this._callbacks = {};\r\n    return this;\r\n  }\r\n\r\n  // specific event\r\n  var callbacks = this._callbacks['$' + event];\r\n  if (!callbacks) return this;\r\n\r\n  // remove all handlers\r\n  if (1 == arguments.length) {\r\n    delete this._callbacks['$' + event];\r\n    return this;\r\n  }\r\n\r\n  // remove specific handler\r\n  var cb;\r\n  for (var i = 0; i < callbacks.length; i++) {\r\n    cb = callbacks[i];\r\n    if (cb === fn || cb.fn === fn) {\r\n      callbacks.splice(i, 1);\r\n      break;\r\n    }\r\n  }\r\n\r\n  // Remove event specific arrays for event types that no\r\n  // one is subscribed for to avoid memory leak.\r\n  if (callbacks.length === 0) {\r\n    delete this._callbacks['$' + event];\r\n  }\r\n\r\n  return this;\r\n};\r\n\r\n/**\r\n * Emit `event` with the given args.\r\n *\r\n * @param {String} event\r\n * @param {Mixed} ...\r\n * @return {Emitter}\r\n */\r\n\r\nEmitter.prototype.emit = function(event){\r\n  this._callbacks = this._callbacks || {};\r\n\r\n  var args = new Array(arguments.length - 1)\r\n    , callbacks = this._callbacks['$' + event];\r\n\r\n  for (var i = 1; i < arguments.length; i++) {\r\n    args[i - 1] = arguments[i];\r\n  }\r\n\r\n  if (callbacks) {\r\n    callbacks = callbacks.slice(0);\r\n    for (var i = 0, len = callbacks.length; i < len; ++i) {\r\n      callbacks[i].apply(this, args);\r\n    }\r\n  }\r\n\r\n  return this;\r\n};\r\n\r\n/**\r\n * Return array of callbacks for `event`.\r\n *\r\n * @param {String} event\r\n * @return {Array}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.listeners = function(event){\r\n  this._callbacks = this._callbacks || {};\r\n  return this._callbacks['$' + event] || [];\r\n};\r\n\r\n/**\r\n * Check if this emitter has `event` handlers.\r\n *\r\n * @param {String} event\r\n * @return {Boolean}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.hasListeners = function(event){\r\n  return !! this.listeners(event).length;\r\n};\r\n","const encodePacket = require(\"./encodePacket\");\nconst decodePacket = require(\"./decodePacket\");\n\nconst SEPARATOR = String.fromCharCode(30); // see https://en.wikipedia.org/wiki/Delimiter#ASCII_delimited_text\n\nconst encodePayload = (packets, callback) => {\n  // some packets may be added to the array while encoding, so the initial length must be saved\n  const length = packets.length;\n  const encodedPackets = new Array(length);\n  let count = 0;\n\n  packets.forEach((packet, i) => {\n    // force base64 encoding for binary packets\n    encodePacket(packet, false, encodedPacket => {\n      encodedPackets[i] = encodedPacket;\n      if (++count === length) {\n        callback(encodedPackets.join(SEPARATOR));\n      }\n    });\n  });\n};\n\nconst decodePayload = (encodedPayload, binaryType) => {\n  const encodedPackets = encodedPayload.split(SEPARATOR);\n  const packets = [];\n  for (let i = 0; i < encodedPackets.length; i++) {\n    const decodedPacket = decodePacket(encodedPackets[i], binaryType);\n    packets.push(decodedPacket);\n    if (decodedPacket.type === \"error\") {\n      break;\n    }\n  }\n  return packets;\n};\n\nmodule.exports = {\n  protocol: 4,\n  encodePacket,\n  encodePayload,\n  decodePacket,\n  decodePayload\n};\n","module.exports = (() => {\n  if (typeof self !== \"undefined\") {\n    return self;\n  } else if (typeof window !== \"undefined\") {\n    return window;\n  } else {\n    return Function(\"return this\")();\n  }\n})();\n","const parser = require(\"engine.io-parser\");\nconst Emitter = require(\"component-emitter\");\n\nclass Transport extends Emitter {\n  /**\n   * Transport abstract constructor.\n   *\n   * @param {Object} options.\n   * @api private\n   */\n  constructor(opts) {\n    super();\n\n    this.opts = opts;\n    this.query = opts.query;\n    this.readyState = \"\";\n    this.socket = opts.socket;\n  }\n\n  /**\n   * Emits an error.\n   *\n   * @param {String} str\n   * @return {Transport} for chaining\n   * @api public\n   */\n  onError(msg, desc) {\n    const err = new Error(msg);\n    err.type = \"TransportError\";\n    err.description = desc;\n    this.emit(\"error\", err);\n    return this;\n  }\n\n  /**\n   * Opens the transport.\n   *\n   * @api public\n   */\n  open() {\n    if (\"closed\" === this.readyState || \"\" === this.readyState) {\n      this.readyState = \"opening\";\n      this.doOpen();\n    }\n\n    return this;\n  }\n\n  /**\n   * Closes the transport.\n   *\n   * @api private\n   */\n  close() {\n    if (\"opening\" === this.readyState || \"open\" === this.readyState) {\n      this.doClose();\n      this.onClose();\n    }\n\n    return this;\n  }\n\n  /**\n   * Sends multiple packets.\n   *\n   * @param {Array} packets\n   * @api private\n   */\n  send(packets) {\n    if (\"open\" === this.readyState) {\n      this.write(packets);\n    } else {\n      throw new Error(\"Transport not open\");\n    }\n  }\n\n  /**\n   * Called upon open\n   *\n   * @api private\n   */\n  onOpen() {\n    this.readyState = \"open\";\n    this.writable = true;\n    this.emit(\"open\");\n  }\n\n  /**\n   * Called with data.\n   *\n   * @param {String} data\n   * @api private\n   */\n  onData(data) {\n    const packet = parser.decodePacket(data, this.socket.binaryType);\n    this.onPacket(packet);\n  }\n\n  /**\n   * Called with a decoded packet.\n   */\n  onPacket(packet) {\n    this.emit(\"packet\", packet);\n  }\n\n  /**\n   * Called upon close.\n   *\n   * @api private\n   */\n  onClose() {\n    this.readyState = \"closed\";\n    this.emit(\"close\");\n  }\n}\n\nmodule.exports = Transport;\n","/**\n * Compiles a querystring\n * Returns string representation of the object\n *\n * @param {Object}\n * @api private\n */\n\nexports.encode = function (obj) {\n  var str = '';\n\n  for (var i in obj) {\n    if (obj.hasOwnProperty(i)) {\n      if (str.length) str += '&';\n      str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]);\n    }\n  }\n\n  return str;\n};\n\n/**\n * Parses a simple querystring into an object\n *\n * @param {String} qs\n * @api private\n */\n\nexports.decode = function(qs){\n  var qry = {};\n  var pairs = qs.split('&');\n  for (var i = 0, l = pairs.length; i < l; i++) {\n    var pair = pairs[i].split('=');\n    qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);\n  }\n  return qry;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Decoder = exports.Encoder = exports.PacketType = exports.protocol = void 0;\nconst Emitter = require(\"component-emitter\");\nconst binary_1 = require(\"./binary\");\nconst is_binary_1 = require(\"./is-binary\");\n\n\n/**\n * Protocol version.\n *\n * @public\n */\nexports.protocol = 5;\nvar PacketType;\n(function (PacketType) {\n    PacketType[PacketType[\"CONNECT\"] = 0] = \"CONNECT\";\n    PacketType[PacketType[\"DISCONNECT\"] = 1] = \"DISCONNECT\";\n    PacketType[PacketType[\"EVENT\"] = 2] = \"EVENT\";\n    PacketType[PacketType[\"ACK\"] = 3] = \"ACK\";\n    PacketType[PacketType[\"CONNECT_ERROR\"] = 4] = \"CONNECT_ERROR\";\n    PacketType[PacketType[\"BINARY_EVENT\"] = 5] = \"BINARY_EVENT\";\n    PacketType[PacketType[\"BINARY_ACK\"] = 6] = \"BINARY_ACK\";\n})(PacketType = exports.PacketType || (exports.PacketType = {}));\n/**\n * A socket.io Encoder instance\n */\nclass Encoder {\n    /**\n     * Encode a packet as a single string if non-binary, or as a\n     * buffer sequence, depending on packet type.\n     *\n     * @param {Object} obj - packet object\n     */\n    encode(obj) {\n\n\n        if (obj.type === PacketType.EVENT || obj.type === PacketType.ACK) {\n            if (is_binary_1.hasBinary(obj)) {\n                obj.type =\n                    obj.type === PacketType.EVENT\n                        ? PacketType.BINARY_EVENT\n                        : PacketType.BINARY_ACK;\n                return this.encodeAsBinary(obj);\n            }\n        }\n        return [this.encodeAsString(obj)];\n    }\n    /**\n     * Encode packet as string.\n     */\n    encodeAsString(obj) {\n        // first is type\n        let str = \"\" + obj.type;\n        // attachments if we have them\n        if (obj.type === PacketType.BINARY_EVENT ||\n            obj.type === PacketType.BINARY_ACK) {\n            str += obj.attachments + \"-\";\n        }\n        // if we have a namespace other than `/`\n        // we append it followed by a comma `,`\n        if (obj.nsp && \"/\" !== obj.nsp) {\n            str += obj.nsp + \",\";\n        }\n        // immediately followed by the id\n        if (null != obj.id) {\n            str += obj.id;\n        }\n        // json data\n        if (null != obj.data) {\n            str += JSON.stringify(obj.data);\n        }\n\n\n        return str;\n    }\n    /**\n     * Encode packet as 'buffer sequence' by removing blobs, and\n     * deconstructing packet into object with placeholders and\n     * a list of buffers.\n     */\n    encodeAsBinary(obj) {\n        const deconstruction = binary_1.deconstructPacket(obj);\n        const pack = this.encodeAsString(deconstruction.packet);\n        const buffers = deconstruction.buffers;\n        buffers.unshift(pack); // add packet info to beginning of data list\n        return buffers; // write all the buffers\n    }\n}\nexports.Encoder = Encoder;\n/**\n * A socket.io Decoder instance\n *\n * @return {Object} decoder\n */\nclass Decoder extends Emitter {\n    constructor() {\n        super();\n    }\n    /**\n     * Decodes an encoded packet string into packet JSON.\n     *\n     * @param {String} obj - encoded packet\n     */\n    add(obj) {\n        let packet;\n        if (typeof obj === \"string\") {\n            packet = this.decodeString(obj);\n            if (packet.type === PacketType.BINARY_EVENT ||\n                packet.type === PacketType.BINARY_ACK) {\n                // binary packet's json\n                this.reconstructor = new BinaryReconstructor(packet);\n                // no attachments, labeled binary but no binary data to follow\n                if (packet.attachments === 0) {\n                    super.emit(\"decoded\", packet);\n                }\n            }\n            else {\n                // non-binary full packet\n                super.emit(\"decoded\", packet);\n            }\n        }\n        else if (is_binary_1.isBinary(obj) || obj.base64) {\n            // raw binary data\n            if (!this.reconstructor) {\n                throw new Error(\"got binary data when not reconstructing a packet\");\n            }\n            else {\n                packet = this.reconstructor.takeBinaryData(obj);\n                if (packet) {\n                    // received final buffer\n                    this.reconstructor = null;\n                    super.emit(\"decoded\", packet);\n                }\n            }\n        }\n        else {\n            throw new Error(\"Unknown type: \" + obj);\n        }\n    }\n    /**\n     * Decode a packet String (JSON data)\n     *\n     * @param {String} str\n     * @return {Object} packet\n     */\n    decodeString(str) {\n        let i = 0;\n        // look up type\n        const p = {\n            type: Number(str.charAt(0)),\n        };\n        if (PacketType[p.type] === undefined) {\n            throw new Error(\"unknown packet type \" + p.type);\n        }\n        // look up attachments if type binary\n        if (p.type === PacketType.BINARY_EVENT ||\n            p.type === PacketType.BINARY_ACK) {\n            const start = i + 1;\n            while (str.charAt(++i) !== \"-\" && i != str.length) { }\n            const buf = str.substring(start, i);\n            if (buf != Number(buf) || str.charAt(i) !== \"-\") {\n                throw new Error(\"Illegal attachments\");\n            }\n            p.attachments = Number(buf);\n        }\n        // look up namespace (if any)\n        if (\"/\" === str.charAt(i + 1)) {\n            const start = i + 1;\n            while (++i) {\n                const c = str.charAt(i);\n                if (\",\" === c)\n                    break;\n                if (i === str.length)\n                    break;\n            }\n            p.nsp = str.substring(start, i);\n        }\n        else {\n            p.nsp = \"/\";\n        }\n        // look up id\n        const next = str.charAt(i + 1);\n        if (\"\" !== next && Number(next) == next) {\n            const start = i + 1;\n            while (++i) {\n                const c = str.charAt(i);\n                if (null == c || Number(c) != c) {\n                    --i;\n                    break;\n                }\n                if (i === str.length)\n                    break;\n            }\n            p.id = Number(str.substring(start, i + 1));\n        }\n        // look up json data\n        if (str.charAt(++i)) {\n            const payload = tryParse(str.substr(i));\n            if (Decoder.isPayloadValid(p.type, payload)) {\n                p.data = payload;\n            }\n            else {\n                throw new Error(\"invalid payload\");\n            }\n        }\n\n\n        return p;\n    }\n    static isPayloadValid(type, payload) {\n        switch (type) {\n            case PacketType.CONNECT:\n                return typeof payload === \"object\";\n            case PacketType.DISCONNECT:\n                return payload === undefined;\n            case PacketType.CONNECT_ERROR:\n                return typeof payload === \"string\" || typeof payload === \"object\";\n            case PacketType.EVENT:\n            case PacketType.BINARY_EVENT:\n                return Array.isArray(payload) && payload.length > 0;\n            case PacketType.ACK:\n            case PacketType.BINARY_ACK:\n                return Array.isArray(payload);\n        }\n    }\n    /**\n     * Deallocates a parser's resources\n     */\n    destroy() {\n        if (this.reconstructor) {\n            this.reconstructor.finishedReconstruction();\n        }\n    }\n}\nexports.Decoder = Decoder;\nfunction tryParse(str) {\n    try {\n        return JSON.parse(str);\n    }\n    catch (e) {\n        return false;\n    }\n}\n/**\n * A manager of a binary event's 'buffer sequence'. Should\n * be constructed whenever a packet of type BINARY_EVENT is\n * decoded.\n *\n * @param {Object} packet\n * @return {BinaryReconstructor} initialized reconstructor\n */\nclass BinaryReconstructor {\n    constructor(packet) {\n        this.packet = packet;\n        this.buffers = [];\n        this.reconPack = packet;\n    }\n    /**\n     * Method to be called when binary data received from connection\n     * after a BINARY_EVENT packet.\n     *\n     * @param {Buffer | ArrayBuffer} binData - the raw binary data received\n     * @return {null | Object} returns null if more binary data is expected or\n     *   a reconstructed packet object if all buffers have been received.\n     */\n    takeBinaryData(binData) {\n        this.buffers.push(binData);\n        if (this.buffers.length === this.reconPack.attachments) {\n            // done with buffer list\n            const packet = binary_1.reconstructPacket(this.reconPack, this.buffers);\n            this.finishedReconstruction();\n            return packet;\n        }\n        return null;\n    }\n    /**\n     * Cleans up binary packet reconstruction variables.\n     */\n    finishedReconstruction() {\n        this.reconPack = null;\n        this.buffers = [];\n    }\n}\n","/**\n * Parses an URI\n *\n * @author Steven Levithan <stevenlevithan.com> (MIT license)\n * @api private\n */\n\nvar re = /^(?:(?![^:@]+:[^:@\\/]*@)(http|https|ws|wss):\\/\\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/;\n\nvar parts = [\n    'source', 'protocol', 'authority', 'userInfo', 'user', 'password', 'host', 'port', 'relative', 'path', 'directory', 'file', 'query', 'anchor'\n];\n\nmodule.exports = function parseuri(str) {\n    var src = str,\n        b = str.indexOf('['),\n        e = str.indexOf(']');\n\n    if (b != -1 && e != -1) {\n        str = str.substring(0, b) + str.substring(b, e).replace(/:/g, ';') + str.substring(e, str.length);\n    }\n\n    var m = re.exec(str || ''),\n        uri = {},\n        i = 14;\n\n    while (i--) {\n        uri[parts[i]] = m[i] || '';\n    }\n\n    if (b != -1 && e != -1) {\n        uri.source = src;\n        uri.host = uri.host.substring(1, uri.host.length - 1).replace(/;/g, ':');\n        uri.authority = uri.authority.replace('[', '').replace(']', '').replace(/;/g, ':');\n        uri.ipv6uri = true;\n    }\n\n    uri.pathNames = pathNames(uri, uri['path']);\n    uri.queryKey = queryKey(uri, uri['query']);\n\n    return uri;\n};\n\nfunction pathNames(obj, path) {\n    var regx = /\\/{2,9}/g,\n        names = path.replace(regx, \"/\").split(\"/\");\n\n    if (path.substr(0, 1) == '/' || path.length === 0) {\n        names.splice(0, 1);\n    }\n    if (path.substr(path.length - 1, 1) == '/') {\n        names.splice(names.length - 1, 1);\n    }\n\n    return names;\n}\n\nfunction queryKey(uri, query) {\n    var data = {};\n\n    query.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function ($0, $1, $2) {\n        if ($1) {\n            data[$1] = $2;\n        }\n    });\n\n    return data;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Manager = void 0;\nconst eio = require(\"engine.io-client\");\nconst socket_1 = require(\"./socket\");\nconst Emitter = require(\"component-emitter\");\nconst parser = require(\"socket.io-parser\");\nconst on_1 = require(\"./on\");\nconst Backoff = require(\"backo2\");\n\n\nclass Manager extends Emitter {\n    constructor(uri, opts) {\n        super();\n        this.nsps = {};\n        this.subs = [];\n        if (uri && \"object\" === typeof uri) {\n            opts = uri;\n            uri = undefined;\n        }\n        opts = opts || {};\n        opts.path = opts.path || \"/socket.io\";\n        this.opts = opts;\n        this.reconnection(opts.reconnection !== false);\n        this.reconnectionAttempts(opts.reconnectionAttempts || Infinity);\n        this.reconnectionDelay(opts.reconnectionDelay || 1000);\n        this.reconnectionDelayMax(opts.reconnectionDelayMax || 5000);\n        this.randomizationFactor(opts.randomizationFactor || 0.5);\n        this.backoff = new Backoff({\n            min: this.reconnectionDelay(),\n            max: this.reconnectionDelayMax(),\n            jitter: this.randomizationFactor(),\n        });\n        this.timeout(null == opts.timeout ? 20000 : opts.timeout);\n        this._readyState = \"closed\";\n        this.uri = uri;\n        const _parser = opts.parser || parser;\n        this.encoder = new _parser.Encoder();\n        this.decoder = new _parser.Decoder();\n        this._autoConnect = opts.autoConnect !== false;\n        if (this._autoConnect)\n            this.open();\n    }\n    reconnection(v) {\n        if (!arguments.length)\n            return this._reconnection;\n        this._reconnection = !!v;\n        return this;\n    }\n    reconnectionAttempts(v) {\n        if (v === undefined)\n            return this._reconnectionAttempts;\n        this._reconnectionAttempts = v;\n        return this;\n    }\n    reconnectionDelay(v) {\n        var _a;\n        if (v === undefined)\n            return this._reconnectionDelay;\n        this._reconnectionDelay = v;\n        (_a = this.backoff) === null || _a === void 0 ? void 0 : _a.setMin(v);\n        return this;\n    }\n    randomizationFactor(v) {\n        var _a;\n        if (v === undefined)\n            return this._randomizationFactor;\n        this._randomizationFactor = v;\n        (_a = this.backoff) === null || _a === void 0 ? void 0 : _a.setJitter(v);\n        return this;\n    }\n    reconnectionDelayMax(v) {\n        var _a;\n        if (v === undefined)\n            return this._reconnectionDelayMax;\n        this._reconnectionDelayMax = v;\n        (_a = this.backoff) === null || _a === void 0 ? void 0 : _a.setMax(v);\n        return this;\n    }\n    timeout(v) {\n        if (!arguments.length)\n            return this._timeout;\n        this._timeout = v;\n        return this;\n    }\n    /**\n     * Starts trying to reconnect if reconnection is enabled and we have not\n     * started reconnecting yet\n     *\n     * @private\n     */\n    maybeReconnectOnOpen() {\n        // Only try to reconnect if it's the first time we're connecting\n        if (!this._reconnecting &&\n            this._reconnection &&\n            this.backoff.attempts === 0) {\n            // keeps reconnection from firing twice for the same reconnection loop\n            this.reconnect();\n        }\n    }\n    /**\n     * Sets the current transport `socket`.\n     *\n     * @param {Function} fn - optional, callback\n     * @return self\n     * @public\n     */\n    open(fn) {\n\n\n        if (~this._readyState.indexOf(\"open\"))\n            return this;\n\n\n        this.engine = eio(this.uri, this.opts);\n        const socket = this.engine;\n        const self = this;\n        this._readyState = \"opening\";\n        this.skipReconnect = false;\n        // emit `open`\n        const openSubDestroy = on_1.on(socket, \"open\", function () {\n            self.onopen();\n            fn && fn();\n        });\n        // emit `error`\n        const errorSub = on_1.on(socket, \"error\", (err) => {\n\n\n            self.cleanup();\n            self._readyState = \"closed\";\n            super.emit(\"error\", err);\n            if (fn) {\n                fn(err);\n            }\n            else {\n                // Only do this if there is no fn to handle the error\n                self.maybeReconnectOnOpen();\n            }\n        });\n        if (false !== this._timeout) {\n            const timeout = this._timeout;\n\n\n            if (timeout === 0) {\n                openSubDestroy(); // prevents a race condition with the 'open' event\n            }\n            // set timer\n            const timer = setTimeout(() => {\n\n\n                openSubDestroy();\n                socket.close();\n                socket.emit(\"error\", new Error(\"timeout\"));\n            }, timeout);\n            this.subs.push(function subDestroy() {\n                clearTimeout(timer);\n            });\n        }\n        this.subs.push(openSubDestroy);\n        this.subs.push(errorSub);\n        return this;\n    }\n    /**\n     * Alias for open()\n     *\n     * @return self\n     * @public\n     */\n    connect(fn) {\n        return this.open(fn);\n    }\n    /**\n     * Called upon transport open.\n     *\n     * @private\n     */\n    onopen() {\n\n\n        // clear old subs\n        this.cleanup();\n        // mark as open\n        this._readyState = \"open\";\n        super.emit(\"open\");\n        // add new subs\n        const socket = this.engine;\n        this.subs.push(on_1.on(socket, \"ping\", this.onping.bind(this)), on_1.on(socket, \"data\", this.ondata.bind(this)), on_1.on(socket, \"error\", this.onerror.bind(this)), on_1.on(socket, \"close\", this.onclose.bind(this)), on_1.on(this.decoder, \"decoded\", this.ondecoded.bind(this)));\n    }\n    /**\n     * Called upon a ping.\n     *\n     * @private\n     */\n    onping() {\n        super.emit(\"ping\");\n    }\n    /**\n     * Called with data.\n     *\n     * @private\n     */\n    ondata(data) {\n        this.decoder.add(data);\n    }\n    /**\n     * Called when parser fully decodes a packet.\n     *\n     * @private\n     */\n    ondecoded(packet) {\n        super.emit(\"packet\", packet);\n    }\n    /**\n     * Called upon socket error.\n     *\n     * @private\n     */\n    onerror(err) {\n\n\n        super.emit(\"error\", err);\n    }\n    /**\n     * Creates a new socket for the given `nsp`.\n     *\n     * @return {Socket}\n     * @public\n     */\n    socket(nsp, opts) {\n        let socket = this.nsps[nsp];\n        if (!socket) {\n            socket = new socket_1.Socket(this, nsp, opts);\n            this.nsps[nsp] = socket;\n        }\n        return socket;\n    }\n    /**\n     * Called upon a socket close.\n     *\n     * @param socket\n     * @private\n     */\n    _destroy(socket) {\n        const nsps = Object.keys(this.nsps);\n        for (const nsp of nsps) {\n            const socket = this.nsps[nsp];\n            if (socket.active) {\n\n\n                return;\n            }\n        }\n        this._close();\n    }\n    /**\n     * Writes a packet.\n     *\n     * @param packet\n     * @private\n     */\n    _packet(packet) {\n\n\n        const encodedPackets = this.encoder.encode(packet);\n        for (let i = 0; i < encodedPackets.length; i++) {\n            this.engine.write(encodedPackets[i], packet.options);\n        }\n    }\n    /**\n     * Clean up transport subscriptions and packet buffer.\n     *\n     * @private\n     */\n    cleanup() {\n\n\n        this.subs.forEach((subDestroy) => subDestroy());\n        this.subs.length = 0;\n        this.decoder.destroy();\n    }\n    /**\n     * Close the current socket.\n     *\n     * @private\n     */\n    _close() {\n\n\n        this.skipReconnect = true;\n        this._reconnecting = false;\n        if (\"opening\" === this._readyState) {\n            // `onclose` will not fire because\n            // an open event never happened\n            this.cleanup();\n        }\n        this.backoff.reset();\n        this._readyState = \"closed\";\n        if (this.engine)\n            this.engine.close();\n    }\n    /**\n     * Alias for close()\n     *\n     * @private\n     */\n    disconnect() {\n        return this._close();\n    }\n    /**\n     * Called upon engine close.\n     *\n     * @private\n     */\n    onclose(reason) {\n\n\n        this.cleanup();\n        this.backoff.reset();\n        this._readyState = \"closed\";\n        super.emit(\"close\", reason);\n        if (this._reconnection && !this.skipReconnect) {\n            this.reconnect();\n        }\n    }\n    /**\n     * Attempt a reconnection.\n     *\n     * @private\n     */\n    reconnect() {\n        if (this._reconnecting || this.skipReconnect)\n            return this;\n        const self = this;\n        if (this.backoff.attempts >= this._reconnectionAttempts) {\n\n\n            this.backoff.reset();\n            super.emit(\"reconnect_failed\");\n            this._reconnecting = false;\n        }\n        else {\n            const delay = this.backoff.duration();\n\n\n            this._reconnecting = true;\n            const timer = setTimeout(() => {\n                if (self.skipReconnect)\n                    return;\n\n\n                super.emit(\"reconnect_attempt\", self.backoff.attempts);\n                // check again for the case socket closed in above events\n                if (self.skipReconnect)\n                    return;\n                self.open((err) => {\n                    if (err) {\n\n\n                        self._reconnecting = false;\n                        self.reconnect();\n                        super.emit(\"reconnect_error\", err);\n                    }\n                    else {\n\n\n                        self.onreconnect();\n                    }\n                });\n            }, delay);\n            this.subs.push(function subDestroy() {\n                clearTimeout(timer);\n            });\n        }\n    }\n    /**\n     * Called upon successful reconnect.\n     *\n     * @private\n     */\n    onreconnect() {\n        const attempt = this.backoff.attempts;\n        this._reconnecting = false;\n        this.backoff.reset();\n        super.emit(\"reconnect\", attempt);\n    }\n}\nexports.Manager = Manager;\n","const XMLHttpRequest = require(\"xmlhttprequest-ssl\");\nconst XHR = require(\"./polling-xhr\");\nconst JSONP = require(\"./polling-jsonp\");\nconst websocket = require(\"./websocket\");\n\nexports.polling = polling;\nexports.websocket = websocket;\n\n/**\n * Polling transport polymorphic constructor.\n * Decides on xhr vs jsonp based on feature detection.\n *\n * @api private\n */\n\nfunction polling(opts) {\n  let xhr;\n  let xd = false;\n  let xs = false;\n  const jsonp = false !== opts.jsonp;\n\n  if (typeof location !== \"undefined\") {\n    const isSSL = \"https:\" === location.protocol;\n    let port = location.port;\n\n    // some user agents have empty `location.port`\n    if (!port) {\n      port = isSSL ? 443 : 80;\n    }\n\n    xd = opts.hostname !== location.hostname || port !== opts.port;\n    xs = opts.secure !== isSSL;\n  }\n\n  opts.xdomain = xd;\n  opts.xscheme = xs;\n  xhr = new XMLHttpRequest(opts);\n\n  if (\"open\" in xhr && !opts.forceJSONP) {\n    return new XHR(opts);\n  } else {\n    if (!jsonp) throw new Error(\"JSONP disabled\");\n    return new JSONP(opts);\n  }\n}\n","// browser shim for xmlhttprequest module\n\nconst hasCORS = require(\"has-cors\");\nconst globalThis = require(\"./globalThis\");\n\nmodule.exports = function(opts) {\n  const xdomain = opts.xdomain;\n\n  // scheme must be same when usign XDomainRequest\n  // http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx\n  const xscheme = opts.xscheme;\n\n  // XDomainRequest has a flow of not sending cookie, therefore it should be disabled as a default.\n  // https://github.com/Automattic/engine.io-client/pull/217\n  const enablesXDR = opts.enablesXDR;\n\n  // XMLHttpRequest can be disabled on IE\n  try {\n    if (\"undefined\" !== typeof XMLHttpRequest && (!xdomain || hasCORS)) {\n      return new XMLHttpRequest();\n    }\n  } catch (e) {}\n\n  // Use XDomainRequest for IE8 if enablesXDR is true\n  // because loading bar keeps flashing when using jsonp-polling\n  // https://github.com/yujiosaka/socke.io-ie8-loading-example\n  try {\n    if (\"undefined\" !== typeof XDomainRequest && !xscheme && enablesXDR) {\n      return new XDomainRequest();\n    }\n  } catch (e) {}\n\n  if (!xdomain) {\n    try {\n      return new globalThis[[\"Active\"].concat(\"Object\").join(\"X\")](\n        \"Microsoft.XMLHTTP\"\n      );\n    } catch (e) {}\n  }\n};\n","const Transport = require(\"../transport\");\nconst parseqs = require(\"parseqs\");\nconst parser = require(\"engine.io-parser\");\nconst yeast = require(\"yeast\");\n\n\n\n\nclass Polling extends Transport {\n  /**\n   * Transport name.\n   */\n  get name() {\n    return \"polling\";\n  }\n\n  /**\n   * Opens the socket (triggers polling). We write a PING message to determine\n   * when the transport is open.\n   *\n   * @api private\n   */\n  doOpen() {\n    this.poll();\n  }\n\n  /**\n   * Pauses polling.\n   *\n   * @param {Function} callback upon buffers are flushed and transport is paused\n   * @api private\n   */\n  pause(onPause) {\n    const self = this;\n\n    this.readyState = \"pausing\";\n\n    function pause() {\n\n\n      self.readyState = \"paused\";\n      onPause();\n    }\n\n    if (this.polling || !this.writable) {\n      let total = 0;\n\n      if (this.polling) {\n\n\n        total++;\n        this.once(\"pollComplete\", function() {\n\n\n          --total || pause();\n        });\n      }\n\n      if (!this.writable) {\n\n\n        total++;\n        this.once(\"drain\", function() {\n\n\n          --total || pause();\n        });\n      }\n    } else {\n      pause();\n    }\n  }\n\n  /**\n   * Starts polling cycle.\n   *\n   * @api public\n   */\n  poll() {\n\n\n    this.polling = true;\n    this.doPoll();\n    this.emit(\"poll\");\n  }\n\n  /**\n   * Overloads onData to detect payloads.\n   *\n   * @api private\n   */\n  onData(data) {\n    const self = this;\n\n\n    const callback = function(packet, index, total) {\n      // if its the first message we consider the transport open\n      if (\"opening\" === self.readyState && packet.type === \"open\") {\n        self.onOpen();\n      }\n\n      // if its a close packet, we close the ongoing requests\n      if (\"close\" === packet.type) {\n        self.onClose();\n        return false;\n      }\n\n      // otherwise bypass onData and handle the message\n      self.onPacket(packet);\n    };\n\n    // decode payload\n    parser.decodePayload(data, this.socket.binaryType).forEach(callback);\n\n    // if an event did not trigger closing\n    if (\"closed\" !== this.readyState) {\n      // if we got data we're not polling\n      this.polling = false;\n      this.emit(\"pollComplete\");\n\n      if (\"open\" === this.readyState) {\n        this.poll();\n      } else {\n\n\n      }\n    }\n  }\n\n  /**\n   * For polling, send a close packet.\n   *\n   * @api private\n   */\n  doClose() {\n    const self = this;\n\n    function close() {\n\n\n      self.write([{ type: \"close\" }]);\n    }\n\n    if (\"open\" === this.readyState) {\n\n\n      close();\n    } else {\n      // in case we're trying to close while\n      // handshaking is in progress (GH-164)\n\n\n      this.once(\"open\", close);\n    }\n  }\n\n  /**\n   * Writes a packets payload.\n   *\n   * @param {Array} data packets\n   * @param {Function} drain callback\n   * @api private\n   */\n  write(packets) {\n    this.writable = false;\n\n    parser.encodePayload(packets, data => {\n      this.doWrite(data, () => {\n        this.writable = true;\n        this.emit(\"drain\");\n      });\n    });\n  }\n\n  /**\n   * Generates uri for connection.\n   *\n   * @api private\n   */\n  uri() {\n    let query = this.query || {};\n    const schema = this.opts.secure ? \"https\" : \"http\";\n    let port = \"\";\n\n    // cache busting is forced\n    if (false !== this.opts.timestampRequests) {\n      query[this.opts.timestampParam] = yeast();\n    }\n\n    if (!this.supportsBinary && !query.sid) {\n      query.b64 = 1;\n    }\n\n    query = parseqs.encode(query);\n\n    // avoid port if default for schema\n    if (\n      this.opts.port &&\n      ((\"https\" === schema && Number(this.opts.port) !== 443) ||\n        (\"http\" === schema && Number(this.opts.port) !== 80))\n    ) {\n      port = \":\" + this.opts.port;\n    }\n\n    // prepend ? to query\n    if (query.length) {\n      query = \"?\" + query;\n    }\n\n    const ipv6 = this.opts.hostname.indexOf(\":\") !== -1;\n    return (\n      schema +\n      \"://\" +\n      (ipv6 ? \"[\" + this.opts.hostname + \"]\" : this.opts.hostname) +\n      port +\n      this.opts.path +\n      query\n    );\n  }\n}\n\nmodule.exports = Polling;\n","const PACKET_TYPES = Object.create(null); // no Map = no polyfill\nPACKET_TYPES[\"open\"] = \"0\";\nPACKET_TYPES[\"close\"] = \"1\";\nPACKET_TYPES[\"ping\"] = \"2\";\nPACKET_TYPES[\"pong\"] = \"3\";\nPACKET_TYPES[\"message\"] = \"4\";\nPACKET_TYPES[\"upgrade\"] = \"5\";\nPACKET_TYPES[\"noop\"] = \"6\";\n\nconst PACKET_TYPES_REVERSE = Object.create(null);\nObject.keys(PACKET_TYPES).forEach(key => {\n  PACKET_TYPES_REVERSE[PACKET_TYPES[key]] = key;\n});\n\nconst ERROR_PACKET = { type: \"error\", data: \"parser error\" };\n\nmodule.exports = {\n  PACKET_TYPES,\n  PACKET_TYPES_REVERSE,\n  ERROR_PACKET\n};\n","'use strict';\n\nvar alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'.split('')\n  , length = 64\n  , map = {}\n  , seed = 0\n  , i = 0\n  , prev;\n\n/**\n * Return a string representing the specified number.\n *\n * @param {Number} num The number to convert.\n * @returns {String} The string representation of the number.\n * @api public\n */\nfunction encode(num) {\n  var encoded = '';\n\n  do {\n    encoded = alphabet[num % length] + encoded;\n    num = Math.floor(num / length);\n  } while (num > 0);\n\n  return encoded;\n}\n\n/**\n * Return the integer value specified by the given string.\n *\n * @param {String} str The string to convert.\n * @returns {Number} The integer value represented by the string.\n * @api public\n */\nfunction decode(str) {\n  var decoded = 0;\n\n  for (i = 0; i < str.length; i++) {\n    decoded = decoded * length + map[str.charAt(i)];\n  }\n\n  return decoded;\n}\n\n/**\n * Yeast: A tiny growing id generator.\n *\n * @returns {String} A unique id.\n * @api public\n */\nfunction yeast() {\n  var now = encode(+new Date());\n\n  if (now !== prev) return seed = 0, prev = now;\n  return now +'.'+ encode(seed++);\n}\n\n//\n// Map each character to its index.\n//\nfor (; i < length; i++) map[alphabet[i]] = i;\n\n//\n// Expose the `yeast`, `encode` and `decode` functions.\n//\nyeast.encode = encode;\nyeast.decode = decode;\nmodule.exports = yeast;\n","module.exports.pick = (obj, ...attr) => {\n  return attr.reduce((acc, k) => {\n    if (obj.hasOwnProperty(k)) {\n      acc[k] = obj[k];\n    }\n    return acc;\n  }, {});\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Socket = void 0;\nconst socket_io_parser_1 = require(\"socket.io-parser\");\nconst Emitter = require(\"component-emitter\");\nconst on_1 = require(\"./on\");\n\n\n/**\n * Internal events.\n * These events can't be emitted by the user.\n */\nconst RESERVED_EVENTS = Object.freeze({\n    connect: 1,\n    connect_error: 1,\n    disconnect: 1,\n    disconnecting: 1,\n    // EventEmitter reserved events: https://nodejs.org/api/events.html#events_event_newlistener\n    newListener: 1,\n    removeListener: 1,\n});\nclass Socket extends Emitter {\n    /**\n     * `Socket` constructor.\n     *\n     * @public\n     */\n    constructor(io, nsp, opts) {\n        super();\n        this.receiveBuffer = [];\n        this.sendBuffer = [];\n        this.ids = 0;\n        this.acks = {};\n        this.flags = {};\n        this.io = io;\n        this.nsp = nsp;\n        this.ids = 0;\n        this.acks = {};\n        this.receiveBuffer = [];\n        this.sendBuffer = [];\n        this.connected = false;\n        this.disconnected = true;\n        this.flags = {};\n        if (opts && opts.auth) {\n            this.auth = opts.auth;\n        }\n        if (this.io._autoConnect)\n            this.open();\n    }\n    /**\n     * Subscribe to open, close and packet events\n     *\n     * @private\n     */\n    subEvents() {\n        if (this.subs)\n            return;\n        const io = this.io;\n        this.subs = [\n            on_1.on(io, \"open\", this.onopen.bind(this)),\n            on_1.on(io, \"packet\", this.onpacket.bind(this)),\n            on_1.on(io, \"error\", this.onerror.bind(this)),\n            on_1.on(io, \"close\", this.onclose.bind(this)),\n        ];\n    }\n    /**\n     * Whether the Socket will try to reconnect when its Manager connects or reconnects\n     */\n    get active() {\n        return !!this.subs;\n    }\n    /**\n     * \"Opens\" the socket.\n     *\n     * @public\n     */\n    connect() {\n        if (this.connected)\n            return this;\n        this.subEvents();\n        if (!this.io[\"_reconnecting\"])\n            this.io.open(); // ensure open\n        if (\"open\" === this.io._readyState)\n            this.onopen();\n        return this;\n    }\n    /**\n     * Alias for connect()\n     */\n    open() {\n        return this.connect();\n    }\n    /**\n     * Sends a `message` event.\n     *\n     * @return self\n     * @public\n     */\n    send(...args) {\n        args.unshift(\"message\");\n        this.emit.apply(this, args);\n        return this;\n    }\n    /**\n     * Override `emit`.\n     * If the event is in `events`, it's emitted normally.\n     *\n     * @param ev - event name\n     * @return self\n     * @public\n     */\n    emit(ev, ...args) {\n        if (RESERVED_EVENTS.hasOwnProperty(ev)) {\n            throw new Error('\"' + ev + '\" is a reserved event name');\n        }\n        args.unshift(ev);\n        const packet = {\n            type: socket_io_parser_1.PacketType.EVENT,\n            data: args,\n        };\n        packet.options = {};\n        packet.options.compress = this.flags.compress !== false;\n        // event ack callback\n        if (\"function\" === typeof args[args.length - 1]) {\n\n\n            this.acks[this.ids] = args.pop();\n            packet.id = this.ids++;\n        }\n        const isTransportWritable = this.io.engine &&\n            this.io.engine.transport &&\n            this.io.engine.transport.writable;\n        const discardPacket = this.flags.volatile && (!isTransportWritable || !this.connected);\n        if (discardPacket) {\n\n\n        }\n        else if (this.connected) {\n            this.packet(packet);\n        }\n        else {\n            this.sendBuffer.push(packet);\n        }\n        this.flags = {};\n        return this;\n    }\n    /**\n     * Sends a packet.\n     *\n     * @param packet\n     * @private\n     */\n    packet(packet) {\n        packet.nsp = this.nsp;\n        this.io._packet(packet);\n    }\n    /**\n     * Called upon engine `open`.\n     *\n     * @private\n     */\n    onopen() {\n\n\n        if (typeof this.auth == \"function\") {\n            this.auth((data) => {\n                this.packet({ type: socket_io_parser_1.PacketType.CONNECT, data });\n            });\n        }\n        else {\n            this.packet({ type: socket_io_parser_1.PacketType.CONNECT, data: this.auth });\n        }\n    }\n    /**\n     * Called upon engine or manager `error`.\n     *\n     * @param err\n     * @private\n     */\n    onerror(err) {\n        if (!this.connected) {\n            super.emit(\"connect_error\", err);\n        }\n    }\n    /**\n     * Called upon engine `close`.\n     *\n     * @param reason\n     * @private\n     */\n    onclose(reason) {\n\n\n        this.connected = false;\n        this.disconnected = true;\n        delete this.id;\n        super.emit(\"disconnect\", reason);\n    }\n    /**\n     * Called with socket packet.\n     *\n     * @param packet\n     * @private\n     */\n    onpacket(packet) {\n        const sameNamespace = packet.nsp === this.nsp;\n        if (!sameNamespace)\n            return;\n        switch (packet.type) {\n            case socket_io_parser_1.PacketType.CONNECT:\n                if (packet.data && packet.data.sid) {\n                    const id = packet.data.sid;\n                    this.onconnect(id);\n                }\n                else {\n                    super.emit(\"connect_error\", new Error(\"It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)\"));\n                }\n                break;\n            case socket_io_parser_1.PacketType.EVENT:\n                this.onevent(packet);\n                break;\n            case socket_io_parser_1.PacketType.BINARY_EVENT:\n                this.onevent(packet);\n                break;\n            case socket_io_parser_1.PacketType.ACK:\n                this.onack(packet);\n                break;\n            case socket_io_parser_1.PacketType.BINARY_ACK:\n                this.onack(packet);\n                break;\n            case socket_io_parser_1.PacketType.DISCONNECT:\n                this.ondisconnect();\n                break;\n            case socket_io_parser_1.PacketType.CONNECT_ERROR:\n                const err = new Error(packet.data.message);\n                // @ts-ignore\n                err.data = packet.data.data;\n                super.emit(\"connect_error\", err);\n                break;\n        }\n    }\n    /**\n     * Called upon a server event.\n     *\n     * @param packet\n     * @private\n     */\n    onevent(packet) {\n        const args = packet.data || [];\n\n\n        if (null != packet.id) {\n\n\n            args.push(this.ack(packet.id));\n        }\n        if (this.connected) {\n            this.emitEvent(args);\n        }\n        else {\n            this.receiveBuffer.push(Object.freeze(args));\n        }\n    }\n    emitEvent(args) {\n        if (this._anyListeners && this._anyListeners.length) {\n            const listeners = this._anyListeners.slice();\n            for (const listener of listeners) {\n                listener.apply(this, args);\n            }\n        }\n        super.emit.apply(this, args);\n    }\n    /**\n     * Produces an ack callback to emit with an event.\n     *\n     * @private\n     */\n    ack(id) {\n        const self = this;\n        let sent = false;\n        return function (...args) {\n            // prevent double callbacks\n            if (sent)\n                return;\n            sent = true;\n\n\n            self.packet({\n                type: socket_io_parser_1.PacketType.ACK,\n                id: id,\n                data: args,\n            });\n        };\n    }\n    /**\n     * Called upon a server acknowlegement.\n     *\n     * @param packet\n     * @private\n     */\n    onack(packet) {\n        const ack = this.acks[packet.id];\n        if (\"function\" === typeof ack) {\n\n\n            ack.apply(this, packet.data);\n            delete this.acks[packet.id];\n        }\n        else {\n\n\n        }\n    }\n    /**\n     * Called upon server connect.\n     *\n     * @private\n     */\n    onconnect(id) {\n\n\n        this.id = id;\n        this.connected = true;\n        this.disconnected = false;\n        super.emit(\"connect\");\n        this.emitBuffered();\n    }\n    /**\n     * Emit buffered events (received and emitted).\n     *\n     * @private\n     */\n    emitBuffered() {\n        this.receiveBuffer.forEach((args) => this.emitEvent(args));\n        this.receiveBuffer = [];\n        this.sendBuffer.forEach((packet) => this.packet(packet));\n        this.sendBuffer = [];\n    }\n    /**\n     * Called upon server disconnect.\n     *\n     * @private\n     */\n    ondisconnect() {\n\n\n        this.destroy();\n        this.onclose(\"io server disconnect\");\n    }\n    /**\n     * Called upon forced client/server side disconnections,\n     * this method ensures the manager stops tracking us and\n     * that reconnections don't get triggered for this.\n     *\n     * @private\n     */\n    destroy() {\n        if (this.subs) {\n            // clean subscriptions to avoid reconnections\n            this.subs.forEach((subDestroy) => subDestroy());\n            this.subs = undefined;\n        }\n        this.io[\"_destroy\"](this);\n    }\n    /**\n     * Disconnects the socket manually.\n     *\n     * @return self\n     * @public\n     */\n    disconnect() {\n        if (this.connected) {\n\n\n            this.packet({ type: socket_io_parser_1.PacketType.DISCONNECT });\n        }\n        // remove socket from pool\n        this.destroy();\n        if (this.connected) {\n            // fire events\n            this.onclose(\"io client disconnect\");\n        }\n        return this;\n    }\n    /**\n     * Alias for disconnect()\n     *\n     * @return self\n     * @public\n     */\n    close() {\n        return this.disconnect();\n    }\n    /**\n     * Sets the compress flag.\n     *\n     * @param compress - if `true`, compresses the sending data\n     * @return self\n     * @public\n     */\n    compress(compress) {\n        this.flags.compress = compress;\n        return this;\n    }\n    /**\n     * Sets a modifier for a subsequent event emission that the event message will be dropped when this socket is not\n     * ready to send messages.\n     *\n     * @returns self\n     * @public\n     */\n    get volatile() {\n        this.flags.volatile = true;\n        return this;\n    }\n    /**\n     * Adds a listener that will be fired when any event is emitted. The event name is passed as the first argument to the\n     * callback.\n     *\n     * @param listener\n     * @public\n     */\n    onAny(listener) {\n        this._anyListeners = this._anyListeners || [];\n        this._anyListeners.push(listener);\n        return this;\n    }\n    /**\n     * Adds a listener that will be fired when any event is emitted. The event name is passed as the first argument to the\n     * callback. The listener is added to the beginning of the listeners array.\n     *\n     * @param listener\n     * @public\n     */\n    prependAny(listener) {\n        this._anyListeners = this._anyListeners || [];\n        this._anyListeners.unshift(listener);\n        return this;\n    }\n    /**\n     * Removes the listener that will be fired when any event is emitted.\n     *\n     * @param listener\n     * @public\n     */\n    offAny(listener) {\n        if (!this._anyListeners) {\n            return this;\n        }\n        if (listener) {\n            const listeners = this._anyListeners;\n            for (let i = 0; i < listeners.length; i++) {\n                if (listener === listeners[i]) {\n                    listeners.splice(i, 1);\n                    return this;\n                }\n            }\n        }\n        else {\n            this._anyListeners = [];\n        }\n        return this;\n    }\n    /**\n     * Returns an array of listeners that are listening for any event that is specified. This array can be manipulated,\n     * e.g. to remove listeners.\n     *\n     * @public\n     */\n    listenersAny() {\n        return this._anyListeners || [];\n    }\n}\nexports.Socket = Socket;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hasBinary = exports.isBinary = void 0;\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\nconst isView = (obj) => {\n    return typeof ArrayBuffer.isView === \"function\"\n        ? ArrayBuffer.isView(obj)\n        : obj.buffer instanceof ArrayBuffer;\n};\nconst toString = Object.prototype.toString;\nconst withNativeBlob = typeof Blob === \"function\" ||\n    (typeof Blob !== \"undefined\" &&\n        toString.call(Blob) === \"[object BlobConstructor]\");\nconst withNativeFile = typeof File === \"function\" ||\n    (typeof File !== \"undefined\" &&\n        toString.call(File) === \"[object FileConstructor]\");\n/**\n * Returns true if obj is a Buffer, an ArrayBuffer, a Blob or a File.\n *\n * @private\n */\nfunction isBinary(obj) {\n    return ((withNativeArrayBuffer && (obj instanceof ArrayBuffer || isView(obj))) ||\n        (withNativeBlob && obj instanceof Blob) ||\n        (withNativeFile && obj instanceof File));\n}\nexports.isBinary = isBinary;\nfunction hasBinary(obj, toJSON) {\n    if (!obj || typeof obj !== \"object\") {\n        return false;\n    }\n    if (Array.isArray(obj)) {\n        for (let i = 0, l = obj.length; i < l; i++) {\n            if (hasBinary(obj[i])) {\n                return true;\n            }\n        }\n        return false;\n    }\n    if (isBinary(obj)) {\n        return true;\n    }\n    if (obj.toJSON &&\n        typeof obj.toJSON === \"function\" &&\n        arguments.length === 1) {\n        return hasBinary(obj.toJSON(), true);\n    }\n    for (const key in obj) {\n        if (Object.prototype.hasOwnProperty.call(obj, key) && hasBinary(obj[key])) {\n            return true;\n        }\n    }\n    return false;\n}\nexports.hasBinary = hasBinary;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.on = void 0;\nfunction on(obj, ev, fn) {\n    obj.on(ev, fn);\n    return function subDestroy() {\n        obj.off(ev, fn);\n    };\n}\nexports.on = on;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Socket = exports.io = exports.Manager = exports.protocol = void 0;\nconst url_1 = require(\"./url\");\nconst manager_1 = require(\"./manager\");\nconst socket_1 = require(\"./socket\");\nObject.defineProperty(exports, \"Socket\", { enumerable: true, get: function () { return socket_1.Socket; } });\n\n\n/**\n * Module exports.\n */\nmodule.exports = exports = lookup;\n/**\n * Managers cache.\n */\nconst cache = (exports.managers = {});\nfunction lookup(uri, opts) {\n    if (typeof uri === \"object\") {\n        opts = uri;\n        uri = undefined;\n    }\n    opts = opts || {};\n    const parsed = url_1.url(uri, opts.path);\n    const source = parsed.source;\n    const id = parsed.id;\n    const path = parsed.path;\n    const sameNamespace = cache[id] && path in cache[id][\"nsps\"];\n    const newConnection = opts.forceNew ||\n        opts[\"force new connection\"] ||\n        false === opts.multiplex ||\n        sameNamespace;\n    let io;\n    if (newConnection) {\n\n\n        io = new manager_1.Manager(source, opts);\n    }\n    else {\n        if (!cache[id]) {\n\n\n            cache[id] = new manager_1.Manager(source, opts);\n        }\n        io = cache[id];\n    }\n    if (parsed.query && !opts.query) {\n        opts.query = parsed.queryKey;\n    }\n    return io.socket(parsed.path, opts);\n}\nexports.io = lookup;\n/**\n * Protocol version.\n *\n * @public\n */\nvar socket_io_parser_1 = require(\"socket.io-parser\");\nObject.defineProperty(exports, \"protocol\", { enumerable: true, get: function () { return socket_io_parser_1.protocol; } });\n/**\n * `connect`.\n *\n * @param {String} uri\n * @public\n */\nexports.connect = lookup;\n/**\n * Expose constructors for standalone build.\n *\n * @public\n */\nvar manager_2 = require(\"./manager\");\nObject.defineProperty(exports, \"Manager\", { enumerable: true, get: function () { return manager_2.Manager; } });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.url = void 0;\nconst parseuri = require(\"parseuri\");\n\n\n/**\n * URL parser.\n *\n * @param uri - url\n * @param path - the request path of the connection\n * @param loc - An object meant to mimic window.location.\n *        Defaults to window.location.\n * @public\n */\nfunction url(uri, path = \"\", loc) {\n    let obj = uri;\n    // default to window.location\n    loc = loc || (typeof location !== \"undefined\" && location);\n    if (null == uri)\n        uri = loc.protocol + \"//\" + loc.host;\n    // relative path support\n    if (typeof uri === \"string\") {\n        if (\"/\" === uri.charAt(0)) {\n            if (\"/\" === uri.charAt(1)) {\n                uri = loc.protocol + uri;\n            }\n            else {\n                uri = loc.host + uri;\n            }\n        }\n        if (!/^(https?|wss?):\\/\\//.test(uri)) {\n\n\n            if (\"undefined\" !== typeof loc) {\n                uri = loc.protocol + \"//\" + uri;\n            }\n            else {\n                uri = \"https://\" + uri;\n            }\n        }\n        // parse\n\n\n        obj = parseuri(uri);\n    }\n    // make sure we treat `localhost:80` and `localhost` equally\n    if (!obj.port) {\n        if (/^(http|ws)$/.test(obj.protocol)) {\n            obj.port = \"80\";\n        }\n        else if (/^(http|ws)s$/.test(obj.protocol)) {\n            obj.port = \"443\";\n        }\n    }\n    obj.path = obj.path || \"/\";\n    const ipv6 = obj.host.indexOf(\":\") !== -1;\n    const host = ipv6 ? \"[\" + obj.host + \"]\" : obj.host;\n    // define unique id\n    obj.id = obj.protocol + \"://\" + host + \":\" + obj.port + path;\n    // define href\n    obj.href =\n        obj.protocol +\n            \"://\" +\n            host +\n            (loc && loc.port === obj.port ? \"\" : \":\" + obj.port);\n    return obj;\n}\nexports.url = url;\n","const Socket = require(\"./socket\");\n\nmodule.exports = (uri, opts) => new Socket(uri, opts);\n\n/**\n * Expose deps for legacy compatibility\n * and standalone browser access.\n */\n\nmodule.exports.Socket = Socket;\nmodule.exports.protocol = Socket.protocol; // this is an int\nmodule.exports.Transport = require(\"./transport\");\nmodule.exports.transports = require(\"./transports/index\");\nmodule.exports.parser = require(\"engine.io-parser\");\n","const transports = require(\"./transports/index\");\nconst Emitter = require(\"component-emitter\");\n\n\nconst parser = require(\"engine.io-parser\");\nconst parseuri = require(\"parseuri\");\nconst parseqs = require(\"parseqs\");\n\nclass Socket extends Emitter {\n  /**\n   * Socket constructor.\n   *\n   * @param {String|Object} uri or options\n   * @param {Object} options\n   * @api public\n   */\n  constructor(uri, opts = {}) {\n    super();\n\n    if (uri && \"object\" === typeof uri) {\n      opts = uri;\n      uri = null;\n    }\n\n    if (uri) {\n      uri = parseuri(uri);\n      opts.hostname = uri.host;\n      opts.secure = uri.protocol === \"https\" || uri.protocol === \"wss\";\n      opts.port = uri.port;\n      if (uri.query) opts.query = uri.query;\n    } else if (opts.host) {\n      opts.hostname = parseuri(opts.host).host;\n    }\n\n    this.secure =\n      null != opts.secure\n        ? opts.secure\n        : typeof location !== \"undefined\" && \"https:\" === location.protocol;\n\n    if (opts.hostname && !opts.port) {\n      // if no port is specified manually, use the protocol default\n      opts.port = this.secure ? \"443\" : \"80\";\n    }\n\n    this.hostname =\n      opts.hostname ||\n      (typeof location !== \"undefined\" ? location.hostname : \"localhost\");\n    this.port =\n      opts.port ||\n      (typeof location !== \"undefined\" && location.port\n        ? location.port\n        : this.secure\n        ? 443\n        : 80);\n\n    this.transports = opts.transports || [\"polling\", \"websocket\"];\n    this.readyState = \"\";\n    this.writeBuffer = [];\n    this.prevBufferLen = 0;\n\n    this.opts = Object.assign(\n      {\n        path: \"/engine.io\",\n        agent: false,\n        withCredentials: false,\n        upgrade: true,\n        jsonp: true,\n        timestampParam: \"t\",\n        rememberUpgrade: false,\n        rejectUnauthorized: true,\n        perMessageDeflate: {\n          threshold: 1024\n        },\n        transportOptions: {}\n      },\n      opts\n    );\n\n    this.opts.path = this.opts.path.replace(/\\/$/, \"\") + \"/\";\n\n    if (typeof this.opts.query === \"string\") {\n      this.opts.query = parseqs.decode(this.opts.query);\n    }\n\n    // set on handshake\n    this.id = null;\n    this.upgrades = null;\n    this.pingInterval = null;\n    this.pingTimeout = null;\n\n    // set on heartbeat\n    this.pingTimeoutTimer = null;\n\n    if (typeof addEventListener === \"function\") {\n      addEventListener(\n        \"beforeunload\",\n        () => {\n          if (this.transport) {\n            // silently close the transport\n            this.transport.removeAllListeners();\n            this.transport.close();\n          }\n        },\n        false\n      );\n    }\n\n    this.open();\n  }\n\n  /**\n   * Creates transport of the given type.\n   *\n   * @param {String} transport name\n   * @return {Transport}\n   * @api private\n   */\n  createTransport(name) {\n\n\n    const query = clone(this.opts.query);\n\n    // append engine.io protocol identifier\n    query.EIO = parser.protocol;\n\n    // transport name\n    query.transport = name;\n\n    // session id if we already have one\n    if (this.id) query.sid = this.id;\n\n    const opts = Object.assign(\n      {},\n      this.opts.transportOptions[name],\n      this.opts,\n      {\n        query,\n        socket: this,\n        hostname: this.hostname,\n        secure: this.secure,\n        port: this.port\n      }\n    );\n\n\n\n\n    return new transports[name](opts);\n  }\n\n  /**\n   * Initializes transport to use and starts probe.\n   *\n   * @api private\n   */\n  open() {\n    let transport;\n    if (\n      this.opts.rememberUpgrade &&\n      Socket.priorWebsocketSuccess &&\n      this.transports.indexOf(\"websocket\") !== -1\n    ) {\n      transport = \"websocket\";\n    } else if (0 === this.transports.length) {\n      // Emit error on next tick so it can be listened to\n      const self = this;\n      setTimeout(function() {\n        self.emit(\"error\", \"No transports available\");\n      }, 0);\n      return;\n    } else {\n      transport = this.transports[0];\n    }\n    this.readyState = \"opening\";\n\n    // Retry with the next transport if the transport is disabled (jsonp: false)\n    try {\n      transport = this.createTransport(transport);\n    } catch (e) {\n\n\n      this.transports.shift();\n      this.open();\n      return;\n    }\n\n    transport.open();\n    this.setTransport(transport);\n  }\n\n  /**\n   * Sets the current transport. Disables the existing one (if any).\n   *\n   * @api private\n   */\n  setTransport(transport) {\n\n\n    const self = this;\n\n    if (this.transport) {\n\n\n      this.transport.removeAllListeners();\n    }\n\n    // set up transport\n    this.transport = transport;\n\n    // set up transport listeners\n    transport\n      .on(\"drain\", function() {\n        self.onDrain();\n      })\n      .on(\"packet\", function(packet) {\n        self.onPacket(packet);\n      })\n      .on(\"error\", function(e) {\n        self.onError(e);\n      })\n      .on(\"close\", function() {\n        self.onClose(\"transport close\");\n      });\n  }\n\n  /**\n   * Probes a transport.\n   *\n   * @param {String} transport name\n   * @api private\n   */\n  probe(name) {\n\n\n    let transport = this.createTransport(name, { probe: 1 });\n    let failed = false;\n    const self = this;\n\n    Socket.priorWebsocketSuccess = false;\n\n    function onTransportOpen() {\n      if (self.onlyBinaryUpgrades) {\n        const upgradeLosesBinary =\n          !this.supportsBinary && self.transport.supportsBinary;\n        failed = failed || upgradeLosesBinary;\n      }\n      if (failed) return;\n\n\n\n      transport.send([{ type: \"ping\", data: \"probe\" }]);\n      transport.once(\"packet\", function(msg) {\n        if (failed) return;\n        if (\"pong\" === msg.type && \"probe\" === msg.data) {\n\n\n          self.upgrading = true;\n          self.emit(\"upgrading\", transport);\n          if (!transport) return;\n          Socket.priorWebsocketSuccess = \"websocket\" === transport.name;\n\n\n\n          self.transport.pause(function() {\n            if (failed) return;\n            if (\"closed\" === self.readyState) return;\n\n\n\n            cleanup();\n\n            self.setTransport(transport);\n            transport.send([{ type: \"upgrade\" }]);\n            self.emit(\"upgrade\", transport);\n            transport = null;\n            self.upgrading = false;\n            self.flush();\n          });\n        } else {\n\n\n          const err = new Error(\"probe error\");\n          err.transport = transport.name;\n          self.emit(\"upgradeError\", err);\n        }\n      });\n    }\n\n    function freezeTransport() {\n      if (failed) return;\n\n      // Any callback called by transport should be ignored since now\n      failed = true;\n\n      cleanup();\n\n      transport.close();\n      transport = null;\n    }\n\n    // Handle any error that happens while probing\n    function onerror(err) {\n      const error = new Error(\"probe error: \" + err);\n      error.transport = transport.name;\n\n      freezeTransport();\n\n\n\n\n      self.emit(\"upgradeError\", error);\n    }\n\n    function onTransportClose() {\n      onerror(\"transport closed\");\n    }\n\n    // When the socket is closed while we're probing\n    function onclose() {\n      onerror(\"socket closed\");\n    }\n\n    // When the socket is upgraded while we're probing\n    function onupgrade(to) {\n      if (transport && to.name !== transport.name) {\n\n\n        freezeTransport();\n      }\n    }\n\n    // Remove all listeners on the transport and on self\n    function cleanup() {\n      transport.removeListener(\"open\", onTransportOpen);\n      transport.removeListener(\"error\", onerror);\n      transport.removeListener(\"close\", onTransportClose);\n      self.removeListener(\"close\", onclose);\n      self.removeListener(\"upgrading\", onupgrade);\n    }\n\n    transport.once(\"open\", onTransportOpen);\n    transport.once(\"error\", onerror);\n    transport.once(\"close\", onTransportClose);\n\n    this.once(\"close\", onclose);\n    this.once(\"upgrading\", onupgrade);\n\n    transport.open();\n  }\n\n  /**\n   * Called when connection is deemed open.\n   *\n   * @api public\n   */\n  onOpen() {\n\n\n    this.readyState = \"open\";\n    Socket.priorWebsocketSuccess = \"websocket\" === this.transport.name;\n    this.emit(\"open\");\n    this.flush();\n\n    // we check for `readyState` in case an `open`\n    // listener already closed the socket\n    if (\n      \"open\" === this.readyState &&\n      this.opts.upgrade &&\n      this.transport.pause\n    ) {\n\n\n      let i = 0;\n      const l = this.upgrades.length;\n      for (; i < l; i++) {\n        this.probe(this.upgrades[i]);\n      }\n    }\n  }\n\n  /**\n   * Handles a packet.\n   *\n   * @api private\n   */\n  onPacket(packet) {\n    if (\n      \"opening\" === this.readyState ||\n      \"open\" === this.readyState ||\n      \"closing\" === this.readyState\n    ) {\n\n\n\n      this.emit(\"packet\", packet);\n\n      // Socket is live - any packet counts\n      this.emit(\"heartbeat\");\n\n      switch (packet.type) {\n        case \"open\":\n          this.onHandshake(JSON.parse(packet.data));\n          break;\n\n        case \"ping\":\n          this.resetPingTimeout();\n          this.sendPacket(\"pong\");\n          this.emit(\"pong\");\n          break;\n\n        case \"error\":\n          const err = new Error(\"server error\");\n          err.code = packet.data;\n          this.onError(err);\n          break;\n\n        case \"message\":\n          this.emit(\"data\", packet.data);\n          this.emit(\"message\", packet.data);\n          break;\n      }\n    } else {\n\n\n    }\n  }\n\n  /**\n   * Called upon handshake completion.\n   *\n   * @param {Object} handshake obj\n   * @api private\n   */\n  onHandshake(data) {\n    this.emit(\"handshake\", data);\n    this.id = data.sid;\n    this.transport.query.sid = data.sid;\n    this.upgrades = this.filterUpgrades(data.upgrades);\n    this.pingInterval = data.pingInterval;\n    this.pingTimeout = data.pingTimeout;\n    this.onOpen();\n    // In case open handler closes socket\n    if (\"closed\" === this.readyState) return;\n    this.resetPingTimeout();\n  }\n\n  /**\n   * Sets and resets ping timeout timer based on server pings.\n   *\n   * @api private\n   */\n  resetPingTimeout() {\n    clearTimeout(this.pingTimeoutTimer);\n    this.pingTimeoutTimer = setTimeout(() => {\n      this.onClose(\"ping timeout\");\n    }, this.pingInterval + this.pingTimeout);\n  }\n\n  /**\n   * Called on `drain` event\n   *\n   * @api private\n   */\n  onDrain() {\n    this.writeBuffer.splice(0, this.prevBufferLen);\n\n    // setting prevBufferLen = 0 is very important\n    // for example, when upgrading, upgrade packet is sent over,\n    // and a nonzero prevBufferLen could cause problems on `drain`\n    this.prevBufferLen = 0;\n\n    if (0 === this.writeBuffer.length) {\n      this.emit(\"drain\");\n    } else {\n      this.flush();\n    }\n  }\n\n  /**\n   * Flush write buffers.\n   *\n   * @api private\n   */\n  flush() {\n    if (\n      \"closed\" !== this.readyState &&\n      this.transport.writable &&\n      !this.upgrading &&\n      this.writeBuffer.length\n    ) {\n\n\n      this.transport.send(this.writeBuffer);\n      // keep track of current length of writeBuffer\n      // splice writeBuffer and callbackBuffer on `drain`\n      this.prevBufferLen = this.writeBuffer.length;\n      this.emit(\"flush\");\n    }\n  }\n\n  /**\n   * Sends a message.\n   *\n   * @param {String} message.\n   * @param {Function} callback function.\n   * @param {Object} options.\n   * @return {Socket} for chaining.\n   * @api public\n   */\n  write(msg, options, fn) {\n    this.sendPacket(\"message\", msg, options, fn);\n    return this;\n  }\n\n  send(msg, options, fn) {\n    this.sendPacket(\"message\", msg, options, fn);\n    return this;\n  }\n\n  /**\n   * Sends a packet.\n   *\n   * @param {String} packet type.\n   * @param {String} data.\n   * @param {Object} options.\n   * @param {Function} callback function.\n   * @api private\n   */\n  sendPacket(type, data, options, fn) {\n    if (\"function\" === typeof data) {\n      fn = data;\n      data = undefined;\n    }\n\n    if (\"function\" === typeof options) {\n      fn = options;\n      options = null;\n    }\n\n    if (\"closing\" === this.readyState || \"closed\" === this.readyState) {\n      return;\n    }\n\n    options = options || {};\n    options.compress = false !== options.compress;\n\n    const packet = {\n      type: type,\n      data: data,\n      options: options\n    };\n    this.emit(\"packetCreate\", packet);\n    this.writeBuffer.push(packet);\n    if (fn) this.once(\"flush\", fn);\n    this.flush();\n  }\n\n  /**\n   * Closes the connection.\n   *\n   * @api private\n   */\n  close() {\n    const self = this;\n\n    if (\"opening\" === this.readyState || \"open\" === this.readyState) {\n      this.readyState = \"closing\";\n\n      if (this.writeBuffer.length) {\n        this.once(\"drain\", function() {\n          if (this.upgrading) {\n            waitForUpgrade();\n          } else {\n            close();\n          }\n        });\n      } else if (this.upgrading) {\n        waitForUpgrade();\n      } else {\n        close();\n      }\n    }\n\n    function close() {\n      self.onClose(\"forced close\");\n\n\n      self.transport.close();\n    }\n\n    function cleanupAndClose() {\n      self.removeListener(\"upgrade\", cleanupAndClose);\n      self.removeListener(\"upgradeError\", cleanupAndClose);\n      close();\n    }\n\n    function waitForUpgrade() {\n      // wait for upgrade to finish since we can't send packets while pausing a transport\n      self.once(\"upgrade\", cleanupAndClose);\n      self.once(\"upgradeError\", cleanupAndClose);\n    }\n\n    return this;\n  }\n\n  /**\n   * Called upon transport error\n   *\n   * @api private\n   */\n  onError(err) {\n\n\n    Socket.priorWebsocketSuccess = false;\n    this.emit(\"error\", err);\n    this.onClose(\"transport error\", err);\n  }\n\n  /**\n   * Called upon transport close.\n   *\n   * @api private\n   */\n  onClose(reason, desc) {\n    if (\n      \"opening\" === this.readyState ||\n      \"open\" === this.readyState ||\n      \"closing\" === this.readyState\n    ) {\n\n\n      const self = this;\n\n      // clear timers\n      clearTimeout(this.pingIntervalTimer);\n      clearTimeout(this.pingTimeoutTimer);\n\n      // stop event from firing again for transport\n      this.transport.removeAllListeners(\"close\");\n\n      // ensure transport won't stay open\n      this.transport.close();\n\n      // ignore further transport communication\n      this.transport.removeAllListeners();\n\n      // set ready state\n      this.readyState = \"closed\";\n\n      // clear session id\n      this.id = null;\n\n      // emit close event\n      this.emit(\"close\", reason, desc);\n\n      // clean buffers after, so users can still\n      // grab the buffers on `close` event\n      self.writeBuffer = [];\n      self.prevBufferLen = 0;\n    }\n  }\n\n  /**\n   * Filters upgrades, returning only those matching client transports.\n   *\n   * @param {Array} server upgrades\n   * @api private\n   *\n   */\n  filterUpgrades(upgrades) {\n    const filteredUpgrades = [];\n    let i = 0;\n    const j = upgrades.length;\n    for (; i < j; i++) {\n      if (~this.transports.indexOf(upgrades[i]))\n        filteredUpgrades.push(upgrades[i]);\n    }\n    return filteredUpgrades;\n  }\n}\n\nSocket.priorWebsocketSuccess = false;\n\n/**\n * Protocol version.\n *\n * @api public\n */\n\nSocket.protocol = parser.protocol; // this is an int\n\nfunction clone(obj) {\n  const o = {};\n  for (let i in obj) {\n    if (obj.hasOwnProperty(i)) {\n      o[i] = obj[i];\n    }\n  }\n  return o;\n}\n\nmodule.exports = Socket;\n","\n/**\n * Module exports.\n *\n * Logic borrowed from Modernizr:\n *\n *   - https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cors.js\n */\n\ntry {\n  module.exports = typeof XMLHttpRequest !== 'undefined' &&\n    'withCredentials' in new XMLHttpRequest();\n} catch (err) {\n  // if XMLHttp support is disabled in IE then it will throw\n  // when trying to create\n  module.exports = false;\n}\n","/* global attachEvent */\n\nconst XMLHttpRequest = require(\"xmlhttprequest-ssl\");\nconst Polling = require(\"./polling\");\nconst Emitter = require(\"component-emitter\");\nconst { pick } = require(\"../util\");\nconst globalThis = require(\"../globalThis\");\n\n\n\n\n/**\n * Empty function\n */\n\nfunction empty() {}\n\nconst hasXHR2 = (function() {\n  const xhr = new XMLHttpRequest({ xdomain: false });\n  return null != xhr.responseType;\n})();\n\nclass XHR extends Polling {\n  /**\n   * XHR Polling constructor.\n   *\n   * @param {Object} opts\n   * @api public\n   */\n  constructor(opts) {\n    super(opts);\n\n    if (typeof location !== \"undefined\") {\n      const isSSL = \"https:\" === location.protocol;\n      let port = location.port;\n\n      // some user agents have empty `location.port`\n      if (!port) {\n        port = isSSL ? 443 : 80;\n      }\n\n      this.xd =\n        (typeof location !== \"undefined\" &&\n          opts.hostname !== location.hostname) ||\n        port !== opts.port;\n      this.xs = opts.secure !== isSSL;\n    }\n    /**\n     * XHR supports binary\n     */\n    const forceBase64 = opts && opts.forceBase64;\n    this.supportsBinary = hasXHR2 && !forceBase64;\n  }\n\n  /**\n   * Creates a request.\n   *\n   * @param {String} method\n   * @api private\n   */\n  request(opts = {}) {\n    Object.assign(opts, { xd: this.xd, xs: this.xs }, this.opts);\n    return new Request(this.uri(), opts);\n  }\n\n  /**\n   * Sends data.\n   *\n   * @param {String} data to send.\n   * @param {Function} called upon flush.\n   * @api private\n   */\n  doWrite(data, fn) {\n    const req = this.request({\n      method: \"POST\",\n      data: data\n    });\n    const self = this;\n    req.on(\"success\", fn);\n    req.on(\"error\", function(err) {\n      self.onError(\"xhr post error\", err);\n    });\n  }\n\n  /**\n   * Starts a poll cycle.\n   *\n   * @api private\n   */\n  doPoll() {\n\n\n    const req = this.request();\n    const self = this;\n    req.on(\"data\", function(data) {\n      self.onData(data);\n    });\n    req.on(\"error\", function(err) {\n      self.onError(\"xhr poll error\", err);\n    });\n    this.pollXhr = req;\n  }\n}\n\nclass Request extends Emitter {\n  /**\n   * Request constructor\n   *\n   * @param {Object} options\n   * @api public\n   */\n  constructor(uri, opts) {\n    super();\n    this.opts = opts;\n\n    this.method = opts.method || \"GET\";\n    this.uri = uri;\n    this.async = false !== opts.async;\n    this.data = undefined !== opts.data ? opts.data : null;\n\n    this.create();\n  }\n\n  /**\n   * Creates the XHR object and sends the request.\n   *\n   * @api private\n   */\n  create() {\n    const opts = pick(\n      this.opts,\n      \"agent\",\n      \"enablesXDR\",\n      \"pfx\",\n      \"key\",\n      \"passphrase\",\n      \"cert\",\n      \"ca\",\n      \"ciphers\",\n      \"rejectUnauthorized\"\n    );\n    opts.xdomain = !!this.opts.xd;\n    opts.xscheme = !!this.opts.xs;\n\n    const xhr = (this.xhr = new XMLHttpRequest(opts));\n    const self = this;\n\n    try {\n\n\n      xhr.open(this.method, this.uri, this.async);\n      try {\n        if (this.opts.extraHeaders) {\n          xhr.setDisableHeaderCheck && xhr.setDisableHeaderCheck(true);\n          for (let i in this.opts.extraHeaders) {\n            if (this.opts.extraHeaders.hasOwnProperty(i)) {\n              xhr.setRequestHeader(i, this.opts.extraHeaders[i]);\n            }\n          }\n        }\n      } catch (e) {}\n\n      if (\"POST\" === this.method) {\n        try {\n          xhr.setRequestHeader(\"Content-type\", \"text/plain;charset=UTF-8\");\n        } catch (e) {}\n      }\n\n      try {\n        xhr.setRequestHeader(\"Accept\", \"*/*\");\n      } catch (e) {}\n\n      // ie6 check\n      if (\"withCredentials\" in xhr) {\n        xhr.withCredentials = this.opts.withCredentials;\n      }\n\n      if (this.opts.requestTimeout) {\n        xhr.timeout = this.opts.requestTimeout;\n      }\n\n      if (this.hasXDR()) {\n        xhr.onload = function() {\n          self.onLoad();\n        };\n        xhr.onerror = function() {\n          self.onError(xhr.responseText);\n        };\n      } else {\n        xhr.onreadystatechange = function() {\n          if (4 !== xhr.readyState) return;\n          if (200 === xhr.status || 1223 === xhr.status) {\n            self.onLoad();\n          } else {\n            // make sure the `error` event handler that's user-set\n            // does not throw in the same tick and gets caught here\n            setTimeout(function() {\n              self.onError(typeof xhr.status === \"number\" ? xhr.status : 0);\n            }, 0);\n          }\n        };\n      }\n\n\n\n      xhr.send(this.data);\n    } catch (e) {\n      // Need to defer since .create() is called directly from the constructor\n      // and thus the 'error' event can only be only bound *after* this exception\n      // occurs.  Therefore, also, we cannot throw here at all.\n      setTimeout(function() {\n        self.onError(e);\n      }, 0);\n      return;\n    }\n\n    if (typeof document !== \"undefined\") {\n      this.index = Request.requestsCount++;\n      Request.requests[this.index] = this;\n    }\n  }\n\n  /**\n   * Called upon successful response.\n   *\n   * @api private\n   */\n  onSuccess() {\n    this.emit(\"success\");\n    this.cleanup();\n  }\n\n  /**\n   * Called if we have data.\n   *\n   * @api private\n   */\n  onData(data) {\n    this.emit(\"data\", data);\n    this.onSuccess();\n  }\n\n  /**\n   * Called upon error.\n   *\n   * @api private\n   */\n  onError(err) {\n    this.emit(\"error\", err);\n    this.cleanup(true);\n  }\n\n  /**\n   * Cleans up house.\n   *\n   * @api private\n   */\n  cleanup(fromError) {\n    if (\"undefined\" === typeof this.xhr || null === this.xhr) {\n      return;\n    }\n    // xmlhttprequest\n    if (this.hasXDR()) {\n      this.xhr.onload = this.xhr.onerror = empty;\n    } else {\n      this.xhr.onreadystatechange = empty;\n    }\n\n    if (fromError) {\n      try {\n        this.xhr.abort();\n      } catch (e) {}\n    }\n\n    if (typeof document !== \"undefined\") {\n      delete Request.requests[this.index];\n    }\n\n    this.xhr = null;\n  }\n\n  /**\n   * Called upon load.\n   *\n   * @api private\n   */\n  onLoad() {\n    const data = this.xhr.responseText;\n    if (data !== null) {\n      this.onData(data);\n    }\n  }\n\n  /**\n   * Check if it has XDomainRequest.\n   *\n   * @api private\n   */\n  hasXDR() {\n    return typeof XDomainRequest !== \"undefined\" && !this.xs && this.enablesXDR;\n  }\n\n  /**\n   * Aborts the request.\n   *\n   * @api public\n   */\n  abort() {\n    this.cleanup();\n  }\n}\n\n/**\n * Aborts pending requests when unloading the window. This is needed to prevent\n * memory leaks (e.g. when using IE) and to ensure that no spurious error is\n * emitted.\n */\n\nRequest.requestsCount = 0;\nRequest.requests = {};\n\nif (typeof document !== \"undefined\") {\n  if (typeof attachEvent === \"function\") {\n    attachEvent(\"onunload\", unloadHandler);\n  } else if (typeof addEventListener === \"function\") {\n    const terminationEvent = \"onpagehide\" in globalThis ? \"pagehide\" : \"unload\";\n    addEventListener(terminationEvent, unloadHandler, false);\n  }\n}\n\nfunction unloadHandler() {\n  for (let i in Request.requests) {\n    if (Request.requests.hasOwnProperty(i)) {\n      Request.requests[i].abort();\n    }\n  }\n}\n\nmodule.exports = XHR;\nmodule.exports.Request = Request;\n","const { PACKET_TYPES } = require(\"./commons\");\n\nconst withNativeBlob =\n  typeof Blob === \"function\" ||\n  (typeof Blob !== \"undefined\" &&\n    Object.prototype.toString.call(Blob) === \"[object BlobConstructor]\");\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\n\n// ArrayBuffer.isView method is not defined in IE10\nconst isView = obj => {\n  return typeof ArrayBuffer.isView === \"function\"\n    ? ArrayBuffer.isView(obj)\n    : obj && obj.buffer instanceof ArrayBuffer;\n};\n\nconst encodePacket = ({ type, data }, supportsBinary, callback) => {\n  if (withNativeBlob && data instanceof Blob) {\n    if (supportsBinary) {\n      return callback(data);\n    } else {\n      return encodeBlobAsBase64(data, callback);\n    }\n  } else if (\n    withNativeArrayBuffer &&\n    (data instanceof ArrayBuffer || isView(data))\n  ) {\n    if (supportsBinary) {\n      return callback(data instanceof ArrayBuffer ? data : data.buffer);\n    } else {\n      return encodeBlobAsBase64(new Blob([data]), callback);\n    }\n  }\n  // plain string\n  return callback(PACKET_TYPES[type] + (data || \"\"));\n};\n\nconst encodeBlobAsBase64 = (data, callback) => {\n  const fileReader = new FileReader();\n  fileReader.onload = function() {\n    const content = fileReader.result.split(\",\")[1];\n    callback(\"b\" + content);\n  };\n  return fileReader.readAsDataURL(data);\n};\n\nmodule.exports = encodePacket;\n","const { PACKET_TYPES_REVERSE, ERROR_PACKET } = require(\"./commons\");\n\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\n\nlet base64decoder;\nif (withNativeArrayBuffer) {\n  base64decoder = require(\"base64-arraybuffer\");\n}\n\nconst decodePacket = (encodedPacket, binaryType) => {\n  if (typeof encodedPacket !== \"string\") {\n    return {\n      type: \"message\",\n      data: mapBinary(encodedPacket, binaryType)\n    };\n  }\n  const type = encodedPacket.charAt(0);\n  if (type === \"b\") {\n    return {\n      type: \"message\",\n      data: decodeBase64Packet(encodedPacket.substring(1), binaryType)\n    };\n  }\n  const packetType = PACKET_TYPES_REVERSE[type];\n  if (!packetType) {\n    return ERROR_PACKET;\n  }\n  return encodedPacket.length > 1\n    ? {\n        type: PACKET_TYPES_REVERSE[type],\n        data: encodedPacket.substring(1)\n      }\n    : {\n        type: PACKET_TYPES_REVERSE[type]\n      };\n};\n\nconst decodeBase64Packet = (data, binaryType) => {\n  if (base64decoder) {\n    const decoded = base64decoder.decode(data);\n    return mapBinary(decoded, binaryType);\n  } else {\n    return { base64: true, data }; // fallback for old browsers\n  }\n};\n\nconst mapBinary = (data, binaryType) => {\n  switch (binaryType) {\n    case \"blob\":\n      return data instanceof ArrayBuffer ? new Blob([data]) : data;\n    case \"arraybuffer\":\n    default:\n      return data; // assuming the data is already an ArrayBuffer\n  }\n};\n\nmodule.exports = decodePacket;\n","/*\n * base64-arraybuffer\n * https://github.com/niklasvh/base64-arraybuffer\n *\n * Copyright (c) 2012 Niklas von Hertzen\n * Licensed under the MIT license.\n */\n(function(chars){\n  \"use strict\";\n\n  exports.encode = function(arraybuffer) {\n    var bytes = new Uint8Array(arraybuffer),\n    i, len = bytes.length, base64 = \"\";\n\n    for (i = 0; i < len; i+=3) {\n      base64 += chars[bytes[i] >> 2];\n      base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];\n      base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];\n      base64 += chars[bytes[i + 2] & 63];\n    }\n\n    if ((len % 3) === 2) {\n      base64 = base64.substring(0, base64.length - 1) + \"=\";\n    } else if (len % 3 === 1) {\n      base64 = base64.substring(0, base64.length - 2) + \"==\";\n    }\n\n    return base64;\n  };\n\n  exports.decode =  function(base64) {\n    var bufferLength = base64.length * 0.75,\n    len = base64.length, i, p = 0,\n    encoded1, encoded2, encoded3, encoded4;\n\n    if (base64[base64.length - 1] === \"=\") {\n      bufferLength--;\n      if (base64[base64.length - 2] === \"=\") {\n        bufferLength--;\n      }\n    }\n\n    var arraybuffer = new ArrayBuffer(bufferLength),\n    bytes = new Uint8Array(arraybuffer);\n\n    for (i = 0; i < len; i+=4) {\n      encoded1 = chars.indexOf(base64[i]);\n      encoded2 = chars.indexOf(base64[i+1]);\n      encoded3 = chars.indexOf(base64[i+2]);\n      encoded4 = chars.indexOf(base64[i+3]);\n\n      bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);\n      bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);\n      bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);\n    }\n\n    return arraybuffer;\n  };\n})(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\");\n","const Polling = require(\"./polling\");\nconst globalThis = require(\"../globalThis\");\n\nconst rNewline = /\\n/g;\nconst rEscapedNewline = /\\\\n/g;\n\n/**\n * Global JSONP callbacks.\n */\n\nlet callbacks;\n\nclass JSONPPolling extends Polling {\n  /**\n   * JSONP Polling constructor.\n   *\n   * @param {Object} opts.\n   * @api public\n   */\n  constructor(opts) {\n    super(opts);\n\n    this.query = this.query || {};\n\n    // define global callbacks array if not present\n    // we do this here (lazily) to avoid unneeded global pollution\n    if (!callbacks) {\n      // we need to consider multiple engines in the same page\n      callbacks = globalThis.___eio = globalThis.___eio || [];\n    }\n\n    // callback identifier\n    this.index = callbacks.length;\n\n    // add callback to jsonp global\n    const self = this;\n    callbacks.push(function(msg) {\n      self.onData(msg);\n    });\n\n    // append to query string\n    this.query.j = this.index;\n  }\n\n  /**\n   * JSONP only supports binary as base64 encoded strings\n   */\n  get supportsBinary() {\n    return false;\n  }\n\n  /**\n   * Closes the socket.\n   *\n   * @api private\n   */\n  doClose() {\n    if (this.script) {\n      // prevent spurious errors from being emitted when the window is unloaded\n      this.script.onerror = () => {};\n      this.script.parentNode.removeChild(this.script);\n      this.script = null;\n    }\n\n    if (this.form) {\n      this.form.parentNode.removeChild(this.form);\n      this.form = null;\n      this.iframe = null;\n    }\n\n    super.doClose();\n  }\n\n  /**\n   * Starts a poll cycle.\n   *\n   * @api private\n   */\n  doPoll() {\n    const self = this;\n    const script = document.createElement(\"script\");\n\n    if (this.script) {\n      this.script.parentNode.removeChild(this.script);\n      this.script = null;\n    }\n\n    script.async = true;\n    script.src = this.uri();\n    script.onerror = function(e) {\n      self.onError(\"jsonp poll error\", e);\n    };\n\n    const insertAt = document.getElementsByTagName(\"script\")[0];\n    if (insertAt) {\n      insertAt.parentNode.insertBefore(script, insertAt);\n    } else {\n      (document.head || document.body).appendChild(script);\n    }\n    this.script = script;\n\n    const isUAgecko =\n      \"undefined\" !== typeof navigator && /gecko/i.test(navigator.userAgent);\n\n    if (isUAgecko) {\n      setTimeout(function() {\n        const iframe = document.createElement(\"iframe\");\n        document.body.appendChild(iframe);\n        document.body.removeChild(iframe);\n      }, 100);\n    }\n  }\n\n  /**\n   * Writes with a hidden iframe.\n   *\n   * @param {String} data to send\n   * @param {Function} called upon flush.\n   * @api private\n   */\n  doWrite(data, fn) {\n    const self = this;\n    let iframe;\n\n    if (!this.form) {\n      const form = document.createElement(\"form\");\n      const area = document.createElement(\"textarea\");\n      const id = (this.iframeId = \"eio_iframe_\" + this.index);\n\n      form.className = \"socketio\";\n      form.style.position = \"absolute\";\n      form.style.top = \"-1000px\";\n      form.style.left = \"-1000px\";\n      form.target = id;\n      form.method = \"POST\";\n      form.setAttribute(\"accept-charset\", \"utf-8\");\n      area.name = \"d\";\n      form.appendChild(area);\n      document.body.appendChild(form);\n\n      this.form = form;\n      this.area = area;\n    }\n\n    this.form.action = this.uri();\n\n    function complete() {\n      initIframe();\n      fn();\n    }\n\n    function initIframe() {\n      if (self.iframe) {\n        try {\n          self.form.removeChild(self.iframe);\n        } catch (e) {\n          self.onError(\"jsonp polling iframe removal error\", e);\n        }\n      }\n\n      try {\n        // ie6 dynamic iframes with target=\"\" support (thanks Chris Lambacher)\n        const html = '<iframe src=\"javascript:0\" name=\"' + self.iframeId + '\">';\n        iframe = document.createElement(html);\n      } catch (e) {\n        iframe = document.createElement(\"iframe\");\n        iframe.name = self.iframeId;\n        iframe.src = \"javascript:0\";\n      }\n\n      iframe.id = self.iframeId;\n\n      self.form.appendChild(iframe);\n      self.iframe = iframe;\n    }\n\n    initIframe();\n\n    // escape \\n to prevent it from being converted into \\r\\n by some UAs\n    // double escaping is required for escaped new lines because unescaping of new lines can be done safely on server-side\n    data = data.replace(rEscapedNewline, \"\\\\\\n\");\n    this.area.value = data.replace(rNewline, \"\\\\n\");\n\n    try {\n      this.form.submit();\n    } catch (e) {}\n\n    if (this.iframe.attachEvent) {\n      this.iframe.onreadystatechange = function() {\n        if (self.iframe.readyState === \"complete\") {\n          complete();\n        }\n      };\n    } else {\n      this.iframe.onload = complete;\n    }\n  }\n}\n\nmodule.exports = JSONPPolling;\n","const Transport = require(\"../transport\");\nconst parser = require(\"engine.io-parser\");\nconst parseqs = require(\"parseqs\");\nconst yeast = require(\"yeast\");\nconst { pick } = require(\"../util\");\nconst {\n  WebSocket,\n  usingBrowserWebSocket,\n  defaultBinaryType\n} = require(\"./websocket-constructor\");\n\n\n\n\n// detect ReactNative environment\nconst isReactNative =\n  typeof navigator !== \"undefined\" &&\n  typeof navigator.product === \"string\" &&\n  navigator.product.toLowerCase() === \"reactnative\";\n\nclass WS extends Transport {\n  /**\n   * WebSocket transport constructor.\n   *\n   * @api {Object} connection options\n   * @api public\n   */\n  constructor(opts) {\n    super(opts);\n\n    this.supportsBinary = !opts.forceBase64;\n  }\n\n  /**\n   * Transport name.\n   *\n   * @api public\n   */\n  get name() {\n    return \"websocket\";\n  }\n\n  /**\n   * Opens socket.\n   *\n   * @api private\n   */\n  doOpen() {\n    if (!this.check()) {\n      // let probe timeout\n      return;\n    }\n\n    const uri = this.uri();\n    const protocols = this.opts.protocols;\n\n    // React Native only supports the 'headers' option, and will print a warning if anything else is passed\n    const opts = isReactNative\n      ? {}\n      : pick(\n          this.opts,\n          \"agent\",\n          \"perMessageDeflate\",\n          \"pfx\",\n          \"key\",\n          \"passphrase\",\n          \"cert\",\n          \"ca\",\n          \"ciphers\",\n          \"rejectUnauthorized\",\n          \"localAddress\",\n          \"protocolVersion\",\n          \"origin\",\n          \"maxPayload\",\n          \"family\",\n          \"checkServerIdentity\"\n        );\n\n    if (this.opts.extraHeaders) {\n      opts.headers = this.opts.extraHeaders;\n    }\n\n    try {\n      this.ws =\n        usingBrowserWebSocket && !isReactNative\n          ? protocols\n            ? new WebSocket(uri, protocols)\n            : new WebSocket(uri)\n          : new WebSocket(uri, protocols, opts);\n    } catch (err) {\n      return this.emit(\"error\", err);\n    }\n\n    this.ws.binaryType = this.socket.binaryType || defaultBinaryType;\n\n    this.addEventListeners();\n  }\n\n  /**\n   * Adds event listeners to the socket\n   *\n   * @api private\n   */\n  addEventListeners() {\n    const self = this;\n\n    this.ws.onopen = function() {\n      self.onOpen();\n    };\n    this.ws.onclose = function() {\n      self.onClose();\n    };\n    this.ws.onmessage = function(ev) {\n      self.onData(ev.data);\n    };\n    this.ws.onerror = function(e) {\n      self.onError(\"websocket error\", e);\n    };\n  }\n\n  /**\n   * Writes data to socket.\n   *\n   * @param {Array} array of packets.\n   * @api private\n   */\n  write(packets) {\n    const self = this;\n    this.writable = false;\n\n    // encodePacket efficient as it uses WS framing\n    // no need for encodePayload\n    let total = packets.length;\n    let i = 0;\n    const l = total;\n    for (; i < l; i++) {\n      (function(packet) {\n        parser.encodePacket(packet, self.supportsBinary, function(data) {\n          // always create a new object (GH-437)\n          const opts = {};\n          if (!usingBrowserWebSocket) {\n            if (packet.options) {\n              opts.compress = packet.options.compress;\n            }\n\n            if (self.opts.perMessageDeflate) {\n              const len =\n                \"string\" === typeof data\n                  ? Buffer.byteLength(data)\n                  : data.length;\n              if (len < self.opts.perMessageDeflate.threshold) {\n                opts.compress = false;\n              }\n            }\n          }\n\n          // Sometimes the websocket has already been closed but the browser didn't\n          // have a chance of informing us about it yet, in that case send will\n          // throw an error\n          try {\n            if (usingBrowserWebSocket) {\n              // TypeError is thrown when passing the second argument on Safari\n              self.ws.send(data);\n            } else {\n              self.ws.send(data, opts);\n            }\n          } catch (e) {\n\n\n          }\n\n          --total || done();\n        });\n      })(packets[i]);\n    }\n\n    function done() {\n      self.emit(\"flush\");\n\n      // fake drain\n      // defer to next tick to allow Socket to clear writeBuffer\n      setTimeout(function() {\n        self.writable = true;\n        self.emit(\"drain\");\n      }, 0);\n    }\n  }\n\n  /**\n   * Called upon close\n   *\n   * @api private\n   */\n  onClose() {\n    Transport.prototype.onClose.call(this);\n  }\n\n  /**\n   * Closes socket.\n   *\n   * @api private\n   */\n  doClose() {\n    if (typeof this.ws !== \"undefined\") {\n      this.ws.close();\n      this.ws = null;\n    }\n  }\n\n  /**\n   * Generates uri for connection.\n   *\n   * @api private\n   */\n  uri() {\n    let query = this.query || {};\n    const schema = this.opts.secure ? \"wss\" : \"ws\";\n    let port = \"\";\n\n    // avoid port if default for schema\n    if (\n      this.opts.port &&\n      ((\"wss\" === schema && Number(this.opts.port) !== 443) ||\n        (\"ws\" === schema && Number(this.opts.port) !== 80))\n    ) {\n      port = \":\" + this.opts.port;\n    }\n\n    // append timestamp to URI\n    if (this.opts.timestampRequests) {\n      query[this.opts.timestampParam] = yeast();\n    }\n\n    // communicate binary support capabilities\n    if (!this.supportsBinary) {\n      query.b64 = 1;\n    }\n\n    query = parseqs.encode(query);\n\n    // prepend ? to query\n    if (query.length) {\n      query = \"?\" + query;\n    }\n\n    const ipv6 = this.opts.hostname.indexOf(\":\") !== -1;\n    return (\n      schema +\n      \"://\" +\n      (ipv6 ? \"[\" + this.opts.hostname + \"]\" : this.opts.hostname) +\n      port +\n      this.opts.path +\n      query\n    );\n  }\n\n  /**\n   * Feature detection for WebSocket.\n   *\n   * @return {Boolean} whether this transport is available.\n   * @api public\n   */\n  check() {\n    return (\n      !!WebSocket &&\n      !(\"__initialize\" in WebSocket && this.name === WS.prototype.name)\n    );\n  }\n}\n\nmodule.exports = WS;\n","const globalThis = require(\"../globalThis\");\n\nmodule.exports = {\n  WebSocket: globalThis.WebSocket || globalThis.MozWebSocket,\n  usingBrowserWebSocket: true,\n  defaultBinaryType: \"arraybuffer\"\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reconstructPacket = exports.deconstructPacket = void 0;\nconst is_binary_1 = require(\"./is-binary\");\n/**\n * Replaces every Buffer | ArrayBuffer | Blob | File in packet with a numbered placeholder.\n *\n * @param {Object} packet - socket.io event packet\n * @return {Object} with deconstructed packet and list of buffers\n * @public\n */\nfunction deconstructPacket(packet) {\n    const buffers = [];\n    const packetData = packet.data;\n    const pack = packet;\n    pack.data = _deconstructPacket(packetData, buffers);\n    pack.attachments = buffers.length; // number of binary 'attachments'\n    return { packet: pack, buffers: buffers };\n}\nexports.deconstructPacket = deconstructPacket;\nfunction _deconstructPacket(data, buffers) {\n    if (!data)\n        return data;\n    if (is_binary_1.isBinary(data)) {\n        const placeholder = { _placeholder: true, num: buffers.length };\n        buffers.push(data);\n        return placeholder;\n    }\n    else if (Array.isArray(data)) {\n        const newData = new Array(data.length);\n        for (let i = 0; i < data.length; i++) {\n            newData[i] = _deconstructPacket(data[i], buffers);\n        }\n        return newData;\n    }\n    else if (typeof data === \"object\" && !(data instanceof Date)) {\n        const newData = {};\n        for (const key in data) {\n            if (data.hasOwnProperty(key)) {\n                newData[key] = _deconstructPacket(data[key], buffers);\n            }\n        }\n        return newData;\n    }\n    return data;\n}\n/**\n * Reconstructs a binary packet from its placeholder packet and buffers\n *\n * @param {Object} packet - event packet with placeholders\n * @param {Array} buffers - binary buffers to put in placeholder positions\n * @return {Object} reconstructed packet\n * @public\n */\nfunction reconstructPacket(packet, buffers) {\n    packet.data = _reconstructPacket(packet.data, buffers);\n    packet.attachments = undefined; // no longer useful\n    return packet;\n}\nexports.reconstructPacket = reconstructPacket;\nfunction _reconstructPacket(data, buffers) {\n    if (!data)\n        return data;\n    if (data && data._placeholder) {\n        return buffers[data.num]; // appropriate buffer (should be natural order anyway)\n    }\n    else if (Array.isArray(data)) {\n        for (let i = 0; i < data.length; i++) {\n            data[i] = _reconstructPacket(data[i], buffers);\n        }\n    }\n    else if (typeof data === \"object\") {\n        for (const key in data) {\n            if (data.hasOwnProperty(key)) {\n                data[key] = _reconstructPacket(data[key], buffers);\n            }\n        }\n    }\n    return data;\n}\n","\n/**\n * Expose `Backoff`.\n */\n\nmodule.exports = Backoff;\n\n/**\n * Initialize backoff timer with `opts`.\n *\n * - `min` initial timeout in milliseconds [100]\n * - `max` max timeout [10000]\n * - `jitter` [0]\n * - `factor` [2]\n *\n * @param {Object} opts\n * @api public\n */\n\nfunction Backoff(opts) {\n  opts = opts || {};\n  this.ms = opts.min || 100;\n  this.max = opts.max || 10000;\n  this.factor = opts.factor || 2;\n  this.jitter = opts.jitter > 0 && opts.jitter <= 1 ? opts.jitter : 0;\n  this.attempts = 0;\n}\n\n/**\n * Return the backoff duration.\n *\n * @return {Number}\n * @api public\n */\n\nBackoff.prototype.duration = function(){\n  var ms = this.ms * Math.pow(this.factor, this.attempts++);\n  if (this.jitter) {\n    var rand =  Math.random();\n    var deviation = Math.floor(rand * this.jitter * ms);\n    ms = (Math.floor(rand * 10) & 1) == 0  ? ms - deviation : ms + deviation;\n  }\n  return Math.min(ms, this.max) | 0;\n};\n\n/**\n * Reset the number of attempts.\n *\n * @api public\n */\n\nBackoff.prototype.reset = function(){\n  this.attempts = 0;\n};\n\n/**\n * Set the minimum duration\n *\n * @api public\n */\n\nBackoff.prototype.setMin = function(min){\n  this.ms = min;\n};\n\n/**\n * Set the maximum duration\n *\n * @api public\n */\n\nBackoff.prototype.setMax = function(max){\n  this.max = max;\n};\n\n/**\n * Set the jitter\n *\n * @api public\n */\n\nBackoff.prototype.setJitter = function(jitter){\n  this.jitter = jitter;\n};\n\n","define(\"@appknox/ember-pace/initializers/ember-pace\", [\"exports\", \"pace-progressbar\"], function (_exports, _paceProgressbar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  function initialize(application) {\n    const config = application.resolveRegistration('config:environment');\n    const paceConfig = config.pace;\n    _paceProgressbar.default.start(paceConfig);\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define('@ember-data/adapter/-private', ['exports', '@ember/debug', 'rsvp', 'require', '@ember/object', '@ember/object/mixin', '@ember/string', 'ember-inflector'], (function (exports, debug, rsvp, require, object, Mixin, string, emberInflector) { 'use strict';\n\n  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\n  var require__default = /*#__PURE__*/_interopDefaultLegacy(require);\n  var Mixin__default = /*#__PURE__*/_interopDefaultLegacy(Mixin);\n\n  var newline = /\\r?\\n/;\n  function parseResponseHeaders(headersString) {\n    var headers = Object.create(null);\n    if (!headersString) {\n      return headers;\n    }\n    var headerPairs = headersString.split(newline);\n    for (var i = 0; i < headerPairs.length; i++) {\n      var header = headerPairs[i];\n      var j = 0;\n      var foundSep = false;\n      for (; j < header.length; j++) {\n        if (header.charCodeAt(j) === 58 /* ':' */) {\n          foundSep = true;\n          break;\n        }\n      }\n      if (foundSep === false) {\n        continue;\n      }\n      var field = header.substring(0, j).trim();\n      var value = header.substring(j + 1, header.length).trim();\n      if (value) {\n        var lowerCasedField = field.toLowerCase();\n        headers[lowerCasedField] = value;\n        headers[field] = value;\n      }\n    }\n    return headers;\n  }\n\n  function continueOnReject(promise) {\n    return rsvp.resolve(promise).catch(e => e);\n  }\n\n  /*\n   * Function that always attempts to parse the response as json, and if an error is thrown,\n   * returns `undefined` if the response is successful and has a status code of 204 (No Content),\n   * or 205 (Reset Content) or if the request method was 'HEAD', and the plain payload otherwise.\n   */\n  function _determineContent(response, requestData, payload) {\n    var ret = payload;\n    var error;\n    if (!response.ok) {\n      return payload;\n    }\n    var status = response.status;\n    var payloadIsEmpty = payload === '' || payload === null;\n    var statusIndicatesEmptyResponse = status === 204 || status === 205 || requestData.method === 'HEAD';\n    {\n      if (payloadIsEmpty && !statusIndicatesEmptyResponse) {\n        var message = `The server returned an empty string for ${requestData.method} ${requestData.url}, which cannot be parsed into a valid JSON. Return either null or {}.`;\n        if (payload === '') {\n          (debug.warn(message, {\n            id: 'ds.adapter.returned-empty-string-as-JSON'\n          }));\n        }\n      }\n    }\n    if (response.ok && (statusIndicatesEmptyResponse || payloadIsEmpty)) {\n      return;\n    }\n    try {\n      ret = JSON.parse(payload);\n    } catch (e) {\n      if (!(e instanceof SyntaxError)) {\n        return e;\n      }\n      e.payload = payload;\n      error = e;\n    }\n    if (error) {\n      {\n        // eslint-disable-next-line no-console\n        console.warn('This response was unable to be parsed as json.', payload);\n      }\n      return error;\n    }\n    return ret;\n  }\n  function determineBodyPromise(response, requestData) {\n    // response.text() may resolve or reject\n    // it is a native promise, may not have finally\n    return continueOnReject(response.text()).then(payload => _determineContent(response, requestData, payload));\n  }\n\n  var RBRACKET = /\\[\\]$/;\n  function isPlainObject(obj) {\n    return Object.prototype.toString.call(obj) === '[object Object]';\n  }\n\n  /*\n   * Helper function that turns the data/body of a request into a query param string.\n   * This is directly copied from jQuery.param.\n   */\n  function serializeQueryParams(queryParamsObject) {\n    var s = [];\n    function buildParams(prefix, obj) {\n      var i, len, key;\n      if (prefix) {\n        if (Array.isArray(obj)) {\n          for (i = 0, len = obj.length; i < len; i++) {\n            if (RBRACKET.test(prefix)) {\n              add(s, prefix, obj[i]);\n            } else {\n              buildParams(prefix + '[' + (typeof obj[i] === 'object' && obj[i] !== null ? i : '') + ']', obj[i]);\n            }\n          }\n        } else if (isPlainObject(obj)) {\n          for (key in obj) {\n            buildParams(prefix + '[' + key + ']', obj[key]);\n          }\n        } else {\n          add(s, prefix, obj);\n        }\n      } else if (Array.isArray(obj)) {\n        for (i = 0, len = obj.length; i < len; i++) {\n          add(s, obj[i].name, obj[i].value);\n        }\n      } else {\n        for (key in obj) {\n          buildParams(key, obj[key]);\n        }\n      }\n      return s;\n    }\n    return buildParams('', queryParamsObject).join('&');\n  }\n\n  /*\n   * Part of the `serializeQueryParams` helper function.\n   */\n  function add(s, k, v) {\n    // Strip out keys with undefined value and replace null values with\n    // empty strings (mimics jQuery.ajax)\n    if (v === undefined) {\n      return;\n    } else if (v === null) {\n      v = '';\n    }\n    v = typeof v === 'function' ? v() : v;\n    s[s.length] = `${encodeURIComponent(k)}=${encodeURIComponent(v)}`;\n  }\n\n  var _fetch = null;\n  function getFetchFunction() {\n    if (_fetch !== null) {\n      return _fetch();\n    }\n    if (require.has('fetch')) {\n      // use `fetch` module by default, this is commonly provided by ember-fetch\n      var fetchFn = require__default[\"default\"]('fetch').default;\n      _fetch = () => fetchFn;\n    } else if (typeof fetch === 'function') {\n      // fallback to using global fetch\n      _fetch = () => fetch;\n    } else {\n      throw new Error('cannot find the `fetch` module or the `fetch` global. Did you mean to install the `ember-fetch` addon?');\n    }\n    return _fetch();\n  }\n\n  /**\n    @module @ember-data/adapter\n  */\n  /**\n    ## Using BuildURLMixin\n\n    To use URL building, include the mixin when extending an adapter, and call `buildURL` where needed.\n    The default behaviour is designed for RESTAdapter.\n\n    ### Example\n\n    ```javascript\n    import Adapter, { BuildURLMixin } from '@ember-data/adapter';\n\n    export default class ApplicationAdapter extends Adapter.extend(BuildURLMixin) {\n      findRecord(store, type, id, snapshot) {\n        var url = this.buildURL(type.modelName, id, snapshot, 'findRecord');\n        return this.ajax(url, 'GET');\n      }\n    }\n    ```\n\n    ### Attributes\n\n    The `host` and `namespace` attributes will be used if defined, and are optional.\n\n    @class BuildURLMixin\n    @public\n  */\n  var buildUrlMixin = Mixin__default[\"default\"].create({\n    /**\n      Builds a URL for a given type and optional ID.\n       By default, it pluralizes the type's name (for example, 'post'\n      becomes 'posts' and 'person' becomes 'people'). To override the\n      pluralization see [pathForType](BuildUrlMixin/methods/pathForType?anchor=pathForType).\n       If an ID is specified, it adds the ID to the path generated\n      for the type, separated by a `/`.\n       When called by `RESTAdapter.findMany()` the `id` and `snapshot` parameters\n      will be arrays of ids and snapshots.\n       @method buildURL\n      @public\n      @param {String} modelName\n      @param {(String|Array|Object)} id single id or array of ids or query\n      @param {(Snapshot|SnapshotRecordArray)} snapshot single snapshot or array of snapshots\n      @param {String} requestType\n      @param {Object} query object of query parameters to send for query requests.\n      @return {String} url\n    */\n    buildURL(modelName, id, snapshot, requestType = '', query = {}) {\n      switch (requestType) {\n        case 'findRecord':\n          return this.urlForFindRecord(id, modelName, snapshot);\n        case 'findAll':\n          return this.urlForFindAll(modelName, snapshot);\n        case 'query':\n          return this.urlForQuery(query, modelName);\n        case 'queryRecord':\n          return this.urlForQueryRecord(query, modelName);\n        case 'findMany':\n          return this.urlForFindMany(id, modelName, snapshot);\n        case 'findHasMany':\n          return this.urlForFindHasMany(id, modelName, snapshot);\n        case 'findBelongsTo':\n          return this.urlForFindBelongsTo(id, modelName, snapshot);\n        case 'createRecord':\n          return this.urlForCreateRecord(modelName, snapshot);\n        case 'updateRecord':\n          return this.urlForUpdateRecord(id, modelName, snapshot);\n        case 'deleteRecord':\n          return this.urlForDeleteRecord(id, modelName, snapshot);\n        default:\n          return this._buildURL(modelName, id);\n      }\n    },\n    /**\n      @method _buildURL\n      @private\n      @param {String} modelName\n      @param {String} id\n      @return {String} url\n    */\n    _buildURL(modelName, id) {\n      var path;\n      var url = [];\n      var host = object.get(this, 'host');\n      var prefix = this.urlPrefix();\n      if (modelName) {\n        path = this.pathForType(modelName);\n        if (path) {\n          url.push(path);\n        }\n      }\n      if (id) {\n        url.push(encodeURIComponent(id));\n      }\n      if (prefix) {\n        url.unshift(prefix);\n      }\n      var urlString = url.join('/');\n      if (!host && urlString && urlString.charAt(0) !== '/') {\n        urlString = '/' + urlString;\n      }\n      return urlString;\n    },\n    /**\n     Builds a URL for a `store.findRecord(type, id)` call.\n      Example:\n      ```app/adapters/user.js\n     import JSONAPIAdapter from '@ember-data/adapter/json-api';\n      export default class ApplicationAdapter extends JSONAPIAdapter {\n       urlForFindRecord(id, modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName, id, snapshot);\n         return `${baseUrl}/users/${snapshot.adapterOptions.user_id}/playlists/${id}`;\n       }\n     }\n     ```\n      @method urlForFindRecord\n     @public\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n      */\n    urlForFindRecord(id, modelName, snapshot) {\n      return this._buildURL(modelName, id);\n    },\n    /**\n     Builds a URL for a `store.findAll(type)` call.\n      Example:\n      ```app/adapters/comment.js\n     import JSONAPIAdapter from '@ember-data/adapter/json-api';\n      export default class ApplicationAdapter extends JSONAPIAdapter {\n       urlForFindAll(modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName);\n         return `${baseUrl}/data/comments.json`;\n       }\n     }\n     ```\n      @method urlForFindAll\n      @public\n     @param {String} modelName\n     @param {SnapshotRecordArray} snapshot\n     @return {String} url\n     */\n    urlForFindAll(modelName, snapshot) {\n      return this._buildURL(modelName);\n    },\n    /**\n     Builds a URL for a `store.query(type, query)` call.\n      Example:\n      ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n      export default class ApplicationAdapter extends RESTAdapter {\n       host = 'https://api.github.com';\n       urlForQuery (query, modelName) {\n         switch(modelName) {\n           case 'repo':\n             return `https://api.github.com/orgs/${query.orgId}/repos`;\n           default:\n             return super.urlForQuery(...arguments);\n         }\n       }\n     }\n     ```\n      @method urlForQuery\n      @public\n     @param {Object} query\n     @param {String} modelName\n     @return {String} url\n     */\n    urlForQuery(query, modelName) {\n      return this._buildURL(modelName);\n    },\n    /**\n     Builds a URL for a `store.queryRecord(type, query)` call.\n      Example:\n      ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n      export default class ApplicationAdapter extends RESTAdapter {\n       urlForQueryRecord({ slug }, modelName) {\n         let baseUrl = this.buildURL();\n         return `${baseUrl}/${encodeURIComponent(slug)}`;\n       }\n     }\n     ```\n      @method urlForQueryRecord\n      @public\n     @param {Object} query\n     @param {String} modelName\n     @return {String} url\n     */\n    urlForQueryRecord(query, modelName) {\n      return this._buildURL(modelName);\n    },\n    /**\n     Builds a URL for coalescing multiple `store.findRecord(type, id)`\n     records into 1 request when the adapter's `coalesceFindRequests`\n     property is `true`.\n      Example:\n      ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n      export default class ApplicationAdapter extends RESTAdapter {\n       urlForFindMany(ids, modelName) {\n         let baseUrl = this.buildURL();\n         return `${baseUrl}/coalesce`;\n       }\n     }\n     ```\n      @method urlForFindMany\n      @public\n     @param {Array} ids\n     @param {String} modelName\n     @param {Array} snapshots\n     @return {String} url\n     */\n    urlForFindMany(ids, modelName, snapshots) {\n      return this._buildURL(modelName);\n    },\n    /**\n     Builds a URL for fetching an async `hasMany` relationship when a URL\n     is not provided by the server.\n      Example:\n      ```app/adapters/application.js\n     import JSONAPIAdapter from '@ember-data/adapter/json-api';\n      export default class ApplicationAdapter extends JSONAPIAdapter {\n       urlForFindHasMany(id, modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName, id);\n         return `${baseUrl}/relationships`;\n       }\n     }\n     ```\n      @method urlForFindHasMany\n      @public\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n    urlForFindHasMany(id, modelName, snapshot) {\n      return this._buildURL(modelName, id);\n    },\n    /**\n     Builds a URL for fetching an async `belongsTo` relationship when a url\n     is not provided by the server.\n      Example:\n      ```app/adapters/application.js\n     import JSONAPIAdapter from '@ember-data/adapter/json-api';\n      export default class ApplicationAdapter extends JSONAPIAdapter {\n       urlForFindBelongsTo(id, modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName, id);\n         return `${baseUrl}/relationships`;\n       }\n     }\n     ```\n      @method urlForFindBelongsTo\n      @public\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n    urlForFindBelongsTo(id, modelName, snapshot) {\n      return this._buildURL(modelName, id);\n    },\n    /**\n     Builds a URL for a `record.save()` call when the record was created\n     locally using `store.createRecord()`.\n      Example:\n      ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n      export default class ApplicationAdapter extends RESTAdapter {\n       urlForCreateRecord(modelName, snapshot) {\n         return super.urlForCreateRecord(...arguments) + '/new';\n       }\n     }\n     ```\n      @method urlForCreateRecord\n      @public\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n    urlForCreateRecord(modelName, snapshot) {\n      return this._buildURL(modelName);\n    },\n    /**\n     Builds a URL for a `record.save()` call when the record has been updated locally.\n      Example:\n      ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n      export default class ApplicationAdapter extends RESTAdapter {\n       urlForUpdateRecord(id, modelName, snapshot) {\n         return `/${id}/feed?access_token=${snapshot.adapterOptions.token}`;\n       }\n     }\n     ```\n      @method urlForUpdateRecord\n      @public\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n    urlForUpdateRecord(id, modelName, snapshot) {\n      return this._buildURL(modelName, id);\n    },\n    /**\n     Builds a URL for a `record.save()` call when the record has been deleted locally.\n      Example:\n      ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n      export default class ApplicationAdapter extends RESTAdapter {\n       urlForDeleteRecord(id, modelName, snapshot) {\n         return super.urlForDeleteRecord(...arguments) + '/destroy';\n       }\n     }\n     ```\n      @method urlForDeleteRecord\n      @public\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n    urlForDeleteRecord(id, modelName, snapshot) {\n      return this._buildURL(modelName, id);\n    },\n    /**\n      @method urlPrefix\n      @private\n      @param {String} path\n      @param {String} parentURL\n      @return {String} urlPrefix\n    */\n    urlPrefix(path, parentURL) {\n      var host = object.get(this, 'host');\n      var namespace = object.get(this, 'namespace');\n      if (!host || host === '/') {\n        host = '';\n      }\n      if (path) {\n        // Protocol relative url\n        if (/^\\/\\//.test(path) || /http(s)?:\\/\\//.test(path)) {\n          // Do nothing, the full host is already included.\n          return path;\n\n          // Absolute path\n        } else if (path.charAt(0) === '/') {\n          return `${host}${path}`;\n          // Relative path\n        } else {\n          return `${parentURL}/${path}`;\n        }\n      }\n\n      // No path provided\n      var url = [];\n      if (host) {\n        url.push(host);\n      }\n      if (namespace) {\n        url.push(namespace);\n      }\n      return url.join('/');\n    },\n    /**\n      Determines the pathname for a given type.\n       By default, it pluralizes the type's name (for example,\n      'post' becomes 'posts' and 'person' becomes 'people').\n       ### Pathname customization\n       For example, if you have an object `LineItem` with an\n      endpoint of `/line_items/`.\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n      import { decamelize } from '@ember/string';\n      import { pluralize } from 'ember-inflector';\n       export default class ApplicationAdapter extends RESTAdapter {\n        pathForType(modelName) {\n          var decamelized = decamelize(modelName);\n          return pluralize(decamelized);\n        }\n      }\n      ```\n       @method pathForType\n      @public\n      @param {String} modelName\n      @return {String} path\n    **/\n    pathForType(modelName) {\n      var camelized = string.camelize(modelName);\n      return emberInflector.pluralize(camelized);\n    }\n  });\n\n  function serializeIntoHash(store, modelClass, snapshot, options = {\n    includeId: true\n  }) {\n    var serializer = store.serializerFor(modelClass.modelName);\n    if (typeof serializer.serializeIntoHash === 'function') {\n      var data = {};\n      serializer.serializeIntoHash(data, modelClass, snapshot, options);\n      return data;\n    }\n    return serializer.serialize(snapshot, options);\n  }\n\n  exports.BuildURLMixin = buildUrlMixin;\n  exports.determineBodyPromise = determineBodyPromise;\n  exports.fetch = getFetchFunction;\n  exports.parseResponseHeaders = parseResponseHeaders;\n  exports.serializeIntoHash = serializeIntoHash;\n  exports.serializeQueryParams = serializeQueryParams;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n","define(\"@ember-data/adapter/error\", [\"exports\", \"@ember/debug\", \"@ember/error\", \"@ember-data/store/-private\"], function (_exports, _debug, _error, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.UnauthorizedError = _exports.TimeoutError = _exports.ServerError = _exports.NotFoundError = _exports.InvalidError = _exports.ForbiddenError = _exports.ConflictError = _exports.AbortError = void 0;\n  Object.defineProperty(_exports, \"errorsArrayToHash\", {\n    enumerable: true,\n    get: function () {\n      return _private.errorsArrayToHash;\n    }\n  });\n  Object.defineProperty(_exports, \"errorsHashToArray\", {\n    enumerable: true,\n    get: function () {\n      return _private.errorsHashToArray;\n    }\n  });\n  /**\n    @module @ember-data/adapter/error\n   */\n\n  /**\n    A `AdapterError` is used by an adapter to signal that an error occurred\n    during a request to an external API. It indicates a generic error, and\n    subclasses are used to indicate specific error states. The following\n    subclasses are provided:\n  \n    - `InvalidError`\n    - `TimeoutError`\n    - `AbortError`\n    - `UnauthorizedError`\n    - `ForbiddenError`\n    - `NotFoundError`\n    - `ConflictError`\n    - `ServerError`\n  \n    To create a custom error to signal a specific error state in communicating\n    with an external API, extend the `AdapterError`. For example, if the\n    external API exclusively used HTTP `503 Service Unavailable` to indicate\n    it was closed for maintenance:\n  \n    ```app/adapters/maintenance-error.js\n    import AdapterError from '@ember-data/adapter/error';\n  \n    export default AdapterError.extend({ message: \"Down for maintenance.\" });\n    ```\n  \n    This error would then be returned by an adapter's `handleResponse` method:\n  \n    ```app/adapters/application.js\n    import JSONAPIAdapter from '@ember-data/adapter/json-api';\n    import MaintenanceError from './maintenance-error';\n  \n    export default class ApplicationAdapter extends JSONAPIAdapter {\n      handleResponse(status) {\n        if (503 === status) {\n          return new MaintenanceError();\n        }\n  \n        return this._super(...arguments);\n      }\n    }\n    ```\n  \n    And can then be detected in an application and used to send the user to an\n    `under-maintenance` route:\n  \n    ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import MaintenanceError from '../adapters/maintenance-error';\n  \n    export default class ApplicationRoute extends Route {\n      actions: {\n        error(error, transition) {\n          if (error instanceof MaintenanceError) {\n            this.transitionTo('under-maintenance');\n            return;\n          }\n  \n          // ...other error handling logic\n        }\n      }\n    }\n    ```\n  \n    @main @ember-data/adapter/error\n    @class AdapterError\n    @public\n  */\n  function AdapterError(errors, message = 'Adapter operation failed') {\n    this.isAdapterError = true;\n    var error = _error.default.call(this, message);\n\n    // in ember 3.8+ Error is a Native Error and we don't\n    // gain these automatically from the EmberError.call\n    if (error) {\n      this.stack = error.stack;\n      this.description = error.description;\n      this.fileName = error.fileName;\n      this.lineNumber = error.lineNumber;\n      this.message = error.message;\n      this.name = error.name;\n      this.number = error.number;\n    }\n    this.errors = errors || [{\n      title: 'Adapter Error',\n      detail: message\n    }];\n  }\n  var _default = _exports.default = AdapterError;\n  function extendFn(ErrorClass) {\n    return function ({\n      message: defaultMessage\n    } = {}) {\n      return extend(ErrorClass, defaultMessage);\n    };\n  }\n  function extend(ParentErrorClass, defaultMessage) {\n    var ErrorClass = function (errors, message) {\n      (true && !(Array.isArray(errors || [])) && (0, _debug.assert)('`AdapterError` expects json-api formatted errors array.', Array.isArray(errors || [])));\n      ParentErrorClass.call(this, errors, message || defaultMessage);\n    };\n    ErrorClass.prototype = Object.create(ParentErrorClass.prototype);\n    ErrorClass.extend = extendFn(ErrorClass);\n    return ErrorClass;\n  }\n  AdapterError.prototype = Object.create(_error.default.prototype);\n  AdapterError.prototype.code = 'AdapterError';\n  AdapterError.extend = extendFn(AdapterError);\n\n  /**\n    A `InvalidError` is used by an adapter to signal the external API\n    was unable to process a request because the content was not\n    semantically correct or meaningful per the API. Usually, this means a\n    record failed some form of server-side validation. When a promise\n    from an adapter is rejected with a `InvalidError` the record will\n    transition to the `invalid` state and the errors will be set to the\n    `errors` property on the record.\n  \n    For Ember Data to correctly map errors to their corresponding\n    properties on the model, Ember Data expects each error to be\n    a valid JSON-API error object with a `source/pointer` that matches\n    the property name. For example, if you had a Post model that\n    looked like this.\n  \n    ```app/models/post.js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default class PostModel extends Model {\n      @attr('string') title;\n      @attr('string') content;\n    }\n    ```\n  \n    To show an error from the server related to the `title` and\n    `content` properties your adapter could return a promise that\n    rejects with a `InvalidError` object that looks like this:\n  \n    ```app/adapters/post.js\n    import RSVP from 'RSVP';\n    import RESTAdapter from '@ember-data/adapter/rest';\n    import { InvalidError } from '@ember-data/adapter/error';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      updateRecord() {\n        // Fictional adapter that always rejects\n        return RSVP.reject(new InvalidError([\n          {\n            detail: 'Must be unique',\n            source: { pointer: '/data/attributes/title' }\n          },\n          {\n            detail: 'Must not be blank',\n            source: { pointer: '/data/attributes/content'}\n          }\n        ]));\n      }\n    }\n    ```\n  \n    Your backend may use different property names for your records the\n    store will attempt to extract and normalize the errors using the\n    serializer's `extractErrors` method before the errors get added to\n    the model. As a result, it is safe for the `InvalidError` to\n    wrap the error payload unaltered.\n  \n    @class InvalidError\n    @public\n    @extends AdapterError\n  */\n  var InvalidError = _exports.InvalidError = extend(AdapterError, 'The adapter rejected the commit because it was invalid');\n  InvalidError.prototype.code = 'InvalidError';\n\n  /**\n    A `TimeoutError` is used by an adapter to signal that a request\n    to the external API has timed out. I.e. no response was received from\n    the external API within an allowed time period.\n  \n    An example use case would be to warn the user to check their internet\n    connection if an adapter operation has timed out:\n  \n    ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { TimeoutError } from '@ember-data/adapter/error';\n    import { action } from '@ember/object';\n  \n    export default class ApplicationRoute extends Route {\n      @action\n      error(error, transition) {\n        if (error instanceof TimeoutError) {\n          // alert the user\n          alert('Are you still connected to the Internet?');\n          return;\n        }\n  \n        // ...other error handling logic\n      }\n    }\n    ```\n  \n    @class TimeoutError\n    @public\n    @extends AdapterError\n  */\n  var TimeoutError = _exports.TimeoutError = extend(AdapterError, 'The adapter operation timed out');\n  TimeoutError.prototype.code = 'TimeoutError';\n\n  /**\n    A `AbortError` is used by an adapter to signal that a request to\n    the external API was aborted. For example, this can occur if the user\n    navigates away from the current page after a request to the external API\n    has been initiated but before a response has been received.\n  \n    @class AbortError\n    @public\n    @extends AdapterError\n  */\n  var AbortError = _exports.AbortError = extend(AdapterError, 'The adapter operation was aborted');\n  AbortError.prototype.code = 'AbortError';\n\n  /**\n    A `UnauthorizedError` equates to a HTTP `401 Unauthorized` response\n    status. It is used by an adapter to signal that a request to the external\n    API was rejected because authorization is required and has failed or has not\n    yet been provided.\n  \n    An example use case would be to redirect the user to a login route if a\n    request is unauthorized:\n  \n    ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { UnauthorizedError } from '@ember-data/adapter/error';\n    import { action } from '@ember/object';\n  \n    export default class ApplicationRoute extends Route {\n      @action\n      error(error, transition) {\n        if (error instanceof UnauthorizedError) {\n          // go to the login route\n          this.transitionTo('login');\n          return;\n        }\n  \n        // ...other error handling logic\n      }\n    }\n    ```\n  \n    @class UnauthorizedError\n    @public\n    @extends AdapterError\n  */\n  var UnauthorizedError = _exports.UnauthorizedError = extend(AdapterError, 'The adapter operation is unauthorized');\n  UnauthorizedError.prototype.code = 'UnauthorizedError';\n\n  /**\n    A `ForbiddenError` equates to a HTTP `403 Forbidden` response status.\n    It is used by an adapter to signal that a request to the external API was\n    valid but the server is refusing to respond to it. If authorization was\n    provided and is valid, then the authenticated user does not have the\n    necessary permissions for the request.\n  \n    @class ForbiddenError\n    @public\n    @extends AdapterError\n  */\n  var ForbiddenError = _exports.ForbiddenError = extend(AdapterError, 'The adapter operation is forbidden');\n  ForbiddenError.prototype.code = 'ForbiddenError';\n\n  /**\n    A `NotFoundError` equates to a HTTP `404 Not Found` response status.\n    It is used by an adapter to signal that a request to the external API\n    was rejected because the resource could not be found on the API.\n  \n    An example use case would be to detect if the user has entered a route\n    for a specific model that does not exist. For example:\n  \n    ```app/routes/post.js\n    import Route from '@ember/routing/route';\n    import { NotFoundError } from '@ember-data/adapter/error';\n    import { inject as service } from '@ember/service';\n    import { action } from '@ember/object';\n  \n    export default class PostRoute extends Route {\n      @service store;\n      model(params) {\n        return this.get('store').findRecord('post', params.post_id);\n      }\n      @action\n      error(error, transition) {\n        if (error instanceof NotFoundError) {\n          // redirect to a list of all posts instead\n          this.transitionTo('posts');\n        } else {\n          // otherwise let the error bubble\n          return true;\n        }\n      }\n    }\n    ```\n  \n    @class NotFoundError\n    @public\n    @extends AdapterError\n  */\n  var NotFoundError = _exports.NotFoundError = extend(AdapterError, 'The adapter could not find the resource');\n  NotFoundError.prototype.code = 'NotFoundError';\n\n  /**\n    A `ConflictError` equates to a HTTP `409 Conflict` response status.\n    It is used by an adapter to indicate that the request could not be processed\n    because of a conflict in the request. An example scenario would be when\n    creating a record with a client-generated ID but that ID is already known\n    to the external API.\n  \n    @class ConflictError\n    @public\n    @extends AdapterError\n  */\n  var ConflictError = _exports.ConflictError = extend(AdapterError, 'The adapter operation failed due to a conflict');\n  ConflictError.prototype.code = 'ConflictError';\n\n  /**\n    A `ServerError` equates to a HTTP `500 Internal Server Error` response\n    status. It is used by the adapter to indicate that a request has failed\n    because of an error in the external API.\n  \n    @class ServerError\n    @public\n    @extends AdapterError\n  */\n  var ServerError = _exports.ServerError = extend(AdapterError, 'The adapter operation failed due to a server error');\n  ServerError.prototype.code = 'ServerError';\n});","define(\"@ember-data/adapter/index\", [\"exports\", \"@ember/object\", \"rsvp\", \"@ember-data/adapter/-private\"], function (_exports, _object, _rsvp, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"BuildURLMixin\", {\n    enumerable: true,\n    get: function () {\n      return _private.BuildURLMixin;\n    }\n  });\n  _exports.default = void 0;\n  /**\n    ## Overview\n  \n    In order to properly fetch and update data, EmberData\n    needs to understand how to connect to your API.\n  \n    `Adapters` accept various kinds of requests from the store\n    and manage fulfillment of the request from your API.\n  \n    ### Request Flow\n  \n    When the store decides it needs to issue a request it uses the\n    following flow to manage the request and process the data.\n  \n    - find the appropriate adapter\n    - issue the request to the adapter\n    - await the adapter's response\n      - if an error occurs reject with the error\n      - if no error\n        - if there is response data\n          - pass the response data to the appropriate serializer\n          - update the cache using the JSON:API formatted data from the serializer's response\n        - return the primary record(s) associated with the request\n  \n    ### Request Errors\n  \n    When a request errors and your adapter does not have the ability to recover from the error,\n    you may either reject the promise returned by your adapter method with the error or simply\n    throw the error.\n  \n    If the request was for a `createRecord` `updateRecord` or `deleteRecord` special rules\n    apply to how this error will affect the state of the store and additional properties on\n    the `Error` class may be used. See the documentation for these methods in the\n    `MinimumAdapterInterface` for more information.\n  \n    ### Implementing an Adapter\n  \n    There are seven required adapter methods, one for each of\n    the primary request types that EmberData issues.\n  \n    They are:\n  \n    - findRecord\n    - findAll\n    - queryRecord\n    - query\n    - createRecord\n    - updateRecord\n    - deleteRecord\n  \n    Each of these request types has a matching store method that triggers it\n    and matching `requestType` that is passed to the serializer's\n    `normalizeResponse` method.\n  \n    If your app only reads data but never writes data, it is not necessary\n    to implement the methods for create, update, and delete. This extends to\n    all of the store's find methods with the exception of `findRecord` (`findAll`,\n    `query`, `queryRecord`): if you do not use the store method in your app then\n    your Adapter does not need the method.\n  \n    ```ts\n    import EmberObject from '@ember/object';\n  \n    async function fetchData(url, options = {}) {\n      let response = await fetch(url, options);\n      return response.toJSON();\n    }\n  \n    export default class ApplicationAdapter extends EmberObject {\n      findRecord(_, { modelName }, id) {\n        return fetchData(`./${modelName}s/${id}`);\n      }\n    }\n    ```\n  \n    ### Adapter Resolution\n  \n    `store.adapterFor(name)` will lookup adapters defined in `app/adapters/` and\n    return an instance.\n  \n    `adapterFor` first attempts to find an adapter with an exact match on `name`,\n    then falls back to checking for the presence of an adapter named `application`.\n  \n    If no adapter is found, an error will be thrown.\n  \n    ```ts\n    store.adapterFor('author');\n  \n    // lookup paths (in order) =>\n    //   app/adapters/author.js\n    //   app/adapters/application.js\n    ```\n  \n    Most requests in EmberData are made with respect to a particular `type` (or `modelName`)\n    (e.g., \"get me the full collection of **books**\" or \"get me the **employee** whose id is 37\"). We\n    refer to this as the **primary** resource `type`.\n  \n    `adapterFor` is used by the store to find an adapter with a name matching that of the primary\n    resource `type` for the request, which then falls back to the `application` adapter.\n  \n    It is recommended that applications define only a single `application` adapter and serializer\n    where possible, only implementing an adapter specific to the `type` when absolutely necessary.\n  \n    If you need to support multiple API versions for the same type, the per-type strategy for\n    defining adapters might not be adequate.\n  \n    If you have multiple APIs or multiple API versions and the single application adapter and per-type\n    strategy does not suite your needs, one strategy is to write an `application` adapter and serializer\n    that make use of `options` to specify the desired format when making a request, then forwards to the\n    request to the desired adapter or serializer as needed.\n  \n    ```app/adapters/application.js\n    export default class Adapter extends EmberObject {\n      findRecord(store, schema, id, snapshot) {\n        let { apiVersion } = snapshot.adapterOptions;\n        return this.adapterFor(`-api-${apiVersion}`).findRecord(store, schema, id, snapshot);\n      }\n    }\n    ```\n  \n    ### Using an Adapter\n  \n    Any adapter in `app/adapters/` can be looked up by `name` using `store.adapterFor(name)`.\n  \n    ### Default Adapters\n  \n    Applications whose API's structure endpoint URLs *very close to* or *exactly* the **REST**\n    or **JSON:API** convention, the `@ember-data/adapter` package contains implementations\n    these applications can extend.\n  \n    Many applications will find writing their own adapter to be allow greater flexibility,\n    customization, and maintenance than attempting to override methods in these adapters.\n  \n    @module @ember-data/adapter\n    @main @ember-data/adapter\n  */\n\n  /**\n    An adapter is an object that receives requests from a store and\n    translates them into the appropriate action to take against your\n    persistence layer. The persistence layer is usually an HTTP API but\n    may be anything, such as the browser's local storage. Typically the\n    adapter is not invoked directly instead its functionality is accessed\n    through the `store`.\n  \n    ### Creating an Adapter\n  \n    Create a new subclass of `Adapter` in the `app/adapters` folder:\n  \n    ```app/adapters/application.js\n    import Adapter from '@ember-data/adapter';\n  \n    export default Adapter.extend({\n      // ...your code here\n    });\n    ```\n  \n    Model-specific adapters can be created by putting your adapter\n    class in an `app/adapters/` + `model-name` + `.js` file of the application.\n  \n    ```app/adapters/post.js\n    import Adapter from '@ember-data/adapter';\n  \n    export default Adapter.extend({\n      // ...Post-specific adapter code goes here\n    });\n    ```\n  \n    `Adapter` is an abstract base class that you should override in your\n    application to customize it for your backend. The minimum set of methods\n    that you should implement is:\n  \n      * `findRecord()`\n      * `createRecord()`\n      * `updateRecord()`\n      * `deleteRecord()`\n      * `findAll()`\n      * `query()`\n  \n    To improve the network performance of your application, you can optimize\n    your adapter by overriding these lower-level methods:\n  \n      * `findMany()`\n  \n  \n    For an example of the implementation, see `RESTAdapter`, the\n    included REST adapter.\n  \n    @class Adapter\n    @public\n    @extends EmberObject\n  */\n  class Adapter extends _object.default {\n    constructor(...args) {\n      super(...args);\n      /**\n        If you would like your adapter to use a custom serializer you can\n        set the `defaultSerializer` property to be the name of the custom\n        serializer.\n         Note the `defaultSerializer` serializer has a lower priority than\n        a model specific serializer (i.e. `PostSerializer`) or the\n        `application` serializer.\n         ```app/adapters/django.js\n        import Adapter from '@ember-data/adapter';\n         export default Adapter.extend({\n          defaultSerializer: 'django'\n        });\n        ```\n         @deprecated\n        @property defaultSerializer\n        @public\n        @type {String}\n      */\n      this.defaultSerializer = '-default';\n    }\n    /**\n      The `findRecord()` method is invoked when the store is asked for a record that\n      has not previously been loaded. In response to `findRecord()` being called, you\n      should query your persistence layer for a record with the given ID. The `findRecord`\n      method should return a promise that will resolve to a JavaScript object that will be\n      normalized by the serializer.\n       Here is an example of the `findRecord` implementation:\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        findRecord(store, type, id, snapshot) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.getJSON(`/${type.modelName}/${id}`).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method findRecord\n      @param {Store} store\n      @param {Model} type\n      @param {String} id\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n      @public\n    */\n    findRecord(store, type, id, snapshot) {\n      if (true /* DEBUG */) {\n        throw new Error('You subclassed the Adapter class but missing a findRecord override');\n      }\n      return _rsvp.Promise.resolve();\n    }\n\n    /**\n      The `findAll()` method is used to retrieve all records for a given type.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        findAll(store, type) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.getJSON(`/${type.modelName}`).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method findAll\n      @param {Store} store\n      @param {Model} type\n      @param {undefined} neverSet a value is never provided to this argument\n      @param {SnapshotRecordArray} snapshotRecordArray\n      @return {Promise} promise\n      @public\n    */\n    findAll(store, type, neverSet, snapshotRecordArray) {\n      if (true /* DEBUG */) {\n        throw new Error('You subclassed the Adapter class but missing a findAll override');\n      }\n      return _rsvp.Promise.resolve();\n    }\n\n    /**\n      This method is called when you call `query` on the store.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        query(store, type, query) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.getJSON(`/${type.modelName}`, query).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method query\n      @param {Store} store\n      @param {Model} type\n      @param {Object} query\n      @param {AdapterPopulatedRecordArray} recordArray\n      @param {Object} adapterOptions\n      @return {Promise} promise\n      @public\n    */\n    query(store, type, query) {\n      if (true /* DEBUG */) {\n        throw new Error('You subclassed the Adapter class but missing a query override');\n      }\n      return _rsvp.Promise.resolve();\n    }\n\n    /**\n      The `queryRecord()` method is invoked when the store is asked for a single\n      record through a query object.\n       In response to `queryRecord()` being called, you should always fetch fresh\n      data. Once found, you can asynchronously call the store's `push()` method\n      to push the record into the store.\n       Here is an example `queryRecord` implementation:\n       Example\n       ```app/adapters/application.js\n      import Adapter, { BuildURLMixin } from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter.extend(BuildURLMixin) {\n        queryRecord(store, type, query) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.getJSON(`/${type.modelName}`, query).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method queryRecord\n      @param {Store} store\n      @param {subclass of Model} type\n      @param {Object} query\n      @param {Object} adapterOptions\n      @return {Promise} promise\n      @public\n    */\n    queryRecord(store, type, query, adapterOptions) {\n      if (true /* DEBUG */) {\n        throw new Error('You subclassed the Adapter class but missing a queryRecord override');\n      }\n      return _rsvp.Promise.resolve();\n    }\n\n    /**\n      If the globally unique IDs for your records should be generated on the client,\n      implement the `generateIdForRecord()` method. This method will be invoked\n      each time you create a new record, and the value returned from it will be\n      assigned to the record's `primaryKey`.\n       Most traditional REST-like HTTP APIs will not use this method. Instead, the ID\n      of the record will be set by the server, and your adapter will update the store\n      with the new ID when it calls `didCreateRecord()`. Only implement this method if\n      you intend to generate record IDs on the client-side.\n       The `generateIdForRecord()` method will be invoked with the requesting store as\n      the first parameter and the newly created record as the second parameter:\n       ```javascript\n      import Adapter from '@ember-data/adapter';\n      import { v4 } from 'uuid';\n       export default class ApplicationAdapter extends Adapter {\n        generateIdForRecord(store, type, inputProperties) {\n          return v4();\n        }\n      }\n      ```\n       @method generateIdForRecord\n      @param {Store} store\n      @param {Model} type   the Model class of the record\n      @param {Object} inputProperties a hash of properties to set on the\n        newly created record.\n      @return {(String|Number)} id\n      @public\n    */\n\n    /**\n      Proxies to the serializer's `serialize` method.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n       export default class ApplicationAdapter extends Adapter {\n        createRecord(store, type, snapshot) {\n          let data = this.serialize(snapshot, { includeId: true });\n          let url = `/${type.modelName}`;\n           // ...\n        }\n      }\n      ```\n       @method serialize\n      @param {Snapshot} snapshot\n      @param {Object}   options\n      @return {Object} serialized snapshot\n      @public\n    */\n    serialize(snapshot, options) {\n      return snapshot.serialize(options);\n    }\n\n    /**\n      Implement this method in a subclass to handle the creation of\n      new records.\n       Serializes the record and sends it to the server.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import { run } from '@ember/runloop';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        createRecord(store, type, snapshot) {\n          let data = this.serialize(snapshot, { includeId: true });\n           return new RSVP.Promise(function (resolve, reject) {\n            $.ajax({\n              type: 'POST',\n              url: `/${type.modelName}`,\n              dataType: 'json',\n              data: data\n            }).then(function (data) {\n              run(null, resolve, data);\n            }, function (jqXHR) {\n              jqXHR.then = null; // tame jQuery's ill mannered promises\n              run(null, reject, jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method createRecord\n      @param {Store} store\n      @param {Model} type   the Model class of the record\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n      @public\n    */\n    createRecord(store, type, snapshot) {\n      if (true /* DEBUG */) {\n        throw new Error('You subclassed the Adapter class but missing a createRecord override');\n      }\n      return _rsvp.Promise.resolve();\n    }\n\n    /**\n      Implement this method in a subclass to handle the updating of\n      a record.\n       Serializes the record update and sends it to the server.\n       The updateRecord method is expected to return a promise that will\n      resolve with the serialized record. This allows the backend to\n      inform the Ember Data store the current state of this record after\n      the update. If it is not possible to return a serialized record\n      the updateRecord promise can also resolve with `undefined` and the\n      Ember Data store will assume all of the updates were successfully\n      applied on the backend.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import { run } from '@ember/runloop';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        updateRecord(store, type, snapshot) {\n          let data = this.serialize(snapshot, { includeId: true });\n          let id = snapshot.id;\n           return new RSVP.Promise(function(resolve, reject) {\n            $.ajax({\n              type: 'PUT',\n              url: `/${type.modelName}/${id}`,\n              dataType: 'json',\n              data: data\n            }).then(function(data) {\n              run(null, resolve, data);\n            }, function(jqXHR) {\n              jqXHR.then = null; // tame jQuery's ill mannered promises\n              run(null, reject, jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method updateRecord\n      @param {Store} store\n      @param {Model} type   the Model class of the record\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n      @public\n    */\n    updateRecord(store, type, snapshot) {\n      if (true /* DEBUG */) {\n        throw new Error('You subclassed the Adapter class but missing a updateRecord override');\n      }\n      return _rsvp.Promise.resolve();\n    }\n\n    /**\n      Implement this method in a subclass to handle the deletion of\n      a record.\n       Sends a delete request for the record to the server.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import { run } from '@ember/runloop';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        deleteRecord(store, type, snapshot) {\n          let data = this.serialize(snapshot, { includeId: true });\n          let id = snapshot.id;\n           return new RSVP.Promise(function(resolve, reject) {\n            $.ajax({\n              type: 'DELETE',\n              url: `/${type.modelName}/${id}`,\n              dataType: 'json',\n              data: data\n            }).then(function(data) {\n              run(null, resolve, data);\n            }, function(jqXHR) {\n              jqXHR.then = null; // tame jQuery's ill mannered promises\n              run(null, reject, jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method deleteRecord\n      @param {Store} store\n      @param {Model} type   the Model class of the record\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n      @public\n    */\n    deleteRecord(store, type, snapshot) {\n      if (true /* DEBUG */) {\n        throw new Error('You subclassed the Adapter class but missing a deleteRecord override');\n      }\n      return _rsvp.Promise.resolve();\n    }\n\n    /**\n      By default the store will try to coalesce all `fetchRecord` calls within the same runloop\n      into as few requests as possible by calling groupRecordsForFindMany and passing it into a findMany call.\n      You can opt out of this behaviour by either not implementing the findMany hook or by setting\n      coalesceFindRequests to false.\n       @property coalesceFindRequests\n      @public\n      @type {boolean}\n    */\n    get coalesceFindRequests() {\n      var coalesceFindRequests = this._coalesceFindRequests;\n      if (typeof coalesceFindRequests === 'boolean') {\n        return coalesceFindRequests;\n      }\n      return this._coalesceFindRequests = true;\n    }\n    set coalesceFindRequests(value) {\n      this._coalesceFindRequests = value;\n    }\n\n    /**\n      The store will call `findMany` instead of multiple `findRecord`\n      requests to find multiple records at once if coalesceFindRequests\n      is true.\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import { run } from '@ember/runloop';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        findMany(store, type, ids, snapshots) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.ajax({\n              type: 'GET',\n              url: `/${type.modelName}/`,\n              dataType: 'json',\n              data: { filter: { id: ids.join(',') } }\n            }).then(function(data) {\n              run(null, resolve, data);\n            }, function(jqXHR) {\n              jqXHR.then = null; // tame jQuery's ill mannered promises\n              run(null, reject, jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method findMany\n      @param {Store} store\n      @param {Model} type   the Model class of the records\n      @param {Array}    ids\n      @param {Array} snapshots\n      @return {Promise} promise\n      @public\n    */\n\n    /**\n      Organize records into groups, each of which is to be passed to separate\n      calls to `findMany`.\n       For example, if your API has nested URLs that depend on the parent, you will\n      want to group records by their parent.\n       The default implementation returns the records as a single group.\n       @method groupRecordsForFindMany\n      @public\n      @param {Store} store\n      @param {Array} snapshots\n      @return {Array}  an array of arrays of records, each of which is to be\n                        loaded separately by `findMany`.\n    */\n    groupRecordsForFindMany(store, snapshots) {\n      return [snapshots];\n    }\n\n    /**\n      This method is used by the store to determine if the store should\n      reload a record from the adapter when a record is requested by\n      `store.findRecord`.\n       If this method returns `true`, the store will re-fetch a record from\n      the adapter. If this method returns `false`, the store will resolve\n      immediately using the cached record.\n       For example, if you are building an events ticketing system, in which users\n      can only reserve tickets for 20 minutes at a time, and want to ensure that\n      in each route you have data that is no more than 20 minutes old you could\n      write:\n       ```javascript\n      shouldReloadRecord(store, ticketSnapshot) {\n        let lastAccessedAt = ticketSnapshot.attr('lastAccessedAt');\n        let timeDiff = moment().diff(lastAccessedAt, 'minutes');\n         if (timeDiff > 20) {\n          return true;\n        } else {\n          return false;\n        }\n      }\n      ```\n       This method would ensure that whenever you do `store.findRecord('ticket',\n      id)` you will always get a ticket that is no more than 20 minutes old. In\n      case the cached version is more than 20 minutes old, `findRecord` will not\n      resolve until you fetched the latest version.\n       By default this hook returns `false`, as most UIs should not block user\n      interactions while waiting on data update.\n       Note that, with default settings, `shouldBackgroundReloadRecord` will always\n      re-fetch the records in the background even if `shouldReloadRecord` returns\n      `false`. You can override `shouldBackgroundReloadRecord` if this does not\n      suit your use case.\n       @since 1.13.0\n      @method shouldReloadRecord\n      @param {Store} store\n      @param {Snapshot} snapshot\n      @return {Boolean}\n      @public\n    */\n    shouldReloadRecord(store, snapshot) {\n      return false;\n    }\n\n    /**\n      This method is used by the store to determine if the store should\n      reload all records from the adapter when records are requested by\n      `store.findAll`.\n       If this method returns `true`, the store will re-fetch all records from\n      the adapter. If this method returns `false`, the store will resolve\n      immediately using the cached records.\n       For example, if you are building an events ticketing system, in which users\n      can only reserve tickets for 20 minutes at a time, and want to ensure that\n      in each route you have data that is no more than 20 minutes old you could\n      write:\n       ```javascript\n      shouldReloadAll(store, snapshotArray) {\n        let snapshots = snapshotArray.snapshots();\n         return snapshots.any((ticketSnapshot) => {\n          let lastAccessedAt = ticketSnapshot.attr('lastAccessedAt');\n          let timeDiff = moment().diff(lastAccessedAt, 'minutes');\n           if (timeDiff > 20) {\n            return true;\n          } else {\n            return false;\n          }\n        });\n      }\n      ```\n       This method would ensure that whenever you do `store.findAll('ticket')` you\n      will always get a list of tickets that are no more than 20 minutes old. In\n      case a cached version is more than 20 minutes old, `findAll` will not\n      resolve until you fetched the latest versions.\n       By default, this method returns `true` if the passed `snapshotRecordArray`\n      is empty (meaning that there are no records locally available yet),\n      otherwise, it returns `false`.\n       Note that, with default settings, `shouldBackgroundReloadAll` will always\n      re-fetch all the records in the background even if `shouldReloadAll` returns\n      `false`. You can override `shouldBackgroundReloadAll` if this does not suit\n      your use case.\n       @since 1.13.0\n      @method shouldReloadAll\n      @param {Store} store\n      @param {SnapshotRecordArray} snapshotRecordArray\n      @return {Boolean}\n      @public\n    */\n    shouldReloadAll(store, snapshotRecordArray) {\n      return !snapshotRecordArray.length;\n    }\n\n    /**\n      This method is used by the store to determine if the store should\n      reload a record after the `store.findRecord` method resolves a\n      cached record.\n       This method is *only* checked by the store when the store is\n      returning a cached record.\n       If this method returns `true` the store will re-fetch a record from\n      the adapter.\n       For example, if you do not want to fetch complex data over a mobile\n      connection, or if the network is down, you can implement\n      `shouldBackgroundReloadRecord` as follows:\n       ```javascript\n      shouldBackgroundReloadRecord(store, snapshot) {\n        let { downlink, effectiveType } = navigator.connection;\n         return downlink > 0 && effectiveType === '4g';\n      }\n      ```\n       By default, this hook returns `true` so the data for the record is updated\n      in the background.\n       @since 1.13.0\n      @method shouldBackgroundReloadRecord\n      @param {Store} store\n      @param {Snapshot} snapshot\n      @return {Boolean}\n      @public\n    */\n    shouldBackgroundReloadRecord(store, Snapshot) {\n      return true;\n    }\n\n    /**\n      This method is used by the store to determine if the store should\n      reload a record array after the `store.findAll` method resolves\n      with a cached record array.\n       This method is *only* checked by the store when the store is\n      returning a cached record array.\n       If this method returns `true` the store will re-fetch all records\n      from the adapter.\n       For example, if you do not want to fetch complex data over a mobile\n      connection, or if the network is down, you can implement\n      `shouldBackgroundReloadAll` as follows:\n       ```javascript\n      shouldBackgroundReloadAll(store, snapshotArray) {\n        let { downlink, effectiveType } = navigator.connection;\n         return downlink > 0 && effectiveType === '4g';\n      }\n      ```\n       By default this method returns `true`, indicating that a background reload\n      should always be triggered.\n       @since 1.13.0\n      @method shouldBackgroundReloadAll\n      @param {Store} store\n      @param {SnapshotRecordArray} snapshotRecordArray\n      @return {Boolean}\n      @public\n    */\n    shouldBackgroundReloadAll(store, snapshotRecordArray) {\n      return true;\n    }\n  }\n  _exports.default = Adapter;\n});","define(\"@ember-data/adapter/json-api\", [\"exports\", \"@ember/string\", \"ember-inflector\", \"@ember-data/adapter/-private\", \"@ember-data/adapter/rest\"], function (_exports, _string, _emberInflector, _private, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    @module @ember-data/adapter/json-api\n   */\n\n  /**\n    The `JSONAPIAdapter` is the default adapter used by Ember Data. It\n    is responsible for transforming the store's requests into HTTP\n    requests that follow the [JSON API](http://jsonapi.org/format/)\n    format.\n  \n    ## JSON API Conventions\n  \n    The JSONAPIAdapter uses JSON API conventions for building the URL\n    for a record and selecting the HTTP verb to use with a request. The\n    actions you can take on a record map onto the following URLs in the\n    JSON API adapter:\n  \n  <table>\n    <tr>\n      <th>\n        Action\n      </th>\n      <th>\n        HTTP Verb\n      </th>\n      <th>\n        URL\n      </th>\n    </tr>\n    <tr>\n      <th>\n        `store.findRecord('post', 123)`\n      </th>\n      <td>\n        GET\n      </td>\n      <td>\n        /posts/123\n      </td>\n    </tr>\n    <tr>\n      <th>\n        `store.findAll('post')`\n      </th>\n      <td>\n        GET\n      </td>\n      <td>\n        /posts\n      </td>\n    </tr>\n    <tr>\n      <th>\n        Update `postRecord.save()`\n      </th>\n      <td>\n        PATCH\n      </td>\n      <td>\n        /posts/123\n      </td>\n    </tr>\n    <tr>\n      <th>\n        Create `store.createRecord('post').save()`\n      </th>\n      <td>\n        POST\n      </td>\n      <td>\n        /posts\n      </td>\n    </tr>\n    <tr>\n      <th>\n        Delete `postRecord.destroyRecord()`\n      </th>\n      <td>\n        DELETE\n      </td>\n      <td>\n        /posts/123\n      </td>\n    </tr>\n  </table>\n  \n    ## Success and failure\n  \n    The JSONAPIAdapter will consider a success any response with a\n    status code of the 2xx family (\"Success\"), as well as 304 (\"Not\n    Modified\"). Any other status code will be considered a failure.\n  \n    On success, the request promise will be resolved with the full\n    response payload.\n  \n    Failed responses with status code 422 (\"Unprocessable Entity\") will\n    be considered \"invalid\". The response will be discarded, except for\n    the `errors` key. The request promise will be rejected with a\n    `InvalidError`. This error object will encapsulate the saved\n    `errors` value.\n  \n    Any other status codes will be treated as an adapter error. The\n    request promise will be rejected, similarly to the invalid case,\n    but with an instance of `AdapterError` instead.\n  \n    ### Endpoint path customization\n  \n    Endpoint paths can be prefixed with a `namespace` by setting the\n    namespace property on the adapter:\n  \n    ```app/adapters/application.js\n    import JSONAPIAdapter from '@ember-data/adapter/json-api';\n  \n    export default class ApplicationAdapter extends JSONAPIAdapter {\n      namespace = 'api/1';\n    }\n    ```\n    Requests for the `person` model would now target `/api/1/people/1`.\n  \n    ### Host customization\n  \n    An adapter can target other hosts by setting the `host` property.\n  \n    ```app/adapters/application.js\n    import JSONAPIAdapter from '@ember-data/adapter/json-api';\n  \n    export default class ApplicationAdapter extends JSONAPIAdapter {\n      host = 'https://api.example.com';\n    }\n    ```\n  \n    Requests for the `person` model would now target\n    `https://api.example.com/people/1`.\n  \n    @since 1.13.0\n    @class JSONAPIAdapter\n    @main @ember-data/adapter/json-api\n    @public\n    @constructor\n    @extends RESTAdapter\n  */\n  class JSONAPIAdapter extends _rest.default {\n    constructor(...args) {\n      super(...args);\n      this.defaultSerializer = '-json-api';\n      this._defaultContentType = 'application/vnd.api+json';\n    }\n    /**\n      @method ajaxOptions\n      @private\n      @param {String} url\n      @param {String} type The request type GET, POST, PUT, DELETE etc.\n      @param {Object} options\n      @return {Object}\n    */\n    ajaxOptions(url, type, options = {}) {\n      var hash = super.ajaxOptions(url, type, options);\n      hash.headers['Accept'] = hash.headers['Accept'] || 'application/vnd.api+json';\n      return hash;\n    }\n\n    /**\n      By default the JSONAPIAdapter will send each find request coming from a `store.find`\n      or from accessing a relationship separately to the server. If your server supports passing\n      ids as a query string, you can set coalesceFindRequests to true to coalesce all find requests\n      within a single runloop.\n       For example, if you have an initial payload of:\n       ```javascript\n      {\n        data: {\n          id: 1,\n          type: 'post',\n          relationship: {\n            comments: {\n              data: [\n                { id: 1, type: 'comment' },\n                { id: 2, type: 'comment' }\n              ]\n            }\n          }\n        }\n      }\n      ```\n       By default calling `post.get('comments')` will trigger the following requests(assuming the\n      comments haven't been loaded before):\n       ```\n      GET /comments/1\n      GET /comments/2\n      ```\n       If you set coalesceFindRequests to `true` it will instead trigger the following request:\n       ```\n      GET /comments?filter[id]=1,2\n      ```\n       Setting coalesceFindRequests to `true` also works for `store.find` requests and `belongsTo`\n      relationships accessed within the same runloop. If you set `coalesceFindRequests: true`\n       ```javascript\n      store.findRecord('comment', 1);\n      store.findRecord('comment', 2);\n      ```\n       will also send a request to: `GET /comments?filter[id]=1,2`\n       Note: Requests coalescing rely on URL building strategy. So if you override `buildURL` in your app\n      `groupRecordsForFindMany` more likely should be overridden as well in order for coalescing to work.\n       @property coalesceFindRequests\n      @public\n      @type {boolean}\n    */\n    get coalesceFindRequests() {\n      var coalesceFindRequests = this._coalesceFindRequests;\n      if (typeof coalesceFindRequests === 'boolean') {\n        return coalesceFindRequests;\n      }\n      return this._coalesceFindRequests = false;\n    }\n    set coalesceFindRequests(value) {\n      this._coalesceFindRequests = value;\n    }\n    findMany(store, type, ids, snapshots) {\n      var url = this.buildURL(type.modelName, ids, snapshots, 'findMany');\n      return this.ajax(url, 'GET', {\n        data: {\n          filter: {\n            id: ids.join(',')\n          }\n        }\n      });\n    }\n    pathForType(modelName) {\n      var dasherized = (0, _string.dasherize)(modelName);\n      return (0, _emberInflector.pluralize)(dasherized);\n    }\n    updateRecord(store, type, snapshot) {\n      var data = (0, _private.serializeIntoHash)(store, type, snapshot);\n      var url = this.buildURL(type.modelName, snapshot.id, snapshot, 'updateRecord');\n      return this.ajax(url, 'PATCH', {\n        data: data\n      });\n    }\n  }\n  var _default = _exports.default = JSONAPIAdapter;\n});","define(\"@ember-data/adapter/rest\", [\"exports\", \"@ember/application\", \"@ember/debug\", \"@ember/object\", \"@ember/polyfills\", \"@ember/runloop\", \"require\", \"rsvp\", \"@ember-data/adapter\", \"@ember-data/adapter/error\", \"@ember-data/store/-private\", \"@ember-data/adapter/-private\"], function (_exports, _application, _debug, _object, _polyfills, _runloop, _require, _rsvp, _adapter, _error, _private, _private2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.fetchOptions = fetchOptions;\n  var _dec, _class;\n  /**\n    @module @ember-data/adapter/rest\n  */\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  var UseFetch = (0, _private.symbol)('useFetch');\n  var hasJQuery = typeof jQuery !== 'undefined';\n\n  /**\n    The REST adapter allows your store to communicate with an HTTP server by\n    transmitting JSON via XHR. Most Ember.js apps that consume a JSON API\n    should use the REST adapter.\n  \n    This adapter is designed around the idea that the JSON exchanged with\n    the server should be conventional.\n  \n    ## Success and failure\n  \n    The REST adapter will consider a success any response with a status code\n    of the 2xx family (\"Success\"), as well as 304 (\"Not Modified\"). Any other\n    status code will be considered a failure.\n  \n    On success, the request promise will be resolved with the full response\n    payload.\n  \n    Failed responses with status code 422 (\"Unprocessable Entity\") will be\n    considered \"invalid\". The response will be discarded, except for the\n    `errors` key. The request promise will be rejected with a `InvalidError`.\n    This error object will encapsulate the saved `errors` value.\n  \n    Any other status codes will be treated as an \"adapter error\". The request\n    promise will be rejected, similarly to the \"invalid\" case, but with\n    an instance of `AdapterError` instead.\n  \n    ## JSON Structure\n  \n    The REST adapter expects the JSON returned from your server to follow\n    these conventions.\n  \n    ### Object Root\n  \n    The JSON payload should be an object that contains the record inside a\n    root property. For example, in response to a `GET` request for\n    `/posts/1`, the JSON should look like this:\n  \n    ```js\n    {\n      \"posts\": {\n        \"id\": 1,\n        \"title\": \"I'm Running to Reform the W3C's Tag\",\n        \"author\": \"Yehuda Katz\"\n      }\n    }\n    ```\n  \n    Similarly, in response to a `GET` request for `/posts`, the JSON should\n    look like this:\n  \n    ```js\n    {\n      \"posts\": [\n        {\n          \"id\": 1,\n          \"title\": \"I'm Running to Reform the W3C's Tag\",\n          \"author\": \"Yehuda Katz\"\n        },\n        {\n          \"id\": 2,\n          \"title\": \"Rails is omakase\",\n          \"author\": \"D2H\"\n        }\n      ]\n    }\n    ```\n  \n    Note that the object root can be pluralized for both a single-object response\n    and an array response: the REST adapter is not strict on this. Further, if the\n    HTTP server responds to a `GET` request to `/posts/1` (e.g. the response to a\n    `findRecord` query) with more than one object in the array, Ember Data will\n    only display the object with the matching ID.\n  \n    ### Conventional Names\n  \n    Attribute names in your JSON payload should be the camelCased versions of\n    the attributes in your Ember.js models.\n  \n    For example, if you have a `Person` model:\n  \n    ```app/models/person.js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default Model.extend({\n      firstName: attr('string'),\n      lastName: attr('string'),\n      occupation: attr('string')\n    });\n    ```\n  \n    The JSON returned should look like this:\n  \n    ```js\n    {\n      \"people\": {\n        \"id\": 5,\n        \"firstName\": \"Zaphod\",\n        \"lastName\": \"Beeblebrox\",\n        \"occupation\": \"President\"\n      }\n    }\n    ```\n  \n    #### Relationships\n  \n    Relationships are usually represented by ids to the record in the\n    relationship. The related records can then be sideloaded in the\n    response under a key for the type.\n  \n    ```js\n    {\n      \"posts\": {\n        \"id\": 5,\n        \"title\": \"I'm Running to Reform the W3C's Tag\",\n        \"author\": \"Yehuda Katz\",\n        \"comments\": [1, 2]\n      },\n      \"comments\": [{\n        \"id\": 1,\n        \"author\": \"User 1\",\n        \"message\": \"First!\",\n      }, {\n        \"id\": 2,\n        \"author\": \"User 2\",\n        \"message\": \"Good Luck!\",\n      }]\n    }\n    ```\n  \n    If the records in the relationship are not known when the response\n    is serialized it's also possible to represent the relationship as a\n    URL using the `links` key in the response. Ember Data will fetch\n    this URL to resolve the relationship when it is accessed for the\n    first time.\n  \n    ```js\n    {\n      \"posts\": {\n        \"id\": 5,\n        \"title\": \"I'm Running to Reform the W3C's Tag\",\n        \"author\": \"Yehuda Katz\",\n        \"links\": {\n          \"comments\": \"/posts/5/comments\"\n        }\n      }\n    }\n    ```\n  \n    ### Errors\n  \n    If a response is considered a failure, the JSON payload is expected to include\n    a top-level key `errors`, detailing any specific issues. For example:\n  \n    ```js\n    {\n      \"errors\": {\n        \"msg\": \"Something went wrong\"\n      }\n    }\n    ```\n  \n    This adapter does not make any assumptions as to the format of the `errors`\n    object. It will simply be passed along as is, wrapped in an instance\n    of `InvalidError` or `AdapterError`. The serializer can interpret it\n    afterwards.\n  \n    ## Customization\n  \n    ### Endpoint path customization\n  \n    Endpoint paths can be prefixed with a `namespace` by setting the namespace\n    property on the adapter:\n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      namespace = 'api/1';\n    }\n    ```\n    Requests for the `Person` model would now target `/api/1/people/1`.\n  \n    ### Host customization\n  \n    An adapter can target other hosts by setting the `host` property.\n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      host = 'https://api.example.com';\n    }\n    ```\n  \n    ### Headers customization\n  \n    Some APIs require HTTP headers, e.g. to provide an API key. Arbitrary\n    headers can be set as key/value pairs on the `RESTAdapter`'s `headers`\n    object and Ember Data will send them along with each ajax request.\n  \n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n    import { computed } from '@ember/object';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      headers: computed(function() {\n        return {\n          'API_KEY': 'secret key',\n          'ANOTHER_HEADER': 'Some header value'\n        };\n      }\n    }\n    ```\n  \n    `headers` can also be used as a computed property to support dynamic\n    headers. In the example below, the `session` object has been\n    injected into an adapter by Ember's container.\n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n    import { computed } from '@ember/object';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      headers: computed('session.authToken', function() {\n        return {\n          'API_KEY': this.get('session.authToken'),\n          'ANOTHER_HEADER': 'Some header value'\n        };\n      })\n    }\n    ```\n  \n    In some cases, your dynamic headers may require data from some\n    object outside of Ember's observer system (for example\n    `document.cookie`). You can use the\n    [volatile](/api/classes/Ember.ComputedProperty.html?anchor=volatile)\n    function to set the property into a non-cached mode causing the headers to\n    be recomputed with every request.\n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n    import { get } from '@ember/object';\n    import { computed } from '@ember/object';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      headers: computed(function() {\n        return {\n          'API_KEY': get(document.cookie.match(/apiKey\\=([^;]*)/), '1'),\n          'ANOTHER_HEADER': 'Some header value'\n        };\n      }).volatile()\n    }\n    ```\n  \n    @class RESTAdapter\n    @main @ember-data/adapter/rest\n    @public\n    @constructor\n    @extends Adapter\n    @uses BuildURLMixin\n  */\n  var RESTAdapter = (_dec = (0, _object.computed)(), (_class = class RESTAdapter extends _adapter.default.extend(_adapter.BuildURLMixin) {\n    constructor(...args) {\n      super(...args);\n      /**\n         If jQuery or nAjax are installed, this property\n        allows fetch to still be used instead when `true`.\n         @property useFetch\n        @type {Boolean}\n        @public\n      */\n      this.defaultSerializer = '-rest';\n      this._defaultContentType = 'application/json; charset=utf-8';\n      // http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers\n      this.maxURLLength = 2048;\n    }\n    get fastboot() {\n      // Avoid computed property override deprecation in fastboot as suggested by:\n      // https://deprecations.emberjs.com/v3.x/#toc_computed-property-override\n      var fastboot = this._fastboot;\n      if (fastboot) {\n        return fastboot;\n      }\n      return this._fastboot = (0, _application.getOwner)(this).lookup('service:fastboot');\n    }\n    set fastboot(value) {\n      this._fastboot = value;\n    }\n\n    /**\n      By default, the RESTAdapter will send the query params sorted alphabetically to the\n      server.\n       For example:\n       ```js\n      store.query('posts', { sort: 'price', category: 'pets' });\n      ```\n       will generate a requests like this `/posts?category=pets&sort=price`, even if the\n      parameters were specified in a different order.\n       That way the generated URL will be deterministic and that simplifies caching mechanisms\n      in the backend.\n       Setting `sortQueryParams` to a falsey value will respect the original order.\n       In case you want to sort the query parameters with a different criteria, set\n      `sortQueryParams` to your custom sort function.\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n       export default class ApplicationAdapter extends RESTAdapter {\n        sortQueryParams(params) {\n          let sortedKeys = Object.keys(params).sort().reverse();\n          let len = sortedKeys.length, newParams = {};\n           for (let i = 0; i < len; i++) {\n            newParams[sortedKeys[i]] = params[sortedKeys[i]];\n          }\n           return newParams;\n        }\n      }\n      ```\n       @method sortQueryParams\n      @param {Object} obj\n      @return {Object}\n      @public\n    */\n    sortQueryParams(obj) {\n      var keys = Object.keys(obj);\n      var len = keys.length;\n      if (len < 2) {\n        return obj;\n      }\n      var newQueryParams = {};\n      var sortedKeys = keys.sort();\n      for (var i = 0; i < len; i++) {\n        newQueryParams[sortedKeys[i]] = obj[sortedKeys[i]];\n      }\n      return newQueryParams;\n    }\n\n    /**\n      By default the RESTAdapter will send each find request coming from a `store.find`\n      or from accessing a relationship separately to the server. If your server supports passing\n      ids as a query string, you can set coalesceFindRequests to true to coalesce all find requests\n      within a single runloop.\n       For example, if you have an initial payload of:\n       ```javascript\n      {\n        post: {\n          id: 1,\n          comments: [1, 2]\n        }\n      }\n      ```\n       By default calling `post.get('comments')` will trigger the following requests(assuming the\n      comments haven't been loaded before):\n       ```\n      GET /comments/1\n      GET /comments/2\n      ```\n       If you set coalesceFindRequests to `true` it will instead trigger the following request:\n       ```\n      GET /comments?ids[]=1&ids[]=2\n      ```\n       Setting coalesceFindRequests to `true` also works for `store.find` requests and `belongsTo`\n      relationships accessed within the same runloop. If you set `coalesceFindRequests: true`\n       ```javascript\n      store.findRecord('comment', 1);\n      store.findRecord('comment', 2);\n      ```\n       will also send a request to: `GET /comments?ids[]=1&ids[]=2`\n       Note: Requests coalescing rely on URL building strategy. So if you override `buildURL` in your app\n      `groupRecordsForFindMany` more likely should be overridden as well in order for coalescing to work.\n       @property coalesceFindRequests\n      @public\n      @type {boolean}\n    */\n    get coalesceFindRequests() {\n      var coalesceFindRequests = this._coalesceFindRequests;\n      if (typeof coalesceFindRequests === 'boolean') {\n        return coalesceFindRequests;\n      }\n      return this._coalesceFindRequests = false;\n    }\n    set coalesceFindRequests(value) {\n      this._coalesceFindRequests = value;\n    }\n\n    /**\n      Endpoint paths can be prefixed with a `namespace` by setting the namespace\n      property on the adapter:\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n       export default class ApplicationAdapter extends RESTAdapter {\n        namespace = 'api/1';\n      }\n      ```\n       Requests for the `Post` model would now target `/api/1/post/`.\n       @property namespace\n      @public\n      @type {String}\n    */\n\n    /**\n      An adapter can target other hosts by setting the `host` property.\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n       export default class ApplicationAdapter extends RESTAdapter {\n        host = 'https://api.example.com';\n      }\n      ```\n       Requests for the `Post` model would now target `https://api.example.com/post/`.\n       @property host\n      @public\n      @type {String}\n    */\n\n    /**\n      Some APIs require HTTP headers, e.g. to provide an API\n      key. Arbitrary headers can be set as key/value pairs on the\n      `RESTAdapter`'s `headers` object and Ember Data will send them\n      along with each ajax request. For dynamic headers see [headers\n      customization](/ember-data/release/classes/RESTAdapter).\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n      import { computed } from '@ember/object';\n       export default class ApplicationAdapter extends RESTAdapter {\n        headers: computed(function() {\n          return {\n            'API_KEY': 'secret key',\n            'ANOTHER_HEADER': 'Some header value'\n          };\n        })\n      }\n      ```\n       @property headers\n      @public\n      @type {Object}\n     */\n    /**\n      Called by the store in order to fetch the JSON for a given\n      type and ID.\n       The `findRecord` method makes an Ajax request to a URL computed by\n      `buildURL`, and returns a promise for the resulting payload.\n       This method performs an HTTP `GET` request with the id provided as part of the query string.\n       @since 1.13.0\n      @method findRecord\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {String} id\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n    findRecord(store, type, id, snapshot) {\n      var url = this.buildURL(type.modelName, id, snapshot, 'findRecord');\n      var query = this.buildQuery(snapshot);\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n\n    /**\n      Called by the store in order to fetch a JSON array for all\n      of the records for a given type.\n       The `findAll` method makes an Ajax (HTTP GET) request to a URL computed by `buildURL`, and returns a\n      promise for the resulting payload.\n       @method findAll\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {undefined} neverSet a value is never provided to this argument\n      @param {SnapshotRecordArray} snapshotRecordArray\n      @return {Promise} promise\n    */\n    findAll(store, type, sinceToken, snapshotRecordArray) {\n      var query = this.buildQuery(snapshotRecordArray);\n      var url = this.buildURL(type.modelName, null, snapshotRecordArray, 'findAll');\n      if (sinceToken) {\n        query.since = sinceToken;\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n\n    /**\n      Called by the store in order to fetch a JSON array for\n      the records that match a particular query.\n       The `query` method makes an Ajax (HTTP GET) request to a URL\n      computed by `buildURL`, and returns a promise for the resulting\n      payload.\n       The `query` argument is a simple JavaScript object that will be passed directly\n      to the server as parameters.\n       @method query\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {Object} query\n      @param {AdapterPopulatedRecordArray} recordArray\n      @param {Object} adapterOptions\n      @return {Promise} promise\n    */\n    query(store, type, query) {\n      var url = this.buildURL(type.modelName, null, null, 'query', query);\n      if (this.sortQueryParams) {\n        query = this.sortQueryParams(query);\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n\n    /**\n      Called by the store in order to fetch a JSON object for\n      the record that matches a particular query.\n       The `queryRecord` method makes an Ajax (HTTP GET) request to a URL\n      computed by `buildURL`, and returns a promise for the resulting\n      payload.\n       The `query` argument is a simple JavaScript object that will be passed directly\n      to the server as parameters.\n       @since 1.13.0\n      @method queryRecord\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {Object} query\n      @param {Object} adapterOptions\n      @return {Promise} promise\n    */\n    queryRecord(store, type, query, adapterOptions) {\n      var url = this.buildURL(type.modelName, null, null, 'queryRecord', query);\n      if (this.sortQueryParams) {\n        query = this.sortQueryParams(query);\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n\n    /**\n      Called by the store in order to fetch several records together if `coalesceFindRequests` is true\n       For example, if the original payload looks like:\n       ```js\n      {\n        \"id\": 1,\n        \"title\": \"Rails is omakase\",\n        \"comments\": [ 1, 2, 3 ]\n      }\n      ```\n       The IDs will be passed as a URL-encoded Array of IDs, in this form:\n       ```\n      ids[]=1&ids[]=2&ids[]=3\n      ```\n       Many servers, such as Rails and PHP, will automatically convert this URL-encoded array\n      into an Array for you on the server-side. If you want to encode the\n      IDs, differently, just override this (one-line) method.\n       The `findMany` method makes an Ajax (HTTP GET) request to a URL computed by `buildURL`, and returns a\n      promise for the resulting payload.\n       @method findMany\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {Array} ids\n      @param {Array} snapshots\n      @return {Promise} promise\n    */\n    findMany(store, type, ids, snapshots) {\n      var url = this.buildURL(type.modelName, ids, snapshots, 'findMany');\n      return this.ajax(url, 'GET', {\n        data: {\n          ids: ids\n        }\n      });\n    }\n\n    /**\n      Called by the store in order to fetch a JSON array for\n      the unloaded records in a has-many relationship that were originally\n      specified as a URL (inside of `links`).\n       For example, if your original payload looks like this:\n       ```js\n      {\n        \"post\": {\n          \"id\": 1,\n          \"title\": \"Rails is omakase\",\n          \"links\": { \"comments\": \"/posts/1/comments\" }\n        }\n      }\n      ```\n       This method will be called with the parent record and `/posts/1/comments`.\n       The `findHasMany` method will make an Ajax (HTTP GET) request to the originally specified URL.\n       The format of your `links` value will influence the final request URL via the `urlPrefix` method:\n       * Links beginning with `//`, `http://`, `https://`, will be used as is, with no further manipulation.\n       * Links beginning with a single `/` will have the current adapter's `host` value prepended to it.\n       * Links with no beginning `/` will have a parentURL prepended to it, via the current adapter's `buildURL`.\n       @method findHasMany\n      @public\n      @param {Store} store\n      @param {Snapshot} snapshot\n      @param {String} url\n      @param {Object} relationship meta object describing the relationship\n      @return {Promise} promise\n    */\n    findHasMany(store, snapshot, url, relationship) {\n      var id = snapshot.id;\n      var type = snapshot.modelName;\n      url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findHasMany'));\n      return this.ajax(url, 'GET');\n    }\n\n    /**\n      Called by the store in order to fetch the JSON for the unloaded record in a\n      belongs-to relationship that was originally specified as a URL (inside of\n      `links`).\n       For example, if your original payload looks like this:\n       ```js\n      {\n        \"person\": {\n          \"id\": 1,\n          \"name\": \"Tom Dale\",\n          \"links\": { \"group\": \"/people/1/group\" }\n        }\n      }\n      ```\n       This method will be called with the parent record and `/people/1/group`.\n       The `findBelongsTo` method will make an Ajax (HTTP GET) request to the originally specified URL.\n       The format of your `links` value will influence the final request URL via the `urlPrefix` method:\n       * Links beginning with `//`, `http://`, `https://`, will be used as is, with no further manipulation.\n       * Links beginning with a single `/` will have the current adapter's `host` value prepended to it.\n       * Links with no beginning `/` will have a parentURL prepended to it, via the current adapter's `buildURL`.\n       @method findBelongsTo\n      @public\n      @param {Store} store\n      @param {Snapshot} snapshot\n      @param {String} url\n      @param {Object} relationship meta object describing the relationship\n      @return {Promise} promise\n    */\n    findBelongsTo(store, snapshot, url, relationship) {\n      var id = snapshot.id;\n      var type = snapshot.modelName;\n      url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findBelongsTo'));\n      return this.ajax(url, 'GET');\n    }\n\n    /**\n      Called by the store when a newly created record is\n      saved via the `save` method on a model record instance.\n       The `createRecord` method serializes the record and makes an Ajax (HTTP POST) request\n      to a URL computed by `buildURL`.\n       See `serialize` for information on how to customize the serialized form\n      of a record.\n       @method createRecord\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n    createRecord(store, type, snapshot) {\n      var url = this.buildURL(type.modelName, null, snapshot, 'createRecord');\n      var data = (0, _private2.serializeIntoHash)(store, type, snapshot);\n      return this.ajax(url, 'POST', {\n        data\n      });\n    }\n\n    /**\n      Called by the store when an existing record is saved\n      via the `save` method on a model record instance.\n       The `updateRecord` method serializes the record and makes an Ajax (HTTP PUT) request\n      to a URL computed by `buildURL`.\n       See `serialize` for information on how to customize the serialized form\n      of a record.\n       @method updateRecord\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n    updateRecord(store, type, snapshot) {\n      var data = (0, _private2.serializeIntoHash)(store, type, snapshot, {});\n      var id = snapshot.id;\n      var url = this.buildURL(type.modelName, id, snapshot, 'updateRecord');\n      return this.ajax(url, 'PUT', {\n        data\n      });\n    }\n\n    /**\n      Called by the store when a record is deleted.\n       The `deleteRecord` method  makes an Ajax (HTTP DELETE) request to a URL computed by `buildURL`.\n       @method deleteRecord\n      @public\n      @param {Store} store\n      @param {Model} type\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n    deleteRecord(store, type, snapshot) {\n      var id = snapshot.id;\n      return this.ajax(this.buildURL(type.modelName, id, snapshot, 'deleteRecord'), 'DELETE');\n    }\n    _stripIDFromURL(store, snapshot) {\n      var url = this.buildURL(snapshot.modelName, snapshot.id, snapshot);\n      var expandedURL = url.split('/');\n      // Case when the url is of the format ...something/:id\n      // We are decodeURIComponent-ing the lastSegment because if it represents\n      // the id, it has been encodeURIComponent-ified within `buildURL`. If we\n      // don't do this, then records with id having special characters are not\n      // coalesced correctly (see GH #4190 for the reported bug)\n      var lastSegment = expandedURL[expandedURL.length - 1];\n      var id = snapshot.id;\n      if (decodeURIComponent(lastSegment) === id) {\n        expandedURL[expandedURL.length - 1] = '';\n      } else if (id && endsWith(lastSegment, '?id=' + id)) {\n        //Case when the url is of the format ...something?id=:id\n        expandedURL[expandedURL.length - 1] = lastSegment.substring(0, lastSegment.length - id.length - 1);\n      }\n      return expandedURL.join('/');\n    }\n    /**\n      Organize records into groups, each of which is to be passed to separate\n      calls to `findMany`.\n       This implementation groups together records that have the same base URL but\n      differing ids. For example `/comments/1` and `/comments/2` will be grouped together\n      because we know findMany can coalesce them together as `/comments?ids[]=1&ids[]=2`\n       It also supports urls where ids are passed as a query param, such as `/comments?id=1`\n      but not those where there is more than 1 query param such as `/comments?id=2&name=David`\n      Currently only the query param of `id` is supported. If you need to support others, please\n      override this or the `_stripIDFromURL` method.\n       It does not group records that have differing base urls, such as for example: `/posts/1/comments/2`\n      and `/posts/2/comments/3`\n       @method groupRecordsForFindMany\n      @public\n      @param {Store} store\n      @param {Array} snapshots\n      @return {Array}  an array of arrays of records, each of which is to be\n                        loaded separately by `findMany`.\n    */\n    groupRecordsForFindMany(store, snapshots) {\n      var groups = new Map();\n      var adapter = this;\n      var maxURLLength = this.maxURLLength;\n      snapshots.forEach(snapshot => {\n        var baseUrl = adapter._stripIDFromURL(store, snapshot);\n        if (!groups.has(baseUrl)) {\n          groups.set(baseUrl, []);\n        }\n        groups.get(baseUrl).push(snapshot);\n      });\n      function splitGroupToFitInUrl(group, maxURLLength, paramNameLength) {\n        var idsSize = 0;\n        var baseUrl = adapter._stripIDFromURL(store, group[0]);\n        var splitGroups = [[]];\n        group.forEach(snapshot => {\n          var additionalLength = encodeURIComponent(snapshot.id).length + paramNameLength;\n          if (baseUrl.length + idsSize + additionalLength >= maxURLLength) {\n            idsSize = 0;\n            splitGroups.push([]);\n          }\n          idsSize += additionalLength;\n          var lastGroupIndex = splitGroups.length - 1;\n          splitGroups[lastGroupIndex].push(snapshot);\n        });\n        return splitGroups;\n      }\n      var groupsArray = [];\n      groups.forEach((group, key) => {\n        var paramNameLength = '&ids%5B%5D='.length;\n        var splitGroups = splitGroupToFitInUrl(group, maxURLLength, paramNameLength);\n        splitGroups.forEach(splitGroup => groupsArray.push(splitGroup));\n      });\n      return groupsArray;\n    }\n\n    /**\n      Takes an ajax response, and returns the json payload or an error.\n       By default this hook just returns the json payload passed to it.\n      You might want to override it in two cases:\n       1. Your API might return useful results in the response headers.\n      Response headers are passed in as the second argument.\n       2. Your API might return errors as successful responses with status code\n      200 and an Errors text or object. You can return a `InvalidError` or a\n      `AdapterError` (or a sub class) from this hook and it will automatically\n      reject the promise and put your record into the invalid or error state.\n       Returning a `InvalidError` from this method will cause the\n      record to transition into the `invalid` state and make the\n      `errors` object available on the record. When returning an\n      `InvalidError` the store will attempt to normalize the error data\n      returned from the server using the serializer's `extractErrors`\n      method.\n       @since 1.13.0\n      @method handleResponse\n      @public\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @param  {Object} requestData - the original request information\n      @return {Object | AdapterError} response\n    */\n    handleResponse(status, headers, payload, requestData) {\n      if (this.isSuccess(status, headers, payload)) {\n        return payload;\n      } else if (this.isInvalid(status, headers, payload)) {\n        return new _error.InvalidError(typeof payload === 'object' ? payload.errors : undefined);\n      }\n      var errors = this.normalizeErrorResponse(status, headers, payload);\n      var detailedMessage = this.generatedDetailedMessage(status, headers, payload, requestData);\n      switch (status) {\n        case 401:\n          return new _error.UnauthorizedError(errors, detailedMessage);\n        case 403:\n          return new _error.ForbiddenError(errors, detailedMessage);\n        case 404:\n          return new _error.NotFoundError(errors, detailedMessage);\n        case 409:\n          return new _error.ConflictError(errors, detailedMessage);\n        default:\n          if (status >= 500) {\n            return new _error.ServerError(errors, detailedMessage);\n          }\n      }\n      return new _error.default(errors, detailedMessage);\n    }\n\n    /**\n      Default `handleResponse` implementation uses this hook to decide if the\n      response is a success.\n       @since 1.13.0\n      @method isSuccess\n      @public\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @return {Boolean}\n    */\n    isSuccess(status, _headers, _payload) {\n      return status >= 200 && status < 300 || status === 304;\n    }\n\n    /**\n      Default `handleResponse` implementation uses this hook to decide if the\n      response is an invalid error.\n       @since 1.13.0\n      @method isInvalid\n      @public\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @return {Boolean}\n    */\n    isInvalid(status, _headers, _payload) {\n      return status === 422;\n    }\n\n    /**\n      Takes a URL, an HTTP method and a hash of data, and makes an\n      HTTP request.\n       When the server responds with a payload, Ember Data will call into `extractSingle`\n      or `extractArray` (depending on whether the original query was for one record or\n      many records).\n       By default, `ajax` method has the following behavior:\n       * It sets the response `dataType` to `\"json\"`\n      * If the HTTP method is not `\"GET\"`, it sets the `Content-Type` to be\n        `application/json; charset=utf-8`\n      * If the HTTP method is not `\"GET\"`, it stringifies the data passed in. The\n        data is the serialized record in the case of a save.\n      * Registers success and failure handlers.\n       @method ajax\n      @private\n      @param {String} url\n      @param {String} type The request type GET, POST, PUT, DELETE etc.\n      @param {Object} options\n      @return {Promise} promise\n    */\n    ajax(url, type, options = {}) {\n      var adapter = this;\n      var requestData = {\n        url: url,\n        method: type\n      };\n      if (this.useFetch) {\n        var _response;\n        var hash = adapter.ajaxOptions(url, type, options);\n        return this._fetchRequest(hash).then(response => {\n          _response = response;\n          return (0, _private2.determineBodyPromise)(response, requestData);\n        }).then(payload => {\n          if (_response.ok && !(payload instanceof Error)) {\n            return fetchSuccessHandler(adapter, payload, _response, requestData);\n          } else {\n            throw fetchErrorHandler(adapter, payload, _response, null, requestData);\n          }\n        });\n      } else {\n        var _hash = adapter.ajaxOptions(url, type, options);\n        return new _rsvp.Promise(function (resolve, reject) {\n          _hash.success = function (payload, textStatus, jqXHR) {\n            var response = ajaxSuccessHandler(adapter, payload, jqXHR, requestData);\n            (0, _runloop.join)(null, resolve, response);\n          };\n          _hash.error = function (jqXHR, textStatus, errorThrown) {\n            var error = ajaxErrorHandler(adapter, jqXHR, errorThrown, requestData);\n            (0, _runloop.join)(null, reject, error);\n          };\n          adapter._ajax(_hash);\n        }, 'DS: RESTAdapter#ajax ' + type + ' to ' + url);\n      }\n    }\n\n    /**\n      @method _ajaxRequest\n      @private\n      @param {Object} options jQuery ajax options to be used for the ajax request\n    */\n    _ajaxRequest(options) {\n      // TODO add assertion that jquery is there rather then equality check\n      typeof jQuery !== 'undefined' && jQuery.ajax(options);\n    }\n    _fetchRequest(options) {\n      var fetchFunction = (0, _private2.fetch)();\n      if (fetchFunction) {\n        return fetchFunction(options.url, options);\n      } else {\n        throw new Error('cannot find the `fetch` module or the `fetch` global. Did you mean to install the `ember-fetch` addon?');\n      }\n    }\n    _ajax(options) {\n      if (this.useFetch) {\n        this._fetchRequest(options);\n      } else if (true /* DEPRECATE_NAJAX */ && this.fastboot && this.fastboot.isFastBoot) {\n        this._najaxRequest(options);\n      } else {\n        this._ajaxRequest(options);\n      }\n    }\n\n    /**\n      @method ajaxOptions\n      @private\n      @param {String} url\n      @param {String} type The request type GET, POST, PUT, DELETE etc.\n      @param {Object} options\n      @return {Object}\n    */\n    ajaxOptions(url, method, options) {\n      var reqOptions = (0, _polyfills.assign)({\n        url,\n        method,\n        type: method\n      }, options);\n      if (this.headers !== undefined) {\n        reqOptions.headers = (0, _polyfills.assign)({}, this.headers, reqOptions.headers);\n      } else if (!options.headers) {\n        reqOptions.headers = {};\n      }\n      var contentType = reqOptions.contentType || this._defaultContentType;\n      if (this.useFetch) {\n        if (reqOptions.data && reqOptions.type !== 'GET' && reqOptions.headers) {\n          if (!reqOptions.headers['Content-Type'] && !reqOptions.headers['content-type']) {\n            reqOptions.headers['content-type'] = contentType;\n          }\n        }\n        reqOptions = fetchOptions(reqOptions, this);\n      } else {\n        // GET requests without a body should not have a content-type header\n        // and may be unexpected by a server\n        if (reqOptions.data && reqOptions.type !== 'GET') {\n          reqOptions = (0, _polyfills.assign)(reqOptions, {\n            contentType\n          });\n        }\n        reqOptions = ajaxOptions(reqOptions, this);\n      }\n      reqOptions.url = this._ajaxURL(reqOptions.url);\n      return reqOptions;\n    }\n    _ajaxURL(url) {\n      if (this.fastboot?.isFastBoot) {\n        var httpRegex = /^https?:\\/\\//;\n        var protocolRelativeRegex = /^\\/\\//;\n        var protocol = this.fastboot.request.protocol;\n        var host = this.fastboot.request.host;\n        if (protocolRelativeRegex.test(url)) {\n          return `${protocol}${url}`;\n        } else if (!httpRegex.test(url)) {\n          try {\n            return `${protocol}//${host}${url}`;\n          } catch (fbError) {\n            throw new Error('You are using Ember Data with no host defined in your adapter. This will attempt to use the host of the FastBoot request, which is not configured for the current host of this request. Please set the hostWhitelist property for in your environment.js. FastBoot Error: ' + fbError.message);\n          }\n        }\n      }\n      return url;\n    }\n\n    /**\n      @method parseErrorResponse\n      @private\n      @param {String} responseText\n      @return {Object}\n    */\n    parseErrorResponse(responseText) {\n      var json = responseText;\n      try {\n        json = JSON.parse(responseText);\n      } catch (e) {\n        // ignored\n      }\n      return json;\n    }\n\n    /**\n      @method normalizeErrorResponse\n      @private\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @return {Array} errors payload\n    */\n    normalizeErrorResponse(status, _headers, payload) {\n      if (payload && typeof payload === 'object' && payload.errors instanceof Array) {\n        return payload.errors;\n      } else {\n        return [{\n          status: `${status}`,\n          title: 'The backend responded with an error',\n          detail: `${payload}`\n        }];\n      }\n    }\n\n    /**\n      Generates a detailed (\"friendly\") error message, with plenty\n      of information for debugging (good luck!)\n       @method generatedDetailedMessage\n      @private\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @param  {Object} requestData\n      @return {String} detailed error message\n    */\n    generatedDetailedMessage(status, headers, payload, requestData) {\n      var shortenedPayload;\n      var payloadContentType = headers['content-type'] || 'Empty Content-Type';\n      if (payloadContentType === 'text/html' && typeof payload === 'string' && payload.length > 250) {\n        shortenedPayload = '[Omitted Lengthy HTML]';\n      } else {\n        shortenedPayload = payload;\n      }\n      var requestDescription = requestData.method + ' ' + requestData.url;\n      var payloadDescription = 'Payload (' + payloadContentType + ')';\n      return ['Ember Data Request ' + requestDescription + ' returned a ' + status, payloadDescription, shortenedPayload].join('\\n');\n    }\n\n    /**\n      Used by `findAll` and `findRecord` to build the query's `data` hash\n      supplied to the ajax method. \n     \n      @method buildQuery\n      @since 2.5.0\n      @public\n      @param  {Snapshot} snapshot\n      @return {Object}\n    */\n    buildQuery(snapshot) {\n      var query = {};\n      if (snapshot) {\n        var {\n          include\n        } = snapshot;\n        if (include) {\n          query.include = include;\n        }\n      }\n      return query;\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"fastboot\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"fastboot\"), _class.prototype)), _class));\n  function ajaxSuccess(adapter, payload, requestData, responseData) {\n    var response;\n    try {\n      response = adapter.handleResponse(responseData.status, responseData.headers, payload, requestData);\n    } catch (error) {\n      return _rsvp.Promise.reject(error);\n    }\n    if (response && response.isAdapterError) {\n      return _rsvp.Promise.reject(response);\n    } else {\n      return response;\n    }\n  }\n  function ajaxError(adapter, payload, requestData, responseData) {\n    var error;\n    if (responseData.errorThrown instanceof Error && payload !== '') {\n      error = responseData.errorThrown;\n    } else if (responseData.textStatus === 'timeout') {\n      error = new _error.TimeoutError();\n    } else if (responseData.textStatus === 'abort' || responseData.status === 0) {\n      error = handleAbort(requestData, responseData);\n    } else {\n      try {\n        error = adapter.handleResponse(responseData.status, responseData.headers, payload || responseData.errorThrown, requestData);\n      } catch (e) {\n        error = e;\n      }\n    }\n    return error;\n  }\n\n  // Adapter abort error to include any relevent info, e.g. request/response:\n  function handleAbort(requestData, responseData) {\n    var {\n      method,\n      url,\n      errorThrown\n    } = requestData;\n    var {\n      status\n    } = responseData;\n    var msg = `Request failed: ${method} ${url} ${errorThrown || ''}`;\n    var errors = [{\n      title: 'Adapter Error',\n      detail: msg.trim(),\n      status\n    }];\n    return new _error.AbortError(errors);\n  }\n\n  //From http://stackoverflow.com/questions/280634/endswith-in-javascript\n  function endsWith(string, suffix) {\n    if (typeof String.prototype.endsWith !== 'function') {\n      return string.indexOf(suffix, string.length - suffix.length) !== -1;\n    } else {\n      return string.endsWith(suffix);\n    }\n  }\n  function fetchSuccessHandler(adapter, payload, response, requestData) {\n    var responseData = fetchResponseData(response);\n    return ajaxSuccess(adapter, payload, requestData, responseData);\n  }\n  function fetchErrorHandler(adapter, payload, response, errorThrown, requestData) {\n    var responseData = fetchResponseData(response);\n    if (responseData.status === 200 && payload instanceof Error) {\n      responseData.errorThrown = payload;\n      payload = responseData.errorThrown.payload;\n    } else {\n      responseData.errorThrown = errorThrown;\n      if (typeof payload === 'string') {\n        payload = adapter.parseErrorResponse(payload);\n      }\n    }\n    return ajaxError(adapter, payload, requestData, responseData);\n  }\n  function ajaxSuccessHandler(adapter, payload, jqXHR, requestData) {\n    var responseData = ajaxResponseData(jqXHR);\n    return ajaxSuccess(adapter, payload, requestData, responseData);\n  }\n  function ajaxErrorHandler(adapter, jqXHR, errorThrown, requestData) {\n    var responseData = ajaxResponseData(jqXHR);\n    responseData.errorThrown = errorThrown;\n    var payload = adapter.parseErrorResponse(jqXHR.responseText);\n    if (true /* DEBUG */) {\n      var message = `The server returned an empty string for ${requestData.method} ${requestData.url}, which cannot be parsed into a valid JSON. Return either null or {}.`;\n      var validJSONString = !(responseData.textStatus === 'parsererror' && payload === '');\n      (true && (0, _debug.warn)(message, validJSONString, {\n        id: 'ds.adapter.returned-empty-string-as-JSON'\n      }));\n    }\n    return ajaxError(adapter, payload, requestData, responseData);\n  }\n  function fetchResponseData(response) {\n    return {\n      status: response.status,\n      textStatus: response.statusText,\n      headers: headersToObject(response.headers)\n    };\n  }\n  function ajaxResponseData(jqXHR) {\n    return {\n      status: jqXHR.status,\n      textStatus: jqXHR.statusText,\n      headers: (0, _private2.parseResponseHeaders)(jqXHR.getAllResponseHeaders())\n    };\n  }\n  function headersToObject(headers) {\n    var headersObject = {};\n    if (headers) {\n      headers.forEach((value, key) => headersObject[key] = value);\n    }\n    return headersObject;\n  }\n\n  /**\n   * Helper function that translates the options passed to `jQuery.ajax` into a format that `fetch` expects.\n   *\n   * @method fetchOptions\n   * @for @ember-data/adapter/rest\n   * @param {Object} _options\n   * @param {Adapter} adapter\n   * @private\n   * @returns {Object}\n   */\n  function fetchOptions(options, adapter) {\n    options.credentials = options.credentials || 'same-origin';\n    if (options.data) {\n      // GET and HEAD requests can't have a `body`\n      if (options.method === 'GET' || options.method === 'HEAD') {\n        // If no options are passed, Ember Data sets `data` to an empty object, which we test for.\n        if (Object.keys(options.data).length && options.url) {\n          // Test if there are already query params in the url (mimics jQuey.ajax).\n          var queryParamDelimiter = options.url.indexOf('?') > -1 ? '&' : '?';\n          options.url += `${queryParamDelimiter}${(0, _private2.serializeQueryParams)(options.data)}`;\n        }\n      } else {\n        // NOTE: a request's body cannot be an object, so we stringify it if it is.\n        // JSON.stringify removes keys with values of `undefined` (mimics jQuery.ajax).\n        // If the data is not a POJO (it's a String, FormData, etc), we just set it.\n        // If the data is a string, we assume it's a stringified object.\n\n        /* We check for Objects this way because we want the logic inside the consequent to run\n         * if `options.data` is a POJO, not if it is a data structure whose `typeof` returns \"object\"\n         * when it's not (Array, FormData, etc). The reason we don't use `options.data.constructor`\n         * to check is in case `data` is an object with no prototype (e.g. created with null).\n         */\n        if (Object.prototype.toString.call(options.data) === '[object Object]') {\n          options.body = JSON.stringify(options.data);\n        } else {\n          options.body = options.data;\n        }\n      }\n    }\n    return options;\n  }\n  function ajaxOptions(options, adapter) {\n    options.dataType = 'json';\n    options.context = adapter;\n    if (options.data && options.type !== 'GET') {\n      options.data = JSON.stringify(options.data);\n    }\n    options.beforeSend = function (xhr) {\n      if (options.headers) {\n        Object.keys(options.headers).forEach(key => {\n          var headerValue = options.headers && options.headers[key];\n          var isString = value => typeof value === 'string';\n          if (isString(headerValue)) {\n            xhr.setRequestHeader(key, headerValue);\n          }\n        });\n      }\n    };\n    return options;\n  }\n  if (true /* DEPRECATE_NAJAX */) {\n    /**\n      @method _najaxRequest\n      @private\n      @param {Object} options jQuery ajax options to be used for the najax request\n    */\n    RESTAdapter.prototype._najaxRequest = function (options) {\n      if (typeof najax !== 'undefined') {\n        najax(options);\n      } else {\n        throw new Error('najax does not seem to be defined in your app. Did you override it via `addOrOverrideSandboxGlobals` in the fastboot server?');\n      }\n    };\n    Object.defineProperty(RESTAdapter.prototype, 'useFetch', {\n      get() {\n        if (typeof this[UseFetch] === 'boolean') {\n          return this[UseFetch];\n        }\n\n        // Mixin validates all properties. Might not have it in the container yet\n        var ENV = (0, _application.getOwner)(this) ? (0, _application.getOwner)(this).resolveRegistration('config:environment') : {};\n        // TODO: https://github.com/emberjs/data/issues/6093\n        var jQueryIntegrationDisabled = ENV && ENV.EmberENV && ENV.EmberENV._JQUERY_INTEGRATION === false;\n        var shouldUseFetch;\n        if (jQueryIntegrationDisabled) {\n          shouldUseFetch = true;\n        } else if (typeof najax !== 'undefined') {\n          if ((0, _require.has)('fetch')) {\n            (true && !(false) && (0, _debug.deprecate)('You have ember-fetch and jquery installed. To use ember-fetch instead of najax, set `useFetch = true` in your adapter.  In 4.0, ember-data will default to ember-fetch instead of najax when both ember-fetch and jquery are installed in FastBoot.', false, {\n              id: 'ember-data:najax-fallback',\n              until: '4.0',\n              for: '@ember-data/adapter',\n              since: {\n                available: '3.22',\n                enabled: '3.22'\n              }\n            }));\n          } else {\n            (true && !(false) && (0, _debug.deprecate)('In 4.0, ember-data will default to ember-fetch instead of najax in FastBoot.  It is recommended that you install ember-fetch or similar fetch polyfill in FastBoot and set `useFetch = true` in your adapter.', false, {\n              id: 'ember-data:najax-fallback',\n              until: '4.0',\n              for: '@ember-data/adapter',\n              since: {\n                available: '3.22',\n                enabled: '3.22'\n              }\n            }));\n          }\n          shouldUseFetch = false;\n        } else if (hasJQuery) {\n          shouldUseFetch = false;\n        } else {\n          shouldUseFetch = true;\n        }\n        (0, _private.addSymbol)(this, UseFetch, shouldUseFetch);\n        return shouldUseFetch;\n      },\n      set(value) {\n        (0, _private.addSymbol)(this, UseFetch, value);\n        return value;\n      }\n    });\n  } else {\n    Object.defineProperty(RESTAdapter.prototype, 'useFetch', {\n      value() {\n        return true;\n      },\n      configurable: true\n    });\n  }\n  var _default = _exports.default = RESTAdapter;\n});","define(\"@ember-data/canary-features/default-features\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * ## Canary Features\n   *\n   * EmberData allows users to test features that are implemented but not yet\n   * available even in canary.\n   *\n   * Typically these features represent work that might introduce a new concept,\n   * new API, change an API, or risk an unintended change in behavior to consuming\n   * applications.\n   *\n   * Such features have their implementations guarded by a \"feature flag\", and the\n   * flag is only activated once the core-data team is prepared to ship the work\n   * in a canary release.\n   *\n   * ### Installing Canary\n   *\n   * To test a feature you MUST be using a canary build. Canary builds are published\n   * to `npm` and can be installed using a precise tag (such as `ember-data@3.16.0-alpha.1`)\n   * or by installing the latest dist-tag published to the `canary` channel.\n   *\n   * *Using `npm` to install the latest canary*\n   *\n   * ```cli\n   * npm install --save-dev ember-data@canary\n   * ```\n   *\n   * *Using `yarn` to install the latest canary*\n   *\n   * ```cli\n   * yarn add ember-data@canary\n   * ```\n   *\n   * ### Activating a Canary Feature\n   *\n   * Once you have installed canary, feature-flags can be activated at build-time by an environment\n   * variable or at runtime using `window.EmberDataENV`.\n   *\n   * The \"off\" branch of feature-flagged code is always stripped from production builds, so you\n   * MUST use the build-time environment variable to activate a flag if testing production.\n   *\n   * The list of available feature-flags is located [here](https://github.com/emberjs/data/tree/master/packages/canary-features/addon/default-features.ts \"List of EmberData FeatureFlags\")\n   *\n   * #### Runtime Configuration\n   *\n   * To configure feature-flags at runtime you will want to configure `window.EmberDataENV = {}` appropriately.\n   * You should add this global property in your app prior to your application booting. At the top of\n   * your `app.js` file is a convenient location, as is within ` index.html` as a script running prior\n   * to loading any other scripts.\n   *\n   * *Example activating a single feature flags*\n   *\n   * ```js\n   * window.EmberDataENV = {\n   *   FEATURES: {\n   *     RECORD_DATA_ERRORS: true,\n   *   }\n   * }\n   * ```\n   *\n   * *Example activating multiple feature flags*\n   *\n   * ```js\n   * window.EmberDataENV = {\n   *   FEATURES: {\n   *     RECORD_DATA_ERRORS: true,\n   *     RECORD_DATA_STATE: true,\n   *   }\n   * }\n   * ```\n   *\n   * *Example activating all feature flags*\n   *\n   * ```js\n   * window.EmberDataENV = {\n   *   ENABLE_OPTIONAL_FEATURES: true\n   * }\n   * ```\n   *\n   * #### Build Time Configuration\n   *\n   * *Example activating a single feature flags*\n   *\n   * ```js\n   * EMBER_DATA_FEATURE_OVERRIDE=REQUEST_SERVICE ember build\n   * ```\n   *\n   * *Example activating multiple feature flags*\n   *\n   * ```js\n   * EMBER_DATA_FEATURE_OVERRIDE=REQUEST_SERVICE,CUSTOM_MODEL_CLASS ember build\n   * ```\n   *\n   * *Example activating all feature flags*\n   *\n   * ```js\n   * EMBER_DATA_FEATURE_OVERRIDE=ENABLE_ALL_OPTIONAL ember build\n   * ```\n   *\n   * ### Preparing an Addon to use a Canary Feature\n   *\n   * For most addons and most features simple version detection should be\n   * enough. Using the provided version compatibility helpers from\n   * [ember-compatibility-helpers](https://github.com/pzuraq/ember-compatibility-helpers)\n   * the following can be done:\n   *\n   * ```js\n   * if (gte('@ember-data/store', '3.12.0')) {\n   *\n   * } else {\n   *\n   * }\n   * ```\n   *\n   * For addons needing more advanced detection [babel-plugin-debug-macros](https://github.com/ember-cli/babel-plugin-debug-macros)\n   * can be leveraged to provide code-stripping based on feature presence. For example in your addon's `index.js`:\n   *\n   * ```js\n   * function debugMacros(features) {\n   *   let plugins = [\n   *     [\n   *       require.resolve('babel-plugin-debug-macros'),\n   *       {\n   *         flags: [\n   *           {\n   *             source: '<addon-name>/feature-flags',\n   *             flags: features,\n   *           },\n   *         ],\n   *       },\n   *       '<addon-name>/canary-features-stripping',\n   *     ],\n   *   ];\n   *\n   *   return plugins;\n   * }\n   *\n   * module.exports = {\n   *   name: '<addon-name>',\n   *\n   *   init() {\n   *     this._super.init.apply(this, arguments);\n   *\n   *     let features;\n   *     try {\n   *       features = this.project.require('@ember-data/private-build-infra/src/features')();\n   *     } catch (e) {\n   *       features = { CUSTOM_MODEL_CLASS: false };\n   *     }\n   *\n   *     this.options = this.options || {};\n   *     this.options.babel = this.options.babel || {};\n   *     // this ensures that the same `@ember-data/canary-features` processing that the various\n   *     // ember-data addons do is done for this addon\n   *     this.options.babel.plugins = [...debugMacros(features)];\n   *   }\n   * }\n   * ```\n   *\n     @module @ember-data/canary-features\n     @main @ember-data/canary-features\n   */\n  /*\n    This list of features is used both at build time (by `@ember-data/private-build-infra`)\n    and at runtime (by `@ember-data/canary-features`).\n  \n    The valid values are:\n  \n    - true - The feature is enabled at all times, and cannot be disabled.\n    - false - The feature is disabled at all times, and cannot be enabled.\n    - null - The feature is disabled by default, but can be enabled at runtime via `EmberDataENV`.\n  */\n  var _default = _exports.default = {\n    SAMPLE_FEATURE_FLAG: null,\n    RECORD_DATA_ERRORS: true,\n    RECORD_DATA_STATE: true,\n    IDENTIFIERS: true,\n    REQUEST_SERVICE: true,\n    CUSTOM_MODEL_CLASS: true,\n    FULL_LINKS_ON_RELATIONSHIPS: true,\n    RECORD_ARRAY_MANAGER_IDENTIFIERS: true,\n    REMOVE_RECORD_ARRAY_MANAGER_LEGACY_COMPAT: true\n  };\n});","define(\"@ember-data/canary-features/index\", [\"exports\", \"@ember/polyfills\", \"@ember-data/canary-features/default-features\"], function (_exports, _polyfills, _defaultFeatures) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.SAMPLE_FEATURE_FLAG = _exports.REQUEST_SERVICE = _exports.REMOVE_RECORD_ARRAY_MANAGER_LEGACY_COMPAT = _exports.RECORD_DATA_STATE = _exports.RECORD_DATA_ERRORS = _exports.RECORD_ARRAY_MANAGER_IDENTIFIERS = _exports.IDENTIFIERS = _exports.FULL_LINKS_ON_RELATIONSHIPS = _exports.FEATURES = _exports.CUSTOM_MODEL_CLASS = void 0;\n  /* globals EmberDataENV */\n\n  const ENV = typeof EmberDataENV !== 'undefined' && EmberDataENV !== null ? EmberDataENV : {};\n  function featureValue(value) {\n    if (ENV.ENABLE_OPTIONAL_FEATURES && value === null) {\n      return true;\n    }\n    return value;\n  }\n  const FEATURES = _exports.FEATURES = (0, _polyfills.assign)({}, _defaultFeatures.default, ENV.FEATURES);\n  const SAMPLE_FEATURE_FLAG = _exports.SAMPLE_FEATURE_FLAG = featureValue(FEATURES.SAMPLE_FEATURE_FLAG);\n  const RECORD_DATA_ERRORS = _exports.RECORD_DATA_ERRORS = featureValue(FEATURES.RECORD_DATA_ERRORS);\n  const RECORD_DATA_STATE = _exports.RECORD_DATA_STATE = featureValue(FEATURES.RECORD_DATA_STATE);\n  const REQUEST_SERVICE = _exports.REQUEST_SERVICE = featureValue(FEATURES.REQUEST_SERVICE);\n  const IDENTIFIERS = _exports.IDENTIFIERS = featureValue(FEATURES.IDENTIFIERS);\n  const CUSTOM_MODEL_CLASS = _exports.CUSTOM_MODEL_CLASS = featureValue(FEATURES.CUSTOM_MODEL_CLASS);\n  const FULL_LINKS_ON_RELATIONSHIPS = _exports.FULL_LINKS_ON_RELATIONSHIPS = featureValue(FEATURES.FULL_LINKS_ON_RELATIONSHIPS);\n  const RECORD_ARRAY_MANAGER_IDENTIFIERS = _exports.RECORD_ARRAY_MANAGER_IDENTIFIERS = featureValue(FEATURES.RECORD_ARRAY_MANAGER_IDENTIFIERS);\n  const REMOVE_RECORD_ARRAY_MANAGER_LEGACY_COMPAT = _exports.REMOVE_RECORD_ARRAY_MANAGER_LEGACY_COMPAT = featureValue(FEATURES.REMOVE_RECORD_ARRAY_MANAGER_LEGACY_COMPAT);\n});","define(\"@ember-data/debug/index\", [\"exports\", \"@ember/array\", \"@ember/debug\", \"@ember/debug/data-adapter\", \"@ember/object\", \"@ember/object/observers\", \"@ember/service\", \"@ember/string\", \"@ember/runloop\", \"@ember-data/debug/setup\"], function (_exports, _array, _debug, _dataAdapter, _object, _observers, _service, _string, _runloop, _setup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    # Overview\n  \n    This package provides the `DataAdapter` which the [Ember Inspector](https://github.com/emberjs/ember-inspector)\n    uses to subscribe and retrieve information for the `data` tab in the inspector.\n  \n    This package adds roughly .6 KB when minified and compressed to your application in production; however,\n    you can opt out of shipping this addon in production via options in `ember-cli-build.js`\n  \n    ```js\n    let app = new EmberApp(defaults, {\n      emberData: {\n        includeDataAdapterInProduction: false\n      }\n    });\n    ```\n  \n    When using `ember-data` as a dependency of your app, the default is to ship the inspector support to production.\n  \n    When not using `ember-data` as a dependency but instead using EmberData via declaring specific `@ember-data/<package>`\n    dependencies the default is to not ship to production.\n  \n    @module @ember-data/debug\n    @main @ember-data/debug\n  */\n  /**\n    Implements `@ember/debug/data-adapter` with for EmberData\n    integration with the ember-inspector.\n  \n    @class InspectorDataAdapter\n    @extends DataAdapter\n    @private\n  */\n  var _default = _exports.default = _dataAdapter.default.extend({\n    store: (0, _service.inject)('store'),\n    /**\n      Specifies how records can be filtered based on the state of the record\n      Records returned will need to have a `filterValues`\n      property with a key for every name in the returned array\n       @method getFilters\n      @private\n      @return {Array} List of objects defining filters\n       The object should have a `name` and `desc` property\n    */\n    getFilters() {\n      return [{\n        name: 'isNew',\n        desc: 'New'\n      }, {\n        name: 'isModified',\n        desc: 'Modified'\n      }, {\n        name: 'isClean',\n        desc: 'Clean'\n      }];\n    },\n    _nameToClass(type) {\n      return (0, _object.get)(this, 'store').modelFor(type);\n    },\n    /**\n      Fetch the model types and observe them for changes.\n      Maintains the list of model types without needing the Model package for detection.\n       @method watchModelTypes\n      @private\n      @param {Function} typesAdded Callback to call to add types.\n      Takes an array of objects containing wrapped types (returned from `wrapModelType`).\n      @param {Function} typesUpdated Callback to call when a type has changed.\n      Takes an array of objects containing wrapped types.\n      @return {Function} Method to call to remove all observers\n    */\n    watchModelTypes(typesAdded, typesUpdated) {\n      var store = (0, _object.get)(this, 'store');\n      var __createRecordData = store._createRecordData;\n      var _releaseMethods = [];\n      var discoveredTypes = (0, _setup.typesMapFor)(store);\n\n      // Add any models that were added during initialization of the app, before the inspector was opened\n      discoveredTypes.forEach((_, type) => {\n        this.watchTypeIfUnseen(store, discoveredTypes, type, typesAdded, typesUpdated, _releaseMethods);\n      });\n\n      // Overwrite _createRecordData so newly added models will get added to the list\n      store._createRecordData = identifier => {\n        // defer to ensure first-create does not result in an infinite loop, see https://github.com/emberjs/data/issues/8006\n        (0, _runloop.next)(() => this.watchTypeIfUnseen(store, discoveredTypes, identifier.type, typesAdded, typesUpdated, _releaseMethods));\n        return __createRecordData.call(store, identifier);\n      };\n      var release = () => {\n        _releaseMethods.forEach(fn => fn());\n        store._createRecordData = __createRecordData;\n        // reset the list so the models can be added if the inspector is re-opened\n        // the entries are set to false instead of removed, since the models still exist in the app\n        // we just need the inspector to become aware of them\n        discoveredTypes.forEach((value, key) => {\n          discoveredTypes.set(key, false);\n        });\n        this.releaseMethods.removeObject(release);\n      };\n      this.releaseMethods.pushObject(release);\n      return release;\n    },\n    /**\n     * Loop over the discovered types and use the callbacks from watchModelTypes to notify\n     * the consumer of this adapter about the mdoels.\n     *\n     * @method watchTypeIfUnseen\n     * @param {store} store\n     * @param {Map} discoveredTypes\n     * @param {String} type\n     * @param {Function} typesAdded\n     * @param {Function} typesUpdated\n     * @param {Array} releaseMethods\n     * @private\n     */\n    watchTypeIfUnseen(store, discoveredTypes, type, typesAdded, typesUpdated, releaseMethods) {\n      if (discoveredTypes.get(type) !== true) {\n        var klass = store.modelFor(type);\n        var wrapped = this.wrapModelType(klass, type);\n        releaseMethods.push(this.observeModelType(type, typesUpdated));\n        typesAdded([wrapped]);\n        discoveredTypes.set(type, true);\n      }\n    },\n    /**\n      Creates a human readable string used for column headers\n       @method columnNameToDesc\n      @private\n      @param {String} name The attribute name\n      @return {String} Human readable string based on the attribute name\n    */\n    columnNameToDesc(name) {\n      return (0, _string.capitalize)((0, _string.underscore)(name).replace(/_/g, ' ').trim());\n    },\n    /**\n      Get the columns for a given model type\n       @method columnsForType\n      @private\n      @param {Model} typeClass\n      @return {Array} An array of columns of the following format:\n       name: {String} The name of the column\n       desc: {String} Humanized description (what would show in a table column name)\n    */\n    columnsForType(typeClass) {\n      var columns = [{\n        name: 'id',\n        desc: 'Id'\n      }];\n      var count = 0;\n      var self = this;\n      (0, _object.get)(typeClass, 'attributes').forEach((meta, name) => {\n        if (count++ > self.attributeLimit) {\n          return false;\n        }\n        var desc = this.columnNameToDesc(name);\n        columns.push({\n          name: name,\n          desc: desc\n        });\n      });\n      return columns;\n    },\n    /**\n      Fetches all loaded records for a given type\n       @method getRecords\n      @private\n      @param {Model} modelClass of the record\n      @param {String} modelName of the record\n      @return {Array} An array of Model records\n       This array will be observed for changes,\n       so it should update when new records are added/removed\n    */\n    getRecords(modelClass, modelName) {\n      if (arguments.length < 2) {\n        // Legacy Ember.js < 1.13 support\n        var containerKey = modelClass._debugContainerKey;\n        if (containerKey) {\n          var match = containerKey.match(/model:(.*)/);\n          if (match !== null) {\n            modelName = match[1];\n          }\n        }\n      }\n      (true && !(!!modelName) && (0, _debug.assert)('Cannot find model name. Please upgrade to Ember.js >= 1.13 for Ember Inspector support', !!modelName));\n      return this.get('store').peekAll(modelName);\n    },\n    /**\n      Gets the values for each column\n      This is the attribute values for a given record\n       @method getRecordColumnValues\n      @private\n      @param {Model} record to get values from\n      @return {Object} Keys should match column names defined by the model type\n    */\n    getRecordColumnValues(record) {\n      var count = 0;\n      var columnValues = {\n        id: (0, _object.get)(record, 'id')\n      };\n      record.eachAttribute(key => {\n        if (count++ > this.attributeLimit) {\n          return false;\n        }\n        columnValues[key] = (0, _object.get)(record, key);\n      });\n      return columnValues;\n    },\n    /**\n      Returns keywords to match when searching records\n       @method getRecordKeywords\n      @private\n      @param {Model} record\n      @return {Array} Relevant keywords for search based on the record's attribute values\n    */\n    getRecordKeywords(record) {\n      var keywords = [];\n      var keys = (0, _array.A)(['id']);\n      record.eachAttribute(key => keys.push(key));\n      keys.forEach(key => keywords.push((0, _object.get)(record, key)));\n      return keywords;\n    },\n    /**\n      Returns the values of filters defined by `getFilters`\n      These reflect the state of the record\n       @method getRecordFilterValues\n      @private\n      @param {Model} record\n      @return {Object} The record state filter values\n    */\n    getRecordFilterValues(record) {\n      return {\n        isNew: record.get('isNew'),\n        isModified: record.get('hasDirtyAttributes') && !record.get('isNew'),\n        isClean: !record.get('hasDirtyAttributes')\n      };\n    },\n    /**\n      Returns a color that represents the record's state\n      Possible colors: black, blue, green\n       @method getRecordColor\n      @private\n      @param {Model} record\n      @return {String} The record color\n    */\n    getRecordColor(record) {\n      var color = 'black';\n      if (record.get('isNew')) {\n        color = 'green';\n      } else if (record.get('hasDirtyAttributes')) {\n        color = 'blue';\n      }\n      return color;\n    },\n    /**\n      Observes all relevant properties and re-sends the wrapped record\n      when a change occurs\n       @method observeRecord\n      @private\n      @param {Model} record\n      @param {Function} recordUpdated Callback used to notify changes\n      @return {Function} The function to call to remove all observers\n    */\n    observeRecord(record, recordUpdated) {\n      var releaseMethods = (0, _array.A)();\n      var keysToObserve = (0, _array.A)(['id', 'isNew', 'hasDirtyAttributes']);\n      record.eachAttribute(key => keysToObserve.push(key));\n      var adapter = this;\n      keysToObserve.forEach(function (key) {\n        var handler = function () {\n          recordUpdated(adapter.wrapRecord(record));\n        };\n        (0, _observers.addObserver)(record, key, handler);\n        releaseMethods.push(function () {\n          (0, _observers.removeObserver)(record, key, handler);\n        });\n      });\n      var release = function () {\n        releaseMethods.forEach(fn => fn());\n      };\n      return release;\n    }\n  });\n});","define(\"@ember-data/debug/setup\", [\"exports\", \"@ember-data/store\"], function (_exports, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.typesMapFor = typesMapFor;\n  var StoreTypesMap = new WeakMap();\n  function typesMapFor(store) {\n    var typesMap = StoreTypesMap.get(store);\n    if (typesMap === undefined) {\n      typesMap = new Map();\n      StoreTypesMap.set(store, typesMap);\n    }\n    return typesMap;\n  }\n\n  // override _createRecordData to add the known models to the typesMap\n  var __createRecordData = _store.default.prototype._createRecordData;\n  _store.default.prototype._createRecordData = function (identifier) {\n    var typesMap = typesMapFor(this);\n    if (!typesMap.has(identifier.type)) {\n      typesMap.set(identifier.type, false);\n    }\n    return __createRecordData.call(this, identifier);\n  };\n  var _default = _exports.default = {\n    name: '@ember-data/data-adapter',\n    initialize() {}\n  };\n});","define('@ember-data/model/-private', ['exports', '@ember/debug', '@ember/object', '@ember-data/store/-private', '@ember/error', '@ember/object/compat', '@ember/runloop', '@ember/utils', '@glimmer/tracking', 'ember', '@ember/array', '@ember/array/proxy', '@ember/object/computed', 'ember-cached-decorator-polyfill', '@ember/object/internals', 'ember-inflector', '@ember/array/mutable', 'rsvp', '@ember/application'], (function (exports, debug, EmberObject, Private, EmberError, compat, runloop, utils, tracking, Ember, EmberArray, ArrayProxy, computed, emberCachedDecoratorPolyfill, internals, emberInflector, MutableArray, rsvp, application) { 'use strict';\n\n  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\n  var EmberObject__default = /*#__PURE__*/_interopDefaultLegacy(EmberObject);\n  var EmberError__default = /*#__PURE__*/_interopDefaultLegacy(EmberError);\n  var Ember__default = /*#__PURE__*/_interopDefaultLegacy(Ember);\n  var EmberArray__default = /*#__PURE__*/_interopDefaultLegacy(EmberArray);\n  var ArrayProxy__default = /*#__PURE__*/_interopDefaultLegacy(ArrayProxy);\n  var MutableArray__default = /*#__PURE__*/_interopDefaultLegacy(MutableArray);\n\n  function isElementDescriptor(args) {\n    var [maybeTarget, maybeKey, maybeDesc] = args;\n    return (\n      // Ensure we have the right number of args\n      args.length === 3 && (\n      // Make sure the target is a class or object (prototype)\n      typeof maybeTarget === 'function' || typeof maybeTarget === 'object' && maybeTarget !== null) &&\n      // Make sure the key is a string\n      typeof maybeKey === 'string' && (\n      // Make sure the descriptor is the right shape\n      typeof maybeDesc === 'object' && maybeDesc !== null && 'enumerable' in maybeDesc && 'configurable' in maybeDesc ||\n      // TS compatibility\n      maybeDesc === undefined)\n    );\n  }\n  function computedMacroWithOptionalParams(fn) {\n    {\n      return (...maybeDesc) => isElementDescriptor(maybeDesc) ? fn()(...maybeDesc) : fn(...maybeDesc);\n    }\n  }\n\n  /**\n    @module @ember-data/model\n  */\n\n  function getDefaultValue(record, options, key) {\n    if (typeof options.defaultValue === 'function') {\n      return options.defaultValue.apply(null, arguments);\n    } else {\n      var defaultValue = options.defaultValue;\n      (!(typeof defaultValue !== 'object' || defaultValue === null) && debug.assert(`Non primitive defaultValues are not supported because they are shared between all instances. If you would like to use a complex object as a default value please provide a function that returns the complex object.`, typeof defaultValue !== 'object' || defaultValue === null));\n      return defaultValue;\n    }\n  }\n\n  /**\n    `attr` defines an attribute on a [Model](/ember-data/release/classes/Model).\n    By default, attributes are passed through as-is, however you can specify an\n    optional type to have the value automatically transformed.\n    Ember Data ships with four basic transform types: `string`, `number`,\n    `boolean` and `date`. You can define your own transforms by subclassing\n    [Transform](/ember-data/release/classes/Transform).\n\n    Note that you cannot use `attr` to define an attribute of `id`.\n\n    `attr` takes an optional hash as a second parameter, currently\n    supported options are:\n\n    - `defaultValue`: Pass a string or a function to be called to set the attribute\n    to a default value if and only if the key is absent from the payload response.\n\n    Example\n\n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default class UserModel extends Model {\n      @attr('string') username;\n      @attr('string') email;\n      @attr('boolean', { defaultValue: false }) verified;\n    }\n    ```\n\n    Default value can also be a function. This is useful it you want to return\n    a new object for each attribute.\n\n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default class UserModel extends Model {\n      @attr('string') username;\n      @attr('string') email;\n\n      @attr({\n        defaultValue() {\n          return {};\n        }\n      })\n      settings;\n    }\n    ```\n\n    The `options` hash is passed as second argument to a transforms'\n    `serialize` and `deserialize` method. This allows to configure a\n    transformation and adapt the corresponding value, based on the config:\n\n    ```app/models/post.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default class PostModel extends Model {\n      @attr('text', {\n        uppercase: true\n      })\n      text;\n    }\n    ```\n\n    ```app/transforms/text.js\n    import Transform from '@ember-data/serializer/transform';\n\n    export default Transform.extend({\n      serialize(value, options) {\n        if (options.uppercase) {\n          return value.toUpperCase();\n        }\n\n        return value;\n      },\n\n      deserialize(value) {\n        return value;\n      }\n    })\n    ```\n\n    @method attr\n    @public\n    @static\n    @for @ember-data/model\n    @param {String|Object} type the attribute type\n    @param {Object} options a hash of options\n    @return {Attribute}\n  */\n  function attr(type, options) {\n    if (typeof type === 'object') {\n      options = type;\n      type = undefined;\n    } else {\n      options = options || {};\n    }\n    var meta = {\n      type: type,\n      isAttribute: true,\n      kind: 'attribute',\n      options: options\n    };\n    return EmberObject.computed({\n      get(key) {\n        {\n          if (['_internalModel', 'currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your attr on ${this.constructor.toString()}`);\n          }\n        }\n        var recordData = Private.recordDataFor(this);\n        if (recordData.hasAttr(key)) {\n          return recordData.getAttr(key);\n        } else {\n          return getDefaultValue(this, options, key);\n        }\n      },\n      set(key, value) {\n        {\n          if (['_internalModel', 'currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your attr on ${this.constructor.toString()}`);\n          }\n        }\n        {\n          if (!this.isValid) {\n            var oldValue = this._internalModel._recordData.getAttr(key);\n            if (oldValue !== value) {\n              var {\n                errors\n              } = this;\n              if (errors.get(key)) {\n                errors.remove(key);\n                this.___recordState.cleanErrorRequests();\n              }\n            }\n          }\n        }\n        return this._internalModel.setDirtyAttribute(key, value);\n      }\n    }).meta(meta);\n  }\n  var attr$1 = computedMacroWithOptionalParams(attr);\n\n  /**\n    @module @ember-data/model\n  */\n\n  /**\n    `belongsTo` is used to define One-To-One and One-To-Many\n    relationships on a [Model](/ember-data/release/classes/Model).\n\n\n    `belongsTo` takes an optional hash as a second parameter, currently\n    supported options are:\n\n    - `async`: A boolean value used to explicitly declare this to be an async relationship. The default is true.\n    - `inverse`: A string used to identify the inverse property on a\n      related model in a One-To-Many relationship. See [Explicit Inverses](#explicit-inverses)\n    - `polymorphic` A boolean value to mark the relationship as polymorphic\n\n    #### One-To-One\n    To declare a one-to-one relationship between two models, use\n    `belongsTo`:\n\n    ```app/models/user.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default class UserModel extends Model {\n      @belongsTo('profile') profile;\n    }\n    ```\n\n    ```app/models/profile.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default class ProfileModel extends Model {\n      @belongsTo('user') user;\n    }\n    ```\n\n    #### One-To-Many\n    To declare a one-to-many relationship between two models, use\n    `belongsTo` in combination with `hasMany`, like this:\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default class PostModel extends Model {\n      @hasMany('comment') comments;\n    }\n    ```\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default class CommentModel extends Model {\n      @belongsTo('post') post;\n    }\n    ```\n\n    You can avoid passing a string as the first parameter. In that case Ember Data\n    will infer the type from the key name.\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default class CommentModel extends Model {\n      @belongsTo post;\n    }\n    ```\n\n    will lookup for a Post type.\n\n    #### Sync relationships\n\n    Ember Data resolves sync relationships with the related resources\n    available in its local store, hence it is expected these resources\n    to be loaded before or along-side the primary resource.\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default class CommentModel extends Model {\n      @belongsTo('post', {\n        async: false\n      })\n      post;\n    }\n    ```\n\n    In contrast to async relationship, accessing a sync relationship\n    will always return the record (Model instance) for the existing\n    local resource, or null. But it will error on access when\n    a related resource is known to exist and it has not been loaded.\n\n    ```\n    let post = comment.get('post');\n\n    ```\n\n    @method belongsTo\n    @public\n    @static\n    @for @ember-data/model\n    @param {String} modelName (optional) type of the relationship\n    @param {Object} options (optional) a hash of options\n    @return {Ember.computed} relationship\n  */\n  function belongsTo(modelName, options) {\n    var opts, userEnteredModelName;\n    if (typeof modelName === 'object') {\n      opts = modelName;\n      userEnteredModelName = undefined;\n    } else {\n      opts = options;\n      userEnteredModelName = modelName;\n    }\n    (!(typeof userEnteredModelName === 'string' || typeof userEnteredModelName === 'undefined') && debug.assert('The first argument to belongsTo must be a string representing a model type key, not an instance of ' + debug.inspect(userEnteredModelName) + \". E.g., to define a relation to the Person model, use belongsTo('person')\", typeof userEnteredModelName === 'string' || typeof userEnteredModelName === 'undefined'));\n    opts = opts || {};\n    var meta = {\n      type: userEnteredModelName,\n      isRelationship: true,\n      options: opts,\n      kind: 'belongsTo',\n      name: 'Belongs To',\n      key: null\n    };\n    return EmberObject.computed({\n      get(key) {\n        {\n          if (['_internalModel', 'recordData', 'currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your belongsTo on ${this.constructor.toString()}`);\n          }\n          if (Object.prototype.hasOwnProperty.call(opts, 'serialize')) {\n            (debug.warn(`You provided a serialize option on the \"${key}\" property in the \"${this._internalModel.modelName}\" class, this belongs in the serializer. See Serializer and it's implementations https://api.emberjs.com/ember-data/release/classes/Serializer`, false, {\n              id: 'ds.model.serialize-option-in-belongs-to'\n            }));\n          }\n          if (Object.prototype.hasOwnProperty.call(opts, 'embedded')) {\n            (debug.warn(`You provided an embedded option on the \"${key}\" property in the \"${this._internalModel.modelName}\" class, this belongs in the serializer. See EmbeddedRecordsMixin https://api.emberjs.com/ember-data/release/classes/EmbeddedRecordsMixin`, false, {\n              id: 'ds.model.embedded-option-in-belongs-to'\n            }));\n          }\n        }\n        return this._internalModel.getBelongsTo(key);\n      },\n      set(key, value) {\n        {\n          if (['_internalModel', 'recordData', 'currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your belongsTo on ${this.constructor.toString()}`);\n          }\n        }\n        this.store._backburner.join(() => {\n          this._internalModel.setDirtyBelongsTo(key, value);\n        });\n        return this._internalModel.getBelongsTo(key);\n      }\n    }).meta(meta);\n  }\n  var belongsTo$1 = computedMacroWithOptionalParams(belongsTo);\n\n  /**\n    @module @ember-data/model\n  */\n\n  /**\n    `hasMany` is used to define One-To-Many and Many-To-Many\n    relationships on a [Model](/ember-data/release/classes/Model).\n\n    `hasMany` takes an optional hash as a second parameter, currently\n    supported options are:\n\n    - `async`: A boolean value used to explicitly declare this to be an async relationship. The default is true.\n    - `inverse`: A string used to identify the inverse property on a related model.\n    - `polymorphic` A boolean value to mark the relationship as polymorphic\n\n    #### One-To-Many\n    To declare a one-to-many relationship between two models, use\n    `belongsTo` in combination with `hasMany`, like this:\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default class PostModel extends Model {\n      @hasMany('comment') comments;\n    }\n    ```\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default class CommentModel extends Model {\n      @belongsTo('post') post;\n    }\n    ```\n\n    #### Many-To-Many\n    To declare a many-to-many relationship between two models, use\n    `hasMany`:\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default class PostModel extends Model {\n      @hasMany('tag') tags;\n    }\n    ```\n\n    ```app/models/tag.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default class TagModel extends Model {\n      @hasMany('post') posts;\n    }\n    ```\n\n    You can avoid passing a string as the first parameter. In that case Ember Data\n    will infer the type from the singularized key name.\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default class PostModel extends Model {\n      @hasMany tags;\n    }\n    ```\n\n    will lookup for a Tag type.\n\n    #### Explicit Inverses\n\n    Ember Data will do its best to discover which relationships map to\n    one another. In the one-to-many code above, for example, Ember Data\n    can figure out that changing the `comments` relationship should update\n    the `post` relationship on the inverse because post is the only\n    relationship to that model.\n\n    However, sometimes you may have multiple `belongsTo`/`hasMany` for the\n    same type. You can specify which property on the related model is\n    the inverse using `hasMany`'s `inverse` option:\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default class CommentModel extends Model {\n      @belongsTo('post') onePost;\n      @belongsTo('post') twoPost\n      @belongsTo('post') redPost;\n      @belongsTo('post') bluePost;\n    }\n    ```\n\n    ```app/models/post.js\n    import Model from '@ember-data/model';\n    import { hasMany } from '@ember-decorators/data';\n\n    export default class PostModel extends Model {\n      @hasMany('comment', {\n        inverse: 'redPost'\n      })\n      comments;\n    }\n    ```\n\n    You can also specify an inverse on a `belongsTo`, which works how\n    you'd expect.\n\n    #### Sync relationships\n\n    Ember Data resolves sync relationships with the related resources\n    available in its local store, hence it is expected these resources\n    to be loaded before or along-side the primary resource.\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default class PostModel extends Model {\n      @hasMany('comment', {\n        async: false\n      })\n      comments;\n    }\n    ```\n\n    In contrast to async relationship, accessing a sync relationship\n    will always return a [ManyArray](/ember-data/release/classes/ManyArray) instance\n    containing the existing local resources. But it will error on access\n    when any of the known related resources have not been loaded.\n\n    ```\n    post.get('comments').forEach((comment) => {\n\n    });\n\n    ```\n\n    If you are using `links` with sync relationships, you have to use\n    `ref.reload` to fetch the resources.\n\n    @method hasMany\n    @public\n    @static\n    @for @ember-data/model\n    @param {String} type (optional) type of the relationship\n    @param {Object} options (optional) a hash of options\n    @return {Ember.computed} relationship\n  */\n  function hasMany(type, options) {\n    if (typeof type === 'object') {\n      options = type;\n      type = undefined;\n    }\n    (!(typeof type === 'string' || typeof type === 'undefined') && debug.assert(`The first argument to hasMany must be a string representing a model type key, not an instance of ${debug.inspect(type)}. E.g., to define a relation to the Comment model, use hasMany('comment')`, typeof type === 'string' || typeof type === 'undefined'));\n    options = options || {};\n\n    // Metadata about relationships is stored on the meta of\n    // the relationship. This is used for introspection and\n    // serialization. Note that `key` is populated lazily\n    // the first time the CP is called.\n    var meta = {\n      type,\n      options,\n      isRelationship: true,\n      kind: 'hasMany',\n      name: 'Has Many',\n      key: null\n    };\n    return EmberObject.computed({\n      get(key) {\n        {\n          if (['_internalModel', 'recordData', 'currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your hasMany on ${this.constructor.toString()}`);\n          }\n        }\n        return this._internalModel.getHasMany(key);\n      },\n      set(key, records) {\n        {\n          if (['_internalModel', 'recordData', 'currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your hasMany on ${this.constructor.toString()}`);\n          }\n        }\n        var internalModel = this._internalModel;\n        this.store._backburner.join(() => {\n          internalModel.setDirtyHasMany(key, records);\n        });\n        return internalModel.getHasMany(key);\n      }\n    }).meta(meta);\n  }\n  var hasMany$1 = computedMacroWithOptionalParams(hasMany);\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    Holds validation errors for a given record, organized by attribute names.\n\n    This class is not directly instantiable.\n\n    Every `Model` has an `errors` property that is an instance of\n    `Errors`. This can be used to display validation error\n    messages returned from the server when a `record.save()` rejects.\n\n    For Example, if you had a `User` model that looked like this:\n\n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default class UserModel extends Model {\n      @attr('string') username;\n      @attr('string') email;\n    }\n    ```\n    And you attempted to save a record that did not validate on the backend:\n\n    ```javascript\n    let user = store.createRecord('user', {\n      username: 'tomster',\n      email: 'invalidEmail'\n    });\n    user.save();\n    ```\n\n    Your backend would be expected to return an error response that described\n    the problem, so that error messages can be generated on the app.\n\n    API responses will be translated into instances of `Errors` differently,\n    depending on the specific combination of adapter and serializer used. You\n    may want to check the documentation or the source code of the libraries\n    that you are using, to know how they expect errors to be communicated.\n\n    Errors can be displayed to the user by accessing their property name\n    to get an array of all the error objects for that property. Each\n    error object is a JavaScript object with two keys:\n\n    - `message` A string containing the error message from the backend\n    - `attribute` The name of the property associated with this error message\n\n    ```handlebars\n    <label>Username: <Input @value={{@model.username}} /> </label>\n    {{#each @model.errors.username as |error|}}\n      <div class=\"error\">\n        {{error.message}}\n      </div>\n    {{/each}}\n\n    <label>Email: <Input @value={{@model.email}} /> </label>\n    {{#each @model.errors.email as |error|}}\n      <div class=\"error\">\n        {{error.message}}\n      </div>\n    {{/each}}\n    ```\n\n    You can also access the special `messages` property on the error\n    object to get an array of all the error strings.\n\n    ```handlebars\n    {{#each @model.errors.messages as |message|}}\n      <div class=\"error\">\n        {{message}}\n      </div>\n    {{/each}}\n    ```\n\n    @class Errors\n    @public\n    @extends Ember.ArrayProxy\n    @uses Ember.Evented\n   */\n  var Errors = ArrayProxy__default[\"default\"].extend(Private.DeprecatedEvented, {\n    /**\n      Register with target handler\n       @method _registerHandlers\n      @private\n    */\n    _registerHandlers(becameInvalid, becameValid) {\n      this._registeredHandlers = {\n        becameInvalid,\n        becameValid\n      };\n    },\n    /**\n      @property errorsByAttributeName\n      @type {MapWithDefault}\n      @private\n    */\n    errorsByAttributeName: EmberObject.computed(function () {\n      return new Map();\n    }),\n    /**\n      Returns errors for a given attribute\n       ```javascript\n      let user = store.createRecord('user', {\n        username: 'tomster',\n        email: 'invalidEmail'\n      });\n      user.save().catch(function(){\n        user.get('errors').errorsFor('email'); // returns:\n        // [{attribute: \"email\", message: \"Doesn't look like a valid email.\"}]\n      });\n      ```\n       @method errorsFor\n      @public\n      @param {String} attribute\n      @return {Array}\n    */\n    errorsFor(attribute) {\n      var map = EmberObject.get(this, 'errorsByAttributeName');\n      var errors = map.get(attribute);\n      if (errors === undefined) {\n        errors = EmberArray.A();\n        map.set(attribute, errors);\n      }\n\n      // Errors may be a native array with extensions turned on. Since we access\n      // the array via a method, and not a computed or using `Ember.get`, it does\n      // not entangle properly with autotracking, so we entangle manually by\n      // getting the `[]` property.\n      EmberObject.get(errors, '[]');\n      return errors;\n    },\n    /**\n      An array containing all of the error messages for this\n      record. This is useful for displaying all errors to the user.\n       ```handlebars\n      {{#each @model.errors.messages as |message|}}\n        <div class=\"error\">\n          {{message}}\n        </div>\n      {{/each}}\n      ```\n       @property messages\n      @public\n      @type {Array}\n    */\n    messages: computed.mapBy('content', 'message'),\n    /**\n      @property content\n      @type {Array}\n      @private\n    */\n    content: EmberObject.computed(function () {\n      return EmberArray.A();\n    }),\n    /**\n      @method unknownProperty\n      @private\n    */\n    unknownProperty(attribute) {\n      var errors = this.errorsFor(attribute);\n      if (errors.length === 0) {\n        return undefined;\n      }\n      return errors;\n    },\n    /**\n      Total number of errors.\n       @property length\n      @type {Number}\n      @public\n      @readOnly\n    */\n\n    /**\n      `true` if we have no errors.\n       @property isEmpty\n      @type {Boolean}\n      @public\n      @readOnly\n    */\n    isEmpty: computed.not('length').readOnly(),\n    /**\n     Manually adds errors to the record. This will trigger the `becameInvalid` event/ lifecycle method on\n      the record and transition the record into an `invalid` state.\n      Example\n     ```javascript\n      let errors = get(user, 'errors');\n       // add multiple errors\n      errors.add('password', [\n        'Must be at least 12 characters',\n        'Must contain at least one symbol',\n        'Cannot contain your name'\n      ]);\n       errors.errorsFor('password');\n      // =>\n      // [\n      //   { attribute: 'password', message: 'Must be at least 12 characters' },\n      //   { attribute: 'password', message: 'Must contain at least one symbol' },\n      //   { attribute: 'password', message: 'Cannot contain your name' },\n      // ]\n       // add a single error\n      errors.add('username', 'This field is required');\n       errors.errorsFor('username');\n      // =>\n      // [\n      //   { attribute: 'username', message: 'This field is required' },\n      // ]\n     ```\n    @method add\n      @public\n    @param {string} attribute - the property name of an attribute or relationship\n    @param {string[]|string} messages - an error message or array of error messages for the attribute\n     */\n    add(attribute, messages) {\n      var wasEmpty = EmberObject.get(this, 'isEmpty');\n      this._add(attribute, messages);\n      if (wasEmpty && !EmberObject.get(this, 'isEmpty')) {\n        this._registeredHandlers && this._registeredHandlers.becameInvalid();\n        {\n          if (this['_has' ]('becameInvalid')) {\n            this.trigger('becameInvalid');\n          }\n        }\n      }\n    },\n    /**\n      Adds error messages to a given attribute without sending event.\n       @method _add\n      @private\n    */\n    _add(attribute, messages) {\n      messages = this._findOrCreateMessages(attribute, messages);\n      this.addObjects(messages);\n      this.errorsFor(attribute).addObjects(messages);\n      this.notifyPropertyChange(attribute);\n    },\n    /**\n      @method _findOrCreateMessages\n      @private\n    */\n    _findOrCreateMessages(attribute, messages) {\n      var errors = this.errorsFor(attribute);\n      var messagesArray = EmberArray.makeArray(messages);\n      var _messages = new Array(messagesArray.length);\n      for (var i = 0; i < messagesArray.length; i++) {\n        var message = messagesArray[i];\n        var err = errors.findBy('message', message);\n        if (err) {\n          _messages[i] = err;\n        } else {\n          _messages[i] = {\n            attribute: attribute,\n            message: message\n          };\n        }\n      }\n      return _messages;\n    },\n    /**\n     Manually removes all errors for a given member from the record.\n       This will transition the record into a `valid` state, and\n      triggers the `becameValid` event and lifecycle method.\n      Example:\n      ```javascript\n      let errors = get('user', errors);\n      errors.add('phone', ['error-1', 'error-2']);\n       errors.errorsFor('phone');\n      // =>\n      // [\n      //   { attribute: 'phone', message: 'error-1' },\n      //   { attribute: 'phone', message: 'error-2' },\n      // ]\n       errors.remove('phone');\n       errors.errorsFor('phone');\n      // => undefined\n     ```\n     @method remove\n      @public\n     @param {string} member - the property name of an attribute or relationship\n     */\n    remove(attribute) {\n      if (EmberObject.get(this, 'isEmpty')) {\n        return;\n      }\n      this._remove(attribute);\n      if (EmberObject.get(this, 'isEmpty')) {\n        this._registeredHandlers && this._registeredHandlers.becameValid();\n        {\n          if (this['_has' ]('becameValid')) {\n            this.trigger('becameValid');\n          }\n        }\n      }\n    },\n    /**\n      Removes all error messages from the given attribute without sending event.\n       @method _remove\n      @private\n    */\n    _remove(attribute) {\n      if (EmberObject.get(this, 'isEmpty')) {\n        return;\n      }\n      var content = this.rejectBy('attribute', attribute);\n      EmberObject.get(this, 'content').setObjects(content);\n\n      // Although errorsByAttributeName.delete is technically enough to sync errors state, we also\n      // must mutate the array as well for autotracking\n      var errors = this.errorsFor(attribute);\n      for (var i = 0; i < errors.length; i++) {\n        if (errors[i].attribute === attribute) {\n          // .replace from Ember.NativeArray is necessary. JS splice will not work.\n          errors.replace(i, 1);\n        }\n      }\n      EmberObject.get(this, 'errorsByAttributeName').delete(attribute);\n      this.notifyPropertyChange(attribute);\n      this.notifyPropertyChange('length');\n    },\n    /**\n     Manually clears all errors for the record.\n       This will transition the record into a `valid` state, and\n       will trigger the `becameValid` event and lifecycle method.\n     Example:\n      ```javascript\n     let errors = get('user', errors);\n     errors.add('username', ['error-a']);\n     errors.add('phone', ['error-1', 'error-2']);\n      errors.errorsFor('username');\n     // =>\n     // [\n     //   { attribute: 'username', message: 'error-a' },\n     // ]\n      errors.errorsFor('phone');\n     // =>\n     // [\n     //   { attribute: 'phone', message: 'error-1' },\n     //   { attribute: 'phone', message: 'error-2' },\n     // ]\n      errors.clear();\n      errors.errorsFor('username');\n     // => undefined\n      errors.errorsFor('phone');\n     // => undefined\n      errors.get('messages')\n     // => []\n     ```\n     @method clear\n      @public\n     */\n    clear() {\n      if (EmberObject.get(this, 'isEmpty')) {\n        return;\n      }\n      this._clear();\n      this._registeredHandlers && this._registeredHandlers.becameValid();\n      {\n        if (this['_has' ]('becameValid')) {\n          this.trigger('becameValid');\n        }\n      }\n    },\n    /**\n      Removes all error messages.\n      to the record.\n       @method _clear\n      @private\n    */\n    _clear() {\n      if (EmberObject.get(this, 'isEmpty')) {\n        return;\n      }\n      var errorsByAttributeName = EmberObject.get(this, 'errorsByAttributeName');\n      var attributes = [];\n      errorsByAttributeName.forEach(function (_, attribute) {\n        attributes.push(attribute);\n      });\n      errorsByAttributeName.clear();\n      attributes.forEach(attribute => {\n        this.notifyPropertyChange(attribute);\n      });\n      ArrayProxy__default[\"default\"].prototype.clear.call(this);\n    },\n    /**\n      Checks if there are error messages for the given attribute.\n       ```app/controllers/user/edit.js\n      import Controller from '@ember/controller';\n      import { action } from '@ember/object';\n       export default class UserEditController extends Controller {\n        @action\n        save(user) {\n          if (user.get('errors').has('email')) {\n            return alert('Please update your email before attempting to save.');\n          }\n          user.save();\n        }\n      }\n      ```\n       @method has\n      @public\n      @param {String} attribute\n      @return {Boolean} true if there some errors on given attribute\n    */\n    has(attribute) {\n      return this.errorsFor(attribute).length > 0;\n    }\n  });\n\n  function notifyChanges(identifier, value, key, record, store) {\n    if (value === 'attributes') {\n      if (key) {\n        notifyAttribute(store, identifier, key, record);\n      } else {\n        record.eachAttribute(key => {\n          notifyAttribute(store, identifier, key, record);\n        });\n      }\n    } else if (value === 'relationships') {\n      if (key) {\n        var meta = record.constructor.relationshipsByName.get(key);\n        notifyRelationship(store, identifier, key, record, meta);\n      } else {\n        record.eachRelationship((key, meta) => {\n          notifyRelationship(store, identifier, key, record, meta);\n        });\n      }\n    } else if (value === 'identity') {\n      record.notifyPropertyChange('id');\n    }\n  }\n  function notifyRelationship(store, identifier, key, record, meta) {\n    var internalModel = store._internalModelForResource(identifier);\n    if (meta.kind === 'belongsTo') {\n      record.notifyPropertyChange(key);\n    } else if (meta.kind === 'hasMany') {\n      var manyArray = internalModel._manyArrayCache[key];\n      if (manyArray) {\n        manyArray.notify();\n\n        //We need to notifyPropertyChange in the adding case because we need to make sure\n        //we fetch the newly added record in case it is unloaded\n        //TODO(Igor): Consider whether we could do this only if the record state is unloaded\n        if (!meta.options || meta.options.async || meta.options.async === undefined) {\n          record.notifyPropertyChange(key);\n        }\n      }\n    }\n  }\n  function notifyAttribute(store, identifier, key, record) {\n    var currentValue = internals.cacheFor(record, key);\n    var internalModel = store._internalModelForResource(identifier);\n    if (currentValue !== internalModel._recordData.getAttr(key)) {\n      record.notifyPropertyChange(key);\n    }\n  }\n\n  var _class$2, _descriptor$2, _class3, _descriptor2$1;\n  function _initializerDefineProperty$2(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _applyDecoratedDescriptor$2(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function isInvalidError(error) {\n    return error && error.isAdapterError === true && error.code === 'InvalidError';\n  }\n\n  /**\n   * Tag provides a cache for a getter\n   * that recomputes only when a specific\n   * tracked property that it manages is dirtied.\n   *\n   * This allows us to bust the cache for a value\n   * that otherwise doesn't access anything tracked\n   * as well as control the timing of that notification.\n   *\n   * @internal\n   */\n  var Tag = (_class$2 = class Tag {\n    constructor() {\n      _initializerDefineProperty$2(this, \"_tracking\", _descriptor$2, this);\n      this.rev = 1;\n      this.isDirty = true;\n      this.value = undefined;\n    }\n    subscribe() {\n      this._tracking;\n    }\n    notify() {\n      this.isDirty = true;\n      this._tracking = this.rev;\n      this.rev++;\n    }\n    consume(v) {\n      this.isDirty = false;\n      this.value = v; // set cached value\n    }\n  }, (_descriptor$2 = _applyDecoratedDescriptor$2(_class$2.prototype, \"_tracking\", [tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  })), _class$2);\n  var Tags = new WeakMap();\n  function getTag(record, key) {\n    var tags = Tags.get(record);\n    if (!tags) {\n      tags = Object.create(null);\n      Tags.set(record, tags);\n    }\n    return tags[key] = tags[key] || new Tag();\n  }\n  function peekTag(record, key) {\n    var tags = Tags.get(record);\n    return tags && tags[key];\n  }\n\n  /**\n   * A decorattor that caches a getter while\n   * providing the ability to bust that cache\n   * when we so choose in a way that notifies\n   * glimmer's tracking system.\n   *\n   * @internal\n   */\n  function tagged(_target, key, desc) {\n    var getter = desc.get;\n    var setter = desc.set;\n    desc.get = function () {\n      var tag = getTag(this, key);\n      tag.subscribe();\n      if (tag.isDirty) {\n        tag.consume(getter.call(this));\n      }\n      return tag.value;\n    };\n    desc.set = function (v) {\n      getTag(this, key); // ensure tag is setup in case we want to use it.\n      // probably notify here but not yet.\n      setter.call(this, v);\n    };\n    compat.dependentKeyCompat(desc);\n    return desc;\n  }\n\n  /**\n  Historically InternalModel managed a state machine\n  the currentState for which was reflected onto Model.\n\n  This implements the flags and stateName for backwards compat\n  with the state tree that used to be possible (listed below).\n\n  stateName and dirtyType are candidates for deprecation.\n\n  root\n    empty\n      deleted    // hidden from stateName\n      preloaded  // hidden from stateName\n\n    loading\n       empty     // hidden from stateName\n       preloaded // hidden from stateName\n\n    loaded\n      saved\n      updated\n        uncommitted\n        invalid\n        inFlight\n      created\n        uncommitted\n        invalid\n        inFlight\n\n    deleted\n      saved\n        new      // hidden from stateName\n      uncommitted\n      invalid\n      inFlight\n\n    @internal\n  */\n  var RecordState = (_class3 = class RecordState {\n    constructor(record) {\n      _initializerDefineProperty$2(this, \"isSaving\", _descriptor2$1, this);\n      var {\n        store\n      } = record;\n      var id = record._internalModel.identifier;\n      this.record = record;\n      this.recordData = record._internalModel._recordData;\n      this.pendingCount = 0;\n      this.fulfilledCount = 0;\n      this.rejectedCount = 0;\n      this._errorRequests = [];\n      this._lastError = null;\n      var requests = store.getRequestStateService();\n      var notifications = store._notificationManager;\n      requests.subscribeForRecord(id, req => {\n        if (req.type === 'mutation') {\n          switch (req.state) {\n            case 'pending':\n              this.isSaving = true;\n              break;\n            case 'rejected':\n              this.isSaving = false;\n              this._lastError = req;\n              if (!(req.response && isInvalidError(req.response.data))) {\n                this._errorRequests.push(req);\n              }\n              notifyErrorsStateChanged(this);\n              break;\n            case 'fulfilled':\n              this._errorRequests = [];\n              this._lastError = null;\n              this.isSaving = false;\n              notifyErrorsStateChanged(this);\n              break;\n          }\n        } else {\n          switch (req.state) {\n            case 'pending':\n              this.pendingCount++;\n              this.notify('isLoading');\n              break;\n            case 'rejected':\n              this.pendingCount--;\n              this._lastError = req;\n              if (!(req.response && isInvalidError(req.response.data))) {\n                this._errorRequests.push(req);\n              }\n              this.notify('isLoading');\n              notifyErrorsStateChanged(this);\n              break;\n            case 'fulfilled':\n              this.pendingCount--;\n              this.fulfilledCount++;\n              this.notify('isLoading');\n              this.notify('isDirty');\n              notifyErrorsStateChanged(this);\n              this._errorRequests = [];\n              this._lastError = null;\n              break;\n          }\n        }\n      });\n      notifications.subscribe(id, (identifier, type, key) => {\n        notifyChanges(identifier, type, key, record, store);\n        switch (type) {\n          case 'state':\n            this.notify('isNew');\n            this.notify('isDeleted');\n            this.notify('isDirty');\n            break;\n          case 'attributes':\n            this.notify('isEmpty');\n            this.notify('isDirty');\n            break;\n          case 'unload':\n            this.notify('isNew');\n            this.notify('isDeleted');\n            break;\n          case 'errors':\n            // we only hit this if a foreign RecordData notifies\n            // errors changed. Our own implementation does not\n            // take this path currently, but we should probably\n            // fix that.\n            this.updateInvalidErrors();\n            this.notify('isValid');\n            break;\n        }\n      });\n    }\n    notify(key) {\n      getTag(this, key).notify();\n    }\n    updateInvalidErrors() {\n      var jsonApiErrors = this.recordData.getErrors();\n      var {\n        errors\n      } = this.record;\n      errors._clear();\n      var newErrors = Private.errorsArrayToHash(jsonApiErrors);\n      var errorKeys = Object.keys(newErrors);\n      for (var i = 0; i < errorKeys.length; i++) {\n        errors._add(errorKeys[i], newErrors[errorKeys[i]]);\n      }\n    }\n    cleanErrorRequests() {\n      this.notify('isValid');\n      this.notify('isError');\n      this.notify('adapterError');\n      this._errorRequests = [];\n      this._lastError = null;\n    }\n    get isLoading() {\n      return !this.isLoaded && this.pendingCount > 0 && this.fulfilledCount === 0;\n    }\n    get isLoaded() {\n      if (this.isNew) {\n        return true;\n      }\n      return this.fulfilledCount > 0 || !this.isEmpty;\n    }\n    get isSaved() {\n      var rd = this.recordData;\n      if (this.isDeleted) {\n        (!(rd.isDeletionCommitted) && debug.assert(`Expected RecordData to implement isDeletionCommitted()`, rd.isDeletionCommitted));\n        return rd.isDeletionCommitted();\n      }\n      if (this.isNew || this.isEmpty || !this.isValid || this.isDirty || this.isLoading) {\n        return false;\n      }\n      return true;\n    }\n    get isEmpty() {\n      var rd = this.recordData;\n      // TODO this is not actually an RFC'd concept. Determine the\n      // correct heuristic to replace this with.\n      (!(rd.isEmpty) && debug.assert(`Expected RecordData to implement isEmpty()`, rd.isEmpty));\n      return !this.isNew && rd.isEmpty();\n    }\n    get isNew() {\n      var rd = this.recordData;\n      (!(rd.isNew) && debug.assert(`Expected RecordData to implement isNew()`, rd.isNew));\n      return rd.isNew();\n    }\n    get isDeleted() {\n      var rd = this.recordData;\n      (!(rd.isDeleted) && debug.assert(`Expected RecordData to implement isDeleted()`, rd.isDeleted));\n      return rd.isDeleted();\n    }\n    get isValid() {\n      return this.record.errors.length === 0;\n    }\n    get isDirty() {\n      var rd = this.recordData;\n      (!(rd.hasChangedAttributes) && debug.assert(`Expected RecordData to implement hasChangedAttributes()`, rd.hasChangedAttributes));\n      (!(rd.isDeletionCommitted) && debug.assert(`Expected RecordData to implement isDeletionCommitted()`, rd.isDeletionCommitted));\n      if (rd.isDeletionCommitted() || this.isDeleted && this.isNew) {\n        return false;\n      }\n      return this.isNew || rd.hasChangedAttributes();\n    }\n    get isError() {\n      var errorReq = this._errorRequests[this._errorRequests.length - 1];\n      if (!errorReq) {\n        return false;\n      } else {\n        return true;\n      }\n    }\n    get adapterError() {\n      var request = this._lastError;\n      if (!request) {\n        return null;\n      }\n      return request.state === 'rejected' && request.response.data;\n    }\n    get isPreloaded() {\n      return !this.isEmpty && this.isLoading;\n    }\n    get stateName() {\n      // we might be empty while loading so check this first\n      if (this.isLoading) {\n        return 'root.loading';\n\n        // got nothing yet or were unloaded\n      } else if (this.isEmpty) {\n        return 'root.empty';\n\n        // deleted substates\n      } else if (this.isDeleted) {\n        if (this.isSaving) {\n          return 'root.deleted.inFlight';\n        } else if (this.isSaved) {\n          // TODO ensure isSaved isn't true from previous requests\n          return 'root.deleted.saved';\n        } else if (!this.isValid) {\n          return 'root.deleted.invalid';\n        } else {\n          return 'root.deleted.uncommitted';\n        }\n\n        // loaded.created substates\n      } else if (this.isNew) {\n        if (this.isSaving) {\n          return 'root.loaded.created.inFlight';\n        } else if (!this.isValid) {\n          return 'root.loaded.created.invalid';\n        }\n        return 'root.loaded.created.uncommitted';\n\n        // loaded.updated substates\n      } else if (this.isSaving) {\n        return 'root.loaded.updated.inFlight';\n      } else if (!this.isValid) {\n        return 'root.loaded.updated.invalid';\n      } else if (this.isDirty) {\n        return 'root.loaded.updated.uncommitted';\n\n        // if nothing remains, we are loaded saved!\n      } else {\n        return 'root.loaded.saved';\n      }\n    }\n    get dirtyType() {\n      // we might be empty while loading so check this first\n      if (this.isLoading || this.isEmpty) {\n        return '';\n\n        // deleted substates\n      } else if (this.isDeleted) {\n        return 'deleted';\n\n        // loaded.created substates\n      } else if (this.isNew) {\n        return 'created';\n\n        // loaded.updated substates\n      } else if (this.isSaving || !this.isValid || this.isDirty) {\n        return 'updated';\n\n        // if nothing remains, we are loaded saved!\n      } else {\n        return '';\n      }\n    }\n  }, (_descriptor2$1 = _applyDecoratedDescriptor$2(_class3.prototype, \"isSaving\", [tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor$2(_class3.prototype, \"isLoading\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isLoading\"), _class3.prototype), _applyDecoratedDescriptor$2(_class3.prototype, \"isLoaded\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isLoaded\"), _class3.prototype), _applyDecoratedDescriptor$2(_class3.prototype, \"isSaved\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isSaved\"), _class3.prototype), _applyDecoratedDescriptor$2(_class3.prototype, \"isEmpty\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isEmpty\"), _class3.prototype), _applyDecoratedDescriptor$2(_class3.prototype, \"isNew\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isNew\"), _class3.prototype), _applyDecoratedDescriptor$2(_class3.prototype, \"isDeleted\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isDeleted\"), _class3.prototype), _applyDecoratedDescriptor$2(_class3.prototype, \"isValid\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isValid\"), _class3.prototype), _applyDecoratedDescriptor$2(_class3.prototype, \"isDirty\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isDirty\"), _class3.prototype), _applyDecoratedDescriptor$2(_class3.prototype, \"isError\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"isError\"), _class3.prototype), _applyDecoratedDescriptor$2(_class3.prototype, \"adapterError\", [tagged], Object.getOwnPropertyDescriptor(_class3.prototype, \"adapterError\"), _class3.prototype), _applyDecoratedDescriptor$2(_class3.prototype, \"isPreloaded\", [emberCachedDecoratorPolyfill.cached], Object.getOwnPropertyDescriptor(_class3.prototype, \"isPreloaded\"), _class3.prototype), _applyDecoratedDescriptor$2(_class3.prototype, \"stateName\", [emberCachedDecoratorPolyfill.cached], Object.getOwnPropertyDescriptor(_class3.prototype, \"stateName\"), _class3.prototype), _applyDecoratedDescriptor$2(_class3.prototype, \"dirtyType\", [emberCachedDecoratorPolyfill.cached], Object.getOwnPropertyDescriptor(_class3.prototype, \"dirtyType\"), _class3.prototype)), _class3);\n  function notifyErrorsStateChanged(state) {\n    state.notify('isValid');\n    state.notify('isError');\n    state.notify('adapterError');\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  function typeForRelationshipMeta(meta) {\n    var modelName = Private.normalizeModelName(meta.type || meta.key);\n    if (meta.kind === 'hasMany') {\n      modelName = emberInflector.singularize(modelName);\n    }\n    return modelName;\n  }\n  function shouldFindInverse(relationshipMeta) {\n    var options = relationshipMeta.options;\n    return !(options && options.inverse === null);\n  }\n  class RelationshipDefinition {\n    constructor(meta) {\n      this._type = '';\n      this.__inverseKey = '';\n      this.__inverseIsAsync = true;\n      this.__hasCalculatedInverse = false;\n      this.parentModelName = meta.parentModelName;\n      this.meta = meta;\n    }\n    get key() {\n      return this.meta.key;\n    }\n    get kind() {\n      return this.meta.kind;\n    }\n    get type() {\n      if (this._type) {\n        return this._type;\n      }\n      this._type = typeForRelationshipMeta(this.meta);\n      return this._type;\n    }\n    get options() {\n      return this.meta.options;\n    }\n    get name() {\n      return this.meta.name;\n    }\n    _inverseKey(store, modelClass) {\n      if (this.__hasCalculatedInverse === false) {\n        this._calculateInverse(store, modelClass);\n      }\n      return this.__inverseKey;\n    }\n    _inverseIsAsync(store, modelClass) {\n      if (this.__hasCalculatedInverse === false) {\n        this._calculateInverse(store, modelClass);\n      }\n      return this.__inverseIsAsync;\n    }\n    _calculateInverse(store, modelClass) {\n      this.__hasCalculatedInverse = true;\n      var inverseKey, inverseIsAsync;\n      var inverse = null;\n      if (shouldFindInverse(this.meta)) {\n        inverse = modelClass.inverseFor(this.key, store);\n      } else {\n        modelClass.typeForRelationship(this.key, store);\n      }\n      if (inverse) {\n        inverseKey = inverse.name;\n        inverseIsAsync = isInverseAsync(inverse);\n      } else {\n        inverseKey = null;\n        inverseIsAsync = false;\n      }\n      this.__inverseKey = inverseKey;\n      this.__inverseIsAsync = inverseIsAsync;\n    }\n  }\n  function isInverseAsync(meta) {\n    var inverseAsync = meta.options && meta.options.async;\n    return typeof inverseAsync === 'undefined' ? true : inverseAsync;\n  }\n  function relationshipFromMeta(meta) {\n    return new RelationshipDefinition(meta);\n  }\n\n  var _class$1, _descriptor$1, _class2;\n  function _initializerDefineProperty$1(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _applyDecoratedDescriptor$1(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  var {\n    changeProperties\n  } = Ember__default[\"default\"];\n\n  /*\n   In the non-CUSTOM_MODEL_CLASS world things decorated with flagToggledDecorator\n   have logic that requires a cache and caching key (which tagged provides), but\n   in the CUSTOM_MODEL_CLASS branch it only requires dependentKeyCompat which\n   ensures computeds/observers on the field will fire when anything it accesses\n   that is tracked changes\n  */\n  var flagToggledDecorator = compat.dependentKeyCompat ;\n  function findPossibleInverses(type, inverseType, name, relationshipsSoFar) {\n    var possibleRelationships = relationshipsSoFar || [];\n    var relationshipMap = inverseType.relationships;\n    if (!relationshipMap) {\n      return possibleRelationships;\n    }\n    var relationshipsForType = relationshipMap.get(type.modelName);\n    var relationships = Array.isArray(relationshipsForType) ? relationshipsForType.filter(relationship => {\n      var optionsForRelationship = inverseType.metaForProperty(relationship.name).options;\n      if (!optionsForRelationship.inverse && optionsForRelationship.inverse !== null) {\n        return true;\n      }\n      return name === optionsForRelationship.inverse;\n    }) : null;\n    if (relationships) {\n      possibleRelationships.push.apply(possibleRelationships, relationships);\n    }\n\n    //Recurse to support polymorphism\n    if (type.superclass) {\n      findPossibleInverses(type.superclass, inverseType, name, possibleRelationships);\n    }\n    return possibleRelationships;\n  }\n\n  /*\n   * This decorator allows us to lazily compute\n   * an expensive getter on first-access and therafter\n   * never recompute it.\n   */\n  function computeOnce(target, key, desc) {\n    var cache = new WeakMap();\n    var getter = desc.get;\n    desc.get = function () {\n      var meta = cache.get(this);\n      if (!meta) {\n        meta = {\n          hasComputed: false,\n          value: undefined\n        };\n        cache.set(this, meta);\n      }\n      if (!meta.hasComputed) {\n        meta.value = getter.call(this);\n        meta.hasComputed = true;\n      }\n      return meta.value;\n    };\n    return desc;\n  }\n\n  /**\n    Base class from which Models can be define.\n    \n    ```js\n    import Model, { attr } from '@ember-data/model';\n    \n    export default class User extends Model {\n      @attr name;\n    }\n    ```\n\n    @class Model\n    @public\n    @extends EmberObject\n    @uses EmberData.DeprecatedEvented\n  */\n  var Model = (_class$1 = (_class2 = class Model extends EmberObject__default[\"default\"] {\n    constructor(...args) {\n      super(...args);\n      /**\n        If `true` the store is attempting to reload the record from the adapter.\n         Example\n         ```javascript\n        record.get('isReloading'); // false\n        record.reload();\n        record.get('isReloading'); // true\n        ```\n         @property isReloading\n        @public\n        @type {Boolean}\n        @readOnly\n      */\n      _initializerDefineProperty$1(this, \"isReloading\", _descriptor$1, this);\n    }\n    init(options = {}) {\n      var createProps = options._createProps;\n      delete options._createProps;\n      super.init(options);\n      {\n        if (!this._internalModel) {\n          throw new EmberError__default[\"default\"]('You should not call `create` on a model. Instead, call `store.createRecord` with the attributes you would like to set.');\n        }\n      }\n      {\n        this.___recordState = new RecordState(this);\n      }\n      this.setProperties(createProps);\n    }\n\n    /**\n      If this property is `true` the record is in the `empty`\n      state. Empty is the first state all records enter after they have\n      been created. Most records created by the store will quickly\n      transition to the `loading` state if data needs to be fetched from\n      the server or the `created` state if the record is created on the\n      client. A record can also enter the empty state if the adapter is\n      unable to locate the record.\n       @property isEmpty\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isEmpty() {\n      return this.currentState.isEmpty;\n    }\n\n    /**\n      If this property is `true` the record is in the `loading` state. A\n      record enters this state when the store asks the adapter for its\n      data. It remains in this state until the adapter provides the\n      requested data.\n       @property isLoading\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isLoading() {\n      return this.currentState.isLoading;\n    }\n\n    /**\n      If this property is `true` the record is in the `loaded` state. A\n      record enters this state when its data is populated. Most of a\n      record's lifecycle is spent inside substates of the `loaded`\n      state.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('isLoaded'); // true\n       store.findRecord('model', 1).then(function(model) {\n        model.get('isLoaded'); // true\n      });\n      ```\n       @property isLoaded\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isLoaded() {\n      return this.currentState.isLoaded;\n    }\n\n    /**\n      If this property is `true` the record is in the `dirty` state. The\n      record has local changes that have not yet been saved by the\n      adapter. This includes records that have been created (but not yet\n      saved) or deleted.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('hasDirtyAttributes'); // true\n       store.findRecord('model', 1).then(function(model) {\n        model.get('hasDirtyAttributes'); // false\n        model.set('foo', 'some value');\n        model.get('hasDirtyAttributes'); // true\n      });\n      ```\n       @since 1.13.0\n      @property hasDirtyAttributes\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get hasDirtyAttributes() {\n      return this.currentState.isDirty;\n    }\n\n    /**\n      If this property is `true` the record is in the `saving` state. A\n      record enters the saving state when `save` is called, but the\n      adapter has not yet acknowledged that the changes have been\n      persisted to the backend.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('isSaving'); // false\n      let promise = record.save();\n      record.get('isSaving'); // true\n      promise.then(function() {\n        record.get('isSaving'); // false\n      });\n      ```\n       @property isSaving\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isSaving() {\n      return this.currentState.isSaving;\n    }\n\n    /**\n      If this property is `true` the record is in the `deleted` state\n      and has been marked for deletion. When `isDeleted` is true and\n      `hasDirtyAttributes` is true, the record is deleted locally but the deletion\n      was not yet persisted. When `isSaving` is true, the change is\n      in-flight. When both `hasDirtyAttributes` and `isSaving` are false, the\n      change has persisted.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('isDeleted');    // false\n      record.deleteRecord();\n       // Locally deleted\n      record.get('isDeleted');           // true\n      record.get('hasDirtyAttributes');  // true\n      record.get('isSaving');            // false\n       // Persisting the deletion\n      let promise = record.save();\n      record.get('isDeleted');    // true\n      record.get('isSaving');     // true\n       // Deletion Persisted\n      promise.then(function() {\n        record.get('isDeleted');          // true\n        record.get('isSaving');           // false\n        record.get('hasDirtyAttributes'); // false\n      });\n      ```\n       @property isDeleted\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isDeleted() {\n      return this.currentState.isDeleted;\n    }\n\n    /**\n      If this property is `true` the record is in the `new` state. A\n      record will be in the `new` state when it has been created on the\n      client and the adapter has not yet report that it was successfully\n      saved.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('isNew'); // true\n       record.save().then(function(model) {\n        model.get('isNew'); // false\n      });\n      ```\n       @property isNew\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isNew() {\n      return this.currentState.isNew;\n    }\n\n    /**\n      If this property is `true` the record is in the `valid` state.\n       A record will be in the `valid` state when the adapter did not report any\n      server-side validation failures.\n       @property isValid\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isValid() {\n      return this.currentState.isValid;\n    }\n\n    /**\n      If the record is in the dirty state this property will report what\n      kind of change has caused it to move into the dirty\n      state. Possible values are:\n       - `created` The record has been created by the client and not yet saved to the adapter.\n      - `updated` The record has been updated by the client and not yet saved to the adapter.\n      - `deleted` The record has been deleted by the client and not yet saved to the adapter.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('dirtyType'); // 'created'\n      ```\n       @property dirtyType\n      @public\n      @type {String}\n      @readOnly\n    */\n    get dirtyType() {\n      return this.currentState.dirtyType;\n    }\n\n    /**\n      If `true` the adapter reported that it was unable to save local\n      changes to the backend for any reason other than a server-side\n      validation error.\n       Example\n       ```javascript\n      record.get('isError'); // false\n      record.set('foo', 'valid value');\n      record.save().then(null, function() {\n        record.get('isError'); // true\n      });\n      ```\n       @property isError\n      @public\n      @type {Boolean}\n      @readOnly\n    */\n    get isError() {\n      {\n        return this.currentState.isError;\n      }\n    }\n    set isError(v) {\n      {\n        throw new Error(`isError is not directly settable when REQUEST_SERVICE is enabled`);\n      }\n    }\n    /**\n      All ember models have an id property. This is an identifier\n      managed by an external source. These are always coerced to be\n      strings before being used internally. Note when declaring the\n      attributes for a model it is an error to declare an id\n      attribute.\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('id'); // null\n       store.findRecord('model', 1).then(function(model) {\n        model.get('id'); // '1'\n      });\n      ```\n       @property id\n      @public\n      @type {String}\n    */\n    get id() {\n      // the _internalModel guard exists, because some dev-only deprecation code\n      // (addListener via validatePropertyInjections) invokes toString before the\n      // object is real.\n      {\n        if (!this._internalModel) {\n          return void 0;\n        }\n      }\n      return this._internalModel.id;\n    }\n    set id(id) {\n      var normalizedId = Private.coerceId(id);\n      if (normalizedId !== null) {\n        this._internalModel.setId(normalizedId);\n      }\n    }\n\n    /**\n      @property currentState\n      @private\n      @type {Object}\n    */\n    get currentState() {\n      {\n        return this.___recordState;\n      }\n    }\n    set currentState(v) {\n    }\n\n    /**\n     @property _internalModel\n     @private\n     @type {Object}\n     */\n\n    /**\n      The store service instance which created this record instance\n      @property store\n      @public\n     */\n\n    /**\n      When the record is in the `invalid` state this object will contain\n      any errors returned by the adapter. When present the errors hash\n      contains keys corresponding to the invalid property names\n      and values which are arrays of Javascript objects with two keys:\n       - `message` A string containing the error message from the backend\n      - `attribute` The name of the property associated with this error message\n       ```javascript\n      record.get('errors.length'); // 0\n      record.set('foo', 'invalid value');\n      record.save().catch(function() {\n        record.get('errors').get('foo');\n        // [{message: 'foo should be a number.', attribute: 'foo'}]\n      });\n      ```\n       The `errors` property is useful for displaying error messages to\n      the user.\n       ```handlebars\n      <label>Username: <Input @value={{@model.username}} /> </label>\n      {{#each @model.errors.username as |error|}}\n        <div class=\"error\">\n          {{error.message}}\n        </div>\n      {{/each}}\n      <label>Email: <Input @value={{@model.email}} /> </label>\n      {{#each @model.errors.email as |error|}}\n        <div class=\"error\">\n          {{error.message}}\n        </div>\n      {{/each}}\n      ```\n        You can also access the special `messages` property on the error\n      object to get an array of all the error strings.\n       ```handlebars\n      {{#each @model.errors.messages as |message|}}\n        <div class=\"error\">\n          {{message}}\n        </div>\n      {{/each}}\n      ```\n       @property errors\n      @public\n      @type {Errors}\n    */\n    get errors() {\n      var errors = Errors.create();\n      errors._registerHandlers(() => {\n        this._internalModel.send('becameInvalid');\n      }, () => {\n        this._internalModel.send('becameValid');\n      });\n      {\n        // TODO we should unify how errors gets populated\n        // with the code managing the update. Probably a\n        // lazy flush similar to retrieveLatest in ManyArray\n        var recordData = Private.recordDataFor(this);\n        var jsonApiErrors;\n        if (recordData.getErrors) {\n          jsonApiErrors = recordData.getErrors();\n          if (jsonApiErrors) {\n            var errorsHash = Private.errorsArrayToHash(jsonApiErrors);\n            var errorKeys = Object.keys(errorsHash);\n            for (var i = 0; i < errorKeys.length; i++) {\n              errors._add(errorKeys[i], errorsHash[errorKeys[i]]);\n            }\n          }\n        }\n      }\n      return errors;\n    }\n\n    /**\n      This property holds the `AdapterError` object with which\n      last adapter operation was rejected.\n       @property adapterError\n      @public\n      @type {AdapterError}\n    */\n    get adapterError() {\n      {\n        return this.currentState.adapterError;\n      }\n    }\n    set adapterError(v) {\n      {\n        throw new Error(`adapterError is not directly settable when REQUEST_SERVICE is enabled`);\n      }\n    }\n\n    /**\n      Create a JSON representation of the record, using the serialization\n      strategy of the store's adapter.\n      `serialize` takes an optional hash as a parameter, currently\n      supported options are:\n      - `includeId`: `true` if the record's ID should be included in the\n        JSON representation.\n       @method serialize\n      @public\n      @param {Object} options\n      @return {Object} an object whose values are primitive JSON values only\n    */\n    serialize(options) {\n      return this._internalModel.createSnapshot().serialize(options);\n    }\n\n    /**\n      Fired when the record is ready to be interacted with,\n      that is either loaded from the server or created locally.\n       @deprecated\n      @public\n      @event ready\n    */\n\n    /**\n      Fired when the record is loaded from the server.\n       @deprecated\n      @public\n      @event didLoad\n    */\n\n    /**\n      Fired when the record is updated.\n       @deprecated\n      @public\n      @event didUpdate\n    */\n\n    /**\n      Fired when a new record is commited to the server.\n       @deprecated\n      @public\n      @event didCreate\n    */\n\n    /**\n      Fired when the record is deleted.\n       @deprecated\n      @public\n      @event didDelete\n    */\n\n    /**\n      Fired when the record becomes invalid.\n       @deprecated\n      @public\n      @event becameInvalid\n    */\n\n    /**\n      Fired when the record enters the error state.\n       @deprecated\n      @public\n      @event becameError\n    */\n\n    /**\n      Fired when the record is rolled back.\n       @deprecated\n      @public\n      @event rolledBack\n    */\n\n    /**\n      @deprecated\n      @method send\n      @private\n      @param {String} name\n      @param {Object} context\n    */\n    send(name, context) {\n      return this._internalModel.send(name, context);\n    }\n\n    /**\n      @deprecated\n      @method transitionTo\n      @private\n      @param {String} name\n    */\n    transitionTo(name) {\n      return this._internalModel.transitionTo(name);\n    }\n\n    /*\n      We hook the default implementation to ensure\n      our tagged properties are properly notified\n      as well. We still super for everything because\n      sync observers require a direct call occuring\n      to trigger their flush. We wouldn't need to\n      super in 4.0+ where sync observers are removed.\n     */\n    notifyPropertyChange(key) {\n      var tag = peekTag(this, key);\n      if (tag) {\n        tag.notify();\n      }\n      super.notifyPropertyChange(key);\n    }\n\n    /**\n      Marks the record as deleted but does not save it. You must call\n      `save` afterwards if you want to persist it. You might use this\n      method if you want to allow the user to still `rollbackAttributes()`\n      after a delete was made.\n       Example\n       ```app/controllers/model/delete.js\n      import Controller from '@ember/controller';\n      import { action } from '@ember/object';\n       export default class ModelDeleteController extends Controller {\n        @action\n        softDelete() {\n          this.model.deleteRecord();\n        }\n         @action\n        confirm() {\n          this.model.save();\n        }\n         @action\n        undo() {\n          this.model.rollbackAttributes();\n        }\n      }\n      ```\n       @method deleteRecord\n      @public\n    */\n    deleteRecord() {\n      {\n        this.store.deleteRecord(this);\n      }\n    }\n\n    /**\n      Same as `deleteRecord`, but saves the record immediately.\n       Example\n       ```app/controllers/model/delete.js\n      import Controller from '@ember/controller';\n      import { action } from '@ember/object';\n       export default class ModelDeleteController extends Controller {\n        @action\n        delete() {\n          this.model.destroyRecord().then(function() {\n            this.transitionToRoute('model.index');\n          });\n        }\n      }\n      ```\n       If you pass an object on the `adapterOptions` property of the options\n      argument it will be passed to your adapter via the snapshot\n       ```js\n      record.destroyRecord({ adapterOptions: { subscribe: false } });\n      ```\n       ```app/adapters/post.js\n      import MyCustomAdapter from './custom-adapter';\n       export default class PostAdapter extends MyCustomAdapter {\n        deleteRecord(store, type, snapshot) {\n          if (snapshot.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      }\n      ```\n       @method destroyRecord\n      @public\n      @param {Object} options\n      @return {Promise} a promise that will be resolved when the adapter returns\n      successfully or rejected if the adapter returns with an error.\n    */\n    destroyRecord(options) {\n      this.deleteRecord();\n      return this.save(options).then(_ => {\n        runloop.run(() => {\n          this.unloadRecord();\n        });\n        return this;\n      });\n    }\n\n    /**\n      Unloads the record from the store. This will not send a delete request\n      to your server, it just unloads the record from memory.\n       @method unloadRecord\n      @public\n    */\n    unloadRecord() {\n      if (this.isDestroyed) {\n        return;\n      }\n      {\n        this.store.unloadRecord(this);\n      }\n    }\n\n    /**\n      @method _notifyProperties\n      @private\n    */\n    _notifyProperties(keys) {\n      // changeProperties defers notifications until after the delegate\n      // and protects with a try...finally block\n      // previously used begin...endPropertyChanges but this is private API\n      changeProperties(() => {\n        var key;\n        for (var i = 0, length = keys.length; i < length; i++) {\n          key = keys[i];\n          this.notifyPropertyChange(key);\n        }\n      });\n    }\n\n    /**\n      Returns an object, whose keys are changed properties, and value is\n      an [oldProp, newProp] array.\n       The array represents the diff of the canonical state with the local state\n      of the model. Note: if the model is created locally, the canonical state is\n      empty since the adapter hasn't acknowledged the attributes yet:\n       Example\n       ```app/models/mascot.js\n      import Model, { attr } from '@ember-data/model';\n       export default class MascotModel extends Model {\n        @attr('string') name;\n        @attr('boolean', {\n          defaultValue: false\n        })\n        isAdmin;\n      }\n      ```\n       ```javascript\n      let mascot = store.createRecord('mascot');\n       mascot.changedAttributes(); // {}\n       mascot.set('name', 'Tomster');\n      mascot.changedAttributes(); // { name: [undefined, 'Tomster'] }\n       mascot.set('isAdmin', true);\n      mascot.changedAttributes(); // { isAdmin: [undefined, true], name: [undefined, 'Tomster'] }\n       mascot.save().then(function() {\n        mascot.changedAttributes(); // {}\n         mascot.set('isAdmin', false);\n        mascot.changedAttributes(); // { isAdmin: [true, false] }\n      });\n      ```\n       @method changedAttributes\n      @public\n      @return {Object} an object, whose keys are changed properties,\n        and value is an [oldProp, newProp] array.\n    */\n    changedAttributes() {\n      return this._internalModel.changedAttributes();\n    }\n\n    /**\n      If the model `hasDirtyAttributes` this function will discard any unsaved\n      changes. If the model `isNew` it will be removed from the store.\n       Example\n       ```javascript\n      record.get('name'); // 'Untitled Document'\n      record.set('name', 'Doc 1');\n      record.get('name'); // 'Doc 1'\n      record.rollbackAttributes();\n      record.get('name'); // 'Untitled Document'\n      ```\n       @since 1.13.0\n      @method rollbackAttributes\n      @public\n    */\n    rollbackAttributes() {\n      this._internalModel.rollbackAttributes();\n      {\n        this.currentState.cleanErrorRequests();\n      }\n    }\n\n    /**\n      @method _createSnapshot\n      @private\n    */\n    _createSnapshot() {\n      return this._internalModel.createSnapshot();\n    }\n    toStringExtension() {\n      // the _internalModel guard exists, because some dev-only deprecation code\n      // (addListener via validatePropertyInjections) invokes toString before the\n      // object is real.\n      return this._internalModel && this._internalModel.id;\n    }\n\n    /**\n      Save the record and persist any changes to the record to an\n      external source via the adapter.\n       Example\n       ```javascript\n      record.set('name', 'Tomster');\n      record.save().then(function() {\n        // Success callback\n      }, function() {\n        // Error callback\n      });\n      ```\n      If you pass an object using the `adapterOptions` property of the options\n     argument it will be passed to your adapter via the snapshot.\n       ```js\n      record.save({ adapterOptions: { subscribe: false } });\n      ```\n       ```app/adapters/post.js\n      import MyCustomAdapter from './custom-adapter';\n       export default class PostAdapter extends MyCustomAdapter {\n        updateRecord(store, type, snapshot) {\n          if (snapshot.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      }\n      ```\n       @method save\n      @public\n      @param {Object} options\n      @return {Promise} a promise that will be resolved when the adapter returns\n      successfully or rejected if the adapter returns with an error.\n    */\n    save(options) {\n      return Private.PromiseObject.create({\n        promise: this._internalModel.save(options).then(() => this)\n      });\n    }\n\n    /**\n      Reload the record from the adapter.\n       This will only work if the record has already finished loading.\n       Example\n       ```app/controllers/model/view.js\n      import Controller from '@ember/controller';\n      import { action } from '@ember/object';\n       export default class ViewController extends Controller {\n        @action\n        reload() {\n          this.model.reload().then(function(model) {\n          // do something with the reloaded model\n          });\n        }\n      }\n      ```\n       @method reload\n      @public\n      @param {Object} options optional, may include `adapterOptions` hash which will be passed to adapter request\n      @return {Promise} a promise that will be resolved with the record when the\n      adapter returns successfully or rejected if the adapter returns\n      with an error.\n    */\n    reload(options) {\n      var wrappedAdapterOptions;\n      if (typeof options === 'object' && options !== null && options.adapterOptions) {\n        wrappedAdapterOptions = {\n          adapterOptions: options.adapterOptions\n        };\n      }\n      this.isReloading = true;\n      return Private.PromiseObject.create({\n        promise: this._internalModel.reload(wrappedAdapterOptions).then(() => this).finally(() => {\n          this.isReloading = false;\n        })\n      });\n    }\n    attr() {\n      (debug.assert('The `attr` method is not available on Model, a Snapshot was probably expected. Are you passing a Model instead of a Snapshot to your serializer?', false));\n    }\n\n    /**\n      Get the reference for the specified belongsTo relationship.\n       Example\n       ```app/models/blog.js\n      import Model, { belongsTo } from '@ember-data/model';\n       export default class BlogModel extends Model {\n        @belongsTo({ async: true }) user;\n      }\n      ```\n       ```javascript\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n      let userRef = blog.belongsTo('user');\n       // check if the user relationship is loaded\n      let isLoaded = userRef.value() !== null;\n       // get the record of the reference (null if not yet available)\n      let user = userRef.value();\n       // get the identifier of the reference\n      if (userRef.remoteType() === \"id\") {\n        let id = userRef.id();\n      } else if (userRef.remoteType() === \"link\") {\n        let link = userRef.link();\n      }\n       // load user (via store.findRecord or store.findBelongsTo)\n      userRef.load().then(...)\n       // or trigger a reload\n      userRef.reload().then(...)\n       // provide data for reference\n      userRef.push({\n        type: 'user',\n        id: 1,\n        attributes: {\n          username: \"@user\"\n        }\n      }).then(function(user) {\n        userRef.value() === user;\n      });\n      ```\n       @method belongsTo\n      @public\n      @param {String} name of the relationship\n      @since 2.5.0\n      @return {BelongsToReference} reference for this relationship\n    */\n    belongsTo(name) {\n      return this._internalModel.referenceFor('belongsTo', name);\n    }\n\n    /**\n      Get the reference for the specified hasMany relationship.\n       Example\n       ```app/models/blog.js\n      import Model, { hasMany } from '@ember-data/model';\n       export default class BlogModel extends Model {\n        @hasMany({ async: true }) comments;\n      }\n       let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            comments: {\n              data: [\n                { type: 'comment', id: 1 },\n                { type: 'comment', id: 2 }\n              ]\n            }\n          }\n        }\n      });\n      let commentsRef = blog.hasMany('comments');\n       // check if the comments are loaded already\n      let isLoaded = commentsRef.value() !== null;\n       // get the records of the reference (null if not yet available)\n      let comments = commentsRef.value();\n       // get the identifier of the reference\n      if (commentsRef.remoteType() === \"ids\") {\n        let ids = commentsRef.ids();\n      } else if (commentsRef.remoteType() === \"link\") {\n        let link = commentsRef.link();\n      }\n       // load comments (via store.findMany or store.findHasMany)\n      commentsRef.load().then(...)\n       // or trigger a reload\n      commentsRef.reload().then(...)\n       // provide data for reference\n      commentsRef.push([{ type: 'comment', id: 1 }, { type: 'comment', id: 2 }]).then(function(comments) {\n        commentsRef.value() === comments;\n      });\n      ```\n       @method hasMany\n      @public\n      @param {String} name of the relationship\n      @since 2.5.0\n      @return {HasManyReference} reference for this relationship\n    */\n    hasMany(name) {\n      return this._internalModel.referenceFor('hasMany', name);\n    }\n\n    /**\n     Given a callback, iterates over each of the relationships in the model,\n     invoking the callback with the name of each relationship and its relationship\n     descriptor.\n       The callback method you provide should have the following signature (all\n     parameters are optional):\n      ```javascript\n     function(name, descriptor);\n     ```\n      - `name` the name of the current property in the iteration\n     - `descriptor` the meta object that describes this relationship\n      The relationship descriptor argument is an object with the following properties.\n      - **key** <span class=\"type\">String</span> the name of this relationship on the Model\n     - **kind** <span class=\"type\">String</span> \"hasMany\" or \"belongsTo\"\n     - **options** <span class=\"type\">Object</span> the original options hash passed when the relationship was declared\n     - **parentType** <span class=\"type\">Model</span> the type of the Model that owns this relationship\n     - **type** <span class=\"type\">String</span> the type name of the related Model\n      Note that in addition to a callback, you can also pass an optional target\n     object that will be set as `this` on the context.\n      Example\n      ```app/serializers/application.js\n     import JSONSerializer from '@ember-data/serializer/json';\n      export default class ApplicationSerializer extends JSONSerializer {\n        serialize(record, options) {\n        let json = {};\n         record.eachRelationship(function(name, descriptor) {\n          if (descriptor.kind === 'hasMany') {\n            let serializedHasManyName = name.toUpperCase() + '_IDS';\n            json[serializedHasManyName] = record.get(name).mapBy('id');\n          }\n        });\n         return json;\n      }\n    }\n     ```\n      @method eachRelationship\n      @public\n     @param {Function} callback the callback to invoke\n     @param {any} binding the value to which the callback's `this` should be bound\n     */\n    eachRelationship(callback, binding) {\n      this.constructor.eachRelationship(callback, binding);\n    }\n    relationshipFor(name) {\n      return this.constructor.relationshipsByName.get(name);\n    }\n    inverseFor(key) {\n      return this.constructor.inverseFor(key, this._internalModel.store);\n    }\n    eachAttribute(callback, binding) {\n      this.constructor.eachAttribute(callback, binding);\n    }\n    /*\n     These class methods below provide relationship\n     introspection abilities about relationships.\n      A note about the computed properties contained here:\n      **These properties are effectively sealed once called for the first time.**\n     To avoid repeatedly doing expensive iteration over a model's fields, these\n     values are computed once and then cached for the remainder of the runtime of\n     your application.\n      If your application needs to modify a class after its initial definition\n     (for example, using `reopen()` to add additional attributes), make sure you\n     do it before using your model with the store, which uses these properties\n     extensively.\n     */\n    /**\n     For a given relationship name, returns the model type of the relationship.\n      For example, if you define a model like this:\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany('comment') comments;\n     }\n     ```\n      Calling `store.modelFor('post').typeForRelationship('comments', store)` will return `Comment`.\n      @method typeForRelationship\n      @public\n     @static\n     @param {String} name the name of the relationship\n     @param {store} store an instance of Store\n     @return {Model} the type of the relationship, or undefined\n     */\n    static typeForRelationship(name, store) {\n      var relationship = this.relationshipsByName.get(name);\n      return relationship && store.modelFor(relationship.type);\n    }\n    static get inverseMap() {\n      return Object.create(null);\n    }\n\n    /**\n     Find the relationship which is the inverse of the one asked for.\n      For example, if you define models like this:\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n        @hasMany('message') comments;\n      }\n     ```\n      ```app/models/message.js\n     import Model from '@ember-data/model';\n     import { belongsTo } from '@ember-decorators/data';\n      export default class MessageModel extends Model {\n        @belongsTo('post') owner;\n      }\n     ```\n      ``` js\n     store.modelFor('post').inverseFor('comments', store) // { type: App.Message, name: 'owner', kind: 'belongsTo' }\n     store.modelFor('message').inverseFor('owner', store) // { type: App.Post, name: 'comments', kind: 'hasMany' }\n     ```\n      @method inverseFor\n      @public\n     @static\n     @param {String} name the name of the relationship\n     @param {Store} store\n     @return {Object} the inverse relationship, or null\n     */\n    static inverseFor(name, store) {\n      var inverseMap = this.inverseMap;\n      if (inverseMap[name]) {\n        return inverseMap[name];\n      } else {\n        var inverse = this._findInverseFor(name, store);\n        inverseMap[name] = inverse;\n        return inverse;\n      }\n    }\n\n    //Calculate the inverse, ignoring the cache\n    static _findInverseFor(name, store) {\n      var inverseType = this.typeForRelationship(name, store);\n      if (!inverseType) {\n        return null;\n      }\n      var propertyMeta = this.metaForProperty(name);\n      //If inverse is manually specified to be null, like  `comments: hasMany('message', { inverse: null })`\n      var options = propertyMeta.options;\n      if (options.inverse === null) {\n        return null;\n      }\n      var inverseName, inverseKind, inverse, inverseOptions;\n\n      //If inverse is specified manually, return the inverse\n      if (options.inverse) {\n        inverseName = options.inverse;\n        inverse = inverseType.relationshipsByName.get(inverseName);\n        (!(!utils.isNone(inverse)) && debug.assert(\"We found no inverse relationships by the name of '\" + inverseName + \"' on the '\" + inverseType.modelName + \"' model. This is most likely due to a missing attribute on your model definition.\", !utils.isNone(inverse))); // TODO probably just return the whole inverse here\n        inverseKind = inverse.kind;\n        inverseOptions = inverse.options;\n      } else {\n        //No inverse was specified manually, we need to use a heuristic to guess one\n        if (propertyMeta.type === propertyMeta.parentModelName) {\n          (debug.warn(`Detected a reflexive relationship by the name of '${name}' without an inverse option. Look at https://guides.emberjs.com/current/models/relationships/#toc_reflexive-relations for how to explicitly specify inverses.`, false, {\n            id: 'ds.model.reflexive-relationship-without-inverse'\n          }));\n        }\n        var possibleRelationships = findPossibleInverses(this, inverseType, name);\n        if (possibleRelationships.length === 0) {\n          return null;\n        }\n        var filteredRelationships = possibleRelationships.filter(possibleRelationship => {\n          var optionsForRelationship = inverseType.metaForProperty(possibleRelationship.name).options;\n          return name === optionsForRelationship.inverse;\n        });\n        (!(filteredRelationships.length < 2) && debug.assert(\"You defined the '\" + name + \"' relationship on \" + this + ', but you defined the inverse relationships of type ' + inverseType.toString() + ' multiple times. Look at https://guides.emberjs.com/current/models/relationships/#toc_explicit-inverses for how to explicitly specify inverses', filteredRelationships.length < 2));\n        if (filteredRelationships.length === 1) {\n          possibleRelationships = filteredRelationships;\n        }\n        (!(possibleRelationships.length === 1) && debug.assert(\"You defined the '\" + name + \"' relationship on \" + this + ', but multiple possible inverse relationships of type ' + this + ' were found on ' + inverseType + '. Look at https://guides.emberjs.com/current/models/relationships/#toc_explicit-inverses for how to explicitly specify inverses', possibleRelationships.length === 1));\n        inverseName = possibleRelationships[0].name;\n        inverseKind = possibleRelationships[0].kind;\n        inverseOptions = possibleRelationships[0].options;\n      }\n      (!(!inverseOptions || inverseOptions.inverse !== null) && debug.assert(`The ${inverseType.modelName}:${inverseName} relationship declares 'inverse: null', but it was resolved as the inverse for ${this.modelName}:${name}.`, !inverseOptions || inverseOptions.inverse !== null));\n      return {\n        type: inverseType,\n        name: inverseName,\n        kind: inverseKind,\n        options: inverseOptions\n      };\n    }\n\n    /**\n     The model's relationships as a map, keyed on the type of the\n     relationship. The value of each entry is an array containing a descriptor\n     for each relationship with that type, describing the name of the relationship\n     as well as the type.\n      For example, given the following model definition:\n      ```app/models/blog.js\n     import Model, { belongsTo, hasMany } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @hasMany('user') users;\n        @belongsTo('user') owner;\n        @hasMany('post') posts;\n      }\n     ```\n      This computed property would return a map describing these\n     relationships, like this:\n      ```javascript\n     import { get } from '@ember/object';\n     import Blog from 'app/models/blog';\n     import User from 'app/models/user';\n     import Post from 'app/models/post';\n      let relationships = Blog.relationships;\n     relationships.get('user');\n     //=> [ { name: 'users', kind: 'hasMany' },\n     //     { name: 'owner', kind: 'belongsTo' } ]\n     relationships.get('post');\n     //=> [ { name: 'posts', kind: 'hasMany' } ]\n     ```\n      @property relationships\n      @public\n     @static\n     @type Map\n     @readOnly\n     */\n\n    static get relationships() {\n      var map = new Map();\n      var relationshipsByName = this.relationshipsByName;\n\n      // Loop through each computed property on the class\n      relationshipsByName.forEach(desc => {\n        var {\n          type\n        } = desc;\n        if (!map.has(type)) {\n          map.set(type, []);\n        }\n        map.get(type).push(desc);\n      });\n      return map;\n    }\n\n    /**\n     A hash containing lists of the model's relationships, grouped\n     by the relationship kind. For example, given a model with this\n     definition:\n      ```app/models/blog.js\n     import Model, { belongsTo, hasMany } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @hasMany('user') users;\n        @belongsTo('user') owner;\n         @hasMany('post') posts;\n      }\n     ```\n      This property would contain the following:\n      ```javascript\n     import { get } from '@ember/object';\n     import Blog from 'app/models/blog';\n      let relationshipNames = Blog.relationshipNames;\n     relationshipNames.hasMany;\n     //=> ['users', 'posts']\n     relationshipNames.belongsTo;\n     //=> ['owner']\n     ```\n      @property relationshipNames\n      @public\n     @static\n     @type Object\n     @readOnly\n     */\n    static get relationshipNames() {\n      var names = {\n        hasMany: [],\n        belongsTo: []\n      };\n      this.eachComputedProperty((name, meta) => {\n        if (meta.isRelationship) {\n          names[meta.kind].push(name);\n        }\n      });\n      return names;\n    }\n\n    /**\n     An array of types directly related to a model. Each type will be\n     included once, regardless of the number of relationships it has with\n     the model.\n      For example, given a model with this definition:\n      ```app/models/blog.js\n     import Model, { belongsTo, hasMany } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @hasMany('user') users;\n        @belongsTo('user') owner;\n         @hasMany('post') posts;\n      }\n     ```\n      This property would contain the following:\n      ```javascript\n     import { get } from '@ember/object';\n     import Blog from 'app/models/blog';\n      let relatedTypes = Blog.relatedTypes');\n     //=> [ User, Post ]\n     ```\n      @property relatedTypes\n      @public\n     @static\n     @type Ember.Array\n     @readOnly\n     */\n    static get relatedTypes() {\n      var types = [];\n      var rels = this.relationshipsObject;\n      var relationships = Object.keys(rels);\n\n      // create an array of the unique types involved\n      // in relationships\n      for (var i = 0; i < relationships.length; i++) {\n        var name = relationships[i];\n        var meta = rels[name];\n        var modelName = meta.type;\n        if (types.indexOf(modelName) === -1) {\n          types.push(modelName);\n        }\n      }\n      return types;\n    }\n\n    /**\n     A map whose keys are the relationships of a model and whose values are\n     relationship descriptors.\n      For example, given a model with this\n     definition:\n      ```app/models/blog.js\n     import Model, { belongsTo, hasMany } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @hasMany('user') users;\n        @belongsTo('user') owner;\n         @hasMany('post') posts;\n      }\n     ```\n      This property would contain the following:\n      ```javascript\n     import { get } from '@ember/object';\n     import Blog from 'app/models/blog';\n      let relationshipsByName = Blog.relationshipsByName;\n     relationshipsByName.get('users');\n     //=> { key: 'users', kind: 'hasMany', type: 'user', options: Object, isRelationship: true }\n     relationshipsByName.get('owner');\n     //=> { key: 'owner', kind: 'belongsTo', type: 'user', options: Object, isRelationship: true }\n     ```\n      @property relationshipsByName\n      @public\n     @static\n     @type Map\n     @readOnly\n     */\n    static get relationshipsByName() {\n      var map = new Map();\n      var rels = this.relationshipsObject;\n      var relationships = Object.keys(rels);\n      for (var i = 0; i < relationships.length; i++) {\n        var key = relationships[i];\n        var value = rels[key];\n        map.set(value.key, value);\n      }\n      return map;\n    }\n    static get relationshipsObject() {\n      var relationships = Object.create(null);\n      var modelName = this.modelName;\n      this.eachComputedProperty((name, meta) => {\n        if (meta.isRelationship) {\n          meta.key = name;\n          meta.name = name;\n          meta.parentModelName = modelName;\n          relationships[name] = relationshipFromMeta(meta);\n        }\n      });\n      return relationships;\n    }\n\n    /**\n     A map whose keys are the fields of the model and whose values are strings\n     describing the kind of the field. A model's fields are the union of all of its\n     attributes and relationships.\n      For example:\n      ```app/models/blog.js\n     import Model, { attr, belongsTo, hasMany } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @hasMany('user') users;\n        @belongsTo('user') owner;\n         @hasMany('post') posts;\n         @attr('string') title;\n      }\n     ```\n      ```js\n     import { get } from '@ember/object';\n     import Blog from 'app/models/blog'\n      let fields = Blog.fields;\n     fields.forEach(function(kind, field) {\n        console.log(field, kind);\n      });\n      // prints:\n     // users, hasMany\n     // owner, belongsTo\n     // posts, hasMany\n     // title, attribute\n     ```\n      @property fields\n      @public\n     @static\n     @type Map\n     @readOnly\n     */\n    static get fields() {\n      var map = new Map();\n      this.eachComputedProperty((name, meta) => {\n        if (meta.isRelationship) {\n          map.set(name, meta.kind);\n        } else if (meta.isAttribute) {\n          map.set(name, 'attribute');\n        }\n      });\n      return map;\n    }\n\n    /**\n     Given a callback, iterates over each of the relationships in the model,\n     invoking the callback with the name of each relationship and its relationship\n     descriptor.\n      @method eachRelationship\n      @public\n     @static\n     @param {Function} callback the callback to invoke\n     @param {any} binding the value to which the callback's `this` should be bound\n     */\n    static eachRelationship(callback, binding) {\n      this.relationshipsByName.forEach((relationship, name) => {\n        callback.call(binding, name, relationship);\n      });\n    }\n\n    /**\n     Given a callback, iterates over each of the types related to a model,\n     invoking the callback with the related type's class. Each type will be\n     returned just once, regardless of how many different relationships it has\n     with a model.\n      @method eachRelatedType\n      @public\n     @static\n     @param {Function} callback the callback to invoke\n     @param {any} binding the value to which the callback's `this` should be bound\n     */\n    static eachRelatedType(callback, binding) {\n      var relationshipTypes = this.relatedTypes;\n      for (var i = 0; i < relationshipTypes.length; i++) {\n        var type = relationshipTypes[i];\n        callback.call(binding, type);\n      }\n    }\n    static determineRelationshipType(knownSide, store) {\n      var knownKey = knownSide.key;\n      var knownKind = knownSide.kind;\n      var inverse = this.inverseFor(knownKey, store);\n      // let key;\n      var otherKind;\n      if (!inverse) {\n        return knownKind === 'belongsTo' ? 'oneToNone' : 'manyToNone';\n      }\n\n      // key = inverse.name;\n      otherKind = inverse.kind;\n      if (otherKind === 'belongsTo') {\n        return knownKind === 'belongsTo' ? 'oneToOne' : 'manyToOne';\n      } else {\n        return knownKind === 'belongsTo' ? 'oneToMany' : 'manyToMany';\n      }\n    }\n\n    /**\n     A map whose keys are the attributes of the model (properties\n     described by attr) and whose values are the meta object for the\n     property.\n      Example\n      ```app/models/person.js\n     import Model, { attr } from '@ember-data/model';\n      export default class PersonModel extends Model {\n        @attr('string') firstName;\n        @attr('string') lastName;\n        @attr('date') birthday;\n      }\n     ```\n      ```javascript\n     import { get } from '@ember/object';\n     import Blog from 'app/models/blog'\n      let attributes = Person.attributes\n      attributes.forEach(function(meta, name) {\n        console.log(name, meta);\n      });\n      // prints:\n     // firstName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"firstName\"}\n     // lastName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"lastName\"}\n     // birthday {type: \"date\", isAttribute: true, options: Object, parentType: function, name: \"birthday\"}\n     ```\n      @property attributes\n      @public\n     @static\n     @type {Map}\n     @readOnly\n     */\n    static get attributes() {\n      var map = new Map();\n      this.eachComputedProperty((name, meta) => {\n        if (meta.isAttribute) {\n          (!(name !== 'id') && debug.assert(\"You may not set `id` as an attribute on your model. Please remove any lines that look like: `id: attr('<type>')` from \" + this.toString(), name !== 'id'));\n          meta.name = name;\n          map.set(name, meta);\n        }\n      });\n      return map;\n    }\n\n    /**\n     A map whose keys are the attributes of the model (properties\n     described by attr) and whose values are type of transformation\n     applied to each attribute. This map does not include any\n     attributes that do not have an transformation type.\n      Example\n      ```app/models/person.js\n     import Model, { attr } from '@ember-data/model';\n      export default class PersonModel extends Model {\n        @attr firstName;\n        @attr('string') lastName;\n        @attr('date') birthday;\n      }\n     ```\n      ```javascript\n     import { get } from '@ember/object';\n     import Person from 'app/models/person';\n      let transformedAttributes = Person.transformedAttributes\n      transformedAttributes.forEach(function(field, type) {\n        console.log(field, type);\n      });\n      // prints:\n     // lastName string\n     // birthday date\n     ```\n      @property transformedAttributes\n      @public\n     @static\n     @type {Map}\n     @readOnly\n     */\n    static get transformedAttributes() {\n      var map = new Map();\n      this.eachAttribute((key, meta) => {\n        if (meta.type) {\n          map.set(key, meta.type);\n        }\n      });\n      return map;\n    }\n\n    /**\n     Iterates through the attributes of the model, calling the passed function on each\n     attribute.\n      The callback method you provide should have the following signature (all\n     parameters are optional):\n      ```javascript\n     function(name, meta);\n     ```\n      - `name` the name of the current property in the iteration\n     - `meta` the meta object for the attribute property in the iteration\n      Note that in addition to a callback, you can also pass an optional target\n     object that will be set as `this` on the context.\n      Example\n      ```javascript\n     import Model, { attr } from '@ember-data/model';\n      class PersonModel extends Model {\n        @attr('string') firstName;\n        @attr('string') lastName;\n        @attr('date') birthday;\n      }\n      PersonModel.eachAttribute(function(name, meta) {\n        console.log(name, meta);\n      });\n      // prints:\n     // firstName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"firstName\"}\n     // lastName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"lastName\"}\n     // birthday {type: \"date\", isAttribute: true, options: Object, parentType: function, name: \"birthday\"}\n     ```\n      @method eachAttribute\n      @public\n     @param {Function} callback The callback to execute\n     @param {Object} [binding] the value to which the callback's `this` should be bound\n     @static\n     */\n    static eachAttribute(callback, binding) {\n      this.attributes.forEach((meta, name) => {\n        callback.call(binding, name, meta);\n      });\n    }\n\n    /**\n     Iterates through the transformedAttributes of the model, calling\n     the passed function on each attribute. Note the callback will not be\n     called for any attributes that do not have an transformation type.\n      The callback method you provide should have the following signature (all\n     parameters are optional):\n      ```javascript\n     function(name, type);\n     ```\n      - `name` the name of the current property in the iteration\n     - `type` a string containing the name of the type of transformed\n     applied to the attribute\n      Note that in addition to a callback, you can also pass an optional target\n     object that will be set as `this` on the context.\n      Example\n      ```javascript\n     import Model, { attr } from '@ember-data/model';\n      let Person = Model.extend({\n        firstName: attr(),\n        lastName: attr('string'),\n        birthday: attr('date')\n      });\n      Person.eachTransformedAttribute(function(name, type) {\n        console.log(name, type);\n      });\n      // prints:\n     // lastName string\n     // birthday date\n     ```\n      @method eachTransformedAttribute\n      @public\n     @param {Function} callback The callback to execute\n     @param {Object} [binding] the value to which the callback's `this` should be bound\n     @static\n     */\n    static eachTransformedAttribute(callback, binding) {\n      this.transformedAttributes.forEach((type, name) => {\n        callback.call(binding, name, type);\n      });\n    }\n\n    /**\n     Returns the name of the model class.\n      @method toString\n      @public\n     @static\n     */\n    static toString() {\n      return `model:${EmberObject.get(this, 'modelName')}`;\n    }\n  }, _class2.isModel = true, _class2.modelName = null, _class2), (_applyDecoratedDescriptor$1(_class$1.prototype, \"isEmpty\", [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$1.prototype, \"isEmpty\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1.prototype, \"isLoading\", [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$1.prototype, \"isLoading\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1.prototype, \"isLoaded\", [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$1.prototype, \"isLoaded\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1.prototype, \"hasDirtyAttributes\", [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$1.prototype, \"hasDirtyAttributes\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1.prototype, \"isSaving\", [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$1.prototype, \"isSaving\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1.prototype, \"isDeleted\", [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$1.prototype, \"isDeleted\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1.prototype, \"isNew\", [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$1.prototype, \"isNew\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1.prototype, \"isValid\", [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$1.prototype, \"isValid\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1.prototype, \"dirtyType\", [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$1.prototype, \"dirtyType\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1.prototype, \"isError\", [flagToggledDecorator], Object.getOwnPropertyDescriptor(_class$1.prototype, \"isError\"), _class$1.prototype), _descriptor$1 = _applyDecoratedDescriptor$1(_class$1.prototype, \"isReloading\", [tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor$1(_class$1.prototype, \"id\", [tagged], Object.getOwnPropertyDescriptor(_class$1.prototype, \"id\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1.prototype, \"currentState\", [tagged], Object.getOwnPropertyDescriptor(_class$1.prototype, \"currentState\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1.prototype, \"errors\", [computeOnce], Object.getOwnPropertyDescriptor(_class$1.prototype, \"errors\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1.prototype, \"adapterError\", [flagToggledDecorator], Object.getOwnPropertyDescriptor(_class$1.prototype, \"adapterError\"), _class$1.prototype), _applyDecoratedDescriptor$1(_class$1, \"inverseMap\", [computeOnce], Object.getOwnPropertyDescriptor(_class$1, \"inverseMap\"), _class$1), _applyDecoratedDescriptor$1(_class$1, \"relationships\", [computeOnce], Object.getOwnPropertyDescriptor(_class$1, \"relationships\"), _class$1), _applyDecoratedDescriptor$1(_class$1, \"relationshipNames\", [computeOnce], Object.getOwnPropertyDescriptor(_class$1, \"relationshipNames\"), _class$1), _applyDecoratedDescriptor$1(_class$1, \"relatedTypes\", [computeOnce], Object.getOwnPropertyDescriptor(_class$1, \"relatedTypes\"), _class$1), _applyDecoratedDescriptor$1(_class$1, \"relationshipsByName\", [computeOnce], Object.getOwnPropertyDescriptor(_class$1, \"relationshipsByName\"), _class$1), _applyDecoratedDescriptor$1(_class$1, \"relationshipsObject\", [computeOnce], Object.getOwnPropertyDescriptor(_class$1, \"relationshipsObject\"), _class$1), _applyDecoratedDescriptor$1(_class$1, \"fields\", [computeOnce], Object.getOwnPropertyDescriptor(_class$1, \"fields\"), _class$1), _applyDecoratedDescriptor$1(_class$1, \"attributes\", [computeOnce], Object.getOwnPropertyDescriptor(_class$1, \"attributes\"), _class$1), _applyDecoratedDescriptor$1(_class$1, \"transformedAttributes\", [computeOnce], Object.getOwnPropertyDescriptor(_class$1, \"transformedAttributes\"), _class$1)), _class$1); // this is required to prevent `init` from passing\n  // the values initialized during create to `setUnknownProperty`\n  Model.prototype._internalModel = null;\n  Model.prototype.store = null;\n  Model.prototype._createProps = null;\n  {\n    /**\n     Provides info about the model for debugging purposes\n     by grouping the properties into more semantic groups.\n      Meant to be used by debugging tools such as the Chrome Ember Extension.\n      - Groups all attributes in \"Attributes\" group.\n     - Groups all belongsTo relationships in \"Belongs To\" group.\n     - Groups all hasMany relationships in \"Has Many\" group.\n     - Groups all flags in \"Flags\" group.\n     - Flags relationship CPs as expensive properties.\n      @method _debugInfo\n     @for Model\n     @private\n     */\n    Model.prototype._debugInfo = function () {\n      var attributes = ['id'];\n      var relationships = {};\n      var expensiveProperties = [];\n      this.eachAttribute((name, meta) => attributes.push(name));\n      var groups = [{\n        name: 'Attributes',\n        properties: attributes,\n        expand: true\n      }];\n      this.eachRelationship((name, relationship) => {\n        var properties = relationships[relationship.kind];\n        if (properties === undefined) {\n          properties = relationships[relationship.kind] = [];\n          groups.push({\n            name: relationship.kind,\n            properties,\n            expand: true\n          });\n        }\n        properties.push(name);\n        expensiveProperties.push(name);\n      });\n      groups.push({\n        name: 'Flags',\n        properties: ['isLoaded', 'hasDirtyAttributes', 'isSaving', 'isDeleted', 'isError', 'isNew', 'isValid']\n      });\n      return {\n        propertyInfo: {\n          // include all other mixins / properties (not just the grouped ones)\n          includeOtherProperties: true,\n          groups: groups,\n          // don't pre-calculate unless cached\n          expensiveProperties: expensiveProperties\n        }\n      };\n    };\n  }\n  {\n    /**\n    Override the default event firing from Ember.Evented to\n    also call methods with the given name.\n     @method trigger\n    @private\n    @param {String} name\n    */\n    Model.reopen(Private.DeprecatedEvented, {\n      trigger(name) {\n        {\n          var fn = this[name];\n          if (typeof fn === 'function') {\n            var length = arguments.length;\n            var args = new Array(length - 1);\n            for (var i = 1; i < length; i++) {\n              args[i - 1] = arguments[i];\n            }\n            fn.apply(this, args);\n          }\n        }\n        var _hasEvent = this._has(name) ;\n        if (_hasEvent) {\n          this._super(...arguments);\n        }\n      }\n    });\n  }\n  {\n    /**\n      Use [JSONSerializer](JSONSerializer.html) to\n      get the JSON representation of a record.\n       `toJSON` takes an optional hash as a parameter, currently\n      supported options are:\n       - `includeId`: `true` if the record's ID should be included in the\n        JSON representation.\n       @method toJSON\n      @public\n      @param {Object} options\n      @return {Object} A JSON representation of the object.\n    */\n    Model.reopen({\n      toJSON(options) {\n        // container is for lazy transform lookups\n        (debug.deprecate(`Called the built-in \\`toJSON\\` on the record \"${this.constructor.modelName}:${this.id}\". The built-in \\`toJSON\\` method on instances of classes extending \\`Model\\` is deprecated. For more information see the link below.`, false, {\n          id: 'ember-data:model.toJSON',\n          until: '4.0',\n          url: 'https://deprecations.emberjs.com/ember-data/v3.x#toc_record-toJSON',\n          for: '@ember-data/model',\n          since: {\n            available: '3.15',\n            enabled: '3.15'\n          }\n        }));\n        var serializer = this._internalModel.store.serializerFor('-default');\n        var snapshot = this._internalModel.createSnapshot();\n        return serializer.serialize(snapshot, options);\n      }\n    });\n  }\n  {\n    var lookupDescriptor = function lookupDescriptor(obj, keyName) {\n      var current = obj;\n      do {\n        var descriptor = Object.getOwnPropertyDescriptor(current, keyName);\n        if (descriptor !== undefined) {\n          return descriptor;\n        }\n        current = Object.getPrototypeOf(current);\n      } while (current !== null);\n      return null;\n    };\n    var isBasicDesc = function isBasicDesc(desc) {\n      return !desc || !desc.get && !desc.set && desc.enumerable === true && desc.writable === true && desc.configurable === true;\n    };\n    var isDefaultEmptyDescriptor = function isDefaultEmptyDescriptor(obj, keyName) {\n      var instanceDesc = lookupDescriptor(obj, keyName);\n      return isBasicDesc(instanceDesc) && lookupDescriptor(obj.constructor, keyName) === null;\n    };\n    var lookupDeprecations;\n    var _deprecatedLifecycleMethods;\n    {\n      var INSTANCE_DEPRECATIONS = new WeakMap();\n      _deprecatedLifecycleMethods = ['becameError', 'becameInvalid', 'didCreate', 'didDelete', 'didLoad', 'didUpdate', 'ready', 'rolledBack'];\n      lookupDeprecations = function lookupInstanceDeprecations(instance) {\n        var deprecations = INSTANCE_DEPRECATIONS.get(instance);\n        if (!deprecations) {\n          deprecations = new Set();\n          INSTANCE_DEPRECATIONS.set(instance, deprecations);\n        }\n        return deprecations;\n      };\n    }\n    Model.reopen({\n      init() {\n        this._super(...arguments);\n        {\n          this._getDeprecatedEventedInfo = () => `${this._internalModel.modelName}#${this.id}`;\n        }\n        if (!isDefaultEmptyDescriptor(this, '_internalModel') || !(this._internalModel instanceof Private.InternalModel)) {\n          throw new Error(`'_internalModel' is a reserved property name on instances of classes extending Model. Please choose a different property name for ${this.constructor.toString()}`);\n        }\n        var ourDescriptor = lookupDescriptor(Model.prototype, 'currentState');\n        var theirDescriptor = lookupDescriptor(this, 'currentState');\n        var realState = this.___recordState || this._internalModel.currentState;\n        if (ourDescriptor.get !== theirDescriptor.get || realState !== this.currentState) {\n          throw new Error(`'currentState' is a reserved property name on instances of classes extending Model. Please choose a different property name for ${this.constructor.toString()}`);\n        }\n        var ID_DESCRIPTOR = lookupDescriptor(Model.prototype, 'id');\n        var idDesc = lookupDescriptor(this, 'id');\n        if (idDesc.get !== ID_DESCRIPTOR.get) {\n          throw new EmberError__default[\"default\"](`You may not set 'id' as an attribute on your model. Please remove any lines that look like: \\`id: attr('<type>')\\` from ${this.constructor.toString()}`);\n        }\n        {\n          var lifecycleDeprecations = lookupDeprecations(this.constructor);\n          _deprecatedLifecycleMethods.forEach(methodName => {\n            if (typeof this[methodName] === 'function' && !lifecycleDeprecations.has(methodName)) {\n              (debug.deprecate(`You defined a \\`${methodName}\\` method for ${this.constructor.toString()} but lifecycle events for models have been deprecated.`, false, {\n                id: 'ember-data:record-lifecycle-event-methods',\n                until: '4.0',\n                url: 'https://deprecations.emberjs.com/ember-data/v3.x#toc_record-lifecycle-event-methods',\n                for: '@ember-data/model',\n                since: {\n                  available: '3.12',\n                  enabled: '3.12'\n                }\n              }));\n              lifecycleDeprecations.add(methodName);\n            }\n          });\n        }\n      }\n    });\n  }\n\n  /**\n    @module @ember-data/model\n  */\n\n  /**\n    @method diffArray\n    @internal\n    @param {Array} oldArray the old array\n    @param {Array} newArray the new array\n    @return {hash} {\n        firstChangeIndex: <integer>,  // null if no change\n        addedCount: <integer>,        // 0 if no change\n        removedCount: <integer>       // 0 if no change\n      }\n  */\n  function diffArray(oldArray, newArray) {\n    var oldLength = oldArray.length;\n    var newLength = newArray.length;\n    var shortestLength = Math.min(oldLength, newLength);\n    var firstChangeIndex = null; // null signifies no changes\n\n    // find the first change\n    for (var i = 0; i < shortestLength; i++) {\n      // compare each item in the array\n      if (oldArray[i] !== newArray[i]) {\n        firstChangeIndex = i;\n        break;\n      }\n    }\n    if (firstChangeIndex === null && newLength !== oldLength) {\n      // no change found in the overlapping block\n      // and array lengths differ,\n      // so change starts at end of overlap\n      firstChangeIndex = shortestLength;\n    }\n    var addedCount = 0;\n    var removedCount = 0;\n    if (firstChangeIndex !== null) {\n      // we found a change, find the end of the change\n      var unchangedEndBlockLength = shortestLength - firstChangeIndex;\n      // walk back from the end of both arrays until we find a change\n      for (var _i = 1; _i <= shortestLength; _i++) {\n        // compare each item in the array\n        if (oldArray[oldLength - _i] !== newArray[newLength - _i]) {\n          unchangedEndBlockLength = _i - 1;\n          break;\n        }\n      }\n      addedCount = newLength - unchangedEndBlockLength - firstChangeIndex;\n      removedCount = oldLength - unchangedEndBlockLength - firstChangeIndex;\n    }\n    return {\n      firstChangeIndex,\n      addedCount,\n      removedCount\n    };\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    A `ManyArray` is a `MutableArray` that represents the contents of a has-many\n    relationship.\n\n    The `ManyArray` is instantiated lazily the first time the relationship is\n    requested.\n\n    This class is not intended to be directly instantiated by consuming applications.\n\n    ### Inverses\n\n    Often, the relationships in Ember Data applications will have\n    an inverse. For example, imagine the following models are\n    defined:\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default class PostModel extends Model {\n      @hasMany('comment') comments;\n    }\n    ```\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default class CommentModel extends Model {\n      @belongsTo('post') post;\n    }\n    ```\n\n    If you created a new instance of `Post` and added\n    a `Comment` record to its `comments` has-many\n    relationship, you would expect the comment's `post`\n    property to be set to the post that contained\n    the has-many.\n\n    We call the record to which a relationship belongs-to the\n    relationship's _owner_.\n\n    @class ManyArray\n    @public\n    @extends EmberObject\n    @uses Ember.MutableArray, DeprecatedEvented\n  */\n  var manyArray = EmberObject__default[\"default\"].extend(MutableArray__default[\"default\"], Private.DeprecatedEvented, {\n    isAsync: false,\n    isLoaded: false,\n    init() {\n      this._super(...arguments);\n\n      /**\n      The loading state of this array\n       @property {Boolean} isLoaded\n      @public\n      */\n      this.isLoaded = this.isLoaded || false;\n      this._length = 0;\n\n      /**\n      Metadata associated with the request for async hasMany relationships.\n       Example\n       Given that the server returns the following JSON payload when fetching a\n      hasMany relationship:\n       ```js\n      {\n        \"comments\": [{\n          \"id\": 1,\n          \"comment\": \"This is the first comment\",\n        }, {\n      // ...\n        }],\n         \"meta\": {\n          \"page\": 1,\n          \"total\": 5\n        }\n      }\n      ```\n       You can then access the meta data via the `meta` property:\n       ```js\n      let comments = await post.comments;\n      let meta = comments.meta;\n       // meta.page => 1\n      // meta.total => 5\n      ```\n       @property {Object | null} meta\n      @public\n      */\n      this._meta = this._meta || null;\n\n      /**\n       * Retrieve the links for this relationship\n       *\n       @property {Object | null} links\n       @public\n       */\n      this._links = this._links || null;\n\n      /**\n      `true` if the relationship is polymorphic, `false` otherwise.\n       @property {Boolean} isPolymorphic\n      @private\n      */\n      this.isPolymorphic = this.isPolymorphic || false;\n\n      /**\n      The relationship which manages this array.\n       @property {ManyRelationship} relationship\n      @private\n      */\n      this.currentState = [];\n      this._isUpdating = false;\n      this._isDirty = false;\n      /*\n       * Unfortunately ArrayProxy adds it's observers lazily,\n       * so in a first-render situation we may sometimes notify\n       * prior to the ArrayProxy having installed it's observers\n       * (which occurs during _revalidate()).\n       *\n       * This leads to the flush occuring on access, the flush takes\n       * the hasObservers codepath which in code out of our control\n       * notifies again leading to a glimmer rendering invalidation error.\n       *\n       * We use this flag to detect the case where we notified without\n       * array observers but observers were installed prior to flush.\n       *\n       * We do not need to fire array observers at all in this case\n       * since it will be the first-access for those observers.\n       */\n      this._hasNotified = false;\n      // make sure we initialize to the correct state\n      // since the user has already accessed\n      this.retrieveLatest();\n    },\n    // TODO refactor away _hasArrayObservers for tests\n    get _hasArrayObservers() {\n      return this.hasArrayObservers || this.__hasArrayObservers;\n    },\n    notify() {\n      this._isDirty = true;\n      if (this._hasArrayObservers && !this._hasNotified) {\n        this.retrieveLatest();\n      } else {\n        this._hasNotified = true;\n        this.notifyPropertyChange('[]');\n        this.notifyPropertyChange('length');\n        this.notifyPropertyChange('firstObject');\n        this.notifyPropertyChange('lastObject');\n      }\n    },\n    get length() {\n      if (this._isDirty) {\n        this.retrieveLatest();\n      }\n      // By using `get()`, the tracking system knows to pay attention to changes that occur.\n      EmberObject.get(this, '[]');\n      return this._length;\n    },\n    set length(value) {\n      this._length = value;\n    },\n    get links() {\n      EmberObject.get(this, '[]');\n      if (this._isDirty) {\n        this.retrieveLatest();\n      }\n      return this._links;\n    },\n    set links(v) {\n      this._links = v;\n    },\n    get meta() {\n      EmberObject.get(this, '[]');\n      if (this._isDirty) {\n        this.retrieveLatest();\n      }\n      return this._meta;\n    },\n    set meta(v) {\n      this._meta = v;\n    },\n    objectAt(index) {\n      if (this._isDirty) {\n        this.retrieveLatest();\n      }\n      var internalModel = this.currentState[index];\n      if (internalModel === undefined) {\n        return;\n      }\n      return internalModel.getRecord();\n    },\n    replace(idx, amt, objects) {\n      (!(!this._isUpdating) && debug.assert(`Cannot push mutations to the cache while updating the relationship from cache`, !this._isUpdating));\n      this.store._backburner.join(() => {\n        var internalModels;\n        if (amt > 0) {\n          internalModels = this.currentState.slice(idx, idx + amt);\n          this.recordData.removeFromHasMany(this.key, internalModels.map(im => Private.recordDataFor(im)));\n        }\n        if (objects) {\n          (!(Array.isArray(objects) || EmberArray__default[\"default\"].detect(objects)) && debug.assert('The third argument to replace needs to be an array.', Array.isArray(objects) || EmberArray__default[\"default\"].detect(objects)));\n          this.recordData.addToHasMany(this.key, objects.map(obj => Private.recordDataFor(obj)), idx);\n        }\n        this.notify();\n      });\n    },\n    retrieveLatest() {\n      // It’s possible the parent side of the relationship may have been destroyed by this point\n      if (this.isDestroyed || this.isDestroying || this._isUpdating) {\n        return;\n      }\n      this._isDirty = false;\n      this._isUpdating = true;\n      var jsonApi = this.recordData.getHasMany(this.key);\n      var internalModels = [];\n      if (jsonApi.data) {\n        for (var i = 0; i < jsonApi.data.length; i++) {\n          var im = this.store._internalModelForResource(jsonApi.data[i]);\n          var shouldRemove = im._isDematerializing || im.currentState.isEmpty || !im.currentState.isLoaded;\n          if (!shouldRemove) {\n            internalModels.push(im);\n          }\n        }\n      }\n      if (jsonApi.meta) {\n        this._meta = jsonApi.meta;\n      }\n      if (jsonApi.links) {\n        this._links = jsonApi.links;\n      }\n      if (this._hasArrayObservers && !this._hasNotified) {\n        // diff to find changes\n        var diff = diffArray(this.currentState, internalModels);\n        // it's null if no change found\n        if (diff.firstChangeIndex !== null) {\n          // we found a change\n          this.arrayContentWillChange(diff.firstChangeIndex, diff.removedCount, diff.addedCount);\n          this._length = internalModels.length;\n          this.currentState = internalModels;\n          this.arrayContentDidChange(diff.firstChangeIndex, diff.removedCount, diff.addedCount);\n        }\n      } else {\n        this._hasNotified = false;\n        this._length = internalModels.length;\n        this.currentState = internalModels;\n      }\n      this._isUpdating = false;\n    },\n    /**\n      Reloads all of the records in the manyArray. If the manyArray\n      holds a relationship that was originally fetched using a links url\n      Ember Data will revisit the original links url to repopulate the\n      relationship.\n       If the manyArray holds the result of a `store.query()` reload will\n      re-run the original query.\n       Example\n       ```javascript\n      let user = store.peekRecord('user', '1')\n      await login(user);\n       let permissions = await user.permissions;\n      await permissions.reload();\n      ```\n       @method reload\n      @public\n    */\n    reload(options) {\n      // TODO this is odd, we don't ask the store for anything else like this?\n      return this.store.reloadManyArray(this, this.internalModel, this.key, options);\n    },\n    /**\n      Saves all of the records in the `ManyArray`.\n       Example\n       ```javascript\n      let inbox = await store.findRecord('inbox', '1');\n      let messages = await inbox.messages;\n      messages.forEach((message) => {\n        message.isRead = true;\n      });\n      messages.save();\n      ```\n       @method save\n      @public\n      @return {PromiseArray} promise\n    */\n    save() {\n      var manyArray = this;\n      var promiseLabel = 'DS: ManyArray#save ' + this.type;\n      var promise = rsvp.all(this.invoke('save'), promiseLabel).then(() => manyArray, null, 'DS: ManyArray#save return ManyArray');\n\n      // TODO deprecate returning a promiseArray here\n      return Private.PromiseArray.create({\n        promise\n      });\n    },\n    /**\n      Create a child record within the owner\n       @method createRecord\n      @public\n      @param {Object} hash\n      @return {Model} record\n    */\n    createRecord(hash) {\n      var {\n        store,\n        type\n      } = this;\n      var record = store.createRecord(type.modelName, hash);\n      this.pushObject(record);\n      return record;\n    }\n  });\n\n  /**\n   @module @ember-data/model\n   */\n\n  /**\n    A PromiseBelongsTo is a PromiseObject that also proxies certain method calls\n    to the underlying belongsTo model.\n    Right now we proxy:\n\n      * `reload()`\n\n    @class PromiseBelongsTo\n    @extends PromiseObject\n    @private\n  */\n  var PromiseBelongsTo = Private.PromiseObject.extend({\n    // we don't proxy meta because we would need to proxy it to the relationship state container\n    //  however, meta on relationships does not trigger change notifications.\n    //  if you need relationship meta, you should do `record.belongsTo(relationshipName).meta()`\n    meta: EmberObject.computed(function () {\n      (debug.assert('You attempted to access meta on the promise for the async belongsTo relationship ' + `${this.get('_belongsToState').modelName}:${this.get('_belongsToState').key}'.` + '\\nUse `record.belongsTo(relationshipName).meta()` instead.', false));\n    }),\n    reload(options) {\n      (!(this.get('content') !== undefined) && debug.assert('You are trying to reload an async belongsTo before it has been created', this.get('content') !== undefined));\n      var {\n        key,\n        store,\n        originatingInternalModel\n      } = this._belongsToState;\n      return store.reloadBelongsTo(this, originatingInternalModel, key, options).then(() => this);\n    }\n  });\n\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  /**\n   @module @ember-data/model\n   */\n  /**\n    This class is returned as the result of accessing an async hasMany relationship\n    on an instance of a Model extending from `@ember-data/model`.\n\n    A PromiseManyArray is an array-like proxy that also proxies certain method calls\n    to the underlying ManyArray in addition to being \"promisified\".\n\n    Right now we proxy:\n\n      * `reload()`\n      * `createRecord()`\n\n    This promise-proxy behavior is primarily to ensure that async relationship interact\n    nicely with templates. In your JS code you should resolve the promise first.\n\n    ```js\n    const comments = await post.comments;\n    ```\n\n    @class PromiseManyArray\n    @public\n  */\n  var PromiseManyArray = (_class = class PromiseManyArray {\n    constructor(promise, content) {\n      //---- Methods/Properties on ArrayProxy that we will keep as our API\n      _initializerDefineProperty(this, \"content\", _descriptor, this);\n      //----  Properties/Methods from the PromiseProxyMixin that we will keep as our API\n      /**\n       * Whether the loading promise is still pending\n       *\n       * @property {boolean} isPending\n       * @public\n       */\n      _initializerDefineProperty(this, \"isPending\", _descriptor2, this);\n      /**\n       * Whether the loading promise rejected\n       *\n       * @property {boolean} isRejected\n       * @public\n       */\n      _initializerDefineProperty(this, \"isRejected\", _descriptor3, this);\n      /**\n       * Whether the loading promise succeeded\n       *\n       * @property {boolean} isFulfilled\n       * @public\n       */\n      _initializerDefineProperty(this, \"isFulfilled\", _descriptor4, this);\n      /**\n       * Whether the loading promise completed (resolved or rejected)\n       *\n       * @property {boolean} isSettled\n       * @public\n       */\n      _initializerDefineProperty(this, \"isSettled\", _descriptor5, this);\n      this._update(promise, content);\n      this.isDestroyed = false;\n      this.isDestroying = false;\n      var meta = Ember__default[\"default\"].meta(this);\n      meta.hasMixin = mixin => {\n        if (mixin === EmberArray__default[\"default\"]) {\n          return true;\n        }\n        return false;\n      };\n    }\n    /**\n     * Retrieve the length of the content\n     * @property length\n     * @public\n     */\n    get length() {\n      // shouldn't be needed, but ends up being needed\n      // for computed chains even in 4.x\n      this['[]'];\n      return this.content ? this.content.length : 0;\n    }\n\n    // ember-source < 3.23 (e.g. 3.20 lts)\n    // requires that the tag `'[]'` be notified\n    // on the ArrayProxy in order for `{{#each}}`\n    // to recompute. We entangle the '[]' tag from\n    get '[]'() {\n      return this.content ? this.content['[]'] : this.content;\n    }\n\n    /**\n     * Iterate the proxied content. Called by the glimmer iterator in #each\n     *\n     * @method forEach\n     * @param cb\n     * @returns\n     * @private\n     */\n    forEach(cb) {\n      this['[]']; // needed for < 3.23 support e.g. 3.20 lts\n      if (this.content && this.length) {\n        this.content.forEach(cb);\n      }\n    }\n    /**\n     * chain this promise\n     *\n     * @method then\n     * @public\n     * @param success\n     * @param fail\n     * @returns Promise\n     */\n    then(s, f) {\n      return this.promise.then(s, f);\n    }\n\n    /**\n     * catch errors thrown by this promise\n     * @method catch\n     * @public\n     * @param callback\n     * @returns Promise\n     */\n    catch(cb) {\n      return this.promise.catch(cb);\n    }\n\n    /**\n     * run cleanup after this promise completes\n     *\n     * @method finally\n     * @public\n     * @param callback\n     * @returns Promise\n     */\n    finally(cb) {\n      return this.promise.finally(cb);\n    }\n\n    //---- Methods on EmberObject that we should keep\n\n    destroy() {\n      this.isDestroying = true;\n      this.isDestroyed = true;\n      this.content = null;\n      this.promise = null;\n    }\n\n    //---- Methods/Properties on ManyArray that we own and proxy to\n\n    /**\n     * Retrieve the links for this relationship\n     * @property links\n     * @public\n     */\n    get links() {\n      return this.content ? this.content.links : undefined;\n    }\n\n    /**\n     * Retrieve the meta for this relationship\n     * @property meta\n     * @public\n     */\n    get meta() {\n      return this.content ? this.content.meta : undefined;\n    }\n\n    /**\n     * Reload the relationship\n     * @method reload\n     * @public\n     * @param options\n     * @returns\n     */\n    reload(options) {\n      (!(this.content) && debug.assert('You are trying to reload an async manyArray before it has been created', this.content));\n      this.content.reload(options);\n      return this;\n    }\n\n    //---- Our own stuff\n\n    _update(promise, content) {\n      if (content !== undefined) {\n        this.content = content;\n      }\n      this.promise = tapPromise(this, promise);\n    }\n    static create({\n      promise,\n      content\n    }) {\n      return new this(promise, content);\n    }\n\n    // Methods on ManyArray which people should resolve the relationship first before calling\n    createRecord(...args) {\n      (!(this.content) && debug.assert('You are trying to createRecord on an async manyArray before it has been created', this.content));\n      return this.content.createRecord(...args);\n    }\n\n    // Properties/Methods on ArrayProxy we should deprecate\n\n    get firstObject() {\n      return this.content ? this.content.firstObject : undefined;\n    }\n    get lastObject() {\n      return this.content ? this.content.lastObject : undefined;\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"content\", [tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"length\", [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"length\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, '[]', [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, '[]'), _class.prototype), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isPending\", [tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isRejected\", [tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isFulfilled\", [tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isSettled\", [tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"links\", [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"links\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"meta\", [compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"meta\"), _class.prototype)), _class);\n  function tapPromise(proxy, promise) {\n    proxy.isPending = true;\n    proxy.isSettled = false;\n    proxy.isFulfilled = false;\n    proxy.isRejected = false;\n    return rsvp.resolve(promise).then(content => {\n      proxy.isPending = false;\n      proxy.isFulfilled = true;\n      proxy.isSettled = true;\n      proxy.content = content;\n      return content;\n    }, error => {\n      proxy.isPending = false;\n      proxy.isFulfilled = false;\n      proxy.isRejected = true;\n      proxy.isSettled = true;\n      throw error;\n    });\n  }\n  var EmberObjectMethods = ['addObserver', 'cacheFor', 'decrementProperty', 'get', 'getProperties', 'incrementProperty', 'notifyPropertyChange', 'removeObserver', 'set', 'setProperties', 'toggleProperty'];\n  EmberObjectMethods.forEach(method => {\n    PromiseManyArray.prototype[method] = function delegatedMethod(...args) {\n      return Ember__default[\"default\"][method](this, ...args);\n    };\n  });\n  var InheritedProxyMethods = ['addArrayObserver', 'addObject', 'addObjects', 'any', 'arrayContentDidChange', 'arrayContentWillChange', 'clear', 'compact', 'every', 'filter', 'filterBy', 'find', 'findBy', 'getEach', 'includes', 'indexOf', 'insertAt', 'invoke', 'isAny', 'isEvery', 'lastIndexOf', 'map', 'mapBy', 'objectAt', 'objectsAt', 'popObject', 'pushObject', 'pushObjects', 'reduce', 'reject', 'rejectBy', 'removeArrayObserver', 'removeAt', 'removeObject', 'removeObjects', 'replace', 'reverseObjects', 'setEach', 'setObjects', 'shiftObject', 'slice', 'sortBy', 'toArray', 'uniq', 'uniqBy', 'unshiftObject', 'unshiftObjects', 'without'];\n  InheritedProxyMethods.forEach(method => {\n    PromiseManyArray.prototype[method] = function proxiedMethod(...args) {\n      (!(this.content) && debug.assert(`Cannot call ${method} before content is assigned.`, this.content));\n      return this.content[method](...args);\n    };\n  });\n  {\n    ['on', 'has', 'trigger', 'off', 'one'].forEach(method => {\n      PromiseManyArray.prototype[method] = function proxiedMethod(...args) {\n        (!(this.content) && debug.assert(`Cannot call ${method} before content is assigned.`, this.content));\n        return this.content[method](...args);\n      };\n    });\n  }\n\n  /* \n      In case someone defined a relationship to a mixin, for example:\n      ```\n        import Model, { belongsTo, hasMany } from '@ember-data/model';\n        import Mixin from '@ember/object/mixin';\n\n        class CommentModel extends Model {\n          @belongsTo('commentable', { polymorphic: true }) owner;\n        }\n\n        let Commentable = Mixin.create({\n          @hasMany('comment') comments;\n        });\n      ```\n      we want to look up a Commentable class which has all the necessary\n      relationship meta data. Thus, we look up the mixin and create a mock\n      Model, so we can access the relationship CPs of the mixin (`comments`)\n      in this case\n    */\n  function modelForMixin(store, normalizedModelName) {\n    var owner = application.getOwner(store);\n    var MaybeMixin = owner.factoryFor(`mixin:${normalizedModelName}`);\n    var mixin = MaybeMixin && MaybeMixin.class;\n    if (mixin) {\n      var ModelForMixin = Model.extend(mixin);\n      ModelForMixin.reopenClass({\n        __isMixin: true,\n        __mixin: mixin\n      });\n      //Cache the class as a model\n      owner.register('model:' + normalizedModelName, ModelForMixin);\n    }\n    return owner.factoryFor(`model:${normalizedModelName}`);\n  }\n\n  exports.Errors = Errors;\n  exports.ManyArray = manyArray;\n  exports.Model = Model;\n  exports.PromiseBelongsTo = PromiseBelongsTo;\n  exports.PromiseManyArray = PromiseManyArray;\n  exports._modelForMixin = modelForMixin;\n  exports.attr = attr$1;\n  exports.belongsTo = belongsTo$1;\n  exports.diffArray = diffArray;\n  exports.hasMany = hasMany$1;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n","define(\"@ember-data/model/index\", [\"exports\", \"@ember-data/model/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"attr\", {\n    enumerable: true,\n    get: function () {\n      return _private.attr;\n    }\n  });\n  Object.defineProperty(_exports, \"belongsTo\", {\n    enumerable: true,\n    get: function () {\n      return _private.belongsTo;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _private.Model;\n    }\n  });\n  Object.defineProperty(_exports, \"hasMany\", {\n    enumerable: true,\n    get: function () {\n      return _private.hasMany;\n    }\n  });\n});","define(\"@ember-data/private-build-infra/available-packages\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    HAS_EMBER_DATA_PACKAGE: 'ember-data',\n    HAS_STORE_PACKAGE: '@ember-data/store',\n    HAS_MODEL_PACKAGE: '@ember-data/model',\n    HAS_RECORD_DATA_PACKAGE: '@ember-data/record-data',\n    HAS_ADAPTER_PACKAGE: '@ember-data/adapter',\n    HAS_SERIALIZER_PACKAGE: '@ember-data/serializer',\n    HAS_DEBUG_PACKAGE: '@ember-data/debug'\n  };\n});","define(\"@ember-data/private-build-infra/current-deprecations\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * ## Deprecations\n   *\n   * EmberData allows users to opt-in and remove code that exists to support deprecated\n   * behaviors.\n   *\n   * If your app has resolved all deprecations present in a given version,\n   * you may specify that version as your \"compatibility\" version to remove\n   * the code that supported the deprecated behavior from your app.\n   *\n   * For instance, if a deprecation was introduced in 3.13, and the app specifies\n   * 3.13 as its minimum version compatibility, any deprecations introduced before\n   * or during 3.13 would be stripped away.\n   *\n   * An app can use a different version than what it specifies as it's compatibility\n   * version. For instance, an App could be using `3.16` while specifying compatibility\n   * with `3.12`. This would remove any deprecations that were present in or before `3.12`\n   * but keep support for anything deprecated in or above `3.13`.\n   *\n   * ### Configuring Compatibility\n   *\n   * To configure your compatibility version, set the `compatWith` to the version you\n   * are compatible with on the `emberData` config in your `ember-cli-build.js` file.\n   *\n   * ```js\n   * let app = new EmberApp(defaults, {\n   *   emberData: {\n   *     compatWith: '3.12',\n   *   },\n   * });\n   * ```\n   *\n   * The complete list of which versions specific deprecations will be removed in\n   * can be found [here](https://github.com/emberjs/data/tree/master/packages/private-build-infra/addon/current-deprecations.ts \"List of EmberData Deprecations\")\n   *\n   * @module @ember-data/deprecations\n   * @main @ember-data/deprecations\n   */\n  var _default = _exports.default = {\n    DEPRECATE_CATCH_ALL: '99.0',\n    DEPRECATE_EVENTED_API_USAGE: '3.12',\n    DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS: '3.12',\n    DEPRECATE_MODEL_TOJSON: '3.15',\n    DEPRECATE_LEGACY_TEST_HELPER_SUPPORT: '3.15',\n    DEPRECATE_LEGACY_TEST_REGISTRATIONS: '3.15',\n    DEPRECATE_DEFAULT_SERIALIZER: '3.15',\n    DEPRECATE_DEFAULT_ADAPTER: '3.15',\n    DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE: '3.15',\n    DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA: '3.12',\n    DEPRECATE_BELONGS_TO_REFERENCE_PUSH: '3.16',\n    DEPRECATE_REFERENCE_INTERNAL_MODEL: '3.19',\n    DEPRECATE_NAJAX: '3.22'\n  };\n});","define(\"@ember-data/private-build-infra/deprecations\", [\"exports\", \"@ember-data/private-build-infra/current-deprecations\"], function (_exports, _currentDeprecations) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.DEPRECATE_REFERENCE_INTERNAL_MODEL = _exports.DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS = _exports.DEPRECATE_NAJAX = _exports.DEPRECATE_MODEL_TOJSON = _exports.DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA = _exports.DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE = _exports.DEPRECATE_LEGACY_TEST_REGISTRATIONS = _exports.DEPRECATE_LEGACY_TEST_HELPER_SUPPORT = _exports.DEPRECATE_EVENTED_API_USAGE = _exports.DEPRECATE_DEFAULT_SERIALIZER = _exports.DEPRECATE_DEFAULT_ADAPTER = _exports.DEPRECATE_CATCH_ALL = _exports.DEPRECATE_BELONGS_TO_REFERENCE_PUSH = void 0;\n  function deprecationState(deprecationName) {\n    // if we hit this at runtime and the deprecation exists it is always activated\n    return deprecationName in _currentDeprecations.default;\n  }\n\n  // deprecations\n  const DEPRECATE_CATCH_ALL = _exports.DEPRECATE_CATCH_ALL = deprecationState('DEPRECATE_CATCH_ALL');\n  const DEPRECATE_EVENTED_API_USAGE = _exports.DEPRECATE_EVENTED_API_USAGE = deprecationState('DEPRECATE_EVENTED_API_USAGE');\n  const DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS = _exports.DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS = deprecationState('DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS');\n  const DEPRECATE_MODEL_TOJSON = _exports.DEPRECATE_MODEL_TOJSON = deprecationState('DEPRECATE_MODEL_TOJSON');\n  const DEPRECATE_LEGACY_TEST_HELPER_SUPPORT = _exports.DEPRECATE_LEGACY_TEST_HELPER_SUPPORT = deprecationState('DEPRECATE_LEGACY_TEST_HELPER_SUPPORT');\n  const DEPRECATE_LEGACY_TEST_REGISTRATIONS = _exports.DEPRECATE_LEGACY_TEST_REGISTRATIONS = deprecationState('DEPRECATE_LEGACY_TEST_REGISTRATIONS');\n  const DEPRECATE_DEFAULT_SERIALIZER = _exports.DEPRECATE_DEFAULT_SERIALIZER = deprecationState('DEPRECATE_DEFAULT_SERIALIZER');\n  const DEPRECATE_DEFAULT_ADAPTER = _exports.DEPRECATE_DEFAULT_ADAPTER = deprecationState('DEPRECATE_DEFAULT_ADAPTER');\n  const DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE = _exports.DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE = deprecationState('DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE');\n  const DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA = _exports.DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA = deprecationState('DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA');\n  const DEPRECATE_BELONGS_TO_REFERENCE_PUSH = _exports.DEPRECATE_BELONGS_TO_REFERENCE_PUSH = deprecationState('DEPRECATE_BELONGS_TO_REFERENCE_PUSH');\n  const DEPRECATE_REFERENCE_INTERNAL_MODEL = _exports.DEPRECATE_REFERENCE_INTERNAL_MODEL = deprecationState('DEPRECATE_REFERENCE_INTERNAL_MODEL');\n  const DEPRECATE_NAJAX = _exports.DEPRECATE_NAJAX = deprecationState('DEPRECATE_NAJAX');\n});","define(\"@ember-data/private-build-infra/index\", [\"exports\", \"require\", \"@ember-data/private-build-infra/available-packages\"], function (_exports, _require, _availablePackages) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.HAS_STORE_PACKAGE = _exports.HAS_SERIALIZER_PACKAGE = _exports.HAS_RECORD_DATA_PACKAGE = _exports.HAS_MODEL_PACKAGE = _exports.HAS_EMBER_DATA_PACKAGE = _exports.HAS_DEBUG_PACKAGE = _exports.HAS_ADAPTER_PACKAGE = void 0;\n  function flagState(flag) {\n    const packageName = _availablePackages.default[flag];\n    return (0, _require.has)(packageName) || false;\n  }\n  const HAS_EMBER_DATA_PACKAGE = _exports.HAS_EMBER_DATA_PACKAGE = flagState('HAS_EMBER_DATA_PACKAGE');\n  const HAS_STORE_PACKAGE = _exports.HAS_STORE_PACKAGE = flagState('HAS_STORE_PACKAGE');\n  const HAS_MODEL_PACKAGE = _exports.HAS_MODEL_PACKAGE = flagState('HAS_MODEL_PACKAGE');\n  const HAS_ADAPTER_PACKAGE = _exports.HAS_ADAPTER_PACKAGE = flagState('HAS_ADAPTER_PACKAGE');\n  const HAS_SERIALIZER_PACKAGE = _exports.HAS_SERIALIZER_PACKAGE = flagState('HAS_SERIALIZER_PACKAGE');\n  const HAS_DEBUG_PACKAGE = _exports.HAS_DEBUG_PACKAGE = flagState('HAS_DEBUG_PACKAGE');\n  const HAS_RECORD_DATA_PACKAGE = _exports.HAS_RECORD_DATA_PACKAGE = flagState('HAS_RECORD_DATA_PACKAGE');\n});","define('@ember-data/record-data/-private', ['exports', '@ember/debug', '@ember/polyfills', '@ember/runloop', '@ember/utils', '@ember-data/store/-private', '@ember-data/store/-debug'], (function (exports, debug, polyfills, runloop, utils, Private, Debug) { 'use strict';\n\n  // Used by the store to normalize IDs entering the store.  Despite the fact\n  // that developers may provide IDs as numbers (e.g., `store.findRecord('person', 1)`),\n  // it is important that internally we use strings, since IDs may be serialized\n  // and lose type information.  For example, Ember's router may put a record's\n  // ID into the URL, and if we later try to deserialize that URL and find the\n  // corresponding record, we will not know if it is a string or a number.\n  function coerceId(id) {\n    if (id === null || id === undefined || id === '') {\n      return null;\n    }\n    if (typeof id === 'string') {\n      return id;\n    }\n    if (typeof id === 'symbol') {\n      return id.toString();\n    }\n    return '' + id;\n  }\n\n  function expandingGet(cache, key1, key2) {\n    var mainCache = cache[key1] = cache[key1] || Object.create(null);\n    return mainCache[key2];\n  }\n  function expandingSet(cache, key1, key2, value) {\n    var mainCache = cache[key1] = cache[key1] || Object.create(null);\n    mainCache[key2] = value;\n  }\n  function assertValidRelationshipPayload(graph, op) {\n    var relationship = graph.get(op.record, op.field);\n    (!(isHasMany(relationship) || isBelongsTo(relationship)) && debug.assert(`Cannot update an implicit relationship`, isHasMany(relationship) || isBelongsTo(relationship)));\n    var payload = op.value;\n    var {\n      definition,\n      identifier,\n      state\n    } = relationship;\n    var {\n      type\n    } = identifier;\n    var {\n      field\n    } = op;\n    var {\n      isAsync,\n      kind\n    } = definition;\n    if (payload.links) {\n      (debug.warn(`You pushed a record of type '${type}' with a relationship '${field}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. EmberData will treat this relationship as known-to-be-empty.`, isAsync || !!payload.data || state.hasReceivedData, {\n        id: 'ds.store.push-link-for-sync-relationship'\n      }));\n    } else if (payload.data) {\n      if (kind === 'belongsTo') {\n        (!(!Array.isArray(payload.data)) && debug.assert(`A ${type} record was pushed into the store with the value of ${field} being ${debug.inspect(payload.data)}, but ${field} is a belongsTo relationship so the value must not be an array. You should probably check your data payload or serializer.`, !Array.isArray(payload.data)));\n        assertRelationshipData(graph.store._store, identifier, payload.data, definition);\n      } else if (kind === 'hasMany') {\n        (!(Array.isArray(payload.data)) && debug.assert(`A ${type} record was pushed into the store with the value of ${field} being '${debug.inspect(payload.data)}', but ${field} is a hasMany relationship so the value must be an array. You should probably check your data payload or serializer.`, Array.isArray(payload.data)));\n        if (Array.isArray(payload.data)) {\n          for (var i = 0; i < payload.data.length; i++) {\n            assertRelationshipData(graph.store._store, identifier, payload.data[i], definition);\n          }\n        }\n      }\n    }\n  }\n  function isNew(identifier) {\n    if (!identifier.id) {\n      return true;\n    }\n    var recordData = Private.recordDataFor(identifier);\n    return recordData ? isRelationshipRecordData(recordData) && recordData.isNew() : false;\n  }\n  function isRelationshipRecordData(recordData) {\n    return typeof recordData.isNew === 'function';\n  }\n  function isBelongsTo(relationship) {\n    return relationship.definition.kind === 'belongsTo';\n  }\n  function isImplicit(relationship) {\n    return relationship.definition.isImplicit;\n  }\n  function isHasMany(relationship) {\n    return relationship.definition.kind === 'hasMany';\n  }\n  function assertRelationshipData(store, identifier, data, meta) {\n    (!(!Array.isArray(data)) && debug.assert(`A ${identifier.type} record was pushed into the store with the value of ${meta.key} being '${JSON.stringify(data)}', but ${meta.key} is a belongsTo relationship so the value must not be an array. You should probably check your data payload or serializer.`, !Array.isArray(data)));\n    (!(data === null || typeof data.type === 'string' && data.type.length) && debug.assert(`Encountered a relationship identifier without a type for the ${meta.kind} relationship '${meta.key}' on <${identifier.type}:${identifier.id}>, expected a json-api identifier with type '${meta.type}' but found '${JSON.stringify(data)}'. Please check your serializer and make sure it is serializing the relationship payload into a JSON API format.`, data === null || typeof data.type === 'string' && data.type.length));\n    (!(data === null || !!Private.coerceId(data.id)) && debug.assert(`Encountered a relationship identifier without an id for the ${meta.kind} relationship '${meta.key}' on <${identifier.type}:${identifier.id}>, expected a json-api identifier but found '${JSON.stringify(data)}'. Please check your serializer and make sure it is serializing the relationship payload into a JSON API format.`, data === null || !!Private.coerceId(data.id)));\n    (!(data === null || !data.type || store._hasModelFor(data.type)) && debug.assert(`Encountered a relationship identifier with type '${data.type}' for the ${meta.kind} relationship '${meta.key}' on <${identifier.type}:${identifier.id}>, Expected a json-api identifier with type '${meta.type}'. No model was found for '${data.type}'.`, data === null || !data.type || store._hasModelFor(data.type)));\n  }\n\n  function createState() {\n    return {\n      hasReceivedData: false,\n      isEmpty: true,\n      isStale: false,\n      hasFailedLoadAttempt: false,\n      shouldForceReload: false,\n      hasDematerializedInverse: false\n    };\n  }\n\n  class BelongsToRelationship {\n    constructor(graph, definition, identifier) {\n      this.graph = graph;\n      this.store = graph.store;\n      this.definition = definition;\n      this.identifier = identifier;\n      this._state = null;\n      this.transactionRef = 0;\n      this.meta = null;\n      this.links = null;\n      this.localState = null;\n      this.remoteState = null;\n    }\n    get state() {\n      var {\n        _state\n      } = this;\n      if (!_state) {\n        _state = this._state = createState();\n      }\n      return _state;\n    }\n    recordDataDidDematerialize() {\n      if (this.definition.inverseIsImplicit) {\n        return;\n      }\n      var inverseKey = this.definition.inverseKey;\n      var callback = inverseIdentifier => {\n        if (!inverseIdentifier || !this.graph.has(inverseIdentifier, inverseKey)) {\n          return;\n        }\n        var relationship = this.graph.get(inverseIdentifier, inverseKey);\n\n        // For canonical members, it is possible that inverseRecordData has already been associated to\n        // to another record. For such cases, do not dematerialize the inverseRecordData\n        if (relationship.definition.kind !== 'belongsTo' || !relationship.localState || this.identifier === relationship.localState) {\n          relationship.inverseDidDematerialize(this.identifier);\n        }\n      };\n      if (this.remoteState) {\n        callback(this.remoteState);\n      }\n      if (this.localState && this.localState !== this.remoteState) {\n        callback(this.localState);\n      }\n    }\n    inverseDidDematerialize() {\n      var inverseRecordData = this.localState;\n      if (!this.definition.isAsync || inverseRecordData && isNew(inverseRecordData)) {\n        // unloading inverse of a sync relationship is treated as a client-side\n        // delete, so actually remove the models don't merely invalidate the cp\n        // cache.\n        // if the record being unloaded only exists on the client, we similarly\n        // treat it as a client side delete\n        if (this.localState === inverseRecordData && inverseRecordData !== null) {\n          this.localState = null;\n        }\n        if (this.remoteState === inverseRecordData && inverseRecordData !== null) {\n          this.remoteState = null;\n          this.state.hasReceivedData = true;\n          this.state.isEmpty = true;\n          if (this.localState && !isNew(this.localState)) {\n            this.localState = null;\n          }\n        }\n      } else {\n        this.state.hasDematerializedInverse = true;\n      }\n      this.notifyBelongsToChange();\n    }\n    getData() {\n      var data;\n      var payload = {};\n      if (this.localState) {\n        data = this.localState;\n      }\n      if (this.localState === null && this.state.hasReceivedData) {\n        data = null;\n      }\n      if (this.links) {\n        payload.links = this.links;\n      }\n      if (data !== undefined) {\n        payload.data = data;\n      }\n      if (this.meta) {\n        payload.meta = this.meta;\n      }\n      payload._relationship = this;\n      return payload;\n    }\n\n    /*\n        Removes the given RecordData from BOTH canonical AND current state.\n    \n        This method is useful when either a deletion or a rollback on a new record\n        needs to entirely purge itself from an inverse relationship.\n       */\n    removeCompletelyFromOwn(recordData) {\n      if (this.remoteState === recordData) {\n        this.remoteState = null;\n      }\n      if (this.localState === recordData) {\n        this.localState = null;\n        // This allows dematerialized inverses to be rematerialized\n        // we shouldn't be notifying here though, figure out where\n        // a notification was missed elsewhere.\n        this.notifyBelongsToChange();\n      }\n    }\n    notifyBelongsToChange() {\n      var recordData = this.identifier;\n      this.store.notifyBelongsToChange(recordData.type, recordData.id, recordData.lid, this.definition.key);\n    }\n    clear() {\n      this.localState = null;\n      this.remoteState = null;\n      this.state.hasReceivedData = false;\n      this.state.isEmpty = true;\n    }\n  }\n\n  class ManyRelationship {\n    constructor(graph, definition, identifier) {\n      this.graph = graph;\n      this.store = graph.store;\n      this.definition = definition;\n      this.identifier = identifier;\n      this._state = null;\n      this.transactionRef = 0;\n      this.members = new Set();\n      this.canonicalMembers = new Set();\n      this.meta = null;\n      this.links = null;\n\n      // persisted state\n      this.canonicalState = [];\n      // local client state\n      this.currentState = [];\n      this._willUpdateManyArray = false;\n      this._pendingManyArrayUpdates = null;\n    }\n    get state() {\n      var {\n        _state\n      } = this;\n      if (!_state) {\n        _state = this._state = createState();\n      }\n      return _state;\n    }\n    recordDataDidDematerialize() {\n      if (this.definition.inverseIsImplicit) {\n        return;\n      }\n      var inverseKey = this.definition.inverseKey;\n      this.forAllMembers(inverseIdentifier => {\n        if (!inverseIdentifier || !this.graph.has(inverseIdentifier, inverseKey)) {\n          return;\n        }\n        var relationship = this.graph.get(inverseIdentifier, inverseKey);\n        (!(!isImplicit(relationship)) && debug.assert(`expected no implicit`, !isImplicit(relationship))); // For canonical members, it is possible that inverseRecordData has already been associated to\n        // to another record. For such cases, do not dematerialize the inverseRecordData\n        if (relationship.definition.kind !== 'belongsTo' || !relationship.localState || this.identifier === relationship.localState) {\n          relationship.inverseDidDematerialize(this.identifier);\n        }\n      });\n    }\n    forAllMembers(callback) {\n      // ensure we don't walk anything twice if an entry is\n      // in both members and canonicalMembers\n      var seen = Object.create(null);\n      for (var i = 0; i < this.currentState.length; i++) {\n        var inverseInternalModel = this.currentState[i];\n        var id = inverseInternalModel.lid;\n        if (!seen[id]) {\n          seen[id] = true;\n          callback(inverseInternalModel);\n        }\n      }\n      for (var _i = 0; _i < this.canonicalState.length; _i++) {\n        var _inverseInternalModel = this.canonicalState[_i];\n        var _id = _inverseInternalModel.lid;\n        if (!seen[_id]) {\n          seen[_id] = true;\n          callback(_inverseInternalModel);\n        }\n      }\n    }\n    clear() {\n      this.members.clear();\n      this.canonicalMembers.clear();\n      this.currentState = [];\n      this.canonicalState = [];\n    }\n    inverseDidDematerialize(inverseRecordData) {\n      if (!this.definition.isAsync || inverseRecordData && isNew(inverseRecordData)) {\n        // unloading inverse of a sync relationship is treated as a client-side\n        // delete, so actually remove the models don't merely invalidate the cp\n        // cache.\n        // if the record being unloaded only exists on the client, we similarly\n        // treat it as a client side delete\n        this.removeCompletelyFromOwn(inverseRecordData);\n      } else {\n        this.state.hasDematerializedInverse = true;\n      }\n      this.notifyHasManyChange();\n    }\n\n    /*\n      Removes the given RecordData from BOTH canonical AND current state.\n       This method is useful when either a deletion or a rollback on a new record\n      needs to entirely purge itself from an inverse relationship.\n    */\n    removeCompletelyFromOwn(recordData) {\n      this.canonicalMembers.delete(recordData);\n      this.members.delete(recordData);\n      var canonicalIndex = this.canonicalState.indexOf(recordData);\n      if (canonicalIndex !== -1) {\n        this.canonicalState.splice(canonicalIndex, 1);\n      }\n      var currentIndex = this.currentState.indexOf(recordData);\n      if (currentIndex !== -1) {\n        this.currentState.splice(currentIndex, 1);\n        // This allows dematerialized inverses to be rematerialized\n        // we shouldn't be notifying here though, figure out where\n        // a notification was missed elsewhere.\n        this.notifyHasManyChange();\n      }\n    }\n    notifyHasManyChange() {\n      var {\n        store,\n        identifier: recordData\n      } = this;\n      store.notifyHasManyChange(recordData.type, recordData.id, recordData.lid, this.definition.key);\n    }\n    getData() {\n      var payload = {};\n      if (this.state.hasReceivedData) {\n        payload.data = this.currentState.slice();\n      }\n      if (this.links) {\n        payload.links = this.links;\n      }\n      if (this.meta) {\n        payload.meta = this.meta;\n      }\n      return payload;\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  class ImplicitRelationship {\n    constructor(graph, definition, identifier) {\n      this.graph = graph;\n      this.definition = definition;\n      this.identifier = identifier;\n      this.members = new Set();\n      this.canonicalMembers = new Set();\n    }\n    addCanonicalRecordData(recordData, idx) {\n      if (!this.canonicalMembers.has(recordData)) {\n        this.canonicalMembers.add(recordData);\n        this.members.add(recordData);\n      }\n    }\n    addRecordData(recordData, idx) {\n      if (!this.members.has(recordData)) {\n        this.members.add(recordData);\n      }\n    }\n    removeRecordData(recordData) {\n      if (recordData && this.members.has(recordData)) {\n        this.members.delete(recordData);\n      }\n    }\n    removeCompletelyFromOwn(recordData) {\n      this.canonicalMembers.delete(recordData);\n      this.members.delete(recordData);\n    }\n    clear() {\n      this.canonicalMembers.clear();\n      this.members.clear();\n    }\n  }\n\n  var BOOL_LATER = null;\n  var STR_LATER = '';\n  var IMPLICIT_KEY_RAND = Date.now();\n  function implicitKeyFor(type, key) {\n    return `implicit-${type}:${key}${IMPLICIT_KEY_RAND}`;\n  }\n  function syncMeta(definition, inverseDefinition) {\n    definition.inverseKind = inverseDefinition.kind;\n    definition.inverseKey = inverseDefinition.key;\n    definition.inverseType = inverseDefinition.type;\n    definition.inverseIsAsync = inverseDefinition.isAsync;\n    definition.inverseIsCollection = inverseDefinition.isCollection;\n    definition.inverseIsPolymorphic = inverseDefinition.isPolymorphic;\n    definition.inverseIsImplicit = inverseDefinition.isImplicit;\n  }\n  function upgradeMeta(meta) {\n    var niceMeta = {};\n    var options = meta.options;\n    niceMeta.kind = meta.kind;\n    niceMeta.key = meta.name;\n    niceMeta.type = meta.type;\n    niceMeta.isAsync = options && options.async !== undefined ? !!options.async : true;\n    niceMeta.isImplicit = false;\n    niceMeta.isCollection = meta.kind === 'hasMany';\n    niceMeta.isPolymorphic = options && !!options.polymorphic;\n    niceMeta.inverseKey = options && options.inverse;\n    niceMeta.inverseType = STR_LATER;\n    niceMeta.inverseIsAsync = BOOL_LATER;\n    niceMeta.inverseIsImplicit = options && options.inverse === null || BOOL_LATER;\n    niceMeta.inverseIsCollection = BOOL_LATER;\n    return niceMeta;\n  }\n  function isLHS(info, type, key) {\n    var isSelfReferential = info.isSelfReferential;\n    var isRelationship = key === info.lhs_relationshipName;\n    if (isRelationship === true) {\n      return isSelfReferential === true ||\n      // itself\n      type === info.lhs_baseModelName ||\n      // base or non-polymorphic\n      // if the other side is polymorphic then we need to scan our modelNames\n      info.rhs_isPolymorphic && info.lhs_modelNames.indexOf(type) !== -1 // polymorphic\n      ;\n    }\n\n    return false;\n  }\n  function upgradeDefinition(graph, identifier, propertyName, isImplicit = false) {\n    var cache = graph._definitionCache;\n    var storeWrapper = graph.store;\n    var polymorphicLookup = graph._potentialPolymorphicTypes;\n    var {\n      type\n    } = identifier;\n    var cached = expandingGet(cache, type, propertyName);\n\n    // CASE: We have a cached resolution (null if no relationship exists)\n    if (cached !== undefined) {\n      return cached;\n    }\n    (!(!isImplicit) && debug.assert(`Expected to find relationship definition in the cache for the implicit relationship ${propertyName}`, !isImplicit));\n    var relationships = storeWrapper.relationshipsDefinitionFor(type);\n    (!(relationships) && debug.assert(`Expected to have a relationship definition for ${type} but none was found.`, relationships));\n    var meta = relationships[propertyName];\n    if (!meta) {\n      if (polymorphicLookup[type]) {\n        var altTypes = Object.keys(polymorphicLookup[type]);\n        for (var i = 0; i < altTypes.length; i++) {\n          var _cached = expandingGet(cache, altTypes[i], propertyName);\n          if (_cached) {\n            expandingSet(cache, type, propertyName, _cached);\n            return _cached;\n          }\n        }\n      }\n\n      // CASE: We don't have a relationship at all\n      // we should only hit this in prod\n      (!(meta) && debug.assert(`Expected to find a relationship definition for ${type}.${propertyName} but none was found.`, meta));\n      cache[type][propertyName] = null;\n      return null;\n    }\n    var definition = upgradeMeta(meta);\n    var inverseDefinition;\n    var inverseKey;\n    var inverseType = definition.type;\n\n    // CASE: Inverse is explicitly null\n    if (definition.inverseKey === null) {\n      (!(storeWrapper._store.modelFor(inverseType)) && debug.assert(`Expected the inverse model to exist`, storeWrapper._store.modelFor(inverseType)));\n      inverseDefinition = null;\n    } else {\n      inverseKey = storeWrapper.inverseForRelationship(type, propertyName);\n\n      // CASE: Inverse resolves to null\n      if (!inverseKey) {\n        inverseDefinition = null;\n      } else {\n        // CASE: We have an explicit inverse or were able to resolve one\n        var inverseDefinitions = storeWrapper.relationshipsDefinitionFor(inverseType);\n        (!(inverseDefinitions) && debug.assert(`Expected to have a relationship definition for ${inverseType} but none was found.`, inverseDefinitions));\n        var _meta = inverseDefinitions[inverseKey];\n        (!(_meta) && debug.assert(`Expected to find a relationship definition for ${inverseType}.${inverseKey} but none was found.`, _meta));\n        inverseDefinition = upgradeMeta(_meta);\n      }\n    }\n\n    // CASE: We have no inverse\n    if (!inverseDefinition) {\n      // polish off meta\n      inverseKey = implicitKeyFor(type, propertyName);\n      inverseDefinition = {\n        kind: 'implicit',\n        key: inverseKey,\n        type: type,\n        isAsync: false,\n        isImplicit: true,\n        isCollection: true,\n        // with implicits any number of records could point at us\n        isPolymorphic: false\n      };\n      syncMeta(definition, inverseDefinition);\n      syncMeta(inverseDefinition, definition);\n      var _info = {\n        lhs_key: `${type}:${propertyName}`,\n        lhs_modelNames: [type],\n        lhs_baseModelName: type,\n        lhs_relationshipName: propertyName,\n        lhs_definition: definition,\n        lhs_isPolymorphic: definition.isPolymorphic,\n        rhs_key: '',\n        rhs_modelNames: [],\n        rhs_baseModelName: inverseType,\n        rhs_relationshipName: '',\n        rhs_definition: inverseDefinition,\n        rhs_isPolymorphic: false,\n        hasInverse: false,\n        isSelfReferential: type === inverseType,\n        // this could be wrong if we are self-referential but also polymorphic\n        isReflexive: false // we can't be reflexive if we don't define an inverse\n      };\n\n      expandingSet(cache, inverseType, inverseKey, _info);\n      expandingSet(cache, type, propertyName, _info);\n      return _info;\n    }\n\n    // CASE: We do have an inverse\n    var baseType = inverseDefinition.type;\n\n    // TODO we want to assert this but this breaks all of our shoddily written tests\n    /*\n      if (DEBUG) {\n        let inverseDoubleCheck = inverseMeta.type.inverseFor(inverseRelationshipName, store);\n         assert(`The ${inverseBaseModelName}:${inverseRelationshipName} relationship declares 'inverse: null', but it was resolved as the inverse for ${baseModelName}:${relationshipName}.`, inverseDoubleCheck);\n      }\n    */\n    // CASE: We may have already discovered the inverse for the baseModelName\n    // CASE: We have already discovered the inverse\n    cached = expandingGet(cache, baseType, propertyName) || expandingGet(cache, inverseType, inverseKey);\n    if (cached) {\n      // TODO this assert can be removed if the above assert is enabled\n      (!(cached.hasInverse !== false) && debug.assert(`The ${inverseType}:${inverseKey} relationship declares 'inverse: null', but it was resolved as the inverse for ${type}:${propertyName}.`, cached.hasInverse !== false));\n      var _isLHS = cached.lhs_baseModelName === baseType;\n      var modelNames = _isLHS ? cached.lhs_modelNames : cached.rhs_modelNames;\n      // make this lookup easier in the future by caching the key\n      modelNames.push(type);\n      expandingSet(cache, type, propertyName, cached);\n      return cached;\n    }\n\n    // this is our first time so polish off the metas\n    syncMeta(definition, inverseDefinition);\n    syncMeta(inverseDefinition, definition);\n    var lhs_modelNames = [type];\n    if (type !== baseType) {\n      lhs_modelNames.push(baseType);\n    }\n    var isSelfReferential = type === inverseType;\n    var info = {\n      lhs_key: `${baseType}:${propertyName}`,\n      lhs_modelNames,\n      lhs_baseModelName: baseType,\n      lhs_relationshipName: propertyName,\n      lhs_definition: definition,\n      lhs_isPolymorphic: definition.isPolymorphic,\n      rhs_key: `${inverseType}:${inverseKey}`,\n      rhs_modelNames: [inverseType],\n      rhs_baseModelName: inverseType,\n      rhs_relationshipName: inverseKey,\n      rhs_definition: inverseDefinition,\n      rhs_isPolymorphic: inverseDefinition.isPolymorphic,\n      hasInverse: true,\n      isSelfReferential,\n      isReflexive: isSelfReferential && propertyName === inverseKey\n    };\n\n    // Create entries for the baseModelName as well as modelName to speed up\n    //  inverse lookups\n    expandingSet(cache, baseType, propertyName, info);\n    expandingSet(cache, type, propertyName, info);\n\n    // Greedily populate the inverse\n    expandingSet(cache, inverseType, inverseKey, info);\n    return info;\n  }\n\n  /*\n      case many:1\n      ========\n      In a bi-directional graph with Many:1 edges, adding a value\n      results in up-to 3 discrete value transitions, while removing\n      a value is only 2 transitions.\n\n      For adding C to A\n      If: A <<-> B, C <->> D is the initial state,\n      and: B <->> A <<-> C, D is the final state\n\n      then we would undergo the following transitions.\n\n      add C to A\n      remove C from D\n      add A to C\n\n      For removing B from A\n      If: A <<-> B, C <->> D is the initial state,\n      and: A, B, C <->> D is the final state\n\n      then we would undergo the following transitions.\n\n      remove B from A\n      remove A from B\n\n      case many:many\n      ===========\n      In a bi-directional graph with Many:Many edges, adding or\n      removing a value requires only 2 value transitions.\n\n      For Adding\n      If: A<<->>B, C<<->>D is the initial state (double arrows representing the many side)\n      And: D<<->>C<<->>A<<->>B is the final state\n\n      Then we would undergo two transitions.\n\n      add C to A.\n      add A to C\n\n      For Removing\n      If: A<<->>B, C<<->>D is the initial state (double arrows representing the many side)\n      And: A, B, C<<->>D is the final state\n\n      Then we would undergo two transitions.\n\n      remove B from A\n      remove A from B\n\n      case many:?\n      ========\n      In a uni-directional graph with Many:? edges (modeled in EmberData with `inverse:null`) with\n      artificial (implicit) inverses, replacing a value results in 2 discrete value transitions.\n      This is because a Many:? relationship is effectively Many:Many.\n    */\n  function replaceRelatedRecords(graph, op, isRemote) {\n    if (isRemote) {\n      replaceRelatedRecordsRemote(graph, op, isRemote);\n    } else {\n      replaceRelatedRecordsLocal(graph, op, isRemote);\n    }\n  }\n  function replaceRelatedRecordsLocal(graph, op, isRemote) {\n    var identifiers = op.value;\n    var relationship = graph.get(op.record, op.field);\n    (!(isHasMany(relationship)) && debug.assert(`expected hasMany relationship`, isHasMany(relationship)));\n    relationship.state.hasReceivedData = true;\n\n    // cache existing state\n    var {\n      currentState,\n      members,\n      definition\n    } = relationship;\n    var newValues = new Set();\n    identifiers.forEach(i => newValues.add(i));\n    var identifiersLength = identifiers.length;\n    var newState = new Array(newValues.size);\n    var newMembership = new Set();\n\n    // wipe existing state\n    relationship.members = newMembership;\n    relationship.currentState = newState;\n    var {\n      type\n    } = relationship.definition;\n    var changed = false;\n    var currentLength = currentState.length;\n    var iterationLength = currentLength > identifiersLength ? currentLength : identifiersLength;\n    var equalLength = currentLength === identifiersLength;\n    for (var i = 0, j = 0; i < iterationLength; i++) {\n      var adv = false;\n      if (i < identifiersLength) {\n        var identifier = identifiers[i];\n        // skip processing if we encounter a duplicate identifier in the array\n        if (!newMembership.has(identifier)) {\n          if (type !== identifier.type) {\n            Debug.assertPolymorphicType(relationship.identifier, relationship.definition, identifier, graph.store);\n            graph.registerPolymorphicType(type, identifier.type);\n          }\n          newState[j] = identifier;\n          adv = true;\n          newMembership.add(identifier);\n          if (!members.has(identifier)) {\n            changed = true;\n            addToInverse(graph, identifier, definition.inverseKey, op.record, isRemote);\n          }\n        }\n      }\n      if (i < currentLength) {\n        var _identifier = currentState[i];\n\n        // detect reordering\n        if (!newMembership.has(_identifier)) {\n          if (equalLength && newState[i] !== _identifier) {\n            changed = true;\n          }\n          if (!newValues.has(_identifier)) {\n            changed = true;\n            removeFromInverse(graph, _identifier, definition.inverseKey, op.record, isRemote);\n          }\n        }\n      }\n      if (adv) {\n        j++;\n      }\n    }\n    if (changed) {\n      relationship.notifyHasManyChange();\n    }\n  }\n  function replaceRelatedRecordsRemote(graph, op, isRemote) {\n    var identifiers = op.value;\n    var relationship = graph.get(op.record, op.field);\n    (!(isHasMany(relationship)) && debug.assert(`You can only '${op.op}' on a hasMany relationship. ${op.record.type}.${op.field} is a ${relationship.definition.kind}`, isHasMany(relationship)));\n    if (isRemote) {\n      graph._addToTransaction(relationship);\n    }\n    relationship.state.hasReceivedData = true;\n\n    // cache existing state\n    var {\n      canonicalState,\n      canonicalMembers,\n      definition\n    } = relationship;\n    var newValues = new Set();\n    identifiers.forEach(i => newValues.add(i));\n    var identifiersLength = identifiers.length;\n    var newState = new Array(newValues.size);\n    var newMembership = new Set();\n\n    // wipe existing state\n    relationship.canonicalMembers = newMembership;\n    relationship.canonicalState = newState;\n    var {\n      type\n    } = relationship.definition;\n    var changed = false;\n    var canonicalLength = canonicalState.length;\n    var iterationLength = canonicalLength > identifiersLength ? canonicalLength : identifiersLength;\n    var equalLength = canonicalLength === identifiersLength;\n    for (var i = 0, j = 0; i < iterationLength; i++) {\n      var adv = false;\n      if (i < identifiersLength) {\n        var identifier = identifiers[i];\n        if (!newMembership.has(identifier)) {\n          if (type !== identifier.type) {\n            Debug.assertPolymorphicType(relationship.identifier, relationship.definition, identifier, graph.store);\n            graph.registerPolymorphicType(type, identifier.type);\n          }\n          newState[j] = identifier;\n          newMembership.add(identifier);\n          adv = true;\n          if (!canonicalMembers.has(identifier)) {\n            changed = true;\n            addToInverse(graph, identifier, definition.inverseKey, op.record, isRemote);\n          }\n        }\n      }\n      if (i < canonicalLength) {\n        var _identifier2 = canonicalState[i];\n        if (!newMembership.has(_identifier2)) {\n          // detect reordering\n          if (equalLength && newState[i] !== _identifier2) {\n            changed = true;\n          }\n          if (!newValues.has(_identifier2)) {\n            changed = true;\n            removeFromInverse(graph, _identifier2, definition.inverseKey, op.record, isRemote);\n          }\n        }\n      }\n      if (adv) {\n        j++;\n      }\n    }\n    if (changed) {\n      flushCanonical(graph, relationship);\n      /*\n      replaceRelatedRecordsLocal(\n        graph,\n        {\n          op: op.op,\n          record: op.record,\n          field: op.field,\n          value: canonicalState,\n        },\n        false\n      );*/\n    } else {\n      // preserve legacy behavior we want to change but requires some sort\n      // of deprecation.\n      flushCanonical(graph, relationship);\n    }\n  }\n  function addToInverse(graph, identifier, key, value, isRemote) {\n    var relationship = graph.get(identifier, key);\n    var {\n      type\n    } = relationship.definition;\n    if (type !== value.type) {\n      Debug.assertPolymorphicType(relationship.identifier, relationship.definition, value, graph.store);\n      graph.registerPolymorphicType(type, value.type);\n    }\n    if (isBelongsTo(relationship)) {\n      relationship.state.hasReceivedData = true;\n      relationship.state.isEmpty = false;\n      if (isRemote) {\n        graph._addToTransaction(relationship);\n        if (relationship.remoteState !== null) {\n          removeFromInverse(graph, relationship.remoteState, relationship.definition.inverseKey, identifier, isRemote);\n        }\n        relationship.remoteState = value;\n      }\n      if (relationship.localState !== value) {\n        if (!isRemote && relationship.localState) {\n          removeFromInverse(graph, relationship.localState, relationship.definition.inverseKey, identifier, isRemote);\n        }\n        relationship.localState = value;\n        relationship.notifyBelongsToChange();\n      }\n    } else if (isHasMany(relationship)) {\n      if (isRemote) {\n        if (!relationship.canonicalMembers.has(value)) {\n          graph._addToTransaction(relationship);\n          relationship.canonicalState.push(value);\n          relationship.canonicalMembers.add(value);\n          relationship.state.hasReceivedData = true;\n          flushCanonical(graph, relationship);\n        }\n      } else {\n        if (!relationship.members.has(value)) {\n          relationship.currentState.push(value);\n          relationship.members.add(value);\n          relationship.state.hasReceivedData = true;\n          relationship.notifyHasManyChange();\n        }\n      }\n    } else {\n      if (isRemote) {\n        relationship.addCanonicalRecordData(value);\n      } else {\n        relationship.addRecordData(value);\n      }\n    }\n  }\n  function removeFromInverse(graph, identifier, key, value, isRemote) {\n    var relationship = graph.get(identifier, key);\n    if (isBelongsTo(relationship)) {\n      relationship.state.isEmpty = true;\n      if (isRemote) {\n        graph._addToTransaction(relationship);\n        relationship.remoteState = null;\n      }\n      if (relationship.localState === value) {\n        relationship.localState = null;\n        relationship.notifyBelongsToChange();\n      }\n    } else if (isHasMany(relationship)) {\n      if (isRemote) {\n        graph._addToTransaction(relationship);\n        var _index = relationship.canonicalState.indexOf(value);\n        if (_index !== -1) {\n          relationship.canonicalMembers.delete(value);\n          relationship.canonicalState.splice(_index, 1);\n        }\n      }\n      var index = relationship.currentState.indexOf(value);\n      if (index !== -1) {\n        relationship.members.delete(value);\n        relationship.currentState.splice(index, 1);\n      }\n      relationship.notifyHasManyChange();\n    } else {\n      if (isRemote) {\n        relationship.removeCompletelyFromOwn(value);\n      } else {\n        relationship.removeRecordData(value);\n      }\n    }\n  }\n  function syncRemoteToLocal(rel) {\n    var toSet = rel.canonicalState;\n    var newRecordDatas = rel.currentState.filter(recordData => isNew(recordData) && toSet.indexOf(recordData) === -1);\n    var existingState = rel.currentState;\n    rel.currentState = toSet.concat(newRecordDatas);\n    var members = rel.members = new Set();\n    rel.canonicalMembers.forEach(v => members.add(v));\n    for (var i = 0; i < newRecordDatas.length; i++) {\n      members.add(newRecordDatas[i]);\n    }\n\n    // TODO always notifying fails only one test and we should probably do away with it\n    if (existingState.length !== rel.currentState.length) {\n      rel.notifyHasManyChange();\n    } else {\n      for (var _i = 0; _i < existingState.length; _i++) {\n        if (existingState[_i] !== rel.currentState[_i]) {\n          rel.notifyHasManyChange();\n          break;\n        }\n      }\n    }\n  }\n  function flushCanonical(graph, rel) {\n    graph._scheduleLocalSync(rel);\n  }\n\n  function addToRelatedRecords(graph, op, isRemote) {\n    var {\n      record,\n      value,\n      index\n    } = op;\n    var relationship = graph.get(record, op.field);\n    (!(isHasMany(relationship)) && debug.assert(`You can only '${op.op}' on a hasMany relationship. ${record.type}.${op.field} is a ${relationship.definition.kind}`, isHasMany(relationship)));\n    if (Array.isArray(value)) {\n      for (var i = 0; i < value.length; i++) {\n        addRelatedRecord(graph, relationship, record, value[i], index !== undefined ? index + i : index, isRemote);\n      }\n    } else {\n      addRelatedRecord(graph, relationship, record, value, index, isRemote);\n    }\n    relationship.notifyHasManyChange();\n  }\n  function addRelatedRecord(graph, relationship, record, value, index, isRemote) {\n    (!(value) && debug.assert(`expected an identifier to add to the relationship`, value));\n    var {\n      members,\n      currentState\n    } = relationship;\n    if (members.has(value)) {\n      return;\n    }\n    var {\n      type\n    } = relationship.definition;\n    if (type !== value.type) {\n      Debug.assertPolymorphicType(record, relationship.definition, value, graph.store);\n      graph.registerPolymorphicType(value.type, type);\n    }\n    relationship.state.hasReceivedData = true;\n    members.add(value);\n    if (index === undefined) {\n      currentState.push(value);\n    } else {\n      currentState.splice(index, 0, value);\n    }\n    addToInverse(graph, value, relationship.definition.inverseKey, record, isRemote);\n  }\n\n  function removeFromRelatedRecords(graph, op, isRemote) {\n    var {\n      record,\n      value\n    } = op;\n    var relationship = graph.get(record, op.field);\n    (!(isHasMany(relationship)) && debug.assert(`You can only '${op.op}' on a hasMany relationship. ${record.type}.${op.field} is a ${relationship.definition.kind}`, isHasMany(relationship)));\n    if (Array.isArray(value)) {\n      for (var i = 0; i < value.length; i++) {\n        removeRelatedRecord(graph, relationship, record, value[i], isRemote);\n      }\n    } else {\n      removeRelatedRecord(graph, relationship, record, value, isRemote);\n    }\n    relationship.notifyHasManyChange();\n  }\n  function removeRelatedRecord(graph, relationship, record, value, isRemote) {\n    (!(value) && debug.assert(`expected an identifier to add to the relationship`, value));\n    var {\n      members,\n      currentState\n    } = relationship;\n    if (!members.has(value)) {\n      return;\n    }\n    members.delete(value);\n    var index = currentState.indexOf(value);\n    (!(index !== -1) && debug.assert(`expected members and currentState to be in sync`, index !== -1));\n    currentState.splice(index, 1);\n    removeFromInverse(graph, value, relationship.definition.inverseKey, record, isRemote);\n  }\n\n  function replaceRelatedRecord(graph, op, isRemote = false) {\n    var relationship = graph.get(op.record, op.field);\n    (!(isBelongsTo(relationship)) && debug.assert(`You can only '${op.op}' on a belongsTo relationship. ${op.record.type}.${op.field} is a ${relationship.definition.kind}`, isBelongsTo(relationship)));\n    if (isRemote) {\n      graph._addToTransaction(relationship);\n    }\n    var {\n      definition,\n      state\n    } = relationship;\n    var prop = isRemote ? 'remoteState' : 'localState';\n    var existingState = relationship[prop];\n\n    /*\n      case 1:1\n      ========\n      In a bi-directional graph with 1:1 edges, replacing a value\n      results in up-to 4 discrete value transitions.\n       If: A <-> B, C <-> D is the initial state,\n      and: A <-> C, B, D is the final state\n       then we would undergo the following 4 transitions.\n       remove A from B\n      add C to A\n      remove C from D\n      add A to C\n       case 1:many\n      ===========\n      In a bi-directional graph with 1:Many edges, replacing a value\n      results in up-to 3 discrete value transitions.\n       If: A<->>B<<->D, C<<->D is the initial state (double arrows representing the many side)\n      And: A<->>C<<->D, B<<->D is the final state\n       Then we would undergo three transitions.\n       remove A from B\n      add C to A.\n      add A to C\n       case 1:?\n      ========\n      In a uni-directional graph with 1:? edges (modeled in EmberData with `inverse:null`) with\n      artificial (implicit) inverses, replacing a value results in up-to 3 discrete value transitions.\n      This is because a 1:? relationship is effectively 1:many.\n       If: A->B, C->B is the initial state\n      And: A->C, C->B is the final state\n       Then we would undergo three transitions.\n       Remove A from B\n      Add C to A\n      Add A to C\n    */\n\n    // nothing for us to do\n    if (op.value === existingState) {\n      // if we were empty before but now know we are empty this needs to be true\n      state.hasReceivedData = true;\n      // if this is a remote update we still sync\n      if (isRemote) {\n        var {\n          localState\n        } = relationship;\n        // don't sync if localState is a new record and our canonicalState is null\n        if (localState && isNew(localState) && !existingState || localState === existingState) {\n          return;\n        }\n        relationship.localState = existingState;\n        relationship.notifyBelongsToChange();\n      }\n      return;\n    }\n\n    // remove this value from the inverse if required\n    if (existingState) {\n      removeFromInverse(graph, existingState, definition.inverseKey, op.record, isRemote);\n    }\n\n    // update value to the new value\n    relationship[prop] = op.value;\n    state.hasReceivedData = true;\n    state.isEmpty = op.value === null;\n    state.isStale = false;\n    state.hasFailedLoadAttempt = false;\n    if (op.value) {\n      if (definition.type !== op.value.type) {\n        Debug.assertPolymorphicType(relationship.identifier, definition, op.value, graph.store);\n        graph.registerPolymorphicType(definition.type, op.value.type);\n      }\n      addToInverse(graph, op.value, definition.inverseKey, op.record, isRemote);\n    }\n    if (isRemote) {\n      var {\n        localState: _localState,\n        remoteState\n      } = relationship;\n      if (_localState && isNew(_localState) && !remoteState) {\n        return;\n      }\n      if (_localState !== remoteState) {\n        relationship.localState = remoteState;\n        relationship.notifyBelongsToChange();\n      }\n    } else {\n      relationship.notifyBelongsToChange();\n    }\n  }\n\n  /*\n    This method normalizes a link to an \"links object\". If the passed link is\n    already an object it's returned without any modifications.\n\n    See http://jsonapi.org/format/#document-links for more information.\n  */\n  function _normalizeLink(link) {\n    switch (typeof link) {\n      case 'object':\n        return link;\n      case 'string':\n        return {\n          href: link\n        };\n    }\n  }\n\n  /*\n      Updates the \"canonical\" or \"remote\" state of a relationship, replacing any existing\n      state and blowing away any local changes (excepting new records).\n  */\n  function updateRelationshipOperation(graph, op) {\n    var relationship = graph.get(op.record, op.field);\n    (!(isHasMany(relationship) || isBelongsTo(relationship)) && debug.assert(`Cannot update an implicit relationship`, isHasMany(relationship) || isBelongsTo(relationship)));\n    var {\n      definition,\n      state,\n      identifier\n    } = relationship;\n    var {\n      isCollection\n    } = definition;\n    var payload = op.value;\n    var hasRelationshipDataProperty = false;\n    var hasUpdatedLink = false;\n    if (payload.meta) {\n      relationship.meta = payload.meta;\n    }\n    if (payload.data !== undefined) {\n      hasRelationshipDataProperty = true;\n      if (isCollection) {\n        // TODO deprecate this case. We\n        // have tests saying we support it.\n        if (payload.data === null) {\n          payload.data = [];\n        }\n        (!(Array.isArray(payload.data)) && debug.assert(`Expected an array`, Array.isArray(payload.data)));\n        graph.update({\n          op: 'replaceRelatedRecords',\n          record: identifier,\n          field: op.field,\n          value: payload.data.map(i => graph.store.identifierCache.getOrCreateRecordIdentifier(i))\n        }, true);\n      } else {\n        graph.update({\n          op: 'replaceRelatedRecord',\n          record: identifier,\n          field: op.field,\n          value: payload.data ? graph.store.identifierCache.getOrCreateRecordIdentifier(payload.data) : null\n        }, true);\n      }\n    } else if (definition.isAsync === false && !state.hasReceivedData) {\n      hasRelationshipDataProperty = true;\n      if (isCollection) {\n        graph.update({\n          op: 'replaceRelatedRecords',\n          record: identifier,\n          field: op.field,\n          value: []\n        }, true);\n      } else {\n        graph.update({\n          op: 'replaceRelatedRecord',\n          record: identifier,\n          field: op.field,\n          value: null\n        }, true);\n      }\n    }\n    if (payload.links) {\n      var originalLinks = relationship.links;\n      relationship.links = payload.links;\n      if (payload.links.related) {\n        var relatedLink = _normalizeLink(payload.links.related);\n        var currentLink = originalLinks && originalLinks.related ? _normalizeLink(originalLinks.related) : null;\n        var currentLinkHref = currentLink ? currentLink.href : null;\n        if (relatedLink && relatedLink.href && relatedLink.href !== currentLinkHref) {\n          (debug.warn(`You pushed a record of type '${identifier.type}' with a relationship '${definition.key}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. EmberData will treat this relationship as known-to-be-empty.`, definition.isAsync || state.hasReceivedData, {\n            id: 'ds.store.push-link-for-sync-relationship'\n          }));\n          (!(typeof relatedLink.href === 'string' || relatedLink.href === null) && debug.assert(`You have pushed a record of type '${identifier.type}' with '${definition.key}' as a link, but the value of that link is not a string.`, typeof relatedLink.href === 'string' || relatedLink.href === null));\n          hasUpdatedLink = true;\n        }\n      }\n    }\n\n    /*\n         Data being pushed into the relationship might contain only data or links,\n         or a combination of both.\n    \n         IF contains only data\n         IF contains both links and data\n          state.isEmpty -> true if is empty array (has-many) or is null (belongs-to)\n          state.hasReceivedData -> true\n          hasDematerializedInverse -> false\n          state.isStale -> false\n          allInverseRecordsAreLoaded -> run-check-to-determine\n    \n         IF contains only links\n          state.isStale -> true\n         */\n    relationship.state.hasFailedLoadAttempt = false;\n    if (hasRelationshipDataProperty) {\n      var relationshipIsEmpty = payload.data === null || Array.isArray(payload.data) && payload.data.length === 0;\n\n      // we don't need to notify here as the update op we pushed in above will notify once\n      // membership is in the correct state.\n      relationship.state.hasReceivedData = true;\n      relationship.state.isStale = false;\n      relationship.state.hasDematerializedInverse = false;\n      relationship.state.isEmpty = relationshipIsEmpty;\n    } else if (hasUpdatedLink) {\n      // only notify stale if we have not previously received membership data.\n      // within this same transaction\n      // this prevents refetching when only one side of the relationship in the\n      // payload contains the info while the other side contains just a link\n      // this only works when the side with just a link is a belongsTo, as we\n      // don't know if a hasMany has full information or not.\n      // see #7049 for context.\n      if (isCollection || !relationship.state.hasReceivedData || relationship.transactionRef === 0) {\n        relationship.state.isStale = true;\n        if (isHasMany(relationship)) {\n          relationship.notifyHasManyChange();\n        } else {\n          relationship.notifyBelongsToChange();\n        }\n      } else {\n        relationship.state.isStale = false;\n      }\n    }\n  }\n\n  var Graphs = new WeakMap();\n  function isStore(maybeStore) {\n    return maybeStore._storeWrapper !== undefined;\n  }\n  function getWrapper(store) {\n    return isStore(store) ? store._storeWrapper : store;\n  }\n  function peekGraph(store) {\n    return Graphs.get(getWrapper(store));\n  }\n  function graphFor(store) {\n    var wrapper = getWrapper(store);\n    var graph = Graphs.get(wrapper);\n    if (graph === undefined) {\n      graph = new Graph(wrapper);\n      Graphs.set(wrapper, graph);\n    }\n    return graph;\n  }\n\n  /*\n   * Graph acts as the cache for relationship data. It allows for\n   * us to ask about and update relationships for a given Identifier\n   * without requiring other objects for that Identifier to be\n   * instantiated (such as `InternalModel`, `RecordData` or a `Record`)\n   *\n   * This also allows for us to make more substantive changes to relationships\n   * with increasingly minor alterations to other portions of the internals\n   * over time.\n   *\n   * The graph is made up of nodes and edges. Each unique identifier gets\n   * its own node, which is a dictionary with a list of that node's edges\n   * (or connections) to other nodes. In `Model` terms, a node represents a\n   * record instance, with each key (an edge) in the dictionary correlating\n   * to either a `hasMany` or `belongsTo` field on that record instance.\n   *\n   * The value for each key, or `edge` is the identifier(s) the node relates\n   * to in the graph from that key.\n   */\n  class Graph {\n    constructor(store) {\n      this._definitionCache = Object.create(null);\n      this._potentialPolymorphicTypes = Object.create(null);\n      this.identifiers = new Map();\n      this.store = store;\n      this._willSyncRemote = false;\n      this._willSyncLocal = false;\n      this._pushedUpdates = {\n        belongsTo: [],\n        hasMany: [],\n        deletions: []\n      };\n      this._updatedRelationships = new Set();\n      this._transaction = null;\n    }\n    has(identifier, propertyName) {\n      var relationships = this.identifiers.get(identifier);\n      if (!relationships) {\n        return false;\n      }\n      return relationships[propertyName] !== undefined;\n    }\n    get(identifier, propertyName) {\n      (!(propertyName) && debug.assert(`expected propertyName`, propertyName));\n      var relationships = this.identifiers.get(identifier);\n      if (!relationships) {\n        relationships = Object.create(null);\n        this.identifiers.set(identifier, relationships);\n      }\n      var relationship = relationships[propertyName];\n      if (!relationship) {\n        var info = upgradeDefinition(this, identifier, propertyName);\n        (!(info !== null) && debug.assert(`Could not determine relationship information for ${identifier.type}.${propertyName}`, info !== null));\n        var meta = isLHS(info, identifier.type, propertyName) ? info.lhs_definition : info.rhs_definition;\n        var Klass = meta.kind === 'hasMany' ? ManyRelationship : meta.kind === 'belongsTo' ? BelongsToRelationship : ImplicitRelationship;\n        relationship = relationships[propertyName] = new Klass(this, meta, identifier);\n      }\n      return relationship;\n    }\n\n    /*\n     * Allows for the graph to dynamically discover polymorphic connections\n     * without needing to walk prototype chains.\n     *\n     * Used by edges when an added `type` does not match the expected `type`\n     * for that edge.\n     *\n     * Currently we assert before calling this. For a public API we will want\n     * to call out to the schema manager to ask if we should consider these\n     * types as equivalent for a given relationship.\n     */\n    registerPolymorphicType(type1, type2) {\n      var typeCache = this._potentialPolymorphicTypes;\n      var t1 = typeCache[type1];\n      if (!t1) {\n        t1 = typeCache[type1] = Object.create(null);\n      }\n      t1[type2] = true;\n      var t2 = typeCache[type2];\n      if (!t2) {\n        t2 = typeCache[type2] = Object.create(null);\n      }\n      t2[type1] = true;\n    }\n\n    /*\n     TODO move this comment somewhere else\n     implicit relationships are relationships which have not been declared but the inverse side exists on\n     another record somewhere\n     \n     For example if there was:\n      ```app/models/comment.js\n     import Model, { attr } from '@ember-data/model';\n      export default class Comment extends Model {\n       @attr text;\n     }\n     ```\n      and there is also:\n      ```app/models/post.js\n     import Model, { attr, hasMany } from '@ember-data/model';\n      export default class Post extends Model {\n       @attr title;\n       @hasMany('comment') comments;\n     }\n     ```\n      Then we would have a implicit 'post' relationship for the comment record in order\n     to be do things like remove the comment from the post if the comment were to be deleted.\n    */\n\n    isReleasable(identifier) {\n      var relationships = this.identifiers.get(identifier);\n      if (!relationships) {\n        return true;\n      }\n      var keys = Object.keys(relationships);\n      for (var i = 0; i < keys.length; i++) {\n        var relationship = relationships[keys[i]];\n        (!(relationship) && debug.assert(`Expected a relationship`, relationship));\n        if (relationship.definition.inverseIsAsync) {\n          return false;\n        }\n      }\n      return true;\n    }\n    unload(identifier) {\n      var relationships = this.identifiers.get(identifier);\n      if (relationships) {\n        // cleans up the graph but retains some nodes\n        // to allow for rematerialization\n        Object.keys(relationships).forEach(key => {\n          var rel = relationships[key];\n          destroyRelationship(rel);\n          if (isImplicit(rel)) {\n            delete relationships[key];\n          }\n        });\n      }\n    }\n    remove(identifier) {\n      this.unload(identifier);\n      this.identifiers.delete(identifier);\n    }\n\n    /*\n     * Remote state changes\n     */\n    push(op) {\n      if (op.op === 'deleteRecord') {\n        this._pushedUpdates.deletions.push(op);\n      } else if (op.op === 'replaceRelatedRecord') {\n        this._pushedUpdates.belongsTo.push(op);\n      } else {\n        var relationship = this.get(op.record, op.field);\n        (!(!relationship.definition.isImplicit) && debug.assert(`Cannot push a remote update for an implicit relationship`, !relationship.definition.isImplicit));\n        this._pushedUpdates[relationship.definition.kind].push(op);\n      }\n      if (!this._willSyncRemote) {\n        this._willSyncRemote = true;\n        var backburner = this.store._store._backburner;\n        backburner.schedule('coalesce', this, this._flushRemoteQueue);\n      }\n    }\n\n    /*\n     * Local state changes\n     */\n\n    update(op, isRemote = false) {\n      (!(op.op === 'deleteRecord' || !isImplicit(this.get(op.record, op.field))) && debug.assert(`Cannot update an implicit relationship`, op.op === 'deleteRecord' || !isImplicit(this.get(op.record, op.field))));\n      switch (op.op) {\n        case 'updateRelationship':\n          (!(isRemote) && debug.assert(`Can only perform the operation updateRelationship on remote state`, isRemote));\n          {\n            // in debug, assert payload validity eagerly\n            assertValidRelationshipPayload(this, op);\n          }\n          updateRelationshipOperation(this, op);\n          break;\n        case 'deleteRecord':\n          {\n            (!(isRemote) && debug.assert(`Can only perform the operation deleteRelationship on remote state`, isRemote));\n            var identifier = op.record;\n            var relationships = this.identifiers.get(identifier);\n            if (relationships) {\n              Object.keys(relationships).forEach(key => {\n                var rel = relationships[key];\n                // works together with the has check\n                delete relationships[key];\n                removeCompletelyFromInverse(rel);\n              });\n              this.identifiers.delete(identifier);\n            }\n            break;\n          }\n        case 'replaceRelatedRecord':\n          replaceRelatedRecord(this, op, isRemote);\n          break;\n        case 'addToRelatedRecords':\n          addToRelatedRecords(this, op, isRemote);\n          break;\n        case 'removeFromRelatedRecords':\n          removeFromRelatedRecords(this, op, isRemote);\n          break;\n        case 'replaceRelatedRecords':\n          replaceRelatedRecords(this, op, isRemote);\n          break;\n        default:\n          (debug.assert(`No local relationship update operation exists for '${op.op}'`));\n      }\n    }\n    _scheduleLocalSync(relationship) {\n      this._updatedRelationships.add(relationship);\n      if (!this._willSyncLocal) {\n        this._willSyncLocal = true;\n        var backburner = this.store._store._backburner;\n        backburner.schedule('sync', this, this._flushLocalQueue);\n      }\n    }\n    _flushRemoteQueue() {\n      if (!this._willSyncRemote) {\n        return;\n      }\n      this._transaction = new Set();\n      this._willSyncRemote = false;\n      var {\n        deletions,\n        hasMany,\n        belongsTo\n      } = this._pushedUpdates;\n      this._pushedUpdates.deletions = [];\n      this._pushedUpdates.hasMany = [];\n      this._pushedUpdates.belongsTo = [];\n      for (var i = 0; i < deletions.length; i++) {\n        this.update(deletions[i], true);\n      }\n      for (var _i = 0; _i < hasMany.length; _i++) {\n        this.update(hasMany[_i], true);\n      }\n      for (var _i2 = 0; _i2 < belongsTo.length; _i2++) {\n        this.update(belongsTo[_i2], true);\n      }\n      this._finalize();\n    }\n    _addToTransaction(relationship) {\n      (!(this._transaction !== null) && debug.assert(`expected a transaction`, this._transaction !== null));\n      relationship.transactionRef++;\n      this._transaction.add(relationship);\n    }\n    _finalize() {\n      if (this._transaction) {\n        this._transaction.forEach(v => v.transactionRef = 0);\n        this._transaction = null;\n      }\n    }\n    _flushLocalQueue() {\n      if (!this._willSyncLocal) {\n        return;\n      }\n      this._willSyncLocal = false;\n      var updated = this._updatedRelationships;\n      this._updatedRelationships = new Set();\n      updated.forEach(syncRemoteToLocal);\n    }\n    willDestroy() {\n      this.identifiers.clear();\n      this.store = null;\n    }\n    destroy() {\n      Graphs.delete(this.store);\n    }\n  }\n\n  // Handle dematerialization for relationship `rel`.  In all cases, notify the\n  // relationship of the dematerialization: this is done so the relationship can\n  // notify its inverse which needs to update state\n  //\n  // If the inverse is sync, unloading this record is treated as a client-side\n  // delete, so we remove the inverse records from this relationship to\n  // disconnect the graph.  Because it's not async, we don't need to keep around\n  // the internalModel as an id-wrapper for references and because the graph is\n  // disconnected we can actually destroy the internalModel when checking for\n  // orphaned models.\n  function destroyRelationship(rel) {\n    if (isImplicit(rel)) {\n      if (rel.graph.isReleasable(rel.identifier)) {\n        removeCompletelyFromInverse(rel);\n      }\n      return;\n    }\n    rel.recordDataDidDematerialize();\n    if (!rel.definition.inverseIsImplicit && !rel.definition.inverseIsAsync) {\n      rel.state.isStale = true;\n      rel.clear();\n\n      // necessary to clear relationships in the ui from dematerialized records\n      // hasMany is managed by InternalModel which calls `retreiveLatest` after\n      // dematerializing the recordData instance.\n      // but sync belongsTo require this since they don't have a proxy to update.\n      // so we have to notify so it will \"update\" to null.\n      // we should discuss whether we still care about this, probably fine to just\n      // leave the ui relationship populated since the record is destroyed and\n      // internally we've fully cleaned up.\n      if (!rel.definition.isAsync) {\n        if (isBelongsTo(rel)) {\n          rel.notifyBelongsToChange();\n        } else {\n          rel.notifyHasManyChange();\n        }\n      }\n    }\n  }\n  function removeCompletelyFromInverse(relationship) {\n    // we actually want a union of members and canonicalMembers\n    // they should be disjoint but currently are not due to a bug\n    var seen = Object.create(null);\n    var {\n      identifier\n    } = relationship;\n    var {\n      inverseKey\n    } = relationship.definition;\n    var unload = inverseIdentifier => {\n      var id = inverseIdentifier.lid;\n      if (seen[id] === undefined) {\n        if (relationship.graph.has(inverseIdentifier, inverseKey)) {\n          relationship.graph.get(inverseIdentifier, inverseKey).removeCompletelyFromOwn(identifier);\n        }\n        seen[id] = true;\n      }\n    };\n    if (isBelongsTo(relationship)) {\n      if (relationship.localState) {\n        unload(relationship.localState);\n      }\n      if (relationship.remoteState) {\n        unload(relationship.remoteState);\n      }\n      if (!relationship.definition.isAsync) {\n        relationship.clear();\n      }\n      relationship.localState = null;\n    } else if (isHasMany(relationship)) {\n      relationship.members.forEach(unload);\n      relationship.canonicalMembers.forEach(unload);\n      if (!relationship.definition.isAsync) {\n        relationship.clear();\n        relationship.notifyHasManyChange();\n      }\n    } else {\n      relationship.members.forEach(unload);\n      relationship.canonicalMembers.forEach(unload);\n      relationship.clear();\n    }\n  }\n\n  /**\n   * @module @ember-data/record-data\n   */\n  var nextBfsId = 1;\n  var EMPTY_ITERATOR = {\n    iterator() {\n      return {\n        next() {\n          return {\n            done: true,\n            value: undefined\n          };\n        }\n      };\n    }\n  };\n\n  /**\n    The default cache implementation used by ember-data. The cache\n    is configurable and using a different implementation can be\n    achieved by implementing the store's createRecordDataFor hook.\n\n    @class RecordDataDefault\n    @public\n   */\n  class RecordDataDefault {\n    constructor(identifier, storeWrapper) {\n      /*\n        Iterates over the set of internal models reachable from `this` across exactly one\n        relationship.\n      */\n      this._directlyRelatedRecordDatasIterable = () => {\n        var graph = graphFor(this.storeWrapper);\n        var initializedRelationships = graph.identifiers.get(this.identifier);\n        if (!initializedRelationships) {\n          return EMPTY_ITERATOR;\n        }\n        var initializedRelationshipsArr = Object.keys(initializedRelationships).map(key => initializedRelationships[key]).filter(rel => {\n          return !isImplicit(rel);\n        });\n        var i = 0;\n        var j = 0;\n        var k = 0;\n        var findNext = () => {\n          while (i < initializedRelationshipsArr.length) {\n            while (j < 2) {\n              var members = j === 0 ? getLocalState(initializedRelationshipsArr[i]) : getRemoteState(initializedRelationshipsArr[i]);\n              while (k < members.length) {\n                var member = members[k++];\n                if (member !== null) {\n                  // TODO this can cause materialization\n                  // do something to avoid that\n                  return Private.recordDataFor(member);\n                }\n              }\n              k = 0;\n              j++;\n            }\n            j = 0;\n            i++;\n          }\n          return undefined;\n        };\n        return {\n          iterator() {\n            return {\n              next: () => {\n                var value = findNext();\n                return {\n                  value,\n                  done: value === undefined\n                };\n              }\n            };\n          }\n        };\n      };\n      this.modelName = identifier.type;\n      this.clientId = identifier.lid;\n      this.id = identifier.id;\n      this.identifier = identifier;\n      this.storeWrapper = storeWrapper;\n      this.isDestroyed = false;\n      this._isNew = false;\n      this._isDeleted = false;\n      // Used during the mark phase of unloading to avoid checking the same internal\n      // model twice in the same scan\n      this._bfsId = 0;\n      this.reset();\n    }\n\n    // PUBLIC API\n    getResourceIdentifier() {\n      return this.identifier;\n    }\n    pushData(data, calculateChange) {\n      var changedKeys;\n      if (this._isNew) {\n        this._isNew = false;\n        this.notifyStateChange();\n      }\n      if (calculateChange) {\n        changedKeys = this._changedKeys(data.attributes);\n      }\n      polyfills.assign(this._data, data.attributes);\n      if (this.__attributes) {\n        // only do if we have attribute changes\n        this._updateChangedAttributes();\n      }\n      if (data.relationships) {\n        this._setupRelationships(data);\n      }\n      if (data.id) {\n        if (!this.id) {\n          this.id = coerceId(data.id);\n        }\n      }\n      return changedKeys;\n    }\n    willCommit() {\n      this._inFlightAttributes = this._attributes;\n      this._attributes = null;\n    }\n    hasChangedAttributes() {\n      return this.__attributes !== null && Object.keys(this.__attributes).length > 0;\n    }\n    _clearErrors() {\n      {\n        if (this._errors) {\n          this._errors = undefined;\n          this.storeWrapper.notifyErrorsChange(this.modelName, this.id, this.clientId);\n        }\n      }\n    }\n    getErrors() {\n      {\n        var errors = this._errors || [];\n        return errors;\n      }\n    }\n\n    // this is a hack bc we don't have access to the state machine\n    //   and relationships need this info and @runspired didn't see\n    //   how to get it just yet from storeWrapper.\n    isEmpty() {\n      return this.__attributes === null && this.__inFlightAttributes === null && this.__data === null;\n    }\n    deleteRecord() {\n      this._isDeleted = true;\n      this.notifyStateChange();\n    }\n    isDeleted() {\n      return this._isDeleted;\n    }\n    setIsDeleted(isDeleted) {\n      this._isDeleted = isDeleted;\n      if (this._isNew) {\n        this._deletionConfirmed();\n      }\n      this.notifyStateChange();\n    }\n    isDeletionCommitted() {\n      return this._isDeletionCommited;\n    }\n    reset() {\n      this.__attributes = null;\n      this.__inFlightAttributes = null;\n      this.__data = null;\n      this._errors = undefined;\n    }\n    _setupRelationships(data) {\n      // TODO @runspired iterating by definitions instead of by payload keys\n      // allows relationship payloads to be ignored silently if no relationship\n      // definition exists. Ensure there's a test for this and then consider\n      // moving this to an assertion. This check should possibly live in the graph.\n      var relationships = this.storeWrapper.relationshipsDefinitionFor(this.modelName);\n      var keys = Object.keys(relationships);\n      for (var i = 0; i < keys.length; i++) {\n        var relationshipName = keys[i];\n        if (!data.relationships[relationshipName]) {\n          continue;\n        }\n        var relationshipData = data.relationships[relationshipName];\n        graphFor(this.storeWrapper).push({\n          op: 'updateRelationship',\n          record: this.identifier,\n          field: relationshipName,\n          value: relationshipData\n        });\n      }\n    }\n\n    /**\n      Checks if the attributes which are considered as changed are still\n      different to the state which is acknowledged by the server.\n       This method is needed when data for the internal model is pushed and the\n      pushed data might acknowledge dirty attributes as confirmed.\n       @method updateChangedAttributes\n      @private\n     */\n    _updateChangedAttributes() {\n      var changedAttributes = this.changedAttributes();\n      var changedAttributeNames = Object.keys(changedAttributes);\n      var attrs = this._attributes;\n      for (var i = 0, length = changedAttributeNames.length; i < length; i++) {\n        var attribute = changedAttributeNames[i];\n        var data = changedAttributes[attribute];\n        var oldData = data[0];\n        var newData = data[1];\n        if (oldData === newData) {\n          delete attrs[attribute];\n        }\n      }\n    }\n\n    /**\n      Returns an object, whose keys are changed properties, and value is an\n      [oldProp, newProp] array.\n       @method changedAttributes\n      @private\n    */\n    changedAttributes() {\n      var oldData = this._data;\n      var currentData = this._attributes;\n      var inFlightData = this._inFlightAttributes;\n      var newData = polyfills.assign({}, inFlightData, currentData);\n      var diffData = Object.create(null);\n      var newDataKeys = Object.keys(newData);\n      for (var i = 0, length = newDataKeys.length; i < length; i++) {\n        var key = newDataKeys[i];\n        diffData[key] = [oldData[key], newData[key]];\n      }\n      return diffData;\n    }\n    isNew() {\n      return this._isNew;\n    }\n    rollbackAttributes() {\n      var dirtyKeys;\n      this._isDeleted = false;\n      if (this.hasChangedAttributes()) {\n        dirtyKeys = Object.keys(this._attributes);\n        this._attributes = null;\n      }\n      if (this.isNew()) {\n        this.removeFromInverseRelationships();\n        this._isDeleted = true;\n        this._isNew = false;\n      }\n      this._inFlightAttributes = null;\n      this._clearErrors();\n      this.notifyStateChange();\n      return dirtyKeys;\n    }\n    _deletionConfirmed() {\n      this.removeFromInverseRelationships();\n    }\n    didCommit(data) {\n      if (this._isDeleted) {\n        this._deletionConfirmed();\n        this._isDeletionCommited = true;\n      }\n      this._isNew = false;\n      var newCanonicalAttributes = null;\n      if (data) {\n        if (data.id) {\n          // didCommit provided an ID, notify the store of it\n          this.storeWrapper.setRecordId(this.modelName, data.id, this.clientId);\n          this.id = coerceId(data.id);\n        }\n        if (data.relationships) {\n          this._setupRelationships(data);\n        }\n        newCanonicalAttributes = data.attributes || null;\n      }\n      var changedKeys = this._changedKeys(newCanonicalAttributes);\n      polyfills.assign(this._data, this.__inFlightAttributes, newCanonicalAttributes);\n      this._inFlightAttributes = null;\n      this._updateChangedAttributes();\n      this._clearErrors();\n      this.notifyStateChange();\n      return changedKeys;\n    }\n    notifyStateChange() {\n      {\n        this.storeWrapper.notifyStateChange(this.modelName, this.id, this.clientId);\n      }\n    }\n\n    // get ResourceIdentifiers for \"current state\"\n    getHasMany(key) {\n      return graphFor(this.storeWrapper).get(this.identifier, key).getData();\n    }\n\n    // set a new \"current state\" via ResourceIdentifiers\n    setDirtyHasMany(key, recordDatas) {\n      graphFor(this.storeWrapper).update({\n        op: 'replaceRelatedRecords',\n        record: this.identifier,\n        field: key,\n        value: recordDatas.map(Private.recordIdentifierFor)\n      });\n    }\n\n    // append to \"current state\" via RecordDatas\n    addToHasMany(key, recordDatas, idx) {\n      graphFor(this.storeWrapper).update({\n        op: 'addToRelatedRecords',\n        record: this.identifier,\n        field: key,\n        value: recordDatas.map(Private.recordIdentifierFor),\n        index: idx\n      });\n    }\n\n    // remove from \"current state\" via RecordDatas\n    removeFromHasMany(key, recordDatas) {\n      graphFor(this.storeWrapper).update({\n        op: 'removeFromRelatedRecords',\n        record: this.identifier,\n        field: key,\n        value: recordDatas.map(Private.recordIdentifierFor)\n      });\n    }\n    commitWasRejected(identifier, errors) {\n      var keys = Object.keys(this._inFlightAttributes);\n      if (keys.length > 0) {\n        var attrs = this._attributes;\n        for (var i = 0; i < keys.length; i++) {\n          if (attrs[keys[i]] === undefined) {\n            attrs[keys[i]] = this._inFlightAttributes[keys[i]];\n          }\n        }\n      }\n      this._inFlightAttributes = null;\n      {\n        if (errors) {\n          this._errors = errors;\n        }\n        this.storeWrapper.notifyErrorsChange(this.modelName, this.id, this.clientId);\n      }\n    }\n    getBelongsTo(key) {\n      return graphFor(this.storeWrapper).get(this.identifier, key).getData();\n    }\n    setDirtyBelongsTo(key, recordData) {\n      graphFor(this.storeWrapper).update({\n        op: 'replaceRelatedRecord',\n        record: this.identifier,\n        field: key,\n        value: recordData ? Private.recordIdentifierFor(recordData) : null\n      });\n    }\n    setDirtyAttribute(key, value) {\n      var originalValue;\n      // Add the new value to the changed attributes hash\n      this._attributes[key] = value;\n      if (key in this._inFlightAttributes) {\n        originalValue = this._inFlightAttributes[key];\n      } else {\n        originalValue = this._data[key];\n      }\n      // If we went back to our original value, we shouldn't keep the attribute around anymore\n      if (value === originalValue) {\n        delete this._attributes[key];\n      }\n    }\n\n    // internal set coming from the model\n    __setId(id) {\n      if (this.id !== id) {\n        this.id = id;\n      }\n    }\n    getAttr(key) {\n      if (key in this._attributes) {\n        return this._attributes[key];\n      } else if (key in this._inFlightAttributes) {\n        return this._inFlightAttributes[key];\n      } else {\n        return this._data[key];\n      }\n    }\n    hasAttr(key) {\n      return key in this._attributes || key in this._inFlightAttributes || key in this._data;\n    }\n    unloadRecord() {\n      if (this.isDestroyed) {\n        return;\n      }\n      graphFor(this.storeWrapper).unload(this.identifier);\n      this.reset();\n      if (!this._scheduledDestroy) {\n        this._scheduledDestroy = runloop._backburner.schedule('destroy', this, '_cleanupOrphanedRecordDatas');\n      }\n    }\n    _cleanupOrphanedRecordDatas() {\n      var relatedRecordDatas = this._allRelatedRecordDatas();\n      if (areAllModelsUnloaded(relatedRecordDatas)) {\n        // we don't have a backburner queue yet since\n        // we scheduled this into ember's destroy\n        // disconnectRecord called from destroy will teardown\n        // relationships. We do this to queue that.\n        this.storeWrapper._store._backburner.join(() => {\n          for (var i = 0; i < relatedRecordDatas.length; ++i) {\n            var recordData = relatedRecordDatas[i];\n            if (!recordData.isDestroyed) {\n              // TODO @runspired we do not currently destroy RecordData instances *except* via this relationship\n              // traversal. This seems like an oversight since the store should be able to notify destroy.\n              Private.removeRecordDataFor(recordData.identifier);\n              recordData.destroy();\n            }\n          }\n        });\n      }\n      this._scheduledDestroy = null;\n    }\n    destroy() {\n      this.isDestroyed = true;\n      this.storeWrapper.disconnectRecord(this.modelName, this.id, this.clientId);\n    }\n    isRecordInUse() {\n      return this.storeWrapper.isRecordInUse(this.modelName, this.id, this.clientId);\n    }\n    /*\n      Computes the set of internal models reachable from this internal model.\n       Reachability is determined over the relationship graph (ie a graph where\n      nodes are internal models and edges are belongs to or has many\n      relationships).\n       Returns an array including `this` and all internal models reachable\n      from `this`.\n    */\n    _allRelatedRecordDatas() {\n      var array = [];\n      var queue = [];\n      var bfsId = nextBfsId++;\n      queue.push(this);\n      this._bfsId = bfsId;\n      while (queue.length > 0) {\n        var node = queue.shift();\n        array.push(node);\n        var iterator = this._directlyRelatedRecordDatasIterable().iterator();\n        for (var obj = iterator.next(); !obj.done; obj = iterator.next()) {\n          var recordData = obj.value;\n          if (recordData && recordData instanceof RecordDataDefault) {\n            (!(recordData._bfsId <= bfsId) && debug.assert('Internal Error: seen a future bfs iteration', recordData._bfsId <= bfsId));\n            if (recordData._bfsId < bfsId) {\n              queue.push(recordData);\n              recordData._bfsId = bfsId;\n            }\n          }\n        }\n      }\n      return array;\n    }\n    isAttrDirty(key) {\n      if (this._attributes[key] === undefined) {\n        return false;\n      }\n      var originalValue;\n      if (this._inFlightAttributes[key] !== undefined) {\n        originalValue = this._inFlightAttributes[key];\n      } else {\n        originalValue = this._data[key];\n      }\n      return originalValue !== this._attributes[key];\n    }\n    get _attributes() {\n      if (this.__attributes === null) {\n        this.__attributes = Object.create(null);\n      }\n      return this.__attributes;\n    }\n    set _attributes(v) {\n      this.__attributes = v;\n    }\n    get _data() {\n      if (this.__data === null) {\n        this.__data = Object.create(null);\n      }\n      return this.__data;\n    }\n    set _data(v) {\n      this.__data = v;\n    }\n    get _inFlightAttributes() {\n      if (this.__inFlightAttributes === null) {\n        this.__inFlightAttributes = Object.create(null);\n      }\n      return this.__inFlightAttributes;\n    }\n    set _inFlightAttributes(v) {\n      this.__inFlightAttributes = v;\n    }\n\n    /**\n     * Receives options passed to `store.createRecord` and is given the opportunity\n     * to handle them.\n     *\n     * The return value is an object of options to pass to `Record.create()`\n     *\n     * @name _initRecordCreateOptions\n     * @param options\n     * @private\n     */\n    _initRecordCreateOptions(options) {\n      var createOptions = {};\n      if (options !== undefined) {\n        var {\n          modelName,\n          storeWrapper,\n          identifier\n        } = this;\n        var attributeDefs = storeWrapper.attributesDefinitionFor(modelName);\n        var relationshipDefs = storeWrapper.relationshipsDefinitionFor(modelName);\n        var graph = graphFor(storeWrapper);\n        var propertyNames = Object.keys(options);\n        for (var i = 0; i < propertyNames.length; i++) {\n          var name = propertyNames[i];\n          var propertyValue = options[name];\n          if (name === 'id') {\n            this.id = propertyValue;\n            continue;\n          }\n          var fieldType = relationshipDefs[name] || attributeDefs[name];\n          var kind = fieldType !== undefined ? fieldType.kind : null;\n          var relationship = void 0;\n          switch (kind) {\n            case 'attribute':\n              this.setDirtyAttribute(name, propertyValue);\n              break;\n            case 'belongsTo':\n              this.setDirtyBelongsTo(name, propertyValue);\n              relationship = graph.get(identifier, name);\n              relationship.state.hasReceivedData = true;\n              relationship.state.isEmpty = false;\n              break;\n            case 'hasMany':\n              this.setDirtyHasMany(name, propertyValue);\n              relationship = graph.get(identifier, name);\n              relationship.state.hasReceivedData = true;\n              relationship.state.isEmpty = false;\n              break;\n            default:\n              // reflect back (pass-thru) unknown properties\n              createOptions[name] = propertyValue;\n          }\n        }\n      }\n      return createOptions;\n    }\n\n    /*\n      TODO IGOR AND DAVID this shouldn't be public\n     This method should only be called by records in the `isNew()` state OR once the record\n     has been deleted and that deletion has been persisted.\n      It will remove this record from any associated relationships.\n      If `isNew` is true (default false), it will also completely reset all\n      relationships to an empty state as well.\n       @method removeFromInverseRelationships\n      @param {Boolean} isNew whether to unload from the `isNew` perspective\n      @private\n     */\n    removeFromInverseRelationships() {\n      graphFor(this.storeWrapper).push({\n        op: 'deleteRecord',\n        record: this.identifier,\n        isNew: this.isNew()\n      });\n    }\n    clientDidCreate() {\n      this._isNew = true;\n    }\n\n    /*\n      Ember Data has 3 buckets for storing the value of an attribute on an internalModel.\n       `_data` holds all of the attributes that have been acknowledged by\n      a backend via the adapter. When rollbackAttributes is called on a model all\n      attributes will revert to the record's state in `_data`.\n       `_attributes` holds any change the user has made to an attribute\n      that has not been acknowledged by the adapter. Any values in\n      `_attributes` are have priority over values in `_data`.\n       `_inFlightAttributes`. When a record is being synced with the\n      backend the values in `_attributes` are copied to\n      `_inFlightAttributes`. This way if the backend acknowledges the\n      save but does not return the new state Ember Data can copy the\n      values from `_inFlightAttributes` to `_data`. Without having to\n      worry about changes made to `_attributes` while the save was\n      happenign.\n        Changed keys builds a list of all of the values that may have been\n      changed by the backend after a successful save.\n       It does this by iterating over each key, value pair in the payload\n      returned from the server after a save. If the `key` is found in\n      `_attributes` then the user has a local changed to the attribute\n      that has not been synced with the server and the key is not\n      included in the list of changed keys.\n    \n      If the value, for a key differs from the value in what Ember Data\n      believes to be the truth about the backend state (A merger of the\n      `_data` and `_inFlightAttributes` objects where\n      `_inFlightAttributes` has priority) then that means the backend\n      has updated the value and the key is added to the list of changed\n      keys.\n       @method _changedKeys\n      @private\n    */\n    /*\n        TODO IGOR DAVID\n        There seems to be a potential bug here, where we will return keys that are not\n        in the schema\n    */\n    _changedKeys(updates) {\n      var changedKeys = [];\n      if (updates) {\n        var original, i, value, key;\n        var keys = Object.keys(updates);\n        var length = keys.length;\n        var hasAttrs = this.hasChangedAttributes();\n        var attrs;\n        if (hasAttrs) {\n          attrs = this._attributes;\n        }\n        original = polyfills.assign(Object.create(null), this._data, this.__inFlightAttributes);\n        for (i = 0; i < length; i++) {\n          key = keys[i];\n          value = updates[key];\n\n          // A value in _attributes means the user has a local change to\n          // this attributes. We never override this value when merging\n          // updates from the backend so we should not sent a change\n          // notification if the server value differs from the original.\n          if (hasAttrs === true && attrs[key] !== undefined) {\n            continue;\n          }\n          if (!utils.isEqual(original[key], value)) {\n            changedKeys.push(key);\n          }\n        }\n      }\n      return changedKeys;\n    }\n    toString() {\n      return `<${this.modelName}:${this.id}>`;\n    }\n  }\n  function areAllModelsUnloaded(recordDatas) {\n    for (var i = 0; i < recordDatas.length; ++i) {\n      if (recordDatas[i].isRecordInUse()) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function getLocalState(rel) {\n    if (rel.definition.kind === 'belongsTo') {\n      return rel.localState ? [rel.localState] : [];\n    }\n    return rel.currentState;\n  }\n  function getRemoteState(rel) {\n    if (rel.definition.kind === 'belongsTo') {\n      return rel.remoteState ? [rel.remoteState] : [];\n    }\n    return rel.canonicalState;\n  }\n\n  exports.BelongsToRelationship = BelongsToRelationship;\n  exports.ManyRelationship = ManyRelationship;\n  exports.RecordData = RecordDataDefault;\n  exports.Relationship = ImplicitRelationship;\n  exports.graphFor = graphFor;\n  exports.peekGraph = peekGraph;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n","define('@ember-data/serializer/-private', ['exports', '@ember/array', '@ember/debug', '@ember/object', '@ember/object/mixin', '@ember/string', '@ember/utils'], (function (exports, array, debug, EmberObject, Mixin, string$1, utils) { 'use strict';\n\n  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\n  var EmberObject__default = /*#__PURE__*/_interopDefaultLegacy(EmberObject);\n  var Mixin__default = /*#__PURE__*/_interopDefaultLegacy(Mixin);\n\n  /**\n    @module @ember-data/serializer/rest\n  */\n\n  /**\n    ## Using Embedded Records\n\n    `EmbeddedRecordsMixin` supports serializing embedded records.\n\n    To set up embedded records, include the mixin when extending a serializer,\n    then define and configure embedded (model) relationships.\n\n    Note that embedded records will serialize with the serializer for their model instead of the serializer in which they are defined.\n\n    Note also that this mixin does not work with JSONAPISerializer because the JSON:API specification does not describe how to format embedded resources.\n\n    Below is an example of a per-type serializer (`post` type).\n\n    ```app/serializers/post.js\n    import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n\n    export default class PostSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n      attrs = {\n        author: { embedded: 'always' },\n        comments: { serialize: 'ids' }\n      }\n    }\n    ```\n    Note that this use of `{ embedded: 'always' }` is unrelated to\n    the `{ embedded: 'always' }` that is defined as an option on `attr` as part of\n    defining a model while working with the `ActiveModelSerializer`.  Nevertheless,\n    using `{ embedded: 'always' }` as an option to `attr` is not a valid way to set up\n    embedded records.\n\n    The `attrs` option for a resource `{ embedded: 'always' }` is shorthand for:\n\n    ```js\n    {\n      serialize: 'records',\n      deserialize: 'records'\n    }\n    ```\n\n    ### Configuring Attrs\n\n    A resource's `attrs` option may be set to use `ids`, `records` or false for the\n    `serialize`  and `deserialize` settings.\n\n    The `attrs` property can be set on the `ApplicationSerializer` or a per-type\n    serializer.\n\n    In the case where embedded JSON is expected while extracting a payload (reading)\n    the setting is `deserialize: 'records'`, there is no need to use `ids` when\n    extracting as that is the default behaviour without this mixin if you are using\n    the vanilla `EmbeddedRecordsMixin`. Likewise, to embed JSON in the payload while\n    serializing `serialize: 'records'` is the setting to use. There is an option of\n    not embedding JSON in the serialized payload by using `serialize: 'ids'`. If you\n    do not want the relationship sent at all, you can use `serialize: false`.\n\n\n    ### EmbeddedRecordsMixin defaults\n    If you do not overwrite `attrs` for a specific relationship, the `EmbeddedRecordsMixin`\n    will behave in the following way:\n\n    BelongsTo: `{ serialize: 'id', deserialize: 'id' }`\n    HasMany:   `{ serialize: false, deserialize: 'ids' }`\n\n    ### Model Relationships\n\n    Embedded records must have a model defined to be extracted and serialized. Note that\n    when defining any relationships on your model such as `belongsTo` and `hasMany`, you\n    should not both specify `async: true` and also indicate through the serializer's\n    `attrs` attribute that the related model should be embedded for deserialization.\n    If a model is declared embedded for deserialization (`embedded: 'always'` or `deserialize: 'records'`),\n    then do not use `async: true`.\n\n    To successfully extract and serialize embedded records the model relationships\n    must be set up correctly. See the\n    [defining relationships](https://guides.emberjs.com/current/models/relationships)\n    section of the **Defining Models** guide page.\n\n    Records without an `id` property are not considered embedded records, model\n    instances must have an `id` property to be used with Ember Data.\n\n    ### Example JSON payloads, Models and Serializers\n\n    **When customizing a serializer it is important to grok what the customizations\n    are. Please read the docs for the methods this mixin provides, in case you need\n    to modify it to fit your specific needs.**\n\n    For example, review the docs for each method of this mixin:\n    * [normalize](/ember-data/release/classes/EmbeddedRecordsMixin/methods/normalize?anchor=normalize)\n    * [serializeBelongsTo](/ember-data/release/classes/EmbeddedRecordsMixin/methods/serializeBelongsTo?anchor=serializeBelongsTo)\n    * [serializeHasMany](/ember-data/release/classes/EmbeddedRecordsMixin/methods/serializeHasMany?anchor=serializeHasMany)\n\n    @class EmbeddedRecordsMixin\n    @public\n  */\n  var embeddedRecordsMixin = Mixin__default[\"default\"].create({\n    /**\n      Normalize the record and recursively normalize/extract all the embedded records\n      while pushing them into the store as they are encountered\n       A payload with an attr configured for embedded records needs to be extracted:\n       ```js\n      {\n        \"post\": {\n          \"id\": \"1\"\n          \"title\": \"Rails is omakase\",\n          \"comments\": [{\n            \"id\": \"1\",\n            \"body\": \"Rails is unagi\"\n          }, {\n            \"id\": \"2\",\n            \"body\": \"Omakase O_o\"\n          }]\n        }\n      }\n      ```\n     @method normalize\n      @public\n     @param {Model} typeClass\n     @param {Object} hash to be normalized\n     @param {String} prop the hash has been referenced by\n     @return {Object} the normalized hash\n    **/\n    normalize(typeClass, hash, prop) {\n      var normalizedHash = this._super(typeClass, hash, prop);\n      return this._extractEmbeddedRecords(this, this.store, typeClass, normalizedHash);\n    },\n    keyForRelationship(key, typeClass, method) {\n      if (method === 'serialize' && this.hasSerializeRecordsOption(key) || method === 'deserialize' && this.hasDeserializeRecordsOption(key)) {\n        return this.keyForAttribute(key, method);\n      } else {\n        return this._super(key, typeClass, method) || key;\n      }\n    },\n    /**\n      Serialize `belongsTo` relationship when it is configured as an embedded object.\n       This example of an author model belongs to a post model:\n       ```js\n      import Model, { attr, belongsTo } from '@ember-data/model';\n       Post = Model.extend({\n        title:    attr('string'),\n        body:     attr('string'),\n        author:   belongsTo('author')\n      });\n       Author = Model.extend({\n        name:     attr('string'),\n        post:     belongsTo('post')\n      });\n      ```\n       Use a custom (type) serializer for the post model to configure embedded author\n       ```app/serializers/post.js\n      import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n       export default class PostSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n        attrs = {\n          author: { embedded: 'always' }\n        }\n      }\n      ```\n       A payload with an attribute configured for embedded records can serialize\n      the records together under the root attribute's payload:\n       ```js\n      {\n        \"post\": {\n          \"id\": \"1\"\n          \"title\": \"Rails is omakase\",\n          \"author\": {\n            \"id\": \"2\"\n            \"name\": \"dhh\"\n          }\n        }\n      }\n      ```\n       @method serializeBelongsTo\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializeBelongsTo(snapshot, json, relationship) {\n      var attr = relationship.key;\n      if (this.noSerializeOptionSpecified(attr)) {\n        this._super(snapshot, json, relationship);\n        return;\n      }\n      var includeIds = this.hasSerializeIdsOption(attr);\n      var includeRecords = this.hasSerializeRecordsOption(attr);\n      var embeddedSnapshot = snapshot.belongsTo(attr);\n      if (includeIds) {\n        var serializedKey = this._getMappedKey(relationship.key, snapshot.type);\n        if (serializedKey === relationship.key && this.keyForRelationship) {\n          serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n        }\n        if (!embeddedSnapshot) {\n          json[serializedKey] = null;\n        } else {\n          json[serializedKey] = embeddedSnapshot.id;\n          if (relationship.options.polymorphic) {\n            this.serializePolymorphicType(snapshot, json, relationship);\n          }\n        }\n      } else if (includeRecords) {\n        this._serializeEmbeddedBelongsTo(snapshot, json, relationship);\n      }\n    },\n    _serializeEmbeddedBelongsTo(snapshot, json, relationship) {\n      var embeddedSnapshot = snapshot.belongsTo(relationship.key);\n      var serializedKey = this._getMappedKey(relationship.key, snapshot.type);\n      if (serializedKey === relationship.key && this.keyForRelationship) {\n        serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n      }\n      if (!embeddedSnapshot) {\n        json[serializedKey] = null;\n      } else {\n        json[serializedKey] = embeddedSnapshot.serialize({\n          includeId: true\n        });\n        this.removeEmbeddedForeignKey(snapshot, embeddedSnapshot, relationship, json[serializedKey]);\n        if (relationship.options.polymorphic) {\n          this.serializePolymorphicType(snapshot, json, relationship);\n        }\n      }\n    },\n    /**\n      Serializes `hasMany` relationships when it is configured as embedded objects.\n       This example of a post model has many comments:\n       ```js\n      import Model, { attr, belongsTo, hasMany } from '@ember-data/model';\n       Post = Model.extend({\n        title:    attr('string'),\n        body:     attr('string'),\n        comments: hasMany('comment')\n      });\n       Comment = Model.extend({\n        body:     attr('string'),\n        post:     belongsTo('post')\n      });\n      ```\n       Use a custom (type) serializer for the post model to configure embedded comments\n       ```app/serializers/post.js\n      import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n       export default class PostSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n        attrs = {\n          comments: { embedded: 'always' }\n        }\n      }\n      ```\n       A payload with an attribute configured for embedded records can serialize\n      the records together under the root attribute's payload:\n       ```js\n      {\n        \"post\": {\n          \"id\": \"1\"\n          \"title\": \"Rails is omakase\",\n          \"body\": \"I want this for my ORM, I want that for my template language...\"\n          \"comments\": [{\n            \"id\": \"1\",\n            \"body\": \"Rails is unagi\"\n          }, {\n            \"id\": \"2\",\n            \"body\": \"Omakase O_o\"\n          }]\n        }\n      }\n      ```\n       The attrs options object can use more specific instruction for extracting and\n      serializing. When serializing, an option to embed `ids`, `ids-and-types` or `records` can be set.\n      When extracting the only option is `records`.\n       So `{ embedded: 'always' }` is shorthand for:\n      `{ serialize: 'records', deserialize: 'records' }`\n       To embed the `ids` for a related object (using a hasMany relationship):\n       ```app/serializers/post.js\n      import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n       export default class PostSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n        attrs = {\n          comments: { serialize: 'ids', deserialize: 'records' }\n        }\n      }\n      ```\n       ```js\n      {\n        \"post\": {\n          \"id\": \"1\"\n          \"title\": \"Rails is omakase\",\n          \"body\": \"I want this for my ORM, I want that for my template language...\"\n          \"comments\": [\"1\", \"2\"]\n        }\n      }\n      ```\n       To embed the relationship as a collection of objects with `id` and `type` keys, set\n      `ids-and-types` for the related object.\n       This is particularly useful for polymorphic relationships where records don't share\n      the same table and the `id` is not enough information.\n       For example having a user that has many pets:\n       ```js\n      User = Model.extend({\n        name: attr('string'),\n        pets: hasMany('pet', { polymorphic: true })\n      });\n       Pet = Model.extend({\n        name: attr('string'),\n      });\n       Cat = Pet.extend({\n        // ...\n      });\n       Parrot = Pet.extend({\n        // ...\n      });\n      ```\n       ```app/serializers/user.js\n      import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n       export default class UserSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n        attrs = {\n          pets: { serialize: 'ids-and-types', deserialize: 'records' }\n        }\n      }\n      ```\n       ```js\n      {\n        \"user\": {\n          \"id\": \"1\"\n          \"name\": \"Bertin Osborne\",\n          \"pets\": [\n            { \"id\": \"1\", \"type\": \"Cat\" },\n            { \"id\": \"1\", \"type\": \"Parrot\"}\n          ]\n        }\n      }\n      ```\n       @method serializeHasMany\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializeHasMany(snapshot, json, relationship) {\n      var attr = relationship.key;\n      if (this.noSerializeOptionSpecified(attr)) {\n        this._super(snapshot, json, relationship);\n        return;\n      }\n      if (this.hasSerializeIdsOption(attr)) {\n        var serializedKey = this._getMappedKey(relationship.key, snapshot.type);\n        if (serializedKey === relationship.key && this.keyForRelationship) {\n          serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n        }\n        json[serializedKey] = snapshot.hasMany(attr, {\n          ids: true\n        });\n      } else if (this.hasSerializeRecordsOption(attr)) {\n        this._serializeEmbeddedHasMany(snapshot, json, relationship);\n      } else {\n        if (this.hasSerializeIdsAndTypesOption(attr)) {\n          this._serializeHasManyAsIdsAndTypes(snapshot, json, relationship);\n        }\n      }\n    },\n    /*\n      Serializes a hasMany relationship as an array of objects containing only `id` and `type`\n      keys.\n      This has its use case on polymorphic hasMany relationships where the server is not storing\n      all records in the same table using STI, and therefore the `id` is not enough information\n       TODO: Make the default in Ember-data 3.0??\n    */\n    _serializeHasManyAsIdsAndTypes(snapshot, json, relationship) {\n      var serializedKey = this.keyForAttribute(relationship.key, 'serialize');\n      var hasMany = snapshot.hasMany(relationship.key);\n      json[serializedKey] = array.A(hasMany).map(function (recordSnapshot) {\n        //\n        // I'm sure I'm being utterly naive here. Probably id is a configurable property and\n        // type too, and the modelName has to be normalized somehow.\n        //\n        return {\n          id: recordSnapshot.id,\n          type: recordSnapshot.modelName\n        };\n      });\n    },\n    _serializeEmbeddedHasMany(snapshot, json, relationship) {\n      var serializedKey = this._getMappedKey(relationship.key, snapshot.type);\n      if (serializedKey === relationship.key && this.keyForRelationship) {\n        serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n      }\n      (debug.warn(`The embedded relationship '${serializedKey}' is undefined for '${snapshot.modelName}' with id '${snapshot.id}'. Please include it in your original payload.`, utils.typeOf(snapshot.hasMany(relationship.key)) !== 'undefined', {\n        id: 'ds.serializer.embedded-relationship-undefined'\n      }));\n      json[serializedKey] = this._generateSerializedHasMany(snapshot, relationship);\n    },\n    /*\n      Returns an array of embedded records serialized to JSON\n    */\n    _generateSerializedHasMany(snapshot, relationship) {\n      var hasMany = snapshot.hasMany(relationship.key);\n      var manyArray = array.A(hasMany);\n      var ret = new Array(manyArray.length);\n      for (var i = 0; i < manyArray.length; i++) {\n        var embeddedSnapshot = manyArray[i];\n        var embeddedJson = embeddedSnapshot.serialize({\n          includeId: true\n        });\n        this.removeEmbeddedForeignKey(snapshot, embeddedSnapshot, relationship, embeddedJson);\n        ret[i] = embeddedJson;\n      }\n      return ret;\n    },\n    /**\n      When serializing an embedded record, modify the property (in the `JSON` payload)\n      that refers to the parent record (foreign key for the relationship).\n       Serializing a `belongsTo` relationship removes the property that refers to the\n      parent record\n       Serializing a `hasMany` relationship does not remove the property that refers to\n      the parent record.\n       @method removeEmbeddedForeignKey\n      @public\n      @param {Snapshot} snapshot\n      @param {Snapshot} embeddedSnapshot\n      @param {Object} relationship\n      @param {Object} json\n    */\n    removeEmbeddedForeignKey(snapshot, embeddedSnapshot, relationship, json) {\n      if (relationship.kind === 'belongsTo') {\n        var parentRecord = snapshot.type.inverseFor(relationship.key, this.store);\n        if (parentRecord) {\n          var name = parentRecord.name;\n          var embeddedSerializer = this.store.serializerFor(embeddedSnapshot.modelName);\n          var parentKey = embeddedSerializer.keyForRelationship(name, parentRecord.kind, 'deserialize');\n          if (parentKey) {\n            delete json[parentKey];\n          }\n        }\n      } /*else if (relationship.kind === 'hasMany') {\n        return;\n        }*/\n    },\n\n    // checks config for attrs option to embedded (always) - serialize and deserialize\n    hasEmbeddedAlwaysOption(attr) {\n      var option = this.attrsOption(attr);\n      return option && option.embedded === 'always';\n    },\n    // checks config for attrs option to serialize ids\n    hasSerializeRecordsOption(attr) {\n      var alwaysEmbed = this.hasEmbeddedAlwaysOption(attr);\n      var option = this.attrsOption(attr);\n      return alwaysEmbed || option && option.serialize === 'records';\n    },\n    // checks config for attrs option to serialize records\n    hasSerializeIdsOption(attr) {\n      var option = this.attrsOption(attr);\n      return option && (option.serialize === 'ids' || option.serialize === 'id');\n    },\n    // checks config for attrs option to serialize records as objects containing id and types\n    hasSerializeIdsAndTypesOption(attr) {\n      var option = this.attrsOption(attr);\n      return option && (option.serialize === 'ids-and-types' || option.serialize === 'id-and-type');\n    },\n    // checks config for attrs option to serialize records\n    noSerializeOptionSpecified(attr) {\n      var option = this.attrsOption(attr);\n      return !(option && (option.serialize || option.embedded));\n    },\n    // checks config for attrs option to deserialize records\n    // a defined option object for a resource is treated the same as\n    // `deserialize: 'records'`\n    hasDeserializeRecordsOption(attr) {\n      var alwaysEmbed = this.hasEmbeddedAlwaysOption(attr);\n      var option = this.attrsOption(attr);\n      return alwaysEmbed || option && option.deserialize === 'records';\n    },\n    attrsOption(attr) {\n      var attrs = this.get('attrs');\n      return attrs && (attrs[string$1.camelize(attr)] || attrs[attr]);\n    },\n    /**\n     @method _extractEmbeddedRecords\n     @private\n    */\n    _extractEmbeddedRecords(serializer, store, typeClass, partial) {\n      typeClass.eachRelationship((key, relationship) => {\n        if (serializer.hasDeserializeRecordsOption(key)) {\n          if (relationship.kind === 'hasMany') {\n            this._extractEmbeddedHasMany(store, key, partial, relationship);\n          }\n          if (relationship.kind === 'belongsTo') {\n            this._extractEmbeddedBelongsTo(store, key, partial, relationship);\n          }\n        }\n      });\n      return partial;\n    },\n    /**\n     @method _extractEmbeddedHasMany\n     @private\n    */\n    _extractEmbeddedHasMany(store, key, hash, relationshipMeta) {\n      var relationshipHash = EmberObject.get(hash, `data.relationships.${key}.data`);\n      if (!relationshipHash) {\n        return;\n      }\n      var hasMany = new Array(relationshipHash.length);\n      for (var i = 0; i < relationshipHash.length; i++) {\n        var item = relationshipHash[i];\n        var {\n          data,\n          included\n        } = this._normalizeEmbeddedRelationship(store, relationshipMeta, item);\n        hash.included = hash.included || [];\n        hash.included.push(data);\n        if (included) {\n          hash.included.push(...included);\n        }\n        hasMany[i] = {\n          id: data.id,\n          type: data.type\n        };\n      }\n      var relationship = {\n        data: hasMany\n      };\n      EmberObject.set(hash, `data.relationships.${key}`, relationship);\n    },\n    /**\n     @method _extractEmbeddedBelongsTo\n     @private\n    */\n    _extractEmbeddedBelongsTo(store, key, hash, relationshipMeta) {\n      var relationshipHash = EmberObject.get(hash, `data.relationships.${key}.data`);\n      if (!relationshipHash) {\n        return;\n      }\n      var {\n        data,\n        included\n      } = this._normalizeEmbeddedRelationship(store, relationshipMeta, relationshipHash);\n      hash.included = hash.included || [];\n      hash.included.push(data);\n      if (included) {\n        hash.included.push(...included);\n      }\n      var belongsTo = {\n        id: data.id,\n        type: data.type\n      };\n      var relationship = {\n        data: belongsTo\n      };\n      EmberObject.set(hash, `data.relationships.${key}`, relationship);\n    },\n    /**\n     @method _normalizeEmbeddedRelationship\n     @private\n    */\n    _normalizeEmbeddedRelationship(store, relationshipMeta, relationshipHash) {\n      var modelName = relationshipMeta.type;\n      if (relationshipMeta.options.polymorphic) {\n        modelName = relationshipHash.type;\n      }\n      var modelClass = store.modelFor(modelName);\n      var serializer = store.serializerFor(modelName);\n      return serializer.normalize(modelClass, relationshipHash, null);\n    },\n    isEmbeddedRecordsMixin: true\n  });\n\n  /*\n    Check if the passed model has a `type` attribute or a relationship named `type`.\n   */\n  function modelHasAttributeOrRelationshipNamedType(modelClass) {\n    return EmberObject.get(modelClass, 'attributes').has('type') || EmberObject.get(modelClass, 'relationshipsByName').has('type');\n  }\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n    The `Transform` class is used to serialize and deserialize model\n    attributes when they are saved or loaded from an\n    adapter. Subclassing `Transform` is useful for creating custom\n    attributes. All subclasses of `Transform` must implement a\n    `serialize` and a `deserialize` method.\n\n    Example\n\n    ```app/transforms/temperature.js\n    import Transform from '@ember-data/serializer/transform';\n\n    // Converts centigrade in the JSON to fahrenheit in the app\n    export default class TemperatureTransform extends Transform {\n      deserialize(serialized, options) {\n        return (serialized *  1.8) + 32;\n      }\n\n      serialize(deserialized, options) {\n        return (deserialized - 32) / 1.8;\n      }\n    }\n    ```\n\n    Usage\n\n    ```app/models/requirement.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default class RequirementModel extends Model {\n      @attr('string') name;\n      @attr('temperature') temperature;\n    }\n    ```\n\n    The options passed into the `attr` function when the attribute is\n    declared on the model is also available in the transform.\n\n    ```app/models/post.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default class PostModel extends Model {\n      @attr('string') title;\n      @attr('markdown', {\n        markdown: {\n          gfm: false,\n          sanitize: true\n        }\n      })\n      markdown;\n    }\n    ```\n\n    ```app/transforms/markdown.js\n    import Transform from '@ember-data/serializer/transform';\n\n    export default class MarkdownTransform extends Transform {\n      serialize(deserialized, options) {\n        return deserialized.raw;\n      }\n\n      deserialize(serialized, options) {\n        let markdownOptions = options.markdown || {};\n\n        return marked(serialized, markdownOptions);\n      }\n    }\n    ```\n\n    @class Transform\n    @public\n   */\n  var Transform = EmberObject__default[\"default\"].extend({\n    /**\n      When given a deserialized value from a record attribute this\n      method must return the serialized value.\n       Example\n       ```javascript\n      import { isEmpty } from '@ember/utils';\n       serialize(deserialized, options) {\n        return isEmpty(deserialized) ? null : Number(deserialized);\n      }\n      ```\n       @method serialize\n      @public\n      @param deserialized The deserialized value\n      @param options hash of options passed to `attr`\n      @return The serialized value\n    */\n    serialize: null,\n    /**\n      When given a serialized value from a JSON object this method must\n      return the deserialized value for the record attribute.\n       Example\n       ```javascript\n      deserialize(serialized, options) {\n        return empty(serialized) ? null : Number(serialized);\n      }\n      ```\n       @method deserialize\n      @public\n      @param serialized The serialized value\n      @param options hash of options passed to `attr`\n      @return The deserialized value\n    */\n    deserialize: null\n  });\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n    The `BooleanTransform` class is used to serialize and deserialize\n    boolean attributes on Ember Data record objects. This transform is\n    used when `boolean` is passed as the type parameter to the\n    [attr](/ember-data/release/functions/@ember-data%2Fmodel/attr) function.\n\n    Usage\n\n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default class UserModel extends Model {\n      @attr('boolean') isAdmin;\n      @attr('string') name;\n      @attr('string') email;\n    }\n    ```\n\n    By default, the boolean transform only allows for values of `true` or\n    `false`. You can opt into allowing `null` values for\n    boolean attributes via `attr('boolean', { allowNull: true })`\n\n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default class UserModel extends Model {\n      @attr('string') email;\n      @attr('string') username;\n      @attr('boolean', { allowNull: true }) wantsWeeklyEmail;\n    }\n    ```\n\n    @class BooleanTransform\n    @public\n    @extends Transform\n   */\n  var boolean = Transform.extend({\n    deserialize(serialized, options) {\n      if (utils.isNone(serialized) && options.allowNull === true) {\n        return null;\n      }\n      var type = typeof serialized;\n      if (type === 'boolean') {\n        return serialized;\n      } else if (type === 'string') {\n        return /^(true|t|1)$/i.test(serialized);\n      } else if (type === 'number') {\n        return serialized === 1;\n      } else {\n        return false;\n      }\n    },\n    serialize(deserialized, options) {\n      if (utils.isNone(deserialized) && options.allowNull === true) {\n        return null;\n      }\n      return Boolean(deserialized);\n    }\n  });\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n   The `DateTransform` class is used to serialize and deserialize\n   date attributes on Ember Data record objects. This transform is used\n   when `date` is passed as the type parameter to the\n   [attr](/ember-data/release/functions/@ember-data%2Fmodel/attr) function. It uses the [`ISO 8601`](https://en.wikipedia.org/wiki/ISO_8601)\n   standard.\n\n   ```app/models/score.js\n   import Model, { attr, belongsTo } from '@ember-data/model';\n\n   export default class ScoreModel extends Model {\n      @attr('number') value;\n      @belongsTo('player') player;\n      @attr('date') date;\n    }\n   ```\n\n   @class DateTransform\n    @public\n   @extends Transform\n   */\n\n  var date = Transform.extend({\n    deserialize(serialized) {\n      var type = typeof serialized;\n      if (type === 'string') {\n        var offset = serialized.indexOf('+');\n        if (offset !== -1 && serialized.length - 5 === offset) {\n          offset += 3;\n          return new Date(serialized.slice(0, offset) + ':' + serialized.slice(offset));\n        }\n        return new Date(serialized);\n      } else if (type === 'number') {\n        return new Date(serialized);\n      } else if (serialized === null || serialized === undefined) {\n        // if the value is null return null\n        // if the value is not present in the data return undefined\n        return serialized;\n      } else {\n        return null;\n      }\n    },\n    serialize(date) {\n      if (date instanceof Date && !isNaN(date)) {\n        return date.toISOString();\n      } else {\n        return null;\n      }\n    }\n  });\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  function isNumber(value) {\n    return value === value && value !== Infinity && value !== -Infinity;\n  }\n\n  /**\n    The `NumberTransform` class is used to serialize and deserialize\n    numeric attributes on Ember Data record objects. This transform is\n    used when `number` is passed as the type parameter to the\n    [attr](/ember-data/release/functions/@ember-data%2Fmodel/attr) function.\n\n    Usage\n\n    ```app/models/score.js\n    import Model, { attr, belongsTo } from '@ember-data/model';\n\n    export default class ScoreModel extends Model {\n      @attr('number') value;\n      @belongsTo('player') player;\n      @attr('date') date;\n    }\n    ```\n\n    @class NumberTransform\n    @public\n    @extends Transform\n   */\n  var number = Transform.extend({\n    deserialize(serialized) {\n      var transformed;\n      if (serialized === '' || serialized === null || serialized === undefined) {\n        return null;\n      } else {\n        transformed = Number(serialized);\n        return isNumber(transformed) ? transformed : null;\n      }\n    },\n    serialize(deserialized) {\n      var transformed;\n      if (deserialized === '' || deserialized === null || deserialized === undefined) {\n        return null;\n      } else {\n        transformed = Number(deserialized);\n        return isNumber(transformed) ? transformed : null;\n      }\n    }\n  });\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n    The `StringTransform` class is used to serialize and deserialize\n    string attributes on Ember Data record objects. This transform is\n    used when `string` is passed as the type parameter to the\n    [attr](/ember-data/release/functions/@ember-data%2Fmodel/attr) function.\n\n    Usage\n\n    ```app/models/user.js\n    import Model, { attr, belongsTo } from '@ember-data/model';\n\n    export default class UserModel extends Model {\n      @attr('boolean') isAdmin;\n      @attr('string') name;\n      @attr('string') email;\n    }\n    ```\n\n    @class StringTransform\n    @public\n    @extends Transform\n   */\n  var string = Transform.extend({\n    deserialize(serialized) {\n      return utils.isNone(serialized) ? null : String(serialized);\n    },\n    serialize(deserialized) {\n      return utils.isNone(deserialized) ? null : String(deserialized);\n    }\n  });\n\n  exports.BooleanTransform = boolean;\n  exports.DateTransform = date;\n  exports.EmbeddedRecordsMixin = embeddedRecordsMixin;\n  exports.NumberTransform = number;\n  exports.StringTransform = string;\n  exports.Transform = Transform;\n  exports.modelHasAttributeOrRelationshipNamedType = modelHasAttributeOrRelationshipNamedType;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n","define(\"@ember-data/serializer/index\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    ## Overview\n  \n    In order to properly manage and present your data, EmberData\n    needs to understand the structure of data it receives.\n  \n    `Serializers` convert data between the server's API format and\n    the format EmberData understands.\n  \n    Data received from an API response is **normalized** into\n    [JSON:API](https://jsonapi.org/) (the format used internally\n    by EmberData), while data sent to an API is **serialized**\n    into the format the API expects.\n  \n    ### Implementing a Serializer\n  \n    There are only two required serializer methods, one for\n    normalizing data from the server API format into JSON:API, and\n    another for serializing records via `Snapshots` into the expected\n    server API format.\n  \n    To implement a serializer, export a class that conforms to the structure\n    described by the [MinimumSerializerInterface](/ember-data/release/classes/MinimumSerializerInterface)\n    from the `app/serializers/` directory. An example is below.\n  \n    ```ts\n    import EmberObject from '@ember/object';\n  \n    export default class ApplicationSerializer extends EmberObject {\n      normalizeResponse(store, schema, rawPayload) {\n        return rawPayload;\n      }\n  \n      serialize(snapshot, options) {\n        const serializedResource = {\n          id: snapshot.id,\n          type: snapshot.modelName,\n          attributes: snapshot.attributes()\n        };\n  \n        return serializedResource;\n      }\n    }\n   ```\n  \n  \n    ### Serializer Resolution\n  \n    `store.serializerFor(name)` will lookup serializers defined in\n    `app/serializers/` and return an instance. If no serializer is found, an\n    error will be thrown.\n  \n    `serializerFor` first attempts to find a serializer with an exact match on `name`,\n    then falls back to checking for the presence of a serializer named `application`.\n  \n    ```ts\n    store.serializerFor('author');\n  \n    // lookup paths (in order) =>\n    //   app/serializers/author.js\n    //   app/serializers/application.js\n    ```\n  \n    Most requests in EmberData are made with respect to a particular `type` (or `modelName`)\n    (e.g., \"get me the full collection of **books**\" or \"get me the **employee** whose id is 37\"). We\n    refer to this as the **primary** resource `type`.\n  \n    Typically `serializerFor` will be used to find a serializer with a name matching that of the primary\n    resource `type` for the request, falling back to the `application` serializer for those types that\n    do not have a defined serializer. This is often described as a `per-model` or `per-type` strategy\n    for defining serializers. However, because APIs rarely format payloads per-type but rather\n    per-API-version, this may not be a desired strategy.\n  \n    It is recommended that applications define only a single `application` adapter and serializer\n    where possible.\n  \n    If you have multiple API formats and the per-type strategy is not viable, one strategy is to\n    write an `application` adapter and serializer that make use of `options` to specify the desired\n    format when making a request.\n  \n    ### Using a Serializer\n  \n    Any serializer in `app/serializers/` can be looked up by `name` using `store.serializerFor(name)`.\n  \n    ### Default Serializers\n  \n    For applications whose APIs are *very close to* or *exactly* the **REST** format or **JSON:API**\n    format the `@ember-data/serializer` package contains implementations these applications can\n    extend. It also contains a simple `JSONSerializer` for serializing to/from very basic JSON objects.\n  \n    Many applications will find writing their own serializer to be more performant and less\n    complex than extending these classes even when their API format is very close to that expected\n    by these serializers.\n  \n    It is recommended that apps write their own serializer to best suit the needs of their API and\n    application.\n  \n    @module @ember-data/serializer\n    @main @ember-data/serializer\n  */\n  /**\n    `Serializer` is an abstract base class that you should override in your\n    application to customize it for your backend. The minimum set of methods\n    that you should implement is:\n  \n      * `normalizeResponse()`\n      * `serialize()`\n  \n    And you can optionally override the following methods:\n  \n      * `normalize()`\n  \n    For an example implementation, see\n    [JSONSerializer](JSONSerializer), the included JSON serializer.\n  \n    @class Serializer\n    @public\n    @extends EmberObject\n  */\n  var _default = _exports.default = _object.default.extend({\n    /**\n      The `store` property is the application's `store` that contains\n      all records. It can be used to look up serializers for other model\n      types that may be nested inside the payload response.\n       Example:\n       ```js\n      Serializer.extend({\n        extractRelationship(relationshipModelName, relationshipHash) {\n          let modelClass = this.store.modelFor(relationshipModelName);\n          let relationshipSerializer = this.store.serializerFor(relationshipModelName);\n          return relationshipSerializer.normalize(modelClass, relationshipHash);\n        }\n      });\n      ```\n       @property store\n      @type {Store}\n      @public\n    */\n\n    /**\n      The `normalizeResponse` method is used to normalize a payload from the\n      server to a JSON-API Document.\n       http://jsonapi.org/format/#document-structure\n       Example:\n       ```js\n      Serializer.extend({\n        normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n          if (requestType === 'findRecord') {\n            return this.normalize(primaryModelClass, payload);\n          } else {\n            return payload.reduce(function(documentHash, item) {\n              let { data, included } = this.normalize(primaryModelClass, item);\n              documentHash.included.push(...included);\n              documentHash.data.push(data);\n              return documentHash;\n            }, { data: [], included: [] })\n          }\n        }\n      });\n      ```\n       @since 1.13.0\n      @method normalizeResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeResponse: null,\n    /**\n      The `serialize` method is used when a record is saved in order to convert\n      the record into the form that your external data source expects.\n       `serialize` takes an optional `options` hash with a single option:\n       - `includeId`: If this is `true`, `serialize` should include the ID\n        in the serialized object it builds.\n       Example:\n       ```js\n      Serializer.extend({\n        serialize(snapshot, options) {\n          let json = {\n            id: snapshot.id\n          };\n           snapshot.eachAttribute((key, attribute) => {\n            json[key] = snapshot.attr(key);\n          });\n           snapshot.eachRelationship((key, relationship) => {\n            if (relationship.kind === 'belongsTo') {\n              json[key] = snapshot.belongsTo(key, { id: true });\n            } else if (relationship.kind === 'hasMany') {\n              json[key] = snapshot.hasMany(key, { ids: true });\n            }\n          });\n           return json;\n        },\n      });\n      ```\n       @method serialize\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} [options]\n      @return {Object}\n    */\n    serialize: null,\n    /**\n      The `normalize` method is used to convert a payload received from your\n      external data source into the normalized form `store.push()` expects. You\n      should override this method, munge the hash and return the normalized\n      payload.\n       Example:\n       ```js\n      Serializer.extend({\n        normalize(modelClass, resourceHash) {\n          let data = {\n            id:            resourceHash.id,\n            type:          modelClass.modelName,\n            attributes:    resourceHash\n          };\n          return { data: data };\n        }\n      })\n      ```\n       @method normalize\n      @public\n      @param {Model} typeClass\n      @param {Object} hash\n      @return {Object}\n    */\n    normalize(typeClass, hash) {\n      return hash;\n    }\n  });\n});","define(\"@ember-data/serializer/json-api\", [\"exports\", \"@ember/debug\", \"@ember/string\", \"@ember/utils\", \"ember-inflector\", \"@ember-data/serializer/json\", \"@ember-data/store\"], function (_exports, _debug, _string, _utils, _emberInflector, _json, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @module @ember-data/serializer/json-api\n   */\n\n  /**\n    Ember Data 2.0 Serializer:\n  \n    In Ember Data a Serializer is used to serialize and deserialize\n    records when they are transferred in and out of an external source.\n    This process involves normalizing property names, transforming\n    attribute values and serializing relationships.\n  \n    `JSONAPISerializer` supports the http://jsonapi.org/ spec and is the\n    serializer recommended by Ember Data.\n  \n    This serializer normalizes a JSON API payload that looks like:\n  \n    ```app/models/player.js\n    import Model, { attr, belongsTo } from '@ember-data/model';\n  \n    export default class Player extends Model {\n      @attr('string') name;\n      @attr('string') skill;\n      @attr('number') gamesPlayed;\n      @belongsTo('club') club;\n    }\n    ```\n  \n    ```app/models/club.js\n    import Model, { attr, hasMany } from '@ember-data/model';\n  \n    export default class Club extends Model {\n      @attr('string') name;\n      @attr('string') location;\n      @hasMany('player') players;\n    }\n    ```\n  \n    ```js\n      {\n        \"data\": [\n          {\n            \"attributes\": {\n              \"name\": \"Benfica\",\n              \"location\": \"Portugal\"\n            },\n            \"id\": \"1\",\n            \"relationships\": {\n              \"players\": {\n                \"data\": [\n                  {\n                    \"id\": \"3\",\n                    \"type\": \"players\"\n                  }\n                ]\n              }\n            },\n            \"type\": \"clubs\"\n          }\n        ],\n        \"included\": [\n          {\n            \"attributes\": {\n              \"name\": \"Eusebio Silva Ferreira\",\n              \"skill\": \"Rocket shot\",\n              \"games-played\": 431\n            },\n            \"id\": \"3\",\n            \"relationships\": {\n              \"club\": {\n                \"data\": {\n                  \"id\": \"1\",\n                  \"type\": \"clubs\"\n                }\n              }\n            },\n            \"type\": \"players\"\n          }\n        ]\n      }\n    ```\n  \n    to the format that the Ember Data store expects.\n  \n    ### Customizing meta\n  \n    Since a JSON API Document can have meta defined in multiple locations you can\n    use the specific serializer hooks if you need to customize the meta.\n  \n    One scenario would be to camelCase the meta keys of your payload. The example\n    below shows how this could be done using `normalizeArrayResponse` and\n    `extractRelationship`.\n  \n    ```app/serializers/application.js\n    import JSONAPISerializer from '@ember-data/serializer/json-api';\n  \n    export default class ApplicationSerializer extends JSONAPISerializer {\n      normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) {\n        let normalizedDocument = super.normalizeArrayResponse(...arguments);\n  \n        // Customize document meta\n        normalizedDocument.meta = camelCaseKeys(normalizedDocument.meta);\n  \n        return normalizedDocument;\n      }\n  \n      extractRelationship(relationshipHash) {\n        let normalizedRelationship = super.extractRelationship(...arguments);\n  \n        // Customize relationship meta\n        normalizedRelationship.meta = camelCaseKeys(normalizedRelationship.meta);\n  \n        return normalizedRelationship;\n      }\n    }\n    ```\n  \n    @main @ember-data/serializer/json-api\n    @since 1.13.0\n    @class JSONAPISerializer\n    @public\n    @extends JSONSerializer\n  */\n  var JSONAPISerializer = _json.default.extend({\n    /**\n      @method _normalizeDocumentHelper\n      @param {Object} documentHash\n      @return {Object}\n      @private\n    */\n    _normalizeDocumentHelper(documentHash) {\n      if ((0, _utils.typeOf)(documentHash.data) === 'object') {\n        documentHash.data = this._normalizeResourceHelper(documentHash.data);\n      } else if (Array.isArray(documentHash.data)) {\n        var ret = new Array(documentHash.data.length);\n        for (var i = 0; i < documentHash.data.length; i++) {\n          var data = documentHash.data[i];\n          ret[i] = this._normalizeResourceHelper(data);\n        }\n        documentHash.data = ret;\n      }\n      if (Array.isArray(documentHash.included)) {\n        var _ret = new Array();\n        for (var _i = 0; _i < documentHash.included.length; _i++) {\n          var included = documentHash.included[_i];\n          var normalized = this._normalizeResourceHelper(included);\n          if (normalized !== null) {\n            // can be null when unknown type is encountered\n            _ret.push(normalized);\n          }\n        }\n        documentHash.included = _ret;\n      }\n      return documentHash;\n    },\n    /**\n      @method _normalizeRelationshipDataHelper\n      @param {Object} relationshipDataHash\n      @return {Object}\n      @private\n    */\n    _normalizeRelationshipDataHelper(relationshipDataHash) {\n      relationshipDataHash.type = this.modelNameFromPayloadKey(relationshipDataHash.type);\n      return relationshipDataHash;\n    },\n    /**\n      @method _normalizeResourceHelper\n      @param {Object} resourceHash\n      @return {Object}\n      @private\n    */\n    _normalizeResourceHelper(resourceHash) {\n      (true && !(!(0, _utils.isNone)(resourceHash.type)) && (0, _debug.assert)(this.warnMessageForUndefinedType(), !(0, _utils.isNone)(resourceHash.type), {\n        id: 'ds.serializer.type-is-undefined'\n      }));\n      var modelName, usedLookup;\n      modelName = this.modelNameFromPayloadKey(resourceHash.type);\n      usedLookup = 'modelNameFromPayloadKey';\n      if (!this.store._hasModelFor(modelName)) {\n        (true && (0, _debug.warn)(this.warnMessageNoModelForType(modelName, resourceHash.type, usedLookup), false, {\n          id: 'ds.serializer.model-for-type-missing'\n        }));\n        return null;\n      }\n      var modelClass = this.store.modelFor(modelName);\n      var serializer = this.store.serializerFor(modelName);\n      var {\n        data\n      } = serializer.normalize(modelClass, resourceHash);\n      return data;\n    },\n    /**\n      Normalize some data and push it into the store.\n       @method pushPayload\n      @public\n      @param {Store} store\n      @param {Object} payload\n    */\n    pushPayload(store, payload) {\n      var normalizedPayload = this._normalizeDocumentHelper(payload);\n      store.push(normalizedPayload);\n    },\n    /**\n      @method _normalizeResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @param {Boolean} isSingle\n      @return {Object} JSON-API Document\n      @private\n    */\n    _normalizeResponse(store, primaryModelClass, payload, id, requestType, isSingle) {\n      var normalizedPayload = this._normalizeDocumentHelper(payload);\n      return normalizedPayload;\n    },\n    normalizeQueryRecordResponse() {\n      var normalized = this._super(...arguments);\n      (true && !(!Array.isArray(normalized.data)) && (0, _debug.assert)('Expected the primary data returned by the serializer for a `queryRecord` response to be a single object but instead it was an array.', !Array.isArray(normalized.data), {\n        id: 'ds.serializer.json-api.queryRecord-array-response'\n      }));\n      return normalized;\n    },\n    extractAttributes(modelClass, resourceHash) {\n      var attributes = {};\n      if (resourceHash.attributes) {\n        modelClass.eachAttribute(key => {\n          var attributeKey = this.keyForAttribute(key, 'deserialize');\n          if (resourceHash.attributes[attributeKey] !== undefined) {\n            attributes[key] = resourceHash.attributes[attributeKey];\n          }\n          if (true /* DEBUG */) {\n            if (resourceHash.attributes[attributeKey] === undefined && resourceHash.attributes[key] !== undefined) {\n              (true && !(false) && (0, _debug.assert)(`Your payload for '${modelClass.modelName}' contains '${key}', but your serializer is setup to look for '${attributeKey}'. This is most likely because Ember Data's JSON API serializer dasherizes attribute keys by default. You should subclass JSONAPISerializer and implement 'keyForAttribute(key) { return key; }' to prevent Ember Data from customizing your attribute keys.`, false));\n            }\n          }\n        });\n      }\n      return attributes;\n    },\n    /**\n       Returns a relationship formatted as a JSON-API \"relationship object\".\n        http://jsonapi.org/format/#document-resource-object-relationships\n        @method extractRelationship\n      @public\n       @param {Object} relationshipHash\n       @return {Object}\n    */\n    extractRelationship(relationshipHash) {\n      if ((0, _utils.typeOf)(relationshipHash.data) === 'object') {\n        relationshipHash.data = this._normalizeRelationshipDataHelper(relationshipHash.data);\n      }\n      if (Array.isArray(relationshipHash.data)) {\n        var ret = new Array(relationshipHash.data.length);\n        for (var i = 0; i < relationshipHash.data.length; i++) {\n          var data = relationshipHash.data[i];\n          ret[i] = this._normalizeRelationshipDataHelper(data);\n        }\n        relationshipHash.data = ret;\n      }\n      return relationshipHash;\n    },\n    /**\n       Returns the resource's relationships formatted as a JSON-API \"relationships object\".\n        http://jsonapi.org/format/#document-resource-object-relationships\n        @method extractRelationships\n      @public\n       @param {Object} modelClass\n       @param {Object} resourceHash\n       @return {Object}\n    */\n    extractRelationships(modelClass, resourceHash) {\n      var relationships = {};\n      if (resourceHash.relationships) {\n        modelClass.eachRelationship((key, relationshipMeta) => {\n          var relationshipKey = this.keyForRelationship(key, relationshipMeta.kind, 'deserialize');\n          if (resourceHash.relationships[relationshipKey] !== undefined) {\n            var relationshipHash = resourceHash.relationships[relationshipKey];\n            relationships[key] = this.extractRelationship(relationshipHash);\n          }\n          if (true /* DEBUG */) {\n            if (resourceHash.relationships[relationshipKey] === undefined && resourceHash.relationships[key] !== undefined) {\n              (true && !(false) && (0, _debug.assert)(`Your payload for '${modelClass.modelName}' contains '${key}', but your serializer is setup to look for '${relationshipKey}'. This is most likely because Ember Data's JSON API serializer dasherizes relationship keys by default. You should subclass JSONAPISerializer and implement 'keyForRelationship(key) { return key; }' to prevent Ember Data from customizing your relationship keys.`, false));\n            }\n          }\n        });\n      }\n      return relationships;\n    },\n    /**\n      @method _extractType\n      @param {Model} modelClass\n      @param {Object} resourceHash\n      @return {String}\n      @private\n    */\n    _extractType(modelClass, resourceHash) {\n      return this.modelNameFromPayloadKey(resourceHash.type);\n    },\n    /**\n      Dasherizes and singularizes the model name in the payload to match\n      the format Ember Data uses internally for the model name.\n       For example the key `posts` would be converted to `post` and the\n      key `studentAssesments` would be converted to `student-assesment`.\n       @method modelNameFromPayloadKey\n      @public\n      @param {String} key\n      @return {String} the model's modelName\n    */\n    modelNameFromPayloadKey(key) {\n      return (0, _emberInflector.singularize)((0, _store.normalizeModelName)(key));\n    },\n    /**\n      Converts the model name to a pluralized version of the model name.\n       For example `post` would be converted to `posts` and\n      `student-assesment` would be converted to `student-assesments`.\n       @method payloadKeyFromModelName\n      @public\n      @param {String} modelName\n      @return {String}\n    */\n    // TODO @deprecated Use payloadTypeFromModelName instead\n    payloadKeyFromModelName(modelName) {\n      return (0, _emberInflector.pluralize)(modelName);\n    },\n    normalize(modelClass, resourceHash) {\n      if (resourceHash.attributes) {\n        this.normalizeUsingDeclaredMapping(modelClass, resourceHash.attributes);\n      }\n      if (resourceHash.relationships) {\n        this.normalizeUsingDeclaredMapping(modelClass, resourceHash.relationships);\n      }\n      var data = {\n        id: this.extractId(modelClass, resourceHash),\n        type: this._extractType(modelClass, resourceHash),\n        attributes: this.extractAttributes(modelClass, resourceHash),\n        relationships: this.extractRelationships(modelClass, resourceHash)\n      };\n      this.applyTransforms(modelClass, data.attributes);\n      return {\n        data\n      };\n    },\n    /**\n      `keyForAttribute` can be used to define rules for how to convert an\n      attribute name in your model to a key in your JSON.\n      By default `JSONAPISerializer` follows the format used on the examples of\n      http://jsonapi.org/format and uses dashes as the word separator in the JSON\n      attribute keys.\n       This behaviour can be easily customized by extending this method.\n       Example\n       ```app/serializers/application.js\n      import JSONAPISerializer from '@ember-data/serializer/json-api';\n      import { dasherize } from '@ember/string';\n       export default class ApplicationSerializer extends JSONAPISerializer {\n        keyForAttribute(attr, method) {\n          return dasherize(attr).toUpperCase();\n        }\n      }\n      ```\n       @method keyForAttribute\n      @public\n      @param {String} key\n      @param {String} method\n      @return {String} normalized key\n    */\n    keyForAttribute(key, method) {\n      return (0, _string.dasherize)(key);\n    },\n    /**\n     `keyForRelationship` can be used to define a custom key when\n     serializing and deserializing relationship properties.\n     By default `JSONAPISerializer` follows the format used on the examples of\n     http://jsonapi.org/format and uses dashes as word separators in\n     relationship properties.\n      This behaviour can be easily customized by extending this method.\n      Example\n       ```app/serializers/post.js\n      import JSONAPISerializer from '@ember-data/serializer/json-api';\n      import { underscore } from '@ember/string';\n       export default class ApplicationSerializer extends JSONAPISerializer {\n        keyForRelationship(key, relationship, method) {\n          return underscore(key);\n        }\n      }\n      ```\n     @method keyForRelationship\n      @public\n     @param {String} key\n     @param {String} typeClass\n     @param {String} method\n     @return {String} normalized key\n    */\n    keyForRelationship(key, typeClass, method) {\n      return (0, _string.dasherize)(key);\n    },\n    /**\n      Called when a record is saved in order to convert the\n      record into JSON.\n       For example, consider this model:\n       ```app/models/comment.js\n      import Model, { attr, belongsTo } from '@ember-data/model';\n       export default class CommentModel extends Model {\n        @attr title;\n        @attr body;\n         @belongsTo('user', { async: false, inverse: null })\n        author;\n      }\n      ```\n       The default serialization would create a JSON-API resource object like:\n       ```javascript\n      {\n        \"data\": {\n          \"type\": \"comments\",\n          \"attributes\": {\n            \"title\": \"Rails is unagi\",\n            \"body\": \"Rails? Omakase? O_O\",\n          },\n          \"relationships\": {\n            \"author\": {\n              \"data\": {\n                \"id\": \"12\",\n                \"type\": \"users\"\n              }\n            }\n          }\n        }\n      }\n      ```\n       By default, attributes are passed through as-is, unless\n      you specified an attribute type (`attr('date')`). If\n      you specify a transform, the JavaScript value will be\n      serialized when inserted into the attributes hash.\n       Belongs-to relationships are converted into JSON-API\n      resource identifier objects.\n       ## IDs\n       `serialize` takes an options hash with a single option:\n      `includeId`. If this option is `true`, `serialize` will,\n      by default include the ID in the JSON object it builds.\n       The JSONAPIAdapter passes in `includeId: true` when serializing a record\n      for `createRecord` or `updateRecord`.\n       ## Customization\n       Your server may expect data in a different format than the\n      built-in serialization format.\n       In that case, you can implement `serialize` yourself and\n      return data formatted to match your API's expectations, or override\n      the invoked adapter method and do the serialization in the adapter directly\n      by using the provided snapshot.\n      \n      If your API's format differs greatly from the JSON:API spec, you should\n      consider authoring your own adapter and serializer instead of extending\n      this class.\n       ```app/serializers/post.js\n      import JSONAPISerializer from '@ember-data/serializer/json-api';\n       export default class PostSerializer extends JSONAPISerializer {\n        serialize(snapshot, options) {\n          let json = {\n            POST_TTL: snapshot.attr('title'),\n            POST_BDY: snapshot.attr('body'),\n            POST_CMS: snapshot.hasMany('comments', { ids: true })\n          };\n           if (options.includeId) {\n            json.POST_ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n      ```\n       ## Customizing an App-Wide Serializer\n       If you want to define a serializer for your entire\n      application, you'll probably want to use `eachAttribute`\n      and `eachRelationship` on the record.\n       ```app/serializers/application.js\n      import JSONAPISerializer from '@ember-data/serializer/json-api';\n      import { singularize } from 'ember-inflector';\n      import { underscore } from '@ember/string';\n       export default class ApplicationSerializer extends JSONAPISerializer {\n        serialize(snapshot, options) {\n          let json = {};\n           snapshot.eachAttribute((name) => {\n            json[serverAttributeName(name)] = snapshot.attr(name);\n          });\n           snapshot.eachRelationship((name, relationship) => {\n            if (relationship.kind === 'hasMany') {\n              json[serverHasManyName(name)] = snapshot.hasMany(name, { ids: true });\n            }\n          });\n           if (options.includeId) {\n            json.ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n       function serverAttributeName(attribute) {\n        return underscore(attribute).toUpperCase();\n      }\n       function serverHasManyName(name) {\n        return serverAttributeName(singularize(name)) + '_IDS';\n      }\n      ```\n       This serializer will generate JSON that looks like this:\n       ```javascript\n      {\n        \"TITLE\": \"Rails is omakase\",\n        \"BODY\": \"Yep. Omakase.\",\n        \"COMMENT_IDS\": [ \"1\", \"2\", \"3\" ]\n      }\n      ```\n       ## Tweaking the Default Formatting\n       If you just want to do some small tweaks on the default JSON:API formatted response,\n      you can call `super.serialize` first and make the tweaks\n      on the returned object.\n       ```app/serializers/post.js\n      import JSONAPISerializer from '@ember-data/serializer/json-api';\n       export default class PostSerializer extends JSONAPISerializer {\n        serialize(snapshot, options) {\n          let json = super.serialize(...arguments);\n           json.data.attributes.subject = json.data.attributes.title;\n          delete json.data.attributes.title;\n           return json;\n        }\n      }\n      ```\n       @method serialize\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} options\n      @return {Object} json\n    */\n    serialize(snapshot, options) {\n      var data = this._super(...arguments);\n      data.type = this.payloadKeyFromModelName(snapshot.modelName);\n      return {\n        data\n      };\n    },\n    serializeAttribute(snapshot, json, key, attribute) {\n      var type = attribute.type;\n      if (this._canSerialize(key)) {\n        json.attributes = json.attributes || {};\n        var value = snapshot.attr(key);\n        if (type) {\n          var transform = this.transformFor(type);\n          value = transform.serialize(value, attribute.options);\n        }\n        var payloadKey = this._getMappedKey(key, snapshot.type);\n        if (payloadKey === key) {\n          payloadKey = this.keyForAttribute(key, 'serialize');\n        }\n        json.attributes[payloadKey] = value;\n      }\n    },\n    serializeBelongsTo(snapshot, json, relationship) {\n      var key = relationship.key;\n      if (this._canSerialize(key)) {\n        var belongsTo = snapshot.belongsTo(key);\n        var belongsToIsNotNew;\n        if (true /* CUSTOM_MODEL_CLASS */) {\n          belongsToIsNotNew = belongsTo && !belongsTo.isNew;\n        } else {\n          belongsToIsNotNew = belongsTo && belongsTo.record && !belongsTo.record.get('isNew');\n        }\n        if (belongsTo === null || belongsToIsNotNew) {\n          json.relationships = json.relationships || {};\n          var payloadKey = this._getMappedKey(key, snapshot.type);\n          if (payloadKey === key) {\n            payloadKey = this.keyForRelationship(key, 'belongsTo', 'serialize');\n          }\n          var data = null;\n          if (belongsTo) {\n            var payloadType = this.payloadKeyFromModelName(belongsTo.modelName);\n            data = {\n              type: payloadType,\n              id: belongsTo.id\n            };\n          }\n          json.relationships[payloadKey] = {\n            data\n          };\n        }\n      }\n    },\n    serializeHasMany(snapshot, json, relationship) {\n      var key = relationship.key;\n      if (this.shouldSerializeHasMany(snapshot, key, relationship)) {\n        var hasMany = snapshot.hasMany(key);\n        if (hasMany !== undefined) {\n          json.relationships = json.relationships || {};\n          var payloadKey = this._getMappedKey(key, snapshot.type);\n          if (payloadKey === key && this.keyForRelationship) {\n            payloadKey = this.keyForRelationship(key, 'hasMany', 'serialize');\n          }\n\n          // only serialize has many relationships that are not new\n          var nonNewHasMany = hasMany.filter(item => item.record && !item.record.get('isNew'));\n          var data = new Array(nonNewHasMany.length);\n          for (var i = 0; i < nonNewHasMany.length; i++) {\n            var item = hasMany[i];\n            var payloadType = this.payloadKeyFromModelName(item.modelName);\n            data[i] = {\n              type: payloadType,\n              id: item.id\n            };\n          }\n          json.relationships[payloadKey] = {\n            data\n          };\n        }\n      }\n    }\n  });\n  if (true /* DEBUG */) {\n    JSONAPISerializer.reopen({\n      init(...args) {\n        this._super(...args);\n        (true && !(!this.isEmbeddedRecordsMixin || this.isEmbeddedRecordsMixinCompatible === true) && (0, _debug.assert)(`You've used the EmbeddedRecordsMixin in ${this.toString()} which is not fully compatible with the JSON:API specification. Please confirm that this works for your specific API and add \\`this.isEmbeddedRecordsMixinCompatible = true\\` to your serializer.`, !this.isEmbeddedRecordsMixin || this.isEmbeddedRecordsMixinCompatible === true, {\n          id: 'ds.serializer.embedded-records-mixin-not-supported'\n        }));\n        var constructor = this.constructor;\n        (true && (0, _debug.warn)(`You've defined 'extractMeta' in ${constructor.toString()} which is not used for serializers extending JSONAPISerializer. Read more at https://api.emberjs.com/ember-data/release/classes/JSONAPISerializer on how to customize meta when using JSON API.`, this.extractMeta === _json.default.prototype.extractMeta, {\n          id: 'ds.serializer.json-api.extractMeta'\n        }));\n      },\n      warnMessageForUndefinedType() {\n        return 'Encountered a resource object with an undefined type (resolved resource using ' + this.constructor.toString() + ')';\n      },\n      warnMessageNoModelForType(modelName, originalType, usedLookup) {\n        return `Encountered a resource object with type \"${originalType}\", but no model was found for model name \"${modelName}\" (resolved model name using '${this.constructor.toString()}.${usedLookup}(\"${originalType}\")').`;\n      }\n    });\n  }\n  var _default = _exports.default = JSONAPISerializer;\n});","define(\"@ember-data/serializer/json\", [\"exports\", \"@ember/application\", \"@ember/debug\", \"@ember/object\", \"@ember/polyfills\", \"@ember/utils\", \"@ember-data/serializer\", \"@ember-data/store\", \"@ember-data/store/-private\", \"@ember-data/serializer/-private\"], function (_exports, _application, _debug, _object, _polyfills, _utils, _serializer, _store, _private, _private2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @module @ember-data/serializer/json\n   */\n\n  /**\n    Ember Data 2.0 Serializer:\n  \n    In Ember Data a Serializer is used to serialize and deserialize\n    records when they are transferred in and out of an external source.\n    This process involves normalizing property names, transforming\n    attribute values and serializing relationships.\n  \n    By default, Ember Data uses and recommends the `JSONAPISerializer`.\n  \n    `JSONSerializer` is useful for simpler or legacy backends that may\n    not support the http://jsonapi.org/ spec.\n  \n    For example, given the following `User` model and JSON payload:\n  \n    ```app/models/user.js\n    import Model, { attr, belongsTo, hasMany } from '@ember-data/model';\n  \n    export default class UserModel extends Model {\n      @hasMany('user') friends;\n      @belongsTo('location') house;\n  \n      @attr('string') name;\n    }\n    ```\n  \n    ```js\n    {\n      id: 1,\n      name: 'Sebastian',\n      friends: [3, 4],\n      links: {\n        house: '/houses/lefkada'\n      }\n    }\n    ```\n  \n    `JSONSerializer` will normalize the JSON payload to the JSON API format that the\n    Ember Data store expects.\n  \n    You can customize how JSONSerializer processes its payload by passing options in\n    the `attrs` hash or by subclassing the `JSONSerializer` and overriding hooks:\n  \n      - To customize how a single record is normalized, use the `normalize` hook.\n      - To customize how `JSONSerializer` normalizes the whole server response, use the\n        `normalizeResponse` hook.\n      - To customize how `JSONSerializer` normalizes a specific response from the server,\n        use one of the many specific `normalizeResponse` hooks.\n      - To customize how `JSONSerializer` normalizes your id, attributes or relationships,\n        use the `extractId`, `extractAttributes` and `extractRelationships` hooks.\n  \n    The `JSONSerializer` normalization process follows these steps:\n  \n      1. `normalizeResponse`\n          - entry method to the serializer.\n      2. `normalizeCreateRecordResponse`\n          - a `normalizeResponse` for a specific operation is called.\n      3. `normalizeSingleResponse`|`normalizeArrayResponse`\n          - for methods like `createRecord` we expect a single record back, while for methods like `findAll` we expect multiple records back.\n      4. `normalize`\n          - `normalizeArrayResponse` iterates and calls `normalize` for each of its records while `normalizeSingle`\n            calls it once. This is the method you most likely want to subclass.\n      5. `extractId` | `extractAttributes` | `extractRelationships`\n          - `normalize` delegates to these methods to\n            turn the record payload into the JSON API format.\n  \n    @main @ember-data/serializer/json\n    @class JSONSerializer\n    @public\n    @extends Serializer\n  */\n  var JSONSerializer = _serializer.default.extend({\n    /**\n      The `primaryKey` is used when serializing and deserializing\n      data. Ember Data always uses the `id` property to store the id of\n      the record. The external source may not always follow this\n      convention. In these cases it is useful to override the\n      `primaryKey` property to match the `primaryKey` of your external\n      store.\n       Example\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class ApplicationSerializer extends JSONSerializer {\n        primaryKey = '_id'\n      }\n      ```\n       @property primaryKey\n      @type {String}\n      @public\n      @default 'id'\n    */\n    primaryKey: 'id',\n    /**\n      The `attrs` object can be used to declare a simple mapping between\n      property names on `Model` records and payload keys in the\n      serialized JSON object representing the record. An object with the\n      property `key` can also be used to designate the attribute's key on\n      the response payload.\n       Example\n       ```app/models/person.js\n      import Model, { attr } from '@ember-data/model';\n       export default class PersonModel extends Model {\n        @attr('string') firstName;\n        @attr('string') lastName;\n        @attr('string') occupation;\n        @attr('boolean') admin;\n      }\n      ```\n       ```app/serializers/person.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PersonSerializer extends JSONSerializer {\n        attrs = {\n          admin: 'is_admin',\n          occupation: { key: 'career' }\n        }\n      }\n      ```\n       You can also remove attributes and relationships by setting the `serialize`\n      key to `false` in your mapping object.\n       Example\n       ```app/serializers/person.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        attrs = {\n          admin: { serialize: false },\n          occupation: { key: 'career' }\n        }\n      }\n      ```\n       When serialized:\n       ```javascript\n      {\n        \"firstName\": \"Harry\",\n        \"lastName\": \"Houdini\",\n        \"career\": \"magician\"\n      }\n      ```\n       Note that the `admin` is now not included in the payload.\n       Setting `serialize` to `true` enforces serialization for hasMany\n      relationships even if it's neither a many-to-many nor many-to-none\n      relationship.\n       @property attrs\n      @public\n      @type {Object}\n    */\n    mergedProperties: ['attrs'],\n    /**\n     Given a subclass of `Model` and a JSON object this method will\n     iterate through each attribute of the `Model` and invoke the\n     `Transform#deserialize` method on the matching property of the\n     JSON object.  This method is typically called after the\n     serializer's `normalize` method.\n      @method applyTransforms\n     @private\n     @param {Model} typeClass\n     @param {Object} data The data to transform\n     @return {Object} data The transformed data object\n    */\n    applyTransforms(typeClass, data) {\n      var attributes = (0, _object.get)(typeClass, 'attributes');\n      typeClass.eachTransformedAttribute((key, typeClass) => {\n        if (data[key] === undefined) {\n          return;\n        }\n        var transform = this.transformFor(typeClass);\n        var transformMeta = attributes.get(key);\n        data[key] = transform.deserialize(data[key], transformMeta.options);\n      });\n      return data;\n    },\n    /**\n      The `normalizeResponse` method is used to normalize a payload from the\n      server to a JSON-API Document.\n       http://jsonapi.org/format/#document-structure\n       This method delegates to a more specific normalize method based on\n      the `requestType`.\n       To override this method with a custom one, make sure to call\n      `return this._super(store, primaryModelClass, payload, id, requestType)` with your\n      pre-processed data.\n       Here's an example of using `normalizeResponse` manually:\n       ```javascript\n      socket.on('message', function(message) {\n        let data = message.data;\n        let modelClass = store.modelFor(data.modelName);\n        let serializer = store.serializerFor(data.modelName);\n        let normalized = serializer.normalizeSingleResponse(store, modelClass, data, data.id);\n         store.push(normalized);\n      });\n      ```\n       @since 1.13.0\n      @method normalizeResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n      switch (requestType) {\n        case 'findRecord':\n          return this.normalizeFindRecordResponse(...arguments);\n        case 'queryRecord':\n          return this.normalizeQueryRecordResponse(...arguments);\n        case 'findAll':\n          return this.normalizeFindAllResponse(...arguments);\n        case 'findBelongsTo':\n          return this.normalizeFindBelongsToResponse(...arguments);\n        case 'findHasMany':\n          return this.normalizeFindHasManyResponse(...arguments);\n        case 'findMany':\n          return this.normalizeFindManyResponse(...arguments);\n        case 'query':\n          return this.normalizeQueryResponse(...arguments);\n        case 'createRecord':\n          return this.normalizeCreateRecordResponse(...arguments);\n        case 'deleteRecord':\n          return this.normalizeDeleteRecordResponse(...arguments);\n        case 'updateRecord':\n          return this.normalizeUpdateRecordResponse(...arguments);\n      }\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `findRecord`\n       @since 1.13.0\n      @method normalizeFindRecordResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSingleResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `queryRecord`\n       @since 1.13.0\n      @method normalizeQueryRecordResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeQueryRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSingleResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `findAll`\n       @since 1.13.0\n      @method normalizeFindAllResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindAllResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeArrayResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `findBelongsTo`\n       @since 1.13.0\n      @method normalizeFindBelongsToResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindBelongsToResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSingleResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `findHasMany`\n       @since 1.13.0\n      @method normalizeFindHasManyResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindHasManyResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeArrayResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `findMany`\n       @since 1.13.0\n      @method normalizeFindManyResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindManyResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeArrayResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `query`\n       @since 1.13.0\n      @method normalizeQueryResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeQueryResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeArrayResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `createRecord`\n       @since 1.13.0\n      @method normalizeCreateRecordResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeCreateRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSaveResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `deleteRecord`\n       @since 1.13.0\n      @method normalizeDeleteRecordResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeDeleteRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSaveResponse(...arguments);\n    },\n    /**\n      Called by the default normalizeResponse implementation when the\n      type of request is `updateRecord`\n       @since 1.13.0\n      @method normalizeUpdateRecordResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeUpdateRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSaveResponse(...arguments);\n    },\n    /**\n      normalizeUpdateRecordResponse, normalizeCreateRecordResponse and\n      normalizeDeleteRecordResponse delegate to this method by default.\n       @since 1.13.0\n      @method normalizeSaveResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeSaveResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSingleResponse(...arguments);\n    },\n    /**\n      normalizeQueryResponse and normalizeFindRecordResponse delegate to this\n      method by default.\n       @since 1.13.0\n      @method normalizeSingleResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeSingleResponse(store, primaryModelClass, payload, id, requestType) {\n      return this._normalizeResponse(store, primaryModelClass, payload, id, requestType, true);\n    },\n    /**\n      normalizeQueryResponse, normalizeFindManyResponse, and normalizeFindHasManyResponse delegate\n      to this method by default.\n       @since 1.13.0\n      @method normalizeArrayResponse\n      @public\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) {\n      return this._normalizeResponse(store, primaryModelClass, payload, id, requestType, false);\n    },\n    /**\n      @method _normalizeResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @param {Boolean} isSingle\n      @return {Object} JSON-API Document\n      @private\n    */\n    _normalizeResponse(store, primaryModelClass, payload, id, requestType, isSingle) {\n      var documentHash = {\n        data: null,\n        included: []\n      };\n      var meta = this.extractMeta(store, primaryModelClass, payload);\n      if (meta) {\n        (true && !((0, _utils.typeOf)(meta) === 'object') && (0, _debug.assert)('The `meta` returned from `extractMeta` has to be an object, not \"' + (0, _utils.typeOf)(meta) + '\".', (0, _utils.typeOf)(meta) === 'object'));\n        documentHash.meta = meta;\n      }\n      if (isSingle) {\n        var {\n          data,\n          included\n        } = this.normalize(primaryModelClass, payload);\n        documentHash.data = data;\n        if (included) {\n          documentHash.included = included;\n        }\n      } else {\n        var ret = new Array(payload.length);\n        for (var i = 0, l = payload.length; i < l; i++) {\n          var item = payload[i];\n          var {\n            data: _data,\n            included: _included\n          } = this.normalize(primaryModelClass, item);\n          if (_included) {\n            documentHash.included.push(..._included);\n          }\n          ret[i] = _data;\n        }\n        documentHash.data = ret;\n      }\n      return documentHash;\n    },\n    /**\n      Normalizes a part of the JSON payload returned by\n      the server. You should override this method, munge the hash\n      and call super if you have generic normalization to do.\n       It takes the type of the record that is being normalized\n      (as a Model class), the property where the hash was\n      originally found, and the hash to normalize.\n       You can use this method, for example, to normalize underscored keys to camelized\n      or other general-purpose normalizations.\n       Example\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { underscore } from '@ember/string';\n      import { get } from '@ember/object';\n       export default class ApplicationSerializer extends JSONSerializer {\n        normalize(typeClass, hash) {\n          let fields = get(typeClass, 'fields');\n           fields.forEach(function(type, field) {\n            let payloadField = underscore(field);\n            if (field === payloadField) { return; }\n             hash[field] = hash[payloadField];\n            delete hash[payloadField];\n          });\n           return this._super.apply(this, arguments);\n        }\n      }\n      ```\n       @method normalize\n      @public\n      @param {Model} typeClass\n      @param {Object} hash\n      @return {Object}\n    */\n    normalize(modelClass, resourceHash) {\n      var data = null;\n      if (resourceHash) {\n        this.normalizeUsingDeclaredMapping(modelClass, resourceHash);\n        if ((0, _utils.typeOf)(resourceHash.links) === 'object') {\n          this.normalizeUsingDeclaredMapping(modelClass, resourceHash.links);\n        }\n        data = {\n          id: this.extractId(modelClass, resourceHash),\n          type: modelClass.modelName,\n          attributes: this.extractAttributes(modelClass, resourceHash),\n          relationships: this.extractRelationships(modelClass, resourceHash)\n        };\n        this.applyTransforms(modelClass, data.attributes);\n      }\n      return {\n        data\n      };\n    },\n    /**\n      Returns the resource's ID.\n       @method extractId\n      @public\n      @param {Object} modelClass\n      @param {Object} resourceHash\n      @return {String}\n    */\n    extractId(modelClass, resourceHash) {\n      var primaryKey = (0, _object.get)(this, 'primaryKey');\n      var id = resourceHash[primaryKey];\n      return (0, _private.coerceId)(id);\n    },\n    /**\n      Returns the resource's attributes formatted as a JSON-API \"attributes object\".\n       http://jsonapi.org/format/#document-resource-object-attributes\n       @method extractAttributes\n      @public\n      @param {Object} modelClass\n      @param {Object} resourceHash\n      @return {Object}\n    */\n    extractAttributes(modelClass, resourceHash) {\n      var attributeKey;\n      var attributes = {};\n      modelClass.eachAttribute(key => {\n        attributeKey = this.keyForAttribute(key, 'deserialize');\n        if (resourceHash[attributeKey] !== undefined) {\n          attributes[key] = resourceHash[attributeKey];\n        }\n      });\n      return attributes;\n    },\n    /**\n      Returns a relationship formatted as a JSON-API \"relationship object\".\n       http://jsonapi.org/format/#document-resource-object-relationships\n       @method extractRelationship\n      @public\n      @param {Object} relationshipModelName\n      @param {Object} relationshipHash\n      @return {Object}\n    */\n    extractRelationship(relationshipModelName, relationshipHash) {\n      if ((0, _utils.isNone)(relationshipHash)) {\n        return null;\n      }\n      /*\n        When `relationshipHash` is an object it usually means that the relationship\n        is polymorphic. It could however also be embedded resources that the\n        EmbeddedRecordsMixin has be able to process.\n      */\n      if ((0, _utils.typeOf)(relationshipHash) === 'object') {\n        if (relationshipHash.id) {\n          relationshipHash.id = (0, _private.coerceId)(relationshipHash.id);\n        }\n        var modelClass = this.store.modelFor(relationshipModelName);\n        if (relationshipHash.type && !(0, _private2.modelHasAttributeOrRelationshipNamedType)(modelClass)) {\n          relationshipHash.type = this.modelNameFromPayloadKey(relationshipHash.type);\n        }\n        return relationshipHash;\n      }\n      return {\n        id: (0, _private.coerceId)(relationshipHash),\n        type: relationshipModelName\n      };\n    },\n    /**\n      Returns a polymorphic relationship formatted as a JSON-API \"relationship object\".\n       http://jsonapi.org/format/#document-resource-object-relationships\n       `relationshipOptions` is a hash which contains more information about the\n      polymorphic relationship which should be extracted:\n        - `resourceHash` complete hash of the resource the relationship should be\n          extracted from\n        - `relationshipKey` key under which the value for the relationship is\n          extracted from the resourceHash\n        - `relationshipMeta` meta information about the relationship\n       @method extractPolymorphicRelationship\n      @public\n      @param {Object} relationshipModelName\n      @param {Object} relationshipHash\n      @param {Object} relationshipOptions\n      @return {Object}\n    */\n    extractPolymorphicRelationship(relationshipModelName, relationshipHash, relationshipOptions) {\n      return this.extractRelationship(relationshipModelName, relationshipHash);\n    },\n    /**\n      Returns the resource's relationships formatted as a JSON-API \"relationships object\".\n       http://jsonapi.org/format/#document-resource-object-relationships\n       @method extractRelationships\n      @public\n      @param {Object} modelClass\n      @param {Object} resourceHash\n      @return {Object}\n    */\n    extractRelationships(modelClass, resourceHash) {\n      var relationships = {};\n      modelClass.eachRelationship((key, relationshipMeta) => {\n        var relationship = null;\n        var relationshipKey = this.keyForRelationship(key, relationshipMeta.kind, 'deserialize');\n        if (resourceHash[relationshipKey] !== undefined) {\n          var data = null;\n          var relationshipHash = resourceHash[relationshipKey];\n          if (relationshipMeta.kind === 'belongsTo') {\n            if (relationshipMeta.options.polymorphic) {\n              // extracting a polymorphic belongsTo may need more information\n              // than the type and the hash (which might only be an id) for the\n              // relationship, hence we pass the key, resource and\n              // relationshipMeta too\n              data = this.extractPolymorphicRelationship(relationshipMeta.type, relationshipHash, {\n                key,\n                resourceHash,\n                relationshipMeta\n              });\n            } else {\n              data = this.extractRelationship(relationshipMeta.type, relationshipHash);\n            }\n          } else if (relationshipMeta.kind === 'hasMany') {\n            if (!(0, _utils.isNone)(relationshipHash)) {\n              data = new Array(relationshipHash.length);\n              if (relationshipMeta.options.polymorphic) {\n                for (var i = 0, l = relationshipHash.length; i < l; i++) {\n                  var item = relationshipHash[i];\n                  data[i] = this.extractPolymorphicRelationship(relationshipMeta.type, item, {\n                    key,\n                    resourceHash,\n                    relationshipMeta\n                  });\n                }\n              } else {\n                for (var _i = 0, _l = relationshipHash.length; _i < _l; _i++) {\n                  var _item = relationshipHash[_i];\n                  data[_i] = this.extractRelationship(relationshipMeta.type, _item);\n                }\n              }\n            }\n          }\n          relationship = {\n            data\n          };\n        }\n        var linkKey = this.keyForLink(key, relationshipMeta.kind);\n        if (resourceHash.links && resourceHash.links[linkKey] !== undefined) {\n          var related = resourceHash.links[linkKey];\n          relationship = relationship || {};\n          relationship.links = {\n            related\n          };\n        }\n        if (relationship) {\n          relationships[key] = relationship;\n        }\n      });\n      return relationships;\n    },\n    /**\n      Dasherizes the model name in the payload\n       @method modelNameFromPayloadKey\n      @public\n      @param {String} key\n      @return {String} the model's modelName\n    */\n    modelNameFromPayloadKey(key) {\n      return (0, _store.normalizeModelName)(key);\n    },\n    /**\n      @method normalizeRelationships\n      @private\n    */\n    normalizeRelationships(typeClass, hash) {\n      var payloadKey;\n      if (this.keyForRelationship) {\n        typeClass.eachRelationship((key, relationship) => {\n          payloadKey = this.keyForRelationship(key, relationship.kind, 'deserialize');\n          if (key === payloadKey) {\n            return;\n          }\n          if (hash[payloadKey] === undefined) {\n            return;\n          }\n          hash[key] = hash[payloadKey];\n          delete hash[payloadKey];\n        });\n      }\n    },\n    /**\n      @method normalizeUsingDeclaredMapping\n      @private\n    */\n    normalizeUsingDeclaredMapping(modelClass, hash) {\n      var attrs = (0, _object.get)(this, 'attrs');\n      var normalizedKey;\n      var payloadKey;\n      if (attrs) {\n        for (var key in attrs) {\n          normalizedKey = payloadKey = this._getMappedKey(key, modelClass);\n          if (hash[payloadKey] === undefined) {\n            continue;\n          }\n          if ((0, _object.get)(modelClass, 'attributes').has(key)) {\n            normalizedKey = this.keyForAttribute(key);\n          }\n          if ((0, _object.get)(modelClass, 'relationshipsByName').has(key)) {\n            normalizedKey = this.keyForRelationship(key);\n          }\n          if (payloadKey !== normalizedKey) {\n            hash[normalizedKey] = hash[payloadKey];\n            delete hash[payloadKey];\n          }\n        }\n      }\n    },\n    /**\n      Looks up the property key that was set by the custom `attr` mapping\n      passed to the serializer.\n       @method _getMappedKey\n      @private\n      @param {String} key\n      @return {String} key\n    */\n    _getMappedKey(key, modelClass) {\n      (true && (0, _debug.warn)('There is no attribute or relationship with the name `' + key + '` on `' + modelClass.modelName + '`. Check your serializers attrs hash.', (0, _object.get)(modelClass, 'attributes').has(key) || (0, _object.get)(modelClass, 'relationshipsByName').has(key), {\n        id: 'ds.serializer.no-mapped-attrs-key'\n      }));\n      var attrs = (0, _object.get)(this, 'attrs');\n      var mappedKey;\n      if (attrs && attrs[key]) {\n        mappedKey = attrs[key];\n        //We need to account for both the { title: 'post_title' } and\n        //{ title: { key: 'post_title' }} forms\n        if (mappedKey.key) {\n          mappedKey = mappedKey.key;\n        }\n        if (typeof mappedKey === 'string') {\n          key = mappedKey;\n        }\n      }\n      return key;\n    },\n    /**\n      Check attrs.key.serialize property to inform if the `key`\n      can be serialized\n       @method _canSerialize\n      @private\n      @param {String} key\n      @return {boolean} true if the key can be serialized\n    */\n    _canSerialize(key) {\n      var attrs = (0, _object.get)(this, 'attrs');\n      return !attrs || !attrs[key] || attrs[key].serialize !== false;\n    },\n    /**\n      When attrs.key.serialize is set to true then\n      it takes priority over the other checks and the related\n      attribute/relationship will be serialized\n       @method _mustSerialize\n      @private\n      @param {String} key\n      @return {boolean} true if the key must be serialized\n    */\n    _mustSerialize(key) {\n      var attrs = (0, _object.get)(this, 'attrs');\n      return attrs && attrs[key] && attrs[key].serialize === true;\n    },\n    /**\n      Check if the given hasMany relationship should be serialized\n       By default only many-to-many and many-to-none relationships are serialized.\n      This could be configured per relationship by Serializer's `attrs` object.\n       @method shouldSerializeHasMany\n      @public\n      @param {Snapshot} snapshot\n      @param {String} key\n      @param {String} relationshipType\n      @return {boolean} true if the hasMany relationship should be serialized\n    */\n    shouldSerializeHasMany(snapshot, key, relationship) {\n      var relationshipType = snapshot.type.determineRelationshipType(relationship, this.store);\n      if (this._mustSerialize(key)) {\n        return true;\n      }\n      return this._canSerialize(key) && (relationshipType === 'manyToNone' || relationshipType === 'manyToMany');\n    },\n    // SERIALIZE\n    /**\n      Called when a record is saved in order to convert the\n      record into JSON.\n       By default, it creates a JSON object with a key for\n      each attribute and belongsTo relationship.\n       For example, consider this model:\n       ```app/models/comment.js\n      import Model, { attr, belongsTo } from '@ember-data/model';\n       export default class CommentModel extends Model {\n        @attr title;\n        @attr body;\n         @belongsTo('user') author;\n      }\n      ```\n       The default serialization would create a JSON object like:\n       ```javascript\n      {\n        \"title\": \"Rails is unagi\",\n        \"body\": \"Rails? Omakase? O_O\",\n        \"author\": 12\n      }\n      ```\n       By default, attributes are passed through as-is, unless\n      you specified an attribute type (`attr('date')`). If\n      you specify a transform, the JavaScript value will be\n      serialized when inserted into the JSON hash.\n       By default, belongs-to relationships are converted into\n      IDs when inserted into the JSON hash.\n       ## IDs\n       `serialize` takes an options hash with a single option:\n      `includeId`. If this option is `true`, `serialize` will,\n      by default include the ID in the JSON object it builds.\n       The adapter passes in `includeId: true` when serializing\n      a record for `createRecord`, but not for `updateRecord`.\n       ## Customization\n       Your server may expect a different JSON format than the\n      built-in serialization format.\n       In that case, you can implement `serialize` yourself and\n      return a JSON hash of your choosing.\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        serialize(snapshot, options) {\n          let json = {\n            POST_TTL: snapshot.attr('title'),\n            POST_BDY: snapshot.attr('body'),\n            POST_CMS: snapshot.hasMany('comments', { ids: true })\n          };\n           if (options.includeId) {\n            json.POST_ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n      ```\n       ## Customizing an App-Wide Serializer\n       If you want to define a serializer for your entire\n      application, you'll probably want to use `eachAttribute`\n      and `eachRelationship` on the record.\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { singularize } from 'ember-inflector';\n       export default class ApplicationSerializer extends JSONSerializer {\n        serialize(snapshot, options) {\n          let json = {};\n           snapshot.eachAttribute((name) => {\n            json[serverAttributeName(name)] = snapshot.attr(name);\n          });\n           snapshot.eachRelationship((name, relationship) => {\n            if (relationship.kind === 'hasMany') {\n              json[serverHasManyName(name)] = snapshot.hasMany(name, { ids: true });\n            }\n          });\n           if (options.includeId) {\n            json.ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n       function serverAttributeName(attribute) {\n        return attribute.underscore().toUpperCase();\n      }\n       function serverHasManyName(name) {\n        return serverAttributeName(singularize(name)) + \"_IDS\";\n      }\n      ```\n       This serializer will generate JSON that looks like this:\n       ```javascript\n      {\n        \"TITLE\": \"Rails is omakase\",\n        \"BODY\": \"Yep. Omakase.\",\n        \"COMMENT_IDS\": [ \"1\", \"2\", \"3\" ]\n      }\n      ```\n       ## Tweaking the Default JSON\n       If you just want to do some small tweaks on the default JSON,\n      you can call `super.serialize` first and make the tweaks on\n      the returned JSON.\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        serialize(snapshot, options) {\n          let json = super.serialize(...arguments);\n           json.subject = json.title;\n          delete json.title;\n           return json;\n        }\n      }\n      ```\n       @method serialize\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} options\n      @return {Object} json\n    */\n    serialize(snapshot, options) {\n      var json = {};\n      if (options && options.includeId) {\n        var id = snapshot.id;\n        if (id) {\n          json[(0, _object.get)(this, 'primaryKey')] = id;\n        }\n      }\n      snapshot.eachAttribute((key, attribute) => {\n        this.serializeAttribute(snapshot, json, key, attribute);\n      });\n      snapshot.eachRelationship((key, relationship) => {\n        if (relationship.kind === 'belongsTo') {\n          this.serializeBelongsTo(snapshot, json, relationship);\n        } else if (relationship.kind === 'hasMany') {\n          this.serializeHasMany(snapshot, json, relationship);\n        }\n      });\n      return json;\n    },\n    /**\n      You can use this method to customize how a serialized record is added to the complete\n      JSON hash to be sent to the server. By default the JSON Serializer does not namespace\n      the payload and just sends the raw serialized JSON object.\n      If your server expects namespaced keys, you should consider using the RESTSerializer.\n      Otherwise you can override this method to customize how the record is added to the hash.\n      The hash property should be modified by reference.\n       For example, your server may expect underscored root objects.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n      import { decamelize } from '@ember/string';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serializeIntoHash(data, type, snapshot, options) {\n          let root = decamelize(type.modelName);\n          data[root] = this.serialize(snapshot, options);\n        }\n      }\n      ```\n       @method serializeIntoHash\n      @public\n      @param {Object} hash\n      @param {Model} typeClass\n      @param {Snapshot} snapshot\n      @param {Object} options\n    */\n    serializeIntoHash(hash, typeClass, snapshot, options) {\n      (0, _polyfills.assign)(hash, this.serialize(snapshot, options));\n    },\n    /**\n      `serializeAttribute` can be used to customize how `attr`\n      properties are serialized\n       For example if you wanted to ensure all your attributes were always\n      serialized as properties on an `attributes` object you could\n      write:\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class ApplicationSerializer extends JSONSerializer {\n        serializeAttribute(snapshot, json, key, attributes) {\n          json.attributes = json.attributes || {};\n          this._super(snapshot, json.attributes, key, attributes);\n        }\n      }\n      ```\n       @method serializeAttribute\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {String} key\n      @param {Object} attribute\n    */\n    serializeAttribute(snapshot, json, key, attribute) {\n      if (this._canSerialize(key)) {\n        var type = attribute.type;\n        var value = snapshot.attr(key);\n        if (type) {\n          var transform = this.transformFor(type);\n          value = transform.serialize(value, attribute.options);\n        }\n\n        // if provided, use the mapping provided by `attrs` in\n        // the serializer\n        var payloadKey = this._getMappedKey(key, snapshot.type);\n        if (payloadKey === key && this.keyForAttribute) {\n          payloadKey = this.keyForAttribute(key, 'serialize');\n        }\n        json[payloadKey] = value;\n      }\n    },\n    /**\n      `serializeBelongsTo` can be used to customize how `belongsTo`\n      properties are serialized.\n       Example\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { isNone } from '@ember/utils';\n       export default class PostSerializer extends JSONSerializer {\n        serializeBelongsTo(snapshot, json, relationship) {\n          let key = relationship.key;\n          let belongsTo = snapshot.belongsTo(key);\n           key = this.keyForRelationship ? this.keyForRelationship(key, \"belongsTo\", \"serialize\") : key;\n           json[key] = isNone(belongsTo) ? belongsTo : belongsTo.record.toJSON();\n        }\n      }\n      ```\n       @method serializeBelongsTo\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializeBelongsTo(snapshot, json, relationship) {\n      var key = relationship.key;\n      if (this._canSerialize(key)) {\n        var belongsToId = snapshot.belongsTo(key, {\n          id: true\n        });\n\n        // if provided, use the mapping provided by `attrs` in\n        // the serializer\n        var payloadKey = this._getMappedKey(key, snapshot.type);\n        if (payloadKey === key && this.keyForRelationship) {\n          payloadKey = this.keyForRelationship(key, 'belongsTo', 'serialize');\n        }\n\n        //Need to check whether the id is there for new&async records\n        if ((0, _utils.isNone)(belongsToId)) {\n          json[payloadKey] = null;\n        } else {\n          json[payloadKey] = belongsToId;\n        }\n        if (relationship.options.polymorphic) {\n          this.serializePolymorphicType(snapshot, json, relationship);\n        }\n      }\n    },\n    /**\n     `serializeHasMany` can be used to customize how `hasMany`\n     properties are serialized.\n      Example\n      ```app/serializers/post.js\n     import JSONSerializer from '@ember-data/serializer/json';\n      export default class PostSerializer extends JSONSerializer {\n       serializeHasMany(snapshot, json, relationship) {\n         let key = relationship.key;\n         if (key === 'comments') {\n           return;\n         } else {\n           this._super(...arguments);\n         }\n       }\n     }\n     ```\n      @method serializeHasMany\n      @public\n     @param {Snapshot} snapshot\n     @param {Object} json\n     @param {Object} relationship\n    */\n    serializeHasMany(snapshot, json, relationship) {\n      var key = relationship.key;\n      if (this.shouldSerializeHasMany(snapshot, key, relationship)) {\n        var hasMany = snapshot.hasMany(key, {\n          ids: true\n        });\n        if (hasMany !== undefined) {\n          // if provided, use the mapping provided by `attrs` in\n          // the serializer\n          var payloadKey = this._getMappedKey(key, snapshot.type);\n          if (payloadKey === key && this.keyForRelationship) {\n            payloadKey = this.keyForRelationship(key, 'hasMany', 'serialize');\n          }\n          json[payloadKey] = hasMany;\n          // TODO support for polymorphic manyToNone and manyToMany relationships\n        }\n      }\n    },\n\n    /**\n      You can use this method to customize how polymorphic objects are\n      serialized. Objects are considered to be polymorphic if\n      `{ polymorphic: true }` is pass as the second argument to the\n      `belongsTo` function.\n       Example\n       ```app/serializers/comment.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { isNone } from '@ember/utils';\n       export default class CommentSerializer extends JSONSerializer {\n        serializePolymorphicType(snapshot, json, relationship) {\n          let key = relationship.key;\n          let belongsTo = snapshot.belongsTo(key);\n           key = this.keyForAttribute ? this.keyForAttribute(key, 'serialize') : key;\n           if (isNone(belongsTo)) {\n            json[key + '_type'] = null;\n          } else {\n            json[key + '_type'] = belongsTo.modelName;\n          }\n        }\n      }\n      ```\n       @method serializePolymorphicType\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializePolymorphicType() {},\n    /**\n      `extractMeta` is used to deserialize any meta information in the\n      adapter payload. By default Ember Data expects meta information to\n      be located on the `meta` property of the payload object.\n       Example\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        extractMeta(store, typeClass, payload) {\n          if (payload && payload.hasOwnProperty('_pagination')) {\n            let meta = payload._pagination;\n            delete payload._pagination;\n            return meta;\n          }\n        }\n      }\n      ```\n       @method extractMeta\n      @public\n      @param {Store} store\n      @param {Model} modelClass\n      @param {Object} payload\n    */\n    extractMeta(store, modelClass, payload) {\n      if (payload && payload['meta'] !== undefined) {\n        var meta = payload.meta;\n        delete payload.meta;\n        return meta;\n      }\n    },\n    /**\n      `extractErrors` is used to extract model errors when a call\n      to `Model#save` fails with an `InvalidError`. By default\n      Ember Data expects error information to be located on the `errors`\n      property of the payload object.\n       This serializer expects this `errors` object to be an Array similar\n      to the following, compliant with the https://jsonapi.org/format/#errors specification:\n       ```js\n      {\n        \"errors\": [\n          {\n            \"detail\": \"This username is already taken!\",\n            \"source\": {\n              \"pointer\": \"data/attributes/username\"\n            }\n          }, {\n            \"detail\": \"Doesn't look like a valid email.\",\n            \"source\": {\n              \"pointer\": \"data/attributes/email\"\n            }\n          }\n        ]\n      }\n      ```\n       The key `detail` provides a textual description of the problem.\n      Alternatively, the key `title` can be used for the same purpose.\n       The nested keys `source.pointer` detail which specific element\n      of the request data was invalid.\n       Note that JSON-API also allows for object-level errors to be placed\n      in an object with pointer `data`, signifying that the problem\n      cannot be traced to a specific attribute:\n       ```javascript\n      {\n        \"errors\": [\n          {\n            \"detail\": \"Some generic non property error message\",\n            \"source\": {\n              \"pointer\": \"data\"\n            }\n          }\n        ]\n      }\n      ```\n       When turn into a `Errors` object, you can read these errors\n      through the property `base`:\n       ```handlebars\n      {{#each @model.errors.base as |error|}}\n        <div class=\"error\">\n          {{error.message}}\n        </div>\n      {{/each}}\n      ```\n       Example of alternative implementation, overriding the default\n      behavior to deal with a different format of errors:\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        extractErrors(store, typeClass, payload, id) {\n          if (payload && typeof payload === 'object' && payload._problems) {\n            payload = payload._problems;\n            this.normalizeErrors(typeClass, payload);\n          }\n          return payload;\n        }\n      }\n      ```\n       @method extractErrors\n      @public\n      @param {Store} store\n      @param {Model} typeClass\n      @param {Object} payload\n      @param {(String|Number)} id\n      @return {Object} json The deserialized errors\n    */\n    extractErrors(store, typeClass, payload, id) {\n      if (payload && typeof payload === 'object' && payload.errors) {\n        payload = (0, _private.errorsArrayToHash)(payload.errors);\n        this.normalizeUsingDeclaredMapping(typeClass, payload);\n        typeClass.eachAttribute(name => {\n          var key = this.keyForAttribute(name, 'deserialize');\n          if (key !== name && payload[key] !== undefined) {\n            payload[name] = payload[key];\n            delete payload[key];\n          }\n        });\n        typeClass.eachRelationship(name => {\n          var key = this.keyForRelationship(name, 'deserialize');\n          if (key !== name && payload[key] !== undefined) {\n            payload[name] = payload[key];\n            delete payload[key];\n          }\n        });\n      }\n      return payload;\n    },\n    /**\n      `keyForAttribute` can be used to define rules for how to convert an\n      attribute name in your model to a key in your JSON.\n       Example\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { underscore } from '@ember/string';\n       export default class ApplicationSerializer extends JSONSerializer {\n        keyForAttribute(attr, method) {\n          return underscore(attr).toUpperCase();\n        }\n      }\n      ```\n       @method keyForAttribute\n      @public\n      @param {String} key\n      @param {String} method\n      @return {String} normalized key\n    */\n    keyForAttribute(key, method) {\n      return key;\n    },\n    /**\n      `keyForRelationship` can be used to define a custom key when\n      serializing and deserializing relationship properties. By default\n      `JSONSerializer` does not provide an implementation of this method.\n       Example\n         ```app/serializers/post.js\n        import JSONSerializer from '@ember-data/serializer/json';\n        import { underscore } from '@ember/string';\n         export default class PostSerializer extends JSONSerializer {\n          keyForRelationship(key, relationship, method) {\n            return `rel_${underscore(key)}`;\n          }\n        }\n        ```\n       @method keyForRelationship\n      @public\n      @param {String} key\n      @param {String} typeClass\n      @param {String} method\n      @return {String} normalized key\n    */\n    keyForRelationship(key, typeClass, method) {\n      return key;\n    },\n    /**\n     `keyForLink` can be used to define a custom key when deserializing link\n     properties.\n      @method keyForLink\n      @public\n     @param {String} key\n     @param {String} kind `belongsTo` or `hasMany`\n     @return {String} normalized key\n    */\n    keyForLink(key, kind) {\n      return key;\n    },\n    // HELPERS\n\n    /**\n     @method transformFor\n     @private\n     @param {String} attributeType\n     @param {Boolean} skipAssertion\n     @return {Transform} transform\n    */\n    transformFor(attributeType, skipAssertion) {\n      var transform = (0, _application.getOwner)(this).lookup('transform:' + attributeType);\n      (true && !(skipAssertion || !!transform) && (0, _debug.assert)(`Unable to find the transform for \\`attr('${attributeType}')\\``, skipAssertion || !!transform));\n      return transform;\n    }\n  });\n  var _default = _exports.default = JSONSerializer;\n});","define(\"@ember-data/serializer/rest\", [\"exports\", \"@ember/array\", \"@ember/debug\", \"@ember/string\", \"@ember/utils\", \"ember-inflector\", \"@ember-data/serializer/json\", \"@ember-data/store\", \"@ember-data/store/-private\", \"@ember-data/serializer/-private\"], function (_exports, _array, _debug, _string, _utils, _emberInflector, _json, _store, _private, _private2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"EmbeddedRecordsMixin\", {\n    enumerable: true,\n    get: function () {\n      return _private2.EmbeddedRecordsMixin;\n    }\n  });\n  _exports.default = void 0;\n  /**\n   * @module @ember-data/serializer/rest\n   */\n\n  /**\n    Normally, applications will use the `RESTSerializer` by implementing\n    the `normalize` method.\n  \n    This allows you to do whatever kind of munging you need and is\n    especially useful if your server is inconsistent and you need to\n    do munging differently for many different kinds of responses.\n  \n    See the `normalize` documentation for more information.\n  \n    ## Across the Board Normalization\n  \n    There are also a number of hooks that you might find useful to define\n    across-the-board rules for your payload. These rules will be useful\n    if your server is consistent, or if you're building an adapter for\n    an infrastructure service, like Firebase, and want to encode service\n    conventions.\n  \n    For example, if all of your keys are underscored and all-caps, but\n    otherwise consistent with the names you use in your models, you\n    can implement across-the-board rules for how to convert an attribute\n    name in your model to a key in your JSON.\n  \n    ```app/serializers/application.js\n    import RESTSerializer from '@ember-data/serializer/rest';\n    import { underscore } from '@ember/string';\n  \n    export default class ApplicationSerializer extends RESTSerializer {\n      keyForAttribute(attr, method) {\n        return underscore(attr).toUpperCase();\n      }\n    }\n    ```\n  \n    You can also implement `keyForRelationship`, which takes the name\n    of the relationship as the first parameter, the kind of\n    relationship (`hasMany` or `belongsTo`) as the second parameter, and\n    the method (`serialize` or `deserialize`) as the third parameter.\n  \n    @class RESTSerializer\n    @main @ember-data/serializer/rest\n    @public\n    @extends JSONSerializer\n  */\n  var RESTSerializer = _json.default.extend({\n    /**\n     `keyForPolymorphicType` can be used to define a custom key when\n     serializing and deserializing a polymorphic type. By default, the\n     returned key is `${key}Type`.\n      Example\n       ```app/serializers/post.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        keyForPolymorphicType(key, relationship) {\n          let relationshipKey = this.keyForRelationship(key);\n           return 'type-' + relationshipKey;\n        }\n      }\n      ```\n      @method keyForPolymorphicType\n      @public\n     @param {String} key\n     @param {String} typeClass\n     @param {String} method\n     @return {String} normalized key\n    */\n    keyForPolymorphicType(key, typeClass, method) {\n      var relationshipKey = this.keyForRelationship(key);\n      return `${relationshipKey}Type`;\n    },\n    /**\n      Normalizes a part of the JSON payload returned by\n      the server. You should override this method, munge the hash\n      and call super if you have generic normalization to do.\n       It takes the type of the record that is being normalized\n      (as a Model class), the property where the hash was\n      originally found, and the hash to normalize.\n       For example, if you have a payload that looks like this:\n       ```js\n      {\n        \"post\": {\n          \"id\": 1,\n          \"title\": \"Rails is omakase\",\n          \"comments\": [ 1, 2 ]\n        },\n        \"comments\": [{\n          \"id\": 1,\n          \"body\": \"FIRST\"\n        }, {\n          \"id\": 2,\n          \"body\": \"Rails is unagi\"\n        }]\n      }\n      ```\n       The `normalize` method will be called three times:\n       * With `App.Post`, `\"posts\"` and `{ id: 1, title: \"Rails is omakase\", ... }`\n      * With `App.Comment`, `\"comments\"` and `{ id: 1, body: \"FIRST\" }`\n      * With `App.Comment`, `\"comments\"` and `{ id: 2, body: \"Rails is unagi\" }`\n       You can use this method, for example, to normalize underscored keys to camelized\n      or other general-purpose normalizations. You will only need to implement\n      `normalize` and manipulate the payload as desired.\n       For example, if the `IDs` under `\"comments\"` are provided as `_id` instead of\n      `id`, you can specify how to normalize just the comments:\n       ```app/serializers/post.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        normalize(model, hash, prop) {\n          if (prop === 'comments') {\n            hash.id = hash._id;\n            delete hash._id;\n          }\n           return super.normalize(...arguments);\n        }\n      }\n      ```\n       On each call to the `normalize` method, the third parameter (`prop`) is always\n      one of the keys that were in the original payload or in the result of another\n      normalization as `normalizeResponse`.\n       @method normalize\n      @public\n      @param {Model} modelClass\n      @param {Object} resourceHash\n      @param {String} prop\n      @return {Object}\n    */\n\n    /**\n      Normalizes an array of resource payloads and returns a JSON-API Document\n      with primary data and, if any, included data as `{ data, included }`.\n       @method _normalizeArray\n      @param {Store} store\n      @param {String} modelName\n      @param {Object} arrayHash\n      @param {String} prop\n      @return {Object}\n      @private\n    */\n    _normalizeArray(store, modelName, arrayHash, prop) {\n      var documentHash = {\n        data: [],\n        included: []\n      };\n      var modelClass = store.modelFor(modelName);\n      var serializer = store.serializerFor(modelName);\n      (0, _array.makeArray)(arrayHash).forEach(hash => {\n        var {\n          data,\n          included\n        } = this._normalizePolymorphicRecord(store, hash, prop, modelClass, serializer);\n        documentHash.data.push(data);\n        if (included) {\n          documentHash.included.push(...included);\n        }\n      });\n      return documentHash;\n    },\n    _normalizePolymorphicRecord(store, hash, prop, primaryModelClass, primarySerializer) {\n      var serializer = primarySerializer;\n      var modelClass = primaryModelClass;\n      var primaryHasTypeAttribute = (0, _private2.modelHasAttributeOrRelationshipNamedType)(primaryModelClass);\n      if (!primaryHasTypeAttribute && hash.type) {\n        // Support polymorphic records in async relationships\n        var modelName = this.modelNameFromPayloadKey(hash.type);\n        if (store._hasModelFor(modelName)) {\n          serializer = store.serializerFor(modelName);\n          modelClass = store.modelFor(modelName);\n        }\n      }\n      return serializer.normalize(modelClass, hash, prop);\n    },\n    /**\n      @method _normalizeResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @param {Boolean} isSingle\n      @return {Object} JSON-API Document\n      @private\n    */\n    _normalizeResponse(store, primaryModelClass, payload, id, requestType, isSingle) {\n      var documentHash = {\n        data: null,\n        included: []\n      };\n      var meta = this.extractMeta(store, primaryModelClass, payload);\n      if (meta) {\n        (true && !((0, _utils.typeOf)(meta) === 'object') && (0, _debug.assert)('The `meta` returned from `extractMeta` has to be an object, not \"' + (0, _utils.typeOf)(meta) + '\".', (0, _utils.typeOf)(meta) === 'object'));\n        documentHash.meta = meta;\n      }\n      var keys = Object.keys(payload);\n      for (var i = 0, length = keys.length; i < length; i++) {\n        var prop = keys[i];\n        var modelName = prop;\n        var forcedSecondary = false;\n\n        /*\n          If you want to provide sideloaded records of the same type that the\n          primary data you can do that by prefixing the key with `_`.\n           Example\n           ```\n          {\n            users: [\n              { id: 1, title: 'Tom', manager: 3 },\n              { id: 2, title: 'Yehuda', manager: 3 }\n            ],\n            _users: [\n              { id: 3, title: 'Tomster' }\n            ]\n          }\n          ```\n           This forces `_users` to be added to `included` instead of `data`.\n         */\n        if (prop.charAt(0) === '_') {\n          forcedSecondary = true;\n          modelName = prop.substr(1);\n        }\n        var typeName = this.modelNameFromPayloadKey(modelName);\n        if (!store._hasModelFor(typeName)) {\n          (true && (0, _debug.warn)(this.warnMessageNoModelForKey(modelName, typeName), false, {\n            id: 'ds.serializer.model-for-key-missing'\n          }));\n          continue;\n        }\n        var isPrimary = !forcedSecondary && this.isPrimaryType(store, typeName, primaryModelClass);\n        var value = payload[prop];\n        if (value === null) {\n          continue;\n        }\n        if (true /* DEBUG */) {\n          var isQueryRecordAnArray = requestType === 'queryRecord' && isPrimary && Array.isArray(value);\n          var message = 'The adapter returned an array for the primary data of a `queryRecord` response. This is deprecated as `queryRecord` should return a single record.';\n          (true && !(!isQueryRecordAnArray) && (0, _debug.deprecate)(message, !isQueryRecordAnArray, {\n            id: 'ds.serializer.rest.queryRecord-array-response',\n            until: '3.0',\n            url: 'https://deprecations.emberjs.com/ember-data/v2.x/#toc_store-queryrecord-array-response-with-restserializer',\n            for: '@ember-data/serializer',\n            since: {\n              available: '3.0',\n              enabled: '3.0'\n            }\n          }));\n        }\n\n        /*\n          Support primary data as an object instead of an array.\n           Example\n           ```\n          {\n            user: { id: 1, title: 'Tom', manager: 3 }\n          }\n          ```\n         */\n        if (isPrimary && !Array.isArray(value)) {\n          var {\n            data: _data,\n            included: _included\n          } = this._normalizePolymorphicRecord(store, value, prop, primaryModelClass, this);\n          documentHash.data = _data;\n          if (_included) {\n            documentHash.included.push(..._included);\n          }\n          continue;\n        }\n        var {\n          data,\n          included\n        } = this._normalizeArray(store, typeName, value, prop);\n        if (included) {\n          documentHash.included.push(...included);\n        }\n        if (isSingle) {\n          data.forEach(resource => {\n            /*\n              Figures out if this is the primary record or not.\n               It's either:\n               1. The record with the same ID as the original request\n              2. If it's a newly created record without an ID, the first record\n                 in the array\n             */\n            var isUpdatedRecord = isPrimary && (0, _private.coerceId)(resource.id) === id;\n            var isFirstCreatedRecord = isPrimary && !id && !documentHash.data;\n            if (isFirstCreatedRecord || isUpdatedRecord) {\n              documentHash.data = resource;\n            } else {\n              documentHash.included.push(resource);\n            }\n          });\n        } else {\n          if (isPrimary) {\n            documentHash.data = data;\n          } else {\n            if (data) {\n              documentHash.included.push(...data);\n            }\n          }\n        }\n      }\n      return documentHash;\n    },\n    isPrimaryType(store, modelName, primaryModelClass) {\n      return (0, _store.normalizeModelName)(modelName) === primaryModelClass.modelName;\n    },\n    /**\n      This method allows you to push a payload containing top-level\n      collections of records organized per type.\n       ```js\n      {\n        \"posts\": [{\n          \"id\": \"1\",\n          \"title\": \"Rails is omakase\",\n          \"author\", \"1\",\n          \"comments\": [ \"1\" ]\n        }],\n        \"comments\": [{\n          \"id\": \"1\",\n          \"body\": \"FIRST\"\n        }],\n        \"users\": [{\n          \"id\": \"1\",\n          \"name\": \"@d2h\"\n        }]\n      }\n      ```\n       It will first normalize the payload, so you can use this to push\n      in data streaming in from your server structured the same way\n      that fetches and saves are structured.\n       @method pushPayload\n      @public\n      @param {Store} store\n      @param {Object} payload\n    */\n    pushPayload(store, payload) {\n      var documentHash = {\n        data: [],\n        included: []\n      };\n      for (var prop in payload) {\n        var modelName = this.modelNameFromPayloadKey(prop);\n        if (!store._hasModelFor(modelName)) {\n          (true && (0, _debug.warn)(this.warnMessageNoModelForKey(prop, modelName), false, {\n            id: 'ds.serializer.model-for-key-missing'\n          }));\n          continue;\n        }\n        var type = store.modelFor(modelName);\n        var typeSerializer = store.serializerFor(type.modelName);\n        (0, _array.makeArray)(payload[prop]).forEach(hash => {\n          var {\n            data,\n            included\n          } = typeSerializer.normalize(type, hash, prop);\n          documentHash.data.push(data);\n          if (included) {\n            documentHash.included.push(...included);\n          }\n        });\n      }\n      store.push(documentHash);\n    },\n    /**\n      This method is used to convert each JSON root key in the payload\n      into a modelName that it can use to look up the appropriate model for\n      that part of the payload.\n       For example, your server may send a model name that does not correspond with\n      the name of the model in your app. Let's take a look at an example model,\n      and an example payload:\n       ```app/models/post.js\n      import Model from '@ember-data/model';\n       export default class Post extends Model {}\n      ```\n       ```javascript\n        {\n          \"blog/post\": {\n            \"id\": \"1\n          }\n        }\n      ```\n       Ember Data is going to normalize the payload's root key for the modelName. As a result,\n      it will try to look up the \"blog/post\" model. Since we don't have a model called \"blog/post\"\n      (or a file called app/models/blog/post.js in ember-cli), Ember Data will throw an error\n      because it cannot find the \"blog/post\" model.\n       Since we want to remove this namespace, we can define a serializer for the application that will\n      remove \"blog/\" from the payload key whenver it's encountered by Ember Data:\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        modelNameFromPayloadKey(payloadKey) {\n          if (payloadKey === 'blog/post') {\n            return super.modelNameFromPayloadKey(payloadKey.replace('blog/', ''));\n          } else {\n           return super.modelNameFromPayloadKey(payloadKey);\n          }\n        }\n      }\n      ```\n       After refreshing, Ember Data will appropriately look up the \"post\" model.\n       By default the modelName for a model is its\n      name in dasherized form. This means that a payload key like \"blogPost\" would be\n      normalized to \"blog-post\" when Ember Data looks up the model. Usually, Ember Data\n      can use the correct inflection to do this for you. Most of the time, you won't\n      need to override `modelNameFromPayloadKey` for this purpose.\n       @method modelNameFromPayloadKey\n      @public\n      @param {String} key\n      @return {String} the model's modelName\n    */\n    modelNameFromPayloadKey(key) {\n      return (0, _emberInflector.singularize)((0, _store.normalizeModelName)(key));\n    },\n    // SERIALIZE\n\n    /**\n      Called when a record is saved in order to convert the\n      record into JSON.\n       By default, it creates a JSON object with a key for\n      each attribute and belongsTo relationship.\n       For example, consider this model:\n       ```app/models/comment.js\n      import Model, { attr, belongsTo } from '@ember-data/model';\n       export default class Comment extends Model {\n        @attr title\n        @attr body\n         @belongsTo('user') author\n      }\n      ```\n       The default serialization would create a JSON object like:\n       ```js\n      {\n        \"title\": \"Rails is unagi\",\n        \"body\": \"Rails? Omakase? O_O\",\n        \"author\": 12\n      }\n      ```\n       By default, attributes are passed through as-is, unless\n      you specified an attribute type (`attr('date')`). If\n      you specify a transform, the JavaScript value will be\n      serialized when inserted into the JSON hash.\n       By default, belongs-to relationships are converted into\n      IDs when inserted into the JSON hash.\n       ## IDs\n       `serialize` takes an options hash with a single option:\n      `includeId`. If this option is `true`, `serialize` will,\n      by default include the ID in the JSON object it builds.\n       The adapter passes in `includeId: true` when serializing\n      a record for `createRecord`, but not for `updateRecord`.\n       ## Customization\n       Your server may expect a different JSON format than the\n      built-in serialization format.\n       In that case, you can implement `serialize` yourself and\n      return a JSON hash of your choosing.\n       ```app/serializers/post.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serialize(snapshot, options) {\n          let json = {\n            POST_TTL: snapshot.attr('title'),\n            POST_BDY: snapshot.attr('body'),\n            POST_CMS: snapshot.hasMany('comments', { ids: true })\n          };\n           if (options.includeId) {\n            json.POST_ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n      ```\n       ## Customizing an App-Wide Serializer\n       If you want to define a serializer for your entire\n      application, you'll probably want to use `eachAttribute`\n      and `eachRelationship` on the record.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n      import { pluralize } from 'ember-inflector';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serialize(snapshot, options) {\n          let json = {};\n           snapshot.eachAttribute(function(name) {\n            json[serverAttributeName(name)] = snapshot.attr(name);\n          });\n           snapshot.eachRelationship(function(name, relationship) {\n            if (relationship.kind === 'hasMany') {\n              json[serverHasManyName(name)] = snapshot.hasMany(name, { ids: true });\n            }\n          });\n           if (options.includeId) {\n            json.ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n       function serverAttributeName(attribute) {\n        return attribute.underscore().toUpperCase();\n      }\n       function serverHasManyName(name) {\n        return serverAttributeName(singularize(name)) + \"_IDS\";\n      }\n      ```\n       This serializer will generate JSON that looks like this:\n       ```js\n      {\n        \"TITLE\": \"Rails is omakase\",\n        \"BODY\": \"Yep. Omakase.\",\n        \"COMMENT_IDS\": [ 1, 2, 3 ]\n      }\n      ```\n       ## Tweaking the Default JSON\n       If you just want to do some small tweaks on the default JSON,\n      you can call super first and make the tweaks on the returned\n      JSON.\n       ```app/serializers/post.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serialize(snapshot, options) {\n          let json = super.serialize(snapshot, options);\n           json.subject = json.title;\n          delete json.title;\n           return json;\n        }\n      }\n      ```\n       @method serialize\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} options\n      @return {Object} json\n    */\n    serialize(snapshot, options) {\n      return this._super(...arguments);\n    },\n    /**\n      You can use this method to customize the root keys serialized into the JSON.\n      The hash property should be modified by reference (possibly using something like _.extend)\n      By default the REST Serializer sends the modelName of a model, which is a camelized\n      version of the name.\n       For example, your server may expect underscored root objects.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n      import { decamelize } from '@ember/string';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serializeIntoHash(data, type, record, options) {\n          let root = decamelize(type.modelName);\n          data[root] = this.serialize(record, options);\n        }\n      }\n      ```\n       @method serializeIntoHash\n      @public\n      @param {Object} hash\n      @param {Model} typeClass\n      @param {Snapshot} snapshot\n      @param {Object} options\n    */\n    serializeIntoHash(hash, typeClass, snapshot, options) {\n      var normalizedRootKey = this.payloadKeyFromModelName(typeClass.modelName);\n      hash[normalizedRootKey] = this.serialize(snapshot, options);\n    },\n    /**\n      You can use `payloadKeyFromModelName` to override the root key for an outgoing\n      request. By default, the RESTSerializer returns a camelized version of the\n      model's name.\n       For a model called TacoParty, its `modelName` would be the string `taco-party`. The RESTSerializer\n      will send it to the server with `tacoParty` as the root key in the JSON payload:\n       ```js\n      {\n        \"tacoParty\": {\n          \"id\": \"1\",\n          \"location\": \"Matthew Beale's House\"\n        }\n      }\n      ```\n       For example, your server may expect dasherized root objects:\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n      import { dasherize } from '@ember/string';\n       export default class ApplicationSerializer extends RESTSerializer {\n        payloadKeyFromModelName(modelName) {\n          return dasherize(modelName);\n        }\n      }\n      ```\n       Given a `TacoParty` model, calling `save` on it would produce an outgoing\n      request like:\n       ```js\n      {\n        \"taco-party\": {\n          \"id\": \"1\",\n          \"location\": \"Matthew Beale's House\"\n        }\n      }\n      ```\n       @method payloadKeyFromModelName\n      @public\n      @param {String} modelName\n      @return {String}\n    */\n    payloadKeyFromModelName(modelName) {\n      return (0, _string.camelize)(modelName);\n    },\n    /**\n      You can use this method to customize how polymorphic objects are serialized.\n      By default the REST Serializer creates the key by appending `Type` to\n      the attribute and value from the model's camelcased model name.\n       @method serializePolymorphicType\n      @public\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializePolymorphicType(snapshot, json, relationship) {\n      var key = relationship.key;\n      var typeKey = this.keyForPolymorphicType(key, relationship.type, 'serialize');\n      var belongsTo = snapshot.belongsTo(key);\n      if ((0, _utils.isNone)(belongsTo)) {\n        json[typeKey] = null;\n      } else {\n        json[typeKey] = (0, _string.camelize)(belongsTo.modelName);\n      }\n    },\n    /**\n      You can use this method to customize how a polymorphic relationship should\n      be extracted.\n       @method extractPolymorphicRelationship\n      @public\n      @param {Object} relationshipType\n      @param {Object} relationshipHash\n      @param {Object} relationshipOptions\n      @return {Object}\n     */\n    extractPolymorphicRelationship(relationshipType, relationshipHash, relationshipOptions) {\n      var {\n        key,\n        resourceHash,\n        relationshipMeta\n      } = relationshipOptions;\n\n      // A polymorphic belongsTo relationship can be present in the payload\n      // either in the form where the `id` and the `type` are given:\n      //\n      //   {\n      //     message: { id: 1, type: 'post' }\n      //   }\n      //\n      // or by the `id` and a `<relationship>Type` attribute:\n      //\n      //   {\n      //     message: 1,\n      //     messageType: 'post'\n      //   }\n      //\n      // The next code checks if the latter case is present and returns the\n      // corresponding JSON-API representation. The former case is handled within\n      // the base class JSONSerializer.\n      var isPolymorphic = relationshipMeta.options.polymorphic;\n      var typeProperty = this.keyForPolymorphicType(key, relationshipType, 'deserialize');\n      if (isPolymorphic && resourceHash[typeProperty] !== undefined && typeof relationshipHash !== 'object') {\n        var type = this.modelNameFromPayloadKey(resourceHash[typeProperty]);\n        return {\n          id: relationshipHash,\n          type: type\n        };\n      }\n      return this._super(...arguments);\n    }\n  });\n  if (true /* DEBUG */) {\n    RESTSerializer.reopen({\n      warnMessageNoModelForKey(prop, typeKey) {\n        return 'Encountered \"' + prop + '\" in payload, but no model was found for model name \"' + typeKey + '\" (resolved model name using ' + this.constructor.toString() + '.modelNameFromPayloadKey(\"' + prop + '\"))';\n      }\n    });\n  }\n  var _default = _exports.default = RESTSerializer;\n});","define(\"@ember-data/serializer/transform\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    @module @ember-data/serializer\n  */\n  var _default = _exports.default = _private.Transform;\n});","define(\"@ember-data/store/-debug/index\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.assertPolymorphicType = void 0;\n  /*\n    Assert that `addedRecord` has a valid type so it can be added to the\n    relationship of the `record`.\n  \n    The assert basically checks if the `addedRecord` can be added to the\n    relationship (specified via `relationshipMeta`) of the `record`.\n  \n    This utility should only be used internally, as both record parameters must\n    be an InternalModel and the `relationshipMeta` needs to be the meta\n    information about the relationship, retrieved via\n    `record.relationshipFor(key)`.\n  */\n  var assertPolymorphicType;\n  if (true /* DEBUG */) {\n    var checkPolymorphic = function checkPolymorphic(modelClass, addedModelClass) {\n      if (modelClass.__isMixin) {\n        return modelClass.__mixin.detect(addedModelClass.PrototypeMixin) ||\n        // handle native class extension e.g. `class Post extends Model.extend(Commentable) {}`\n        modelClass.__mixin.detect(Object.getPrototypeOf(addedModelClass).PrototypeMixin);\n      }\n      return addedModelClass.prototype instanceof modelClass || modelClass.detect(addedModelClass);\n    };\n    _exports.assertPolymorphicType = assertPolymorphicType = function assertPolymorphicType(parentIdentifier, parentDefinition, addedIdentifier, store) {\n      store = store._store ? store._store : store; // allow usage with storeWrapper\n      var addedModelName = addedIdentifier.type;\n      var parentModelName = parentIdentifier.type;\n      var key = parentDefinition.key;\n      var relationshipModelName = parentDefinition.type;\n      var relationshipClass = store.modelFor(relationshipModelName);\n      var addedClass = store.modelFor(addedModelName);\n      var assertionMessage = `The '${addedModelName}' type does not implement '${relationshipModelName}' and thus cannot be assigned to the '${key}' relationship in '${parentModelName}'. Make it a descendant of '${relationshipModelName}' or use a mixin of the same name.`;\n      var isPolymorphic = checkPolymorphic(relationshipClass, addedClass);\n      (true && !(isPolymorphic) && (0, _debug.assert)(assertionMessage, isPolymorphic));\n    };\n  }\n});","define('@ember-data/store/-private', ['exports', '@ember/application', '@ember/debug', '@ember/error', '@ember/object', '@ember/utils', '@ember/array', '@ember/polyfills', '@ember/runloop', '@ember/service', '@ember/test', 'ember', 'require', 'rsvp', '@ember/string', '@ember/array/proxy', '@ember/object/computed', '@ember/object/promise-proxy-mixin', '@ember/object/proxy', '@ember/object/evented', '@ember/object/mixin', '@ember/object/compat', '@glimmer/tracking', 'ember-cached-decorator-polyfill', '@ember-data/store/-debug'], (function (exports, application, debug, EmberError, object, utils, EmberArray, polyfills, runloop, Service, test, Ember, require$1, RSVP, string, ArrayProxy, computed, PromiseProxyMixin, ObjectProxy, Evented, Mixin, compat, tracking, emberCachedDecoratorPolyfill, Debug) { 'use strict';\n\n  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\n  var EmberError__default = /*#__PURE__*/_interopDefaultLegacy(EmberError);\n  var EmberArray__default = /*#__PURE__*/_interopDefaultLegacy(EmberArray);\n  var Service__default = /*#__PURE__*/_interopDefaultLegacy(Service);\n  var Ember__default = /*#__PURE__*/_interopDefaultLegacy(Ember);\n  var require__default = /*#__PURE__*/_interopDefaultLegacy(require$1);\n  var RSVP__default = /*#__PURE__*/_interopDefaultLegacy(RSVP);\n  var ArrayProxy__default = /*#__PURE__*/_interopDefaultLegacy(ArrayProxy);\n  var PromiseProxyMixin__default = /*#__PURE__*/_interopDefaultLegacy(PromiseProxyMixin);\n  var ObjectProxy__default = /*#__PURE__*/_interopDefaultLegacy(ObjectProxy);\n  var Evented__default = /*#__PURE__*/_interopDefaultLegacy(Evented);\n  var Mixin__default = /*#__PURE__*/_interopDefaultLegacy(Mixin);\n\n  /**\n    @module @ember-data/store\n  */\n\n  // Used by the store to normalize IDs entering the store.  Despite the fact\n  // that developers may provide IDs as numbers (e.g., `store.findRecord('person', 1)`),\n  // it is important that internally we use strings, since IDs may be serialized\n  // and lose type information.  For example, Ember's router may put a record's\n  // ID into the URL, and if we later try to deserialize that URL and find the\n  // corresponding record, we will not know if it is a string or a number.\n\n  function coerceId(id) {\n    if (id === null || id === undefined || id === '') {\n      return null;\n    }\n    if (typeof id === 'string') {\n      return id;\n    }\n    if (typeof id === 'symbol') {\n      return id.toString();\n    }\n    return '' + id;\n  }\n  function ensureStringId(id) {\n    var normalized = null;\n    if (typeof id === 'string') {\n      normalized = id.length > 0 ? id : null;\n    } else if (typeof id === 'number' && !isNaN(id)) {\n      normalized = '' + id;\n    }\n    if (normalized === null) {\n      throw new Error(`Expected id to be a string or number, received ${String(id)}`);\n    }\n    return normalized;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  // All modelNames are dasherized internally. Changing this function may\n  // require changes to other normalization hooks (such as typeForRoot).\n\n  /**\n   This method normalizes a modelName into the format Ember Data uses\n   internally by dasherizing it.\n\n    @method normalizeModelName\n    @static\n    @public\n    @for @ember-data/store\n    @param {String} modelName\n    @return {String} normalizedModelName\n  */\n  function normalizeModelName(modelName) {\n    return string.dasherize(modelName);\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   * This symbol provides a Symbol replacement for browsers that do not have it\n   * (eg. IE 11).\n   *\n   * The replacement is different from the native Symbol in some ways. It is a\n   * function that produces an output:\n   * - iterable;\n   * - that is a string, not a symbol.\n   *\n   * @internal\n   */\n  var symbol = typeof Symbol !== 'undefined' ? Symbol : key => `__${key}${Math.floor(Math.random() * Date.now())}__`;\n  function addSymbol(obj, symbol, value) {\n    if (typeof symbol === 'string') {\n      Object.defineProperty(obj, symbol, {\n        value,\n        configurable: false,\n        enumerable: false,\n        writable: false\n      });\n    } else {\n      // Typescript doesn't allow Symbol as an index type\n      obj[symbol] = value;\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  // provided for additional debuggability\n  var DEBUG_CLIENT_ORIGINATED = symbol('record-originated-on-client');\n  var DEBUG_IDENTIFIER_BUCKET = symbol('identifier-bucket');\n\n  /**\n   * An Identifier specific to a record which may or may not\n   * be present in the cache.\n   *\n   * The absence of an `id` DOES NOT indicate that this\n   * Identifier is for a new client-created record as it\n   * may also indicate that it was generated for a secondary\n   * index and the primary `id` index is not yet known.\n   *\n   * @internal\n   */\n\n  /**\n   * Used when an Identifier is known to be the stable version\n   *\n   * @internal\n   */\n\n  /**\n   * Used when a StableRecordIdentifier was not created locally as part\n   * of a call to store.createRecord\n   *\n   * Distinguishing between this Identifier and one for a client created\n   * record that was created with an ID is generally speaking not possible\n   * at runtime, so anything with an ID typically narrows to this.\n   *\n   * @internal\n   */\n\n  /**\n   * Used when a StableRecordIdentifier was created locally\n   * (by a call to store.createRecord).\n   *\n   * It is possible in rare circumstances to have a StableRecordIdentifier\n   * that is not for a new record but does not have an ID. This would\n   * happen if a user intentionally created one for use with a secondary-index\n   * prior to the record having been fully loaded.\n   *\n   * @internal\n   */\n\n  /**\n   * A referentially stable object with a unique string (lid) that can be used\n   * as a reference to data in the cache.\n   *\n   * Every record instance has a unique identifier, and identifiers may refer\n   * to data that has never been loaded (for instance, in an async relationship).\n   *\n   * @class StableRecordIdentifier\n   * @public\n   */\n\n  /**\n   * A string representing a unique identity.\n   *\n   * @property {string} lid\n   * @public\n   */\n  /**\n   * the primary resource `type` or `modelName` this identity belongs to.\n   *\n   * @property {string} type\n   * @public\n   */\n  /**\n   * the primary id for the record this identity belongs to. `null`\n   * if not yet assigned an id.\n   *\n   * @property {string | null} id\n   * @public\n   */\n  /**\n    Configures how unique identifier lid strings are generated by @ember-data/store.\n    \n    This configuration MUST occur prior to the store instance being created.\n\n    Takes a method which can expect to receive various data as its first argument\n    and the name of a bucket as its second argument. Currently the second\n    argument will always be `record` data should conform to a `json-api`\n    `Resource` interface, but will be the normalized json data for a single\n    resource that has been given to the store.\n\n    The method must return a unique (to at-least the given bucket) string identifier\n    for the given data as a string to be used as the `lid` of an `Identifier` token.\n\n    This method will only be called by either `getOrCreateRecordIdentifier` or\n    `createIdentifierForNewRecord` when an identifier for the supplied data\n    is not already known via `lid` or `type + id` combo and one needs to be\n    generated or retrieved from a proprietary cache.\n\n    `data` will be the same data argument provided to `getOrCreateRecordIdentifier`\n    and in the `createIdentifierForNewRecord` case will be an object with\n    only `type` as a key.\n\n    ```ts\n    import { setIdentifierGenerationMethod } form '@ember-data/store';\n\n    export function initialize(applicationInstance) {\n      // note how `count` here is now scoped to the application instance\n      // for our generation method by being inside the closure provided\n      // by the initialize function\n      let count = 0;\n\n      setIdentifierGenerationMethod((resource, bucket) => {\n        return resource.lid || `my-key-${count++}`;\n      });\n    }\n\n    export default {\n      name: 'configure-ember-data-identifiers',\n      initialize\n    };\n    ```\n\n    @method setIdentifierGenerationMethod\n    @for @ember-data/store\n    @param method\n    @public\n    @static\n  */\n  /**\n   Configure a callback for when the identifier cache encounters new resource\n   data for an existing resource.\n\n   This configuration MUST occur prior to the store instance being created.\n\n   ```js\n   import { setIdentifierUpdateMethod } from '@ember-data/store';\n   ```\n\n   Takes a method which can expect to receive an existing `Identifier` alongside\n   some new data to consider as a second argument. This is an opportunity\n   for secondary lookup tables and caches associated with the identifier\n   to be amended.\n\n   This method is called everytime `updateRecordIdentifier` is called and\n    with the same arguments. It provides the opportunity to update secondary\n    lookup tables for existing identifiers.\n\n   It will always be called after an identifier created with `createIdentifierForNewRecord`\n    has been committed, or after an update to the `record` a `RecordIdentifier`\n    is assigned to has been committed. Committed here meaning that the server\n    has acknowledged the update (for instance after a call to `.save()`)\n\n   If `id` has not previously existed, it will be assigned to the `Identifier`\n    prior to this `UpdateMethod` being called; however, calls to the parent method\n    `updateRecordIdentifier` that attempt to change the `id` or calling update\n    without providing an `id` when one is missing will throw an error.\n\n    @method setIdentifierUpdateMethod\n    @for @ember-data/store\n    @param method\n    @public\n    @static\n  */\n  /**\n   Configure a callback for when the identifier cache is going to release an identifier.\n\n   This configuration MUST occur prior to the store instance being created.\n\n   ```js\n   import { setIdentifierForgetMethod } from '@ember-data/store';\n   ```\n\n   Takes method which can expect to receive an existing `Identifier` that should be eliminated\n   from any secondary lookup tables or caches that the user has populated for it.\n\n    @method setIdentifierForgetMethod\n    @for @ember-data/store\n    @param method\n    @public\n    @static\n  */\n  /**\n   Configure a callback for when the identifier cache is being torn down.\n\n   This configuration MUST occur prior to the store instance being created.\n\n   ```js\n   import { setIdentifierResetMethod } from '@ember-data/store';\n   ```\n   \n   Takes a method which can expect to be called when the parent application is destroyed.\n\n   If you have properly used a WeakMap to encapsulate the state of your customization\n   to the application instance, you may not need to implement the `resetMethod`.\n\n    @method setIdentifierResetMethod\n    @for @ember-data/store\n    @param method\n    @public\n    @static\n  */\n\n  function isNonEmptyString(str) {\n    return typeof str === 'string' && str.length > 0;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  var IDENTIFIERS = new WeakMap();\n  function isStableIdentifier(identifier) {\n    return IDENTIFIERS.has(identifier);\n  }\n  function markStableIdentifier(identifier) {\n    IDENTIFIERS.set(identifier, 'is-identifier');\n  }\n  function unmarkStableIdentifier(identifier) {\n    IDENTIFIERS.delete(identifier);\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  // support IE11\n\n  var CRYPTO = (() => {\n    var hasWindow = typeof window !== 'undefined';\n    var isFastBoot = typeof FastBoot !== 'undefined';\n    if (isFastBoot) {\n      return {\n        getRandomValues(buffer) {\n          try {\n            return FastBoot.require('crypto').randomFillSync(buffer);\n          } catch (err) {\n            throw new Error('Using createRecord in Fastboot requires you to add the \"crypto\" package to \"fastbootDependencies\" in your package.json');\n          }\n        }\n      };\n    } else if (hasWindow && typeof window.crypto !== 'undefined') {\n      return window.crypto;\n    } else if (hasWindow && typeof window.msCrypto !== 'undefined' && typeof window.msCrypto.getRandomValues === 'function') {\n      return window.msCrypto;\n    } else {\n      throw new Error('ember-data: Cannot find a valid way to generate local identifiers');\n    }\n  })();\n\n  // we might be able to optimize this by requesting more bytes than we need at a time\n  function rng() {\n    // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto\n    var rnds8 = new Uint8Array(16);\n    return CRYPTO.getRandomValues(rnds8);\n  }\n\n  /*\n   * Convert array of 16 byte values to UUID string format of the form:\n   * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n   */\n  var byteToHex = [];\n  for (var i = 0; i < 256; ++i) {\n    byteToHex[i] = (i + 0x100).toString(16).substr(1);\n  }\n  function bytesToUuid(buf) {\n    var bth = byteToHex;\n    // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n    return [bth[buf[0]], bth[buf[1]], bth[buf[2]], bth[buf[3]], '-', bth[buf[4]], bth[buf[5]], '-', bth[buf[6]], bth[buf[7]], '-', bth[buf[8]], bth[buf[9]], '-', bth[buf[10]], bth[buf[11]], bth[buf[12]], bth[buf[13]], bth[buf[14]], bth[buf[15]]].join('');\n  }\n  function uuidv4() {\n    var rnds = rng();\n\n    // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n    rnds[6] = rnds[6] & 0x0f | 0x40;\n    rnds[8] = rnds[8] & 0x3f | 0x80;\n    return bytesToUuid(rnds);\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  function freeze$1(obj) {\n    if (typeof Object.freeze === 'function') {\n      return Object.freeze(obj);\n    }\n    return obj;\n  }\n  var configuredForgetMethod;\n  var configuredGenerationMethod;\n  var configuredResetMethod;\n  var configuredUpdateMethod;\n  function setIdentifierGenerationMethod(method) {\n    configuredGenerationMethod = method;\n  }\n  function setIdentifierUpdateMethod(method) {\n    configuredUpdateMethod = method;\n  }\n  function setIdentifierForgetMethod(method) {\n    configuredForgetMethod = method;\n  }\n  function setIdentifierResetMethod(method) {\n    configuredResetMethod = method;\n  }\n  function defaultGenerationMethod(data, bucket) {\n    if (isNonEmptyString(data.lid)) {\n      return data.lid;\n    }\n    var {\n      type,\n      id\n    } = data;\n    if (isNonEmptyString(coerceId(id))) {\n      return `@ember-data:lid-${normalizeModelName(type)}-${id}`;\n    }\n    return uuidv4();\n  }\n  var IdentifierCaches = new WeakMap();\n  function identifierCacheFor(store) {\n    var cache = IdentifierCaches.get(store);\n    if (cache === undefined) {\n      cache = new IdentifierCache$1();\n      IdentifierCaches.set(store, cache);\n    }\n    return cache;\n  }\n  function defaultEmptyCallback(...args) {}\n  var DEBUG_MAP;\n  {\n    DEBUG_MAP = new WeakMap();\n  }\n\n  /**\n   * Each instance of {Store} receives a unique instance of a IdentifierCache.\n   * \n   * This cache is responsible for assigning or retrieving the unique identify\n   * for arbitrary resource data encountered by the store. Data representing\n   * a unique resource or record should always be represented by the same\n   * identifier.\n   * \n   * It can be configured by consuming applications.\n   * \n   * @class IdentifierCache\n     @public\n   */\n  class IdentifierCache$1 {\n    constructor() {\n      // Typescript still leaks private properties in the final\n      // compiled class, so we may want to move these from _underscore\n      // to a WeakMap to avoid leaking\n      // currently we leak this for test purposes\n      this._cache = {\n        lids: Object.create(null),\n        types: Object.create(null)\n      };\n      this._generate = void 0;\n      this._update = void 0;\n      this._forget = void 0;\n      this._reset = void 0;\n      this._merge = void 0;\n      // we cache the user configuredGenerationMethod at init because it must\n      // be configured prior and is not allowed to be changed\n      this._generate = configuredGenerationMethod || defaultGenerationMethod;\n      this._update = configuredUpdateMethod || defaultEmptyCallback;\n      this._forget = configuredForgetMethod || defaultEmptyCallback;\n      this._reset = configuredResetMethod || defaultEmptyCallback;\n      this._merge = defaultEmptyCallback;\n    }\n\n    /**\n     * Internal hook to allow management of merge conflicts with identifiers.\n     *\n     * we allow late binding of this private internal merge so that `internalModelFactory`\n     * can insert itself here to handle elimination of duplicates\n     *\n     * @method __configureMerge\n     * @private\n     */\n    __configureMerge(method) {\n      this._merge = method || defaultEmptyCallback;\n    }\n\n    /**\n     * @method _getRecordIdentifier\n     * @private\n     */\n\n    _getRecordIdentifier(resource, shouldGenerate = false) {\n      // short circuit if we're already the stable version\n      if (isStableIdentifier(resource)) {\n        {\n          // TODO should we instead just treat this case as a new generation skipping the short circuit?\n          if (!(resource.lid in this._cache.lids) || this._cache.lids[resource.lid] !== resource) {\n            throw new Error(`The supplied identifier ${resource} does not belong to this store instance`);\n          }\n        }\n        return resource;\n      }\n      var lid = coerceId(resource.lid);\n      var identifier = lid !== null ? this._cache.lids[lid] : undefined;\n      if (identifier !== undefined) {\n        return identifier;\n      }\n      var type = normalizeModelName(resource.type);\n      var id = coerceId(resource.id);\n      if (shouldGenerate === false) {\n        if (!type || !id) {\n          return;\n        }\n      }\n\n      // `type` must always be present\n      {\n        if (!isNonEmptyString(resource.type)) {\n          throw new Error('resource.type needs to be a string');\n        }\n      }\n      var keyOptions = getTypeIndex(this._cache.types, type);\n\n      // go straight for the stable RecordIdentifier key'd to `lid`\n      if (lid !== null) {\n        identifier = keyOptions.lid[lid];\n      }\n\n      // we may have not seen this resource before\n      // but just in case we check our own secondary lookup (`id`)\n      if (identifier === undefined && id !== null) {\n        identifier = keyOptions.id[id];\n      }\n      if (identifier === undefined) {\n        // we have definitely not seen this resource before\n        // so we allow the user configured `GenerationMethod` to tell us\n        var newLid = this._generate(resource, 'record');\n\n        // we do this _even_ when `lid` is present because secondary lookups\n        // may need to be populated, but we enforce not giving us something\n        // different than expected\n        if (lid !== null && newLid !== lid) {\n          throw new Error(`You should not change the <lid> of a RecordIdentifier`);\n        } else if (lid === null) {\n          // allow configuration to tell us that we have\n          // seen this `lid` before. E.g. a secondary lookup\n          // connects this resource to a previously seen\n          // resource.\n          identifier = keyOptions.lid[newLid];\n        }\n        if (shouldGenerate === true) {\n          if (identifier === undefined) {\n            // if we still don't have an identifier, time to generate one\n            identifier = makeStableRecordIdentifier(id, type, newLid, 'record', false);\n\n            // populate our unique table\n            {\n              // realistically if you hit this it means you changed `type` :/\n              // TODO consider how to handle type change assertions more gracefully\n              if (identifier.lid in this._cache.lids) {\n                throw new Error(`You should not change the <type> of a RecordIdentifier`);\n              }\n            }\n            this._cache.lids[identifier.lid] = identifier;\n\n            // populate our primary lookup table\n            // TODO consider having the `lid` cache be\n            // one level up\n            keyOptions.lid[identifier.lid] = identifier;\n            // TODO exists temporarily to support `peekAll`\n            // but likely to move\n            keyOptions._allIdentifiers.push(identifier);\n          }\n\n          // populate our own secondary lookup table\n          // even for the \"successful\" secondary lookup\n          // by `_generate()`, since we missed the cache\n          // previously\n          // we use identifier.id instead of id here\n          // because they may not match and we prefer\n          // what we've set via resource data\n          if (identifier.id !== null) {\n            keyOptions.id[identifier.id] = identifier;\n\n            // TODO allow filling out of `id` here\n            // for the `username` non-client created\n            // case.\n          }\n        }\n      }\n\n      return identifier;\n    }\n\n    /**\n     * allows us to peek without generating when needed\n     * useful for the \"create\" case when we need to see if\n     * we are accidentally overwritting something\n     *\n     * @method peekRecordIdentifier\n     * @param resource\n     * @returns {StableRecordIdentifier | undefined}\n     * @private\n     */\n    peekRecordIdentifier(resource) {\n      return this._getRecordIdentifier(resource, false);\n    }\n\n    /**\n      Returns the Identifier for the given Resource, creates one if it does not yet exist.\n       Specifically this means that we:\n       - validate the `id` `type` and `lid` combo against known identifiers\n      - return an object with an `lid` that is stable (repeated calls with the same\n        `id` + `type` or `lid` will return the same `lid` value)\n      - this referential stability of the object itself is guaranteed\n       @method getOrCreateRecordIdentifier\n      @param resource \n      @returns {StableRecordIdentifier}\n      @public\n    */\n    getOrCreateRecordIdentifier(resource) {\n      return this._getRecordIdentifier(resource, true);\n    }\n\n    /**\n     Returns a new Identifier for the supplied data. Call this method to generate\n     an identifier when a new resource is being created local to the client and\n     potentially does not have an `id`.\n      Delegates generation to the user supplied `GenerateMethod` if one has been provided\n     with the signature `generateMethod({ type }, 'record')`.\n      @method createIdentifierForNewRecord\n     @param data\n     @returns {StableRecordIdentifier}\n     @public\n    */\n    createIdentifierForNewRecord(data) {\n      var newLid = this._generate(data, 'record');\n      var identifier = makeStableRecordIdentifier(data.id || null, data.type, newLid, 'record', true);\n      var keyOptions = getTypeIndex(this._cache.types, data.type);\n\n      // populate our unique table\n      {\n        if (identifier.lid in this._cache.lids) {\n          throw new Error(`The lid generated for the new record is not unique as it matches an existing identifier`);\n        }\n      }\n      this._cache.lids[identifier.lid] = identifier;\n\n      // populate the type+lid cache\n      keyOptions.lid[newLid] = identifier;\n      // ensure a peekAll sees our new identifier too\n      // TODO move this outta here?\n      keyOptions._allIdentifiers.push(identifier);\n      return identifier;\n    }\n\n    /**\n     Provides the opportunity to update secondary lookup tables for existing identifiers\n     Called after an identifier created with `createIdentifierForNewRecord` has been\n     committed.\n      Assigned `id` to an `Identifier` if `id` has not previously existed; however,\n     attempting to change the `id` or calling update without providing an `id` when\n     one is missing will throw an error.\n       - sets `id` (if `id` was previously `null`)\n      - `lid` and `type` MUST NOT be altered post creation\n       If a merge occurs, it is possible the returned identifier does not match the originally\n      provided identifier. In this case the abandoned identifier will go through the usual\n      `forgetRecordIdentifier` codepaths.\n       @method updateRecordIdentifier\n      @param identifierObject \n      @param data \n      @returns {StableRecordIdentifier}\n      @public\n    */\n    updateRecordIdentifier(identifierObject, data) {\n      var identifier = this.getOrCreateRecordIdentifier(identifierObject);\n      var newId = coerceId(data.id);\n      var existingIdentifier = detectMerge(this._cache.types, identifier, data, newId, this._cache.lids);\n      if (!existingIdentifier) {\n        // If the incoming type does not match the identifier type, we need to create an identifier for the incoming\n        // data so we can merge the incoming data with the existing identifier, see #7325 and #7363\n        if (data.type && identifier.type !== normalizeModelName(data.type)) {\n          var incomingDataResource = polyfills.assign({}, data);\n          // Need to strip the lid from the incomingData in order force a new identifier creation\n          delete incomingDataResource.lid;\n          existingIdentifier = this.getOrCreateRecordIdentifier(incomingDataResource);\n        }\n      }\n      if (existingIdentifier) {\n        var keyOptions = getTypeIndex(this._cache.types, identifier.type);\n        identifier = this._mergeRecordIdentifiers(keyOptions, identifier, existingIdentifier, data, newId);\n      }\n      var id = identifier.id;\n      performRecordIdentifierUpdate(identifier, data, this._update);\n      newId = identifier.id;\n\n      // add to our own secondary lookup table\n      if (id !== newId && newId !== null) {\n        var _keyOptions = getTypeIndex(this._cache.types, identifier.type);\n        _keyOptions.id[newId] = identifier;\n        if (id !== null) {\n          delete _keyOptions.id[id];\n        }\n      }\n      return identifier;\n    }\n\n    /**\n     * @method _mergeRecordIdentifiers\n     * @private\n     */\n    _mergeRecordIdentifiers(keyOptions, identifier, existingIdentifier, data, newId) {\n      // delegate determining which identifier to keep to the configured MergeMethod\n      var kept = this._merge(identifier, existingIdentifier, data);\n      var abandoned = kept === identifier ? existingIdentifier : identifier;\n\n      // cleanup the identifier we no longer need\n      this.forgetRecordIdentifier(abandoned);\n\n      // ensure a secondary cache entry for this id for the identifier we do keep\n      keyOptions.id[newId] = kept;\n      // ensure a secondary cache entry for this id for the abandoned identifier's type we do keep\n      var baseKeyOptions = getTypeIndex(this._cache.types, existingIdentifier.type);\n      baseKeyOptions.id[newId] = kept;\n\n      // make sure that the `lid` on the data we are processing matches the lid we kept\n      data.lid = kept.lid;\n      return kept;\n    }\n\n    /**\n     Provides the opportunity to eliminate an identifier from secondary lookup tables\n     as well as eliminates it from ember-data's own lookup tables and book keeping.\n      Useful when a record has been deleted and the deletion has been persisted and\n     we do not care about the record anymore. Especially useful when an `id` of a\n     deleted record might be reused later for a new record.\n      @method forgetRecordIdentifier\n     @param identifierObject\n     @public\n    */\n    forgetRecordIdentifier(identifierObject) {\n      var identifier = this.getOrCreateRecordIdentifier(identifierObject);\n      var keyOptions = getTypeIndex(this._cache.types, identifier.type);\n      if (identifier.id !== null) {\n        delete keyOptions.id[identifier.id];\n      }\n      delete this._cache.lids[identifier.lid];\n      delete keyOptions.lid[identifier.lid];\n      var index = keyOptions._allIdentifiers.indexOf(identifier);\n      keyOptions._allIdentifiers.splice(index, 1);\n      unmarkStableIdentifier(identifierObject);\n      this._forget(identifier, 'record');\n    }\n    destroy() {\n      this._reset();\n    }\n  }\n  function getTypeIndex(typeMap, type) {\n    var typeIndex = typeMap[type];\n    if (typeIndex === undefined) {\n      typeIndex = {\n        lid: Object.create(null),\n        id: Object.create(null),\n        _allIdentifiers: []\n      };\n      typeMap[type] = typeIndex;\n    }\n    return typeIndex;\n  }\n  function makeStableRecordIdentifier(id, type, lid, bucket, clientOriginated = false) {\n    var recordIdentifier = {\n      lid,\n      id,\n      type\n    };\n    markStableIdentifier(recordIdentifier);\n    {\n      // we enforce immutability in dev\n      //  but preserve our ability to do controlled updates to the reference\n      var wrapper = {\n        get lid() {\n          return recordIdentifier.lid;\n        },\n        get id() {\n          return recordIdentifier.id;\n        },\n        get type() {\n          return recordIdentifier.type;\n        },\n        toString() {\n          var {\n            type,\n            id,\n            lid\n          } = recordIdentifier;\n          return `${clientOriginated ? '[CLIENT_ORIGINATED] ' : ''}${type}:${id} (${lid})`;\n        }\n      };\n      addSymbol(wrapper, DEBUG_CLIENT_ORIGINATED, clientOriginated);\n      addSymbol(wrapper, DEBUG_IDENTIFIER_BUCKET, bucket);\n      wrapper = freeze$1(wrapper);\n      markStableIdentifier(wrapper);\n      DEBUG_MAP.set(wrapper, recordIdentifier);\n      return wrapper;\n    }\n  }\n  function performRecordIdentifierUpdate(identifier, data, updateFn) {\n    var {\n      id,\n      lid\n    } = data;\n    var type = data.type && normalizeModelName(data.type);\n    {\n      // get the mutable instance behind our proxy wrapper\n      var wrapper = identifier;\n      identifier = DEBUG_MAP.get(wrapper);\n      if (lid !== undefined) {\n        var newLid = coerceId(lid);\n        if (newLid !== identifier.lid) {\n          throw new Error(`The 'lid' for a RecordIdentifier cannot be updated once it has been created. Attempted to set lid for '${wrapper}' to '${lid}'.`);\n        }\n      }\n      if (id !== undefined) {\n        var newId = coerceId(id);\n        if (identifier.id !== null && identifier.id !== newId) {\n          // here we warn and ignore, as this may be a mistake, but we allow the user\n          // to have multiple cache-keys pointing at a single lid so we cannot error\n          (debug.warn(`The 'id' for a RecordIdentifier should not be updated once it has been set. Attempted to set id for '${wrapper}' to '${newId}'.`, false, {\n            id: 'ember-data:multiple-ids-for-identifier'\n          }));\n        }\n      }\n\n      // TODO consider just ignoring here to allow flexible polymorphic support\n      if (type && type !== identifier.type) {\n        throw new Error(`The 'type' for a RecordIdentifier cannot be updated once it has been set. Attempted to set type for '${wrapper}' to '${type}'.`);\n      }\n      updateFn(wrapper, data, 'record');\n    }\n\n    // upgrade the ID, this is a \"one time only\" ability\n    // for the multiple-cache-key scenario we \"could\"\n    // use a heuristic to guess the best id for display\n    // (usually when `data.id` is available and `data.attributes` is not)\n    if (id !== undefined) {\n      identifier.id = coerceId(id);\n    }\n  }\n  function detectMerge(typesCache, identifier, data, newId, lids) {\n    var {\n      id,\n      type,\n      lid\n    } = identifier;\n    if (id !== null && id !== newId && newId !== null) {\n      var keyOptions = getTypeIndex(typesCache, identifier.type);\n      var existingIdentifier = keyOptions.id[newId];\n      return existingIdentifier !== undefined ? existingIdentifier : false;\n    } else {\n      var newType = data.type && normalizeModelName(data.type);\n\n      // If the ids and type are the same but lid is not the same, we should trigger a merge of the identifiers\n      if (id !== null && id === newId && newType === type && data.lid && data.lid !== lid) {\n        var _existingIdentifier = lids[data.lid];\n        return _existingIdentifier !== undefined ? _existingIdentifier : false;\n        // If the lids are the same, and ids are the same, but types are different we should trigger a merge of the identifiers\n      } else if (id !== null && id === newId && newType && newType !== type && data.lid && data.lid === lid) {\n        var _keyOptions2 = getTypeIndex(typesCache, newType);\n        var _existingIdentifier2 = _keyOptions2.id[id];\n        return _existingIdentifier2 !== undefined ? _existingIdentifier2 : false;\n      }\n    }\n    return false;\n  }\n\n  function constructResource(type, id, lid) {\n    var trueId = coerceId(id);\n    if (!isNonEmptyString(trueId)) {\n      if (isNonEmptyString(lid)) {\n        return {\n          type,\n          id: trueId,\n          lid\n        };\n      }\n      throw new Error(`Expected either id or lid to be a valid string`);\n    }\n    if (isNonEmptyString(lid)) {\n      return {\n        type,\n        id: trueId,\n        lid\n      };\n    }\n    return {\n      type,\n      id: trueId\n    };\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    A `PromiseArray` is an object that acts like both an `Ember.Array`\n    and a promise. When the promise is resolved the resulting value\n    will be set to the `PromiseArray`'s `content` property. This makes\n    it easy to create data bindings with the `PromiseArray` that will be\n    updated when the promise resolves.\n\n    This class should not be imported and instantiated directly.\n\n    For more information see the [Ember.PromiseProxyMixin\n    documentation](/ember/release/classes/PromiseProxyMixin).\n\n    Example\n\n    ```javascript\n    let promiseArray = PromiseArray.create({\n      promise: $.getJSON('/some/remote/data.json')\n    });\n\n    promiseArray.get('length'); // 0\n\n    promiseArray.then(function() {\n      promiseArray.get('length'); // 100\n    });\n    ```\n\n    @class PromiseArray\n    @public\n    @extends Ember.ArrayProxy\n    @uses Ember.PromiseProxyMixin\n  */\n  var PromiseArray = ArrayProxy__default[\"default\"].extend(PromiseProxyMixin__default[\"default\"], {\n    meta: computed.reads('content.meta')\n  });\n\n  /**\n    A `PromiseObject` is an object that acts like both an `EmberObject`\n    and a promise. When the promise is resolved, then the resulting value\n    will be set to the `PromiseObject`'s `content` property. This makes\n    it easy to create data bindings with the `PromiseObject` that will\n    be updated when the promise resolves.\n\n    This class should not be imported and instantiated directly.\n\n    For more information see the [Ember.PromiseProxyMixin\n    documentation](/ember/release/classes/PromiseProxyMixin.html).\n\n    Example\n\n    ```javascript\n    let promiseObject = PromiseObject.create({\n      promise: $.getJSON('/some/remote/data.json')\n    });\n\n    promiseObject.get('name'); // null\n\n    promiseObject.then(function() {\n      promiseObject.get('name'); // 'Tomster'\n    });\n    ```\n\n    @class PromiseObject\n    @public\n    @extends Ember.ObjectProxy\n    @uses Ember.PromiseProxyMixin\n  */\n  var PromiseObject = ObjectProxy__default[\"default\"].extend(PromiseProxyMixin__default[\"default\"]);\n  function promiseObject(promise, label) {\n    return PromiseObject.create({\n      promise: RSVP.Promise.resolve(promise, label)\n    });\n  }\n  function promiseArray(promise, label) {\n    return PromiseArray.create({\n      promise: RSVP.Promise.resolve(promise, label)\n    });\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  /**\n   * Get the materialized model from the internalModel/promise\n   * that returns an internal model and return it in a promiseObject.\n   *\n   * Useful for returning from find methods\n   *\n   * @internal\n   */\n  function promiseRecord(internalModelPromise, label) {\n    var toReturn = internalModelPromise.then(internalModel => internalModel.getRecord());\n    return promiseObject(toReturn, label);\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  // TODO: expose Ember._Backburner as `import { _Backburner } from '@ember/runloop'` in ember-rfc176-data + emberjs/ember.js\n  /*\n    syncRelationships is used by the UI to grab updates from the graph\n    and update the ManyArrays.\n\n    We may be able to remove this once the new relationship layer is\n    complete.\n  */\n  var backburner = new Ember__default[\"default\"]._Backburner(['coalesce', 'sync', 'notify']);\n  {\n    test.registerWaiter(() => {\n      return !backburner.currentInstance && !backburner.hasTimers();\n    });\n  }\n\n  /**\n    @module @ember-data/adapter/error\n  */\n\n  var SOURCE_POINTER_REGEXP = /^\\/?data\\/(attributes|relationships)\\/(.*)/;\n  var SOURCE_POINTER_PRIMARY_REGEXP = /^\\/?data/;\n  var PRIMARY_ATTRIBUTE_KEY = 'base';\n\n  /**\n    Convert an hash of errors into an array with errors in JSON-API format.\n     ```javascript\n    import DS from 'ember-data';\n\n     const { errorsHashToArray } = DS;\n     \n     let errors = {\n      base: 'Invalid attributes on saving this record',\n      name: 'Must be present',\n      age: ['Must be present', 'Must be a number']\n    };\n     let errorsArray = errorsHashToArray(errors);\n    // [\n    //   {\n    //     title: \"Invalid Document\",\n    //     detail: \"Invalid attributes on saving this record\",\n    //     source: { pointer: \"/data\" }\n    //   },\n    //   {\n    //     title: \"Invalid Attribute\",\n    //     detail: \"Must be present\",\n    //     source: { pointer: \"/data/attributes/name\" }\n    //   },\n    //   {\n    //     title: \"Invalid Attribute\",\n    //     detail: \"Must be present\",\n    //     source: { pointer: \"/data/attributes/age\" }\n    //   },\n    //   {\n    //     title: \"Invalid Attribute\",\n    //     detail: \"Must be a number\",\n    //     source: { pointer: \"/data/attributes/age\" }\n    //   }\n    // ]\n    ```\n    @method errorsHashToArray\n    @for @ember-data/adapter/error\n    @static\n    @public\n    @param {Object} errors hash with errors as properties\n    @return {Array} array of errors in JSON-API format\n  */\n  function errorsHashToArray(errors) {\n    var out = [];\n    if (utils.isPresent(errors)) {\n      Object.keys(errors).forEach(key => {\n        var messages = EmberArray.makeArray(errors[key]);\n        for (var i = 0; i < messages.length; i++) {\n          var title = 'Invalid Attribute';\n          var pointer = `/data/attributes/${key}`;\n          if (key === PRIMARY_ATTRIBUTE_KEY) {\n            title = 'Invalid Document';\n            pointer = `/data`;\n          }\n          out.push({\n            title: title,\n            detail: messages[i],\n            source: {\n              pointer: pointer\n            }\n          });\n        }\n      });\n    }\n    return out;\n  }\n\n  /**\n    Convert an array of errors in JSON-API format into an object.\n\n    ```javascript\n    import DS from 'ember-data';\n\n    const { errorsArrayToHash } = DS;\n\n    let errorsArray = [\n      {\n        title: 'Invalid Attribute',\n        detail: 'Must be present',\n        source: { pointer: '/data/attributes/name' }\n      },\n      {\n        title: 'Invalid Attribute',\n        detail: 'Must be present',\n        source: { pointer: '/data/attributes/age' }\n      },\n      {\n        title: 'Invalid Attribute',\n        detail: 'Must be a number',\n        source: { pointer: '/data/attributes/age' }\n      }\n    ];\n\n    let errors = errorsArrayToHash(errorsArray);\n    // {\n    //   \"name\": [\"Must be present\"],\n    //   \"age\":  [\"Must be present\", \"must be a number\"]\n    // }\n    ```\n\n    @method errorsArrayToHash\n    @static\n    @for @ember-data/adapter/error\n    @public\n    @param {Array} errors array of errors in JSON-API format\n    @return {Object}\n  */\n  function errorsArrayToHash(errors) {\n    var out = {};\n    if (utils.isPresent(errors)) {\n      errors.forEach(error => {\n        if (error.source && error.source.pointer) {\n          var key = error.source.pointer.match(SOURCE_POINTER_REGEXP);\n          if (key) {\n            key = key[2];\n          } else if (error.source.pointer.search(SOURCE_POINTER_PRIMARY_REGEXP) !== -1) {\n            key = PRIMARY_ATTRIBUTE_KEY;\n          }\n          if (key) {\n            out[key] = out[key] || [];\n            out[key].push(error.detail || error.title);\n          }\n        }\n      });\n    }\n    return out;\n  }\n\n  var RequestStateEnum = /*#__PURE__*/function (RequestStateEnum) {\n    RequestStateEnum[\"pending\"] = \"pending\";\n    RequestStateEnum[\"fulfilled\"] = \"fulfilled\";\n    RequestStateEnum[\"rejected\"] = \"rejected\";\n    return RequestStateEnum;\n  }({});\n\n  var Touching = symbol('touching');\n  var RequestPromise = symbol('promise');\n  function hasRecordIdentifier(op) {\n    return 'recordIdentifier' in op;\n  }\n  class RequestCache {\n    constructor() {\n      this._pending = Object.create(null);\n      this._done = Object.create(null);\n      this._subscriptions = Object.create(null);\n    }\n    enqueue(promise, queryRequest) {\n      var query = queryRequest.data[0];\n      if (hasRecordIdentifier(query)) {\n        var _lid = query.recordIdentifier.lid;\n        var type = query.op === 'saveRecord' ? 'mutation' : 'query';\n        if (!this._pending[_lid]) {\n          this._pending[_lid] = [];\n        }\n        var request = {\n          state: RequestStateEnum.pending,\n          request: queryRequest,\n          type\n        };\n        addSymbol(request, Touching, [query.recordIdentifier]);\n        addSymbol(request, RequestPromise, promise);\n        this._pending[_lid].push(request);\n        this._triggerSubscriptions(request);\n        promise.then(result => {\n          this._dequeue(_lid, request);\n          var finalizedRequest = {\n            state: RequestStateEnum.fulfilled,\n            request: queryRequest,\n            type,\n            response: {\n              data: result\n            }\n          };\n          addSymbol(finalizedRequest, Touching, request[Touching]);\n          this._addDone(finalizedRequest);\n          this._triggerSubscriptions(finalizedRequest);\n        }, error => {\n          this._dequeue(_lid, request);\n          var finalizedRequest = {\n            state: RequestStateEnum.rejected,\n            request: queryRequest,\n            type,\n            response: {\n              data: error && error.error\n            }\n          };\n          addSymbol(finalizedRequest, Touching, request[Touching]);\n          this._addDone(finalizedRequest);\n          this._triggerSubscriptions(finalizedRequest);\n        });\n      }\n    }\n    _triggerSubscriptions(req) {\n      req[Touching].forEach(identifier => {\n        if (this._subscriptions[identifier.lid]) {\n          this._subscriptions[identifier.lid].forEach(callback => callback(req));\n        }\n      });\n    }\n    _dequeue(lid, request) {\n      this._pending[lid] = this._pending[lid].filter(req => req !== request);\n    }\n    _addDone(request) {\n      request[Touching].forEach(identifier => {\n        if (!this._done[identifier.lid]) {\n          this._done[identifier.lid] = [];\n        }\n        // TODO add support for multiple\n        var requestDataOp = request.request.data[0].op;\n        this._done[identifier.lid] = this._done[identifier.lid].filter(req => {\n          // TODO add support for multiple\n          var data;\n          if (req.request.data instanceof Array) {\n            data = req.request.data[0];\n          } else {\n            data = req.request.data;\n          }\n          return data.op !== requestDataOp;\n        });\n        this._done[identifier.lid].push(request);\n      });\n    }\n    subscribeForRecord(identifier, callback) {\n      if (!this._subscriptions[identifier.lid]) {\n        this._subscriptions[identifier.lid] = [];\n      }\n      this._subscriptions[identifier.lid].push(callback);\n    }\n    getPendingRequestsForRecord(identifier) {\n      if (this._pending[identifier.lid]) {\n        return this._pending[identifier.lid];\n      }\n      return [];\n    }\n    getLastRequestForRecord(identifier) {\n      var requests = this._done[identifier.lid];\n      if (requests) {\n        return requests[requests.length - 1];\n      }\n      return null;\n    }\n  }\n\n  /*\n   * Returns the RecordData instance associated with a given\n   * Model or InternalModel.\n   *\n   * Intentionally \"loose\" to allow anything with an _internalModel\n   * property until InternalModel is eliminated.\n   *\n   * Intentionally not typed to `InternalModel` due to circular dependency\n   *  which that creates.\n   *\n   * Overtime, this should shift to a \"weakmap\" based lookup in the\n   *  \"Ember.getOwner(obj)\" style.\n   */\n\n  var IdentifierCache = new WeakMap();\n  function setRecordDataFor(identifier, recordData) {\n    (!(!IdentifierCache.has(identifier)) && debug.assert(`Illegal set of identifier`, !IdentifierCache.has(identifier)));\n    IdentifierCache.set(identifier, recordData);\n  }\n  function removeRecordDataFor(identifier) {\n    IdentifierCache.delete(identifier);\n  }\n  function recordDataFor(instance) {\n    if (IdentifierCache.has(instance)) {\n      return IdentifierCache.get(instance);\n    }\n    var internalModel = instance._internalModel || instance.internalModel || instance;\n    return internalModel._recordData || null;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  function schemaIsDSModel(schema) {\n    return schema.isModel === true;\n  }\n  /**\n    Snapshot is not directly instantiable.\n    Instances are provided to a consuming application's\n    adapters and serializers for certain requests.  \n    \n    @class Snapshot\n    @public\n  */\n  class Snapshot {\n    /**\n     * @method constructor\n     * @constructor\n     * @private\n     * @param options\n     * @param identifier\n     * @param _store\n     */\n    constructor(options, identifier, _store) {\n      this.__attributes = null;\n      this._belongsToRelationships = Object.create(null);\n      this._belongsToIds = Object.create(null);\n      this._hasManyRelationships = Object.create(null);\n      this._hasManyIds = Object.create(null);\n      this._internalModel = void 0;\n      this._changedAttributes = void 0;\n      this.identifier = void 0;\n      this.modelName = void 0;\n      this.id = void 0;\n      this.include = void 0;\n      this.adapterOptions = void 0;\n      this._store = _store;\n      var internalModel = this._internalModel = _store._internalModelForResource(identifier);\n      this.modelName = identifier.type;\n      {\n        // TODO add public docs once this FF is on\n        this.identifier = identifier;\n      }\n      /*\n        If the internalModel does not yet have a record, then we are\n        likely a snapshot being provided to a find request, so we\n        populate __attributes lazily. Else, to preserve the \"moment\n        in time\" in which a snapshot is created, we greedily grab\n        the values.\n       */\n      if (internalModel.hasRecord) {\n        this._attributes;\n      }\n\n      /**\n       The id of the snapshot's underlying record\n        Example\n        ```javascript\n       // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });\n       postSnapshot.id; // => '1'\n       ```\n        @property id\n       @type {String}\n       @public\n       */\n      this.id = identifier.id;\n\n      /**\n       A hash of adapter options\n       @property adapterOptions\n       @type {Object}\n       @public\n       */\n      this.adapterOptions = options.adapterOptions;\n\n      /**\n       If `include` was passed to the options hash for the request, the value\n       would be available here.\n        @property include\n       @type {String|Array}\n       @public\n       */\n      this.include = options.include;\n\n      /**\n       The name of the type of the underlying record for this snapshot, as a string.\n        @property modelName\n       @type {String}\n       @public\n       */\n      this.modelName = internalModel.modelName;\n      if (internalModel.hasRecord) {\n        this._changedAttributes = recordDataFor(internalModel).changedAttributes();\n      }\n    }\n\n    /**\n     The underlying record for this snapshot. Can be used to access methods and\n     properties defined on the record.\n      Example\n      ```javascript\n     let json = snapshot.record.toJSON();\n     ```\n      @property record\n     @type {Model}\n     @public\n     */\n    get record() {\n      return this._internalModel.getRecord();\n    }\n    get _attributes() {\n      if (this.__attributes !== null) {\n        return this.__attributes;\n      }\n      var record = this.record;\n      var attributes = this.__attributes = Object.create(null);\n      var attrs;\n      {\n        attrs = Object.keys(this._store._attributesDefinitionFor(this.modelName, this.identifier));\n      }\n      {\n        attrs.forEach(keyName => {\n          if (schemaIsDSModel(this.type)) {\n            // if the schema is for a DSModel then the instance is too\n            attributes[keyName] = object.get(record, keyName);\n          } else {\n            attributes[keyName] = recordDataFor(this._internalModel).getAttr(keyName);\n          }\n        });\n      }\n      return attributes;\n    }\n\n    /**\n     The type of the underlying record for this snapshot, as a Model.\n      @property type\n      @public\n     @type {Model}\n     */\n    get type() {\n      return this._internalModel.modelClass;\n    }\n    get isNew() {\n      return this._internalModel.isNew();\n    }\n\n    /**\n     Returns the value of an attribute.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });\n     postSnapshot.attr('author'); // => 'Tomster'\n     postSnapshot.attr('title'); // => 'Ember.js rocks'\n     ```\n      Note: Values are loaded eagerly and cached when the snapshot is created.\n      @method attr\n     @param {String} keyName\n     @return {Object} The attribute value or undefined\n     @public\n     */\n    attr(keyName) {\n      if (keyName in this._attributes) {\n        return this._attributes[keyName];\n      }\n      (debug.assert(`Model '${this.identifier}' has no attribute named '${keyName}' defined.`, false));\n    }\n\n    /**\n     Returns all attributes and their corresponding values.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });\n     postSnapshot.attributes(); // => { author: 'Tomster', title: 'Ember.js rocks' }\n     ```\n      @method attributes\n     @return {Object} All attributes of the current snapshot\n     @public\n     */\n    attributes() {\n      return polyfills.assign({}, this._attributes);\n    }\n\n    /**\n     Returns all changed attributes and their old and new values.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });\n     postModel.set('title', 'Ember.js rocks!');\n     postSnapshot.changedAttributes(); // => { title: ['Ember.js rocks', 'Ember.js rocks!'] }\n     ```\n      @method changedAttributes\n     @return {Object} All changed attributes of the current snapshot\n     @public\n     */\n    changedAttributes() {\n      var changedAttributes = Object.create(null);\n      if (!this._changedAttributes) {\n        return changedAttributes;\n      }\n      var changedAttributeKeys = Object.keys(this._changedAttributes);\n      for (var i = 0, length = changedAttributeKeys.length; i < length; i++) {\n        var _key = changedAttributeKeys[i];\n        changedAttributes[_key] = this._changedAttributes[_key].slice();\n      }\n      return changedAttributes;\n    }\n\n    /**\n     Returns the current value of a belongsTo relationship.\n      `belongsTo` takes an optional hash of options as a second parameter,\n     currently supported options are:\n      - `id`: set to `true` if you only want the ID of the related record to be\n     returned.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, title: 'Hello World' });\n     // store.createRecord('comment', { body: 'Lorem ipsum', post: post });\n     commentSnapshot.belongsTo('post'); // => Snapshot\n     commentSnapshot.belongsTo('post', { id: true }); // => '1'\n      // store.push('comment', { id: 1, body: 'Lorem ipsum' });\n     commentSnapshot.belongsTo('post'); // => undefined\n     ```\n      Calling `belongsTo` will return a new Snapshot as long as there's any known\n     data for the relationship available, such as an ID. If the relationship is\n     known but unset, `belongsTo` will return `null`. If the contents of the\n     relationship is unknown `belongsTo` will return `undefined`.\n      Note: Relationships are loaded lazily and cached upon first access.\n      @method belongsTo\n     @param {String} keyName\n     @param {Object} [options]\n     @public\n     @return {(Snapshot|String|null|undefined)} A snapshot or ID of a known\n     relationship or null if the relationship is known but unset. undefined\n     will be returned if the contents of the relationship is unknown.\n     */\n    belongsTo(keyName, options) {\n      var returnModeIsId = !!(options && options.id);\n      var inverseInternalModel;\n      var result;\n      var store = this._internalModel.store;\n      if (returnModeIsId === true && keyName in this._belongsToIds) {\n        return this._belongsToIds[keyName];\n      }\n      if (returnModeIsId === false && keyName in this._belongsToRelationships) {\n        return this._belongsToRelationships[keyName];\n      }\n      var relationshipMeta = store._relationshipMetaFor(this.modelName, null, keyName);\n      (!(relationshipMeta && relationshipMeta.kind === 'belongsTo') && debug.assert(`Model '${this.identifier}' has no belongsTo relationship named '${keyName}' defined.`, relationshipMeta && relationshipMeta.kind === 'belongsTo')); // TODO @runspired it seems this code branch would not work with CUSTOM_MODEL_CLASSes\n      var graphFor = require('@ember-data/record-data/-private').graphFor;\n      var {\n        identifier\n      } = this ;\n      var relationship = graphFor(this._store._storeWrapper).get(identifier, keyName);\n      (!(relationship) && debug.assert(`You looked up the ${keyName} belongsTo relationship for { type: ${identifier.type}, id: ${identifier.id}, lid: ${identifier.lid} but no such relationship was found.`, relationship));\n      (!(relationship.definition.kind === 'belongsTo') && debug.assert(`You looked up the ${keyName} belongsTo relationship for { type: ${identifier.type}, id: ${identifier.id}, lid: ${identifier.lid} but that relationship is a hasMany.`, relationship.definition.kind === 'belongsTo'));\n      var value = relationship.getData();\n      var data = value && value.data;\n      inverseInternalModel = data ? store._internalModelForResource(data) : null;\n      if (value && value.data !== undefined) {\n        if (inverseInternalModel && !inverseInternalModel.isDeleted()) {\n          if (returnModeIsId) {\n            result = inverseInternalModel.id;\n          } else {\n            result = inverseInternalModel.createSnapshot();\n          }\n        } else {\n          result = null;\n        }\n      }\n      if (returnModeIsId) {\n        this._belongsToIds[keyName] = result;\n      } else {\n        this._belongsToRelationships[keyName] = result;\n      }\n      return result;\n    }\n\n    /**\n     Returns the current value of a hasMany relationship.\n      `hasMany` takes an optional hash of options as a second parameter,\n     currently supported options are:\n      - `ids`: set to `true` if you only want the IDs of the related records to be\n     returned.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, title: 'Hello World', comments: [2, 3] });\n     postSnapshot.hasMany('comments'); // => [Snapshot, Snapshot]\n     postSnapshot.hasMany('comments', { ids: true }); // => ['2', '3']\n      // store.push('post', { id: 1, title: 'Hello World' });\n     postSnapshot.hasMany('comments'); // => undefined\n     ```\n      Note: Relationships are loaded lazily and cached upon first access.\n      @method hasMany\n     @param {String} keyName\n     @param {Object} [options]\n     @public\n     @return {(Array|undefined)} An array of snapshots or IDs of a known\n     relationship or an empty array if the relationship is known but unset.\n     undefined will be returned if the contents of the relationship is unknown.\n     */\n    hasMany(keyName, options) {\n      var returnModeIsIds = !!(options && options.ids);\n      var results;\n      var cachedIds = this._hasManyIds[keyName];\n      var cachedSnapshots = this._hasManyRelationships[keyName];\n      if (returnModeIsIds === true && keyName in this._hasManyIds) {\n        return cachedIds;\n      }\n      if (returnModeIsIds === false && keyName in this._hasManyRelationships) {\n        return cachedSnapshots;\n      }\n      var store = this._internalModel.store;\n      var relationshipMeta = store._relationshipMetaFor(this.modelName, null, keyName);\n      (!(relationshipMeta && relationshipMeta.kind === 'hasMany') && debug.assert(`Model '${this.identifier}' has no hasMany relationship named '${keyName}' defined.`, relationshipMeta && relationshipMeta.kind === 'hasMany')); // TODO @runspired it seems this code branch would not work with CUSTOM_MODEL_CLASSes\n      var graphFor = require('@ember-data/record-data/-private').graphFor;\n      var {\n        identifier\n      } = this ;\n      var relationship = graphFor(this._store._storeWrapper).get(identifier, keyName);\n      (!(relationship) && debug.assert(`You looked up the ${keyName} hasMany relationship for { type: ${identifier.type}, id: ${identifier.id}, lid: ${identifier.lid} but no such relationship was found.`, relationship));\n      (!(relationship.definition.kind === 'hasMany') && debug.assert(`You looked up the ${keyName} hasMany relationship for { type: ${identifier.type}, id: ${identifier.id}, lid: ${identifier.lid} but that relationship is a belongsTo.`, relationship.definition.kind === 'hasMany'));\n      var value = relationship.getData();\n      if (value.data) {\n        results = [];\n        value.data.forEach(member => {\n          var internalModel = store._internalModelForResource(member);\n          if (!internalModel.isDeleted()) {\n            if (returnModeIsIds) {\n              results.push(member.id);\n            } else {\n              results.push(internalModel.createSnapshot());\n            }\n          }\n        });\n      }\n\n      // we assign even if `undefined` so that we don't reprocess the relationship\n      // on next access. This works with the `keyName in` checks above.\n      if (returnModeIsIds) {\n        this._hasManyIds[keyName] = results;\n      } else {\n        this._hasManyRelationships[keyName] = results;\n      }\n      return results;\n    }\n\n    /**\n      Iterates through all the attributes of the model, calling the passed\n      function on each attribute.\n       Example\n       ```javascript\n      snapshot.eachAttribute(function(name, meta) {\n        // ...\n      });\n      ```\n       @method eachAttribute\n      @param {Function} callback the callback to execute\n      @param {Object} [binding] the value to which the callback's `this` should be bound\n      @public\n    */\n    eachAttribute(callback, binding) {\n      {\n        var attrDefs = this._store._attributesDefinitionFor(this.modelName, this.identifier);\n        Object.keys(attrDefs).forEach(key => {\n          callback.call(binding, key, attrDefs[key]);\n        });\n      }\n    }\n\n    /**\n      Iterates through all the relationships of the model, calling the passed\n      function on each relationship.\n       Example\n       ```javascript\n      snapshot.eachRelationship(function(name, relationship) {\n        // ...\n      });\n      ```\n       @method eachRelationship\n      @param {Function} callback the callback to execute\n      @param {Object} [binding] the value to which the callback's `this` should be bound\n      @public\n    */\n    eachRelationship(callback, binding) {\n      {\n        var relationshipDefs = this._store._relationshipsDefinitionFor(this.modelName, this.identifier);\n        Object.keys(relationshipDefs).forEach(key => {\n          callback.call(binding, key, relationshipDefs[key]);\n        });\n      }\n    }\n\n    /**\n      Serializes the snapshot using the serializer for the model.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n       export default Adapter.extend({\n        createRecord(store, type, snapshot) {\n          let data = snapshot.serialize({ includeId: true });\n          let url = `/${type.modelName}`;\n           return fetch(url, {\n            method: 'POST',\n            body: data,\n          }).then((response) => response.json())\n        }\n      });\n      ```\n       @method serialize\n      @param {Object} options\n      @return {Object} an object whose values are primitive JSON values only\n      @public\n     */\n    serialize(options) {\n      return this._store.serializerFor(this.modelName).serialize(this, options);\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  function _bind(fn, ...args) {\n    return function () {\n      return fn.apply(undefined, args);\n    };\n  }\n  function _guard(promise, test) {\n    var guarded = promise.finally(() => {\n      if (!test()) {\n        guarded._subscribers.length = 0;\n      }\n    });\n    return guarded;\n  }\n  function _objectIsAlive(object$1) {\n    return !(object.get(object$1, 'isDestroyed') || object.get(object$1, 'isDestroying'));\n  }\n  function guardDestroyedStore(promise, store, label) {\n    var token;\n    {\n      token = store._trackAsyncRequestStart(label);\n    }\n    var wrapperPromise = RSVP.resolve(promise, label).then(v => promise);\n    return _guard(wrapperPromise, () => {\n      {\n        store._trackAsyncRequestEnd(token);\n      }\n      return _objectIsAlive(store);\n    });\n  }\n\n  /**\n    This is a helper method that validates a JSON API top-level document\n\n    The format of a document is described here:\n    http://jsonapi.org/format/#document-top-level\n\n    @internal\n  */\n  function validateDocumentStructure(doc) {\n    var errors = [];\n    if (!doc || typeof doc !== 'object') {\n      errors.push('Top level of a JSON API document must be an object');\n    } else {\n      if (!('data' in doc) && !('errors' in doc) && !('meta' in doc)) {\n        errors.push('One or more of the following keys must be present: \"data\", \"errors\", \"meta\".');\n      } else {\n        if ('data' in doc && 'errors' in doc) {\n          errors.push('Top level keys \"errors\" and \"data\" cannot both be present in a JSON API document');\n        }\n      }\n      if ('data' in doc) {\n        if (!(doc.data === null || Array.isArray(doc.data) || typeof doc.data === 'object')) {\n          errors.push('data must be null, an object, or an array');\n        }\n      }\n      if ('meta' in doc) {\n        if (typeof doc.meta !== 'object') {\n          errors.push('meta must be an object');\n        }\n      }\n      if ('errors' in doc) {\n        if (!Array.isArray(doc.errors)) {\n          errors.push('errors must be an array');\n        }\n      }\n      if ('links' in doc) {\n        if (typeof doc.links !== 'object') {\n          errors.push('links must be an object');\n        }\n      }\n      if ('jsonapi' in doc) {\n        if (typeof doc.jsonapi !== 'object') {\n          errors.push('jsonapi must be an object');\n        }\n      }\n      if ('included' in doc) {\n        if (typeof doc.included !== 'object') {\n          errors.push('included must be an array');\n        }\n      }\n    }\n    return errors;\n  }\n  function normalizeResponseHelper(serializer, store, modelClass, payload, id, requestType) {\n    var normalizedResponse = serializer.normalizeResponse(store, modelClass, payload, id, requestType);\n    var validationErrors = [];\n    {\n      validationErrors = validateDocumentStructure(normalizedResponse);\n    }\n    (!(validationErrors.length === 0) && debug.assert(`normalizeResponse must return a valid JSON API document:\\n\\t* ${validationErrors.join('\\n\\t* ')}`, validationErrors.length === 0));\n    return normalizedResponse;\n  }\n\n  /**\n   * @module @ember-data/store\n   */\n  function payloadIsNotBlank$1(adapterPayload) {\n    if (Array.isArray(adapterPayload)) {\n      return true;\n    } else {\n      return Object.keys(adapterPayload || {}).length !== 0;\n    }\n  }\n  var SaveOp = symbol('SaveOp');\n  /**\n   * Manages the state of network requests initiated by the store\n   *\n   * @class FetchManager\n   * @private\n   */\n  class FetchManager {\n    constructor(_store) {\n      this.isDestroyed = void 0;\n      this.requestCache = void 0;\n      // saves which are pending in the runloop\n      this._pendingSave = void 0;\n      // fetches pending in the runloop, waiting to be coalesced\n      this._pendingFetch = void 0;\n      this._store = _store;\n      // used to keep track of all the find requests that need to be coalesced\n      this._pendingFetch = new Map();\n      this._pendingSave = [];\n      this.requestCache = new RequestCache();\n    }\n\n    /**\n      This method is called by `record.save`, and gets passed a\n      resolver for the promise that `record.save` returns.\n       It schedules saving to happen at the end of the run loop.\n       @internal\n    */\n    scheduleSave(identifier, options = {}) {\n      var promiseLabel = 'DS: Model#save ' + this;\n      var resolver = RSVP__default[\"default\"].defer(promiseLabel);\n      var query = {\n        op: 'saveRecord',\n        recordIdentifier: identifier,\n        options\n      };\n      var queryRequest = {\n        data: [query]\n      };\n      var snapshot = new Snapshot(options, identifier, this._store);\n      var pendingSaveItem = {\n        snapshot: snapshot,\n        resolver: resolver,\n        identifier,\n        options,\n        queryRequest\n      };\n      this._pendingSave.push(pendingSaveItem);\n      runloop._backburner.scheduleOnce('actions', this, this._flushPendingSaves);\n      this.requestCache.enqueue(resolver.promise, pendingSaveItem.queryRequest);\n      return resolver.promise;\n    }\n    _flushPendingSave(pending) {\n      var {\n        snapshot,\n        resolver,\n        identifier,\n        options\n      } = pending;\n      var adapter = this._store.adapterFor(identifier.type);\n      var operation = options[SaveOp];\n\n      // TODO We have to cast due to our reliance on this private property\n      // this will be refactored away once we change our pending API to be identifier based\n      var internalModel = snapshot._internalModel;\n      var modelName = snapshot.modelName;\n      var store = this._store;\n      var modelClass = store.modelFor(modelName);\n      (!(adapter) && debug.assert(`You tried to update a record but you have no adapter (for ${modelName})`, adapter));\n      (!(typeof adapter[operation] === 'function') && debug.assert(`You tried to update a record but your adapter (for ${modelName}) does not implement '${operation}'`, typeof adapter[operation] === 'function'));\n      var promise = RSVP.Promise.resolve().then(() => adapter[operation](store, modelClass, snapshot));\n      var serializer = store.serializerFor(modelName);\n      var label = `DS: Extract and notify about ${operation} completion of ${internalModel}`;\n      (!(promise !== undefined) && debug.assert(`Your adapter's '${operation}' method must return a value, but it returned 'undefined'`, promise !== undefined));\n      promise = guardDestroyedStore(promise, store, label);\n      promise = _guard(promise, _bind(_objectIsAlive, internalModel));\n      promise = promise.then(adapterPayload => {\n        if (adapterPayload) {\n          return normalizeResponseHelper(serializer, store, modelClass, adapterPayload, snapshot.id, operation);\n        }\n      }, function (error) {\n        if (error && error.isAdapterError === true && error.code === 'InvalidError') {\n          var parsedErrors = error.errors;\n          if (typeof serializer.extractErrors === 'function') {\n            parsedErrors = serializer.extractErrors(store, modelClass, error, snapshot.id);\n          } else {\n            parsedErrors = errorsArrayToHash(error.errors);\n          }\n          throw {\n            error,\n            parsedErrors\n          };\n        } else {\n          throw {\n            error\n          };\n        }\n      }, label);\n      resolver.resolve(promise);\n    }\n\n    /**\n      This method is called at the end of the run loop, and\n      flushes any records passed into `scheduleSave`\n       @method flushPendingSave\n      @internal\n    */\n    _flushPendingSaves() {\n      var pending = this._pendingSave.slice();\n      this._pendingSave = [];\n      for (var i = 0, j = pending.length; i < j; i++) {\n        var pendingItem = pending[i];\n        this._flushPendingSave(pendingItem);\n      }\n    }\n    scheduleFetch(identifier, options, shouldTrace) {\n      // TODO Probably the store should pass in the query object\n\n      var query = {\n        op: 'findRecord',\n        recordIdentifier: identifier,\n        options\n      };\n      var queryRequest = {\n        data: [query]\n      };\n      var pendingFetches = this._pendingFetch.get(identifier.type);\n\n      // We already have a pending fetch for this\n      if (pendingFetches) {\n        var matchingPendingFetch = pendingFetches.filter(fetch => fetch.identifier.id === identifier.id)[0];\n        if (matchingPendingFetch) {\n          return matchingPendingFetch.resolver.promise;\n        }\n      }\n      var id = identifier.id;\n      var modelName = identifier.type;\n      var resolver = RSVP__default[\"default\"].defer(`Fetching ${modelName}' with id: ${id}`);\n      var pendingFetchItem = {\n        identifier,\n        resolver,\n        options,\n        queryRequest\n      };\n      {\n        if (shouldTrace) {\n          var trace;\n          try {\n            throw new Error(`Trace Origin for scheduled fetch for ${modelName}:${id}.`);\n          } catch (e) {\n            trace = e;\n          }\n\n          // enable folks to discover the origin of this findRecord call when\n          // debugging. Ideally we would have a tracked queue for requests with\n          // labels or local IDs that could be used to merge this trace with\n          // the trace made available when we detect an async leak\n          pendingFetchItem.trace = trace;\n        }\n      }\n      var promise = resolver.promise;\n      if (this._pendingFetch.size === 0) {\n        runloop._backburner.schedule('actions', this, this.flushAllPendingFetches);\n      }\n      var fetches = this._pendingFetch;\n      if (!fetches.has(modelName)) {\n        fetches.set(modelName, []);\n      }\n      fetches.get(modelName).push(pendingFetchItem);\n      this.requestCache.enqueue(promise, pendingFetchItem.queryRequest);\n      return promise;\n    }\n    _fetchRecord(fetchItem) {\n      var identifier = fetchItem.identifier;\n      var modelName = identifier.type;\n      var adapter = this._store.adapterFor(modelName);\n      (!(adapter) && debug.assert(`You tried to find a record but you have no adapter (for ${modelName})`, adapter));\n      (!(typeof adapter.findRecord === 'function') && debug.assert(`You tried to find a record but your adapter (for ${modelName}) does not implement 'findRecord'`, typeof adapter.findRecord === 'function'));\n      var snapshot = new Snapshot(fetchItem.options, identifier, this._store);\n      var klass = this._store.modelFor(identifier.type);\n      var promise = RSVP.Promise.resolve().then(() => {\n        return adapter.findRecord(this._store, klass, identifier.id, snapshot);\n      });\n      var id = identifier.id;\n      var label = `DS: Handle Adapter#findRecord of '${modelName}' with id: '${id}'`;\n      promise = guardDestroyedStore(promise, this._store, label);\n      promise = promise.then(adapterPayload => {\n        (!(!!payloadIsNotBlank$1(adapterPayload)) && debug.assert(`You made a 'findRecord' request for a '${modelName}' with id '${id}', but the adapter's response did not have any data`, !!payloadIsNotBlank$1(adapterPayload)));\n        var serializer = this._store.serializerFor(modelName);\n        var payload = normalizeResponseHelper(serializer, this._store, klass, adapterPayload, id, 'findRecord');\n        (!(!Array.isArray(payload.data)) && debug.assert(`Ember Data expected the primary data returned from a 'findRecord' response to be an object but instead it found an array.`, !Array.isArray(payload.data)));\n        (!('data' in payload && payload.data !== null && typeof payload.data === 'object') && debug.assert(`The 'findRecord' request for ${modelName}:${id} resolved indicating success but contained no primary data. To indicate a 404 not found you should either reject the promise returned by the adapter's findRecord method or throw a NotFoundError.`, 'data' in payload && payload.data !== null && typeof payload.data === 'object'));\n        (debug.warn(`You requested a record of type '${modelName}' with id '${id}' but the adapter returned a payload with primary data having an id of '${payload.data.id}'. Use 'store.findRecord()' when the requested id is the same as the one returned by the adapter. In other cases use 'store.queryRecord()' instead.`, coerceId(payload.data.id) === coerceId(id), {\n          id: 'ds.store.findRecord.id-mismatch'\n        }));\n        return payload;\n      }, error => {\n        throw error;\n      }, `DS: Extract payload of '${modelName}'`);\n      fetchItem.resolver.resolve(promise);\n    }\n\n    // TODO should probably refactor expectedSnapshots to be identifiers\n    handleFoundRecords(seeking, coalescedPayload, expectedSnapshots) {\n      // resolve found records\n      var found = Object.create(null);\n      var payloads = coalescedPayload.data;\n      var coalescedIncluded = coalescedPayload.included || [];\n      for (var i = 0, l = payloads.length; i < l; i++) {\n        var payload = payloads[i];\n        var pair = seeking[payload.id];\n        found[payload.id] = payload;\n        var included = coalescedIncluded.concat(payloads);\n\n        // TODO remove original data from included\n        if (pair) {\n          var resolver = pair.resolver;\n          resolver.resolve({\n            data: payload,\n            included\n          });\n        }\n      }\n\n      // reject missing records\n\n      // TODO NOW clean this up to refer to payloads\n      var missingSnapshots = [];\n      for (var _i = 0, _l = expectedSnapshots.length; _i < _l; _i++) {\n        var snapshot = expectedSnapshots[_i];\n        assertIsString(snapshot.id);\n\n        // We know id is a string because you can't fetch\n        // without one.\n        if (!found[snapshot.id]) {\n          missingSnapshots.push(snapshot);\n        }\n      }\n      if (missingSnapshots.length) {\n        (debug.warn('Ember Data expected to find records with the following ids in the adapter response but they were missing: [ \"' + missingSnapshots.map(r => r.id).join('\", \"') + '\" ]', false, {\n          id: 'ds.store.missing-records-from-adapter'\n        }));\n        this.rejectFetchedItems(seeking, missingSnapshots);\n      }\n    }\n    rejectFetchedItems(seeking, snapshots, error) {\n      for (var i = 0, l = snapshots.length; i < l; i++) {\n        var snapshot = snapshots[i];\n        assertIsString(snapshot.id);\n        // TODO refactor to identifier.lid to avoid this cast to string\n        //  we can do this case because you can only fetch an identifier\n        //  that has an ID\n        var pair = seeking[snapshot.id];\n        if (pair) {\n          pair.resolver.reject(error || new Error(`Expected: '<${snapshot.modelName}:${snapshot.id}>' to be present in the adapter provided payload, but it was not found.`));\n        }\n      }\n    }\n    _findMany(adapter, store, modelName, snapshots, identifiers, optionsMap) {\n      var modelClass = store.modelFor(modelName); // `adapter.findMany` gets the modelClass still\n      var ids = snapshots.map(s => s.id);\n      var promise = adapter.findMany(store, modelClass, ids, EmberArray.A(snapshots));\n      var label = `DS: Handle Adapter#findMany of '${modelName}'`;\n      if (promise === undefined) {\n        throw new Error('adapter.findMany returned undefined, this was very likely a mistake');\n      }\n      promise = guardDestroyedStore(promise, store, label);\n      return promise.then(adapterPayload => {\n        (!(!!payloadIsNotBlank$1(adapterPayload)) && debug.assert(`You made a 'findMany' request for '${modelName}' records with ids '[${ids}]', but the adapter's response did not have any data`, !!payloadIsNotBlank$1(adapterPayload)));\n        var serializer = store.serializerFor(modelName);\n        var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'findMany');\n        return payload;\n      }, null, `DS: Extract payload of ${modelName}`);\n    }\n    _processCoalescedGroup(seeking, group, adapter, optionsMap, modelName) {\n      //TODO check what happened with identifiers here\n      var totalInGroup = group.length;\n      var ids = new Array(totalInGroup);\n      var groupedSnapshots = new Array(totalInGroup);\n      for (var j = 0; j < totalInGroup; j++) {\n        groupedSnapshots[j] = group[j];\n        ids[j] = groupedSnapshots[j].id;\n      }\n      var store = this._store;\n      if (totalInGroup > 1) {\n        this._findMany(adapter, store, modelName, group, groupedSnapshots, optionsMap).then(payloads => {\n          this.handleFoundRecords(seeking, payloads, groupedSnapshots);\n        }).catch(error => {\n          this.rejectFetchedItems(seeking, groupedSnapshots, error);\n        });\n      } else if (ids.length === 1) {\n        var pair = seeking[groupedSnapshots[0].id];\n        this._fetchRecord(pair);\n      } else {\n        (debug.assert(\"You cannot return an empty array from adapter's method groupRecordsForFindMany\", false));\n      }\n    }\n    _flushPendingFetchForType(pendingFetchItems, modelName) {\n      var adapter = this._store.adapterFor(modelName);\n      var shouldCoalesce = !!adapter.findMany && adapter.coalesceFindRequests;\n      var totalItems = pendingFetchItems.length;\n      var identifiers = new Array(totalItems);\n      var seeking = Object.create(null);\n      var optionsMap = new WeakMap();\n      for (var i = 0; i < totalItems; i++) {\n        var pendingItem = pendingFetchItems[i];\n        var identifier = pendingItem.identifier;\n        identifiers[i] = identifier;\n        optionsMap.set(identifier, pendingItem.options);\n        seeking[identifier.id] = pendingItem;\n      }\n      if (shouldCoalesce) {\n        // TODO: Improve records => snapshots => records => snapshots\n        //\n        // We want to provide records to all store methods and snapshots to all\n        // adapter methods. To make sure we're doing that we're providing an array\n        // of snapshots to adapter.groupRecordsForFindMany(), which in turn will\n        // return grouped snapshots instead of grouped records.\n        //\n        // But since the _findMany() finder is a store method we need to get the\n        // records from the grouped snapshots even though the _findMany() finder\n        // will once again convert the records to snapshots for adapter.findMany()\n        var snapshots = new Array(totalItems);\n        for (var _i2 = 0; _i2 < totalItems; _i2++) {\n          // we know options is in the map due to having just set it above\n          // but TS doesn't know so we cast it\n          var options = optionsMap.get(identifiers[_i2]);\n          snapshots[_i2] = new Snapshot(options, identifiers[_i2], this._store);\n        }\n        var groups;\n        if (adapter.groupRecordsForFindMany) {\n          groups = adapter.groupRecordsForFindMany(this, snapshots);\n        } else {\n          groups = [snapshots];\n        }\n        for (var _i3 = 0, l = groups.length; _i3 < l; _i3++) {\n          this._processCoalescedGroup(seeking, groups[_i3], adapter, optionsMap, modelName);\n        }\n      } else {\n        for (var _i4 = 0; _i4 < totalItems; _i4++) {\n          this._fetchRecord(pendingFetchItems[_i4]);\n        }\n      }\n    }\n    getPendingFetch(identifier, options) {\n      var pendingRequests = this.requestCache.getPendingRequestsForRecord(identifier).filter(req => {\n        return req.type === 'query' && isSameRequest(options, req.request.data[0].options);\n      });\n      if (pendingRequests.length > 0) {\n        return pendingRequests[0][RequestPromise];\n      }\n    }\n    flushAllPendingFetches() {\n      if (this.isDestroyed) {\n        return;\n      }\n      this._pendingFetch.forEach(this._flushPendingFetchForType, this);\n      this._pendingFetch.clear();\n    }\n    destroy() {\n      this.isDestroyed = true;\n    }\n  }\n  function assertIsString(id) {\n    {\n      if (typeof id !== 'string') {\n        throw new Error(`Cannot fetch record without an id`);\n      }\n    }\n  }\n\n  // this function helps resolve whether we have a pending request that we should use instead\n  function isSameRequest(options = {}, reqOptions = {}) {\n    return options.include === reqOptions.include;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  var INSTANCE_DEPRECATIONS;\n  var lookupDeprecations;\n  var DeprecatedEvented;\n  {\n    INSTANCE_DEPRECATIONS = new WeakMap();\n    lookupDeprecations = function lookupInstanceDrecations(instance) {\n      var deprecations = INSTANCE_DEPRECATIONS.get(instance);\n      if (!deprecations) {\n        deprecations = {};\n        INSTANCE_DEPRECATIONS.set(instance, deprecations);\n      }\n      return deprecations;\n    };\n    DeprecatedEvented = Mixin__default[\"default\"].create(Evented__default[\"default\"], {\n      /*\n       * Provides a way to call Evented without logging deprecation warnings\n       */\n      _has(name) {\n        return Evented__default[\"default\"].mixins[0].properties.has.call(this, name);\n      },\n      _on() {\n        return Evented__default[\"default\"].mixins[0].properties.on.call(this, ...arguments);\n      },\n      _deprecateEvented(eventName) {\n        var deprecations = lookupDeprecations(this);\n        var _deprecationData = this._getDeprecatedEventedInfo ? `on ${this._getDeprecatedEventedInfo()}` : '';\n        var deprecationMessage = _deprecationData ? `Called ${eventName} ${_deprecationData}` : eventName;\n        (!(deprecations[eventName]) && debug.deprecate(deprecationMessage, deprecations[eventName], {\n          id: 'ember-data:evented-api-usage',\n          until: '4.0',\n          url: 'https://deprecations.emberjs.com/ember-data/v3.x/#deprecatingrecordlifecycleeventmethods',\n          for: '@ember-data/model',\n          since: {\n            available: '3.12',\n            enabled: '3.12'\n          }\n        }));\n        deprecations[eventName] = true;\n      },\n      has(name) {\n        this._deprecateEvented(name);\n        return this._super(...arguments);\n      },\n      off(name, target, method) {\n        this._deprecateEvented(name);\n        return this._super(...arguments);\n      },\n      on(name, target, method) {\n        this._deprecateEvented(name);\n        return this._super(...arguments);\n      },\n      one(name, target, method) {\n        this._deprecateEvented(name);\n        return this._super(...arguments);\n      },\n      trigger(name) {\n        this._deprecateEvented(name);\n        return this._super(...arguments);\n      }\n    });\n  }\n  var DeprecatedEvented$1 = DeprecatedEvented  ;\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    SnapshotRecordArray is not directly instantiable.\n    Instances are provided to consuming application's\n    adapters for certain requests.  \n\n    @class SnapshotRecordArray\n    @public\n  */\n  class SnapshotRecordArray {\n    /**\n      SnapshotRecordArray is not directly instantiable.\n      Instances are provided to consuming application's\n      adapters and serializers for certain requests.  \n       @method constructor\n      @private\n      @constructor\n      @param {RecordArray} recordArray\n      @param {Object} meta\n      @param options \n     */\n    constructor(recordArray, meta, options = {}) {\n      this._snapshots = void 0;\n      this._recordArray = void 0;\n      this._type = void 0;\n      this.length = void 0;\n      this.meta = void 0;\n      this.adapterOptions = void 0;\n      this.include = void 0;\n      /**\n        An array of snapshots\n        @private\n        @property _snapshots\n        @type {Array}\n      */\n      this._snapshots = null;\n\n      /**\n        An array of records\n        @private\n        @property _recordArray\n        @type {Array}\n      */\n      this._recordArray = recordArray;\n\n      /**\n        Number of records in the array\n         Example\n         ```app/adapters/post.js\n        import JSONAPIAdapter from '@ember-data/adapter/json-api';\n         export default class PostAdapter extends JSONAPIAdapter {\n          shouldReloadAll(store, snapshotRecordArray) {\n            return !snapshotRecordArray.length;\n          }\n        });\n        ```\n         @property length\n        @public\n        @type {Number}\n      */\n      this.length = recordArray.get('length');\n      this._type = null;\n\n      /**\n        Meta objects for the record array.\n         Example\n         ```app/adapters/post.js\n        import JSONAPIAdapter from '@ember-data/adapter/json-api';\n         export default class PostAdapter extends JSONAPIAdapter {\n          shouldReloadAll(store, snapshotRecordArray) {\n            let lastRequestTime = snapshotRecordArray.meta.lastRequestTime;\n            let twentyMinutes = 20 * 60 * 1000;\n            return Date.now() > lastRequestTime + twentyMinutes;\n          }\n        });\n        ```\n         @property meta\n        @public\n        @type {Object}\n      */\n      this.meta = meta;\n\n      /**\n        A hash of adapter options passed into the store method for this request.\n         Example\n         ```app/adapters/post.js\n        import MyCustomAdapter from './custom-adapter';\n         export default class PostAdapter extends MyCustomAdapter {\n          findAll(store, type, sinceToken, snapshotRecordArray) {\n            if (snapshotRecordArray.adapterOptions.subscribe) {\n              // ...\n            }\n            // ...\n          }\n        }\n        ```\n         @property adapterOptions\n        @public\n        @type {Object}\n      */\n      this.adapterOptions = options.adapterOptions;\n\n      /**\n        The relationships to include for this request.\n         Example\n         ```app/adapters/application.js\n        import Adapter from '@ember-data/adapter';\n         export default class ApplicationAdapter extends Adapter {\n          findAll(store, type, snapshotRecordArray) {\n            let url = `/${type.modelName}?include=${encodeURIComponent(snapshotRecordArray.include)}`;\n             return fetch(url).then((response) => response.json())\n          }\n        }\n        ```\n         @property include\n        @public\n        @type {String|Array}\n      */\n      this.include = options.include;\n    }\n\n    /**\n      The type of the underlying records for the snapshots in the array, as a Model\n      @property type\n      @public\n      @type {Model}\n    */\n    get type() {\n      return this._type || (this._type = this._recordArray.get('type'));\n    }\n    /**\n      The modelName of the underlying records for the snapshots in the array, as a Model\n      @property modelName\n      @public\n      @type {Model}\n    */\n    get modelName() {\n      return this._recordArray.modelName;\n    }\n\n    /**\n      Get snapshots of the underlying record array\n       Example\n       ```app/adapters/post.js\n      import JSONAPIAdapter from '@ember-data/adapter/json-api';\n       export default class PostAdapter extends JSONAPIAdapter {\n        shouldReloadAll(store, snapshotArray) {\n          let snapshots = snapshotArray.snapshots();\n           return snapshots.any(function(ticketSnapshot) {\n            let timeDiff = moment().diff(ticketSnapshot.attr('lastAccessedAt'), 'minutes');\n            if (timeDiff > 20) {\n              return true;\n            } else {\n              return false;\n            }\n          });\n        }\n      }\n      ```\n       @method snapshots\n      @public\n      @return {Array} Array of snapshots\n    */\n    snapshots() {\n      if (this._snapshots !== null) {\n        return this._snapshots;\n      }\n      this._snapshots = this._recordArray._takeSnapshot();\n      return this._snapshots;\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  /**\n   `InternalModelMap` is a custom storage map for internalModels of a given modelName\n   used by `IdentityMap`.\n\n   It was extracted from an implicit pojo based \"internalModel map\" and preserves\n   that interface while we work towards a more official API.\n\n   @class InternalModelMap\n   @internal\n   */\n  class InternalModelMap {\n    constructor(modelName) {\n      this._idToModel = Object.create(null);\n      this._models = [];\n      this.modelName = modelName;\n    }\n    get(id) {\n      return this._idToModel[id] || null;\n    }\n    has(id) {\n      return !!this._idToModel[id];\n    }\n    get length() {\n      return this._models.length;\n    }\n    get recordIdentifiers() {\n      return this._models.map(m => m.identifier);\n    }\n    set(id, internalModel) {\n      (!(typeof id === 'string' && id.length > 0) && debug.assert(`You cannot index an internalModel by an empty id'`, typeof id === 'string' && id.length > 0));\n      (!(internalModel instanceof InternalModel) && debug.assert(`You cannot set an index for an internalModel to something other than an internalModel`, internalModel instanceof InternalModel));\n      (!(this.contains(internalModel)) && debug.assert(`You cannot set an index for an internalModel that is not in the InternalModelMap`, this.contains(internalModel)));\n      (!(!this.has(id) || this.get(id) === internalModel) && debug.assert(`You cannot update the id index of an InternalModel once set. Attempted to update ${id}.`, !this.has(id) || this.get(id) === internalModel));\n      this._idToModel[id] = internalModel;\n    }\n    add(internalModel, id) {\n      (!(!this.contains(internalModel)) && debug.assert(`You cannot re-add an already present InternalModel to the InternalModelMap.`, !this.contains(internalModel)));\n      if (id) {\n        (!(!this.has(id) || this.get(id) === internalModel) && debug.assert(`Duplicate InternalModel for ${this.modelName}:${id} detected.`, !this.has(id) || this.get(id) === internalModel));\n        this._idToModel[id] = internalModel;\n      }\n      this._models.push(internalModel);\n    }\n    remove(internalModel, id) {\n      delete this._idToModel[id];\n      var loc = this._models.indexOf(internalModel);\n      if (loc !== -1) {\n        this._models.splice(loc, 1);\n      }\n    }\n    contains(internalModel) {\n      return this._models.indexOf(internalModel) !== -1;\n    }\n\n    /**\n     An array of all models of this modelName\n     @property models\n     @internal\n     @type Array\n     */\n    get models() {\n      return this._models;\n    }\n\n    /**\n     Destroy all models in the map\n      @internal\n     */\n    clear() {\n      var internalModels = this._models;\n      this._models = [];\n      for (var i = 0; i < internalModels.length; i++) {\n        var internalModel = internalModels[i];\n        internalModel.unloadRecord();\n      }\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  /**\n   `IdentityMap` is a custom storage map for records by modelName\n   used by `Store`.\n\n   @class IdentityMap\n   @internal\n   */\n  class IdentityMap {\n    constructor() {\n      this._map = Object.create(null);\n    }\n    /**\n     Retrieves the `InternalModelMap` for a given modelName,\n     creating one if one did not already exist. This is\n     similar to `getWithDefault` or `get` on a `MapWithDefault`\n      @method retrieve\n     @internal\n     @param modelName a previously normalized modelName\n     @return {InternalModelMap} the InternalModelMap for the given modelName\n     */\n    retrieve(modelName) {\n      var map = this._map[modelName];\n      if (map === undefined) {\n        map = this._map[modelName] = new InternalModelMap(modelName);\n      }\n      return map;\n    }\n\n    /**\n     Clears the contents of all known `RecordMaps`, but does\n     not remove the InternalModelMap instances.\n      @internal\n     */\n    clear() {\n      var map = this._map;\n      var keys = Object.keys(map);\n      for (var i = 0; i < keys.length; i++) {\n        var key = keys[i];\n        map[key].clear();\n      }\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  var FactoryCache = new WeakMap();\n  var RecordCache = new WeakMap();\n  function peekRecordIdentifier(record) {\n    return RecordCache.get(record);\n  }\n\n  /**\n   * Retrieves the unique referentially-stable RecordIdentifier assigned to the given\n   * record instance.\n   *\n   * @method recordIdentifierFor\n   * @public\n   * @static\n   * @for @ember-data/store\n   * @param {Object} record a record instance previously obstained from the store.\n   * @returns\n   */\n  function recordIdentifierFor(record) {\n    var identifier = RecordCache.get(record);\n    if (identifier === undefined) {\n      throw new Error(`${record} is not a record instantiated by @ember-data/store`);\n    }\n    return identifier;\n  }\n  function setRecordIdentifier(record, identifier) {\n    if (RecordCache.has(record)) {\n      throw new Error(`${record} was already assigned an identifier`);\n    }\n\n    /*\n    It would be nice to do a reverse check here that an identifier has not\n    previously been assigned a record; however, unload + rematerialization\n    prevents us from having a great way of doing so when CustomRecordClasses\n    don't necessarily give us access to a `isDestroyed` for dematerialized\n    instance.\n    */\n\n    RecordCache.set(record, identifier);\n  }\n  function internalModelFactoryFor(store) {\n    var factory = FactoryCache.get(store);\n    if (factory === undefined) {\n      factory = new InternalModelFactory(store);\n      FactoryCache.set(store, factory);\n    }\n    return factory;\n  }\n\n  /**\n   * The InternalModelFactory handles the lifecyle of\n   * instantiating, caching, and destroying InternalModel\n   * instances.\n   *\n   * @class InternalModelFactory\n   * @internal\n   */\n  class InternalModelFactory {\n    constructor(store) {\n      this._identityMap = void 0;\n      this._newlyCreated = void 0;\n      this.identifierCache = void 0;\n      this.store = store;\n      this.identifierCache = identifierCacheFor(store);\n      this.identifierCache.__configureMerge((identifier, matchedIdentifier, resourceData) => {\n        var intendedIdentifier = identifier;\n        if (identifier.id !== matchedIdentifier.id) {\n          intendedIdentifier = identifier.id === resourceData.id ? identifier : matchedIdentifier;\n        } else if (identifier.type !== matchedIdentifier.type) {\n          intendedIdentifier = identifier.type === resourceData.type ? identifier : matchedIdentifier;\n        }\n        var altIdentifier = identifier === intendedIdentifier ? matchedIdentifier : identifier;\n\n        // check for duplicate InternalModel's\n        var map = this.modelMapFor(identifier.type);\n        var im = map.get(intendedIdentifier.lid);\n        var otherIm = map.get(altIdentifier.lid);\n\n        // we cannot merge internalModels when both have records\n        // (this may not be strictly true, we could probably swap the internalModel the record points at)\n        if (im && otherIm && im.hasRecord && otherIm.hasRecord) {\n          throw new Error(`Failed to update the 'id' for the RecordIdentifier '${identifier.type}:${identifier.id} (${identifier.lid})' to '${resourceData.id}', because that id is already in use by '${matchedIdentifier.type}:${matchedIdentifier.id} (${matchedIdentifier.lid})'`);\n        }\n\n        // remove otherIm from cache\n        if (otherIm) {\n          map.remove(otherIm, altIdentifier.lid);\n        }\n        if (im === null && otherIm === null) {\n          // nothing more to do\n          return intendedIdentifier;\n\n          // only the other has an InternalModel\n          // OR only the other has a Record\n        } else if (im === null && otherIm !== null || im && !im.hasRecord && otherIm && otherIm.hasRecord) {\n          if (im) {\n            // TODO check if we are retained in any async relationships\n            map.remove(im, intendedIdentifier.lid);\n            // im.destroy();\n          }\n\n          im = otherIm;\n          // TODO do we need to notify the id change?\n          im._id = intendedIdentifier.id;\n          map.add(im, intendedIdentifier.lid);\n\n          // just use im\n        } else ;\n\n        /*\n        TODO @runspired consider adding this to make polymorphism even nicer\n        if (HAS_RECORD_DATA_PACKAGE) {\n          if (identifier.type !== matchedIdentifier.type) {\n            const graphFor = require('@ember-data/record-data/-private').graphFor;\n            graphFor(this).registerPolymorphicType(identifier.type, matchedIdentifier.type);\n          }\n        }\n        */\n\n        return intendedIdentifier;\n      });\n      this._identityMap = new IdentityMap();\n    }\n\n    /**\n     * Retrieve the InternalModel for a given { type, id, lid }.\n     *\n     * If an InternalModel does not exist, it instantiates one.\n     *\n     * If an InternalModel does exist bus has a scheduled destroy,\n     *   the scheduled destroy will be cancelled.\n     *\n     * @method lookup\n     * @private\n     */\n    lookup(resource, data) {\n      if (data !== undefined) {\n        // if we've been given data associated with this lookup\n        // we must first give secondary-caches for LIDs the\n        // opportunity to populate based on it\n        this.identifierCache.getOrCreateRecordIdentifier(data);\n      }\n      var identifier = this.identifierCache.getOrCreateRecordIdentifier(resource);\n      var internalModel = this.peek(identifier);\n      if (internalModel) {\n        // unloadRecord is async, if one attempts to unload + then sync push,\n        //   we must ensure the unload is canceled before continuing\n        //   The createRecord path will take _existingInternalModelForId()\n        //   which will call `destroySync` instead for this unload + then\n        //   sync createRecord scenario. Once we have true client-side\n        //   delete signaling, we should never call destroySync\n        if (internalModel.hasScheduledDestroy()) {\n          internalModel.cancelDestroy();\n        }\n        return internalModel;\n      }\n      return this._build(identifier, false);\n    }\n\n    /**\n     * Peek the InternalModel for a given { type, id, lid }.\n     *\n     * If an InternalModel does not exist, return `null`.\n     *\n     * @method peek\n     * @private\n     */\n    peek(identifier) {\n      return this.modelMapFor(identifier.type).get(identifier.lid);\n    }\n    getByResource(resource) {\n      var normalizedResource = constructResource(resource.type, resource.id, resource.lid);\n      return this.lookup(normalizedResource);\n    }\n    setRecordId(type, id, lid) {\n      var resource = {\n        type,\n        id: null,\n        lid\n      };\n      var identifier = this.identifierCache.getOrCreateRecordIdentifier(resource);\n      var internalModel = this.peek(identifier);\n      if (internalModel === null) {\n        throw new Error(`Cannot set the id ${id} on the record ${type}:${lid} as there is no such record in the cache.`);\n      }\n      var oldId = internalModel.id;\n      var modelName = internalModel.modelName;\n\n      // ID absolutely can't be missing if the oldID is empty (missing Id in response for a new record)\n      (!(!(id === null && oldId === null)) && debug.assert(`'${modelName}' was saved to the server, but the response does not have an id and your record does not either.`, !(id === null && oldId === null))); // ID absolutely can't be different than oldID if oldID is not null\n      // TODO this assertion and restriction may not strictly be needed in the identifiers world\n      (!(!(oldId !== null && id !== oldId)) && debug.assert(`Cannot update the id for '${modelName}:${lid}' from '${oldId}' to '${id}'.`, !(oldId !== null && id !== oldId))); // ID can be null if oldID is not null (altered ID in response for a record)\n      // however, this is more than likely a developer error.\n      if (oldId !== null && id === null) {\n        (debug.warn(`Your ${modelName} record was saved to the server, but the response does not have an id.`, !(oldId !== null && id === null)));\n        return;\n      }\n      var existingInternalModel = this.peekById(modelName, id);\n      (!(utils.isNone(existingInternalModel) || existingInternalModel === internalModel) && debug.assert(`'${modelName}' was saved to the server, but the response returned the new id '${id}', which has already been used with another record.'`, utils.isNone(existingInternalModel) || existingInternalModel === internalModel));\n      if (identifier.id === null) {\n        this.identifierCache.updateRecordIdentifier(identifier, {\n          type,\n          id\n        });\n      }\n      internalModel.setId(id, true);\n    }\n    peekById(type, id) {\n      var identifier = this.identifierCache.peekRecordIdentifier({\n        type,\n        id\n      });\n      var internalModel = identifier ? this.modelMapFor(type).get(identifier.lid) : null;\n      if (internalModel && internalModel.hasScheduledDestroy()) {\n        // unloadRecord is async, if one attempts to unload + then sync create,\n        //   we must ensure the unload is complete before starting the create\n        //   The push path will take this.lookup()\n        //   which will call `cancelDestroy` instead for this unload + then\n        //   sync push scenario. Once we have true client-side\n        //   delete signaling, we should never call destroySync\n        internalModel.destroySync();\n        internalModel = null;\n      }\n      return internalModel;\n    }\n    build(newResourceInfo) {\n      return this._build(newResourceInfo, true);\n    }\n    _build(resource, isCreate = false) {\n      if (isCreate === true && resource.id) {\n        var existingInternalModel = this.peekById(resource.type, resource.id);\n        (!(!existingInternalModel) && debug.assert(`The id ${resource.id} has already been used with another '${resource.type}' record.`, !existingInternalModel));\n      }\n      var {\n        identifierCache\n      } = this;\n      var identifier;\n      if (isCreate === true) {\n        identifier = identifierCache.createIdentifierForNewRecord(resource);\n      } else {\n        identifier = resource;\n      }\n\n      // lookupFactory should really return an object that creates\n      // instances with the injections applied\n      var internalModel = new InternalModel(this.store, identifier);\n      this.modelMapFor(resource.type).add(internalModel, identifier.lid);\n      return internalModel;\n    }\n    remove(internalModel) {\n      var recordMap = this.modelMapFor(internalModel.modelName);\n      var clientId = internalModel.identifier.lid;\n      recordMap.remove(internalModel, clientId);\n      var {\n        identifier\n      } = internalModel;\n      this.identifierCache.forgetRecordIdentifier(identifier);\n    }\n    modelMapFor(type) {\n      return this._identityMap.retrieve(type);\n    }\n    _newlyCreatedModelsFor(type) {\n      return this._newlyCreated.retrieve(type);\n    }\n    clear(type) {\n      if (type === undefined) {\n        this._identityMap.clear();\n      } else {\n        this.modelMapFor(type).clear();\n      }\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  function recordForIdentifier(store, identifier) {\n    return internalModelFactoryFor(store).lookup(identifier).getRecord();\n  }\n\n  /**\n    A record array is an array that contains records of a certain modelName. The record\n    array materializes records as needed when they are retrieved for the first\n    time. You should not create record arrays yourself. Instead, an instance of\n    `RecordArray` or its subclasses will be returned by your application's store\n    in response to queries.\n\n    This class should not be imported and instantiated by consuming applications.\n\n    @class RecordArray\n    @public\n    @extends Ember.ArrayProxy\n    @uses Ember.Evented\n  */\n\n  var RecordArray = ArrayProxy__default[\"default\"].extend(DeprecatedEvented$1, {\n    init(args) {\n      this._super(args);\n      {\n        this._getDeprecatedEventedInfo = () => `RecordArray containing ${this.modelName}`;\n      }\n\n      /**\n        The array of client ids backing the record array. When a\n        record is requested from the record array, the record\n        for the client id at the same index is materialized, if\n        necessary, by the store.\n         @property content\n        @private\n        @type Ember.Array\n        */\n      this.set('content', this.content || null);\n\n      /**\n      The flag to signal a `RecordArray` is finished loading data.\n       Example\n       ```javascript\n      let people = store.peekAll('person');\n      people.get('isLoaded'); // true\n      ```\n       @property isLoaded\n      @public\n      @type Boolean\n      */\n      this.isLoaded = this.isLoaded || false;\n      /**\n      The flag to signal a `RecordArray` is currently loading data.\n       Example\n       ```javascript\n      let people = store.peekAll('person');\n      people.get('isUpdating'); // false\n      people.update();\n      people.get('isUpdating'); // true\n      ```\n       @property isUpdating\n      @public\n      @type Boolean\n      */\n      this.isUpdating = false;\n\n      /**\n      The store that created this record array.\n       @property store\n      @private\n      @type Store\n      */\n      this.store = this.store || null;\n      this._updatingPromise = null;\n    },\n    replace() {\n      throw new Error(`The result of a server query (for all ${this.modelName} types) is immutable. To modify contents, use toArray()`);\n    },\n    /**\n     The modelClass represented by this record array.\n      @property type\n      @public\n     @type {subclass of Model}\n     */\n    type: object.computed('modelName', function () {\n      if (!this.modelName) {\n        return null;\n      }\n      return this.store.modelFor(this.modelName);\n    }).readOnly(),\n    /**\n      Retrieves an object from the content by index.\n       @method objectAtContent\n      @private\n      @param {Number} index\n      @return {Model} record\n    */\n    objectAtContent(index) {\n      var identifier = object.get(this, 'content').objectAt(index);\n      return identifier ? recordForIdentifier(this.store, identifier) : undefined;\n    },\n    /**\n      Used to get the latest version of all of the records in this array\n      from the adapter.\n       Example\n       ```javascript\n      let people = store.peekAll('person');\n      people.get('isUpdating'); // false\n       people.update().then(function() {\n        people.get('isUpdating'); // false\n      });\n       people.get('isUpdating'); // true\n      ```\n       @method update\n      @public\n    */\n    update() {\n      if (object.get(this, 'isUpdating')) {\n        return this._updatingPromise;\n      }\n      this.set('isUpdating', true);\n      var updatingPromise = this._update().finally(() => {\n        this._updatingPromise = null;\n        if (this.get('isDestroying') || this.get('isDestroyed')) {\n          return;\n        }\n        this.set('isUpdating', false);\n      });\n      this._updatingPromise = updatingPromise;\n      return updatingPromise;\n    },\n    /*\n      Update this RecordArray and return a promise which resolves once the update\n      is finished.\n     */\n    _update() {\n      return this.store.findAll(this.modelName, {\n        reload: true\n      });\n    },\n    /**\n      Saves all of the records in the `RecordArray`.\n       Example\n       ```javascript\n      let messages = store.peekAll('message');\n      messages.forEach(function(message) {\n        message.set('hasBeenSeen', true);\n      });\n      messages.save();\n      ```\n       @method save\n      @public\n      @return {PromiseArray} promise\n    */\n    save() {\n      var promiseLabel = `DS: RecordArray#save ${this.modelName}`;\n      var promise = RSVP.Promise.all(this.invoke('save'), promiseLabel).then(() => this, null, 'DS: RecordArray#save return RecordArray');\n      return PromiseArray.create({\n        promise\n      });\n    },\n    /**\n      @method _unregisterFromManager\n      @internal\n    */\n    _unregisterFromManager() {\n      this.manager.unregisterRecordArray(this);\n    },\n    willDestroy() {\n      this._unregisterFromManager();\n      this._dissociateFromOwnRecords();\n      // TODO: we should not do work during destroy:\n      //   * when objects are destroyed, they should simply be left to do\n      //   * if logic errors do to this, that logic needs to be more careful during\n      //    teardown (ember provides isDestroying/isDestroyed) for this reason\n      //   * the exception being: if an dominator has a reference to this object,\n      //     and must be informed to release e.g. e.g. removing itself from th\n      //     recordArrayMananger\n      object.set(this, 'content', null);\n      object.set(this, 'length', 0);\n      this._super(...arguments);\n    },\n    /**\n      @method _createSnapshot\n      @private\n    */\n    _createSnapshot(options) {\n      // this is private for users, but public for ember-data internals\n      return new SnapshotRecordArray(this, this.get('meta'), options);\n    },\n    /**\n      @method _dissociateFromOwnRecords\n      @internal\n    */\n    _dissociateFromOwnRecords() {\n      this.get('content').forEach(identifier => {\n        var recordArrays = this.manager.getRecordArraysForIdentifier(identifier);\n        if (recordArrays) {\n          recordArrays.delete(this);\n        }\n      });\n    },\n    /**\n      Adds identifiers to the `RecordArray` without duplicates\n       @method _pushIdentifiers\n      @internal\n      @param {StableRecordIdentifier[]} identifiers\n    */\n    _pushIdentifiers(identifiers) {\n      object.get(this, 'content').pushObjects(identifiers);\n    },\n    /**\n      Removes identifiers from the `RecordArray`.\n       @method _removeIdentifiers\n      @internal\n      @param {StableRecordIdentifier[]} identifiers\n    */\n    _removeIdentifiers(identifiers) {\n      object.get(this, 'content').removeObjects(identifiers);\n    },\n    /**\n      @method _takeSnapshot\n      @internal\n    */\n    _takeSnapshot() {\n      return object.get(this, 'content').map(identifier => internalModelFactoryFor(this.store).lookup(identifier).createSnapshot());\n    }\n  });\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    Represents an ordered list of records whose order and membership is\n    determined by the adapter. For example, a query sent to the adapter\n    may trigger a search on the server, whose results would be loaded\n    into an instance of the `AdapterPopulatedRecordArray`.\n\n    This class should not be imported and instantiated by consuming applications.\n\n    ---\n\n    If you want to update the array and get the latest records from the\n    adapter, you can invoke [`update()`](AdapterPopulatedRecordArray/methods/update?anchor=update):\n\n    Example\n\n    ```javascript\n    // GET /users?isAdmin=true\n    store.query('user', { isAdmin: true }).then(function(admins) {\n\n      admins.then(function() {\n        console.log(admins.get(\"length\")); // 42\n      });\n\n      // somewhere later in the app code, when new admins have been created\n      // in the meantime\n      //\n      // GET /users?isAdmin=true\n      admins.update().then(function() {\n        admins.get('isUpdating'); // false\n        console.log(admins.get(\"length\")); // 123\n      });\n\n      admins.get('isUpdating'); // true\n    }\n    ```\n\n    @class AdapterPopulatedRecordArray\n    @public\n    @extends RecordArray\n  */\n  var AdapterPopulatedRecordArray = RecordArray.extend({\n    init() {\n      this.set('content', this.get('content') || EmberArray.A());\n      this._super(...arguments);\n      this.query = this.query || null;\n      this.links = this.links || null;\n      {\n        this._getDeprecatedEventedInfo = () => `AdapterPopulatedRecordArray containing ${this.modelName} for query: ${this.query}`;\n      }\n    },\n    replace() {\n      throw new Error(`The result of a server query (on ${this.modelName}) is immutable.`);\n    },\n    _update() {\n      var store = object.get(this, 'store');\n      var query = object.get(this, 'query');\n      return store._query(this.modelName, query, this);\n    },\n    _setObjects(identifiersOrInternalModels, payload) {\n      // TODO: initial load should not cause change events at all, only\n      // subsequent. This requires changing the public api of adapter.query, but\n      // hopefully we can do that soon.\n      this.get('content').setObjects(identifiersOrInternalModels);\n      this.setProperties({\n        isLoaded: true,\n        isUpdating: false,\n        meta: polyfills.assign({}, payload.meta),\n        links: polyfills.assign({}, payload.links)\n      });\n      this.manager._associateWithRecordArray(identifiersOrInternalModels, this);\n      {\n        var _hasDidLoad = this._has('didLoad') ;\n        if (_hasDidLoad) {\n          // TODO: should triggering didLoad event be the last action of the runLoop?\n          runloop.once(this, 'trigger', 'didLoad');\n        }\n      }\n    },\n    /**\n      @method _setIdentifiers\n      @param {StableRecordIdentifier[]} identifiers\n      @param {Object} payload normalized payload\n      @private\n    */\n    _setIdentifiers(identifiers, payload) {\n      this._setObjects(identifiers, payload);\n    }\n  });\n\n  /**\n    @module @ember-data/store\n  */\n  var RecordArraysCache = new WeakMap();\n  function recordArraysForIdentifier(identifierOrInternalModel) {\n    if (RecordArraysCache.has(identifierOrInternalModel)) {\n      // return existing Set if exists\n      return RecordArraysCache.get(identifierOrInternalModel);\n    }\n\n    // returns workable Set instance\n    RecordArraysCache.set(identifierOrInternalModel, new Set());\n    return RecordArraysCache.get(identifierOrInternalModel);\n  }\n  var pendingForIdentifier = new Set();\n  var getIdentifier = function getIdentifier(identifierOrInternalModel) {\n    var i = identifierOrInternalModel;\n    return i;\n  };\n  var shouldIncludeInRecordArrays = function shouldIncludeInRecordArrays(store, identifier) {\n    var cache = internalModelFactoryFor(store);\n    var internalModel = cache.peek(identifier);\n    if (internalModel === null) {\n      return false;\n    }\n    return !internalModel.isHiddenFromRecordArrays();\n  };\n\n  /**\n    @class RecordArrayManager\n    @internal\n  */\n  class RecordArrayManager {\n    constructor(options) {\n      this.store = options.store;\n      this.isDestroying = false;\n      this.isDestroyed = false;\n      this._liveRecordArrays = Object.create(null);\n      this._pendingIdentifiers = Object.create(null);\n      this._adapterPopulatedRecordArrays = [];\n    }\n\n    /**\n     * @method getRecordArraysForIdentifier\n     * @internal\n     * @param {StableIdentifier} param\n     * @return {RecordArray} array\n     */\n    getRecordArraysForIdentifier(identifier) {\n      return recordArraysForIdentifier(identifier);\n    }\n    _flushPendingIdentifiersForModelName(modelName, identifiers) {\n      if (this.isDestroying || this.isDestroyed) {\n        return;\n      }\n      var modelsToRemove = [];\n      for (var j = 0; j < identifiers.length; j++) {\n        var i = identifiers[j];\n        // mark identifiers, so they can once again be processed by the\n        // recordArrayManager\n        pendingForIdentifier.delete(i);\n        // build up a set of models to ensure we have purged correctly;\n        var isIncluded = shouldIncludeInRecordArrays(this.store, i);\n        if (!isIncluded) {\n          modelsToRemove.push(i);\n        }\n      }\n      var array = this._liveRecordArrays[modelName];\n      if (array) {\n        // TODO: skip if it only changed\n        // process liveRecordArrays\n        updateLiveRecordArray(this.store, array, identifiers);\n      }\n\n      // process adapterPopulatedRecordArrays\n      if (modelsToRemove.length > 0) {\n        removeFromAdapterPopulatedRecordArrays(this.store, modelsToRemove);\n      }\n    }\n    _flush() {\n      var pending = this._pendingIdentifiers;\n      this._pendingIdentifiers = Object.create(null);\n      for (var modelName in pending) {\n        this._flushPendingIdentifiersForModelName(modelName, pending[modelName]);\n      }\n    }\n    _syncLiveRecordArray(array, modelName) {\n      (!(typeof modelName === 'string') && debug.assert(`recordArrayManger.syncLiveRecordArray expects modelName not modelClass as the second param`, typeof modelName === 'string'));\n      var pending = this._pendingIdentifiers[modelName];\n      var hasPendingChanges = Array.isArray(pending);\n      var hasNoPotentialDeletions = !hasPendingChanges || pending.length === 0;\n      var map = internalModelFactoryFor(this.store).modelMapFor(modelName);\n      var hasNoInsertionsOrRemovals = object.get(map, 'length') === object.get(array, 'length');\n\n      /*\n        Ideally the recordArrayManager has knowledge of the changes to be applied to\n        liveRecordArrays, and is capable of strategically flushing those changes and applying\n        small diffs if desired.  However, until we've refactored recordArrayManager, this dirty\n        check prevents us from unnecessarily wiping out live record arrays returned by peekAll.\n        */\n      if (hasNoPotentialDeletions && hasNoInsertionsOrRemovals) {\n        return;\n      }\n      if (hasPendingChanges) {\n        this._flushPendingIdentifiersForModelName(modelName, pending);\n        delete this._pendingIdentifiers[modelName];\n      }\n      var identifiers = this._visibleIdentifiersByType(modelName);\n      var modelsToAdd = [];\n      for (var i = 0; i < identifiers.length; i++) {\n        var identifier = identifiers[i];\n        var recordArrays = recordArraysForIdentifier(identifier);\n        if (recordArrays.has(array) === false) {\n          recordArrays.add(array);\n          modelsToAdd.push(identifier);\n        }\n      }\n      if (modelsToAdd.length) {\n        array._pushIdentifiers(modelsToAdd);\n      }\n    }\n    _didUpdateAll(modelName) {\n      var recordArray = this._liveRecordArrays[modelName];\n      if (recordArray) {\n        object.set(recordArray, 'isUpdating', false);\n      }\n    }\n\n    /**\n      Get the `RecordArray` for a modelName, which contains all loaded records of\n      given modelName.\n       @method liveRecordArrayFor\n      @internal\n      @param {String} modelName\n      @return {RecordArray}\n    */\n    liveRecordArrayFor(modelName) {\n      (!(typeof modelName === 'string') && debug.assert(`recordArrayManger.liveRecordArrayFor expects modelName not modelClass as the param`, typeof modelName === 'string'));\n      var array = this._liveRecordArrays[modelName];\n      if (array) {\n        // if the array already exists, synchronize\n        this._syncLiveRecordArray(array, modelName);\n      } else {\n        // if the array is being newly created merely create it with its initial\n        // content already set. This prevents unneeded change events.\n        var identifiers = this._visibleIdentifiersByType(modelName);\n        array = this.createRecordArray(modelName, identifiers);\n        this._liveRecordArrays[modelName] = array;\n      }\n      return array;\n    }\n    _visibleIdentifiersByType(modelName) {\n      var all = internalModelFactoryFor(this.store).modelMapFor(modelName).recordIdentifiers;\n      var visible = [];\n      for (var i = 0; i < all.length; i++) {\n        var identifier = all[i];\n        var shouldInclude = shouldIncludeInRecordArrays(this.store, identifier);\n        if (shouldInclude) {\n          visible.push(identifier);\n        }\n      }\n      return visible;\n    }\n\n    /**\n      Create a `RecordArray` for a modelName.\n       @method createRecordArray\n      @internal\n      @param {String} modelName\n      @param {Array} [identifiers]\n      @return {RecordArray}\n    */\n    createRecordArray(modelName, identifiers) {\n      (!(typeof modelName === 'string') && debug.assert(`recordArrayManger.createRecordArray expects modelName not modelClass as the param`, typeof modelName === 'string'));\n      var array = RecordArray.create({\n        modelName,\n        content: EmberArray.A(identifiers || []),\n        store: this.store,\n        isLoaded: true,\n        manager: this\n      });\n      if (Array.isArray(identifiers)) {\n        this._associateWithRecordArray(identifiers, array);\n      }\n      return array;\n    }\n\n    /**\n      Create a `AdapterPopulatedRecordArray` for a modelName with given query.\n       @method createAdapterPopulatedRecordArray\n      @internal\n      @param {String} modelName\n      @param {Object} query\n      @return {AdapterPopulatedRecordArray}\n    */\n    createAdapterPopulatedRecordArray(modelName, query, identifiers, payload) {\n      (!(typeof modelName === 'string') && debug.assert(`recordArrayManger.createAdapterPopulatedRecordArray expects modelName not modelClass as the first param, received ${modelName}`, typeof modelName === 'string'));\n      var array;\n      if (Array.isArray(identifiers)) {\n        array = AdapterPopulatedRecordArray.create({\n          modelName,\n          query: query,\n          content: EmberArray.A(identifiers),\n          store: this.store,\n          manager: this,\n          isLoaded: true,\n          isUpdating: false,\n          meta: polyfills.assign({}, payload.meta),\n          links: polyfills.assign({}, payload.links)\n        });\n        this._associateWithRecordArray(identifiers, array);\n      } else {\n        array = AdapterPopulatedRecordArray.create({\n          modelName,\n          query: query,\n          content: EmberArray.A(),\n          store: this.store,\n          manager: this\n        });\n      }\n      this._adapterPopulatedRecordArrays.push(array);\n      return array;\n    }\n\n    /**\n      Unregister a RecordArray.\n      So manager will not update this array.\n       @method unregisterRecordArray\n      @internal\n      @param {RecordArray} array\n    */\n    unregisterRecordArray(array) {\n      var modelName = array.modelName;\n\n      // remove from adapter populated record array\n      var removedFromAdapterPopulated = removeFromArray(this._adapterPopulatedRecordArrays, array);\n      if (!removedFromAdapterPopulated) {\n        var liveRecordArrayForType = this._liveRecordArrays[modelName];\n        // unregister live record array\n        if (liveRecordArrayForType) {\n          if (array === liveRecordArrayForType) {\n            delete this._liveRecordArrays[modelName];\n          }\n        }\n      }\n    }\n\n    /**\n     * @method _associateWithRecordArray\n     * @internal\n     * @param {StableIdentifier} identifiers\n     * @param {RecordArray} array\n     */\n    _associateWithRecordArray(identifiers, array) {\n      for (var i = 0, l = identifiers.length; i < l; i++) {\n        var identifier = identifiers[i];\n        identifier = getIdentifier(identifier);\n        var recordArrays = this.getRecordArraysForIdentifier(identifier);\n        recordArrays.add(array);\n      }\n    }\n\n    /**\n      @method recordDidChange\n      @internal\n    */\n    recordDidChange(identifier) {\n      if (this.isDestroying || this.isDestroyed) {\n        return;\n      }\n      var modelName = identifier.type;\n      identifier = getIdentifier(identifier);\n      if (pendingForIdentifier.has(identifier)) {\n        return;\n      }\n      pendingForIdentifier.add(identifier);\n      var pending = this._pendingIdentifiers;\n      var models = pending[modelName] = pending[modelName] || [];\n      if (models.push(identifier) !== 1) {\n        return;\n      }\n      runloop._backburner.schedule('actions', this, this._flush);\n    }\n    willDestroy() {\n      Object.keys(this._liveRecordArrays).forEach(modelName => this._liveRecordArrays[modelName].destroy());\n      this._adapterPopulatedRecordArrays.forEach(entry => entry.destroy());\n      this.isDestroyed = true;\n    }\n    destroy() {\n      this.isDestroying = true;\n      runloop._backburner.schedule('actions', this, this.willDestroy);\n    }\n  }\n  var removeFromArray = function removeFromArray(array, item) {\n    var index = array.indexOf(item);\n    if (index !== -1) {\n      array.splice(index, 1);\n      return true;\n    }\n    return false;\n  };\n  var updateLiveRecordArray = function updateLiveRecordArray(store, recordArray, identifiers) {\n    var identifiersToAdd = [];\n    var identifiersToRemove = [];\n    for (var i = 0; i < identifiers.length; i++) {\n      var identifier = identifiers[i];\n      var shouldInclude = shouldIncludeInRecordArrays(store, identifier);\n      var recordArrays = recordArraysForIdentifier(identifier);\n      if (shouldInclude) {\n        if (!recordArrays.has(recordArray)) {\n          identifiersToAdd.push(identifier);\n          recordArrays.add(recordArray);\n        }\n      }\n      if (!shouldInclude) {\n        identifiersToRemove.push(identifier);\n        recordArrays.delete(recordArray);\n      }\n    }\n    if (identifiersToAdd.length > 0) {\n      pushIdentifiers(recordArray, identifiersToAdd, internalModelFactoryFor(store));\n    }\n    if (identifiersToRemove.length > 0) {\n      removeIdentifiers(recordArray, identifiersToRemove, internalModelFactoryFor(store));\n    }\n  };\n  var pushIdentifiers = function pushIdentifiers(recordArray, identifiers, cache) {\n    {\n      recordArray._pushIdentifiers(identifiers);\n    }\n  };\n  var removeIdentifiers = function removeIdentifiers(recordArray, identifiers, cache) {\n    {\n      recordArray._removeIdentifiers(identifiers);\n    }\n  };\n  var removeFromAdapterPopulatedRecordArrays = function removeFromAdapterPopulatedRecordArrays(store, identifiers) {\n    for (var i = 0; i < identifiers.length; i++) {\n      removeFromAll(store, identifiers[i]);\n    }\n  };\n  var removeFromAll = function removeFromAll(store, identifier) {\n    identifier = getIdentifier(identifier);\n    var recordArrays = recordArraysForIdentifier(identifier);\n    internalModelFactoryFor(store);\n    recordArrays.forEach(function (recordArray) {\n      removeIdentifiers(recordArray, [identifier]);\n    });\n    recordArrays.clear();\n  };\n\n  var tokenId = 0;\n  var Cache = new Map();\n  var Tokens = new Map();\n\n  // 'property' is an internal EmberData only transition period concept.\n\n  // TODO this isn't importable anyway, remove and use a map on the manager?\n  function unsubscribe(token) {\n    var identifier = Tokens.get(token);\n    if (identifier) {\n      Tokens.delete(token);\n      var map = Cache.get(identifier);\n      map?.delete(token);\n    }\n  }\n  /*\n    Currently only support a single callback per identifier\n  */\n  class NotificationManager {\n    constructor(store) {\n      this.store = store;\n    }\n    subscribe(identifier, callback) {\n      (!(isStableIdentifier(identifier)) && debug.assert(`Expected to receive a stable Identifier to subscribe to`, isStableIdentifier(identifier)));\n      var map = Cache.get(identifier);\n      if (!map) {\n        map = new Map();\n        Cache.set(identifier, map);\n      }\n      var unsubToken = {\n        _tokenRef: tokenId++\n      } ;\n      map.set(unsubToken, callback);\n      Tokens.set(unsubToken, identifier);\n      return unsubToken;\n    }\n    unsubscribe(token) {\n      unsubscribe(token);\n    }\n\n    // deactivated type signature overloads because pass-through was failing to match any. Bring back if possible.\n    // notify(identifier: StableRecordIdentifier, value: 'attributes' | 'relationships', key?: string): boolean;\n    // notify(identifier: StableRecordIdentifier, value: 'errors' | 'meta' | 'identity' | 'state'): boolean;\n    notify(identifier, value, key) {\n      (!(!key || value === 'attributes' || value === 'relationships') && debug.assert(`Notify does not accept a key argument for the namespace '${value}'. Received key '${key}'.`, !key || value === 'attributes' || value === 'relationships'));\n      if (!isStableIdentifier(identifier)) {\n        return false;\n      }\n      var callbackMap = Cache.get(identifier);\n      if (!callbackMap || !callbackMap.size) {\n        return false;\n      }\n      callbackMap.forEach(cb => {\n        cb(identifier, value, key);\n      });\n      return true;\n    }\n    destroy() {\n      Tokens.clear();\n      Cache.clear();\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  function isResourceIdentiferWithRelatedLinks(value) {\n    return value && value.links && value.links.related;\n  }\n  var REFERENCE_CACHE = new WeakMap();\n  function internalModelForReference(reference) {\n    return internalModelFactoryFor(reference.store).peek(REFERENCE_CACHE.get(reference));\n  }\n\n  /**\n    This is the baseClass for the different References\n    like RecordReference/HasManyReference/BelongsToReference\n\n   @class Reference\n   @public\n   */\n\n  class Reference {\n    constructor(store, identifier) {\n      this.store = store;\n      REFERENCE_CACHE.set(this, identifier);\n    }\n    get recordData() {\n      return this.store.recordDataFor(REFERENCE_CACHE.get(this), false);\n    }\n    _resource() {}\n\n    /**\n     This returns a string that represents how the reference will be\n     looked up when it is loaded. If the relationship has a link it will\n     use the \"link\" otherwise it defaults to \"id\".\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default Model.extend({\n       comments: hasMany({ async: true })\n     });\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      // get the identifier of the reference\n     if (commentsRef.remoteType() === \"ids\") {\n       let ids = commentsRef.ids();\n     } else if (commentsRef.remoteType() === \"link\") {\n       let link = commentsRef.link();\n     }\n     ```\n      @method remoteType\n     @public\n     @return {String} The name of the remote type. This should either be \"link\" or \"ids\"\n     */\n    remoteType() {\n      var value = this._resource();\n      if (isResourceIdentiferWithRelatedLinks(value)) {\n        return 'link';\n      }\n      return 'id';\n    }\n\n    /**\n     The link Ember Data will use to fetch or reload this belongs-to\n     relationship. By default it uses only the \"related\" resource linkage.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n     export default Model.extend({\n        user: belongsTo({ async: true })\n      });\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              links: {\n                related: '/articles/1/author'\n              }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      // get the identifier of the reference\n     if (userRef.remoteType() === \"link\") {\n        let link = userRef.link();\n      }\n     ```\n      @method link\n     @public\n     @return {String} The link Ember Data will use to fetch or reload this belongs-to relationship.\n     */\n    link() {\n      var link;\n      var resource = this._resource();\n      if (isResourceIdentiferWithRelatedLinks(resource)) {\n        if (resource.links) {\n          link = resource.links.related;\n          link = !link || typeof link === 'string' ? link : link.href;\n        }\n      }\n      return link || null;\n    }\n    links() {\n      var resource = this._resource();\n      return resource && resource.links ? resource.links : null;\n    }\n\n    /**\n     The meta data for the belongs-to relationship.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n     export default Model.extend({\n        user: belongsTo({ async: true })\n      });\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              links: {\n                related: {\n                  href: '/articles/1/author'\n                },\n                meta: {\n                  lastUpdated: 1458014400000\n                }\n              }\n            }\n          }\n        }\n      });\n      let userRef = blog.belongsTo('user');\n      userRef.meta() // { lastUpdated: 1458014400000 }\n     ```\n      @method meta\n      @public\n     @return {Object} The meta information for the belongs-to relationship.\n     */\n    meta() {\n      var meta = null;\n      var resource = this._resource();\n      if (resource && resource.meta && typeof resource.meta === 'object') {\n        meta = resource.meta;\n      }\n      return meta;\n    }\n  }\n  {\n    Object.defineProperty(Reference.prototype, 'internalModel', {\n      get() {\n        (debug.deprecate('Accessing the internalModel property of Reference is deprecated', false, {\n          id: 'ember-data:reference-internal-model',\n          until: '3.21',\n          for: '@ember-data/store',\n          since: {\n            available: '3.19',\n            enabled: '3.19'\n          }\n        }));\n        return REFERENCE_CACHE.get(this);\n      }\n    });\n  }\n\n  var _class$2, _descriptor$2, _token$2, _relatedToken;\n  function _initializerDefineProperty$2(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _classPrivateFieldLooseBase$2(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError(\"attempted to use private field on non-instance\"); } return receiver; }\n  var id$2 = 0;\n  function _classPrivateFieldLooseKey$2(name) { return \"__private_\" + id$2++ + \"_\" + name; }\n  function _applyDecoratedDescriptor$2(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  /**\n    @module @ember-data/store\n  */\n  /**\n   A `BelongsToReference` is a low-level API that allows users and\n   addon authors to perform meta-operations on a belongs-to\n   relationship.\n\n   @class BelongsToReference\n   @public\n   @extends Reference\n   */\n  var BelongsToReference = (_class$2 = (_token$2 = /*#__PURE__*/_classPrivateFieldLooseKey$2(\"token\"), _relatedToken = /*#__PURE__*/_classPrivateFieldLooseKey$2(\"relatedToken\"), class BelongsToReference extends Reference {\n    constructor(store, parentIdentifier, belongsToRelationship, key) {\n      super(store, parentIdentifier);\n      // unsubscribe tokens given to us by the notification manager\n      Object.defineProperty(this, _token$2, {\n        writable: true,\n        value: void 0\n      });\n      Object.defineProperty(this, _relatedToken, {\n        writable: true,\n        value: null\n      });\n      _initializerDefineProperty$2(this, \"_ref\", _descriptor$2, this);\n      this.key = key;\n      this.belongsToRelationship = belongsToRelationship;\n      this.type = belongsToRelationship.definition.type;\n      var parent = internalModelFactoryFor(store).peek(parentIdentifier);\n      this.parent = parent.recordReference;\n      this.parentIdentifier = parentIdentifier;\n      {\n        _classPrivateFieldLooseBase$2(this, _token$2)[_token$2] = store._notificationManager.subscribe(parentIdentifier, (_, bucket, notifiedKey) => {\n          if ((bucket === 'relationships' || bucket === 'property') && notifiedKey === key) {\n            this._ref++;\n          }\n        });\n      }\n\n      // TODO inverse\n    }\n\n    destroy() {\n      {\n        unsubscribe(_classPrivateFieldLooseBase$2(this, _token$2)[_token$2]);\n        _classPrivateFieldLooseBase$2(this, _token$2)[_token$2] = null;\n        if (_classPrivateFieldLooseBase$2(this, _relatedToken)[_relatedToken]) {\n          unsubscribe(_classPrivateFieldLooseBase$2(this, _relatedToken)[_relatedToken]);\n          _classPrivateFieldLooseBase$2(this, _relatedToken)[_relatedToken] = null;\n        }\n      }\n    }\n    get _relatedIdentifier() {\n      this._ref; // consume the tracked prop\n      if (_classPrivateFieldLooseBase$2(this, _relatedToken)[_relatedToken]) {\n        unsubscribe(_classPrivateFieldLooseBase$2(this, _relatedToken)[_relatedToken]);\n        _classPrivateFieldLooseBase$2(this, _relatedToken)[_relatedToken] = null;\n      }\n      var resource = this._resource();\n      if (resource && resource.data) {\n        var identifier = this.store.identifierCache.getOrCreateRecordIdentifier(resource.data);\n        _classPrivateFieldLooseBase$2(this, _relatedToken)[_relatedToken] = this.store._notificationManager.subscribe(identifier, (_, bucket, notifiedKey) => {\n          if (bucket === 'identity' || (bucket === 'attributes' || bucket === 'property') && notifiedKey === 'id') {\n            this._ref++;\n          }\n        });\n        return identifier;\n      }\n      return null;\n    }\n\n    /**\n     The `id` of the record that this reference refers to. Together, the\n     `type()` and `id()` methods form a composite key for the identity\n     map. This can be used to access the id of an async relationship\n     without triggering a fetch that would normally happen if you\n     attempted to use `record.get('relationship.id')`.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n      @belongsTo({ async: true }) user;\n     }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      // get the identifier of the reference\n     if (userRef.remoteType() === \"id\") {\n        let id = userRef.id();\n      }\n     ```\n      @method id\n      @public\n     @return {String} The id of the record in this belongsTo relationship.\n     */\n    id() {\n      {\n        return this._relatedIdentifier?.id || null;\n      }\n    }\n    _resource() {\n      return this.recordData.getBelongsTo(this.key);\n    }\n\n    /**\n     `push` can be used to update the data in the relationship and Ember\n     Data will treat the new data as the canonical value of this\n     relationship on the backend.\n      Example\n      ```app/models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @belongsTo({ async: true }) user;\n      }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      // provide data for reference\n     userRef.push({\n        data: {\n          type: 'user',\n          id: 1,\n          attributes: {\n            username: \"@user\"\n          }\n        }\n      }).then(function(user) {\n        userRef.value() === user;\n      });\n     ```\n      @method push\n      @public\n     @param {Object|Promise} objectOrPromise a promise that resolves to a JSONAPI document object describing the new value of this relationship.\n     @return {Promise<record>} A promise that resolves with the new value in this belongs-to relationship.\n     */\n    async push(objectOrPromise) {\n      // TODO deprecate thenable support\n      return RSVP.resolve(objectOrPromise).then(data => {\n        var record;\n        if (peekRecordIdentifier(data)) {\n          (debug.deprecate('Pushing a record into a BelongsToReference is deprecated', false, {\n            id: 'ember-data:belongs-to-reference-push-record',\n            until: '4.0',\n            for: '@ember-data/store',\n            since: {\n              available: '3.16',\n              enabled: '3.16'\n            }\n          }));\n          record = data;\n        } else {\n          record = this.store.push(data);\n        }\n\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n        Debug.assertPolymorphicType(this.belongsToRelationship.identifier, this.belongsToRelationship.definition, recordIdentifierFor(record), this.store);\n        var {\n          graph,\n          identifier\n        } = this.belongsToRelationship;\n        this.store._backburner.join(() => {\n          graph.push({\n            op: 'replaceRelatedRecord',\n            record: identifier,\n            field: this.key,\n            value: recordIdentifierFor(record)\n          });\n        });\n        return record;\n      });\n    }\n\n    /**\n     `value()` synchronously returns the current value of the belongs-to\n     relationship. Unlike `record.get('relationshipName')`, calling\n     `value()` on a reference does not trigger a fetch if the async\n     relationship is not yet loaded. If the relationship is not loaded\n     it will always return `null`.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n       @belongsTo({ async: true }) user;\n     }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      userRef.value(); // null\n      // provide data for reference\n     userRef.push({\n        data: {\n          type: 'user',\n          id: 1,\n          attributes: {\n            username: \"@user\"\n          }\n        }\n      }).then(function(user) {\n        userRef.value(); // user\n      });\n     ```\n      @method value\n      @public\n     @return {Model} the record in this relationship\n     */\n    value() {\n      var resource = this._resource();\n      if (resource && resource.data) {\n        var inverseInternalModel = this.store._internalModelForResource(resource.data);\n        if (inverseInternalModel && inverseInternalModel.currentState.isLoaded) {\n          return inverseInternalModel.getRecord();\n        }\n      }\n      return null;\n    }\n\n    /**\n     Loads a record in a belongs-to relationship if it is not already\n     loaded. If the relationship is already loaded this method does not\n     trigger a new load.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n       @belongsTo({ async: true }) user;\n     }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      userRef.value(); // null\n      userRef.load().then(function(user) {\n        userRef.value() === user\n      });\n     ```\n      You may also pass in an options object whose properties will be\n     fed forward. This enables you to pass `adapterOptions` into the\n     request given to the adapter via the reference.\n      Example\n      ```javascript\n     userRef.load({ adapterOptions: { isPrivate: true } }).then(function(user) {\n       userRef.value() === user;\n     });\n     ```\n     ```app/adapters/user.js\n     import Adapter from '@ember-data/adapter';\n      export default class UserAdapter extends Adapter {\n       findRecord(store, type, id, snapshot) {\n         // In the adapter you will have access to adapterOptions.\n         let adapterOptions = snapshot.adapterOptions;\n       }\n     });\n     ```\n      @method load\n      @public\n     @param {Object} options the options to pass in.\n     @return {Promise} a promise that resolves with the record in this belongs-to relationship.\n     */\n    load(options) {\n      var parentInternalModel = internalModelFactoryFor(this.store).peek(this.parentIdentifier);\n      return parentInternalModel.getBelongsTo(this.key, options);\n    }\n\n    /**\n     Triggers a reload of the value in this relationship. If the\n     remoteType is `\"link\"` Ember Data will use the relationship link to\n     reload the relationship. Otherwise it will reload the record by its\n     id.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n       @belongsTo({ async: true }) user;\n     }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      userRef.reload().then(function(user) {\n        userRef.value() === user\n      });\n     ```\n      You may also pass in an options object whose properties will be\n     fed forward. This enables you to pass `adapterOptions` into the\n     request given to the adapter via the reference. A full example\n     can be found in the `load` method.\n      Example\n      ```javascript\n     userRef.reload({ adapterOptions: { isPrivate: true } })\n     ```\n      @method reload\n      @public\n     @param {Object} options the options to pass in.\n     @return {Promise} a promise that resolves with the record in this belongs-to relationship after the reload has completed.\n     */\n    reload(options) {\n      var parentInternalModel = internalModelFactoryFor(this.store).peek(this.parentIdentifier);\n      return parentInternalModel.reloadBelongsTo(this.key, options).then(internalModel => {\n        return this.value();\n      });\n    }\n  }), (_descriptor$2 = _applyDecoratedDescriptor$2(_class$2.prototype, \"_ref\", [tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor$2(_class$2.prototype, \"_relatedIdentifier\", [emberCachedDecoratorPolyfill.cached, compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$2.prototype, \"_relatedIdentifier\"), _class$2.prototype)), _class$2);\n\n  var _class$1, _descriptor$1, _token$1, _relatedTokenMap;\n  function _initializerDefineProperty$1(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _classPrivateFieldLooseBase$1(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError(\"attempted to use private field on non-instance\"); } return receiver; }\n  var id$1 = 0;\n  function _classPrivateFieldLooseKey$1(name) { return \"__private_\" + id$1++ + \"_\" + name; }\n  function _applyDecoratedDescriptor$1(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  /**\n    @module @ember-data/store\n  */\n  /**\n   A `HasManyReference` is a low-level API that allows users and addon\n   authors to perform meta-operations on a has-many relationship.\n\n   @class HasManyReference\n   @public\n   @extends Reference\n   */\n  var HasManyReference = (_class$1 = (_token$1 = /*#__PURE__*/_classPrivateFieldLooseKey$1(\"token\"), _relatedTokenMap = /*#__PURE__*/_classPrivateFieldLooseKey$1(\"relatedTokenMap\"), class HasManyReference extends Reference {\n    constructor(store, parentIdentifier, hasManyRelationship, key) {\n      super(store, parentIdentifier);\n      // unsubscribe tokens given to us by the notification manager\n      Object.defineProperty(this, _token$1, {\n        writable: true,\n        value: void 0\n      });\n      Object.defineProperty(this, _relatedTokenMap, {\n        writable: true,\n        value: void 0\n      });\n      _initializerDefineProperty$1(this, \"_ref\", _descriptor$1, this);\n      this.key = key;\n      this.hasManyRelationship = hasManyRelationship;\n      this.type = hasManyRelationship.definition.type;\n      this.parent = internalModelFactoryFor(store).peek(parentIdentifier).recordReference;\n      {\n        _classPrivateFieldLooseBase$1(this, _token$1)[_token$1] = store._notificationManager.subscribe(parentIdentifier, (_, bucket, notifiedKey) => {\n          if ((bucket === 'relationships' || bucket === 'property') && notifiedKey === key) {\n            this._ref++;\n          }\n        });\n        _classPrivateFieldLooseBase$1(this, _relatedTokenMap)[_relatedTokenMap] = new Map();\n      }\n      // TODO inverse\n    }\n\n    destroy() {\n      {\n        unsubscribe(_classPrivateFieldLooseBase$1(this, _token$1)[_token$1]);\n        _classPrivateFieldLooseBase$1(this, _token$1)[_token$1] = null;\n        _classPrivateFieldLooseBase$1(this, _relatedTokenMap)[_relatedTokenMap].forEach(token => {\n          unsubscribe(token);\n        });\n        _classPrivateFieldLooseBase$1(this, _relatedTokenMap)[_relatedTokenMap].clear();\n      }\n    }\n    get _relatedIdentifiers() {\n      this._ref; // consume the tracked prop\n\n      var resource = this._resource();\n      var map = _classPrivateFieldLooseBase$1(this, _relatedTokenMap)[_relatedTokenMap];\n      _classPrivateFieldLooseBase$1(this, _relatedTokenMap)[_relatedTokenMap] = new Map();\n      if (resource && resource.data) {\n        return resource.data.map(resourceIdentifier => {\n          var identifier = this.store.identifierCache.getOrCreateRecordIdentifier(resourceIdentifier);\n          var token = map.get(identifier);\n          if (token) {\n            map.delete(identifier);\n          } else {\n            token = this.store._notificationManager.subscribe(identifier, (_, bucket, notifiedKey) => {\n              if (bucket === 'identity' || (bucket === 'attributes' || bucket === 'property') && notifiedKey === 'id') {\n                this._ref++;\n              }\n            });\n          }\n          _classPrivateFieldLooseBase$1(this, _relatedTokenMap)[_relatedTokenMap].set(identifier, token);\n          return identifier;\n        });\n      }\n      map.forEach(token => {\n        this.store._notificationManager.unsubscribe(token);\n      });\n      map.clear();\n      return [];\n    }\n    _resource() {\n      return this.recordData.getHasMany(this.key);\n    }\n\n    /**\n     This returns a string that represents how the reference will be\n     looked up when it is loaded. If the relationship has a link it will\n     use the \"link\" otherwise it defaults to \"id\".\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany({ async: true }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      // get the identifier of the reference\n     if (commentsRef.remoteType() === \"ids\") {\n       let ids = commentsRef.ids();\n     } else if (commentsRef.remoteType() === \"link\") {\n       let link = commentsRef.link();\n     }\n     ```\n      @method remoteType\n     @public\n     @return {String} The name of the remote type. This should either be `link` or `ids`\n     */\n    remoteType() {\n      var value = this._resource();\n      if (value && value.links && value.links.related) {\n        return 'link';\n      }\n      return 'ids';\n    }\n\n    /**\n     `ids()` returns an array of the record IDs in this relationship.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany({ async: true }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      commentsRef.ids(); // ['1']\n     ```\n      @method ids\n      @public\n     @return {Array} The ids in this has-many relationship\n     */\n    ids() {\n      {\n        return this._relatedIdentifiers.map(identifier => identifier.id);\n      }\n    }\n\n    /**\n     `push` can be used to update the data in the relationship and Ember\n     Data will treat the new data as the canonical value of this\n     relationship on the backend.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany({ async: true }) comments;\n     }\n     ```\n      ```\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      commentsRef.ids(); // ['1']\n      commentsRef.push([\n     [{ type: 'comment', id: 2 }],\n     [{ type: 'comment', id: 3 }],\n     ])\n      commentsRef.ids(); // ['2', '3']\n     ```\n      @method push\n      @public\n     @param {Array|Promise} objectOrPromise a promise that resolves to a JSONAPI document object describing the new value of this relationship.\n     @return {ManyArray}\n     */\n    async push(objectOrPromise) {\n      var payload = await RSVP.resolve(objectOrPromise);\n      var array;\n      if (!Array.isArray(payload) && typeof payload === 'object' && Array.isArray(payload.data)) {\n        array = payload.data;\n      } else {\n        array = payload;\n      }\n      var internalModel = internalModelForReference(this);\n      var {\n        store\n      } = this;\n      var identifiers = array.map(obj => {\n        var record;\n        if ('data' in obj) {\n          // TODO deprecate pushing non-valid JSON:API here\n          record = store.push(obj);\n        } else {\n          record = store.push({\n            data: obj\n          });\n        }\n        {\n          var relationshipMeta = this.hasManyRelationship.definition;\n          var _identifier = this.hasManyRelationship.identifier;\n          Debug.assertPolymorphicType(_identifier, relationshipMeta, recordIdentifierFor(record), store);\n        }\n        return recordIdentifierFor(record);\n      });\n      var {\n        graph,\n        identifier\n      } = this.hasManyRelationship;\n      store._backburner.join(() => {\n        graph.push({\n          op: 'replaceRelatedRecords',\n          record: identifier,\n          field: this.key,\n          value: identifiers\n        });\n      });\n\n      // TODO IGOR it seems wrong that we were returning the many array here\n      return internalModel.getHasMany(this.key);\n    }\n    _isLoaded() {\n      var hasRelationshipDataProperty = this.hasManyRelationship.state.hasReceivedData;\n      if (!hasRelationshipDataProperty) {\n        return false;\n      }\n      var members = this.hasManyRelationship.currentState;\n\n      //TODO Igor cleanup\n      return members.every(identifier => {\n        var internalModel = this.store._internalModelForResource(identifier);\n        return internalModel.currentState.isLoaded === true;\n      });\n    }\n\n    /**\n     `value()` synchronously returns the current value of the has-many\n     relationship. Unlike `record.get('relationshipName')`, calling\n     `value()` on a reference does not trigger a fetch if the async\n     relationship is not yet loaded. If the relationship is not loaded\n     it will always return `null`.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany({ async: true }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      post.get('comments').then(function(comments) {\n       commentsRef.value() === comments\n     })\n     ```\n      @method value\n      @public\n     @return {ManyArray}\n     */\n    value() {\n      var internalModel = internalModelForReference(this);\n      if (this._isLoaded()) {\n        return internalModel.getManyArray(this.key);\n      }\n      return null;\n    }\n\n    /**\n     Loads the relationship if it is not already loaded.  If the\n     relationship is already loaded this method does not trigger a new\n     load. This causes a request to the specified\n     relationship link or reloads all items currently in the relationship.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany({ async: true }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      commentsRef.load().then(function(comments) {\n       //...\n     });\n     ```\n      You may also pass in an options object whose properties will be\n     fed forward. This enables you to pass `adapterOptions` into the\n     request given to the adapter via the reference.\n      Example\n      ```javascript\n     commentsRef.load({ adapterOptions: { isPrivate: true } })\n       .then(function(comments) {\n         //...\n       });\n     ```\n      ```app/adapters/comment.js\n     export default ApplicationAdapter.extend({\n       findMany(store, type, id, snapshots) {\n         // In the adapter you will have access to adapterOptions.\n         let adapterOptions = snapshots[0].adapterOptions;\n       }\n     });\n     ```\n      @method load\n      @public\n     @param {Object} options the options to pass in.\n     @return {Promise} a promise that resolves with the ManyArray in\n     this has-many relationship.\n     */\n    load(options) {\n      var internalModel = internalModelForReference(this);\n      return internalModel.getHasMany(this.key, options);\n    }\n\n    /**\n     Reloads this has-many relationship. This causes a request to the specified\n     relationship link or reloads all items currently in the relationship.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany({ async: true }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      commentsRef.reload().then(function(comments) {\n       //...\n     });\n     ```\n      You may also pass in an options object whose properties will be\n     fed forward. This enables you to pass `adapterOptions` into the\n     request given to the adapter via the reference. A full example\n     can be found in the `load` method.\n      Example\n      ```javascript\n     commentsRef.reload({ adapterOptions: { isPrivate: true } })\n     ```\n      @method reload\n      @public\n     @param {Object} options the options to pass in.\n     @return {Promise} a promise that resolves with the ManyArray in this has-many relationship.\n     */\n    reload(options) {\n      var internalModel = internalModelForReference(this);\n      return internalModel.reloadHasMany(this.key, options);\n    }\n  }), (_descriptor$1 = _applyDecoratedDescriptor$1(_class$1.prototype, \"_ref\", [tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor$1(_class$1.prototype, \"_relatedIdentifiers\", [emberCachedDecoratorPolyfill.cached, compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class$1.prototype, \"_relatedIdentifiers\"), _class$1.prototype)), _class$1);\n\n  var _class, _descriptor, _token;\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError(\"attempted to use private field on non-instance\"); } return receiver; }\n  var id = 0;\n  function _classPrivateFieldLooseKey(name) { return \"__private_\" + id++ + \"_\" + name; }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  /**\n    @module @ember-data/store\n  */\n  /**\n     A `RecordReference` is a low-level API that allows users and\n     addon authors to perform meta-operations on a record.\n\n     @class RecordReference\n     @public\n     @extends Reference\n  */\n  var RecordReference = (_class = (_token = /*#__PURE__*/_classPrivateFieldLooseKey(\"token\"), class RecordReference extends Reference {\n    constructor(store, identifier) {\n      super(store, identifier);\n      // unsubscribe token given to us by the notification manager\n      Object.defineProperty(this, _token, {\n        writable: true,\n        value: void 0\n      });\n      _initializerDefineProperty(this, \"_ref\", _descriptor, this);\n      this.store = store;\n      {\n        _classPrivateFieldLooseBase(this, _token)[_token] = store._notificationManager.subscribe(identifier, (_, bucket, notifiedKey) => {\n          if (bucket === 'identity' || (bucket === 'attributes' || bucket === 'property') && notifiedKey === 'id') {\n            this._ref++;\n          }\n        });\n      }\n    }\n    destroy() {\n      {\n        unsubscribe(_classPrivateFieldLooseBase(this, _token)[_token]);\n      }\n    }\n    get type() {\n      return this.identifier().type;\n    }\n    get _id() {\n      this._ref; // consume the tracked prop\n      var identifier = this.identifier();\n      if (identifier) {\n        return identifier.id;\n      }\n      return null;\n    }\n\n    /**\n       The `id` of the record that this reference refers to.\n        Together, the `type` and `id` properties form a composite key for\n       the identity map.\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        userRef.id(); // '1'\n       ```\n        @method id\n      @public\n       @return {String} The id of the record.\n    */\n    id() {\n      {\n        return this._id;\n      }\n    }\n\n    /**\n       The `identifier` of the record that this reference refers to.\n        Together, the `type` and `id` properties form a composite key for\n       the identity map.\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        userRef.identifier(); // '1'\n       ```\n        @method identifier\n      @public\n       @return {String} The identifier of the record.\n    */\n    identifier() {\n      return REFERENCE_CACHE.get(this);\n    }\n\n    /**\n       How the reference will be looked up when it is loaded. Currently\n       this always returns `identity` to signify that a record will be\n       loaded by its `type` and `id`.\n        Example\n        ```javascript\n       const userRef = store.getReference('user', 1);\n        userRef.remoteType(); // 'identity'\n       ```\n        @method remoteType\n       @public\n       @return {String} 'identity'\n    */\n    remoteType() {\n      return 'identity';\n    }\n\n    /**\n      This API allows you to provide a reference with new data. The\n      simplest usage of this API is similar to `store.push`: you provide a\n      normalized hash of data and the object represented by the reference\n      will update.\n       If you pass a promise to `push`, Ember Data will not ask the adapter\n      for the data if another attempt to fetch it is made in the\n      interim. When the promise resolves, the underlying object is updated\n      with the new data, and the promise returned by *this function* is resolved\n      with that object.\n       For example, `recordReference.push(promise)` will be resolved with a\n      record.\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        // provide data for reference\n       userRef.push({\n         data: {\n           id: \"1\",\n           type: \"user\",\n           attributes: {\n             username: \"@user\"\n           }\n         }\n       }).then(function(user) {\n         userRef.value() === user;\n       });\n       ```\n       @method push\n      @public\n      @param objectOrPromise a JSON:API ResourceDocument or a promise resolving to one\n      @return a promise for the value (record or relationship)\n    */\n    push(objectOrPromise) {\n      return RSVP.resolve(objectOrPromise).then(data => {\n        return this.store.push(data);\n      });\n    }\n\n    /**\n      If the entity referred to by the reference is already loaded, it is\n      present as `reference.value`. Otherwise the value returned by this function\n      is `null`.\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        userRef.value(); // user\n       ```\n        @method value\n      @public\n       @return {Model} the record for this RecordReference\n    */\n    value() {\n      if (this.id() !== null) {\n        var internalModel = internalModelForReference(this);\n        if (internalModel && internalModel.currentState.isLoaded) {\n          return internalModel.getRecord();\n        }\n      }\n      return null;\n    }\n\n    /**\n       Triggers a fetch for the backing entity based on its `remoteType`\n       (see `remoteType` definitions per reference type).\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        // load user (via store.find)\n       userRef.load().then(...)\n       ```\n        @method load\n      @public\n       @return {Promise<record>} the record for this RecordReference\n    */\n    load() {\n      var id = this.id();\n      if (id !== null) {\n        return this.store.findRecord(this.type, id);\n      }\n      throw new Error(`Unable to fetch record of type ${this.type} without an id`);\n    }\n\n    /**\n       Reloads the record if it is already loaded. If the record is not\n       loaded it will load the record via `store.findRecord`\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        // or trigger a reload\n       userRef.reload().then(...)\n       ```\n        @method reload\n      @public\n       @return {Promise<record>} the record for this RecordReference\n    */\n    reload() {\n      var id = this.id();\n      if (id !== null) {\n        return this.store.findRecord(this.type, id, {\n          reload: true\n        });\n      }\n      throw new Error(`Unable to fetch record of type ${this.type} without an id`);\n    }\n  }), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_ref\", [tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_id\", [emberCachedDecoratorPolyfill.cached, compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"_id\"), _class.prototype)), _class);\n\n  /**\n    @module @ember-data/store\n  */\n  /*\n    This file encapsulates the various states that a record can transition\n    through during its lifecycle.\n  */\n  /**\n    ### State\n\n    Each record has a `currentState` property that explicitly tracks what\n    state a record is in at any given time. For instance, if a record is\n    newly created and has not yet been sent to the adapter to be saved,\n    it would be in the `root.loaded.created.uncommitted` state.  If a\n    record has had local modifications made to it that are in the\n    process of being saved, the record would be in the\n    `root.loaded.updated.inFlight` state. (This state path will be\n    explained in more detail below.)\n\n    Events are sent by the record or its store to the record's\n    `currentState` property. How the state reacts to these events is\n    dependent on which state it is in. In some states, certain events\n    will be invalid and will cause an exception to be raised.\n\n    States are hierarchical and every state is a sub-state of the\n    `RootState`. For example, a record can be in the\n    `root.deleted.uncommitted` state then transitions into the\n    `root.deleted.inFlight` state. If a child state does not implement\n    an event handler, the state manager will attempt to invoke the event\n    on all parent states until the root state is reached. The state\n    hierarchy of a record is described in terms of a path string. You\n    can determine a record's current state by getting the state's\n    `stateName` property:\n\n    ```javascript\n    record.get('currentState.stateName');\n    //=> \"root.created.uncommitted\"\n     ```\n\n    The hierarchy of valid states that ship with ember data looks like\n    this:\n\n    ```text\n    * root\n      * deleted\n        * saved\n        * uncommitted\n        * inFlight\n      * empty\n      * loaded\n        * created\n          * uncommitted\n          * inFlight\n        * saved\n        * updated\n          * uncommitted\n          * inFlight\n      * loading\n    ```\n\n    The `Model` states are themselves stateless. What that means is\n    that, the hierarchical states that each of *those* points to is a\n    shared data structure. For performance reasons, instead of each\n    record getting its own copy of the hierarchy of states, each record\n    points to this global, immutable shared instance. How does a state\n    know which record it should be acting on? We pass the record\n    instance into the state's event handlers as the first argument.\n\n    The record passed as the first parameter is where you should stash\n    state about the record if needed; you should never store data on the state\n    object itself.\n\n    ### Events and Flags\n\n    A state may implement zero or more events and flags.\n\n    #### Events\n\n    Events are named functions that are invoked when sent to a record. The\n    record will first look for a method with the given name on the\n    current state. If no method is found, it will search the current\n    state's parent, and then its grandparent, and so on until reaching\n    the top of the hierarchy. If the root is reached without an event\n    handler being found, an exception will be raised. This can be very\n    helpful when debugging new features.\n\n    Here's an example implementation of a state with a `myEvent` event handler:\n\n    ```javascript\n    aState: State.create({\n      myEvent: function(manager, param) {\n        console.log(\"Received myEvent with\", param);\n      }\n    })\n    ```\n\n    To trigger this event:\n\n    ```javascript\n    record.send('myEvent', 'foo');\n    //=> \"Received myEvent with foo\"\n    ```\n\n    Note that an optional parameter can be sent to a record's `send()` method,\n    which will be passed as the second parameter to the event handler.\n\n    Events should transition to a different state if appropriate. This can be\n    done by calling the record's `transitionTo()` method with a path to the\n    desired state. The state manager will attempt to resolve the state path\n    relative to the current state. If no state is found at that path, it will\n    attempt to resolve it relative to the current state's parent, and then its\n    parent, and so on until the root is reached. For example, imagine a hierarchy\n    like this:\n\n        * created\n          * uncommitted <-- currentState\n          * inFlight\n        * updated\n          * inFlight\n\n    If we are currently in the `uncommitted` state, calling\n    `transitionTo('inFlight')` would transition to the `created.inFlight` state,\n    while calling `transitionTo('updated.inFlight')` would transition to\n    the `updated.inFlight` state.\n\n    Remember that *only events* should ever cause a state transition. You should\n    never call `transitionTo()` from outside a state's event handler. If you are\n    tempted to do so, create a new event and send that to the state manager.\n\n    #### Flags\n\n    Flags are Boolean values that can be used to introspect a record's current\n    state in a more user-friendly way than examining its state path. For example,\n    instead of doing this:\n\n    ```javascript\n    var statePath = record.get('stateManager.currentPath');\n    if (statePath === 'created.inFlight') {\n      doSomething();\n    }\n    ```\n\n    You can say:\n\n    ```javascript\n    if (record.get('isNew') && record.get('isSaving')) {\n      doSomething();\n    }\n    ```\n\n    If your state does not set a value for a given flag, the value will\n    be inherited from its parent (or the first place in the state hierarchy\n    where it is defined).\n\n    The current set of flags are defined below. If you want to add a new flag,\n    in addition to the area below, you will also need to declare it in the\n    `Model` class.\n\n\n     * [isEmpty](Model/properties/isEmpty?anchor=isEmpty)\n     * [isLoading](Model/properties/isLoading?anchor=isLoading)\n     * [isLoaded](Model/properties/isLoaded?anchor=isLoaded)\n     * [hasDirtyAttributes](Model/properties/hasDirtyAttributes?anchor=hasDirtyAttributes)\n     * [isSaving](Model/properties/isSaving?anchor=isSaving)\n     * [isDeleted](Model/properties/isDeleted?anchor=isDeleted)\n     * [isNew](Model/properties/isNew?anchor=isNew)\n     * [isValid](Model/properties/isValid?anchor=isValid)\n\n    @class RootState\n    @internal\n  */\n  function didSetProperty(internalModel, context) {\n    if (context.isDirty) {\n      internalModel.send('becomeDirty');\n    } else {\n      internalModel.send('propertyWasReset');\n    }\n  }\n\n  // Implementation notes:\n  //\n  // Each state has a boolean value for all of the following flags:\n  //\n  // * isLoaded: The record has a populated `data` property. When a\n  //   record is loaded via `store.find`, `isLoaded` is false\n  //   until the adapter sets it. When a record is created locally,\n  //   its `isLoaded` property is always true.\n  // * isDirty: The record has local changes that have not yet been\n  //   saved by the adapter. This includes records that have been\n  //   created (but not yet saved) or deleted.\n  // * isSaving: The record has been committed, but\n  //   the adapter has not yet acknowledged that the changes have\n  //   been persisted to the backend.\n  // * isDeleted: The record was marked for deletion. When `isDeleted`\n  //   is true and `isDirty` is true, the record is deleted locally\n  //   but the deletion was not yet persisted. When `isSaving` is\n  //   true, the change is in-flight. When both `isDirty` and\n  //   `isSaving` are false, the change has persisted.\n  // * isNew: The record was created on the client and the adapter\n  //   did not yet report that it was successfully saved.\n  // * isValid: The adapter did not report any server-side validation\n  //   failures.\n\n  // The dirty state is a abstract state whose functionality is\n  // shared between the `created` and `updated` states.\n  //\n  // The deleted state shares the `isDirty` flag with the\n  // subclasses of `DirtyState`, but with a very different\n  // implementation.\n  //\n  // Dirty states have three child states:\n  //\n  // `uncommitted`: the store has not yet handed off the record\n  //   to be saved.\n  // `inFlight`: the store has handed off the record to be saved,\n  //   but the adapter has not yet acknowledged success.\n  // `invalid`: the record has invalid information and cannot be\n  //   sent to the adapter yet.\n  var DirtyState = {\n    initialState: 'uncommitted',\n    // FLAGS\n    isDirty: true,\n    // SUBSTATES\n\n    // When a record first becomes dirty, it is `uncommitted`.\n    // This means that there are local pending changes, but they\n    // have not yet begun to be saved, and are not invalid.\n    uncommitted: {\n      // EVENTS\n      didSetProperty,\n      //TODO(Igor) reloading now triggers a\n      //loadingData event, though it seems fine?\n      loadingData() {},\n      becameValid() {},\n      propertyWasReset(internalModel, name) {\n        if (!internalModel.hasChangedAttributes()) {\n          internalModel.send('rolledBack');\n        }\n      },\n      pushedData(internalModel) {\n        if (!internalModel.hasChangedAttributes()) {\n          internalModel.transitionTo('loaded.saved');\n        }\n      },\n      becomeDirty() {},\n      willCommit(internalModel) {\n        internalModel.transitionTo('inFlight');\n      },\n      reloadRecord(internalModel, {\n        resolve,\n        options\n      }) {\n        resolve(internalModel.store._reloadRecord(internalModel, options));\n      },\n      rolledBack(internalModel) {\n        internalModel.transitionTo('loaded.saved');\n        internalModel.triggerLater('rolledBack');\n      },\n      becameInvalid(internalModel) {\n        internalModel.transitionTo('invalid');\n      },\n      rollback(internalModel) {\n        internalModel.rollbackAttributes();\n        internalModel.triggerLater('ready');\n      }\n    },\n    // Once a record has been handed off to the adapter to be\n    // saved, it is in the 'in flight' state. Changes to the\n    // record cannot be made during this window.\n    inFlight: {\n      // FLAGS\n      isSaving: true,\n      // EVENTS\n      didSetProperty,\n      becomeDirty() {},\n      pushedData() {},\n      unloadRecord: assertAgainstUnloadRecord,\n      // TODO: More robust semantics around save-while-in-flight\n      willCommit() {},\n      didCommit(internalModel) {\n        internalModel.transitionTo('saved');\n        internalModel.send('invokeLifecycleCallbacks', this.dirtyType);\n      },\n      rolledBack(internalModel) {\n        internalModel.triggerLater('rolledBack');\n      },\n      becameInvalid(internalModel) {\n        internalModel.transitionTo('invalid');\n        internalModel.send('invokeLifecycleCallbacks');\n      },\n      becameError(internalModel) {\n        internalModel.transitionTo('uncommitted');\n        internalModel.triggerLater('becameError', internalModel);\n      }\n    },\n    // A record is in the `invalid` if the adapter has indicated\n    // the the record failed server-side invalidations.\n    invalid: {\n      // FLAGS\n      isValid: false,\n      // EVENTS\n      deleteRecord(internalModel) {\n        internalModel.transitionTo('deleted.uncommitted');\n      },\n      didSetProperty(internalModel, context) {\n        internalModel.getRecord().errors._remove(context.name);\n        didSetProperty(internalModel, context);\n        if (!internalModel.hasErrors()) {\n          this.becameValid(internalModel);\n        }\n      },\n      becameInvalid() {},\n      becomeDirty() {},\n      pushedData() {},\n      willCommit(internalModel) {\n        clearErrorMessages(internalModel);\n        internalModel.transitionTo('inFlight');\n      },\n      rolledBack(internalModel) {\n        clearErrorMessages(internalModel);\n        internalModel.transitionTo('loaded.saved');\n        internalModel.triggerLater('ready');\n      },\n      becameValid(internalModel) {\n        internalModel.transitionTo('uncommitted');\n      },\n      invokeLifecycleCallbacks(internalModel) {\n        internalModel.triggerLater('becameInvalid', internalModel);\n      }\n    }\n  };\n\n  // The created and updated states are created outside the state\n  // chart so we can reopen their substates and add mixins as\n  // necessary.\n\n  function deepClone(object) {\n    var clone = {};\n    var value;\n    for (var prop in object) {\n      value = object[prop];\n      if (value && typeof value === 'object') {\n        clone[prop] = deepClone(value);\n      } else {\n        clone[prop] = value;\n      }\n    }\n    return clone;\n  }\n  function mixin(original, hash) {\n    for (var prop in hash) {\n      original[prop] = hash[prop];\n    }\n    return original;\n  }\n  function dirtyState(options) {\n    var newState = deepClone(DirtyState);\n    return mixin(newState, options);\n  }\n  var createdState = dirtyState({\n    dirtyType: 'created',\n    // FLAGS\n    isNew: true,\n    setup(internalModel) {\n      internalModel.store.recordArrayManager.recordDidChange(internalModel.identifier);\n    }\n  });\n  createdState.invalid.rolledBack = function (internalModel) {\n    internalModel.transitionTo('deleted.saved');\n    internalModel.triggerLater('rolledBack');\n  };\n  createdState.uncommitted.rolledBack = function (internalModel) {\n    internalModel.transitionTo('deleted.saved');\n    internalModel.triggerLater('rolledBack');\n  };\n  var updatedState = dirtyState({\n    dirtyType: 'updated'\n  });\n  function createdStateDeleteRecord(internalModel) {\n    internalModel.transitionTo('deleted.saved');\n    internalModel.send('invokeLifecycleCallbacks');\n  }\n  createdState.uncommitted.deleteRecord = createdStateDeleteRecord;\n  createdState.invalid.deleteRecord = createdStateDeleteRecord;\n  createdState.uncommitted.rollback = function (internalModel) {\n    DirtyState.uncommitted.rollback.apply(this, arguments);\n    internalModel.transitionTo('deleted.saved');\n  };\n  createdState.uncommitted.pushedData = function (internalModel) {\n    // TODO @runspired consider where to do this once we kill off state machine\n    {\n      internalModel.store._notificationManager.notify(internalModel.identifier, 'identity');\n    }\n    internalModel.transitionTo('loaded.updated.uncommitted');\n    internalModel.triggerLater('didLoad');\n  };\n  createdState.uncommitted.propertyWasReset = function () {};\n  function assertAgainstUnloadRecord(internalModel) {\n    (debug.assert('You can only unload a record which is not inFlight. `' + internalModel + '`', false));\n  }\n  updatedState.invalid.becameValid = function (internalModel) {\n    // we're eagerly transition into the loaded.saved state, even though we could\n    // be still dirty; but the setup hook of the loaded.saved state checks for\n    // dirty attributes and transitions into the corresponding dirty state\n    internalModel.transitionTo('loaded.saved');\n  };\n  updatedState.inFlight.unloadRecord = assertAgainstUnloadRecord;\n  updatedState.uncommitted.deleteRecord = function (internalModel) {\n    internalModel.transitionTo('deleted.uncommitted');\n  };\n  updatedState.invalid.rolledBack = function (internalModel) {\n    clearErrorMessages(internalModel);\n    internalModel.transitionTo('loaded.saved');\n    internalModel.triggerLater('rolledBack');\n  };\n  var RootState = {\n    // FLAGS\n    isEmpty: false,\n    isLoading: false,\n    isLoaded: false,\n    isDirty: false,\n    isSaving: false,\n    isDeleted: false,\n    isNew: false,\n    isValid: true,\n    // DEFAULT EVENTS\n\n    // Trying to roll back if you're not in the dirty state\n    // doesn't change your state. For example, if you're in the\n    // in-flight state, rolling back the record doesn't move\n    // you out of the in-flight state.\n    rolledBack() {},\n    unloadRecord(internalModel) {},\n    propertyWasReset() {},\n    // SUBSTATES\n\n    // A record begins its lifecycle in the `empty` state.\n    // If its data will come from the adapter, it will\n    // transition into the `loading` state. Otherwise, if\n    // the record is being created on the client, it will\n    // transition into the `created` state.\n    empty: {\n      isEmpty: true,\n      // EVENTS\n      loadingData(internalModel, promise) {\n        internalModel.transitionTo('loading');\n      },\n      loadedData(internalModel) {\n        internalModel.transitionTo('loaded.created.uncommitted');\n        internalModel.triggerLater('ready');\n      },\n      pushedData(internalModel) {\n        internalModel.transitionTo('loaded.saved');\n        internalModel.triggerLater('didLoad');\n        internalModel.triggerLater('ready');\n      },\n      // Record is already in an empty state, triggering transition to empty here\n      // produce an error.\n      notFound() {}\n    },\n    // A record enters this state when the store asks\n    // the adapter for its data. It remains in this state\n    // until the adapter provides the requested data.\n    //\n    // Usually, this process is asynchronous, using an\n    // XHR to retrieve the data.\n    loading: {\n      // FLAGS\n      isLoading: true,\n      exit(internalModel) {\n        internalModel._promiseProxy = null;\n      },\n      loadingData() {},\n      // EVENTS\n      pushedData(internalModel) {\n        internalModel.transitionTo('loaded.saved');\n        internalModel.triggerLater('didLoad');\n        internalModel.triggerLater('ready');\n        //TODO this seems out of place here\n        internalModel.didCleanError();\n      },\n      becameError(internalModel) {\n        internalModel.triggerLater('becameError', internalModel);\n      },\n      notFound(internalModel) {\n        internalModel.transitionTo('empty');\n      }\n    },\n    // A record enters this state when its data is populated.\n    // Most of a record's lifecycle is spent inside substates\n    // of the `loaded` state.\n    loaded: {\n      initialState: 'saved',\n      // FLAGS\n      isLoaded: true,\n      //TODO(Igor) Reloading now triggers a loadingData event,\n      //but it should be ok?\n      loadingData() {},\n      // SUBSTATES\n\n      // If there are no local changes to a record, it remains\n      // in the `saved` state.\n      saved: {\n        setup(internalModel) {\n          if (internalModel.hasChangedAttributes()) {\n            internalModel.adapterDidDirty();\n          }\n        },\n        // EVENTS\n        didSetProperty,\n        pushedData() {},\n        becomeDirty(internalModel) {\n          internalModel.transitionTo('updated.uncommitted');\n        },\n        willCommit(internalModel) {\n          internalModel.transitionTo('updated.inFlight');\n        },\n        reloadRecord(internalModel, {\n          resolve,\n          options\n        }) {\n        },\n        deleteRecord(internalModel) {\n          internalModel.transitionTo('deleted.uncommitted');\n        },\n        unloadRecord(internalModel) {},\n        didCommit() {},\n        // loaded.saved.notFound would be triggered by a failed\n        // `reload()` on an unchanged record\n        notFound() {}\n      },\n      // A record is in this state after it has been locally\n      // created but before the adapter has indicated that\n      // it has been saved.\n      created: createdState,\n      // A record is in this state if it has already been\n      // saved to the server, but there are new local changes\n      // that have not yet been saved.\n      updated: updatedState\n    },\n    // A record is in this state if it was deleted from the store.\n    deleted: {\n      initialState: 'uncommitted',\n      dirtyType: 'deleted',\n      // FLAGS\n      isDeleted: true,\n      isLoaded: true,\n      isDirty: true,\n      // TRANSITIONS\n      setup(internalModel) {\n        internalModel.store.recordArrayManager.recordDidChange(internalModel.identifier);\n      },\n      // SUBSTATES\n\n      // When a record is deleted, it enters the `start`\n      // state. It will exit this state when the record\n      // starts to commit.\n      uncommitted: {\n        // EVENTS\n\n        willCommit(internalModel) {\n          internalModel.transitionTo('inFlight');\n        },\n        rollback(internalModel) {\n          internalModel.rollbackAttributes();\n          internalModel.triggerLater('ready');\n        },\n        pushedData() {},\n        becomeDirty() {},\n        deleteRecord() {},\n        rolledBack(internalModel) {\n          internalModel.transitionTo('loaded.saved');\n          internalModel.triggerLater('ready');\n          internalModel.triggerLater('rolledBack');\n        }\n      },\n      // After a record starts committing, but\n      // before the adapter indicates that the deletion\n      // has saved to the server, a record is in the\n      // `inFlight` substate of `deleted`.\n      inFlight: {\n        // FLAGS\n        isSaving: true,\n        // EVENTS\n\n        unloadRecord: assertAgainstUnloadRecord,\n        // TODO: More robust semantics around save-while-in-flight\n        willCommit() {},\n        didCommit(internalModel) {\n          internalModel.transitionTo('saved');\n          internalModel.send('invokeLifecycleCallbacks');\n        },\n        becameError(internalModel) {\n          internalModel.transitionTo('uncommitted');\n          internalModel.triggerLater('becameError', internalModel);\n        },\n        becameInvalid(internalModel) {\n          internalModel.transitionTo('invalid');\n          internalModel.triggerLater('becameInvalid', internalModel);\n        }\n      },\n      // Once the adapter indicates that the deletion has\n      // been saved, the record enters the `saved` substate\n      // of `deleted`.\n      saved: {\n        // FLAGS\n        isDirty: false,\n        setup(internalModel) {\n          internalModel.removeFromInverseRelationships();\n        },\n        invokeLifecycleCallbacks(internalModel) {\n          internalModel.triggerLater('didDelete', internalModel);\n          internalModel.triggerLater('didCommit', internalModel);\n        },\n        willCommit() {},\n        didCommit() {},\n        pushedData() {}\n      },\n      invalid: {\n        isValid: false,\n        didSetProperty(internalModel, context) {\n          internalModel.getRecord().errors._remove(context.name);\n          didSetProperty(internalModel, context);\n          if (!internalModel.hasErrors()) {\n            this.becameValid(internalModel);\n          }\n        },\n        becameInvalid() {},\n        becomeDirty() {},\n        deleteRecord() {},\n        willCommit() {},\n        rolledBack(internalModel) {\n          clearErrorMessages(internalModel);\n          internalModel.transitionTo('loaded.saved');\n          internalModel.triggerLater('ready');\n        },\n        becameValid(internalModel) {\n          internalModel.transitionTo('uncommitted');\n        }\n      }\n    },\n    invokeLifecycleCallbacks(internalModel, dirtyType) {\n      if (dirtyType === 'created') {\n        internalModel.triggerLater('didCreate', internalModel);\n      } else {\n        internalModel.triggerLater('didUpdate', internalModel);\n      }\n      internalModel.triggerLater('didCommit', internalModel);\n    }\n  };\n  function wireState(object, parent, name) {\n    // TODO: Use Object.create and copy instead\n    object = mixin(parent ? Object.create(parent) : {}, object);\n    object.parentState = parent;\n    object.stateName = name;\n    for (var prop in object) {\n      if (!Object.prototype.hasOwnProperty.call(object, prop) || prop === 'parentState' || prop === 'stateName') {\n        continue;\n      }\n      if (typeof object[prop] === 'object') {\n        object[prop] = wireState(object[prop], object, name + '.' + prop);\n      }\n    }\n    return object;\n  }\n  function clearErrorMessages(internalModel) {\n    internalModel.getRecord().errors._clear();\n  }\n  var RootState$1 = wireState(RootState, null, 'root');\n\n  // move to TS hacks module that we can delete when this is no longer a necessary recast\n\n  /**\n    @module @ember-data/store\n  */\n\n  var {\n    hasOwnProperty\n  } = Object.prototype;\n  var ManyArray;\n  var PromiseBelongsTo;\n  var _PromiseManyArray; // TODO find a way to get the klass type here\n\n  var _found$1 = false;\n  var _getModelPackage;\n  {\n    _getModelPackage = function () {\n      if (!_found$1) {\n        var modelPackage = require('@ember-data/model/-private');\n        ({\n          ManyArray,\n          PromiseBelongsTo,\n          PromiseManyArray: _PromiseManyArray\n        } = modelPackage);\n        if (ManyArray && PromiseBelongsTo && _PromiseManyArray) {\n          _found$1 = true;\n        }\n      }\n      return _found$1;\n    };\n  }\n  /*\n    The TransitionChainMap caches the `state.enters`, `state.setups`, and final state reached\n    when transitioning from one state to another, so that future transitions can replay the\n    transition without needing to walk the state tree, collect these hook calls and determine\n     the state to transition into.\n\n     A future optimization would be to build a single chained method out of the collected enters\n     and setups. It may also be faster to do a two level cache (from: { to }) instead of caching based\n     on a key that adds the two together.\n   */\n  var TransitionChainMap = Object.create(null);\n  var _extractPivotNameCache = Object.create(null);\n  var _splitOnDotCache = Object.create(null);\n  function splitOnDot(name) {\n    return _splitOnDotCache[name] || (_splitOnDotCache[name] = name.split('.'));\n  }\n  function extractPivotName(name) {\n    return _extractPivotNameCache[name] || (_extractPivotNameCache[name] = splitOnDot(name)[0]);\n  }\n  class InternalModel {\n    // Not typed yet\n\n    constructor(store, identifier) {\n      this.store = store;\n      this.identifier = identifier;\n      {\n        _getModelPackage();\n      }\n      this._id = identifier.id;\n      this._isUpdatingId = false;\n      this.modelName = identifier.type;\n      this.clientId = identifier.lid;\n      this.__recordData = null;\n      this._promiseProxy = null;\n      this._isDestroyed = false;\n      this._doNotDestroy = false;\n      this.isError = false;\n      this._pendingRecordArrayManagerFlush = false; // used by the recordArrayManager\n\n      // During dematerialization we don't want to rematerialize the record.  The\n      // reason this might happen is that dematerialization removes records from\n      // record arrays,  and Ember arrays will always `objectAt(0)` and\n      // `objectAt(len - 1)` to test whether or not `firstObject` or `lastObject`\n      // have changed.\n      this._isDematerializing = false;\n      this._scheduledDestroy = null;\n      this._record = null;\n      this.error = null;\n\n      // caches for lazy getters\n      this._modelClass = null;\n      this.__recordArrays = null;\n      this._recordReference = null;\n      this.__recordData = null;\n      this.error = null;\n\n      // other caches\n      // class fields have [[DEFINE]] semantics which are significantly slower than [[SET]] semantics here\n      this._manyArrayCache = Object.create(null);\n      this._relationshipPromisesCache = Object.create(null);\n      this._relationshipProxyCache = Object.create(null);\n      this.references = Object.create(null);\n      this._deferredTriggers = [];\n      this.currentState = RootState$1.empty;\n    }\n    get id() {\n      return this.identifier.id;\n    }\n    set id(value) {\n      if (value !== this._id) {\n        var newIdentifier = {\n          type: this.identifier.type,\n          lid: this.identifier.lid,\n          id: value\n        };\n        identifierCacheFor(this.store).updateRecordIdentifier(this.identifier, newIdentifier);\n        this.notifyPropertyChange('id');\n      }\n    }\n    get modelClass() {\n      if (this.store.modelFor) {\n        return this._modelClass || (this._modelClass = this.store.modelFor(this.modelName));\n      }\n    }\n    get recordReference() {\n      if (this._recordReference === null) {\n        this._recordReference = new RecordReference(this.store, this.identifier);\n      }\n      return this._recordReference;\n    }\n    get _recordData() {\n      if (this.__recordData === null) {\n        var recordData = this.store._createRecordData(this.identifier);\n        this.__recordData = recordData;\n        return recordData;\n      }\n      return this.__recordData;\n    }\n    set _recordData(newValue) {\n      this.__recordData = newValue;\n    }\n    isHiddenFromRecordArrays() {\n      // During dematerialization we don't want to rematerialize the record.\n      // recordWasDeleted can cause other records to rematerialize because it\n      // removes the internal model from the array and Ember arrays will always\n      // `objectAt(0)` and `objectAt(len -1)` to check whether `firstObject` or\n      // `lastObject` have changed.  When this happens we don't want those\n      // models to rematerialize their records.\n\n      // eager checks to avoid instantiating record data if we are empty or loading\n      if (this.currentState.isEmpty) {\n        return true;\n      }\n      {\n        if (this.currentState.isLoading) {\n          return false;\n        }\n      }\n      var isRecordFullyDeleted;\n      {\n        isRecordFullyDeleted = this._isRecordFullyDeleted();\n      }\n      return this._isDematerializing || this.hasScheduledDestroy() || this.isDestroyed || isRecordFullyDeleted;\n    }\n    _isRecordFullyDeleted() {\n      {\n        if (this._recordData.isDeletionCommitted && this._recordData.isDeletionCommitted()) {\n          return true;\n        } else if (this._recordData.isNew && this._recordData.isDeleted && this._recordData.isNew() && this._recordData.isDeleted()) {\n          return true;\n        } else {\n          return this.currentState.stateName === 'root.deleted.saved';\n        }\n      }\n    }\n    isDeleted() {\n      {\n        if (this._recordData.isDeleted) {\n          return this._recordData.isDeleted();\n        } else {\n          return this.currentState.isDeleted;\n        }\n      }\n    }\n    isNew() {\n      {\n        if (this._recordData.isNew) {\n          return this._recordData.isNew();\n        } else {\n          return this.currentState.isNew;\n        }\n      }\n    }\n    getRecord(properties) {\n      if (!this._record && !this._isDematerializing) {\n        var {\n          store: _store\n        } = this;\n        {\n          this._record = _store._instantiateRecord(this, this.modelName, this._recordData, this.identifier, properties);\n        }\n        this._triggerDeferredTriggers();\n      }\n      return this._record;\n    }\n    dematerializeRecord() {\n      this._isDematerializing = true;\n\n      // TODO IGOR add a test that fails when this is missing, something that involves canceling a destroy\n      // and the destroy not happening, and then later on trying to destroy\n      this._doNotDestroy = false;\n      if (this._record) {\n        {\n          this.store.teardownRecord(this._record);\n        }\n      }\n\n      // move to an empty never-loaded state\n      // ensure any record notifications happen prior to us\n      // unseting the record but after we've triggered\n      // destroy\n      this.store._backburner.join(() => {\n        this._recordData.unloadRecord();\n      });\n      if (this._record) {\n        Object.keys(this._relationshipProxyCache).forEach(key => {\n          if (this._relationshipProxyCache[key].destroy) {\n            this._relationshipProxyCache[key].destroy();\n          }\n          delete this._relationshipProxyCache[key];\n        });\n      }\n      this._record = null;\n      this.error = null;\n      this._previousState = this.currentState;\n      this.currentState = RootState$1.empty;\n      {\n        this.store.recordArrayManager.recordDidChange(this.identifier);\n      }\n    }\n    deleteRecord() {\n      runloop.run(() => {\n        var backburner = this.store._backburner;\n        backburner.run(() => {\n          {\n            if (this._recordData.setIsDeleted) {\n              this._recordData.setIsDeleted(true);\n            }\n          }\n          if (this.isNew()) {\n            // destroyRecord follows up deleteRecord with save(). This prevents an unecessary save for a new record\n            this._deletedRecordWasNew = true;\n            this.send('deleteRecord');\n            this._triggerDeferredTriggers();\n            this.unloadRecord();\n          } else {\n            this.send('deleteRecord');\n          }\n        });\n      });\n    }\n    save(options) {\n      if (this._deletedRecordWasNew) {\n        return RSVP.Promise.resolve();\n      }\n      var promiseLabel = 'DS: Model#save ' + this;\n      var resolver = RSVP__default[\"default\"].defer(promiseLabel);\n      {\n        // Casting to narrow due to the feature flag paths inside scheduleSave\n        return this.store.scheduleSave(this, resolver, options);\n      }\n    }\n    reload(options) {\n      {\n        if (!options) {\n          options = {};\n        }\n        var internalModel = this;\n        return internalModel.store._reloadRecord(internalModel, options).then(function () {\n          //TODO NOW seems like we shouldn't need to do this\n          return internalModel;\n        }, function (error) {\n          throw error;\n        }, 'DS: Model#reload complete, update flags');\n      }\n    }\n\n    /*\n      Unload the record for this internal model. This will cause the record to be\n      destroyed and freed up for garbage collection. It will also do a check\n      for cleaning up internal models.\n       This check is performed by first computing the set of related internal\n      models. If all records in this set are unloaded, then the entire set is\n      destroyed. Otherwise, nothing in the set is destroyed.\n       This means that this internal model will be freed up for garbage collection\n      once all models that refer to it via some relationship are also unloaded.\n    */\n    unloadRecord() {\n      if (this.isDestroyed) {\n        return;\n      }\n      this.send('unloadRecord');\n      this.dematerializeRecord();\n      if (this._scheduledDestroy === null) {\n        this._scheduledDestroy = runloop._backburner.schedule('destroy', this, '_checkForOrphanedInternalModels');\n      }\n    }\n    hasScheduledDestroy() {\n      return !!this._scheduledDestroy;\n    }\n    cancelDestroy() {\n      (!(!this.isDestroyed) && debug.assert(`You cannot cancel the destruction of an InternalModel once it has already been destroyed`, !this.isDestroyed));\n      this._doNotDestroy = true;\n      this._isDematerializing = false;\n      runloop.cancel(this._scheduledDestroy);\n      this._scheduledDestroy = null;\n    }\n\n    // typically, we prefer to async destroy this lets us batch cleanup work.\n    // Unfortunately, some scenarios where that is not possible. Such as:\n    //\n    // ```js\n    // const record = store.findRecord(‘record’, 1);\n    // record.unloadRecord();\n    // store.createRecord(‘record’, 1);\n    // ```\n    //\n    // In those scenarios, we make that model's cleanup work, sync.\n    //\n    destroySync() {\n      if (this._isDematerializing) {\n        this.cancelDestroy();\n      }\n      this._checkForOrphanedInternalModels();\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      }\n\n      // just in-case we are not one of the orphaned, we should still\n      // still destroy ourselves\n      this.destroy();\n    }\n    _checkForOrphanedInternalModels() {\n      this._isDematerializing = false;\n      this._scheduledDestroy = null;\n      if (this.isDestroyed) {\n        return;\n      }\n    }\n    _findBelongsTo(key, resource, relationshipMeta, options) {\n      // TODO @runspired follow up if parent isNew then we should not be attempting load here\n      return this.store._findBelongsToByJsonApiResource(resource, this, relationshipMeta, options).then(internalModel => handleCompletedRelationshipRequest(this, key, resource._relationship, internalModel, null), e => handleCompletedRelationshipRequest(this, key, resource._relationship, null, e));\n    }\n    getBelongsTo(key, options) {\n      var resource = this._recordData.getBelongsTo(key);\n      var identifier = resource && resource.data ? identifierCacheFor(this.store).getOrCreateRecordIdentifier(resource.data) : null;\n      var relationshipMeta = this.store._relationshipMetaFor(this.modelName, null, key);\n      var store = this.store;\n      var parentInternalModel = this;\n      var async = relationshipMeta.options.async;\n      var isAsync = typeof async === 'undefined' ? true : async;\n      var _belongsToState = {\n        key,\n        store,\n        originatingInternalModel: this,\n        modelName: relationshipMeta.type\n      };\n      if (isAsync) {\n        var internalModel = identifier !== null ? store._internalModelForResource(identifier) : null;\n        if (resource._relationship.state.hasFailedLoadAttempt) {\n          return this._relationshipProxyCache[key];\n        }\n        var promise = this._findBelongsTo(key, resource, relationshipMeta, options);\n        return this._updatePromiseProxyFor('belongsTo', key, {\n          promise,\n          content: internalModel ? internalModel.getRecord() : null,\n          _belongsToState\n        });\n      } else {\n        if (identifier === null) {\n          return null;\n        } else {\n          var _internalModel2 = store._internalModelForResource(identifier);\n          var toReturn = _internalModel2.getRecord();\n          (!(toReturn === null || !toReturn.isEmpty) && debug.assert(\"You looked up the '\" + key + \"' relationship on a '\" + parentInternalModel.modelName + \"' with id \" + parentInternalModel.id + ' but some of the associated records were not loaded. Either make sure they are all loaded together with the parent record, or specify that the relationship is async (`belongsTo({ async: true })`)', toReturn === null || !toReturn.isEmpty));\n          return toReturn;\n        }\n      }\n    }\n    getManyArray(key, definition) {\n      {\n        var manyArray = this._manyArrayCache[key];\n        if (!definition) {\n          var graphFor = require('@ember-data/record-data/-private').graphFor;\n          definition = graphFor(this.store).get(this.identifier, key).definition;\n        }\n        if (!manyArray) {\n          manyArray = ManyArray.create({\n            store: this.store,\n            type: this.store.modelFor(definition.type),\n            recordData: this._recordData,\n            key,\n            isPolymorphic: definition.isPolymorphic,\n            isAsync: definition.isAsync,\n            _inverseIsAsync: definition.inverseIsAsync,\n            internalModel: this,\n            isLoaded: !definition.isAsync\n          });\n          this._manyArrayCache[key] = manyArray;\n        }\n        return manyArray;\n      }\n    }\n    fetchAsyncHasMany(key, relationship, manyArray, options) {\n      {\n        var loadingPromise = this._relationshipPromisesCache[key];\n        if (loadingPromise) {\n          return loadingPromise;\n        }\n        var jsonApi = this._recordData.getHasMany(key);\n        loadingPromise = this.store._findHasManyByJsonApiResource(jsonApi, this, relationship, options).then(() => handleCompletedRelationshipRequest(this, key, relationship, manyArray, null), e => handleCompletedRelationshipRequest(this, key, relationship, manyArray, e));\n        this._relationshipPromisesCache[key] = loadingPromise;\n        return loadingPromise;\n      }\n    }\n    getHasMany(key, options) {\n      {\n        var graphFor = require('@ember-data/record-data/-private').graphFor;\n        var relationship = graphFor(this.store).get(this.identifier, key);\n        var {\n          definition,\n          state\n        } = relationship;\n        var manyArray = this.getManyArray(key, definition);\n        if (definition.isAsync) {\n          if (state.hasFailedLoadAttempt) {\n            return this._relationshipProxyCache[key];\n          }\n          var promise = this.fetchAsyncHasMany(key, relationship, manyArray, options);\n          return this._updatePromiseProxyFor('hasMany', key, {\n            promise,\n            content: manyArray\n          });\n        } else {\n          (!(!anyUnloaded(this.store, relationship)) && debug.assert(`You looked up the '${key}' relationship on a '${this.modelName}' with id ${this.id} but some of the associated records were not loaded. Either make sure they are all loaded together with the parent record, or specify that the relationship is async ('hasMany({ async: true })')`, !anyUnloaded(this.store, relationship)));\n          return manyArray;\n        }\n      }\n    }\n    _updatePromiseProxyFor(kind, key, args) {\n      var promiseProxy = this._relationshipProxyCache[key];\n      if (kind === 'hasMany') {\n        if (promiseProxy) {\n          promiseProxy._update(args.promise, args.content);\n        } else {\n          promiseProxy = this._relationshipProxyCache[key] = new _PromiseManyArray(args.promise, args.content);\n        }\n        return promiseProxy;\n      }\n      if (promiseProxy) {\n        if (args.content !== undefined) {\n          // this usage of `any` can be removed when `@types/ember_object` proxy allows `null` for content\n          promiseProxy.set('content', args.content);\n        }\n        promiseProxy.set('promise', args.promise);\n      } else {\n        var klass = PromiseBelongsTo;\n        // this usage of `any` can be removed when `@types/ember_object` proxy allows `null` for content\n        this._relationshipProxyCache[key] = klass.create(args);\n      }\n      return this._relationshipProxyCache[key];\n    }\n    reloadHasMany(key, options) {\n      {\n        var loadingPromise = this._relationshipPromisesCache[key];\n        if (loadingPromise) {\n          return loadingPromise;\n        }\n        var graphFor = require('@ember-data/record-data/-private').graphFor;\n        var relationship = graphFor(this.store).get(this.identifier, key);\n        var {\n          definition,\n          state\n        } = relationship;\n        state.hasFailedLoadAttempt = false;\n        state.shouldForceReload = true;\n        var manyArray = this.getManyArray(key, definition);\n        var promise = this.fetchAsyncHasMany(key, relationship, manyArray, options);\n        if (this._relationshipProxyCache[key]) {\n          return this._updatePromiseProxyFor('hasMany', key, {\n            promise\n          });\n        }\n        return promise;\n      }\n    }\n    reloadBelongsTo(key, options) {\n      var loadingPromise = this._relationshipPromisesCache[key];\n      if (loadingPromise) {\n        return loadingPromise;\n      }\n      var resource = this._recordData.getBelongsTo(key);\n      // TODO move this to a public api\n      if (resource._relationship) {\n        resource._relationship.state.hasFailedLoadAttempt = false;\n        resource._relationship.state.shouldForceReload = true;\n      }\n      var relationshipMeta = this.store._relationshipMetaFor(this.modelName, null, key);\n      var promise = this._findBelongsTo(key, resource, relationshipMeta, options);\n      if (this._relationshipProxyCache[key]) {\n        return this._updatePromiseProxyFor('belongsTo', key, {\n          promise\n        });\n      }\n      return promise;\n    }\n    destroyFromRecordData() {\n      if (this._doNotDestroy) {\n        this._doNotDestroy = false;\n        return;\n      }\n      this.destroy();\n    }\n    destroy() {\n      (!(!this._record || this._record.get('isDestroyed') || this._record.get('isDestroying')) && debug.assert('Cannot destroy an internalModel while its record is materialized', !this._record || this._record.get('isDestroyed') || this._record.get('isDestroying')));\n      this.isDestroying = true;\n      if (this._recordReference) {\n        this._recordReference.destroy();\n      }\n      this._recordReference = null;\n      var cache = this._manyArrayCache;\n      Object.keys(cache).forEach(key => {\n        cache[key].destroy();\n        delete cache[key];\n      });\n      if (this.references) {\n        cache = this.references;\n        Object.keys(cache).forEach(key => {\n          cache[key].destroy();\n          delete cache[key];\n        });\n      }\n      internalModelFactoryFor(this.store).remove(this);\n      this._isDestroyed = true;\n    }\n    setupData(data) {\n      var changedKeys = this._recordData.pushData(data, this.hasRecord);\n      if (this.hasRecord) {\n        // TODO @runspired should this be going through the notification manager?\n        this._record._notifyProperties(changedKeys);\n      }\n      this.send('pushedData');\n    }\n    setDirtyHasMany(key, records) {\n      assertRecordsPassedToHasMany(records);\n      return this._recordData.setDirtyHasMany(key, extractRecordDatasFromRecords(records));\n    }\n    setDirtyBelongsTo(key, value) {\n      return this._recordData.setDirtyBelongsTo(key, extractRecordDataFromRecord(value));\n    }\n    setDirtyAttribute(key, value) {\n      if (this.isDeleted()) {\n        {\n          throw new EmberError__default[\"default\"](`Attempted to set '${key}' to '${value}' on the deleted record ${this}`);\n        }\n      }\n      var currentValue = this._recordData.getAttr(key);\n      if (currentValue !== value) {\n        this._recordData.setDirtyAttribute(key, value);\n        var isDirty = this._recordData.isAttrDirty(key);\n        this.send('didSetProperty', {\n          name: key,\n          isDirty: isDirty\n        });\n      }\n      return value;\n    }\n    get isDestroyed() {\n      return this._isDestroyed;\n    }\n    get hasRecord() {\n      return !!this._record;\n    }\n    createSnapshot(options) {\n      return new Snapshot(options || {}, this.identifier, this.store);\n    }\n    hasChangedAttributes() {\n      {\n        if (!this.__recordData) {\n          // no need to calculate changed attributes when calling `findRecord`\n          return false;\n        }\n      }\n      return this._recordData.hasChangedAttributes();\n    }\n    changedAttributes() {\n      {\n        if (!this.__recordData) {\n          // no need to calculate changed attributes when calling `findRecord`\n          return {};\n        }\n      }\n      return this._recordData.changedAttributes();\n    }\n    adapterWillCommit() {\n      this._recordData.willCommit();\n      this.send('willCommit');\n    }\n    adapterDidDirty() {\n      this.send('becomeDirty');\n    }\n    send(name, context) {\n      var currentState = this.currentState;\n      if (!currentState[name]) {\n        this._unhandledEvent(currentState, name, context);\n      }\n      return currentState[name](this, context);\n    }\n    notifyHasManyChange(key) {\n      if (this.hasRecord) {\n        var manyArray = this._manyArrayCache[key];\n        var hasPromise = !!this._relationshipPromisesCache[key];\n        if (manyArray && hasPromise) {\n          // do nothing, we will notify the ManyArray directly\n          // once the fetch has completed.\n          return;\n        }\n        {\n          this.store._notificationManager.notify(this.identifier, 'relationships', key);\n        }\n      }\n    }\n    notifyBelongsToChange(key) {\n      if (this.hasRecord) {\n        {\n          this.store._notificationManager.notify(this.identifier, 'relationships', key);\n        }\n      }\n    }\n    notifyPropertyChange(key) {\n      if (this.hasRecord) {\n        {\n          // TODO this should likely *mostly* be the `attributes` bucket\n          // but it seems for local mutations we rely on computed updating\n          // iteself when set. As we design our own thing we may need to change\n          // that.\n          this.store._notificationManager.notify(this.identifier, 'property', key);\n        }\n      }\n    }\n    notifyStateChange(key) {\n      if (this.hasRecord) {\n        {\n          this.store._notificationManager.notify(this.identifier, 'state');\n        }\n      }\n      if (!key || key === 'isDeletionCommitted') {\n        this.store.recordArrayManager.recordDidChange(this.identifier);\n      }\n    }\n    didCreateRecord() {\n      this._recordData.clientDidCreate();\n    }\n    rollbackAttributes() {\n      this.store._backburner.join(() => {\n        var dirtyKeys = this._recordData.rollbackAttributes();\n        if (object.get(this, 'isError')) {\n          this.didCleanError();\n        }\n        this.send('rolledBack');\n        if (this._record && dirtyKeys && dirtyKeys.length > 0) {\n          this._record._notifyProperties(dirtyKeys);\n        }\n      });\n    }\n    transitionTo(name) {\n      // POSSIBLE TODO: Remove this code and replace with\n      // always having direct reference to state objects\n\n      var pivotName = extractPivotName(name);\n      var state = this.currentState;\n      var transitionMapId = `${state.stateName}->${name}`;\n      do {\n        if (state.exit) {\n          state.exit(this);\n        }\n        state = state.parentState;\n      } while (!state[pivotName]);\n      var setups;\n      var enters;\n      var i;\n      var l;\n      var map = TransitionChainMap[transitionMapId];\n      if (map) {\n        setups = map.setups;\n        enters = map.enters;\n        state = map.state;\n      } else {\n        setups = [];\n        enters = [];\n        var path = splitOnDot(name);\n        for (i = 0, l = path.length; i < l; i++) {\n          state = state[path[i]];\n          if (state.enter) {\n            enters.push(state);\n          }\n          if (state.setup) {\n            setups.push(state);\n          }\n        }\n        TransitionChainMap[transitionMapId] = {\n          setups,\n          enters,\n          state\n        };\n      }\n      for (i = 0, l = enters.length; i < l; i++) {\n        enters[i].enter(this);\n      }\n      this.currentState = state;\n      {\n        if (this.hasRecord && typeof this._record.notifyPropertyChange === 'function') {\n          // TODO refactor Model to have all flags pull from the notification manager\n          // and for currentState.stateName to be constructed from flag state.\n          // Probably just port this work from ember-m3\n          // After that we can eliminate this.\n          this.notifyStateChange('currentState');\n          // this._record.notifyPropertyChange('currentState');\n        }\n      }\n      for (i = 0, l = setups.length; i < l; i++) {\n        setups[i].setup(this);\n      }\n    }\n    _unhandledEvent(state, name, context) {\n      var errorMessage = 'Attempted to handle event `' + name + '` ';\n      errorMessage += 'on ' + String(this) + ' while in state ';\n      errorMessage += state.stateName + '. ';\n      if (context !== undefined) {\n        errorMessage += 'Called with ' + debug.inspect(context) + '.';\n      }\n      throw new EmberError__default[\"default\"](errorMessage);\n    }\n    triggerLater(...args) {\n      if (this._deferredTriggers.push(args) !== 1) {\n        return;\n      }\n      this.store._updateInternalModel(this);\n    }\n    _triggerDeferredTriggers() {\n      //TODO: Before 1.0 we want to remove all the events that happen on the pre materialized record,\n      //but for now, we queue up all the events triggered before the record was materialized, and flush\n      //them once we have the record\n      if (!this.hasRecord) {\n        return;\n      }\n      var triggers = this._deferredTriggers;\n      var record = this._record;\n      var trigger = record.trigger;\n      // TODO Igor make nicer check\n      if (trigger && typeof trigger === 'function') {\n        for (var i = 0, l = triggers.length; i < l; i++) {\n          var eventName = triggers[i];\n          trigger.apply(record, eventName);\n        }\n      }\n      triggers.length = 0;\n    }\n    removeFromInverseRelationships() {\n      if (this.__recordData) {\n        this.store._backburner.join(() => {\n          this._recordData.removeFromInverseRelationships();\n        });\n      }\n    }\n\n    /*\n      When a find request is triggered on the store, the user can optionally pass in\n      attributes and relationships to be preloaded. These are meant to behave as if they\n      came back from the server, except the user obtained them out of band and is informing\n      the store of their existence. The most common use case is for supporting client side\n      nested URLs, such as `/posts/1/comments/2` so the user can do\n      `store.findRecord('comment', 2, { preload: { post: 1 } })` without having to fetch the post.\n       Preloaded data can be attributes and relationships passed in either as IDs or as actual\n      models.\n    */\n    preloadData(preload) {\n      var jsonPayload = {};\n      //TODO(Igor) consider the polymorphic case\n      Object.keys(preload).forEach(key => {\n        var preloadValue = object.get(preload, key);\n        var relationshipMeta = this.modelClass.metaForProperty(key);\n        if (relationshipMeta.isRelationship) {\n          if (!jsonPayload.relationships) {\n            jsonPayload.relationships = {};\n          }\n          jsonPayload.relationships[key] = this._preloadRelationship(key, preloadValue);\n        } else {\n          if (!jsonPayload.attributes) {\n            jsonPayload.attributes = {};\n          }\n          jsonPayload.attributes[key] = preloadValue;\n        }\n      });\n      this._recordData.pushData(jsonPayload);\n    }\n    _preloadRelationship(key, preloadValue) {\n      var relationshipMeta = this.modelClass.metaForProperty(key);\n      var modelClass = relationshipMeta.type;\n      var data;\n      if (relationshipMeta.kind === 'hasMany') {\n        (!(Array.isArray(preloadValue)) && debug.assert('You need to pass in an array to set a hasMany property on a record', Array.isArray(preloadValue)));\n        data = preloadValue.map(value => this._convertPreloadRelationshipToJSON(value, modelClass));\n      } else {\n        data = this._convertPreloadRelationshipToJSON(preloadValue, modelClass);\n      }\n      return {\n        data\n      };\n    }\n    _convertPreloadRelationshipToJSON(value, modelClass) {\n      if (typeof value === 'string' || typeof value === 'number') {\n        return {\n          type: modelClass,\n          id: value\n        };\n      }\n      var internalModel;\n      if (value._internalModel) {\n        internalModel = value._internalModel;\n      } else {\n        internalModel = value;\n      }\n      // TODO IGOR DAVID assert if no id is present\n      return {\n        type: internalModel.modelName,\n        id: internalModel.id\n      };\n    }\n\n    /*\n     * calling `store.setRecordId` is necessary to update\n     * the cache index for this record if we have changed.\n     *\n     * However, since the store is not aware of whether the update\n     * is from us (via user set) or from a push of new data\n     * it will also call us so that we can notify and update state.\n     *\n     * When it does so it calls with `fromCache` so that we can\n     * short-circuit instead of cycling back.\n     *\n     * This differs from the short-circuit in the `_isUpdatingId`\n     * case in that the the cache can originate the call to setId,\n     * so on first entry we will still need to do our own update.\n     */\n    setId(id, fromCache = false) {\n      if (this._isUpdatingId === true) {\n        return;\n      }\n      this._isUpdatingId = true;\n      var didChange = id !== this._id;\n      this._id = id;\n      if (didChange && id !== null) {\n        if (!fromCache) {\n          this.store.setRecordId(this.modelName, id, this.clientId);\n        }\n        // internal set of ID to get it to RecordData from DS.Model\n        // if we are within create we may not have a recordData yet.\n        if (this.__recordData && this._recordData.__setId) {\n          this._recordData.__setId(id);\n        }\n      }\n      if (didChange && this.hasRecord) {\n        {\n          this.store._notificationManager.notify(this.identifier, 'identity');\n        }\n      }\n      this._isUpdatingId = false;\n    }\n    didError(error) {\n    }\n    didCleanError() {\n    }\n\n    /*\n      If the adapter did not return a hash in response to a commit,\n      merge the changed attributes and relationships into the existing\n      saved data.\n    */\n    adapterDidCommit(data) {\n      this.didCleanError();\n      this._recordData.didCommit(data);\n      this.send('didCommit');\n      this.store.recordArrayManager.recordDidChange(this.identifier);\n      if (!data) {\n        return;\n      }\n      {\n        this.store._notificationManager.notify(this.identifier, 'attributes');\n      }\n    }\n    hasErrors() {\n      {\n        if (this._recordData.getErrors) {\n          return this._recordData.getErrors(this.identifier).length > 0;\n        } else {\n          var errors = this.getRecord().errors;\n          return errors.length > 0;\n        }\n      }\n    }\n\n    // FOR USE DURING COMMIT PROCESS\n    adapterDidInvalidate(parsedErrors, error) {\n      {\n        // TODO @runspired this should be handled by RecordState\n        // and errors should be dirtied but lazily fetch if at\n        // all possible. We should only notify errors here.\n        var attribute;\n        if (error && parsedErrors) {\n          if (!this._recordData.getErrors) {\n            for (attribute in parsedErrors) {\n              if (hasOwnProperty.call(parsedErrors, attribute)) {\n                this.getRecord().errors._add(attribute, parsedErrors[attribute]);\n              }\n            }\n          }\n          var jsonApiErrors = errorsHashToArray(parsedErrors);\n          this.send('becameInvalid');\n          if (jsonApiErrors.length === 0) {\n            jsonApiErrors = [{\n              title: 'Invalid Error',\n              detail: '',\n              source: {\n                pointer: '/data'\n              }\n            }];\n          }\n          this._recordData.commitWasRejected(this.identifier, jsonApiErrors);\n        } else {\n          this.send('becameError');\n          this._recordData.commitWasRejected(this.identifier);\n        }\n      }\n    }\n    notifyErrorsChange() {\n      {\n        this.store._notificationManager.notify(this.identifier, 'errors');\n      }\n    }\n    adapterDidError(error) {\n      this.send('becameError');\n      this.didError(error);\n      this._recordData.commitWasRejected();\n    }\n    toString() {\n      return `<${this.modelName}:${this.id}>`;\n    }\n    referenceFor(kind, name) {\n      var reference = this.references[name];\n      if (!reference) {\n        var graphFor = require('@ember-data/record-data/-private').graphFor;\n        var relationship = graphFor(this.store._storeWrapper).get(this.identifier, name);\n        if (kind) {\n          var modelName = this.modelName;\n          var actualRelationshipKind = relationship.definition.kind;\n          (!(actualRelationshipKind === kind) && debug.assert(`You tried to get the '${name}' relationship on a '${modelName}' via record.${kind}('${name}'), but the relationship is of kind '${actualRelationshipKind}'. Use record.${actualRelationshipKind}('${name}') instead.`, actualRelationshipKind === kind));\n        }\n        var relationshipKind = relationship.definition.kind;\n        var identifierOrInternalModel = this.identifier;\n        if (relationshipKind === 'belongsTo') {\n          reference = new BelongsToReference(this.store, identifierOrInternalModel, relationship, name);\n        } else if (relationshipKind === 'hasMany') {\n          reference = new HasManyReference(this.store, identifierOrInternalModel, relationship, name);\n        }\n        this.references[name] = reference;\n      }\n      return reference;\n    }\n  }\n  function handleCompletedRelationshipRequest(internalModel, key, relationship, value, error) {\n    delete internalModel._relationshipPromisesCache[key];\n    relationship.state.shouldForceReload = false;\n    var isHasMany = relationship.definition.kind === 'hasMany';\n    if (isHasMany) {\n      // we don't notify the record property here to avoid refetch\n      // only the many array\n      value.notify();\n    }\n    if (error) {\n      relationship.state.hasFailedLoadAttempt = true;\n      var proxy = internalModel._relationshipProxyCache[key];\n      // belongsTo relationships are sometimes unloaded\n      // when a load fails, in this case we need\n      // to make sure that we aren't proxying\n      // to destroyed content\n      // for the sync belongsTo reload case there will be no proxy\n      // for the async reload case there will be no proxy if the ui\n      // has never been accessed\n      if (proxy && !isHasMany) {\n        if (proxy.content && proxy.content.isDestroying) {\n          proxy.set('content', null);\n        }\n      }\n      throw error;\n    }\n    if (isHasMany) {\n      value.set('isLoaded', true);\n    }\n    relationship.state.hasFailedLoadAttempt = false;\n    // only set to not stale if no error is thrown\n    relationship.state.isStale = false;\n    return value;\n  }\n  function assertRecordsPassedToHasMany(records) {\n    // TODO only allow native arrays\n    (!(Array.isArray(records) || EmberArray__default[\"default\"].detect(records)) && debug.assert(`You must pass an array of records to set a hasMany relationship`, Array.isArray(records) || EmberArray__default[\"default\"].detect(records)));\n    (!(function () {\n      return EmberArray.A(records).every(record => hasOwnProperty.call(record, '_internalModel') === true);\n    }()) && debug.assert(`All elements of a hasMany relationship must be instances of Model, you passed ${debug.inspect(records)}`, function () {\n      return EmberArray.A(records).every(record => hasOwnProperty.call(record, '_internalModel') === true);\n    }()));\n  }\n  function extractRecordDatasFromRecords(records) {\n    return records.map(extractRecordDataFromRecord);\n  }\n  function extractRecordDataFromRecord(recordOrPromiseRecord) {\n    if (!recordOrPromiseRecord) {\n      return null;\n    }\n    if (recordOrPromiseRecord.then) {\n      var content = recordOrPromiseRecord.get && recordOrPromiseRecord.get('content');\n      (!(content !== undefined) && debug.assert('You passed in a promise that did not originate from an EmberData relationship. You can only pass promises that come from a belongsTo or hasMany relationship to the get call.', content !== undefined));\n      return content ? recordDataFor(content) : null;\n    }\n    return recordDataFor(recordOrPromiseRecord);\n  }\n  function anyUnloaded(store, relationship) {\n    // Can't use `find` because of IE11 and these arrays are potentially massive\n    var state = relationship.currentState;\n    var unloaded = false;\n    for (var i = 0; i < state.length; i++) {\n      var im = store._internalModelForResource(state[i]);\n      if (im._isDematerializing || !im.currentState.isLoaded) {\n        unloaded = true;\n        break;\n      }\n    }\n    return unloaded;\n  }\n\n  var AvailableShims = new WeakMap();\n  function getShimClass(store, modelName) {\n    var shims = AvailableShims.get(store);\n    if (shims === undefined) {\n      shims = Object.create(null);\n      AvailableShims.set(store, shims);\n    }\n    var shim = shims[modelName];\n    if (shim === undefined) {\n      shim = shims[modelName] = new ShimModelClass(store, modelName);\n    }\n    return shim;\n  }\n  function mapFromHash(hash) {\n    var map = new Map();\n    for (var i in hash) {\n      if (Object.prototype.hasOwnProperty.call(hash, i)) {\n        map.set(i, hash[i]);\n      }\n    }\n    return map;\n  }\n\n  // Mimics the static apis of DSModel\n  class ShimModelClass {\n    // TODO Maybe expose the class here?\n    constructor(__store, modelName) {\n      this.__store = __store;\n      this.modelName = modelName;\n    }\n    get fields() {\n      var attrs = this.__store._attributesDefinitionFor(this.modelName);\n      var relationships = this.__store._relationshipsDefinitionFor(this.modelName);\n      var fields = new Map();\n      Object.keys(attrs).forEach(key => fields.set(key, 'attribute'));\n      Object.keys(relationships).forEach(key => fields.set(key, relationships[key].kind));\n      return fields;\n    }\n    get attributes() {\n      var attrs = this.__store._attributesDefinitionFor(this.modelName);\n      return mapFromHash(attrs);\n    }\n    get relationshipsByName() {\n      var relationships = this.__store._relationshipsDefinitionFor(this.modelName);\n      return mapFromHash(relationships);\n    }\n    eachAttribute(callback, binding) {\n      var attrDefs = this.__store._attributesDefinitionFor(this.modelName);\n      Object.keys(attrDefs).forEach(key => {\n        callback.call(binding, key, attrDefs[key]);\n      });\n    }\n    eachRelationship(callback, binding) {\n      var relationshipDefs = this.__store._relationshipsDefinitionFor(this.modelName);\n      Object.keys(relationshipDefs).forEach(key => {\n        callback.call(binding, key, relationshipDefs[key]);\n      });\n    }\n    eachTransformedAttribute(callback, binding) {\n      var relationshipDefs = this.__store._relationshipsDefinitionFor(this.modelName);\n      Object.keys(relationshipDefs).forEach(key => {\n        if (relationshipDefs[key].type) {\n          callback.call(binding, key, relationshipDefs[key]);\n        }\n      });\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  function payloadIsNotBlank(adapterPayload) {\n    if (Array.isArray(adapterPayload)) {\n      return true;\n    } else {\n      return Object.keys(adapterPayload || {}).length;\n    }\n  }\n  function _find(adapter, store, modelClass, id, internalModel, options) {\n    {\n      (debug.assert(`Requests made when REQUEST_SERVICE=true should not use the legacy finders`));\n    }\n    var snapshot = internalModel.createSnapshot(options);\n    var {\n      modelName\n    } = internalModel;\n    var promise = RSVP.Promise.resolve().then(() => {\n      return adapter.findRecord(store, modelClass, id, snapshot);\n    });\n    var label = `DS: Handle Adapter#findRecord of '${modelName}' with id: '${id}'`;\n    var {\n      identifier\n    } = internalModel;\n    promise = guardDestroyedStore(promise, store, label);\n    return promise.then(adapterPayload => {\n      (!(payloadIsNotBlank(adapterPayload)) && debug.assert(`You made a 'findRecord' request for a '${modelName}' with id '${id}', but the adapter's response did not have any data`, payloadIsNotBlank(adapterPayload)));\n      var serializer = store.serializerFor(modelName);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, id, 'findRecord');\n      (!(!Array.isArray(payload.data)) && debug.assert(`Ember Data expected the primary data returned from a 'findRecord' response to be an object but instead it found an array.`, !Array.isArray(payload.data)));\n      (!('data' in payload && payload.data !== null && typeof payload.data === 'object') && debug.assert(`The 'findRecord' request for ${modelName}:${id} resolved indicating success but contained no primary data. To indicate a 404 not found you should either reject the promise returned by the adapter's findRecord method or throw a NotFoundError.`, 'data' in payload && payload.data !== null && typeof payload.data === 'object'));\n      (debug.warn(`You requested a record of type '${modelName}' with id '${id}' but the adapter returned a payload with primary data having an id of '${payload.data.id}'. Use 'store.findRecord()' when the requested id is the same as the one returned by the adapter. In other cases use 'store.queryRecord()' instead.`, coerceId(payload.data.id) === coerceId(id), {\n        id: 'ds.store.findRecord.id-mismatch'\n      })); // ensure that regardless of id returned we assign to the correct record\n      payload.data.lid = identifier.lid;\n      return store._push(payload);\n    }, error => {\n      internalModel.send('notFound');\n      if (internalModel.currentState.isEmpty) {\n        internalModel.unloadRecord();\n      }\n      throw error;\n    }, `DS: Extract payload of '${modelName}'`);\n  }\n  function _findMany(adapter, store, modelName, ids, internalModels, optionsMap) {\n    var snapshots = internalModels.map(internalModel => internalModel.createSnapshot(optionsMap.get(internalModel)));\n    var modelClass = store.modelFor(modelName); // `adapter.findMany` gets the modelClass still\n    var promise = adapter.findMany(store, modelClass, ids, snapshots);\n    var label = `DS: Handle Adapter#findMany of '${modelName}'`;\n    if (promise === undefined) {\n      throw new Error('adapter.findMany returned undefined, this was very likely a mistake');\n    }\n    promise = guardDestroyedStore(promise, store, label);\n    return promise.then(adapterPayload => {\n      (!(payloadIsNotBlank(adapterPayload)) && debug.assert(`You made a 'findMany' request for '${modelName}' records with ids '[${ids}]', but the adapter's response did not have any data`, payloadIsNotBlank(adapterPayload)));\n      var serializer = store.serializerFor(modelName);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'findMany');\n      return store._push(payload);\n    }, null, `DS: Extract payload of ${modelName}`);\n  }\n  function iterateData(data, fn) {\n    if (Array.isArray(data)) {\n      return data.map(fn);\n    } else {\n      return fn(data);\n    }\n  }\n\n  // sync\n  // iterate over records in payload.data\n  // for each record\n  //   assert that record.relationships[inverse] is either undefined (so we can fix it)\n  //     or provide a data: {id, type} that matches the record that requested it\n  //   return the relationship data for the parent\n  function syncRelationshipDataFromLink(store, payload, parentInternalModel, relationship) {\n    // ensure the right hand side (incoming payload) points to the parent record that\n    // requested this relationship\n    var relationshipData = payload.data ? iterateData(payload.data, (data, index) => {\n      var {\n        id,\n        type\n      } = data;\n      ensureRelationshipIsSetToParent(data, parentInternalModel, store, relationship, index);\n      return {\n        id,\n        type\n      };\n    }) : null;\n    var relatedDataHash = {};\n    if ('meta' in payload) {\n      relatedDataHash.meta = payload.meta;\n    }\n    if ('links' in payload) {\n      relatedDataHash.links = payload.links;\n    }\n    if ('data' in payload) {\n      relatedDataHash.data = relationshipData;\n    }\n\n    // now, push the left hand side (the parent record) to ensure things are in sync, since\n    // the payload will be pushed with store._push\n    var parentPayload = {\n      id: parentInternalModel.id,\n      type: parentInternalModel.modelName,\n      relationships: {\n        [relationship.key]: relatedDataHash\n      }\n    };\n    if (!Array.isArray(payload.included)) {\n      payload.included = [];\n    }\n    payload.included.push(parentPayload);\n    return payload;\n  }\n  function ensureRelationshipIsSetToParent(payload, parentInternalModel, store, parentRelationship, index) {\n    var {\n      id,\n      type\n    } = payload;\n    if (!payload.relationships) {\n      payload.relationships = {};\n    }\n    var {\n      relationships\n    } = payload;\n    var inverse = getInverse(store, parentInternalModel, parentRelationship, type);\n    if (inverse) {\n      var {\n        inverseKey,\n        kind\n      } = inverse;\n      var relationshipData = relationships[inverseKey] && relationships[inverseKey].data;\n      if (typeof relationshipData !== 'undefined' && !relationshipDataPointsToParent(relationshipData, parentInternalModel)) {\n        var inspect = function inspect(thing) {\n          return `'${JSON.stringify(thing)}'`;\n        };\n        var quotedType = inspect(type);\n        var quotedInverse = inspect(inverseKey);\n        var expected = inspect({\n          id: parentInternalModel.id,\n          type: parentInternalModel.modelName\n        });\n        var expectedModel = `${parentInternalModel.modelName}:${parentInternalModel.id}`;\n        var got = inspect(relationshipData);\n        var prefix = typeof index === 'number' ? `data[${index}]` : `data`;\n        var path = `${prefix}.relationships.${inverseKey}.data`;\n        var other = relationshipData ? `<${relationshipData.type}:${relationshipData.id}>` : null;\n        var relationshipFetched = `${expectedModel}.${parentRelationship.kind}(\"${parentRelationship.name}\")`;\n        var includedRecord = `<${type}:${id}>`;\n        var message = [`Encountered mismatched relationship: Ember Data expected ${path} in the payload from ${relationshipFetched} to include ${expected} but got ${got} instead.\\n`, `The ${includedRecord} record loaded at ${prefix} in the payload specified ${other} as its ${quotedInverse}, but should have specified ${expectedModel} (the record the relationship is being loaded from) as its ${quotedInverse} instead.`, `This could mean that the response for ${relationshipFetched} may have accidentally returned ${quotedType} records that aren't related to ${expectedModel} and could be related to a different ${parentInternalModel.modelName} record instead.`, `Ember Data has corrected the ${includedRecord} record's ${quotedInverse} relationship to ${expectedModel} so that ${relationshipFetched} will include ${includedRecord}.`, `Please update the response from the server or change your serializer to either ensure that the response for only includes ${quotedType} records that specify ${expectedModel} as their ${quotedInverse}, or omit the ${quotedInverse} relationship from the response.`].join('\\n');\n\n        // this should eventually throw instead of deprecating.\n        (debug.deprecate(message + '\\n', false, {\n          id: 'mismatched-inverse-relationship-data-from-payload',\n          until: '3.8',\n          for: '@ember-data/store',\n          since: {\n            available: '3.8',\n            enabled: '3.8'\n          }\n        }));\n      }\n      if (kind !== 'hasMany' || typeof relationshipData !== 'undefined') {\n        relationships[inverseKey] = relationships[inverseKey] || {};\n        relationships[inverseKey].data = fixRelationshipData(relationshipData, kind, parentInternalModel);\n      }\n    }\n  }\n  function getInverse(store, parentInternalModel, parentRelationship, type) {\n    return recordDataFindInverseRelationshipInfo(store, parentInternalModel, parentRelationship, type);\n  }\n  function recordDataFindInverseRelationshipInfo({\n    _storeWrapper\n  }, parentInternalModel, parentRelationship, type) {\n    var {\n      name: lhs_relationshipName\n    } = parentRelationship;\n    var {\n      modelName\n    } = parentInternalModel;\n    var inverseKey = _storeWrapper.inverseForRelationship(modelName, lhs_relationshipName);\n    if (inverseKey) {\n      var {\n        meta: {\n          kind\n        }\n      } = _storeWrapper.relationshipsDefinitionFor(type)[inverseKey];\n      return {\n        inverseKey,\n        kind\n      };\n    }\n  }\n  function relationshipDataPointsToParent(relationshipData, internalModel) {\n    if (relationshipData === null) {\n      return false;\n    }\n    if (Array.isArray(relationshipData)) {\n      if (relationshipData.length === 0) {\n        return false;\n      }\n      for (var i = 0; i < relationshipData.length; i++) {\n        var entry = relationshipData[i];\n        if (validateRelationshipEntry(entry, internalModel)) {\n          return true;\n        }\n      }\n    } else {\n      return validateRelationshipEntry(relationshipData, internalModel);\n    }\n    return false;\n  }\n  function fixRelationshipData(relationshipData, relationshipKind, {\n    id,\n    modelName\n  }) {\n    var parentRelationshipData = {\n      id,\n      type: modelName\n    };\n    var payload;\n    if (relationshipKind === 'hasMany') {\n      payload = relationshipData || [];\n      if (relationshipData) {\n        // IE11 does not support array.find\n        // these arrays could be massive so this is better than filter\n        // Note: this is potentially problematic if type/id are not in the\n        // same state of normalization.\n        var found = false;\n        for (var i = 0; i < relationshipData.length; i++) {\n          var v = relationshipData[i];\n          if (v.type === parentRelationshipData.type && v.id === parentRelationshipData.id) {\n            found = true;\n            break;\n          }\n        }\n        if (!found) {\n          payload.push(parentRelationshipData);\n        }\n      } else {\n        payload.push(parentRelationshipData);\n      }\n    } else {\n      payload = relationshipData || {};\n      polyfills.assign(payload, parentRelationshipData);\n    }\n    return payload;\n  }\n  function validateRelationshipEntry({\n    id\n  }, {\n    id: parentModelID\n  }) {\n    return id && id.toString() === parentModelID;\n  }\n  function _findHasMany(adapter, store, internalModel, link, relationship, options) {\n    var snapshot = internalModel.createSnapshot(options);\n    var modelClass = store.modelFor(relationship.type);\n    var useLink = !link || typeof link === 'string';\n    var relatedLink = useLink ? link : link.href;\n    var promise = adapter.findHasMany(store, snapshot, relatedLink, relationship);\n    var label = `DS: Handle Adapter#findHasMany of '${internalModel.modelName}' : '${relationship.type}'`;\n    promise = guardDestroyedStore(promise, store, label);\n    promise = _guard(promise, _bind(_objectIsAlive, internalModel));\n    return promise.then(adapterPayload => {\n      (!(payloadIsNotBlank(adapterPayload)) && debug.assert(`You made a 'findHasMany' request for a ${internalModel.modelName}'s '${relationship.key}' relationship, using link '${link}' , but the adapter's response did not have any data`, payloadIsNotBlank(adapterPayload)));\n      var serializer = store.serializerFor(relationship.type);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'findHasMany');\n      (!('data' in payload && Array.isArray(payload.data)) && debug.assert(`fetched the hasMany relationship '${relationship.name}' for ${internalModel.modelName}:${internalModel.id} with link '${link}', but no data member is present in the response. If no data exists, the response should set { data: [] }`, 'data' in payload && Array.isArray(payload.data)));\n      payload = syncRelationshipDataFromLink(store, payload, internalModel, relationship);\n      var internalModelArray = store._push(payload);\n      return internalModelArray;\n    }, null, `DS: Extract payload of '${internalModel.modelName}' : hasMany '${relationship.type}'`);\n  }\n  function _findBelongsTo(adapter, store, internalModel, link, relationship, options) {\n    var snapshot = internalModel.createSnapshot(options);\n    var modelClass = store.modelFor(relationship.type);\n    var useLink = !link || typeof link === 'string';\n    var relatedLink = useLink ? link : link.href;\n    var promise = adapter.findBelongsTo(store, snapshot, relatedLink, relationship);\n    var label = `DS: Handle Adapter#findBelongsTo of ${internalModel.modelName} : ${relationship.type}`;\n    promise = guardDestroyedStore(promise, store, label);\n    promise = _guard(promise, _bind(_objectIsAlive, internalModel));\n    return promise.then(adapterPayload => {\n      var serializer = store.serializerFor(relationship.type);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'findBelongsTo');\n      (!('data' in payload && (payload.data === null || typeof payload.data === 'object' && !Array.isArray(payload.data))) && debug.assert(`fetched the belongsTo relationship '${relationship.name}' for ${internalModel.modelName}:${internalModel.id} with link '${link}', but no data member is present in the response. If no data exists, the response should set { data: null }`, 'data' in payload && (payload.data === null || typeof payload.data === 'object' && !Array.isArray(payload.data))));\n      if (!payload.data && !payload.links && !payload.meta) {\n        return null;\n      }\n      payload = syncRelationshipDataFromLink(store, payload, internalModel, relationship);\n      return store._push(payload);\n    }, null, `DS: Extract payload of ${internalModel.modelName} : ${relationship.type}`);\n  }\n  function _findAll(adapter, store, modelName, options) {\n    var modelClass = store.modelFor(modelName); // adapter.findAll depends on the class\n    var recordArray = store.peekAll(modelName);\n    var snapshotArray = recordArray._createSnapshot(options);\n    var promise = RSVP.Promise.resolve().then(() => adapter.findAll(store, modelClass, null, snapshotArray));\n    var label = 'DS: Handle Adapter#findAll of ' + modelClass;\n    promise = guardDestroyedStore(promise, store, label);\n    return promise.then(adapterPayload => {\n      (!(payloadIsNotBlank(adapterPayload)) && debug.assert(`You made a 'findAll' request for '${modelName}' records, but the adapter's response did not have any data`, payloadIsNotBlank(adapterPayload)));\n      var serializer = store.serializerFor(modelName);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'findAll');\n      store._push(payload);\n      store._didUpdateAll(modelName);\n      return recordArray;\n    }, null, 'DS: Extract payload of findAll ${modelName}');\n  }\n  function _query(adapter, store, modelName, query, recordArray, options) {\n    var modelClass = store.modelFor(modelName); // adapter.query needs the class\n\n    recordArray = recordArray || store.recordArrayManager.createAdapterPopulatedRecordArray(modelName, query);\n    var promise = RSVP.Promise.resolve().then(() => adapter.query(store, modelClass, query, recordArray, options));\n    var label = `DS: Handle Adapter#query of ${modelName}`;\n    promise = guardDestroyedStore(promise, store, label);\n    return promise.then(adapterPayload => {\n      var serializer = store.serializerFor(modelName);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'query');\n      var internalModels = store._push(payload);\n      (!(Array.isArray(internalModels)) && debug.assert('The response to store.query is expected to be an array but it was a single record. Please wrap your response in an array or use `store.queryRecord` to query for a single record.', Array.isArray(internalModels)));\n      var identifiers = internalModels.map(im => im.identifier);\n      if (recordArray) {\n        recordArray._setIdentifiers(identifiers, payload);\n      } else {\n        recordArray = store.recordArrayManager.createAdapterPopulatedRecordArray(modelName, query, identifiers, payload);\n      }\n      return recordArray;\n    }, null, `DS: Extract payload of query ${modelName}`);\n  }\n  function _queryRecord(adapter, store, modelName, query, options) {\n    var modelClass = store.modelFor(modelName); // adapter.queryRecord needs the class\n    var promise = RSVP.Promise.resolve().then(() => adapter.queryRecord(store, modelClass, query, options));\n    var label = `DS: Handle Adapter#queryRecord of ${modelName}`;\n    promise = guardDestroyedStore(promise, store, label);\n    return promise.then(adapterPayload => {\n      var serializer = store.serializerFor(modelName);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'queryRecord');\n      (!(!Array.isArray(payload.data)) && debug.assert(`Expected the primary data returned by the serializer for a 'queryRecord' response to be a single object or null but instead it was an array.`, !Array.isArray(payload.data)));\n      return store._push(payload);\n    }, null, `DS: Extract payload of queryRecord ${modelName}`);\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  function metaIsRelationshipDefinition(meta) {\n    return typeof meta._inverseKey === 'function';\n  }\n  var peekGraph;\n  {\n    var _peekGraph;\n    peekGraph = wrapper => {\n      _peekGraph = _peekGraph || require('@ember-data/record-data/-private').peekGraph;\n      return _peekGraph(wrapper);\n    };\n  }\n  class RecordDataStoreWrapper {\n    constructor(_store) {\n      this._store = _store;\n      this._willNotify = false;\n      this._pendingNotifies = new Map();\n    }\n    get identifierCache() {\n      return identifierCacheFor(this._store);\n    }\n    _scheduleNotification(identifier, key, kind) {\n      var pending = this._pendingNotifies.get(identifier);\n      if (!pending) {\n        pending = new Map();\n        this._pendingNotifies.set(identifier, pending);\n      }\n      pending.set(key, kind);\n      if (this._willNotify === true) {\n        return;\n      }\n      this._willNotify = true;\n      var backburner = this._store._backburner;\n      backburner.schedule('notify', this, this._flushNotifications);\n    }\n    notifyErrorsChange(type, id, lid) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      var internalModel = internalModelFactoryFor(this._store).peek(identifier);\n      if (internalModel) {\n        internalModel.notifyErrorsChange();\n      }\n    }\n    _flushNotifications() {\n      if (this._willNotify === false) {\n        return;\n      }\n      var pending = this._pendingNotifies;\n      this._pendingNotifies = new Map();\n      this._willNotify = false;\n      var factory = internalModelFactoryFor(this._store);\n      pending.forEach((map, identifier) => {\n        var internalModel = factory.peek(identifier);\n        if (internalModel) {\n          map.forEach((kind, key) => {\n            if (kind === 'belongsTo') {\n              internalModel.notifyBelongsToChange(key);\n            } else {\n              internalModel.notifyHasManyChange(key);\n            }\n          });\n        }\n      });\n    }\n    attributesDefinitionFor(type) {\n      return this._store._attributesDefinitionFor(type);\n    }\n    relationshipsDefinitionFor(type) {\n      return this._store._relationshipsDefinitionFor(type);\n    }\n    inverseForRelationship(type, key) {\n      var modelClass = this._store.modelFor(type);\n      var definition = this.relationshipsDefinitionFor(type)[key];\n      if (!definition) {\n        return null;\n      }\n      {\n        if (definition.inverse !== undefined) {\n          return definition.inverse;\n        } else {\n          //TODO add a test for this branch\n          if (metaIsRelationshipDefinition(definition)) {\n            return definition._inverseKey(this._store, modelClass);\n          }\n          return null;\n        }\n      }\n    }\n    inverseIsAsyncForRelationship(type, key) {\n      var modelClass = this._store.modelFor(type);\n      var definition = this.relationshipsDefinitionFor(type)[key];\n      if (!definition) {\n        return false;\n      }\n      {\n        if (definition.inverse === null) {\n          return false;\n        }\n        if (definition.inverseIsAsync !== undefined) {\n          // TODO do we need to amend the RFC for this prop?\n          // else we should add it to the TS interface and document.\n          return !!definition.inverseIsAsync;\n        } else if (metaIsRelationshipDefinition(definition)) {\n          return definition._inverseIsAsync(this._store, modelClass);\n        } else {\n          return false;\n        }\n      }\n    }\n    notifyPropertyChange(type, id, lid, key) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      var internalModel = internalModelFactoryFor(this._store).peek(identifier);\n      if (internalModel) {\n        internalModel.notifyPropertyChange(key);\n      }\n    }\n    notifyHasManyChange(type, id, lid, key) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      this._scheduleNotification(identifier, key, 'hasMany');\n    }\n    notifyBelongsToChange(type, id, lid, key) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      this._scheduleNotification(identifier, key, 'belongsTo');\n    }\n    notifyStateChange(type, id, lid, key) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      var internalModel = internalModelFactoryFor(this._store).peek(identifier);\n      if (internalModel) {\n        internalModel.notifyStateChange(key);\n      }\n    }\n    recordDataFor(type, id, lid) {\n      var identifier;\n      var isCreate = false;\n      if (!id && !lid) {\n        isCreate = true;\n        identifier = {\n          type\n        };\n      } else {\n        var resource = constructResource(type, id, lid);\n        identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      }\n      return this._store.recordDataFor(identifier, isCreate);\n    }\n    setRecordId(type, id, lid) {\n      this._store.setRecordId(type, id, lid);\n    }\n    isRecordInUse(type, id, lid) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      var internalModel = internalModelFactoryFor(this._store).peek(identifier);\n      if (!internalModel) {\n        return false;\n      }\n      var record = internalModel._record;\n      return record && !(record.isDestroyed || record.isDestroying);\n    }\n    disconnectRecord(type, id, lid) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      {\n        var graph = peekGraph(this);\n        if (graph) {\n          graph.remove(identifier);\n        }\n      }\n      var internalModel = internalModelFactoryFor(this._store).peek(identifier);\n      if (internalModel) {\n        internalModel.destroyFromRecordData();\n      }\n    }\n  }\n\n  /**\n    @module @ember-data/store\n   */\n  var _RecordData;\n  var {\n    ENV\n  } = Ember__default[\"default\"];\n  var RECORD_REFERENCES = new WeakMap();\n  function freeze(obj) {\n    if (typeof Object.freeze === 'function') {\n      return Object.freeze(obj);\n    }\n    return obj;\n  }\n  function deprecateTestRegistration(factoryType, factoryName) {\n    (debug.deprecate(`You looked up the ${factoryType} \"${factoryName}\" but it was not found. Likely this means you are using a legacy ember-qunit moduleFor helper. Add \"needs: ['${factoryType}:${factoryName}']\", \"integration: true\", or refactor to modern syntax to resolve this deprecation.`, false, {\n      id: 'ember-data:-legacy-test-registrations',\n      until: '3.17',\n      for: '@ember-data/store',\n      since: {\n        available: '3.15',\n        enabled: '3.15'\n      }\n    }));\n  }\n  /**\n    The store contains all of the data for records loaded from the server.\n    It is also responsible for creating instances of `Model` that wrap\n    the individual data for a record, so that they can be bound to in your\n    Handlebars templates.\n\n    Define your application's store like this:\n\n    ```app/services/store.js\n    import Store from '@ember-data/store';\n\n    export default class MyStore extends Store {}\n    ```\n\n    Most Ember.js applications will only have a single `Store` that is\n    automatically created by their `Ember.Application`.\n\n    You can retrieve models from the store in several ways. To retrieve a record\n    for a specific id, use `Store`'s `findRecord()` method:\n\n    ```javascript\n    store.findRecord('person', 123).then(function (person) {\n    });\n    ```\n\n    By default, the store will talk to your backend using a standard\n    REST mechanism. You can customize how the store talks to your\n    backend by specifying a custom adapter:\n\n    ```app/adapters/application.js\n    import Adapter from '@ember-data/adapter';\n\n    export default class ApplicationAdapter extends Adapter {\n    }\n    ```\n\n    You can learn more about writing a custom adapter by reading the `Adapter`\n    documentation.\n\n    ### Store createRecord() vs. push() vs. pushPayload()\n\n    The store provides multiple ways to create new record objects. They have\n    some subtle differences in their use which are detailed below:\n\n    [createRecord](../methods/createRecord?anchor=createRecord) is used for creating new\n    records on the client side. This will return a new record in the\n    `created.uncommitted` state. In order to persist this record to the\n    backend, you will need to call `record.save()`.\n\n    [push](../methods/push?anchor=push) is used to notify Ember Data's store of new or\n    updated records that exist in the backend. This will return a record\n    in the `loaded.saved` state. The primary use-case for `store#push` is\n    to notify Ember Data about record updates (full or partial) that happen\n    outside of the normal adapter methods (for example\n    [SSE](http://dev.w3.org/html5/eventsource/) or [Web\n    Sockets](http://www.w3.org/TR/2009/WD-websockets-20091222/)).\n\n    [pushPayload](../methods/pushPayload?anchor=pushPayload) is a convenience wrapper for\n    `store#push` that will deserialize payloads if the\n    Serializer implements a `pushPayload` method.\n\n    Note: When creating a new record using any of the above methods\n    Ember Data will update `RecordArray`s such as those returned by\n    `store#peekAll()` or `store#findAll()`. This means any\n    data bindings or computed properties that depend on the RecordArray\n    will automatically be synced to include the new or updated record\n    values.\n\n    @main @ember-data/store\n    @class Store\n    @public\n    @extends Ember.Service\n  */\n\n  class CoreStore extends Service__default[\"default\"] {\n    /**\n      The default adapter to use to communicate to a backend server or\n      other persistence layer. This will be overridden by an application\n      adapter if present.\n       If you want to specify `app/adapters/custom.js` as a string, do:\n       ```js\n      import Store from '@ember-data/store';\n       export default Store.extend({\n        constructor() {\n          super(...arguments);\n          this.adapter = 'custom';\n        }\n      }\n      ```\n       @property adapter\n      @public\n      @default '-json-api'\n      @type {String}\n    */\n\n    /**\n    This property returns the adapter, after resolving a possible\n    string key.\n     If the supplied `adapter` was a class, or a String property\n    path resolved to a class, this property will instantiate the\n    class.\n     This property is cacheable, so the same instance of a specified\n    adapter class should be used for the lifetime of the store.\n     @property defaultAdapter\n    @private\n    @return Adapter\n    */\n    /**\n      @method init\n      @private\n    */\n    constructor() {\n      super(...arguments);\n      /**\n       * EmberData specific backburner instance\n       * @property _backburner\n       * @private\n       */\n      this._backburner = backburner;\n      this.recordArrayManager = new RecordArrayManager({\n        store: this\n      });\n      this._notificationManager = void 0;\n      this._adapterCache = Object.create(null);\n      this._serializerCache = Object.create(null);\n      this._storeWrapper = new RecordDataStoreWrapper(this);\n      /*\n        Ember Data uses several specialized micro-queues for organizing\n        and coalescing similar async work.\n         These queues are currently controlled by a flush scheduled into\n        ember-data's custom backburner instance.\n        */\n      // used for coalescing record save requests\n      this._pendingSave = [];\n      // used for coalescing internal model updates\n      this._updatedInternalModels = [];\n      // used to keep track of all the find requests that need to be coalesced\n      this._pendingFetch = new Map();\n      this._fetchManager = void 0;\n      this._schemaDefinitionService = void 0;\n      // DEBUG-only properties\n      this._trackedAsyncRequests = void 0;\n      this.shouldAssertMethodCallsOnDestroyedStore = false;\n      this.shouldTrackAsyncRequests = false;\n      this.generateStackTracesForTrackedRequests = false;\n      this._trackAsyncRequestStart = void 0;\n      this._trackAsyncRequestEnd = void 0;\n      this.__asyncWaiter = void 0;\n      {\n        this._fetchManager = new FetchManager(this);\n      }\n      {\n        this._notificationManager = new NotificationManager(this);\n        this.__recordDataFor = this.__recordDataFor.bind(this);\n      }\n      {\n        {\n          // support for legacy moduleFor style unit tests\n          // that did not include transforms in \"needs\"\n          // or which were not set to integration:true\n          // that were relying on ember-test-helpers\n          // doing an auto-registration of the transform\n          // or us doing one\n          var Mapping = {\n            date: 'DateTransform',\n            boolean: 'BooleanTransform',\n            number: 'NumberTransform',\n            string: 'StringTransform'\n          };\n          var shouldWarn = false;\n          var owner = application.getOwner(this);\n          Object.keys(Mapping).forEach(attributeType => {\n            var transformFactory = owner.factoryFor(`transform:${attributeType}`);\n            if (!transformFactory) {\n              // we don't deprecate this because the moduleFor style tests with the closed\n              // resolver will be deprecated on their own. When that deprecation completes\n              // we can drop this.\n              var Transform = require__default[\"default\"](`@ember-data/serializer/-private`)[Mapping[attributeType]];\n              owner.register(`transform:${attributeType}`, Transform);\n              shouldWarn = true;\n            }\n          });\n          if (shouldWarn) {\n            (debug.deprecate(`You are relying on the automatic registration of the transforms \"date\", \"number\", \"boolean\", and \"string\". Likely this means you are using a legacy ember-qunit moduleFor helper. Add \"needs: ['transform:date', 'transform:boolean', 'transform:number', 'transform:string']\", \"integration: true\", or refactor to modern syntax to resolve this deprecation.`, false, {\n              id: 'ember-data:-legacy-test-registrations',\n              until: '3.17',\n              for: '@ember-data/store',\n              since: {\n                available: '3.15',\n                enabled: '3.15'\n              }\n            }));\n          }\n        }\n        this.shouldAssertMethodCallsOnDestroyedStore = this.shouldAssertMethodCallsOnDestroyedStore || false;\n        if (this.shouldTrackAsyncRequests === undefined) {\n          this.shouldTrackAsyncRequests = false;\n        }\n        if (this.generateStackTracesForTrackedRequests === undefined) {\n          this.generateStackTracesForTrackedRequests = false;\n        }\n        this._trackedAsyncRequests = [];\n        this._trackAsyncRequestStart = label => {\n          var trace = 'set `store.generateStackTracesForTrackedRequests = true;` to get a detailed trace for where this request originated';\n          if (this.generateStackTracesForTrackedRequests) {\n            try {\n              throw new Error(`EmberData TrackedRequest: ${label}`);\n            } catch (e) {\n              trace = e;\n            }\n          }\n          var token = freeze({\n            label,\n            trace\n          });\n          this._trackedAsyncRequests.push(token);\n          return token;\n        };\n        this._trackAsyncRequestEnd = token => {\n          var index = this._trackedAsyncRequests.indexOf(token);\n          if (index === -1) {\n            throw new Error(`Attempted to end tracking for the following request but it was not being tracked:\\n${token}`);\n          }\n          this._trackedAsyncRequests.splice(index, 1);\n        };\n        this.__asyncWaiter = () => {\n          var shouldTrack = this.shouldTrackAsyncRequests;\n          var tracked = this._trackedAsyncRequests;\n          var isSettled = tracked.length === 0;\n          return shouldTrack !== true || isSettled;\n        };\n        test.registerWaiter(this.__asyncWaiter);\n      }\n    }\n    getRequestStateService() {\n      {\n        return this._fetchManager.requestCache;\n      }\n    }\n\n    /**\n     * Provides access to the IdentifierCache instance\n     * for this store.\n     *\n     * The IdentifierCache can be used to generate or\n     * retrieve a stable unique identifier for any resource.\n     *\n     * @property {IdentifierCache} identifierCache\n     * @public\n     */\n    get identifierCache() {\n      return identifierCacheFor(this);\n    }\n    _instantiateRecord(internalModel, modelName, recordData, identifier, properties) {\n      {\n        // assert here\n        if (properties !== undefined) {\n          (!(typeof properties === 'object' && properties !== null) && debug.assert(`You passed '${properties}' as properties for record creation instead of an object.`, typeof properties === 'object' && properties !== null));\n          if ('id' in properties) {\n            internalModel.setId(properties.id);\n          }\n\n          // convert relationship Records to RecordDatas before passing to RecordData\n          var defs = this._relationshipsDefinitionFor(modelName);\n          if (defs !== null) {\n            var keys = Object.keys(properties);\n            var relationshipValue;\n            for (var i = 0; i < keys.length; i++) {\n              var prop = keys[i];\n              var def = defs[prop];\n              if (def !== undefined) {\n                if (def.kind === 'hasMany') {\n                  {\n                    assertRecordsPassedToHasMany(properties[prop]);\n                  }\n                  relationshipValue = extractRecordDatasFromRecords(properties[prop]);\n                } else {\n                  relationshipValue = extractRecordDataFromRecord(properties[prop]);\n                }\n                properties[prop] = relationshipValue;\n              }\n            }\n          }\n        }\n\n        // TODO guard against initRecordOptions no being there\n        var createOptions = recordData._initRecordCreateOptions(properties);\n        //TODO Igor pass a wrapper instead of RD\n        var _record = this.instantiateRecord(identifier, createOptions, this.__recordDataFor, this._notificationManager);\n        setRecordIdentifier(_record, identifier);\n        //recordToInternalModelMap.set(record, internalModel);\n        return _record;\n      }\n    }\n    _internalDeleteRecord(internalModel) {\n      internalModel.deleteRecord();\n    }\n\n    // FeatureFlagged in the DSModelStore claas\n    _attributesDefinitionFor(modelName, identifier) {\n      if (identifier) {\n        return this.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n      } else {\n        return this.getSchemaDefinitionService().attributesDefinitionFor(modelName);\n      }\n    }\n    _relationshipsDefinitionFor(modelName, identifier) {\n      if (identifier) {\n        return this.getSchemaDefinitionService().relationshipsDefinitionFor(identifier);\n      } else {\n        return this.getSchemaDefinitionService().relationshipsDefinitionFor(modelName);\n      }\n    }\n    registerSchemaDefinitionService(schema) {\n      this._schemaDefinitionService = schema;\n    }\n    getSchemaDefinitionService() {\n      {\n        return this._schemaDefinitionService;\n      }\n    }\n\n    // TODO Double check this return value is correct\n    _relationshipMetaFor(modelName, id, key) {\n      return this._relationshipsDefinitionFor(modelName)[key];\n    }\n\n    /**\n      Returns the schema for a particular `modelName`.\n       When used with Model from @ember-data/model the return is the model class,\n      but this is not guaranteed.\n       The class of a model might be useful if you want to get a list of all the\n      relationship names of the model, see\n      [`relationshipNames`](/ember-data/release/classes/Model?anchor=relationshipNames)\n      for example.\n       @method modelFor\n      @public\n      @param {String} modelName\n      @return {subclass of Model | ShimModelClass}\n      */\n    modelFor(modelName) {\n      {\n        assertDestroyedStoreOnly$1(this, 'modelFor');\n      }\n      return getShimClass(this, modelName);\n    }\n\n    // Feature Flagged in DSModelStore\n    /**\n      Returns whether a ModelClass exists for a given modelName\n      This exists for legacy support for the RESTSerializer,\n      which due to how it must guess whether a key is a model\n      must query for whether a match exists.\n       We should investigate an RFC to make this public or removing\n      this requirement.\n       @method _hasModelFor\n      @private\n    */\n    _hasModelFor(modelName) {\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's hasModelFor method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      return this.getSchemaDefinitionService().doesTypeExist(modelName);\n    }\n\n    // .....................\n    // . CREATE NEW RECORD .\n    // .....................\n\n    /**\n      Create a new record in the current store. The properties passed\n      to this method are set on the newly created record.\n       To create a new instance of a `Post`:\n       ```js\n      store.createRecord('post', {\n        title: 'Ember is awesome!'\n      });\n      ```\n       To create a new instance of a `Post` that has a relationship with a `User` record:\n       ```js\n      let user = this.store.peekRecord('user', 1);\n      store.createRecord('post', {\n        title: 'Ember is awesome!',\n        user: user\n      });\n      ```\n       @method createRecord\n      @public\n      @param {String} modelName\n      @param {Object} inputProperties a hash of properties to set on the\n        newly created record.\n      @return {Model} record\n    */\n    createRecord(modelName, inputProperties) {\n      {\n        assertDestroyingStore$1(this, 'createRecord');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's createRecord method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string')); // This is wrapped in a `run.join` so that in test environments users do not need to manually wrap\n      //   calls to `createRecord`. The run loop usage here is because we batch the joining and updating\n      //   of record-arrays via ember's run loop, not our own.\n      //\n      //   to remove this, we would need to move to a new `async` API.\n      return runloop._backburner.join(() => {\n        return this._backburner.join(() => {\n          var normalizedModelName = normalizeModelName(modelName);\n          var properties = polyfills.assign({}, inputProperties);\n\n          // If the passed properties do not include a primary key,\n          // give the adapter an opportunity to generate one. Typically,\n          // client-side ID generators will use something like uuid.js\n          // to avoid conflicts.\n\n          if (utils.isNone(properties.id)) {\n            properties.id = this._generateId(normalizedModelName, properties);\n          }\n\n          // Coerce ID to a string\n          properties.id = coerceId(properties.id);\n          var factory = internalModelFactoryFor(this);\n          var internalModel = factory.build({\n            type: normalizedModelName,\n            id: properties.id\n          });\n          internalModel.send('loadedData');\n          // TODO this exists just to proxy `isNew` to RecordData which is weird\n          internalModel.didCreateRecord();\n          return internalModel.getRecord(properties);\n        });\n      });\n    }\n\n    /**\n      If possible, this method asks the adapter to generate an ID for\n      a newly created record.\n       @method _generateId\n      @private\n      @param {String} modelName\n      @param {Object} properties from the new record\n      @return {String} if the adapter can generate one, an ID\n    */\n    _generateId(modelName, properties) {\n      var adapter = this.adapterFor(modelName);\n      if (adapter && adapter.generateIdForRecord) {\n        return adapter.generateIdForRecord(this, modelName, properties);\n      }\n      return null;\n    }\n\n    // .................\n    // . DELETE RECORD .\n    // .................\n\n    /**\n      For symmetry, a record can be deleted via the store.\n       Example\n       ```javascript\n      let post = store.createRecord('post', {\n        title: 'Ember is awesome!'\n      });\n       store.deleteRecord(post);\n      ```\n       @method deleteRecord\n      @public\n      @param {Model} record\n    */\n    deleteRecord(record) {\n      {\n        assertDestroyingStore$1(this, 'deleteRecord');\n      }\n      this._backburner.join(() => {\n        {\n          var _identifier = peekRecordIdentifier(record);\n          if (_identifier) {\n            var internalModel = internalModelFactoryFor(this).peek(_identifier);\n            if (internalModel) {\n              internalModel.deleteRecord();\n            }\n          } else {\n            (debug.deprecate(`You passed a non ember-data managed record ${record} to store.deleteRecord. Ember Data store is not meant to manage non store records. This is not supported and will be removed`, false, {\n              id: 'ember-data:delete-record-non-store',\n              until: '4.0',\n              for: '@ember-data/store',\n              since: {\n                available: '3.28',\n                enabled: '3.28'\n              }\n            }));\n            record.deleteRecord();\n          }\n        }\n      });\n    }\n\n    /**\n      For symmetry, a record can be unloaded via the store.\n      This will cause the record to be destroyed and freed up for garbage collection.\n       Example\n       ```javascript\n      store.findRecord('post', 1).then(function(post) {\n        store.unloadRecord(post);\n      });\n      ```\n       @method unloadRecord\n      @public\n      @param {Model} record\n    */\n    unloadRecord(record) {\n      {\n        assertDestroyingStore$1(this, 'unloadRecord');\n      }\n      {\n        var _identifier2 = peekRecordIdentifier(record);\n        if (_identifier2) {\n          var internalModel = internalModelFactoryFor(this).peek(_identifier2);\n          if (internalModel) {\n            internalModel.unloadRecord();\n          }\n        } else {\n          (debug.deprecate(`You passed a non ember-data managed record ${record} to store.unloadRecord. Ember Data store is not meant to manage non store records. This is not supported and will be removed`, false, {\n            id: 'ember-data:unload-record-non-store',\n            until: '4.0',\n            for: '@ember-data/store',\n            since: {\n              available: '3.28',\n              enabled: '3.28'\n            }\n          }));\n          record.unloadRecord();\n        }\n      }\n    }\n\n    // ................\n    // . FIND RECORDS .\n    // ................\n\n    /**\n      @method find\n      @param {String} modelName\n      @param {String|Integer} id\n      @param {Object} options\n      @return {Promise} promise\n      @private\n    */\n    find(modelName, id, options) {\n      {\n        assertDestroyingStore$1(this, 'find');\n      }\n      // The default `model` hook in Route calls `find(modelName, id)`,\n      // that's why we have to keep this method around even though `findRecord` is\n      // the public way to get a record by modelName and id.\n      (!(arguments.length !== 1) && debug.assert(`Using store.find(type) has been removed. Use store.findAll(modelName) to retrieve all records for a given type.`, arguments.length !== 1));\n      (!(!options) && debug.assert(`Calling store.find(modelName, id, { preload: preload }) is no longer supported. Use store.findRecord(modelName, id, { preload: preload }) instead.`, !options));\n      (!(arguments.length === 2) && debug.assert(`You need to pass the model name and id to the store's find method`, arguments.length === 2));\n      (!(typeof id === 'string' || typeof id === 'number') && debug.assert(`You cannot pass '${id}' as id to the store's find method`, typeof id === 'string' || typeof id === 'number'));\n      (!(typeof id !== 'object') && debug.assert(`Calling store.find() with a query object is no longer supported. Use store.query() instead.`, typeof id !== 'object'));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      return this.findRecord(modelName, id);\n    }\n\n    /**\n      This method returns a record for a given type and id combination.\n       The `findRecord` method will always resolve its promise with the same\n      object for a given type and `id`.\n       The `findRecord` method will always return a **promise** that will be\n      resolved with the record.\n       Example\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id);\n        }\n      }\n      ```\n       If the record is not yet available, the store will ask the adapter's `find`\n      method to find the necessary data. If the record is already present in the\n      store, it depends on the reload behavior _when_ the returned promise\n      resolves.\n       ### Preloading\n       You can optionally `preload` specific attributes and relationships that you know of\n      by passing them via the passed `options`.\n       For example, if your Ember route looks like `/posts/1/comments/2` and your API route\n      for the comment also looks like `/posts/1/comments/2` if you want to fetch the comment\n      without fetching the post you can pass in the post to the `findRecord` call:\n       ```javascript\n      store.findRecord('comment', 2, { preload: { post: 1 } });\n      ```\n       If you have access to the post model you can also pass the model itself:\n       ```javascript\n      store.findRecord('post', 1).then(function (myPostModel) {\n        store.findRecord('comment', 2, { post: myPostModel });\n      });\n      ```\n       ### Reloading\n       The reload behavior is configured either via the passed `options` hash or\n      the result of the adapter's `shouldReloadRecord`.\n       If `{ reload: true }` is passed or `adapter.shouldReloadRecord` evaluates\n      to `true`, then the returned promise resolves once the adapter returns\n      data, regardless if the requested record is already in the store:\n       ```js\n      store.push({\n        data: {\n          id: 1,\n          type: 'post',\n          revision: 1\n        }\n      });\n       // adapter#findRecord resolves with\n      // [\n      //   {\n      //     id: 1,\n      //     type: 'post',\n      //     revision: 2\n      //   }\n      // ]\n      store.findRecord('post', 1, { reload: true }).then(function(post) {\n        post.get('revision'); // 2\n      });\n      ```\n       If no reload is indicated via the above mentioned ways, then the promise\n      immediately resolves with the cached version in the store.\n       ### Background Reloading\n       Optionally, if `adapter.shouldBackgroundReloadRecord` evaluates to `true`,\n      then a background reload is started, which updates the records' data, once\n      it is available:\n       ```js\n      // app/adapters/post.js\n      import ApplicationAdapter from \"./application\";\n       export default class PostAdapter extends ApplicationAdapter {\n        shouldReloadRecord(store, snapshot) {\n          return false;\n        },\n         shouldBackgroundReloadRecord(store, snapshot) {\n          return true;\n        }\n      });\n       // ...\n       store.push({\n        data: {\n          id: 1,\n          type: 'post',\n          revision: 1\n        }\n      });\n       let blogPost = store.findRecord('post', 1).then(function(post) {\n        post.get('revision'); // 1\n      });\n       // later, once adapter#findRecord resolved with\n      // [\n      //   {\n      //     id: 1,\n      //     type: 'post',\n      //     revision: 2\n      //   }\n      // ]\n       blogPost.get('revision'); // 2\n      ```\n       If you would like to force or prevent background reloading, you can set a\n      boolean value for `backgroundReload` in the options object for\n      `findRecord`.\n       ```app/routes/post/edit.js\n      import Route from '@ember/routing/route';\n       export default class PostEditRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { backgroundReload: false });\n        }\n      }\n      ```\n       If you pass an object on the `adapterOptions` property of the options\n      argument it will be passed to your adapter via the snapshot\n       ```app/routes/post/edit.js\n      import Route from '@ember/routing/route';\n       export default class PostEditRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id, {\n            adapterOptions: { subscribe: false }\n          });\n        }\n      }\n      ```\n       ```app/adapters/post.js\n      import MyCustomAdapter from './custom-adapter';\n       export default class PostAdapter extends MyCustomAdapter {\n        findRecord(store, type, id, snapshot) {\n          if (snapshot.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      }\n      ```\n       See [peekRecord](../methods/peekRecord?anchor=peekRecord) to get the cached version of a record.\n       ### Retrieving Related Model Records\n       If you use an adapter such as Ember's default\n      [`JSONAPIAdapter`](/ember-data/release/classes/JSONAPIAdapter)\n      that supports the [JSON API specification](http://jsonapi.org/) and if your server\n      endpoint supports the use of an\n      ['include' query parameter](http://jsonapi.org/format/#fetching-includes),\n      you can use `findRecord()` or `findAll()` to automatically retrieve additional records related to\n      the one you request by supplying an `include` parameter in the `options` object.\n       For example, given a `post` model that has a `hasMany` relationship with a `comment`\n      model, when we retrieve a specific post we can have the server also return that post's\n      comments in the same request:\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { include: 'comments' });\n        }\n      }\n       ```\n      In this case, the post's comments would then be available in your template as\n      `model.comments`.\n       Multiple relationships can be requested using an `include` parameter consisting of a\n      comma-separated list (without white-space) while nested relationships can be specified\n      using a dot-separated sequence of relationship names. So to request both the post's\n      comments and the authors of those comments the request would look like this:\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { include: 'comments,comments.author' });\n        }\n      }\n      ```\n       ### Retrieving Specific Fields by Type\n       If your server endpoint supports the use of a ['fields' query parameter](https://jsonapi.org/format/#fetching-sparse-fieldsets),\n      you can use pass those fields through to your server.  At this point in time, this requires a few manual steps on your part.\n       1. Implement `buildQuery` in your adapter.\n       ```app/adapters/application.js\n      buildQuery(snapshot) {\n        let query = this._super(...arguments);\n         let { fields } = snapshot.adapterOptions;\n         if (fields) {\n          query.fields = fields;\n        }\n         return query;\n      }\n      ```\n       2. Then pass through the applicable fields to your `findRecord` request.\n       Given a `post` model with attributes body, title, publishDate and meta, you can retrieve a filtered list of attributes.\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n      export default Route.extend({\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { adapterOptions: { fields: { post: 'body,title' } });\n        }\n      });\n      ```\n       Moreover, you can filter attributes on related models as well. If a `post` has a `belongsTo` relationship to a user,\n      just include the relationship key and attributes.\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n      export default Route.extend({\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { adapterOptions: { fields: { post: 'body,title', user: 'name,email' } });\n        }\n      });\n      ```\n       @since 1.13.0\n      @method findRecord\n      @public\n      @param {String} modelName\n      @param {(String|Integer)} id\n      @param {Object} [options]\n      @param {Object} preload - optional set of attributes and relationships passed in either as IDs or as actual models\n      @return {Promise} promise\n    */\n    findRecord(modelName, id, options) {\n      {\n        assertDestroyingStore$1(this, 'findRecord');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's findRecord method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var type = normalizeModelName(modelName);\n      var normalizedId = ensureStringId(id);\n      var resource = constructResource(type, normalizedId);\n      var internalModel = internalModelFactoryFor(this).lookup(resource);\n      options = options || {};\n      if (!this.hasRecordForId(type, normalizedId)) {\n        return this._findByInternalModel(internalModel, options);\n      }\n      var fetchedInternalModel = this._findRecord(internalModel, options);\n      return promiseRecord(fetchedInternalModel, `DS: Store#findRecord ${type} with id: ${id}`);\n    }\n    _findRecord(internalModel, options) {\n      // Refetch if the reload option is passed\n      if (options.reload) {\n        return this._scheduleFetch(internalModel, options);\n      }\n      var snapshot = internalModel.createSnapshot(options);\n      var adapter = this.adapterFor(internalModel.modelName);\n\n      // Refetch the record if the adapter thinks the record is stale\n      if (typeof options.reload === 'undefined' && adapter.shouldReloadRecord && adapter.shouldReloadRecord(this, snapshot)) {\n        return this._scheduleFetch(internalModel, options);\n      }\n      if (options.backgroundReload === false) {\n        return RSVP.Promise.resolve(internalModel);\n      }\n\n      // Trigger the background refetch if backgroundReload option is passed\n      if (options.backgroundReload || !adapter.shouldBackgroundReloadRecord || adapter.shouldBackgroundReloadRecord(this, snapshot)) {\n        this._scheduleFetch(internalModel, options);\n      }\n\n      // Return the cached record\n      return RSVP.Promise.resolve(internalModel);\n    }\n    _findByInternalModel(internalModel, options = {}) {\n      if (options.preload) {\n        this._backburner.join(() => {\n          internalModel.preloadData(options.preload);\n        });\n      }\n      var fetchedInternalModel = this._findEmptyInternalModel(internalModel, options);\n      return promiseRecord(fetchedInternalModel, `DS: Store#findRecord ${internalModel.modelName} with id: ${internalModel.id}`);\n    }\n    _findEmptyInternalModel(internalModel, options) {\n      if (internalModel.currentState.isEmpty) {\n        return this._scheduleFetch(internalModel, options);\n      }\n\n      //TODO double check about reloading\n      {\n        if (internalModel.currentState.isLoading) {\n          var pendingRequest = this._fetchManager.getPendingFetch(internalModel.identifier, options);\n          if (pendingRequest) {\n            return pendingRequest.then(() => RSVP.Promise.resolve(internalModel));\n          }\n          return this._scheduleFetch(internalModel, options);\n        }\n      }\n      return RSVP.Promise.resolve(internalModel);\n    }\n\n    /**\n      This method makes a series of requests to the adapter's `find` method\n      and returns a promise that resolves once they are all loaded.\n       @private\n      @method findByIds\n      @param {String} modelName\n      @param {Array} ids\n      @return {Promise} promise\n    */\n    findByIds(modelName, ids) {\n      {\n        assertDestroyingStore$1(this, 'findByIds');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's findByIds method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var promises = new Array(ids.length);\n      var normalizedModelName = normalizeModelName(modelName);\n      for (var i = 0; i < ids.length; i++) {\n        promises[i] = this.findRecord(normalizedModelName, ids[i]);\n      }\n      return promiseArray(RSVP.all(promises).then(EmberArray.A, null, `DS: Store#findByIds of ${normalizedModelName} complete`));\n    }\n\n    /**\n      This method is called by `findRecord` if it discovers that a particular\n      type/id pair hasn't been loaded yet to kick off a request to the\n      adapter.\n       @method _fetchRecord\n      @private\n      @param {InternalModel} internalModel model\n      @return {Promise} promise\n     */\n    _fetchRecord(internalModel, options) {\n      var modelName = internalModel.modelName;\n      var adapter = this.adapterFor(modelName);\n      (!(adapter) && debug.assert(`You tried to find a record but you have no adapter (for ${modelName})`, adapter));\n      (!(typeof adapter.findRecord === 'function') && debug.assert(`You tried to find a record but your adapter (for ${modelName}) does not implement 'findRecord'`, typeof adapter.findRecord === 'function'));\n      return _find(adapter, this, internalModel.modelClass, internalModel.id, internalModel, options);\n    }\n    _scheduleFetchMany(internalModels, options) {\n      var fetches = new Array(internalModels.length);\n      for (var i = 0; i < internalModels.length; i++) {\n        fetches[i] = this._scheduleFetch(internalModels[i], options);\n      }\n      return RSVP.Promise.all(fetches);\n    }\n    _scheduleFetchThroughFetchManager(internalModel, options = {}) {\n      var generateStackTrace = this.generateStackTracesForTrackedRequests;\n      // TODO  remove this once we don't rely on state machine\n      internalModel.send('loadingData');\n      var identifier = internalModel.identifier;\n      assertIdentifierHasId(identifier);\n      var promise = this._fetchManager.scheduleFetch(identifier, options, generateStackTrace);\n      return promise.then(payload => {\n        // ensure that regardless of id returned we assign to the correct record\n        if (payload.data && !Array.isArray(payload.data)) {\n          payload.data.lid = identifier.lid;\n        }\n\n        // Returning this._push here, breaks typing but not any tests, investigate potential missing tests\n        var potentiallyNewIm = this._push(payload);\n        if (potentiallyNewIm && !Array.isArray(potentiallyNewIm)) {\n          return potentiallyNewIm;\n        } else {\n          return internalModel;\n        }\n      }, error => {\n        // TODO  remove this once we don't rely on state machine\n        internalModel.send('notFound');\n        if (internalModel.currentState.isEmpty) {\n          internalModel.unloadRecord();\n        }\n        throw error;\n      });\n    }\n    _scheduleFetch(internalModel, options) {\n      {\n        return this._scheduleFetchThroughFetchManager(internalModel, options);\n      }\n    }\n    flushAllPendingFetches() {\n      {\n        return;\n        //assert here\n      }\n    }\n    _flushPendingFetchForType(pendingFetchItems, modelName) {\n      var store = this;\n      var adapter = store.adapterFor(modelName);\n      var shouldCoalesce = !!adapter.findMany && adapter.coalesceFindRequests;\n      var totalItems = pendingFetchItems.length;\n      var internalModels = new Array(totalItems);\n      var seeking = Object.create(null);\n      var optionsMap = new WeakMap();\n      for (var _i = 0; _i < totalItems; _i++) {\n        var pendingItem = pendingFetchItems[_i];\n        var _internalModel = pendingItem.internalModel;\n        internalModels[_i] = _internalModel;\n        optionsMap.set(_internalModel, pendingItem.options);\n        // We can remove this \"not null\" cast once we have enough typing\n        // to know we are only dealing with ExistingResourceIdentifierObjects\n        seeking[_internalModel.id] = pendingItem;\n      }\n      function _fetchRecord(recordResolverPair) {\n        var recordFetch = store._fetchRecord(recordResolverPair.internalModel, recordResolverPair.options);\n        recordResolverPair.resolver.resolve(recordFetch);\n      }\n      function handleFoundRecords(foundInternalModels, expectedInternalModels) {\n        // resolve found records\n        var found = Object.create(null);\n        for (var _i2 = 0, _l = foundInternalModels.length; _i2 < _l; _i2++) {\n          var _internalModel2 = foundInternalModels[_i2];\n\n          // We can remove this \"not null\" cast once we have enough typing\n          // to know we are only dealing with ExistingResourceIdentifierObjects\n          var _pair = seeking[_internalModel2.id];\n          found[_internalModel2.id] = _internalModel2;\n          if (_pair) {\n            var resolver = _pair.resolver;\n            resolver.resolve(_internalModel2);\n          }\n        }\n\n        // reject missing records\n        var missingInternalModels = [];\n        for (var _i3 = 0, _l2 = expectedInternalModels.length; _i3 < _l2; _i3++) {\n          var _internalModel3 = expectedInternalModels[_i3];\n\n          // We can remove this \"not null\" cast once we have enough typing\n          // to know we are only dealing with ExistingResourceIdentifierObjects\n          if (!found[_internalModel3.id]) {\n            missingInternalModels.push(_internalModel3);\n          }\n        }\n        if (missingInternalModels.length) {\n          (debug.warn('Ember Data expected to find records with the following ids in the adapter response but they were missing: [ \"' + missingInternalModels.map(r => r.id).join('\", \"') + '\" ]', false, {\n            id: 'ds.store.missing-records-from-adapter'\n          }));\n          rejectInternalModels(missingInternalModels);\n        }\n      }\n      function rejectInternalModels(internalModels, error) {\n        for (var _i4 = 0, _l3 = internalModels.length; _i4 < _l3; _i4++) {\n          var _internalModel4 = internalModels[_i4];\n\n          // We can remove this \"not null\" cast once we have enough typing\n          // to know we are only dealing with ExistingResourceIdentifierObjects\n          var _pair2 = seeking[_internalModel4.id];\n          if (_pair2) {\n            _pair2.resolver.reject(error || new Error(`Expected: '${_internalModel4}' to be present in the adapter provided payload, but it was not found.`));\n          }\n        }\n      }\n      if (shouldCoalesce) {\n        // TODO: Improve records => snapshots => records => snapshots\n        //\n        // We want to provide records to all store methods and snapshots to all\n        // adapter methods. To make sure we're doing that we're providing an array\n        // of snapshots to adapter.groupRecordsForFindMany(), which in turn will\n        // return grouped snapshots instead of grouped records.\n        //\n        // But since the _findMany() finder is a store method we need to get the\n        // records from the grouped snapshots even though the _findMany() finder\n        // will once again convert the records to snapshots for adapter.findMany()\n        var snapshots = new Array(totalItems);\n        for (var _i5 = 0; _i5 < totalItems; _i5++) {\n          var _internalModel5 = internalModels[_i5];\n          snapshots[_i5] = _internalModel5.createSnapshot(optionsMap.get(_internalModel5));\n        }\n        var groups;\n        if (adapter.groupRecordsForFindMany) {\n          groups = adapter.groupRecordsForFindMany(this, snapshots);\n        } else {\n          groups = [snapshots];\n        }\n\n        // we use var here because babel transpiles let\n        // in a manner that causes a mega-bad perf scenario here\n        // when targets no longer include IE11 we can drop this.\n        /* eslint-disable no-var */\n        for (var i = 0, l = groups.length; i < l; i++) {\n          var group = groups[i];\n          var totalInGroup = groups[i].length;\n          var ids = new Array(totalInGroup);\n          var groupedInternalModels = new Array(totalInGroup);\n          for (var j = 0; j < totalInGroup; j++) {\n            var internalModel = group[j]._internalModel;\n            groupedInternalModels[j] = internalModel;\n            ids[j] = internalModel.id;\n          }\n          if (totalInGroup > 1) {\n            (function (groupedInternalModels) {\n              _findMany(adapter, store, modelName, ids, groupedInternalModels, optionsMap).then(function (foundInternalModels) {\n                handleFoundRecords(foundInternalModels, groupedInternalModels);\n              }).catch(function (error) {\n                rejectInternalModels(groupedInternalModels, error);\n              });\n            })(groupedInternalModels);\n          } else if (ids.length === 1) {\n            var pair = seeking[groupedInternalModels[0].id];\n            _fetchRecord(pair);\n          } else {\n            (debug.assert(\"You cannot return an empty array from adapter's method groupRecordsForFindMany\"));\n          }\n        }\n      } else {\n        for (var _i6 = 0; _i6 < totalItems; _i6++) {\n          _fetchRecord(pendingFetchItems[_i6]);\n        }\n      }\n    }\n\n    /**\n      Get the reference for the specified record.\n       Example\n       ```javascript\n      let userRef = store.getReference('user', 1);\n       // check if the user is loaded\n      let isLoaded = userRef.value() !== null;\n       // get the record of the reference (null if not yet available)\n      let user = userRef.value();\n       // get the identifier of the reference\n      if (userRef.remoteType() === 'id') {\n      let id = userRef.id();\n      }\n       // load user (via store.find)\n      userRef.load().then(...)\n       // or trigger a reload\n      userRef.reload().then(...)\n       // provide data for reference\n      userRef.push({ id: 1, username: '@user' }).then(function(user) {\n        userRef.value() === user;\n      });\n      ```\n       @method getReference\n      @public\n      @param {String} modelName\n      @param {String|Integer} id\n      @since 2.5.0\n      @return {RecordReference}\n    */\n    getReference(modelName, id) {\n      {\n        assertDestroyingStore$1(this, 'getReference');\n      }\n      var type = normalizeModelName(modelName);\n      var normalizedId = ensureStringId(id);\n      var resource = constructResource(type, normalizedId);\n      var identifier = identifierCacheFor(this).getOrCreateRecordIdentifier(resource);\n      if (identifier) {\n        if (RECORD_REFERENCES.has(identifier)) {\n          return RECORD_REFERENCES.get(identifier);\n        }\n        var reference = new RecordReference(this, identifier);\n        RECORD_REFERENCES.set(identifier, reference);\n        return reference;\n      }\n    }\n\n    /**\n      Get a record by a given type and ID without triggering a fetch.\n       This method will synchronously return the record if it is available in the store,\n      otherwise it will return `null`. A record is available if it has been fetched earlier, or\n      pushed manually into the store.\n       See [findRecord](../methods/findRecord?anchor=findRecord) if you would like to request this record from the backend.\n       _Note: This is a synchronous method and does not return a promise._\n       ```js\n      let post = store.peekRecord('post', 1);\n       post.get('id'); // 1\n      ```\n       @since 1.13.0\n      @method peekRecord\n      @public\n      @param {String} modelName\n      @param {String|Integer} id\n      @return {Model|null} record\n    */\n    peekRecord(modelName, id) {\n      {\n        assertDestroyingStore$1(this, 'peekRecord');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's peekRecord method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var type = normalizeModelName(modelName);\n      var normalizedId = ensureStringId(id);\n      if (this.hasRecordForId(type, normalizedId)) {\n        var resource = constructResource(type, normalizedId);\n        return internalModelFactoryFor(this).lookup(resource).getRecord();\n      } else {\n        return null;\n      }\n    }\n\n    /**\n      This method is called by the record's `reload` method.\n       This method calls the adapter's `find` method, which returns a promise. When\n      **that** promise resolves, `_reloadRecord` will resolve the promise returned\n      by the record's `reload`.\n       @method _reloadRecord\n      @private\n      @param {Model} internalModel\n      @param options optional to include adapterOptions\n      @return {Promise} promise\n    */\n    _reloadRecord(internalModel, options) {\n      {\n        options.isReloading = true;\n      }\n      var {\n        id,\n        modelName\n      } = internalModel;\n      var adapter = this.adapterFor(modelName);\n      (!(id) && debug.assert(`You cannot reload a record without an ID`, id));\n      (!(adapter) && debug.assert(`You tried to reload a record but you have no adapter (for ${modelName})`, adapter));\n      (!(typeof adapter.findRecord === 'function' || typeof adapter.find === 'function') && debug.assert(`You tried to reload a record but your adapter does not implement 'findRecord'`, typeof adapter.findRecord === 'function' || typeof adapter.find === 'function'));\n      return this._scheduleFetch(internalModel, options);\n    }\n\n    /**\n     This method returns true if a record for a given modelName and id is already\n     loaded in the store. Use this function to know beforehand if a findRecord()\n     will result in a request or that it will be a cache hit.\n      Example\n      ```javascript\n     store.hasRecordForId('post', 1); // false\n     store.findRecord('post', 1).then(function() {\n       store.hasRecordForId('post', 1); // true\n     });\n     ```\n       @method hasRecordForId\n      @public\n      @param {String} modelName\n      @param {(String|Integer)} id\n      @return {Boolean}\n    */\n    hasRecordForId(modelName, id) {\n      {\n        assertDestroyingStore$1(this, 'hasRecordForId');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's hasRecordForId method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var type = normalizeModelName(modelName);\n      var trueId = ensureStringId(id);\n      var resource = {\n        type,\n        id: trueId\n      };\n      var identifier = identifierCacheFor(this).peekRecordIdentifier(resource);\n      var internalModel = identifier && internalModelFactoryFor(this).peek(identifier);\n      return !!internalModel && internalModel.currentState.isLoaded;\n    }\n\n    /**\n      Returns id record for a given type and ID. If one isn't already loaded,\n      it builds a new record and leaves it in the `empty` state.\n       @method recordForId\n      @private\n      @param {String} modelName\n      @param {(String|Integer)} id\n      @return {Model} record\n    */\n    recordForId(modelName, id) {\n      {\n        assertDestroyingStore$1(this, 'recordForId');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's recordForId method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var resource = constructResource(modelName, ensureStringId(id));\n      return internalModelFactoryFor(this).lookup(resource).getRecord();\n    }\n\n    /**\n      @method findMany\n      @private\n      @param {Array} internalModels\n      @return {Promise} promise\n    */\n    findMany(internalModels, options) {\n      {\n        assertDestroyingStore$1(this, 'findMany');\n      }\n      var finds = new Array(internalModels.length);\n      for (var i = 0; i < internalModels.length; i++) {\n        finds[i] = this._findEmptyInternalModel(internalModels[i], options);\n      }\n      return RSVP.Promise.all(finds);\n    }\n\n    /**\n      If a relationship was originally populated by the adapter as a link\n      (as opposed to a list of IDs), this method is called when the\n      relationship is fetched.\n       The link (which is usually a URL) is passed through unchanged, so the\n      adapter can make whatever request it wants.\n       The usual use-case is for the server to register a URL as a link, and\n      then use that URL in the future to make a request for the relationship.\n       @method findHasMany\n      @private\n      @param {InternalModel} internalModel\n      @param {any} link\n      @param {(Relationship)} relationship\n      @return {Promise} promise\n    */\n    findHasMany(internalModel, link, relationship, options) {\n      {\n        assertDestroyingStore$1(this, 'findHasMany');\n      }\n      var adapter = this.adapterFor(internalModel.modelName);\n      (!(adapter) && debug.assert(`You tried to load a hasMany relationship but you have no adapter (for ${internalModel.modelName})`, adapter));\n      (!(typeof adapter.findHasMany === 'function') && debug.assert(`You tried to load a hasMany relationship from a specified 'link' in the original payload but your adapter does not implement 'findHasMany'`, typeof adapter.findHasMany === 'function'));\n      return _findHasMany(adapter, this, internalModel, link, relationship, options);\n    }\n    _findHasManyByJsonApiResource(resource, parentInternalModel, relationship, options) {\n      {\n        if (!resource) {\n          return RSVP.resolve([]);\n        }\n        var {\n          definition,\n          state\n        } = relationship;\n        var adapter = this.adapterFor(definition.type);\n        var {\n          isStale,\n          hasDematerializedInverse,\n          hasReceivedData,\n          isEmpty,\n          shouldForceReload\n        } = state;\n        var allInverseRecordsAreLoaded = areAllInverseRecordsLoaded(this, resource);\n        var shouldFindViaLink = resource.links && resource.links.related && (typeof adapter.findHasMany === 'function' || typeof resource.data === 'undefined') && (shouldForceReload || hasDematerializedInverse || isStale || !allInverseRecordsAreLoaded && !isEmpty);\n\n        // fetch via link\n        if (shouldFindViaLink) {\n          // findHasMany, although not public, does not need to care about our upgrade relationship definitions\n          // and can stick with the public definition API for now.\n          var relationshipMeta = this._storeWrapper.relationshipsDefinitionFor(definition.inverseType)[definition.key];\n          return this.findHasMany(parentInternalModel, resource.links.related, relationshipMeta, options);\n        }\n        var preferLocalCache = hasReceivedData && !isEmpty;\n        var hasLocalPartialData = hasDematerializedInverse || isEmpty && Array.isArray(resource.data) && resource.data.length > 0;\n\n        // fetch using data, pulling from local cache if possible\n        if (!shouldForceReload && !isStale && (preferLocalCache || hasLocalPartialData)) {\n          var internalModels = resource.data.map(json => this._internalModelForResource(json));\n          return this.findMany(internalModels, options);\n        }\n        var hasData = hasReceivedData && !isEmpty;\n\n        // fetch by data\n        if (hasData || hasLocalPartialData) {\n          var _internalModels = resource.data.map(json => this._internalModelForResource(json));\n          return this._scheduleFetchMany(_internalModels, options);\n        }\n\n        // we were explicitly told we have no data and no links.\n        //   TODO if the relationshipIsStale, should we hit the adapter anyway?\n        return RSVP.resolve([]);\n      }\n    }\n\n    /**\n      @method findBelongsTo\n      @private\n      @param {InternalModel} internalModel\n      @param {any} link\n      @param {Relationship} relationship\n      @return {Promise} promise\n    */\n    findBelongsTo(internalModel, link, relationship, options) {\n      {\n        assertDestroyingStore$1(this, 'findBelongsTo');\n      }\n      var adapter = this.adapterFor(internalModel.modelName);\n      (!(adapter) && debug.assert(`You tried to load a belongsTo relationship but you have no adapter (for ${internalModel.modelName})`, adapter));\n      (!(typeof adapter.findBelongsTo === 'function') && debug.assert(`You tried to load a belongsTo relationship from a specified 'link' in the original payload but your adapter does not implement 'findBelongsTo'`, typeof adapter.findBelongsTo === 'function'));\n      return _findBelongsTo(adapter, this, internalModel, link, relationship, options);\n    }\n    _fetchBelongsToLinkFromResource(resource, parentInternalModel, relationshipMeta, options) {\n      if (!resource || !resource.links || !resource.links.related) {\n        // should we warn here, not sure cause its an internal method\n        return RSVP.resolve(null);\n      }\n      return this.findBelongsTo(parentInternalModel, resource.links.related, relationshipMeta, options).then(internalModel => {\n        return internalModel ? internalModel.getRecord() : null;\n      });\n    }\n    _findBelongsToByJsonApiResource(resource, parentInternalModel, relationshipMeta, options) {\n      if (!resource) {\n        return RSVP.resolve(null);\n      }\n      var internalModel = resource.data ? this._internalModelForResource(resource.data) : null;\n      var {\n        isStale,\n        hasDematerializedInverse,\n        hasReceivedData,\n        isEmpty,\n        shouldForceReload\n      } = resource._relationship.state;\n      var allInverseRecordsAreLoaded = areAllInverseRecordsLoaded(this, resource);\n      var shouldFindViaLink = resource.links && resource.links.related && (shouldForceReload || hasDematerializedInverse || isStale || !allInverseRecordsAreLoaded && !isEmpty);\n      if (internalModel) {\n        // short circuit if we are already loading\n        {\n          var pendingRequest = this._fetchManager.getPendingFetch(internalModel.identifier, options);\n          if (pendingRequest) {\n            return pendingRequest.then(() => internalModel.getRecord());\n          }\n        }\n      }\n\n      // fetch via link\n      if (shouldFindViaLink) {\n        return this._fetchBelongsToLinkFromResource(resource, parentInternalModel, relationshipMeta, options);\n      }\n      var preferLocalCache = hasReceivedData && allInverseRecordsAreLoaded && !isEmpty;\n      var hasLocalPartialData = hasDematerializedInverse || isEmpty && resource.data;\n      // null is explicit empty, undefined is \"we don't know anything\"\n      var localDataIsEmpty = resource.data === undefined || resource.data === null;\n\n      // fetch using data, pulling from local cache if possible\n      if (!shouldForceReload && !isStale && (preferLocalCache || hasLocalPartialData)) {\n        /*\n          We have canonical data, but our local state is empty\n         */\n        if (localDataIsEmpty) {\n          return RSVP.resolve(null);\n        }\n        if (!internalModel) {\n          (!(internalModel) && debug.assert(`No InternalModel found for ${resource.lid}`, internalModel));\n        }\n        return this._findByInternalModel(internalModel, options);\n      }\n      var resourceIsLocal = !localDataIsEmpty && resource.data.id === null;\n      if (internalModel && resourceIsLocal) {\n        return RSVP.resolve(internalModel.getRecord());\n      }\n\n      // fetch by data\n      if (internalModel && !localDataIsEmpty) {\n        return this._scheduleFetch(internalModel, options).then(() => {\n          return internalModel.getRecord();\n        });\n      }\n\n      // we were explicitly told we have no data and no links.\n      //   TODO if the relationshipIsStale, should we hit the adapter anyway?\n      return RSVP.resolve(null);\n    }\n\n    /**\n      This method delegates a query to the adapter. This is the one place where\n      adapter-level semantics are exposed to the application.\n       Each time this method is called a new request is made through the adapter.\n       Exposing queries this way seems preferable to creating an abstract query\n      language for all server-side queries, and then require all adapters to\n      implement them.\n       ---\n       If you do something like this:\n       ```javascript\n      store.query('person', { page: 1 });\n      ```\n       The request made to the server will look something like this:\n       ```\n      GET \"/api/v1/person?page=1\"\n      ```\n       ---\n       If you do something like this:\n       ```javascript\n      store.query('person', { ids: [1, 2, 3] });\n      ```\n       The request made to the server will look something like this:\n       ```\n      GET \"/api/v1/person?ids%5B%5D=1&ids%5B%5D=2&ids%5B%5D=3\"\n      decoded: \"/api/v1/person?ids[]=1&ids[]=2&ids[]=3\"\n      ```\n       This method returns a promise, which is resolved with an\n      [`AdapterPopulatedRecordArray`](/ember-data/release/classes/AdapterPopulatedRecordArray)\n      once the server returns.\n       @since 1.13.0\n      @method query\n      @public\n      @param {String} modelName\n      @param {any} query an opaque query to be used by the adapter\n      @param {Object} options optional, may include `adapterOptions` hash which will be passed to adapter.query\n      @return {Promise} promise\n    */\n    query(modelName, query, options) {\n      {\n        assertDestroyingStore$1(this, 'query');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's query method`, utils.isPresent(modelName)));\n      (!(query) && debug.assert(`You need to pass a query hash to the store's query method`, query));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var adapterOptionsWrapper = {};\n      if (options && options.adapterOptions) {\n        adapterOptionsWrapper.adapterOptions = options.adapterOptions;\n      }\n      var normalizedModelName = normalizeModelName(modelName);\n      return this._query(normalizedModelName, query, null, adapterOptionsWrapper);\n    }\n    _query(modelName, query, array, options) {\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's query method`, utils.isPresent(modelName)));\n      (!(query) && debug.assert(`You need to pass a query hash to the store's query method`, query));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var adapter = this.adapterFor(modelName);\n      (!(adapter) && debug.assert(`You tried to load a query but you have no adapter (for ${modelName})`, adapter));\n      (!(typeof adapter.query === 'function') && debug.assert(`You tried to load a query but your adapter does not implement 'query'`, typeof adapter.query === 'function'));\n      return promiseArray(_query(adapter, this, modelName, query, array, options));\n    }\n\n    /**\n      This method makes a request for one record, where the `id` is not known\n      beforehand (if the `id` is known, use [`findRecord`](../methods/findRecord?anchor=findRecord)\n      instead).\n       This method can be used when it is certain that the server will return a\n      single object for the primary data.\n       Each time this method is called a new request is made through the adapter.\n       Let's assume our API provides an endpoint for the currently logged in user\n      via:\n       ```\n      // GET /api/current_user\n      {\n        user: {\n          id: 1234,\n          username: 'admin'\n        }\n      }\n      ```\n       Since the specific `id` of the `user` is not known beforehand, we can use\n      `queryRecord` to get the user:\n       ```javascript\n      store.queryRecord('user', {}).then(function(user) {\n        let username = user.get('username');\n        console.log(`Currently logged in as ${username}`);\n      });\n      ```\n       The request is made through the adapters' `queryRecord`:\n       ```app/adapters/user.js\n      import Adapter from '@ember-data/adapter';\n      import $ from 'jquery';\n       export default class UserAdapter extends Adapter {\n        queryRecord(modelName, query) {\n          return $.getJSON('/api/current_user');\n        }\n      }\n      ```\n       Note: the primary use case for `store.queryRecord` is when a single record\n      is queried and the `id` is not known beforehand. In all other cases\n      `store.query` and using the first item of the array is likely the preferred\n      way:\n       ```\n      // GET /users?username=unique\n      {\n        data: [{\n          id: 1234,\n          type: 'user',\n          attributes: {\n            username: \"unique\"\n          }\n        }]\n      }\n      ```\n       ```javascript\n      store.query('user', { username: 'unique' }).then(function(users) {\n        return users.get('firstObject');\n      }).then(function(user) {\n        let id = user.get('id');\n      });\n      ```\n       This method returns a promise, which resolves with the found record.\n       If the adapter returns no data for the primary data of the payload, then\n      `queryRecord` resolves with `null`:\n       ```\n      // GET /users?username=unique\n      {\n        data: null\n      }\n      ```\n       ```javascript\n      store.queryRecord('user', { username: 'unique' }).then(function(user) {\n        console.log(user); // null\n      });\n      ```\n       @since 1.13.0\n      @method queryRecord\n      @public\n      @param {String} modelName\n      @param {any} query an opaque query to be used by the adapter\n      @param {Object} options optional, may include `adapterOptions` hash which will be passed to adapter.queryRecord\n      @return {Promise} promise which resolves with the found record or `null`\n    */\n    queryRecord(modelName, query, options) {\n      {\n        assertDestroyingStore$1(this, 'queryRecord');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's queryRecord method`, utils.isPresent(modelName)));\n      (!(query) && debug.assert(`You need to pass a query hash to the store's queryRecord method`, query));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      var adapter = this.adapterFor(normalizedModelName);\n      var adapterOptionsWrapper = {};\n      if (options && options.adapterOptions) {\n        adapterOptionsWrapper.adapterOptions = options.adapterOptions;\n      }\n      (!(adapter) && debug.assert(`You tried to make a query but you have no adapter (for ${normalizedModelName})`, adapter));\n      (!(typeof adapter.queryRecord === 'function') && debug.assert(`You tried to make a query but your adapter does not implement 'queryRecord'`, typeof adapter.queryRecord === 'function'));\n      return promiseObject(_queryRecord(adapter, this, normalizedModelName, query, adapterOptionsWrapper).then(internalModel => {\n        // the promise returned by store.queryRecord is expected to resolve with\n        // an instance of Model\n        if (internalModel) {\n          return internalModel.getRecord();\n        }\n        return null;\n      }));\n    }\n\n    /**\n      `findAll` asks the adapter's `findAll` method to find the records for the\n      given type, and returns a promise which will resolve with all records of\n      this type present in the store, even if the adapter only returns a subset\n      of them.\n       ```app/routes/authors.js\n      import Route from '@ember/routing/route';\n       export default class AuthorsRoute extends Route {\n        model(params) {\n          return this.store.findAll('author');\n        }\n      }\n      ```\n       _When_ the returned promise resolves depends on the reload behavior,\n      configured via the passed `options` hash and the result of the adapter's\n      `shouldReloadAll` method.\n       ### Reloading\n       If `{ reload: true }` is passed or `adapter.shouldReloadAll` evaluates to\n      `true`, then the returned promise resolves once the adapter returns data,\n      regardless if there are already records in the store:\n       ```js\n      store.push({\n        data: {\n          id: 'first',\n          type: 'author'\n        }\n      });\n       // adapter#findAll resolves with\n      // [\n      //   {\n      //     id: 'second',\n      //     type: 'author'\n      //   }\n      // ]\n      store.findAll('author', { reload: true }).then(function(authors) {\n        authors.getEach('id'); // ['first', 'second']\n      });\n      ```\n       If no reload is indicated via the above mentioned ways, then the promise\n      immediately resolves with all the records currently loaded in the store.\n       ### Background Reloading\n       Optionally, if `adapter.shouldBackgroundReloadAll` evaluates to `true`,\n      then a background reload is started. Once this resolves, the array with\n      which the promise resolves, is updated automatically so it contains all the\n      records in the store:\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n       export default class ApplicationAdapter extends Adapter {\n        shouldReloadAll(store, snapshotsArray) {\n          return false;\n        },\n         shouldBackgroundReloadAll(store, snapshotsArray) {\n          return true;\n        }\n      });\n       // ...\n       store.push({\n        data: {\n          id: 'first',\n          type: 'author'\n        }\n      });\n       let allAuthors;\n      store.findAll('author').then(function(authors) {\n        authors.getEach('id'); // ['first']\n         allAuthors = authors;\n      });\n       // later, once adapter#findAll resolved with\n      // [\n      //   {\n      //     id: 'second',\n      //     type: 'author'\n      //   }\n      // ]\n       allAuthors.getEach('id'); // ['first', 'second']\n      ```\n       If you would like to force or prevent background reloading, you can set a\n      boolean value for `backgroundReload` in the options object for\n      `findAll`.\n       ```app/routes/post/edit.js\n      import Route from '@ember/routing/route';\n       export default class PostEditRoute extends Route {\n        model() {\n          return this.store.findAll('post', { backgroundReload: false });\n        }\n      }\n      ```\n       If you pass an object on the `adapterOptions` property of the options\n      argument it will be passed to you adapter via the `snapshotRecordArray`\n       ```app/routes/posts.js\n      import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n        model(params) {\n          return this.store.findAll('post', {\n            adapterOptions: { subscribe: false }\n          });\n        }\n      }\n      ```\n       ```app/adapters/post.js\n      import MyCustomAdapter from './custom-adapter';\n       export default class UserAdapter extends MyCustomAdapter {\n        findAll(store, type, sinceToken, snapshotRecordArray) {\n          if (snapshotRecordArray.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      }\n      ```\n       See [peekAll](../methods/peekAll?anchor=peekAll) to get an array of current records in the\n      store, without waiting until a reload is finished.\n       ### Retrieving Related Model Records\n       If you use an adapter such as Ember's default\n      [`JSONAPIAdapter`](/ember-data/release/classes/JSONAPIAdapter)\n      that supports the [JSON API specification](http://jsonapi.org/) and if your server\n      endpoint supports the use of an\n      ['include' query parameter](http://jsonapi.org/format/#fetching-includes),\n      you can use `findAll()` to automatically retrieve additional records related to\n      those requested by supplying an `include` parameter in the `options` object.\n       For example, given a `post` model that has a `hasMany` relationship with a `comment`\n      model, when we retrieve all of the post records we can have the server also return\n      all of the posts' comments in the same request:\n       ```app/routes/posts.js\n      import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n        model() {\n          return this.store.findAll('post', { include: 'comments' });\n        }\n      }\n      ```\n      Multiple relationships can be requested using an `include` parameter consisting of a\n      comma-separated list (without white-space) while nested relationships can be specified\n      using a dot-separated sequence of relationship names. So to request both the posts'\n      comments and the authors of those comments the request would look like this:\n       ```app/routes/posts.js\n      import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n        model() {\n          return this.store.findAll('post', { include: 'comments,comments.author' });\n        }\n      }\n      ```\n       See [query](../methods/query?anchor=query) to only get a subset of records from the server.\n       @since 1.13.0\n      @method findAll\n      @public\n      @param {String} modelName\n      @param {Object} options\n      @return {Promise} promise\n    */\n    findAll(modelName, options) {\n      {\n        assertDestroyingStore$1(this, 'findAll');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's findAll method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      var fetch = this._fetchAll(normalizedModelName, this.peekAll(normalizedModelName), options);\n      return fetch;\n    }\n\n    /**\n      @method _fetchAll\n      @private\n      @param {Model} modelName\n      @param {RecordArray} array\n      @return {Promise} promise\n    */\n    _fetchAll(modelName, array, options = {}) {\n      var adapter = this.adapterFor(modelName);\n      (!(adapter) && debug.assert(`You tried to load all records but you have no adapter (for ${modelName})`, adapter));\n      (!(typeof adapter.findAll === 'function') && debug.assert(`You tried to load all records but your adapter does not implement 'findAll'`, typeof adapter.findAll === 'function'));\n      if (options.reload) {\n        object.set(array, 'isUpdating', true);\n        return promiseArray(_findAll(adapter, this, modelName, options));\n      }\n      var snapshotArray = array._createSnapshot(options);\n      if (options.reload !== false) {\n        if (adapter.shouldReloadAll && adapter.shouldReloadAll(this, snapshotArray) || !adapter.shouldReloadAll && snapshotArray.length === 0) {\n          object.set(array, 'isUpdating', true);\n          return promiseArray(_findAll(adapter, this, modelName, options));\n        }\n      }\n      if (options.backgroundReload === false) {\n        return promiseArray(RSVP.Promise.resolve(array));\n      }\n      if (options.backgroundReload || !adapter.shouldBackgroundReloadAll || adapter.shouldBackgroundReloadAll(this, snapshotArray)) {\n        object.set(array, 'isUpdating', true);\n        _findAll(adapter, this, modelName, options);\n      }\n      return promiseArray(RSVP.Promise.resolve(array));\n    }\n\n    /**\n      @method _didUpdateAll\n      @param {String} modelName\n      @private\n    */\n    _didUpdateAll(modelName) {\n      this.recordArrayManager._didUpdateAll(modelName);\n    }\n\n    /**\n      This method returns a filtered array that contains all of the\n      known records for a given type in the store.\n       Note that because it's just a filter, the result will contain any\n      locally created records of the type, however, it will not make a\n      request to the backend to retrieve additional records. If you\n      would like to request all the records from the backend please use\n      [store.findAll](../methods/findAll?anchor=findAll).\n       Also note that multiple calls to `peekAll` for a given type will always\n      return the same `RecordArray`.\n       Example\n       ```javascript\n      let localPosts = store.peekAll('post');\n      ```\n       @since 1.13.0\n      @method peekAll\n      @public\n      @param {String} modelName\n      @return {RecordArray}\n    */\n    peekAll(modelName) {\n      {\n        assertDestroyingStore$1(this, 'peekAll');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's peekAll method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      return this.recordArrayManager.liveRecordArrayFor(normalizedModelName);\n    }\n\n    /**\n      This method unloads all records in the store.\n      It schedules unloading to happen during the next run loop.\n       Optionally you can pass a type which unload all records for a given type.\n       ```javascript\n      store.unloadAll();\n      store.unloadAll('post');\n      ```\n       @method unloadAll\n      @public\n      @param {String} modelName\n    */\n    unloadAll(modelName) {\n      {\n        assertDestroyedStoreOnly$1(this, 'unloadAll');\n      }\n      (!(!modelName || typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, !modelName || typeof modelName === 'string'));\n      var factory = internalModelFactoryFor(this);\n      if (modelName === undefined) {\n        this._notificationManager.destroy();\n        factory.clear();\n      } else {\n        var normalizedModelName = normalizeModelName(modelName);\n        factory.clear(normalizedModelName);\n      }\n    }\n    filter() {\n      (debug.assert('The filter API has been moved to a plugin. To enable store.filter using an environment flag, or to use an alternative, you can visit the ember-data-filter addon page. https://github.com/ember-data/ember-data-filter', false));\n    }\n\n    // ..............\n    // . PERSISTING .\n    // ..............\n\n    /**\n      This method is called by `record.save`, and gets passed a\n      resolver for the promise that `record.save` returns.\n       It schedules saving to happen at the end of the run loop.\n       @method scheduleSave\n      @private\n      @param {InternalModel} internalModel\n      @param {Resolver} resolver\n      @param {Object} options\n    */\n    scheduleSave(internalModel, resolver, options) {\n      internalModel.createSnapshot(options);\n      if (internalModel._isRecordFullyDeleted()) {\n        resolver.resolve();\n        return resolver.promise;\n      }\n      internalModel.adapterWillCommit();\n      {\n        if (!options) {\n          options = {};\n        }\n        var recordData = internalModel._recordData;\n        var operation = 'updateRecord';\n\n        // TODO handle missing isNew\n        if (recordData.isNew && recordData.isNew()) {\n          operation = 'createRecord';\n        } else if (recordData.isDeleted && recordData.isDeleted()) {\n          operation = 'deleteRecord';\n        }\n        addSymbol(options, SaveOp, operation);\n        var fetchManagerPromise = this._fetchManager.scheduleSave(internalModel.identifier, options);\n        var promise = fetchManagerPromise.then(payload => {\n          /*\n          Note to future spelunkers hoping to optimize.\n          We rely on this `run` to create a run loop if needed\n          that `store._push` and `store.didSaveRecord` will both share.\n          We use `join` because it is often the case that we\n          have an outer run loop available still from the first\n          call to `store._push`;\n          */\n          this._backburner.join(() => {\n            var data = payload && payload.data;\n            this.didSaveRecord(internalModel, {\n              data\n            }, operation);\n            if (payload && payload.included) {\n              this._push({\n                data: null,\n                included: payload.included\n              });\n            }\n          });\n        }, e => {\n          if (typeof e === 'string') {\n            throw e;\n          }\n          var {\n            error,\n            parsedErrors\n          } = e;\n          this.recordWasInvalid(internalModel, parsedErrors, error);\n          throw error;\n        });\n        return promise;\n      }\n    }\n\n    /**\n      This method is called at the end of the run loop, and\n      flushes any records passed into `scheduleSave`\n       @method flushPendingSave\n      @private\n    */\n    flushPendingSave() {\n      {\n        // assert here\n        return;\n      }\n    }\n\n    /**\n      This method is called once the promise returned by an\n      adapter's `createRecord`, `updateRecord` or `deleteRecord`\n      is resolved.\n       If the data provides a server-generated ID, it will\n      update the record and the store's indexes.\n       @method didSaveRecord\n      @private\n      @param {InternalModel} internalModel the in-flight internal model\n      @param {Object} data optional data (see above)\n      @param {string} op the adapter operation that was committed\n    */\n    didSaveRecord(internalModel, dataArg, op) {\n      {\n        assertDestroyingStore$1(this, 'didSaveRecord');\n      }\n      var data;\n      if (dataArg) {\n        data = dataArg.data;\n      }\n      if (!data) {\n        (!(internalModel.id) && debug.assert(`Your ${internalModel.modelName} record was saved to the server, but the response does not have an id and no id has been set client side. Records must have ids. Please update the server response to provide an id in the response or generate the id on the client side either before saving the record or while normalizing the response.`, internalModel.id));\n      }\n      var cache = identifierCacheFor(this);\n      var identifier = internalModel.identifier;\n      if (op !== 'deleteRecord' && data) {\n        cache.updateRecordIdentifier(identifier, data);\n      }\n\n      //We first make sure the primary data has been updated\n      //TODO try to move notification to the user to the end of the runloop\n      internalModel.adapterDidCommit(data);\n    }\n\n    /**\n      This method is called once the promise returned by an\n      adapter's `createRecord`, `updateRecord` or `deleteRecord`\n      is rejected with a `InvalidError`.\n       @method recordWasInvalid\n      @private\n      @param {InternalModel} internalModel\n      @param {Object} errors\n    */\n    recordWasInvalid(internalModel, parsedErrors, error) {\n      {\n        assertDestroyingStore$1(this, 'recordWasInvalid');\n      }\n      {\n        internalModel.adapterDidInvalidate(parsedErrors, error);\n      }\n    }\n\n    /**\n      This method is called once the promise returned by an\n      adapter's `createRecord`, `updateRecord` or `deleteRecord`\n      is rejected (with anything other than a `InvalidError`).\n       @method recordWasError\n      @private\n      @param {InternalModel} internalModel\n      @param {Error} error\n    */\n    recordWasError(internalModel, error) {\n      {\n        assertDestroyingStore$1(this, 'recordWasError');\n      }\n      internalModel.adapterDidError(error);\n    }\n\n    /**\n      Sets newly received ID from the adapter's `createRecord`, `updateRecord`\n      or `deleteRecord`.\n       @method setRecordId\n      @private\n      @param {String} modelName\n      @param {string} newId\n      @param {string} clientId\n     */\n    setRecordId(modelName, newId, clientId) {\n      {\n        assertDestroyingStore$1(this, 'setRecordId');\n      }\n      internalModelFactoryFor(this).setRecordId(modelName, newId, clientId);\n    }\n\n    // ................\n    // . LOADING DATA .\n    // ................\n\n    /**\n      This internal method is used by `push`.\n       @method _load\n      @private\n      @param {Object} data\n    */\n    _load(data) {\n      var resource = constructResource(normalizeModelName(data.type), ensureStringId(data.id), coerceId(data.lid));\n      var internalModel = internalModelFactoryFor(this).lookup(resource, data);\n\n      // store.push will be from empty\n      // findRecord will be from root.loading\n      // all else will be updates\n      var isLoading = internalModel.currentState.stateName === 'root.loading';\n      var isUpdate = internalModel.currentState.isEmpty === false && !isLoading;\n\n      // exclude store.push (root.empty) case\n      var identifier = internalModel.identifier;\n      if (isUpdate || isLoading) {\n        var updatedIdentifier = identifierCacheFor(this).updateRecordIdentifier(identifier, data);\n        if (updatedIdentifier !== identifier) {\n          // we encountered a merge of identifiers in which\n          // two identifiers (and likely two internalModels)\n          // existed for the same resource. Now that we have\n          // determined the correct identifier to use, make sure\n          // that we also use the correct internalModel.\n          identifier = updatedIdentifier;\n          internalModel = internalModelFactoryFor(this).lookup(identifier);\n        }\n      }\n      internalModel.setupData(data);\n      if (!isUpdate) {\n        this.recordArrayManager.recordDidChange(identifier);\n      }\n      return internalModel;\n    }\n\n    /**\n      Push some data for a given type into the store.\n       This method expects normalized [JSON API](http://jsonapi.org/) document. This means you have to follow [JSON API specification](http://jsonapi.org/format/) with few minor adjustments:\n      - record's `type` should always be in singular, dasherized form\n      - members (properties) should be camelCased\n       [Your primary data should be wrapped inside `data` property](http://jsonapi.org/format/#document-top-level):\n       ```js\n      store.push({\n        data: {\n          // primary data for single record of type `Person`\n          id: '1',\n          type: 'person',\n          attributes: {\n            firstName: 'Daniel',\n            lastName: 'Kmak'\n          }\n        }\n      });\n      ```\n       [Demo.](http://ember-twiddle.com/fb99f18cd3b4d3e2a4c7)\n       `data` property can also hold an array (of records):\n       ```js\n      store.push({\n        data: [\n          // an array of records\n          {\n            id: '1',\n            type: 'person',\n            attributes: {\n              firstName: 'Daniel',\n              lastName: 'Kmak'\n            }\n          },\n          {\n            id: '2',\n            type: 'person',\n            attributes: {\n              firstName: 'Tom',\n              lastName: 'Dale'\n            }\n          }\n        ]\n      });\n      ```\n       [Demo.](http://ember-twiddle.com/69cdbeaa3702159dc355)\n       There are some typical properties for `JSONAPI` payload:\n      * `id` - mandatory, unique record's key\n      * `type` - mandatory string which matches `model`'s dasherized name in singular form\n      * `attributes` - object which holds data for record attributes - `attr`'s declared in model\n      * `relationships` - object which must contain any of the following properties under each relationships' respective key (example path is `relationships.achievements.data`):\n        - [`links`](http://jsonapi.org/format/#document-links)\n        - [`data`](http://jsonapi.org/format/#document-resource-object-linkage) - place for primary data\n        - [`meta`](http://jsonapi.org/format/#document-meta) - object which contains meta-information about relationship\n       For this model:\n       ```app/models/person.js\n      import Model, { attr, hasMany } from '@ember-data/model';\n       export default class PersonRoute extends Route {\n        @attr('string') firstName;\n        @attr('string') lastName;\n         @hasMany('person') children;\n      }\n      ```\n       To represent the children as IDs:\n       ```js\n      {\n        data: {\n          id: '1',\n          type: 'person',\n          attributes: {\n            firstName: 'Tom',\n            lastName: 'Dale'\n          },\n          relationships: {\n            children: {\n              data: [\n                {\n                  id: '2',\n                  type: 'person'\n                },\n                {\n                  id: '3',\n                  type: 'person'\n                },\n                {\n                  id: '4',\n                  type: 'person'\n                }\n              ]\n            }\n          }\n        }\n      }\n      ```\n       [Demo.](http://ember-twiddle.com/343e1735e034091f5bde)\n       To represent the children relationship as a URL:\n       ```js\n      {\n        data: {\n          id: '1',\n          type: 'person',\n          attributes: {\n            firstName: 'Tom',\n            lastName: 'Dale'\n          },\n          relationships: {\n            children: {\n              links: {\n                related: '/people/1/children'\n              }\n            }\n          }\n        }\n      }\n      ```\n       If you're streaming data or implementing an adapter, make sure\n      that you have converted the incoming data into this form. The\n      store's [normalize](../methods/normalize?anchor=normalize) method is a convenience\n      helper for converting a json payload into the form Ember Data\n      expects.\n       ```js\n      store.push(store.normalize('person', data));\n      ```\n       This method can be used both to push in brand new\n      records, as well as to update existing records.\n       @method push\n      @public\n      @param {Object} data\n      @return the record(s) that was created or\n        updated.\n    */\n\n    push(data) {\n      {\n        assertDestroyingStore$1(this, 'push');\n      }\n      var pushed = this._push(data);\n      if (Array.isArray(pushed)) {\n        var records = pushed.map(internalModel => internalModel.getRecord());\n        return records;\n      }\n      if (pushed === null) {\n        return null;\n      }\n      var record = pushed.getRecord();\n      return record;\n    }\n\n    /**\n      Push some data in the form of a json-api document into the store,\n      without creating materialized records.\n       @method _push\n      @private\n      @param {Object} jsonApiDoc\n      @return {InternalModel|Array<InternalModel>} pushed InternalModel(s)\n    */\n    _push(jsonApiDoc) {\n      {\n        assertDestroyingStore$1(this, '_push');\n      }\n      var internalModelOrModels = this._backburner.join(() => {\n        var included = jsonApiDoc.included;\n        var i, length;\n        if (included) {\n          for (i = 0, length = included.length; i < length; i++) {\n            this._pushInternalModel(included[i]);\n          }\n        }\n        if (Array.isArray(jsonApiDoc.data)) {\n          length = jsonApiDoc.data.length;\n          var internalModels = new Array(length);\n          for (i = 0; i < length; i++) {\n            internalModels[i] = this._pushInternalModel(jsonApiDoc.data[i]);\n          }\n          return internalModels;\n        }\n        if (jsonApiDoc.data === null) {\n          return null;\n        }\n        (!(utils.typeOf(jsonApiDoc.data) === 'object') && debug.assert(`Expected an object in the 'data' property in a call to 'push' for ${jsonApiDoc.type}, but was ${utils.typeOf(jsonApiDoc.data)}`, utils.typeOf(jsonApiDoc.data) === 'object'));\n        return this._pushInternalModel(jsonApiDoc.data);\n      });\n\n      // this typecast is necessary because `backburner.join` is mistyped to return void\n      return internalModelOrModels;\n    }\n    _pushInternalModel(data) {\n      var modelName = data.type;\n      (!(data.id !== null && data.id !== undefined && data.id !== '') && debug.assert(`You must include an 'id' for ${modelName} in an object passed to 'push'`, data.id !== null && data.id !== undefined && data.id !== ''));\n      (!(this._hasModelFor(modelName)) && debug.assert(`You tried to push data with a type '${modelName}' but no model could be found with that name.`, this._hasModelFor(modelName)));\n      {\n        // If ENV.DS_WARN_ON_UNKNOWN_KEYS is set to true and the payload\n        // contains unknown attributes or relationships, log a warning.\n\n        if (ENV.DS_WARN_ON_UNKNOWN_KEYS) {\n          var unknownAttributes, unknownRelationships;\n          {\n            var relationships = this.getSchemaDefinitionService().relationshipsDefinitionFor(modelName);\n            var attributes = this.getSchemaDefinitionService().attributesDefinitionFor(modelName);\n            // Check unknown attributes\n            unknownAttributes = Object.keys(data.attributes || {}).filter(key => {\n              return !attributes[key];\n            });\n\n            // Check unknown relationships\n            unknownRelationships = Object.keys(data.relationships || {}).filter(key => {\n              return !relationships[key];\n            });\n          }\n          var unknownAttributesMessage = `The payload for '${modelName}' contains these unknown attributes: ${unknownAttributes}. Make sure they've been defined in your model.`;\n          (debug.warn(unknownAttributesMessage, unknownAttributes.length === 0, {\n            id: 'ds.store.unknown-keys-in-payload'\n          }));\n          var unknownRelationshipsMessage = `The payload for '${modelName}' contains these unknown relationships: ${unknownRelationships}. Make sure they've been defined in your model.`;\n          (debug.warn(unknownRelationshipsMessage, unknownRelationships.length === 0, {\n            id: 'ds.store.unknown-keys-in-payload'\n          }));\n        }\n      }\n\n      // Actually load the record into the store.\n      var internalModel = this._load(data);\n\n      //    this._setupRelationshipsForModel(internalModel, data);\n\n      return internalModel;\n    }\n\n    /**\n      Push some raw data into the store.\n       This method can be used both to push in brand new\n      records, as well as to update existing records. You\n      can push in more than one type of object at once.\n      All objects should be in the format expected by the\n      serializer.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer;\n      ```\n       ```js\n      let pushData = {\n        posts: [\n          { id: 1, postTitle: \"Great post\", commentIds: [2] }\n        ],\n        comments: [\n          { id: 2, commentBody: \"Insightful comment\" }\n        ]\n      }\n       store.pushPayload(pushData);\n      ```\n       By default, the data will be deserialized using a default\n      serializer (the application serializer if it exists).\n       Alternatively, `pushPayload` will accept a model type which\n      will determine which serializer will process the payload.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n        export default class ApplicationSerializer extends RESTSerializer;\n      ```\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default JSONSerializer;\n      ```\n       ```js\n      store.pushPayload(pushData); // Will use the application serializer\n      store.pushPayload('post', pushData); // Will use the post serializer\n      ```\n       @method pushPayload\n      @public\n      @param {String} modelName Optionally, a model type used to determine which serializer will be used\n      @param {Object} inputPayload\n    */\n    pushPayload(modelName, inputPayload) {\n      {\n        assertDestroyingStore$1(this, 'pushPayload');\n      }\n      var serializer;\n      var payload;\n      if (!inputPayload) {\n        payload = modelName;\n        serializer = this.serializerFor('application');\n        (!(typeof serializer.pushPayload === 'function') && debug.assert(`You cannot use 'store#pushPayload' without a modelName unless your default serializer defines 'pushPayload'`, typeof serializer.pushPayload === 'function'));\n      } else {\n        payload = inputPayload;\n        (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n        var normalizedModelName = normalizeModelName(modelName);\n        serializer = this.serializerFor(normalizedModelName);\n      }\n      (!(serializer.pushPayload) && debug.assert(`You must define a pushPayload method in your serializer in order to call store.pushPayload`, serializer.pushPayload));\n      serializer.pushPayload(this, payload);\n    }\n    reloadManyArray(manyArray, internalModel, key, options) {\n      return internalModel.reloadHasMany(key, options);\n    }\n    reloadBelongsTo(belongsToProxy, internalModel, key, options) {\n      return internalModel.reloadBelongsTo(key, options);\n    }\n    _internalModelForResource(resource) {\n      return internalModelFactoryFor(this).getByResource(resource);\n    }\n\n    /**\n     * TODO Only needed temporarily for test support\n     *\n     * @method _internalModelForId\n     * @internal\n     */\n    _internalModelForId(type, id, lid) {\n      var resource = constructResource(type, id, lid);\n      return internalModelFactoryFor(this).lookup(resource);\n    }\n    serializeRecord(record, options) {\n      {\n        var _identifier3 = recordIdentifierFor(record);\n        var internalModel = internalModelFactoryFor(this).peek(_identifier3);\n        // TODO we used to check if the record was destroyed here\n        return internalModel.createSnapshot(options).serialize(options);\n      }\n    }\n    saveRecord(record, options) {\n      {\n        var _identifier4 = recordIdentifierFor(record);\n        var internalModel = internalModelFactoryFor(this).peek(_identifier4);\n        // TODO we used to check if the record was destroyed here\n        // Casting can be removed once REQUEST_SERVICE ff is turned on\n        // because a `Record` is provided there will always be a matching internalModel\n        return internalModel.save(options).then(() => record);\n      }\n    }\n    relationshipReferenceFor(identifier, key) {\n      {\n        var stableIdentifier = identifierCacheFor(this).getOrCreateRecordIdentifier(identifier);\n        var internalModel = internalModelFactoryFor(this).peek(stableIdentifier);\n        // TODO we used to check if the record was destroyed here\n        return internalModel.referenceFor(null, key);\n      }\n    }\n\n    /**\n     * Manages setting setting up the recordData returned by createRecordDataFor\n     *\n     * @method _createRecordData\n     * @internal\n     */\n    _createRecordData(identifier) {\n      var recordData = this.createRecordDataFor(identifier.type, identifier.id, identifier.lid, this._storeWrapper);\n      setRecordDataFor(identifier, recordData);\n      // TODO this is invalid for v2 recordData but required\n      // for v1 recordData. Remember to remove this once the\n      // RecordData manager handles converting recordData to identifier\n      setRecordIdentifier(recordData, identifier);\n      return recordData;\n    }\n\n    /**\n     * Instantiation hook allowing applications or addons to configure the store\n     * to utilize a custom RecordData implementation.\n     *\n     * @method createRecordDataFor\n     * @public\n     * @param modelName\n     * @param id\n     * @param clientId\n     * @param storeWrapper\n     */\n    createRecordDataFor(modelName, id, clientId, storeWrapper) {\n      {\n        // we can't greedily use require as this causes\n        // a cycle we can't easily fix (or clearly pin point) at present.\n        //\n        // it can be reproduced in partner tests by running\n        // node ./bin/packages-for-commit.js && yarn test-external:ember-observer\n        if (_RecordData === undefined) {\n          _RecordData = require__default[\"default\"]('@ember-data/record-data/-private').RecordData;\n        }\n        var _identifier5 = identifierCacheFor(this).getOrCreateRecordIdentifier({\n          type: modelName,\n          id,\n          lid: clientId\n        });\n        return new _RecordData(_identifier5, storeWrapper);\n      }\n    }\n\n    /**\n     * @internal\n     */\n    __recordDataFor(resource) {\n      var identifier = identifierCacheFor(this).getOrCreateRecordIdentifier(resource);\n      return this.recordDataFor(identifier, false);\n    }\n\n    /**\n     * @internal\n     */\n    recordDataFor(identifier, isCreate) {\n      var internalModel;\n      if (isCreate === true) {\n        internalModel = internalModelFactoryFor(this).build({\n          type: identifier.type,\n          id: null\n        });\n        internalModel.send('loadedData');\n        internalModel.didCreateRecord();\n      } else {\n        internalModel = internalModelFactoryFor(this).lookup(identifier);\n      }\n      return internalModel._recordData;\n    }\n\n    /**\n      `normalize` converts a json payload into the normalized form that\n      [push](../methods/push?anchor=push) expects.\n       Example\n       ```js\n      socket.on('message', function(message) {\n        let modelName = message.model;\n        let data = message.data;\n        store.push(store.normalize(modelName, data));\n      });\n      ```\n       @method normalize\n      @public\n      @param {String} modelName The name of the model type for this payload\n      @param {Object} payload\n      @return {Object} The normalized payload\n    */\n    normalize(modelName, payload) {\n      {\n        assertDestroyingStore$1(this, 'normalize');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's normalize method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${debug.inspect(modelName)}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      var serializer = this.serializerFor(normalizedModelName);\n      var model = this.modelFor(normalizedModelName);\n      (!(serializer.normalize) && debug.assert(`You must define a normalize method in your serializer in order to call store.normalize`, serializer.normalize));\n      return serializer.normalize(model, payload);\n    }\n    newClientId() {\n      (debug.assert(`Private API Removed`, false));\n    }\n\n    // ...............\n    // . DESTRUCTION .\n    // ...............\n\n    /**\n     * TODO remove test usage\n     *\n     * @internal\n     */\n    _internalModelsFor(modelName) {\n      return internalModelFactoryFor(this).modelMapFor(modelName);\n    }\n\n    // ......................\n    // . PER-TYPE ADAPTERS\n    // ......................\n\n    /**\n      Returns an instance of the adapter for a given type. For\n      example, `adapterFor('person')` will return an instance of\n      `App.PersonAdapter`.\n       If no `App.PersonAdapter` is found, this method will look\n      for an `App.ApplicationAdapter` (the default adapter for\n      your entire application).\n       If no `App.ApplicationAdapter` is found, it will return\n      the value of the `defaultAdapter`.\n       @method adapterFor\n      @public\n      @param {String} modelName\n      @return Adapter\n    */\n    adapterFor(modelName) {\n      {\n        assertDestroyingStore$1(this, 'adapterFor');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's adapterFor method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store.adapterFor has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      var {\n        _adapterCache\n      } = this;\n      var adapter = _adapterCache[normalizedModelName];\n      if (adapter) {\n        return adapter;\n      }\n      var owner = application.getOwner(this);\n      adapter = owner.lookup(`adapter:${normalizedModelName}`);\n\n      // in production this is handled by the re-export\n      if (adapter === undefined) {\n        if (normalizedModelName === '-json-api') {\n          var Adapter = require__default[\"default\"]('@ember-data/adapter/json-api').default;\n          owner.register(`adapter:-json-api`, Adapter);\n          adapter = owner.lookup(`adapter:-json-api`);\n          deprecateTestRegistration('adapter', '-json-api');\n        }\n      }\n      if (adapter !== undefined) {\n        object.set(adapter, 'store', this);\n        _adapterCache[normalizedModelName] = adapter;\n        return adapter;\n      }\n\n      // no adapter found for the specific model, fallback and check for application adapter\n      adapter = _adapterCache.application || owner.lookup('adapter:application');\n      if (adapter !== undefined) {\n        object.set(adapter, 'store', this);\n        _adapterCache[normalizedModelName] = adapter;\n        _adapterCache.application = adapter;\n        return adapter;\n      }\n\n      // no model specific adapter or application adapter, check for an `adapter`\n      // property defined on the store\n      var adapterName = this.adapter || '-json-api';\n      adapter = adapterName ? _adapterCache[adapterName] || owner.lookup(`adapter:${adapterName}`) : undefined;\n\n      // in production this is handled by the re-export\n      if (adapter === undefined) {\n        if (adapterName === '-json-api') {\n          var _Adapter = require__default[\"default\"]('@ember-data/adapter/json-api').default;\n          owner.register(`adapter:-json-api`, _Adapter);\n          adapter = owner.lookup(`adapter:-json-api`);\n          deprecateTestRegistration('adapter', '-json-api');\n        }\n      }\n      if (adapter !== undefined) {\n        object.set(adapter, 'store', this);\n        _adapterCache[normalizedModelName] = adapter;\n        _adapterCache[adapterName] = adapter;\n        return adapter;\n      }\n\n      // final fallback, no model specific adapter, no application adapter, no\n      // `adapter` property on store: use json-api adapter\n      adapter = _adapterCache['-json-api'] || owner.lookup('adapter:-json-api');\n      (!(adapter !== undefined) && debug.assert(`No adapter was found for '${modelName}' and no 'application' adapter was found as a fallback.`, adapter !== undefined));\n      object.set(adapter, 'store', this);\n      _adapterCache[normalizedModelName] = adapter;\n      _adapterCache['-json-api'] = adapter;\n      return adapter;\n    }\n\n    // ..............................\n    // . RECORD CHANGE NOTIFICATION .\n    // ..............................\n\n    /**\n      Returns an instance of the serializer for a given type. For\n      example, `serializerFor('person')` will return an instance of\n      `App.PersonSerializer`.\n       If no `App.PersonSerializer` is found, this method will look\n      for an `App.ApplicationSerializer` (the default serializer for\n      your entire application).\n       if no `App.ApplicationSerializer` is found, it will attempt\n      to get the `defaultSerializer` from the `PersonAdapter`\n      (`adapterFor('person')`).\n       If a serializer cannot be found on the adapter, it will fall back\n      to an instance of `JSONSerializer`.\n       @method serializerFor\n      @public\n      @param {String} modelName the record to serialize\n      @return {Serializer}\n    */\n    serializerFor(modelName) {\n      {\n        assertDestroyingStore$1(this, 'serializerFor');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's serializerFor method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store.serializerFor has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      var {\n        _serializerCache\n      } = this;\n      var serializer = _serializerCache[normalizedModelName];\n      if (serializer) {\n        return serializer;\n      }\n      var owner = application.getOwner(this);\n      serializer = owner.lookup(`serializer:${normalizedModelName}`);\n      {\n        // in production this is handled by the re-export\n        if (serializer === undefined) {\n          if (normalizedModelName === '-json-api') {\n            var Serializer = require__default[\"default\"]('@ember-data/serializer/json-api').default;\n            owner.register(`serializer:-json-api`, Serializer);\n            serializer = owner.lookup(`serializer:-json-api`);\n            deprecateTestRegistration('serializer', '-json-api');\n          } else if (normalizedModelName === '-rest') {\n            var _Serializer = require__default[\"default\"]('@ember-data/serializer/rest').default;\n            owner.register(`serializer:-rest`, _Serializer);\n            serializer = owner.lookup(`serializer:-rest`);\n            deprecateTestRegistration('serializer', '-rest');\n          } else if (normalizedModelName === '-default') {\n            var _Serializer2 = require__default[\"default\"]('@ember-data/serializer/json').default;\n            owner.register(`serializer:-default`, _Serializer2);\n            serializer = owner.lookup(`serializer:-default`);\n            serializer && deprecateTestRegistration('serializer', '-default');\n          }\n        }\n      }\n      if (serializer !== undefined) {\n        object.set(serializer, 'store', this);\n        _serializerCache[normalizedModelName] = serializer;\n        return serializer;\n      }\n\n      // no serializer found for the specific model, fallback and check for application serializer\n      serializer = _serializerCache.application || owner.lookup('serializer:application');\n      if (serializer !== undefined) {\n        object.set(serializer, 'store', this);\n        _serializerCache[normalizedModelName] = serializer;\n        _serializerCache.application = serializer;\n        return serializer;\n      }\n      var serializerName;\n      {\n        // no model specific serializer or application serializer, check for the `defaultSerializer`\n        // property defined on the adapter\n        var adapter = this.adapterFor(modelName);\n        serializerName = object.get(adapter, 'defaultSerializer');\n        (!(!serializerName) && debug.deprecate(`store.serializerFor(\"${modelName}\") resolved the \"${serializerName}\" serializer via the deprecated \\`adapter.defaultSerializer\\` property.\\n\\n\\tPreviously, if no application or type-specific serializer was specified, the store would attempt to lookup a serializer via the \\`defaultSerializer\\` property on the type's adapter. This behavior is deprecated in favor of explicitly defining a type-specific serializer or application serializer`, !serializerName, {\n          id: 'ember-data:default-serializer',\n          until: '4.0',\n          url: 'https://deprecations.emberjs.com/ember-data/v3.x/#toc_ember-data-default-serializers',\n          for: '@ember-data/store',\n          since: {\n            available: '3.15',\n            enabled: '3.15'\n          }\n        }));\n        serializer = serializerName ? _serializerCache[serializerName] || owner.lookup(`serializer:${serializerName}`) : undefined;\n      }\n      {\n        // in production this is handled by the re-export\n        if (serializer === undefined) {\n          if (serializerName === '-json-api') {\n            var _Serializer3 = require__default[\"default\"]('@ember-data/serializer/json-api').default;\n            owner.register(`serializer:-json-api`, _Serializer3);\n            serializer = owner.lookup(`serializer:-json-api`);\n            deprecateTestRegistration('serializer', '-json-api');\n          } else if (serializerName === '-rest') {\n            var _Serializer4 = require__default[\"default\"]('@ember-data/serializer/rest').default;\n            owner.register(`serializer:-rest`, _Serializer4);\n            serializer = owner.lookup(`serializer:-rest`);\n            deprecateTestRegistration('serializer', '-rest');\n          } else if (serializerName === '-default') {\n            var _Serializer5 = require__default[\"default\"]('@ember-data/serializer/json').default;\n            owner.register(`serializer:-default`, _Serializer5);\n            serializer = owner.lookup(`serializer:-default`);\n            serializer && deprecateTestRegistration('serializer', '-default');\n          }\n        }\n        if (serializer !== undefined) {\n          object.set(serializer, 'store', this);\n          _serializerCache[normalizedModelName] = serializer;\n          _serializerCache[serializerName] = serializer;\n          return serializer;\n        }\n      }\n      {\n        // final fallback, no model specific serializer, no application serializer, no\n        // `serializer` property on store: use the convenience JSONSerializer\n        serializer = _serializerCache['-default'] || owner.lookup('serializer:-default');\n        if (serializer === undefined) {\n          var JSONSerializer = require__default[\"default\"]('@ember-data/serializer/json').default;\n          owner.register('serializer:-default', JSONSerializer);\n          serializer = owner.lookup('serializer:-default');\n          serializer && deprecateTestRegistration('serializer', '-default');\n        }\n        (!(!serializer) && debug.deprecate(`store.serializerFor(\"${modelName}\") resolved the \"-default\" serializer via the deprecated \"-default\" lookup fallback.\\n\\n\\tPreviously, when no type-specific serializer, application serializer, or adapter.defaultSerializer had been defined by the app, the \"-default\" serializer would be used which defaulted to the \\`JSONSerializer\\`. This behavior is deprecated in favor of explicitly defining an application or type-specific serializer`, !serializer, {\n          id: 'ember-data:default-serializer',\n          until: '4.0',\n          url: 'https://deprecations.emberjs.com/ember-data/v3.x/#toc_ember-data-default-serializers',\n          for: '@ember-data/store',\n          since: {\n            available: '3.15',\n            enabled: '3.15'\n          }\n        }));\n        (!(serializer !== undefined) && debug.assert(`No serializer was found for '${modelName}' and no 'application' serializer was found as a fallback`, serializer !== undefined));\n        object.set(serializer, 'store', this);\n        _serializerCache[normalizedModelName] = serializer;\n        _serializerCache['-default'] = serializer;\n        return serializer;\n      }\n    }\n    destroy() {\n      // enqueue destruction of any adapters/serializers we have created\n      for (var adapterName in this._adapterCache) {\n        var adapter = this._adapterCache[adapterName];\n        if (typeof adapter.destroy === 'function') {\n          adapter.destroy();\n        }\n      }\n      for (var serializerName in this._serializerCache) {\n        var serializer = this._serializerCache[serializerName];\n        if (typeof serializer.destroy === 'function') {\n          serializer.destroy();\n        }\n      }\n      {\n        var peekGraph = require__default[\"default\"]('@ember-data/record-data/-private').peekGraph;\n        var graph = peekGraph(this);\n        if (graph) {\n          graph.destroy();\n        }\n      }\n      return super.destroy();\n    }\n    willDestroy() {\n      super.willDestroy();\n      this.recordArrayManager.destroy();\n      identifierCacheFor(this).destroy();\n\n      // destroy the graph before unloadAll\n      // since then we avoid churning relationships\n      // during unload\n      {\n        var peekGraph = require__default[\"default\"]('@ember-data/record-data/-private').peekGraph;\n        var graph = peekGraph(this);\n        if (graph) {\n          graph.willDestroy();\n        }\n      }\n      this.unloadAll();\n      {\n        test.unregisterWaiter(this.__asyncWaiter);\n        var shouldTrack = this.shouldTrackAsyncRequests;\n        var tracked = this._trackedAsyncRequests;\n        var isSettled = tracked.length === 0;\n        if (!isSettled) {\n          if (shouldTrack) {\n            throw new Error('Async Request leaks detected. Add a breakpoint here and set `store.generateStackTracesForTrackedRequests = true;`to inspect traces for leak origins:\\n\\t - ' + tracked.map(o => o.label).join('\\n\\t - '));\n          } else {\n            (debug.warn('Async Request leaks detected. Add a breakpoint here and set `store.generateStackTracesForTrackedRequests = true;`to inspect traces for leak origins:\\n\\t - ' + tracked.map(o => o.label).join('\\n\\t - '), false, {\n              id: 'ds.async.leak.detected'\n            }));\n          }\n        }\n      }\n    }\n    _updateInternalModel(internalModel) {\n      if (this._updatedInternalModels.push(internalModel) !== 1) {\n        return;\n      }\n      runloop._backburner.schedule('actions', this, this._flushUpdatedInternalModels);\n    }\n    _flushUpdatedInternalModels() {\n      var updated = this._updatedInternalModels;\n      for (var i = 0, l = updated.length; i < l; i++) {\n        updated[i]._triggerDeferredTriggers();\n      }\n      updated.length = 0;\n    }\n  }\n  {\n    object.defineProperty(CoreStore.prototype, 'defaultAdapter', object.computed('adapter', function () {\n      (debug.deprecate(`store.adapterFor(modelName) resolved the (\"${this.adapter || '-json-api'}\") adapter via the deprecated \\`store.defaultAdapter\\` property.\\n\\n\\tPreviously, applications could define the store's \\`adapter\\` property which would be used by \\`defaultAdapter\\` and \\`adapterFor\\` as a fallback for when an adapter was not found by an exact name match. This behavior is deprecated in favor of explicitly defining an application or type-specific adapter.`, false, {\n        id: 'ember-data:default-adapter',\n        until: '4.0',\n        url: 'https://deprecations.emberjs.com/ember-data/v3.x/#toc_ember-data-default-adapter',\n        for: '@ember-data/store',\n        since: {\n          available: '3.15',\n          enabled: '3.15'\n        }\n      }));\n      var adapter = this.adapter || '-json-api';\n      (!(typeof adapter === 'string') && debug.assert('You tried to set `adapter` property to an instance of `Adapter`, where it should be a name', typeof adapter === 'string'));\n      return this.adapterFor(adapter);\n    }));\n  }\n  var assertDestroyingStore$1;\n  var assertDestroyedStoreOnly$1;\n  {\n    assertDestroyingStore$1 = function assertDestroyedStore(store, method) {\n      if (!store.shouldAssertMethodCallsOnDestroyedStore) {\n        (!(!(store.isDestroying || store.isDestroyed)) && debug.deprecate(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !(store.isDestroying || store.isDestroyed), {\n          id: 'ember-data:method-calls-on-destroyed-store',\n          until: '3.8',\n          for: '@ember-data/store',\n          since: {\n            available: '3.8',\n            enabled: '3.8'\n          }\n        }));\n      } else {\n        (!(!(store.isDestroying || store.isDestroyed)) && debug.assert(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !(store.isDestroying || store.isDestroyed)));\n      }\n    };\n    assertDestroyedStoreOnly$1 = function assertDestroyedStoreOnly(store, method) {\n      if (!store.shouldAssertMethodCallsOnDestroyedStore) {\n        (!(!store.isDestroyed) && debug.deprecate(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !store.isDestroyed, {\n          id: 'ember-data:method-calls-on-destroyed-store',\n          until: '3.8',\n          for: '@ember-data/store',\n          since: {\n            available: '3.8',\n            enabled: '3.8'\n          }\n        }));\n      } else {\n        (!(!store.isDestroyed) && debug.assert(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !store.isDestroyed));\n      }\n    };\n  }\n\n  /**\n   * Flag indicating whether all inverse records are available\n   *\n   * true if the inverse exists and is loaded (not empty)\n   * true if there is no inverse\n   * false if the inverse exists and is not loaded (empty)\n   *\n   * @internal\n   * @return {boolean}\n   */\n  function areAllInverseRecordsLoaded(store, resource) {\n    var cache = identifierCacheFor(store);\n    if (Array.isArray(resource.data)) {\n      // treat as collection\n      // check for unloaded records\n      var hasEmptyRecords = resource.data.reduce((hasEmptyModel, resourceIdentifier) => {\n        return hasEmptyModel || internalModelForRelatedResource(store, cache, resourceIdentifier).currentState.isEmpty;\n      }, false);\n      return !hasEmptyRecords;\n    } else {\n      // treat as single resource\n      if (!resource.data) {\n        return true;\n      } else {\n        var internalModel = internalModelForRelatedResource(store, cache, resource.data);\n        return !internalModel.currentState.isEmpty;\n      }\n    }\n  }\n  function internalModelForRelatedResource(store, cache, resource) {\n    var identifier = cache.getOrCreateRecordIdentifier(resource);\n    return store._internalModelForResource(identifier);\n  }\n  function assertIdentifierHasId(identifier) {\n    (!(identifier.id !== null) && debug.assert(`Attempted to schedule a fetch for a record without an id.`, identifier.id !== null));\n  }\n\n  var _modelForMixin;\n  {\n    var _found;\n    _modelForMixin = function () {\n      if (!_found) {\n        _found = require__default[\"default\"]('@ember-data/model/-private')._modelForMixin;\n      }\n      return _found(...arguments);\n    };\n  }\n  class DSModelSchemaDefinitionService {\n    constructor(store) {\n      this._modelFactoryCache = Object.create(null);\n      this._relationshipsDefCache = Object.create(null);\n      this._attributesDefCache = Object.create(null);\n      this.store = store;\n    }\n\n    // Following the existing RD implementation\n    attributesDefinitionFor(identifier) {\n      var modelName, attributes;\n      if (typeof identifier === 'string') {\n        modelName = identifier;\n      } else {\n        modelName = identifier.type;\n      }\n      attributes = this._attributesDefCache[modelName];\n      if (attributes === undefined) {\n        var modelClass = this.store.modelFor(modelName);\n        var attributeMap = object.get(modelClass, 'attributes');\n        attributes = Object.create(null);\n        attributeMap.forEach((meta, name) => attributes[name] = meta);\n        this._attributesDefCache[modelName] = attributes;\n      }\n      return attributes;\n    }\n\n    // Following the existing RD implementation\n    relationshipsDefinitionFor(identifier) {\n      var modelName, relationships;\n      if (typeof identifier === 'string') {\n        modelName = identifier;\n      } else {\n        modelName = identifier.type;\n      }\n      relationships = this._relationshipsDefCache[modelName];\n      if (relationships === undefined) {\n        var modelClass = this.store.modelFor(modelName);\n        relationships = object.get(modelClass, 'relationshipsObject') || null;\n        this._relationshipsDefCache[modelName] = relationships;\n      }\n      return relationships;\n    }\n    doesTypeExist(modelName) {\n      var normalizedModelName = normalizeModelName(modelName);\n      var factory = getModelFactory(this.store, this._modelFactoryCache, normalizedModelName);\n      return factory !== null;\n    }\n  }\n  function getModelFactory(store, cache, normalizedModelName) {\n    var factory = cache[normalizedModelName];\n    if (!factory) {\n      factory = _lookupModelFactory(store, normalizedModelName);\n      if (!factory && true /* HAS_MODEL_PACKAGE */) {\n        //Support looking up mixins as base types for polymorphic relationships\n        factory = _modelForMixin(store, normalizedModelName);\n      }\n      if (!factory) {\n        // we don't cache misses in case someone wants to register a missing model\n        return null;\n      }\n      var klass = factory.class;\n      if (klass.isModel) {\n        var hasOwnModelNameSet = klass.modelName && Object.prototype.hasOwnProperty.call(klass, 'modelName');\n        if (!hasOwnModelNameSet) {\n          Object.defineProperty(klass, 'modelName', {\n            value: normalizedModelName\n          });\n        }\n      }\n      cache[normalizedModelName] = factory;\n    }\n    return factory;\n  }\n  function _lookupModelFactory(store, normalizedModelName) {\n    var owner = application.getOwner(store);\n    return owner.factoryFor(`model:${normalizedModelName}`);\n  }\n\n  class Store extends CoreStore {\n    constructor(...args) {\n      super(...args);\n      this._modelFactoryCache = Object.create(null);\n      this._relationshipsDefCache = Object.create(null);\n      this._attributesDefCache = Object.create(null);\n    }\n    instantiateRecord(identifier, createRecordArgs, recordDataFor, notificationManager) {\n      var modelName = identifier.type;\n      var internalModel = this._internalModelForResource(identifier);\n      var createOptions = {\n        store: this,\n        _internalModel: internalModel,\n        // TODO deprecate allowing unknown args setting\n        _createProps: createRecordArgs,\n        container: null\n      };\n\n      // ensure that `getOwner(this)` works inside a model instance\n      application.setOwner(createOptions, application.getOwner(this));\n      delete createOptions.container;\n      var record = this._modelFactoryFor(modelName).create(createOptions);\n      return record;\n    }\n    teardownRecord(record) {\n      record.destroy();\n    }\n    modelFor(modelName) {\n      {\n        assertDestroyedStoreOnly(this, 'modelFor');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's modelFor method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var maybeFactory = this._modelFactoryFor(modelName);\n\n      // for factorFor factory/class split\n      var klass = maybeFactory && maybeFactory.class ? maybeFactory.class : maybeFactory;\n      if (!klass || !klass.isModel) {\n        if (!this.getSchemaDefinitionService().doesTypeExist(modelName)) {\n          throw new EmberError__default[\"default\"](`No model was found for '${modelName}' and no schema handles the type`);\n        }\n        return getShimClass(this, modelName);\n      } else {\n        return klass;\n      }\n    }\n    _modelFactoryFor(modelName) {\n      {\n        assertDestroyedStoreOnly(this, '_modelFactoryFor');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's _modelFactoryFor method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      var factory = getModelFactory(this, this._modelFactoryCache, normalizedModelName);\n      return factory;\n    }\n    _hasModelFor(modelName) {\n      {\n        assertDestroyingStore(this, '_hasModelFor');\n      }\n      (!(utils.isPresent(modelName)) && debug.assert(`You need to pass a model name to the store's hasModelFor method`, utils.isPresent(modelName)));\n      (!(typeof modelName === 'string') && debug.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      {\n        return this.getSchemaDefinitionService().doesTypeExist(modelName);\n      }\n    }\n    _relationshipMetaFor(modelName, id, key) {\n      {\n        return this._relationshipsDefinitionFor(modelName)[key];\n      }\n    }\n    _attributesDefinitionFor(modelName, identifier) {\n      {\n        if (identifier) {\n          return this.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n        } else {\n          return this.getSchemaDefinitionService().attributesDefinitionFor(modelName);\n        }\n      }\n    }\n    _relationshipsDefinitionFor(modelName, identifier) {\n      {\n        if (identifier) {\n          return this.getSchemaDefinitionService().relationshipsDefinitionFor(identifier);\n        } else {\n          return this.getSchemaDefinitionService().relationshipsDefinitionFor(modelName);\n        }\n      }\n    }\n    getSchemaDefinitionService() {\n      {\n        if (!this._schemaDefinitionService) {\n          this._schemaDefinitionService = new DSModelSchemaDefinitionService(this);\n        }\n        return this._schemaDefinitionService;\n      }\n    }\n  }\n  var assertDestroyingStore;\n  var assertDestroyedStoreOnly;\n  {\n    assertDestroyingStore = function assertDestroyedStore(store, method) {\n      if (!store.shouldAssertMethodCallsOnDestroyedStore) {\n        (!(!(store.isDestroying || store.isDestroyed)) && debug.deprecate(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !(store.isDestroying || store.isDestroyed), {\n          id: 'ember-data:method-calls-on-destroyed-store',\n          until: '3.8',\n          for: '@ember-data/store',\n          since: {\n            available: '3.8',\n            enabled: '3.8'\n          }\n        }));\n      } else {\n        (!(!(store.isDestroying || store.isDestroyed)) && debug.assert(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !(store.isDestroying || store.isDestroyed)));\n      }\n    };\n    assertDestroyedStoreOnly = function assertDestroyedStoreOnly(store, method) {\n      if (!store.shouldAssertMethodCallsOnDestroyedStore) {\n        (!(!store.isDestroyed) && debug.deprecate(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !store.isDestroyed, {\n          id: 'ember-data:method-calls-on-destroyed-store',\n          until: '3.8',\n          for: '@ember-data/store',\n          since: {\n            available: '3.8',\n            enabled: '3.8'\n          }\n        }));\n      } else {\n        (!(!store.isDestroyed) && debug.assert(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !store.isDestroyed));\n      }\n    };\n  }\n\n  exports.AdapterPopulatedRecordArray = AdapterPopulatedRecordArray;\n  exports.DeprecatedEvented = DeprecatedEvented$1;\n  exports.InternalModel = InternalModel;\n  exports.PromiseArray = PromiseArray;\n  exports.PromiseObject = PromiseObject;\n  exports.RecordArray = RecordArray;\n  exports.RecordArrayManager = RecordArrayManager;\n  exports.RecordDataStoreWrapper = RecordDataStoreWrapper;\n  exports.RootState = RootState$1;\n  exports.Snapshot = Snapshot;\n  exports.SnapshotRecordArray = SnapshotRecordArray;\n  exports.Store = Store;\n  exports.addSymbol = addSymbol;\n  exports.coerceId = coerceId;\n  exports.errorsArrayToHash = errorsArrayToHash;\n  exports.errorsHashToArray = errorsHashToArray;\n  exports.identifierCacheFor = identifierCacheFor;\n  exports.normalizeModelName = normalizeModelName;\n  exports.recordDataFor = recordDataFor;\n  exports.recordIdentifierFor = recordIdentifierFor;\n  exports.removeRecordDataFor = removeRecordDataFor;\n  exports.setIdentifierForgetMethod = setIdentifierForgetMethod;\n  exports.setIdentifierGenerationMethod = setIdentifierGenerationMethod;\n  exports.setIdentifierResetMethod = setIdentifierResetMethod;\n  exports.setIdentifierUpdateMethod = setIdentifierUpdateMethod;\n  exports.symbol = symbol;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n","define(\"@ember-data/store/index\", [\"exports\", \"@ember-data/store/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _private.Store;\n    }\n  });\n  Object.defineProperty(_exports, \"normalizeModelName\", {\n    enumerable: true,\n    get: function () {\n      return _private.normalizeModelName;\n    }\n  });\n  Object.defineProperty(_exports, \"recordIdentifierFor\", {\n    enumerable: true,\n    get: function () {\n      return _private.recordIdentifierFor;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierForgetMethod\", {\n    enumerable: true,\n    get: function () {\n      return _private.setIdentifierForgetMethod;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierGenerationMethod\", {\n    enumerable: true,\n    get: function () {\n      return _private.setIdentifierGenerationMethod;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierResetMethod\", {\n    enumerable: true,\n    get: function () {\n      return _private.setIdentifierResetMethod;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierUpdateMethod\", {\n    enumerable: true,\n    get: function () {\n      return _private.setIdentifierUpdateMethod;\n    }\n  });\n});","define(\"@ember/render-modifiers/modifiers/did-insert\", [\"exports\", \"@ember/modifier\"], function (_exports, _modifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    The `{{did-insert}}` element modifier is activated when an element is\n    inserted into the DOM.\n  \n    In this example, the `fadeIn` function receives the `div` DOM element as its\n    first argument and is executed after the element is inserted into the DOM.\n  \n    ```handlebars\n    <div {{did-insert this.fadeIn}} class=\"alert\">\n      {{yield}}\n    </div>\n    ```\n  \n    ```js\n    export default Component.extend({\n      fadeIn(element) {\n        element.classList.add('fade-in');\n      }\n    });\n    ```\n  \n    By default, the executed function will be unbound. If you would like to access\n    the component context in your function, use the `action` decorator as follows:\n  \n    ```handlebars\n    <div {{did-insert this.incrementCount}}>first</div>\n    <div {{did-insert this.incrementCount}}>second</div>\n  \n    <p>{{this.count}} elements were rendered</p>\n    ```\n  \n    ```js\n    export default Component.extend({\n      count: tracked({ value: 0 }),\n  \n      incrementCount: action(function() {\n        this.count++;\n      })\n    });\n    ```\n  \n    @method did-insert\n    @public\n  */\n  var _default = _exports.default = (0, _modifier.setModifierManager)(() => ({\n    capabilities: (0, _modifier.capabilities)('3.22', {\n      disableAutoTracking: true\n    }),\n    createModifier() {},\n    installModifier(_state, element, {\n      positional: [fn, ...args],\n      named\n    }) {\n      fn(element, args, named);\n    },\n    updateModifier() {},\n    destroyModifier() {}\n  }), class DidInsertModifier {});\n});","define(\"@ember/render-modifiers/modifiers/did-update\", [\"exports\", \"@ember/modifier\", \"@embroider/macros/es-compat2\"], function (_exports, _modifier, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const untrack = function () {\n    {\n      // ember-source@3.27 shipped \"real modules\" by default, so we can just use\n      // importSync to get @glimmer/validator directly\n      return (0, _esCompat.default)(require(\"@glimmer/validator\")).untrack;\n    }\n  }();\n\n  /**\n    The `{{did-update}}` element modifier is activated when any of its arguments\n    are updated. It does not run on initial render.\n  \n    In this example, the `resize` function receives the `textarea` DOM element as its\n    first argument and is executed anytime the `@text` argument changes.\n  \n    ```handlebars\n    <textarea {{did-update this.resize @text}} readonly style=\"padding: 0px;\">\n      {{@text}}\n    </textarea>\n    ```\n  \n    ```js\n    export default Component.extend({\n      resize(element) {\n        element.style.height = `${element.scrollHeight}px`;\n      }\n    });\n    ```\n  \n    In addition to the `element`, both named and positional arguments are passed to the\n    executed function:\n  \n    ```handlebars\n    <div {{did-update this.logArguments @first @second third=@third}} />\n    ```\n  \n    ```js\n    export default Component.extend({\n      logArguments(element, [first, second], { third }) {\n        console.log('element', element);\n        console.log('positional args', first, second);\n        console.log('names args', third);\n      }\n    });\n    ```\n  \n    By default, the executed function will be unbound. If you would like to access\n    the component context in your function, use the `action` decorator as follows:\n  \n    ```handlebars\n    <div {{did-update this.someFunction @someArg} />\n    ```\n  \n    ```js\n    export default Component.extend({\n      someFunction: action(function(element, [someArg]) {\n        // the `this` context will be the component instance\n      })\n    });\n    ```\n  \n    @method did-update\n    @public\n  */\n  var _default = _exports.default = (0, _modifier.setModifierManager)(() => ({\n    capabilities: (0, _modifier.capabilities)('3.22', {\n      disableAutoTracking: false\n    }),\n    createModifier() {\n      return {\n        element: null\n      };\n    },\n    installModifier(state, element, args) {\n      // save element into state bucket\n      state.element = element;\n      {\n        // Consume individual properties to entangle tracking.\n        // https://github.com/emberjs/ember.js/issues/19277\n        // https://github.com/ember-modifier/ember-modifier/pull/63#issuecomment-815908201\n        args.positional.forEach(() => {});\n        args.named && Object.values(args.named);\n      }\n    },\n    updateModifier({\n      element\n    }, args) {\n      let [fn, ...positional] = args.positional;\n      {\n        // Consume individual properties to entangle tracking.\n        // https://github.com/emberjs/ember.js/issues/19277\n        // https://github.com/ember-modifier/ember-modifier/pull/63#issuecomment-815908201\n        args.positional.forEach(() => {});\n        args.named && Object.values(args.named);\n        untrack(() => {\n          fn(element, positional, args.named);\n        });\n      }\n    },\n    destroyModifier() {}\n  }), class DidUpdateModifier {});\n});","define(\"@ember/render-modifiers/modifiers/will-destroy\", [\"exports\", \"@ember/modifier\"], function (_exports, _modifier) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    The `{{will-destroy}}` element modifier is activated immediately before the element\n    is removed from the DOM.\n  \n    ```handlebars\n    <div {{will-destroy this.teardownPlugin}}>\n      {{yield}}\n    </div>\n    ```\n  \n    ```js\n    export default Component.extend({\n      teardownPlugin(element) {\n        // teardown logic here\n      }\n    });\n    ```\n  \n    By default, the executed function will be unbound. If you would like to access\n    the component context in your function, use the `action` decorator as follows:\n  \n    ```handlebars\n    <div {{will-destroy this.teardownPlugin}}>\n      {{yield}}\n    </div>\n    ```\n  \n    ```js\n    export default Component.extend({\n      teardownPlugin: action(function(element) {\n        // the `this` context will be the component instance\n      })\n    });\n    ```\n  \n    @method will-destroy\n    @public\n  */\n  var _default = _exports.default = (0, _modifier.setModifierManager)(() => ({\n    capabilities: (0, _modifier.capabilities)('3.22', {\n      disableAutoTracking: true\n    }),\n    createModifier() {\n      return {\n        element: null\n      };\n    },\n    installModifier(state, element) {\n      state.element = element;\n    },\n    updateModifier() {},\n    destroyModifier({\n      element\n    }, args) {\n      let [fn, ...positional] = args.positional;\n      fn(element, positional, args.named);\n    }\n  }), class WillDestroyModifier {});\n});","define(\"@ember/string/cache\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  class Cache {\n    constructor(limit, func, store) {\n      _defineProperty(this, \"size\", 0);\n      _defineProperty(this, \"misses\", 0);\n      _defineProperty(this, \"hits\", 0);\n      this.limit = limit;\n      this.func = func;\n      this.store = store;\n      this.store = store || new Map();\n    }\n    get(key) {\n      let value = this.store.get(key);\n      if (this.store.has(key)) {\n        this.hits++;\n        return this.store.get(key);\n      } else {\n        this.misses++;\n        value = this.set(key, this.func(key));\n      }\n      return value;\n    }\n    set(key, value) {\n      if (this.limit > this.size) {\n        this.size++;\n        this.store.set(key, value);\n      }\n      return value;\n    }\n    purge() {\n      this.store.clear();\n      this.size = 0;\n      this.hits = 0;\n      this.misses = 0;\n    }\n  }\n  _exports.default = Cache;\n});","define(\"@ember/string/index\", [\"exports\", \"@ember/string/cache\"], function (_exports, _cache) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.camelize = camelize;\n  _exports.capitalize = capitalize;\n  _exports.classify = classify;\n  _exports.dasherize = dasherize;\n  _exports.decamelize = decamelize;\n  _exports.getString = getString;\n  _exports.getStrings = getStrings;\n  _exports.htmlSafe = htmlSafe;\n  _exports.isHTMLSafe = isHTMLSafe;\n  _exports.setStrings = setStrings;\n  _exports.underscore = underscore;\n  _exports.w = w;\n  /* eslint-disable no-useless-escape */\n\n  /**\n   @module @ember/string\n   */\n\n  // STATE within a module is frowned upon, this exists\n  // to support Ember.STRINGS but shield ember internals from this legacy global\n  // API.\n  let STRINGS = {};\n  function setStrings(strings) {\n    STRINGS = strings;\n  }\n  function getStrings() {\n    return STRINGS;\n  }\n  function getString(name) {\n    return STRINGS[name];\n  }\n  const STRING_DASHERIZE_REGEXP = /[ _]/g;\n  const STRING_DASHERIZE_CACHE = new _cache.default(1000, key => decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-'));\n  const STRING_CAMELIZE_REGEXP_1 = /(\\-|\\_|\\.|\\s)+(.)?/g;\n  const STRING_CAMELIZE_REGEXP_2 = /(^|\\/)([A-Z])/g;\n  const CAMELIZE_CACHE = new _cache.default(1000, key => key.replace(STRING_CAMELIZE_REGEXP_1, (_match, _separator, chr) => chr ? chr.toUpperCase() : '').replace(STRING_CAMELIZE_REGEXP_2, (match\n  /*, separator, chr */) => match.toLowerCase()));\n  const STRING_CLASSIFY_REGEXP_1 = /^(\\-|_)+(.)?/;\n  const STRING_CLASSIFY_REGEXP_2 = /(.)(\\-|\\_|\\.|\\s)+(.)?/g;\n  const STRING_CLASSIFY_REGEXP_3 = /(^|\\/|\\.)([a-z])/g;\n  const CLASSIFY_CACHE = new _cache.default(1000, str => {\n    const replace1 = (_match, _separator, chr) => chr ? `_${chr.toUpperCase()}` : '';\n    const replace2 = (_match, initialChar, _separator, chr) => initialChar + (chr ? chr.toUpperCase() : '');\n    const parts = str.split('/');\n    for (let i = 0; i < parts.length; i++) {\n      parts[i] = parts[i].replace(STRING_CLASSIFY_REGEXP_1, replace1).replace(STRING_CLASSIFY_REGEXP_2, replace2);\n    }\n    return parts.join('/').replace(STRING_CLASSIFY_REGEXP_3, (match\n    /*, separator, chr */) => match.toUpperCase());\n  });\n  const STRING_UNDERSCORE_REGEXP_1 = /([a-z\\d])([A-Z]+)/g;\n  const STRING_UNDERSCORE_REGEXP_2 = /\\-|\\s+/g;\n  const UNDERSCORE_CACHE = new _cache.default(1000, str => str.replace(STRING_UNDERSCORE_REGEXP_1, '$1_$2').replace(STRING_UNDERSCORE_REGEXP_2, '_').toLowerCase());\n  const STRING_CAPITALIZE_REGEXP = /(^|\\/)([a-z\\u00C0-\\u024F])/g;\n  const CAPITALIZE_CACHE = new _cache.default(1000, str => str.replace(STRING_CAPITALIZE_REGEXP, (match\n  /*, separator, chr */) => match.toUpperCase()));\n  const STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\n  const DECAMELIZE_CACHE = new _cache.default(1000, str => str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase());\n  /**\n    Splits a string into separate units separated by spaces, eliminating any\n    empty strings in the process. This is a convenience method for split that\n    is mostly useful when applied to the `String.prototype`.\n  \n    ```javascript\n    import { w } from '@ember/string';\n  \n    w(\"alpha beta gamma\").forEach(function(key) {\n      console.log(key);\n    });\n  \n    // > alpha\n    // > beta\n    // > gamma\n    ```\n  \n    @method w\n    @param {String} str The string to split\n    @return {Array} array containing the split strings\n    @public\n  */\n\n  function w(str) {\n    return str.split(/\\s+/);\n  }\n  /**\n    Converts a camelized string into all lower case separated by underscores.\n  \n    ```javascript\n    import { decamelize } from '@ember/string';\n  \n    decamelize('innerHTML');          // 'inner_html'\n    decamelize('action_name');        // 'action_name'\n    decamelize('css-class-name');     // 'css-class-name'\n    decamelize('my favorite items');  // 'my favorite items'\n    ```\n  \n    @method decamelize\n    @param {String} str The string to decamelize.\n    @return {String} the decamelized string.\n    @public\n  */\n\n  function decamelize(str) {\n    return DECAMELIZE_CACHE.get(str);\n  }\n  /**\n    Replaces underscores, spaces, or camelCase with dashes.\n  \n    ```javascript\n    import { dasherize } from '@ember/string';\n  \n    dasherize('innerHTML');                // 'inner-html'\n    dasherize('action_name');              // 'action-name'\n    dasherize('css-class-name');           // 'css-class-name'\n    dasherize('my favorite items');        // 'my-favorite-items'\n    dasherize('privateDocs/ownerInvoice';  // 'private-docs/owner-invoice'\n    ```\n  \n    @method dasherize\n    @param {String} str The string to dasherize.\n    @return {String} the dasherized string.\n    @public\n  */\n\n  function dasherize(str) {\n    return STRING_DASHERIZE_CACHE.get(str);\n  }\n  /**\n    Returns the lowerCamelCase form of a string.\n  \n    ```javascript\n    import { camelize } from '@ember/string';\n  \n    camelize('innerHTML');                   // 'innerHTML'\n    camelize('action_name');                 // 'actionName'\n    camelize('css-class-name');              // 'cssClassName'\n    camelize('my favorite items');           // 'myFavoriteItems'\n    camelize('My Favorite Items');           // 'myFavoriteItems'\n    camelize('private-docs/owner-invoice');  // 'privateDocs/ownerInvoice'\n    ```\n  \n    @method camelize\n    @param {String} str The string to camelize.\n    @return {String} the camelized string.\n    @public\n  */\n\n  function camelize(str) {\n    return CAMELIZE_CACHE.get(str);\n  }\n  /**\n    Returns the UpperCamelCase form of a string.\n  \n    ```javascript\n    import { classify } from '@ember/string';\n  \n    classify('innerHTML');                   // 'InnerHTML'\n    classify('action_name');                 // 'ActionName'\n    classify('css-class-name');              // 'CssClassName'\n    classify('my favorite items');           // 'MyFavoriteItems'\n    classify('private-docs/owner-invoice');  // 'PrivateDocs/OwnerInvoice'\n    ```\n  \n    @method classify\n    @param {String} str the string to classify\n    @return {String} the classified string\n    @public\n  */\n\n  function classify(str) {\n    return CLASSIFY_CACHE.get(str);\n  }\n  /**\n    More general than decamelize. Returns the lower\\_case\\_and\\_underscored\n    form of a string.\n  \n    ```javascript\n    import { underscore } from '@ember/string';\n  \n    underscore('innerHTML');                 // 'inner_html'\n    underscore('action_name');               // 'action_name'\n    underscore('css-class-name');            // 'css_class_name'\n    underscore('my favorite items');         // 'my_favorite_items'\n    underscore('privateDocs/ownerInvoice');  // 'private_docs/owner_invoice'\n    ```\n  \n    @method underscore\n    @param {String} str The string to underscore.\n    @return {String} the underscored string.\n    @public\n  */\n\n  function underscore(str) {\n    return UNDERSCORE_CACHE.get(str);\n  }\n  /**\n    Returns the Capitalized form of a string\n  \n    ```javascript\n    import { capitalize } from '@ember/string';\n  \n    capitalize('innerHTML')                 // 'InnerHTML'\n    capitalize('action_name')               // 'Action_name'\n    capitalize('css-class-name')            // 'Css-class-name'\n    capitalize('my favorite items')         // 'My favorite items'\n    capitalize('privateDocs/ownerInvoice'); // 'PrivateDocs/ownerInvoice'\n    ```\n  \n    @method capitalize\n    @param {String} str The string to capitalize.\n    @return {String} The capitalized string.\n    @public\n  */\n\n  function capitalize(str) {\n    return CAPITALIZE_CACHE.get(str);\n  }\n  /*\n    The following are implemented here to give users adding `@ember/string` to\n    their projects a useful error message. The `ember-source` implementation of\n    `@ember/string` is clobbered by adding this addon, and so the deprecation of\n    the import path is not triggered. This error message is intended to help\n    users discover what they need to change.\n  */\n\n  function htmlSafe(str) {\n    throw new Error('htmlSafe is not implemented in the `@ember/string` package. Please import from `@ember/template` instead.');\n  }\n  function isHTMLSafe(str) {\n    throw new Error('isHTMLSafe is not implemented in the `@ember/string` package. Please import from `@ember/template` instead.');\n  }\n});","define(\"@ember/test-waiters/build-waiter\", [\"exports\", \"@ember/debug\", \"@ember/test-waiters/token\", \"@ember/test-waiters/waiter-manager\"], function (_exports, _debug, _token, _waiterManager) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports._resetWaiterNames = _resetWaiterNames;\n  _exports.default = buildWaiter;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  const WAITER_NAME_PATTERN = /^[^:]*:?.*/;\n  let WAITER_NAMES = true /* DEBUG */ ? new Set() : undefined;\n  function _resetWaiterNames() {\n    WAITER_NAMES = new Set();\n  }\n  function getNextToken() {\n    return new _token.default();\n  }\n  class TestWaiterImpl {\n    constructor(name, nextToken) {\n      _defineProperty(this, \"isRegistered\", false);\n      _defineProperty(this, \"items\", new Map());\n      _defineProperty(this, \"completedOperationsForTokens\", new WeakMap());\n      _defineProperty(this, \"completedOperationsForPrimitives\", new Map());\n      this.name = name; // @ts-ignore\n\n      this.nextToken = nextToken || getNextToken;\n    }\n    beginAsync(token = this.nextToken(), label) {\n      this._register();\n      if (this.items.has(token)) {\n        throw new Error(`beginAsync called for ${token} but it is already pending.`);\n      }\n      let error = new Error();\n      this.items.set(token, {\n        get stack() {\n          return error.stack;\n        },\n        label\n      });\n      return token;\n    }\n    endAsync(token) {\n      if (!this.items.has(token) && !this._getCompletedOperations(token).has(token)) {\n        throw new Error(`testWaiter.endAsync called with no preceding testWaiter.beginAsync call.\n        Test waiter calls should always be paired. This can occur when a test waiter's paired calls are invoked in a non-deterministic order.\n\n        See https://github.com/emberjs/ember-test-waiters#keep-beginasyncendasync-in-same-block-scope for more information.`);\n      }\n      this.items.delete(token); // Mark when a waiter operation has completed so we can distinguish\n      // whether endAsync is being called before a prior beginAsync call above.\n\n      this._getCompletedOperations(token).set(token, true);\n    }\n    waitUntil() {\n      return this.items.size === 0;\n    }\n    debugInfo() {\n      let result = [];\n      this.items.forEach(value => {\n        result.push(value);\n      });\n      return result;\n    }\n    reset() {\n      this.items.clear();\n    }\n    _register() {\n      if (!this.isRegistered) {\n        (0, _waiterManager.register)(this);\n        this.isRegistered = true;\n      }\n    }\n    _getCompletedOperations(token) {\n      let type = typeof token;\n      let isFunction = type === 'function';\n      let isObject = token !== null && type === 'object';\n      let isPrimitive = !isFunction && !isObject;\n      return isPrimitive ? this.completedOperationsForPrimitives : this.completedOperationsForTokens;\n    }\n  }\n  class NoopTestWaiter {\n    constructor(name) {\n      this.name = name;\n    }\n    beginAsync() {\n      return this;\n    }\n    endAsync() {}\n    waitUntil() {\n      return true;\n    }\n    debugInfo() {\n      return [];\n    }\n    reset() {}\n  }\n  /**\n   * Builds and returns a test waiter. The type of the\n   * returned waiter is dependent on whether the app or\n   * addon is in `DEBUG` mode or not.\n   *\n   * @public\n   *\n   * @param name {string} The name of the test waiter\n   * @returns {TestWaiter}\n   *\n   * @example\n   *\n   * import Component from '@ember/component';\n   * import { buildWaiter } from '@ember/test-waiters';\n   *\n   * if (DEBUG) {\n   *   let waiter = buildWaiter('friend-waiter');\n   * }\n   *\n   * export default class Friendz extends Component {\n   *   didInsertElement() {\n   *     let token = waiter.beginAsync(this);\n   *\n   *     someAsyncWork().then(() => {\n   *       waiter.endAsync(token);\n   *     });\n   *   }\n   * }\n   */\n\n  function buildWaiter(name) {\n    if (true /* DEBUG */) {\n      (true && (0, _debug.warn)(`The waiter name '${name}' is already in use`, !WAITER_NAMES.has(name), {\n        id: '@ember/test-waiters.duplicate-waiter-name'\n      }));\n      WAITER_NAMES.add(name);\n    }\n    if (!true /* DEBUG */) {\n      return new NoopTestWaiter(name);\n    } else {\n      (true && (0, _debug.warn)(`You must provide a name that contains a descriptive prefix separated by a colon.\n\n        Example: ember-fictitious-addon:some-file\n\n        You passed: ${name}`, WAITER_NAME_PATTERN.test(name), {\n        id: '@ember/test-waiters.invalid-waiter-name'\n      }));\n      return new TestWaiterImpl(name);\n    }\n  }\n});","define(\"@ember/test-waiters/index\", [\"exports\", \"@ember/test-waiters/waiter-manager\", \"@ember/test-waiters/build-waiter\", \"@ember/test-waiters/wait-for-promise\", \"@ember/test-waiters/wait-for\"], function (_exports, _waiterManager, _buildWaiter, _waitForPromise, _waitFor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"_reset\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager._reset;\n    }\n  });\n  Object.defineProperty(_exports, \"_resetWaiterNames\", {\n    enumerable: true,\n    get: function () {\n      return _buildWaiter._resetWaiterNames;\n    }\n  });\n  Object.defineProperty(_exports, \"buildWaiter\", {\n    enumerable: true,\n    get: function () {\n      return _buildWaiter.default;\n    }\n  });\n  Object.defineProperty(_exports, \"getPendingWaiterState\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.getPendingWaiterState;\n    }\n  });\n  Object.defineProperty(_exports, \"getWaiters\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.getWaiters;\n    }\n  });\n  Object.defineProperty(_exports, \"hasPendingWaiters\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.hasPendingWaiters;\n    }\n  });\n  Object.defineProperty(_exports, \"register\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.register;\n    }\n  });\n  Object.defineProperty(_exports, \"unregister\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.unregister;\n    }\n  });\n  Object.defineProperty(_exports, \"waitFor\", {\n    enumerable: true,\n    get: function () {\n      return _waitFor.default;\n    }\n  });\n  Object.defineProperty(_exports, \"waitForPromise\", {\n    enumerable: true,\n    get: function () {\n      return _waitForPromise.default;\n    }\n  });\n});","define(\"@ember/test-waiters/token\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * A class representing a test waiter token.\n   *\n   * @public\n   * @class\n   */\n  class Token {}\n  _exports.default = Token;\n});","define(\"@ember/test-waiters/types/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n});","define(\"@ember/test-waiters/wait-for-promise\", [\"exports\", \"@ember/test-waiters/build-waiter\"], function (_exports, _buildWaiter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = waitForPromise;\n  const PROMISE_WAITER = (0, _buildWaiter.default)('@ember/test-waiters:promise-waiter');\n  /**\n   * A convenient utility function to simplify waiting for a promise.\n   *\n   * @public\n   * @param promise {Promise<T> | RSVP.Promise<T>} The promise to track async operations for\n   * @param label {string} An optional string to identify the promise\n   *\n   * @example\n   *\n   * import Component from '@ember/component';\n   * import { waitForPromise } from '@ember/test-waiters';\n   *\n   * export default class Friendz extends Component {\n   *   didInsertElement() {\n   *     waitForPromise(new Promise(resolve => {\n   *       doSomeWork();\n   *       resolve();\n   *     }));\n   *   }\n   * }\n   */\n\n  function waitForPromise(promise, label) {\n    let result = promise;\n    if (true /* DEBUG */) {\n      PROMISE_WAITER.beginAsync(promise, label);\n      result = promise.then(value => {\n        PROMISE_WAITER.endAsync(promise);\n        return value;\n      }, error => {\n        PROMISE_WAITER.endAsync(promise);\n        throw error;\n      });\n    }\n    return result;\n  }\n});","define(\"@ember/test-waiters/wait-for\", [\"exports\", \"@ember/test-waiters/wait-for-promise\", \"@ember/test-waiters/build-waiter\"], function (_exports, _waitForPromise, _buildWaiter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = waitFor;\n  function waitFor(...args) {\n    let isFunction = args.length < 3;\n    if (isFunction) {\n      let [fn, label] = args;\n      return wrapFunction(fn, label);\n    } else {\n      let [,, descriptor, label] = args;\n      if (!true /* DEBUG */) {\n        return descriptor;\n      }\n      let fn = descriptor.value;\n      descriptor.value = wrapFunction(fn, label);\n      return descriptor;\n    }\n  }\n  function wrapFunction(fn, label) {\n    if (!true /* DEBUG */) {\n      return fn;\n    }\n    return function (...args) {\n      let result = fn.call(this, ...args);\n      if (isThenable(result)) {\n        return (0, _waitForPromise.default)(result, label);\n      } else if (isGenerator(result)) {\n        return waitForGenerator(result, label);\n      } else {\n        return result;\n      }\n    };\n  }\n  function isThenable(maybePromise) {\n    let type = typeof maybePromise;\n    return (maybePromise !== null && type === 'object' || type === 'function') && typeof maybePromise.then === 'function';\n  }\n  function isGenerator(maybeGenerator) {\n    // Because we don't have Symbol.iterator in IE11\n    return typeof maybeGenerator.next === 'function' && typeof maybeGenerator.return === 'function' && typeof maybeGenerator.throw === 'function';\n  }\n  const GENERATOR_WAITER = (0, _buildWaiter.default)('@ember/test-waiters:generator-waiter');\n  function waitForGenerator(generator, label) {\n    GENERATOR_WAITER.beginAsync(generator, label);\n    let isWaiting = true;\n    function stopWaiting() {\n      if (isWaiting) {\n        GENERATOR_WAITER.endAsync(generator);\n        isWaiting = false;\n      }\n    }\n    return {\n      next(...args) {\n        let hasErrored = true;\n        try {\n          let val = generator.next(...args);\n          hasErrored = false;\n          if (val.done) {\n            stopWaiting();\n          }\n          return val;\n        } finally {\n          // If generator.next() throws, we need to stop waiting. But if we catch\n          // and re-throw exceptions, it could move the location from which the\n          // uncaught exception is thrown, interfering with the developer\n          // debugging experience if they have break-on-exceptions enabled. So we\n          // use a boolean flag and a finally block to emulate a catch block.\n          if (hasErrored) {\n            stopWaiting();\n          }\n        }\n      },\n      return(...args) {\n        stopWaiting();\n        return generator.return(...args);\n      },\n      throw(...args) {\n        stopWaiting();\n        return generator.throw(...args);\n      }\n    };\n  }\n});","define(\"@ember/test-waiters/waiter-manager\", [\"exports\", \"ember\", \"@ember/test\"], function (_exports, _ember, _test) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports._reset = _reset;\n  _exports.getPendingWaiterState = getPendingWaiterState;\n  _exports.getWaiters = getWaiters;\n  _exports.hasPendingWaiters = hasPendingWaiters;\n  _exports.register = register;\n  _exports.unregister = unregister;\n  // this ensures that if @ember/test-waiters exists in multiple places in the\n  // build output we will still use a single map of waiters (there really should\n  // only be one of them, or else `settled` will not work at all)\n  const WAITERS = function () {\n    const HAS_SYMBOL = typeof Symbol !== 'undefined';\n    let symbolName = 'TEST_WAITERS';\n    let symbol = HAS_SYMBOL ? Symbol.for(symbolName) : symbolName;\n    let global = getGlobal();\n    let waiters = global[symbol];\n    if (waiters === undefined) {\n      waiters = global[symbol] = new Map();\n    }\n    return waiters;\n  }();\n  function indexable(input) {\n    return input;\n  }\n  function getGlobal() {\n    // eslint-disable-next-line node/no-unsupported-features/es-builtins\n    if (typeof globalThis !== 'undefined') return indexable(globalThis);\n    if (typeof self !== 'undefined') return indexable(self);\n    if (typeof window !== 'undefined') return indexable(window);\n    if (typeof global !== 'undefined') return indexable(global);\n    throw new Error('unable to locate global object');\n  }\n  /**\n   * Backwards compatibility with legacy waiters system.\n   *\n   * We want to always register a waiter using the legacy waiter system, as right\n   * now if consumers are not on the right version of @ember/test-helpers, using\n   * this addon will result in none of these waiters waiting.\n   */\n  // eslint-disable-next-line ember/new-module-imports\n\n  if (_ember.default.Test) {\n    (0, _test.registerWaiter)(() => !hasPendingWaiters());\n  }\n  /**\n   * Registers a waiter.\n   *\n   * @public\n   * @param waiter {Waiter} A test waiter instance\n   */\n\n  function register(waiter) {\n    WAITERS.set(waiter.name, waiter);\n  }\n  /**\n   * Un-registers a waiter.\n   *\n   * @public\n   * @param waiter {Waiter} A test waiter instance\n   */\n\n  function unregister(waiter) {\n    WAITERS.delete(waiter.name);\n  }\n  /**\n   * Gets an array of all waiters current registered.\n   *\n   * @public\n   * @returns {Waiter[]}\n   */\n\n  function getWaiters() {\n    let result = [];\n    WAITERS.forEach(value => {\n      result.push(value);\n    });\n    return result;\n  }\n  /**\n   * Clears all waiters.\n   *\n   * @private\n   */\n\n  function _reset() {\n    for (let waiter of getWaiters()) {\n      waiter.isRegistered = false;\n    }\n    WAITERS.clear();\n  }\n  /**\n   * Gets the current state of all waiters. Any waiters whose\n   * `waitUntil` method returns false will be considered `pending`.\n   *\n   * @returns {PendingWaiterState} An object containing a count of all waiters\n   * pending and a `waiters` object containing the name of all pending waiters\n   * and their debug info.\n   */\n\n  function getPendingWaiterState() {\n    let result = {\n      pending: 0,\n      waiters: {}\n    };\n    WAITERS.forEach(waiter => {\n      if (!waiter.waitUntil()) {\n        result.pending++;\n        let debugInfo = waiter.debugInfo();\n        result.waiters[waiter.name] = debugInfo || true;\n      }\n    });\n    return result;\n  }\n  /**\n   * Determines if there are any pending waiters.\n   *\n   * @returns {boolean} `true` if there are pending waiters, otherwise `false`.\n   */\n\n  function hasPendingWaiters() {\n    let state = getPendingWaiterState();\n    return state.pending > 0;\n  }\n});","define(\"@embroider/macros/es-compat2\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = esCompat;\n  function esCompat(m) {\n    return m?.__esModule ? m : {\n      default: m,\n      ...m\n    };\n  }\n});","define(\"@embroider/macros/runtime\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.config = config;\n  _exports.each = each;\n  _exports.getGlobalConfig = getGlobalConfig;\n  _exports.isTesting = isTesting;\n  _exports.macroCondition = macroCondition;\n  /*\n    These are the runtime implementations for the javascript macros that have\n    runtime implementations.\n  \n    Not every macro has a runtime implementation, some only make sense in the\n    build and always run there.\n  \n    Even when we have runtime implementations, we are still careful to emit static\n    errors during the build wherever possible, and runtime errors when necessary,\n    so that you're not surprised when you switch from runtime-mode to compile-time\n    mode.\n  */\n\n  /*\n    CAUTION: in classic builds, this file gets shared by all present copies of\n    @embroider/macros. If you want to change its public API, you need to rename it\n    and update `pathToRuntime` in ../babel/state.ts to point at it, so that your\n    babel plugin and runtime will match.\n  */\n\n  function each(array) {\n    if (!Array.isArray(array)) {\n      throw new Error(`the argument to the each() macro must be an array`);\n    }\n    return array;\n  }\n  function macroCondition(predicate) {\n    return predicate;\n  }\n\n  // This is here as a compile target for `getConfig` and `getOwnConfig` when\n  // we're in runtime mode. This is not public API to call from your own code.\n  function config(packageRoot) {\n    return runtimeConfig.packages[packageRoot];\n  }\n  function getGlobalConfig() {\n    return runtimeConfig.global;\n  }\n  function isTesting() {\n    let g = runtimeConfig.global;\n    let e = g && g['@embroider/macros'];\n    return Boolean(e && e.isTesting);\n  }\n  const runtimeConfig = initializeRuntimeMacrosConfig();\n\n  // this exists to be targeted by our babel plugin\n  function initializeRuntimeMacrosConfig() {\n    return {\n      \"packages\": {\n        \"/Users/yibaebielliot/Documents/Software Development/Appknox/Repos/irene/node_modules/ember-basic-dropdown/node_modules/ember-get-config\": {\n          \"modulePrefix\": \"irene\"\n        }\n      },\n      \"global\": {\n        \"@embroider/macros\": {\n          \"isTesting\": false\n        }\n      }\n    };\n  }\n  function updaterMethods() {\n    return {\n      config,\n      getGlobalConfig,\n      setConfig(packageRoot, value) {\n        runtimeConfig.packages[packageRoot] = value;\n      },\n      setGlobalConfig(key, value) {\n        runtimeConfig.global[key] = value;\n      }\n    };\n  }\n\n  // this is how runtime config can get injected at boot. I'm not sure yet if this\n  // should be public API, but we certainly need it internally to set things like\n  // the global fastboot.isRunning.\n  //\n  // consumers of this API push a function onto\n  // window._embroider_macros_runtime_config. The function is given four methods\n  // which allow it to read and write the per-package and global configs. The\n  // reason for allowing both read & write is that merging strategies are up to\n  // each consumers -- read first, then merge, then write.\n  //\n  // For an example user of this API, see where we generate\n  // embroider_macros_fastboot_init.js' in @embroider/core.\n  let updaters = typeof window !== 'undefined' ? window._embroider_macros_runtime_config : undefined;\n  if (updaters) {\n    let methods = updaterMethods();\n    for (let updater of updaters) {\n      updater(methods);\n    }\n  }\n});","define(\"@embroider/util/ember-private-api\", [\"exports\", \"@embroider/macros/es-compat2\"], function (_exports, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isCurriedComponentDefinition = void 0;\n  _exports.lookupCurriedComponentDefinition = lookupCurriedComponentDefinition;\n  let runtime;\n  {\n    // new enough ember has a real module we can import\n    runtime = (0, _esCompat.default)(require(\"@glimmer/runtime\"));\n  }\n  let {\n    isCurriedComponentDefinition,\n    CurriedComponentDefinition,\n    curry,\n    CurriedValue\n  } = runtime;\n\n  // older embers have isCurriedComponentDefinition, new ones have CurriedValue\n  // and instanceof CurriedValue seems good enough.\n  _exports.isCurriedComponentDefinition = isCurriedComponentDefinition;\n  if (!isCurriedComponentDefinition) {\n    _exports.isCurriedComponentDefinition = isCurriedComponentDefinition = function (value) {\n      return value instanceof CurriedValue;\n    };\n  }\n  function runtimeResolver(owner) {\n    let resolver = owner.lookup('renderer:-dom')._runtimeResolver;\n    if (resolver) {\n      return resolver;\n    }\n    let entry = Object.entries(owner.__container__.cache).find(e => e[0].startsWith('template-compiler:main-'));\n    if (entry) {\n      return entry[1].resolver.resolver;\n    }\n    throw new Error(`@embroider/util couldn't locate the runtime resolver on this ember version`);\n  }\n  function lookupCurriedComponentDefinition(name, owner) {\n    let resolver = runtimeResolver(owner);\n    if (typeof resolver.lookupComponentHandle === 'function') {\n      let handle = resolver.lookupComponentHandle(name, contextForLookup(owner));\n      if (handle != null) {\n        return new CurriedComponentDefinition(resolver.resolve(handle), null);\n      }\n    }\n\n    // here we're doing the same thing the internal currying does, in order to\n    // generate a sane error message (even though we don't actually use\n    // resolvedDefinition as part of our return value).\n    let resolvedDefinition = resolver.lookupComponent(name, owner);\n    if (!resolvedDefinition) {\n      throw new Error(`Attempted to resolve \\`${name}\\` via ensureSafeComponent, but nothing was found.`);\n    }\n    return curry(0, name, owner, {\n      named: {},\n      positional: []\n    });\n  }\n  function contextForLookup(owner) {\n    {\n      return owner;\n    }\n  }\n});","define(\"@embroider/util/index\", [\"exports\", \"@ember/debug\", \"@ember/application\", \"@embroider/util/ember-private-api\", \"@ember/component/helper\"], function (_exports, _debug, _application, _emberPrivateApi, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.EnsureSafeComponentHelper = void 0;\n  _exports.ensureSafeComponent = ensureSafeComponent;\n  function ensureSafeComponent(value, thingWithOwner) {\n    if (typeof value === 'string') {\n      return handleString(value, thingWithOwner);\n    } else if ((0, _emberPrivateApi.isCurriedComponentDefinition)(value)) {\n      return value;\n    } else if (value == null) {\n      return value;\n    } else {\n      return handleClass(value, thingWithOwner);\n    }\n  }\n  class EnsureSafeComponentHelper extends _helper.default {\n    compute([value]) {\n      return ensureSafeComponent(value, this);\n    }\n  }\n  _exports.EnsureSafeComponentHelper = EnsureSafeComponentHelper;\n  function handleString(name, thingWithOwner) {\n    (true && !(false) && (0, _debug.deprecate)(`You're trying to invoke the component \"${name}\" by passing its name as a string. This won't work under Embroider.`, false, {\n      id: 'ensure-safe-component.string',\n      url: 'https://github.com/embroider-build/embroider/blob/main/docs/replacing-component-helper.md#when-youre-passing-a-component-to-someone-else',\n      until: 'embroider',\n      for: '@embroider/util',\n      since: '0.27.0'\n    }));\n    let owner = (0, _application.getOwner)(thingWithOwner);\n    return (0, _emberPrivateApi.lookupCurriedComponentDefinition)(name, owner);\n  }\n  function ensureRegistered(klass, owner) {\n    let service = owner.lookup('service:-ensure-registered');\n    (true && !(service) && (0, _debug.assert)('Could not lookup private -ensure-registered service', service));\n    return service.register(klass, owner);\n  }\n  function handleClass(klass, thingWithOwner) {\n    {\n      return klass;\n    }\n  }\n});","define(\"@embroider/util/services/ensure-registered\", [\"exports\", \"@ember/service\", \"@ember/application\"], function (_exports, _service, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  class EnsureRegisteredService extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"classNonces\", new WeakMap());\n      _defineProperty(this, \"nonceCounter\", 0);\n    }\n    register(klass, owner = (0, _application.getOwner)(this)) {\n      let nonce = this.classNonces.get(klass);\n      if (nonce == null) {\n        nonce = `-ensure${this.nonceCounter++}`;\n        this.classNonces.set(klass, nonce);\n        owner.register(`component:${nonce}`, klass);\n      }\n      return nonce;\n    }\n  }\n  _exports.default = EnsureRegisteredService;\n});","define(\"@glimmer/component/-private/base-component-manager\", [\"exports\", \"@glimmer/component/-private/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = BaseComponentManager;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  /**\n   * This factory function returns a component manager class with common behavior\n   * that can be extend to add Glimmer.js- or Ember.js-specific functionality. As\n   * these environments converge, the need for two component manager\n   * implementations (and thus this factory) should go away.\n   */\n  function BaseComponentManager(setOwner, getOwner, capabilities) {\n    return class {\n      static create(attrs) {\n        let owner = getOwner(attrs);\n        return new this(owner);\n      }\n      constructor(owner) {\n        _defineProperty(this, \"capabilities\", capabilities);\n        setOwner(this, owner);\n      }\n      createComponent(ComponentClass, args) {\n        if (true /* DEBUG */) {\n          _component.ARGS_SET.set(args.named, true);\n        }\n        return new ComponentClass(getOwner(this), args.named);\n      }\n      getContext(component) {\n        return component;\n      }\n    };\n  }\n});","define(\"@glimmer/component/-private/component\", [\"exports\", \"@glimmer/component/-private/owner\", \"@glimmer/component/-private/destroyables\"], function (_exports, _owner, _destroyables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.ARGS_SET = void 0;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  // This provides a type-safe `WeakMap`: the getter and setter link the key to a\n  // specific value. This is how `WeakMap`s actually behave, but the TS type\n  // system does not (yet!) have a good way to capture that for types like\n  // `WeakMap` where the type is generic over another generic type (here, `Args`).\n\n  // SAFETY: this only holds because we *only* acces this when `DEBUG` is `true`.\n  // There is not a great way to connect that data in TS at present.\n  let ARGS_SET = _exports.ARGS_SET = void 0;\n  if (true /* DEBUG */) {\n    _exports.ARGS_SET = ARGS_SET = new WeakMap();\n  }\n\n  // --- Type utilities for component signatures --- //\n  // Type-only \"symbol\" to use with `EmptyObject` below, so that it is *not*\n  // equivalent to an empty interface.\n  /**\n   * This provides us a way to have a \"fallback\" which represents an empty object,\n   * without the downsides of how TS treats `{}`. Specifically: this will\n   * correctly leverage \"excess property checking\" so that, given a component\n   * which has no named args, if someone invokes it with any named args, they will\n   * get a type error.\n   *\n   * @internal This is exported so declaration emit works (if it were not emitted,\n   *   declarations which fall back to it would not work). It is *not* intended for\n   *   public usage, and the specific mechanics it uses may change at any time.\n   *   The location of this export *is* part of the public API, because moving it\n   *   will break existing declarations, but is not legal for end users to import\n   *   themselves, so ***DO NOT RELY ON IT***.\n   */\n  /** Given a signature `S`, get back the `Args` type. */\n  /**\n   * Given any allowed shorthand form of a signature, desugars it to its full\n   * expanded type.\n   *\n   * @internal This is only exported so we can avoid duplicating it in\n   *   [Glint](https://github.com/typed-ember/glint) or other such tooling. It is\n   *   *not* intended for public usage, and the specific mechanics it uses may\n   *   change at any time. Although the signature produced by is part of Glimmer's\n   *   public API the existence and mechanics of this specific symbol are *not*,\n   *   so ***DO NOT RELY ON IT***.\n   */\n  // The conditional type here is because TS applies conditional types\n  // distributively. This means that for union types, checks like `keyof T` get\n  // all the keys from all elements of the union, instead of ending up as `never`\n  // and then always falling into the `Signature` path instead of falling back to\n  // the legacy args handling path.\n  /**\n   * @internal we use this type for convenience internally; inference means users\n   *   should not normally need to name it\n   */\n  /**\n   * The `Component` class defines an encapsulated UI element that is rendered to\n   * the DOM. A component is made up of a template and, optionally, this component\n   * object.\n   *\n   * ## Defining a Component\n   *\n   * To define a component, subclass `Component` and add your own properties,\n   * methods and lifecycle hooks:\n   *\n   * ```ts\n   * import Component from '@glimmer/component';\n   *\n   * export default class extends Component {\n   * }\n   * ```\n   *\n   * ## Lifecycle Hooks\n   *\n   * Lifecycle hooks allow you to respond to changes to a component, such as when\n   * it gets created, rendered, updated or destroyed. To add a lifecycle hook to a\n   * component, implement the hook as a method on your component subclass.\n   *\n   * For example, to be notified when Glimmer has rendered your component so you\n   * can attach a legacy jQuery plugin, implement the `didInsertElement()` method:\n   *\n   * ```ts\n   * import Component from '@glimmer/component';\n   *\n   * export default class extends Component {\n   *   didInsertElement() {\n   *     $(this.element).pickadate();\n   *   }\n   * }\n   * ```\n   *\n   * ## Data for Templates\n   *\n   * `Component`s have two different kinds of data, or state, that can be\n   * displayed in templates:\n   *\n   * 1. Arguments\n   * 2. Properties\n   *\n   * Arguments are data that is passed in to a component from its parent\n   * component. For example, if I have a `UserGreeting` component, I can pass it\n   * a name and greeting to use:\n   *\n   * ```hbs\n   * <UserGreeting @name=\"Ricardo\" @greeting=\"Olá\" />\n   * ```\n   *\n   * Inside my `UserGreeting` template, I can access the `@name` and `@greeting`\n   * arguments that I've been given:\n   *\n   * ```hbs\n   * {{@greeting}}, {{@name}}!\n   * ```\n   *\n   * Arguments are also available inside my component:\n   *\n   * ```ts\n   * console.log(this.args.greeting); // prints \"Olá\"\n   * ```\n   *\n   * Properties, on the other hand, are internal to the component and declared in\n   * the class. You can use properties to store data that you want to show in the\n   * template, or pass to another component as an argument.\n   *\n   * ```ts\n   * import Component from '@glimmer/component';\n   *\n   * export default class extends Component {\n   *   user = {\n   *     name: 'Robbie'\n   *   }\n   * }\n   * ```\n   *\n   * In the above example, we've defined a component with a `user` property that\n   * contains an object with its own `name` property.\n   *\n   * We can render that property in our template:\n   *\n   * ```hbs\n   * Hello, {{user.name}}!\n   * ```\n   *\n   * We can also take that property and pass it as an argument to the\n   * `UserGreeting` component we defined above:\n   *\n   * ```hbs\n   * <UserGreeting @greeting=\"Hello\" @name={{user.name}} />\n   * ```\n   *\n   * ## Arguments vs. Properties\n   *\n   * Remember, arguments are data that was given to your component by its parent\n   * component, and properties are data your component has defined for itself.\n   *\n   * You can tell the difference between arguments and properties in templates\n   * because arguments always start with an `@` sign (think \"A is for arguments\"):\n   *\n   * ```hbs\n   * {{@firstName}}\n   * ```\n   *\n   * We know that `@firstName` came from the parent component, not the current\n   * component, because it starts with `@` and is therefore an argument.\n   *\n   * On the other hand, if we see:\n   *\n   * ```hbs\n   * {{name}}\n   * ```\n   *\n   * We know that `name` is a property on the component. If we want to know where\n   * the data is coming from, we can go look at our component class to find out.\n   *\n   * Inside the component itself, arguments always show up inside the component's\n   * `args` property. For example, if `{{@firstName}}` is `Tom` in the template,\n   * inside the component `this.args.firstName` would also be `Tom`.\n   */\n  class BaseComponent {\n    /**\n     * Constructs a new component and assigns itself the passed properties. You\n     * should not construct new components yourself. Instead, Glimmer will\n     * instantiate new components automatically as it renders.\n     *\n     * @param owner\n     * @param args\n     */\n    constructor(owner, args) {\n      /**\n       * Named arguments passed to the component from its parent component.\n       * They can be accessed in JavaScript via `this.args.argumentName` and in the template via `@argumentName`.\n       *\n       * Say you have the following component, which will have two `args`, `firstName` and `lastName`:\n       *\n       * ```hbs\n       * <my-component @firstName=\"Arthur\" @lastName=\"Dent\" />\n       * ```\n       *\n       * If you needed to calculate `fullName` by combining both of them, you would do:\n       *\n       * ```ts\n       * didInsertElement() {\n       *   console.log(`Hi, my full name is ${this.args.firstName} ${this.args.lastName}`);\n       * }\n       * ```\n       *\n       * While in the template you could do:\n       *\n       * ```hbs\n       * <p>Welcome, {{@firstName}} {{@lastName}}!</p>\n       * ```\n       */\n      _defineProperty(this, \"args\", void 0);\n      if (true /* DEBUG */ && !(owner !== null && typeof owner === 'object' && ARGS_SET.has(args))) {\n        throw new Error(`You must pass both the owner and args to super() in your component: ${this.constructor.name}. You can pass them directly, or use ...arguments to pass all arguments through.`);\n      }\n      this.args = args;\n      (0, _owner.setOwner)(this, owner);\n    }\n    get isDestroying() {\n      return (0, _destroyables.isDestroying)(this);\n    }\n    get isDestroyed() {\n      return (0, _destroyables.isDestroyed)(this);\n    }\n\n    /**\n     * Called before the component has been removed from the DOM.\n     */\n    willDestroy() {}\n  }\n  _exports.default = BaseComponent;\n});","define(\"@glimmer/component/-private/destroyables\", [\"exports\", \"ember\"], function (_exports, _ember) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isDestroying = _exports.isDestroyed = void 0;\n  const isDestroying = _exports.isDestroying = _ember.default._isDestroying;\n  const isDestroyed = _exports.isDestroyed = _ember.default._isDestroyed;\n});","define(\"@glimmer/component/-private/ember-component-manager\", [\"exports\", \"ember\", \"@ember/object\", \"@ember/application\", \"@ember/component\", \"@ember/runloop\", \"@glimmer/component/-private/base-component-manager\", \"@glimmer/component/-private/destroyables\"], function (_exports, _ember, _object, _application, _component, _runloop, _baseComponentManager, destroyables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    setDestroyed,\n    setDestroying\n  } = destroyables;\n  const CAPABILITIES = true // @ts-ignore\n  // @ts-ignore\n  ? (0, _component.capabilities)('3.13', {\n    destructor: true,\n    asyncLifecycleCallbacks: false,\n    updateHook: false\n  }) : (0, _component.capabilities)('3.4', {\n    destructor: true,\n    asyncLifecycleCallbacks: false\n  });\n  const scheduledDestroyComponent = true ? undefined : (component, meta) => {\n    if (component.isDestroyed) {\n      return;\n    }\n    _ember.default.destroy(component);\n    meta.setSourceDestroyed();\n    setDestroyed(component);\n  };\n  const destroy = true ? _ember.default.destroy : component => {\n    if (component.isDestroying) {\n      return;\n    }\n    let meta = _ember.default.meta(component);\n    meta.setSourceDestroying();\n    setDestroying(component);\n    (0, _runloop.schedule)('actions', component, component.willDestroy);\n    (0, _runloop.schedule)('destroy', void 0, scheduledDestroyComponent, component, meta);\n  };\n  const registerDestructor = true ? _ember.default._registerDestructor : true ? _ember.default.__loader.require('@glimmer/runtime').registerDestructor : undefined;\n\n  /**\n   * This component manager runs in Ember.js environments and extends the base component manager to:\n   *\n   * 1. Properly destroy the component's associated `meta` data structure\n   * 2. Schedule destruction using Ember's runloop\n   */\n  class EmberGlimmerComponentManager extends (0, _baseComponentManager.default)(_application.setOwner, _application.getOwner, CAPABILITIES) {\n    createComponent(ComponentClass, args) {\n      const component = super.createComponent(ComponentClass, args);\n      if (true) {\n        registerDestructor(component, () => {\n          component.willDestroy();\n        });\n      }\n      return component;\n    }\n    destroyComponent(component) {\n      destroy(component);\n    }\n  }\n  // In Ember 3.12 and earlier, the updateComponent hook was mandatory.\n  // As of Ember 3.13, the `args` object is stable and each property of the\n  // object participates in the autotrack stack on its own. This means we do not\n  // need to set the `args` property on the component instance to invalidate\n  // tracked getters that rely on `args`, and therefore don't require the `updateComponent`\n  // hook at all.\n  if (!true) {\n    EmberGlimmerComponentManager.prototype.updateComponent = function updateComponent(component, args) {\n      let argSnapshot = args.named;\n      if (true /* DEBUG */) {\n        argSnapshot = Object.freeze(argSnapshot);\n      }\n      (0, _object.set)(component, 'args', argSnapshot);\n    };\n  }\n  var _default = _exports.default = EmberGlimmerComponentManager;\n});","define(\"@glimmer/component/-private/owner\", [\"exports\", \"@ember/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"setOwner\", {\n    enumerable: true,\n    get: function () {\n      return _application.setOwner;\n    }\n  });\n});","define(\"@glimmer/component/index\", [\"exports\", \"@ember/component\", \"@glimmer/component/-private/ember-component-manager\", \"@glimmer/component/-private/component\"], function (_exports, _component, _emberComponentManager, _component2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // Hax because the old version of `@types/ember__component` the `1.x` branch\n  // uses does not provide any types for `setComponentManager` *and* because we\n  // are using a very old version of `setComponentManager` for versions before\n  // Ember 3.8.\n  let GlimmerComponent = _component2.default;\n  if (true /* DEBUG */) {\n    // Add assertions against using Glimmer.js only APIs\n\n    // TODO: Add GlimmerComponent API docs link to these messages once API docs are live\n    function throwMethodUseError(methodName) {\n      throw new Error(`You attempted to define the '${methodName}' method on a Glimmer Component, but that lifecycle hook does not exist in Ember.js applications, it only exists in Glimmer.js apps. You can rename this method, and you can trigger it using a modifier such as {{did-insert}} from '@ember/render-modifiers': https://github.com/emberjs/ember-render-modifiers.`);\n    }\n    function throwPropertyUseError(propertyName) {\n      throw new Error(`You attempted to access the '${propertyName}' property on a Glimmer Component, but that property does not exist in Ember.js applications, it only exists in Glimmer.js apps. You define a class field with the same name on your component class and it will overwrite this error message, but it will not be used by the framework.`);\n    }\n    GlimmerComponent = class GlimmerDebugComponent extends GlimmerComponent {\n      constructor(owner, args) {\n        super(owner, args);\n        if (typeof this['didInsertElement'] === 'function') {\n          throwMethodUseError('didInsertElement');\n        }\n        if (typeof this['didUpdate'] === 'function') {\n          throwMethodUseError('didUpdate');\n        }\n      }\n    };\n    let proto = GlimmerComponent.prototype;\n    function defineErrorProp(proto, key, getterMethod) {\n      Object.defineProperty(proto, key, {\n        get: () => getterMethod(key),\n        set(value) {\n          Object.defineProperty(this, key, {\n            value\n          });\n        }\n      });\n    }\n\n    // Methods should still throw whenever they are accessed\n    defineErrorProp(proto, 'bounds', throwPropertyUseError);\n    defineErrorProp(proto, 'element', throwPropertyUseError);\n    defineErrorProp(proto, 'debugName', throwPropertyUseError);\n  }\n  if (true) {\n    (0, _component.setComponentManager)(owner => {\n      return new _emberComponentManager.default(owner);\n    }, GlimmerComponent);\n  } else {\n    (0, _component.setComponentManager)('glimmer', GlimmerComponent);\n  }\n  var _default = _exports.default = GlimmerComponent;\n});","define('@html-next/vertical-collection/-private', ['exports', '@ember/object', '@ember/debug', '@ember/object/internals', '@ember/array', '@ember/runloop', 'ember-raf-scheduler'], (function (exports, object, debug, internals, array, runloop, emberRafScheduler) { 'use strict';\n\n  function identity(item) {\n    let key;\n    const type = typeof item;\n    if (type === 'string' || type === 'number') {\n      key = item;\n    } else {\n      key = internals.guidFor(item);\n    }\n    return key;\n  }\n\n  function keyForItem(item, keyPath, index) {\n    let key;\n    (!(typeof keyPath === 'string') && debug.assert(`keyPath must be a string, received: ${keyPath}`, typeof keyPath === 'string'));\n    switch (keyPath) {\n      case '@index':\n        (!(typeof index === 'number') && debug.assert(`A numerical index must be supplied for keyForItem when keyPath is @index, received: ${index}`, typeof index === 'number'));\n        key = index;\n        break;\n      case '@identity':\n        key = identity(item);\n        break;\n      default:\n        key = object.get(item, keyPath);\n    }\n    if (typeof key === 'number') {\n      key = String(key);\n    }\n    return key;\n  }\n\n  const VENDOR_MATCH_FNS = ['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'];\n  let ELEMENT_MATCH_FN;\n  function setElementMatchFn(el) {\n    VENDOR_MATCH_FNS.forEach(fn => {\n      if (ELEMENT_MATCH_FN === undefined && typeof el[fn] === 'function') {\n        ELEMENT_MATCH_FN = fn;\n      }\n    });\n  }\n  function closest(el, selector) {\n    if (ELEMENT_MATCH_FN === undefined) {\n      setElementMatchFn(el);\n    }\n    while (el) {\n      // TODO add explicit test\n      if (el[ELEMENT_MATCH_FN](selector)) {\n        return el;\n      }\n      el = el.parentElement;\n    }\n    return null;\n  }\n\n  var document$1 = window ? window.document : undefined;\n\n  let VC_IDENTITY = 0;\n  class VirtualComponent {\n    constructor(content = null, index = null) {\n      this.id = `VC-${VC_IDENTITY++}`;\n      this.content = content;\n      this.index = index;\n\n      // We check to see if the document exists in Fastboot. Since RAF won't run in\n      // Fastboot, we'll never have to use these text nodes for measurements, so they\n      // can be empty\n      this.upperBound = document$1 !== undefined ? document$1.createTextNode('') : null;\n      this.lowerBound = document$1 !== undefined ? document$1.createTextNode('') : null;\n      this.rendered = false;\n      {\n        Object.preventExtensions(this);\n      }\n    }\n    get realUpperBound() {\n      return this.upperBound;\n    }\n    get realLowerBound() {\n      return this.lowerBound;\n    }\n    getBoundingClientRect() {\n      let {\n        upperBound,\n        lowerBound\n      } = this;\n      let top = Infinity;\n      let bottom = -Infinity;\n      while (upperBound !== lowerBound) {\n        upperBound = upperBound.nextSibling;\n        if (upperBound instanceof Element) {\n          top = Math.min(top, upperBound.getBoundingClientRect().top);\n          bottom = Math.max(bottom, upperBound.getBoundingClientRect().bottom);\n        }\n        {\n          if (upperBound instanceof Element) {\n            continue;\n          }\n          const text = upperBound.textContent;\n          (!(text === '' || text.match(/^\\s+$/)) && debug.assert(`All content inside of vertical-collection must be wrapped in an element. Detected a text node with content: ${text}`, text === '' || text.match(/^\\s+$/)));\n        }\n      }\n      (!(top !== Infinity && bottom !== -Infinity) && debug.assert('Items in a vertical collection require atleast one element in them', top !== Infinity && bottom !== -Infinity));\n      const height = bottom - top;\n      return {\n        top,\n        bottom,\n        height\n      };\n    }\n    recycle(newContent, newIndex) {\n      (!(newContent) && debug.assert(`You cannot set an item's content to undefined`, newContent));\n      if (this.index !== newIndex) {\n        object.set(this, 'index', newIndex);\n      }\n      if (this.content !== newContent) {\n        object.set(this, 'content', newContent);\n      }\n    }\n    destroy() {\n      object.set(this, 'upperBound', null);\n      object.set(this, 'lowerBound', null);\n      object.set(this, 'content', null);\n      object.set(this, 'index', null);\n    }\n  }\n\n  let OC_IDENTITY = 0;\n  class OccludedContent {\n    constructor(tagName) {\n      this.id = `OC-${OC_IDENTITY++}`;\n      this.isOccludedContent = true;\n\n      // We check to see if the document exists in Fastboot. Since RAF won't run in\n      // Fastboot, we'll never have to use these text nodes for measurements, so they\n      // can be empty\n      if (document$1 !== undefined) {\n        this.element = document$1.createElement(tagName);\n        this.element.className += 'occluded-content';\n        this.upperBound = document$1.createTextNode('');\n        this.lowerBound = document$1.createTextNode('');\n      } else {\n        this.element = null;\n      }\n      this.isOccludedContent = true;\n      this.rendered = false;\n      {\n        Object.preventExtensions(this);\n      }\n    }\n    getBoundingClientRect() {\n      if (this.element !== null) {\n        return this.element.getBoundingClientRect();\n      }\n    }\n    addEventListener(event, listener) {\n      if (this.element !== null) {\n        this.element.addEventListener(event, listener);\n      }\n    }\n    removeEventListener(event, listener) {\n      if (this.element !== null) {\n        this.element.removeEventListener(event, listener);\n      }\n    }\n    get realUpperBound() {\n      return this.upperBound;\n    }\n    get realLowerBound() {\n      return this.lowerBound;\n    }\n    get parentNode() {\n      return this.element !== null ? this.element.parentNode : null;\n    }\n    get style() {\n      return this.element !== null ? this.element.style : {};\n    }\n    set innerHTML(value) {\n      if (this.element !== null) {\n        this.element.innerHTML = value;\n      }\n    }\n    destroy() {\n      object.set(this, 'element', null);\n    }\n  }\n\n  function insertRangeBefore(parent, element, firstNode, lastNode) {\n    let nextNode;\n    while (firstNode) {\n      nextNode = firstNode.nextSibling;\n      parent.insertBefore(firstNode, element);\n      if (firstNode === lastNode) {\n        break;\n      }\n      firstNode = nextNode;\n    }\n  }\n\n  function objectAt(arr, index) {\n    (!(Array.isArray(arr) || typeof arr.objectAt === 'function') && debug.assert('arr must be an instance of a Javascript Array or implement `objectAt`', Array.isArray(arr) || typeof arr.objectAt === 'function'));\n    return arr.objectAt ? arr.objectAt(index) : arr[index];\n  }\n\n  function roundTo(number, decimal = 2) {\n    const exp = Math.pow(10, decimal);\n    return Math.round(number * exp) / exp;\n  }\n\n  function isPrepend(lenDiff, newItems, key, oldFirstKey, oldLastKey) {\n    const newItemsLength = object.get(newItems, 'length');\n    if (lenDiff <= 0 || lenDiff >= newItemsLength || newItemsLength === 0) {\n      return false;\n    }\n    const newFirstKey = keyForItem(objectAt(newItems, lenDiff), key, lenDiff);\n    const newLastKey = keyForItem(objectAt(newItems, newItemsLength - 1), key, newItemsLength - 1);\n    return oldFirstKey === newFirstKey && oldLastKey === newLastKey;\n  }\n  function isAppend(lenDiff, newItems, key, oldFirstKey, oldLastKey) {\n    const newItemsLength = object.get(newItems, 'length');\n    if (lenDiff <= 0 || lenDiff >= newItemsLength || newItemsLength === 0) {\n      return false;\n    }\n    const newFirstKey = keyForItem(objectAt(newItems, 0), key, 0);\n    const newLastKey = keyForItem(objectAt(newItems, newItemsLength - lenDiff - 1), key, newItemsLength - lenDiff - 1);\n    return oldFirstKey === newFirstKey && oldLastKey === newLastKey;\n  }\n\n  let supportsPassive = false;\n  try {\n    let opts = Object.defineProperty({}, 'passive', {\n      get() {\n        supportsPassive = true;\n        return supportsPassive;\n      }\n    });\n    window.addEventListener('test', null, opts);\n  } catch (e) {\n    // do nothing\n  }\n  var SUPPORTS_PASSIVE = supportsPassive;\n\n  const DEFAULT_ARRAY_SIZE = 10;\n  const UNDEFINED_VALUE = Object.create(null);\n  class ScrollHandler {\n    constructor() {\n      this.elements = new Array(DEFAULT_ARRAY_SIZE);\n      this.maxLength = DEFAULT_ARRAY_SIZE;\n      this.length = 0;\n      this.handlers = new Array(DEFAULT_ARRAY_SIZE);\n      this.isPolling = false;\n      this.isUsingPassive = SUPPORTS_PASSIVE;\n    }\n    addScrollHandler(element, handler) {\n      let index = this.elements.indexOf(element);\n      let handlers, cache;\n      if (index === -1) {\n        index = this.length++;\n        if (index === this.maxLength) {\n          this.maxLength *= 2;\n          this.elements.length = this.maxLength;\n          this.handlers.length = this.maxLength;\n        }\n        handlers = [handler];\n        this.elements[index] = element;\n        cache = this.handlers[index] = {\n          top: element.scrollTop,\n          left: element.scrollLeft,\n          handlers\n        };\n        // TODO add explicit test\n        if (SUPPORTS_PASSIVE) {\n          cache.passiveHandler = function () {\n            ScrollHandler.triggerElementHandlers(element, cache);\n          };\n        } else {\n          cache.passiveHandler = UNDEFINED_VALUE;\n        }\n      } else {\n        cache = this.handlers[index];\n        handlers = cache.handlers;\n        handlers.push(handler);\n      }\n\n      // TODO add explicit test\n      if (this.isUsingPassive && handlers.length === 1) {\n        element.addEventListener('scroll', cache.passiveHandler, {\n          capture: true,\n          passive: true\n        });\n\n        // TODO add explicit test\n      } else if (!this.isPolling) {\n        this.poll();\n      }\n    }\n    removeScrollHandler(element, handler) {\n      let index = this.elements.indexOf(element);\n      let elementCache = this.handlers[index];\n      // TODO add explicit test\n      if (elementCache && elementCache.handlers) {\n        let index = elementCache.handlers.indexOf(handler);\n        if (index === -1) {\n          throw new Error('Attempted to remove an unknown handler');\n        }\n        elementCache.handlers.splice(index, 1);\n\n        // cleanup element entirely if needed\n        // TODO add explicit test\n        if (!elementCache.handlers.length) {\n          index = this.elements.indexOf(element);\n          this.handlers.splice(index, 1);\n          this.elements.splice(index, 1);\n          this.length--;\n          this.maxLength--;\n          if (this.length === 0) {\n            this.isPolling = false;\n          }\n\n          // TODO add explicit test\n          if (this.isUsingPassive) {\n            element.removeEventListener('scroll', elementCache.passiveHandler, {\n              capture: true,\n              passive: true\n            });\n          }\n        }\n      } else {\n        throw new Error('Attempted to remove a handler from an unknown element or an element with no handlers');\n      }\n    }\n    static triggerElementHandlers(element, meta) {\n      let cachedTop = element.scrollTop;\n      let cachedLeft = element.scrollLeft;\n      let topChanged = cachedTop !== meta.top;\n      let leftChanged = cachedLeft !== meta.left;\n      meta.top = cachedTop;\n      meta.left = cachedLeft;\n      let event = {\n        top: cachedTop,\n        left: cachedLeft\n      };\n\n      // TODO add explicit test\n      if (topChanged || leftChanged) {\n        runloop.begin();\n        for (let j = 0; j < meta.handlers.length; j++) {\n          meta.handlers[j](event);\n        }\n        runloop.end();\n      }\n    }\n    poll() {\n      this.isPolling = true;\n      emberRafScheduler.scheduler.schedule('sync', () => {\n        // TODO add explicit test\n        if (!this.isPolling) {\n          return;\n        }\n        for (let i = 0; i < this.length; i++) {\n          let element = this.elements[i];\n          let info = this.handlers[i];\n          ScrollHandler.triggerElementHandlers(element, info);\n        }\n        this.isPolling = this.length > 0;\n        // TODO add explicit test\n        if (this.isPolling) {\n          this.poll();\n        }\n      });\n    }\n  }\n  const instance = new ScrollHandler();\n  function addScrollHandler(element, handler) {\n    instance.addScrollHandler(element, handler);\n  }\n  function removeScrollHandler(element, handler) {\n    instance.removeScrollHandler(element, handler);\n  }\n\n  /*\n   * There are significant differences between browsers\n   * in how they implement \"scroll\" on document.body\n   *\n   * The only cross-browser listener for scroll on body\n   * is to listen on window with capture.\n   *\n   * They also implement different standards for how to\n   * access the scroll position.\n   *\n   * This singleton class provides a cross-browser way\n   * to access and set the scrollTop and scrollLeft properties.\n   *\n   */\n  function ViewportContainer() {\n    // A bug occurs in Chrome when we reload the browser at a lower\n    // scrollTop, window.scrollY becomes stuck on a single value.\n    Object.defineProperty(this, 'scrollTop', {\n      get() {\n        return document.body.scrollTop || document.documentElement.scrollTop;\n      },\n      set(v) {\n        document.body.scrollTop = document.documentElement.scrollTop = v;\n      }\n    });\n    Object.defineProperty(this, 'scrollLeft', {\n      get() {\n        return window.scrollX || window.pageXOffset || document.body.scrollLeft || document.documentElement.scrollLeft;\n      },\n      set(v) {\n        window.scrollX = window.pageXOffset = document.body.scrollLeft = document.documentElement.scrollLeft = v;\n      }\n    });\n    Object.defineProperty(this, 'offsetHeight', {\n      get() {\n        return window.innerHeight;\n      }\n    });\n  }\n  ViewportContainer.prototype.addEventListener = function addEventListener(event, handler, options) {\n    return window.addEventListener(event, handler, options);\n  };\n  ViewportContainer.prototype.removeEventListener = function addEventListener(event, handler, options) {\n    return window.removeEventListener(event, handler, options);\n  };\n  ViewportContainer.prototype.getBoundingClientRect = function getBoundingClientRect() {\n    return {\n      height: window.innerHeight,\n      width: window.innerWidth,\n      top: 0,\n      left: 0,\n      right: window.innerWidth,\n      bottom: window.innerHeight\n    };\n  };\n  var ViewportContainer$1 = new ViewportContainer();\n\n  function estimateElementHeight(element, fallbackHeight) {\n    (!(fallbackHeight) && debug.assert(`You called estimateElement height without a fallbackHeight`, fallbackHeight));\n    (!(element) && debug.assert(`You called estimateElementHeight without an element`, element));\n    if (fallbackHeight.indexOf('%') !== -1) {\n      return getPercentageHeight(element, fallbackHeight);\n    }\n    if (fallbackHeight.indexOf('em') !== -1) {\n      return getEmHeight(element, fallbackHeight);\n    }\n    return parseInt(fallbackHeight, 10);\n  }\n  function getPercentageHeight(element, fallbackHeight) {\n    // We use offsetHeight here to get the element's true height, rather than the\n    // bounding rect which may be scaled with transforms\n    let parentHeight = element.offsetHeight;\n    let percent = parseFloat(fallbackHeight);\n    return percent * parentHeight / 100.0;\n  }\n  function getEmHeight(element, fallbackHeight) {\n    const fontSizeElement = fallbackHeight.indexOf('rem') !== -1 ? document.documentElement : element;\n    const fontSize = window.getComputedStyle(fontSizeElement).getPropertyValue('font-size');\n    return parseFloat(fallbackHeight) * parseFloat(fontSize);\n  }\n\n  function getScaledClientRect(element, scale) {\n    const rect = element.getBoundingClientRect();\n    if (scale === 1) {\n      return rect;\n    }\n    const scaled = {};\n    for (let key in rect) {\n      scaled[key] = rect[key] * scale;\n    }\n    return scaled;\n  }\n\n  class Radar {\n    constructor(parentToken, {\n      bufferSize,\n      containerSelector,\n      estimateHeight,\n      initialRenderCount,\n      items,\n      key,\n      renderAll,\n      renderFromLast,\n      shouldRecycle,\n      startingIndex,\n      occlusionTagName\n    }) {\n      this.token = new emberRafScheduler.Token(parentToken);\n\n      // Public API\n      this.bufferSize = bufferSize;\n      this.containerSelector = containerSelector;\n      this.estimateHeight = estimateHeight;\n      this.initialRenderCount = initialRenderCount;\n      this.items = items;\n      this.key = key;\n      this.renderAll = renderAll;\n      this.renderFromLast = renderFromLast;\n      this.shouldRecycle = shouldRecycle;\n      this.startingIndex = startingIndex;\n\n      // defaults to a no-op intentionally, actions will only be sent if they\n      // are passed into the component\n      this.sendAction = () => {};\n\n      // Calculated constants\n      this._itemContainer = null;\n      this._scrollContainer = null;\n      this._prependOffset = 0;\n      this._calculatedEstimateHeight = 0;\n      this._collectionOffset = 0;\n      this._calculatedScrollContainerHeight = 0;\n      this._transformScale = 1;\n\n      // Event handler\n      this._scrollHandler = ({\n        top\n      }) => {\n        // debounce scheduling updates by checking to make sure we've moved a minimum amount\n        if (this._didEarthquake(Math.abs(this._scrollTop - top))) {\n          this.scheduleUpdate();\n        }\n      };\n      this._resizeHandler = this.scheduleUpdate.bind(this);\n\n      // Run state\n      this._nextUpdate = null;\n      this._nextLayout = null;\n      this._started = false;\n      this._didReset = true;\n      this._didUpdateItems = false;\n\n      // Cache state\n      this._scrollTop = 0;\n\n      // Setting these values to infinity starts us in a guaranteed good state for the radar,\n      // so it knows that it needs to run certain measurements, etc.\n      this._prevFirstItemIndex = Infinity;\n      this._prevLastItemIndex = -Infinity;\n      this._prevFirstVisibleIndex = 0;\n      this._prevLastVisibleIndex = 0;\n      this._firstReached = false;\n      this._lastReached = false;\n      this._prevTotalItems = 0;\n      this._prevFirstKey = 0;\n      this._prevLastKey = 0;\n      this._componentPool = [];\n      this._prependComponentPool = [];\n      this._appendComponentPool = []; // https://github.com/html-next/vertical-collection/issues/296\n\n      // Boundaries\n      this._occludedContentBefore = new OccludedContent(occlusionTagName);\n      this._occludedContentAfter = new OccludedContent(occlusionTagName);\n      this._pageUpHandler = this.pageUp.bind(this);\n      this._occludedContentBefore.addEventListener('click', this._pageUpHandler);\n      this._pageDownHandler = this.pageDown.bind(this);\n      this._occludedContentAfter.addEventListener('click', this._pageDownHandler);\n\n      // Element to hold pooled component DOM when not in use\n      if (document$1) {\n        this._domPool = document$1.createDocumentFragment();\n      }\n\n      // Initialize virtual components\n      this.virtualComponents = array.A([this._occludedContentBefore, this._occludedContentAfter]);\n      this.orderedComponents = [];\n      this._updateVirtualComponents();\n\n      // In older versions of Ember/IE, binding anything on an object in the template\n      // adds observers which creates __ember_meta__\n      this.__ember_meta__ = null; // eslint-disable-line camelcase\n\n      {\n        this._debugDidUpdate = null;\n      }\n    }\n    destroy() {\n      this.token.cancel();\n      for (let i = 0; i < this.orderedComponents.length; i++) {\n        this.orderedComponents[i].destroy();\n      }\n\n      // Boundaries\n      this._occludedContentBefore.removeEventListener('click', this._pageUpHandler);\n      this._occludedContentAfter.removeEventListener('click', this._pageDownHandler);\n      this._occludedContentBefore.destroy();\n      this._occludedContentAfter.destroy();\n      this.orderedComponents = null;\n      object.set(this, 'virtualComponents', null);\n      if (this._started) {\n        removeScrollHandler(this._scrollContainer, this._scrollHandler);\n        ViewportContainer$1.removeEventListener('resize', this._resizeHandler);\n      }\n    }\n    schedule(queueName, job) {\n      return emberRafScheduler.scheduler.schedule(queueName, job, this.token);\n    }\n\n    /**\n     * Start the Radar. Does initial measurements, adds event handlers,\n     * sets up initial scroll state, and\n     */\n    start() {\n      const {\n        startingIndex,\n        containerSelector,\n        _occludedContentBefore\n      } = this;\n\n      // Use the occluded content element, which has been inserted into the DOM,\n      // to find the item container and the scroll container\n      this._itemContainer = _occludedContentBefore.element.parentNode;\n      this._scrollContainer = containerSelector === 'body' ? ViewportContainer$1 : closest(this._itemContainer, containerSelector);\n      this._updateConstants();\n\n      // Setup initial scroll state\n      if (startingIndex !== 0) {\n        const {\n          renderFromLast,\n          _calculatedEstimateHeight,\n          _collectionOffset,\n          _calculatedScrollContainerHeight\n        } = this;\n        let startingScrollTop = startingIndex * _calculatedEstimateHeight;\n        if (renderFromLast) {\n          startingScrollTop -= _calculatedScrollContainerHeight - _calculatedEstimateHeight;\n        }\n\n        // initialize the scrollTop value, which will be applied to the\n        // scrollContainer after the collection has been initialized\n        this._scrollTop = startingScrollTop + _collectionOffset;\n        this._prevFirstVisibleIndex = startingIndex;\n      } else {\n        this._scrollTop = this._scrollContainer.scrollTop;\n      }\n      this._started = true;\n      this.update();\n\n      // Setup event handlers\n      addScrollHandler(this._scrollContainer, this._scrollHandler);\n      ViewportContainer$1.addEventListener('resize', this._resizeHandler);\n    }\n\n    /*\n     * Schedules an update for the next RAF\n     *\n     * This will first run _updateVirtualComponents in the sync phase, which figures out what\n     * components need to be rerendered and updates the appropriate VCs and moves their associated\n     * DOM. At the end of the `sync` phase the runloop is flushed and Glimmer renders the changes.\n     *\n     * By the `affect` phase the Radar should have had time to measure, meaning it has all of the\n     * current info and we can send actions for any changes.\n     *\n     * @private\n     */\n    scheduleUpdate(didUpdateItems, promiseResolve) {\n      if (didUpdateItems === true) {\n        // Set the update items flag first, in case scheduleUpdate has already been called\n        // but the RAF hasn't yet run\n        this._didUpdateItems = true;\n      }\n      if (this._nextUpdate !== null || this._started === false) {\n        return;\n      }\n      this._nextUpdate = this.schedule('sync', () => {\n        this._nextUpdate = null;\n        this._scrollTop = this._scrollContainer.scrollTop;\n        this.update(promiseResolve);\n      });\n    }\n    update(promiseResolve) {\n      if (this._didUpdateItems === true) {\n        this._determineUpdateType();\n        this._didUpdateItems = false;\n      }\n      this._updateConstants();\n      this._updateIndexes();\n      this._updateVirtualComponents();\n      this.schedule('measure', () => {\n        if (promiseResolve) {\n          promiseResolve();\n        }\n        this.afterUpdate();\n      });\n    }\n    afterUpdate() {\n      const {\n        _prevTotalItems: totalItems\n      } = this;\n      const scrollDiff = this._calculateScrollDiff();\n      if (scrollDiff !== 0) {\n        this._scrollContainer.scrollTop += scrollDiff;\n      }\n\n      // Re-sync scrollTop, since Chrome may have intervened\n      this._scrollTop = this._scrollContainer.scrollTop;\n\n      // Unset prepend offset, we're done with any prepend changes at this point\n      this._prependOffset = 0;\n      if (totalItems !== 0) {\n        this._sendActions();\n      }\n\n      // Cache previous values\n      this._prevFirstItemIndex = this.firstItemIndex;\n      this._prevLastItemIndex = this.lastItemIndex;\n      this._prevFirstVisibleIndex = this.firstVisibleIndex;\n      this._prevLastVisibleIndex = this.lastVisibleIndex;\n\n      // Clear the reset flag\n      this._didReset = false;\n      if (this._debugDidUpdate !== null) {\n        // Hook to update the visual debugger\n        this._debugDidUpdate(this);\n      }\n    }\n\n    /*\n     * The scroll diff is the difference between where we want the container's scrollTop to be,\n     * and where it actually is right now. By default it accounts for the `_prependOffset`, which\n     * is set when items are added to the front of the collection, as well as any discrepancies\n     * that may have arisen between the cached `_scrollTop` value and the actually container's\n     * scrollTop. The container's scrollTop may be modified by the browser when we manipulate DOM\n     * (Chrome specifically does this a lot), so `_scrollTop` should be considered the canonical\n     * scroll top.\n     *\n     * Subclasses should override this method to provide any difference between expected item size\n     * pre-render and actual item size post-render.\n     */\n    _calculateScrollDiff() {\n      return this._prependOffset + this._scrollTop - this._scrollContainer.scrollTop;\n    }\n    _determineUpdateType() {\n      const {\n        items,\n        key,\n        totalItems,\n        _prevTotalItems,\n        _prevFirstKey,\n        _prevLastKey\n      } = this;\n      const lenDiff = totalItems - _prevTotalItems;\n      if (isPrepend(lenDiff, items, key, _prevFirstKey, _prevLastKey) === true) {\n        this.prepend(lenDiff);\n      } else if (isAppend(lenDiff, items, key, _prevFirstKey, _prevLastKey) === true) {\n        this.append(lenDiff);\n      } else {\n        this.reset();\n      }\n      const firstItem = objectAt(this.items, 0);\n      const lastItem = objectAt(this.items, this.totalItems - 1);\n      this._prevTotalItems = totalItems;\n      this._prevFirstKey = totalItems > 0 ? keyForItem(firstItem, key, 0) : 0;\n      this._prevLastKey = totalItems > 0 ? keyForItem(lastItem, key, totalItems - 1) : 0;\n    }\n    _updateConstants() {\n      const {\n        estimateHeight,\n        _occludedContentBefore,\n        _itemContainer,\n        _scrollContainer\n      } = this;\n      (!(estimateHeight !== null) && debug.assert('Must provide a `estimateHeight` value to vertical-collection', estimateHeight !== null));\n      (!(_itemContainer !== null) && debug.assert('itemContainer must be set on Radar before scheduling an update', _itemContainer !== null));\n      (!(_scrollContainer !== null) && debug.assert('scrollContainer must be set on Radar before scheduling an update', _scrollContainer !== null)); // The scroll container's offsetHeight will reflect the actual height of the element, while\n      // it's measured height via bounding client rect will reflect the height with any transformations\n      // applied. We use this to find out the scale of the items so we can store measurements at the\n      // correct heights.\n      const scrollContainerOffsetHeight = _scrollContainer.offsetHeight;\n      const {\n        height: scrollContainerRenderedHeight\n      } = _scrollContainer.getBoundingClientRect();\n      let transformScale;\n\n      // transformScale represents the opposite of the scale, if any, applied to the collection. Check for equality\n      // to guard against floating point errors, and check to make sure we're not dividing by zero (default to scale 1 if so)\n      if (scrollContainerOffsetHeight === scrollContainerRenderedHeight || scrollContainerRenderedHeight === 0) {\n        transformScale = 1;\n      } else {\n        transformScale = scrollContainerOffsetHeight / scrollContainerRenderedHeight;\n      }\n      const {\n        top: scrollContentTop\n      } = getScaledClientRect(_occludedContentBefore, transformScale);\n      const {\n        top: scrollContainerTop\n      } = getScaledClientRect(_scrollContainer, transformScale);\n      let scrollContainerMaxHeight = 0;\n      if (_scrollContainer instanceof Element) {\n        const maxHeightStyle = window.getComputedStyle(_scrollContainer).maxHeight;\n        if (maxHeightStyle !== 'none') {\n          scrollContainerMaxHeight = estimateElementHeight(_scrollContainer.parentElement, maxHeightStyle);\n        }\n      }\n      const calculatedEstimateHeight = typeof estimateHeight === 'string' ? estimateElementHeight(_itemContainer, estimateHeight) : estimateHeight;\n      (!(calculatedEstimateHeight > 0) && debug.assert(`calculatedEstimateHeight must be greater than 0, instead was \"${calculatedEstimateHeight}\" based on estimateHeight: ${estimateHeight}`, calculatedEstimateHeight > 0));\n      this._transformScale = transformScale;\n      this._calculatedEstimateHeight = calculatedEstimateHeight;\n      this._calculatedScrollContainerHeight = roundTo(Math.max(scrollContainerOffsetHeight, scrollContainerMaxHeight));\n\n      // The offset between the top of the collection and the top of the scroll container. Determined by finding\n      // the distance from the collection is from the top of the scroll container's content (scrollTop + actual position)\n      // and subtracting the scroll containers actual top.\n      this._collectionOffset = roundTo(_scrollContainer.scrollTop + scrollContentTop - scrollContainerTop);\n    }\n\n    /*\n     * Updates virtualComponents, which is meant to be a static pool of components that we render to.\n     * In order to decrease the time spent rendering and diffing, we pull the {{each}} out of the DOM\n     * and only replace the content of _virtualComponents which are removed/added.\n     *\n     * For instance, if we start with the following and scroll down, items 2 and 3 do not need to be\n     * rerendered, only item 1 needs to be removed and only item 4 needs to be added. So we replace\n     * item 1 with item 4, and then manually move the DOM:\n     *\n     *   1                        4                         2\n     *   2 -> replace 1 with 4 -> 2 -> manually move DOM -> 3\n     *   3                        3                         4\n     *\n     * However, _virtualComponents is still out of order. Rather than keep track of the state of\n     * things in _virtualComponents, we track the visually ordered components in the\n     * _orderedComponents array. This is possible because all of our operations are relatively simple,\n     * popping some number of components off one end and pushing them onto the other.\n     *\n     * @private\n     */\n    _updateVirtualComponents() {\n      const {\n        items,\n        orderedComponents,\n        virtualComponents,\n        _componentPool,\n        shouldRecycle,\n        renderAll,\n        _started,\n        _didReset,\n        _occludedContentBefore,\n        _occludedContentAfter,\n        totalItems\n      } = this;\n      let renderedFirstItemIndex, renderedLastItemIndex, renderedTotalBefore, renderedTotalAfter;\n      if (renderAll === true) {\n        // All items should be rendered, set indexes based on total item count\n        renderedFirstItemIndex = 0;\n        renderedLastItemIndex = totalItems - 1;\n        renderedTotalBefore = 0;\n        renderedTotalAfter = 0;\n      } else if (_started === false) {\n        // The Radar hasn't been started yet, render the initialRenderCount if it exists\n        renderedFirstItemIndex = this.startingIndex;\n        renderedLastItemIndex = this.startingIndex + this.initialRenderCount - 1;\n        renderedTotalBefore = 0;\n        renderedTotalAfter = 0;\n      } else {\n        renderedFirstItemIndex = this.firstItemIndex;\n        renderedLastItemIndex = this.lastItemIndex;\n        renderedTotalBefore = this.totalBefore;\n        renderedTotalAfter = this.totalAfter;\n      }\n\n      // If there are less items available than rendered, we drop the last rendered item index\n      renderedLastItemIndex = Math.min(renderedLastItemIndex, totalItems - 1);\n\n      // Add components to be recycled to the pool\n      while (orderedComponents.length > 0 && orderedComponents[0].index < renderedFirstItemIndex) {\n        _componentPool.push(orderedComponents.shift());\n      }\n      while (orderedComponents.length > 0 && orderedComponents[orderedComponents.length - 1].index > renderedLastItemIndex) {\n        _componentPool.unshift(orderedComponents.pop());\n      }\n      if (_didReset) {\n        if (shouldRecycle === true) {\n          for (let i = 0; i < orderedComponents.length; i++) {\n            // If the underlying array has changed, the indexes could be the same but\n            // the content may have changed, so recycle the remaining components\n            const component = orderedComponents[i];\n            component.recycle(objectAt(items, component.index), component.index);\n          }\n        } else {\n          while (orderedComponents.length > 0) {\n            // If recycling is disabled we need to delete all components and clear the array\n            _componentPool.push(orderedComponents.shift());\n          }\n        }\n      }\n      let firstIndexInList = orderedComponents.length > 0 ? orderedComponents[0].index : renderedFirstItemIndex;\n      let lastIndexInList = orderedComponents.length > 0 ? orderedComponents[orderedComponents.length - 1].index : renderedFirstItemIndex - 1;\n\n      // Append as many items as needed to the rendered components\n      while (lastIndexInList < renderedLastItemIndex) {\n        let component;\n        if (shouldRecycle === true) {\n          component = _componentPool.pop() || new VirtualComponent();\n        } else {\n          component = new VirtualComponent();\n        }\n        const itemIndex = ++lastIndexInList;\n        component.recycle(objectAt(items, itemIndex), itemIndex);\n        this._appendComponent(component);\n        orderedComponents.push(component);\n      }\n\n      // Prepend as many items as needed to the rendered components\n      while (firstIndexInList > renderedFirstItemIndex) {\n        let component;\n        if (shouldRecycle === true) {\n          component = _componentPool.pop() || new VirtualComponent();\n        } else {\n          component = new VirtualComponent();\n        }\n        const itemIndex = --firstIndexInList;\n        component.recycle(objectAt(items, itemIndex), itemIndex);\n        this._prependComponent(component);\n        orderedComponents.unshift(component);\n      }\n\n      // If there are any items remaining in the pool, remove them\n      if (_componentPool.length > 0) {\n        if (shouldRecycle === true) {\n          // Grab the DOM of the remaining components and move it to temporary node disconnected from\n          // the body if the item can be reused later otherwise delete the component to avoid virtual re-rendering of the\n          // deleted item. If we end up using these components again, we'll grab their DOM and put it back\n          for (let i = _componentPool.length - 1; i >= 0; i--) {\n            const component = _componentPool[i];\n            const item = objectAt(items, component.index);\n            if (item) {\n              insertRangeBefore(this._domPool, null, component.realUpperBound, component.realLowerBound);\n            } else {\n              // Insert the virtual component bound back to make sure Glimmer is\n              // not confused about the state of the DOM.\n              insertRangeBefore(this._itemContainer, null, component.realUpperBound, component.realLowerBound);\n              runloop.run(() => {\n                virtualComponents.removeObject(component);\n              });\n              _componentPool.splice(i, 1);\n            }\n          }\n        } else {\n          virtualComponents.removeObjects(_componentPool);\n          _componentPool.length = 0;\n        }\n      }\n      const totalItemsBefore = renderedFirstItemIndex;\n      const totalItemsAfter = totalItems - renderedLastItemIndex - 1;\n      const beforeItemsText = totalItemsBefore === 1 ? 'item' : 'items';\n      const afterItemsText = totalItemsAfter === 1 ? 'item' : 'items';\n\n      // Set padding element heights.\n      _occludedContentBefore.style.height = `${Math.max(renderedTotalBefore, 0)}px`;\n      _occludedContentBefore.innerHTML = totalItemsBefore > 0 ? `And ${totalItemsBefore} ${beforeItemsText} before` : '';\n      _occludedContentAfter.style.height = `${Math.max(renderedTotalAfter, 0)}px`;\n      _occludedContentAfter.innerHTML = totalItemsAfter > 0 ? `And ${totalItemsAfter} ${afterItemsText} after` : '';\n    }\n    _appendComponent(component) {\n      const {\n        virtualComponents,\n        _occludedContentAfter,\n        _appendComponentPool,\n        shouldRecycle,\n        _itemContainer\n      } = this;\n      const relativeNode = _occludedContentAfter.realUpperBound;\n      if (component.rendered === true) {\n        insertRangeBefore(_itemContainer, relativeNode, component.realUpperBound, component.realLowerBound);\n      } else {\n        virtualComponents.insertAt(virtualComponents.length - 1, component);\n        component.rendered = true;\n\n        // shouldRecycle=false breaks UI when scrolling the elements fast. \n        // Reference https://github.com/html-next/vertical-collection/issues/296\n        // Components that are both new and appended still need to be rendered at the end because Glimmer.\n        // We have to move them _after_ they render, so we schedule that if they exist\n        if (!shouldRecycle) {\n          _appendComponentPool.unshift(component);\n          if (this._nextLayout === null) {\n            this._nextLayout = this.schedule('layout', () => {\n              this._nextLayout = null;\n              while (_appendComponentPool.length > 0) {\n                const component = _appendComponentPool.pop();\n\n                // Changes with each inserted component\n                const relativeNode = _occludedContentAfter.realUpperBound;\n                insertRangeBefore(this._itemContainer, relativeNode, component.realUpperBound, component.realLowerBound);\n              }\n            });\n          }\n        }\n      }\n    }\n    _prependComponent(component) {\n      const {\n        virtualComponents,\n        _occludedContentBefore,\n        _prependComponentPool,\n        _itemContainer\n      } = this;\n      const relativeNode = _occludedContentBefore.realLowerBound.nextSibling;\n      if (component.rendered === true) {\n        insertRangeBefore(_itemContainer, relativeNode, component.realUpperBound, component.realLowerBound);\n      } else {\n        virtualComponents.insertAt(virtualComponents.length - 1, component);\n        component.rendered = true;\n\n        // Components that are both new and prepended still need to be rendered at the end because Glimmer.\n        // We have to move them _after_ they render, so we schedule that if they exist\n        _prependComponentPool.unshift(component);\n        if (this._nextLayout === null) {\n          this._nextLayout = this.schedule('layout', () => {\n            this._nextLayout = null;\n            while (_prependComponentPool.length > 0) {\n              const component = _prependComponentPool.pop();\n\n              // Changes with each inserted component\n              const relativeNode = _occludedContentBefore.realLowerBound.nextSibling;\n              insertRangeBefore(_itemContainer, relativeNode, component.realUpperBound, component.realLowerBound);\n            }\n          });\n        }\n      }\n    }\n    _sendActions() {\n      const {\n        firstItemIndex,\n        lastItemIndex,\n        firstVisibleIndex,\n        lastVisibleIndex,\n        _prevFirstVisibleIndex,\n        _prevLastVisibleIndex,\n        totalItems,\n        _firstReached,\n        _lastReached,\n        _didReset\n      } = this;\n      if (_didReset || firstVisibleIndex !== _prevFirstVisibleIndex) {\n        this.sendAction('firstVisibleChanged', firstVisibleIndex);\n      }\n      if (_didReset || lastVisibleIndex !== _prevLastVisibleIndex) {\n        this.sendAction('lastVisibleChanged', lastVisibleIndex);\n      }\n      if (_firstReached === false && firstItemIndex === 0) {\n        this.sendAction('firstReached', firstItemIndex);\n        this._firstReached = true;\n      }\n      if (_lastReached === false && lastItemIndex === totalItems - 1) {\n        this.sendAction('lastReached', lastItemIndex);\n        this._lastReached = true;\n      }\n    }\n    prepend(numPrepended) {\n      this._prevFirstItemIndex += numPrepended;\n      this._prevLastItemIndex += numPrepended;\n      this.orderedComponents.forEach(c => object.set(c, 'index', object.get(c, 'index') + numPrepended));\n      this._firstReached = false;\n      this._prependOffset = numPrepended * this._calculatedEstimateHeight;\n    }\n    append() {\n      this._lastReached = false;\n    }\n    reset() {\n      this._firstReached = false;\n      this._lastReached = false;\n      this._didReset = true;\n    }\n    pageUp() {\n      if (this.renderAll) {\n        return; // All items rendered, no need to page up\n      }\n\n      const {\n        bufferSize,\n        firstItemIndex,\n        totalComponents\n      } = this;\n      if (firstItemIndex !== 0) {\n        const newFirstItemIndex = Math.max(firstItemIndex - totalComponents + bufferSize, 0);\n        const offset = this.getOffsetForIndex(newFirstItemIndex);\n        this._scrollContainer.scrollTop = offset + this._collectionOffset;\n        this.scheduleUpdate();\n      }\n    }\n    pageDown() {\n      if (this.renderAll) {\n        return; // All items rendered, no need to page down\n      }\n\n      const {\n        bufferSize,\n        lastItemIndex,\n        totalComponents,\n        totalItems\n      } = this;\n      if (lastItemIndex !== totalItems - 1) {\n        const newFirstItemIndex = Math.min(lastItemIndex + bufferSize + 1, totalItems - totalComponents);\n        const offset = this.getOffsetForIndex(newFirstItemIndex);\n        this._scrollContainer.scrollTop = offset + this._collectionOffset;\n        this.scheduleUpdate();\n      }\n    }\n    get totalComponents() {\n      return Math.min(this.totalItems, this.lastItemIndex - this.firstItemIndex + 1);\n    }\n\n    /*\n     * `prependOffset` exists because there are times when we need to do the following in this exact\n     * order:\n     *\n     * 1. Prepend, which means we need to adjust the scroll position by `estimateHeight * numPrepended`\n     * 2. Calculate the items that will be displayed after the prepend, and move VCs around as\n     *    necessary (`scheduleUpdate`).\n     * 3. Actually add the amount prepended to `scrollContainer.scrollTop`\n     *\n     * This is due to some strange behavior in Chrome where it will modify `scrollTop` on it's own\n     * when prepending item elements. We seem to avoid this behavior by doing these things in a RAF\n     * in this exact order.\n     */\n    get visibleTop() {\n      return Math.max(this._scrollTop - this._collectionOffset + this._prependOffset, 0);\n    }\n    get visibleMiddle() {\n      return this.visibleTop + this._calculatedScrollContainerHeight / 2;\n    }\n    get visibleBottom() {\n      // There is a case where the container of this vertical collection could have height 0 at\n      // initial render step but will be updated later. We want to return visibleBottom to be 0 rather\n      // than -1.\n      return Math.max(this.visibleTop + this._calculatedScrollContainerHeight - 1, 0);\n    }\n    get totalItems() {\n      return this.items ? object.get(this.items, 'length') : 0;\n    }\n  }\n\n  /*\n   * `SkipList` is a data structure designed with two main uses in mind:\n   *\n   * - Given a target value, find the index i in the list such that\n   * `sum(list[0]..list[i]) <= value < sum(list[0]..list[i + 1])`\n   *\n   * - Given the index i (the fulcrum point) from above, get `sum(list[0]..list[i])`\n   *   and `sum(list[i + 1]..list[-1])`\n   *\n   * The idea is that given a list of arbitrary heights or widths in pixels, we want to find\n   * the index of the item such that when all of the items before it are added together, it will\n   * be as close to the target (scrollTop of our container) as possible.\n   *\n   * This data structure acts somewhat like a Binary Search Tree. Given a list of size n, the\n   * retreival time for the index is O(log n) and the update time should any values change is\n   * O(log n). The space complexity is O(n log n) in bytes (using Float32Arrays helps a lot\n   * here), and the initialization time is O(n log n).\n   *\n   * It works by constructing layer arrays, each of which is setup such that\n   * `layer[i] = prevLayer[i * 2] + prevLayer[(i * 2) + 1]`. This allows us to traverse the layers\n   * downward using a binary search to arrive at the index we want. We also add the values up as we\n   * traverse to get the total value before and after the final index.\n   */\n\n  function fill(array, value, start = 0, end = array.length) {\n    if (typeof array.fill === 'function') {\n      array.fill(value, start, end);\n    } else {\n      for (; start < end; start++) {\n        array[start] = value;\n      }\n      return array;\n    }\n  }\n  function subarray(array, start, end) {\n    if (typeof array.subarray === 'function') {\n      return array.subarray(start, end);\n    } else {\n      return array.slice(start, end);\n    }\n  }\n  class SkipList {\n    constructor(length, defaultValue) {\n      const values = new Float32Array(new ArrayBuffer(length * 4));\n      fill(values, defaultValue);\n      this.length = length;\n      this.defaultValue = defaultValue;\n      this._initializeLayers(values, defaultValue);\n      {\n        Object.preventExtensions(this);\n      }\n    }\n    _initializeLayers(values, defaultValue) {\n      const layers = [values];\n      let i, length, layer, prevLayer, left, right;\n      prevLayer = layer = values;\n      length = values.length;\n      while (length > 2) {\n        length = Math.ceil(length / 2);\n        layer = new Float32Array(new ArrayBuffer(length * 4));\n        if (defaultValue !== undefined) {\n          // If given a default value we assume that we can fill each\n          // layer of the skip list with the previous layer's value * 2.\n          // This allows us to use the `fill` method on Typed arrays, which\n          // an order of magnitude faster than manually calculating each value.\n          defaultValue = defaultValue * 2;\n          fill(layer, defaultValue);\n          left = prevLayer[(length - 1) * 2] || 0;\n          right = prevLayer[(length - 1) * 2 + 1] || 0;\n\n          // Layers are not powers of 2, and sometimes they may by odd sizes.\n          // Only the last value of a layer will be different, so we calculate\n          // its value manually.\n          layer[length - 1] = left + right;\n        } else {\n          for (i = 0; i < length; i++) {\n            left = prevLayer[i * 2];\n            right = prevLayer[i * 2 + 1];\n            layer[i] = right ? left + right : left;\n          }\n        }\n        layers.unshift(layer);\n        prevLayer = layer;\n      }\n      this.total = layer.length > 0 ? layer.length > 1 ? layer[0] + layer[1] : layer[0] : 0;\n      (!(typeof this.total === 'number') && debug.assert('total must be a number', typeof this.total === 'number'));\n      this.layers = layers;\n      this.values = values;\n    }\n    find(targetValue) {\n      const {\n        layers,\n        total,\n        length,\n        values\n      } = this;\n      const numLayers = layers.length;\n      if (length === 0) {\n        return {\n          index: 0,\n          totalBefore: 0,\n          totalAfter: 0\n        };\n      }\n      let i, layer, left, leftIndex, rightIndex;\n      let index = 0;\n      let totalBefore = 0;\n      let totalAfter = 0;\n      targetValue = Math.min(total - 1, targetValue);\n      (!(typeof targetValue === 'number') && debug.assert('targetValue must be a number', typeof targetValue === 'number'));\n      (!(targetValue >= 0) && debug.assert('targetValue must be greater than or equal to 0', targetValue >= 0));\n      (!(targetValue < total) && debug.assert('targetValue must be no more than total', targetValue < total));\n      for (i = 0; i < numLayers; i++) {\n        layer = layers[i];\n        leftIndex = index;\n        rightIndex = index + 1;\n        left = layer[leftIndex];\n        if (targetValue >= totalBefore + left) {\n          totalBefore = totalBefore + left;\n          index = rightIndex * 2;\n        } else {\n          index = leftIndex * 2;\n        }\n      }\n      index = index / 2;\n      (!(typeof index === 'number') && debug.assert('index must be a number', typeof index === 'number'));\n      (!(index >= 0 && index < this.values.length) && debug.assert('index must be within bounds', index >= 0 && index < this.values.length));\n      totalAfter = total - (totalBefore + values[index]);\n      return {\n        index,\n        totalBefore,\n        totalAfter\n      };\n    }\n    getOffset(targetIndex) {\n      const {\n        layers,\n        length,\n        values\n      } = this;\n      const numLayers = layers.length;\n      if (length === 0) {\n        return 0;\n      }\n      let index = 0;\n      let offset = 0;\n      for (let i = 0; i < numLayers - 1; i++) {\n        const layer = layers[i];\n        const leftIndex = index;\n        const rightIndex = index + 1;\n        if (targetIndex >= rightIndex * Math.pow(2, numLayers - i - 1)) {\n          offset = offset + layer[leftIndex];\n          index = rightIndex * 2;\n        } else {\n          index = leftIndex * 2;\n        }\n      }\n      if (index + 1 === targetIndex) {\n        offset += values[index];\n      }\n      return offset;\n    }\n    set(index, value) {\n      (!(typeof value === 'number') && debug.assert('value must be a number', typeof value === 'number'));\n      (!(value >= 0) && debug.assert('value must non-negative', value >= 0));\n      (!(typeof index === 'number') && debug.assert('index must be a number', typeof index === 'number'));\n      (!(index >= 0 && index < this.values.length) && debug.assert('index must be within bounds', index >= 0 && index < this.values.length));\n      const {\n        layers\n      } = this;\n      const oldValue = layers[layers.length - 1][index];\n      const delta = roundTo(value - oldValue);\n      if (delta === 0) {\n        return delta;\n      }\n      let i, layer;\n      for (i = layers.length - 1; i >= 0; i--) {\n        layer = layers[i];\n        layer[index] += delta;\n        index = Math.floor(index / 2);\n      }\n      this.total += delta;\n      return delta;\n    }\n    prepend(numPrepended) {\n      const {\n        values: oldValues,\n        length: oldLength,\n        defaultValue\n      } = this;\n      const newLength = numPrepended + oldLength;\n      const newValues = new Float32Array(new ArrayBuffer(newLength * 4));\n      newValues.set(oldValues, numPrepended);\n      fill(newValues, defaultValue, 0, numPrepended);\n      this.length = newLength;\n      this._initializeLayers(newValues);\n    }\n    append(numAppended) {\n      const {\n        values: oldValues,\n        length: oldLength,\n        defaultValue\n      } = this;\n      const newLength = numAppended + oldLength;\n      const newValues = new Float32Array(new ArrayBuffer(newLength * 4));\n      newValues.set(oldValues);\n      fill(newValues, defaultValue, oldLength);\n      this.length = newLength;\n      this._initializeLayers(newValues);\n    }\n    reset(newLength) {\n      const {\n        values: oldValues,\n        length: oldLength,\n        defaultValue\n      } = this;\n      if (oldLength === newLength) {\n        return;\n      }\n      const newValues = new Float32Array(new ArrayBuffer(newLength * 4));\n      if (oldLength < newLength) {\n        newValues.set(oldValues);\n        fill(newValues, defaultValue, oldLength);\n      } else {\n        newValues.set(subarray(oldValues, 0, newLength));\n      }\n      this.length = newLength;\n      if (oldLength === 0) {\n        this._initializeLayers(newValues, defaultValue);\n      } else {\n        this._initializeLayers(newValues);\n      }\n    }\n  }\n\n  class DynamicRadar extends Radar {\n    constructor(parentToken, options) {\n      super(parentToken, options);\n      this._firstItemIndex = 0;\n      this._lastItemIndex = 0;\n      this._totalBefore = 0;\n      this._totalAfter = 0;\n      this._minHeight = Infinity;\n      this._nextIncrementalRender = null;\n      this.skipList = null;\n      {\n        Object.preventExtensions(this);\n      }\n    }\n    destroy() {\n      super.destroy();\n      this.skipList = null;\n    }\n    scheduleUpdate(didUpdateItems, promiseResolve) {\n      // Cancel incremental render check, since we'll be remeasuring anyways\n      if (this._nextIncrementalRender !== null) {\n        this._nextIncrementalRender.cancel();\n        this._nextIncrementalRender = null;\n      }\n      super.scheduleUpdate(didUpdateItems, promiseResolve);\n    }\n    afterUpdate() {\n      // Schedule a check to see if we should rerender\n      if (this._nextIncrementalRender === null && this._nextUpdate === null) {\n        this._nextIncrementalRender = this.schedule('sync', () => {\n          this._nextIncrementalRender = null;\n          if (this._shouldScheduleRerender()) {\n            this.update();\n          }\n        });\n      }\n      super.afterUpdate();\n    }\n    _updateConstants() {\n      super._updateConstants();\n      if (this._calculatedEstimateHeight < this._minHeight) {\n        this._minHeight = this._calculatedEstimateHeight;\n      }\n\n      // Create the SkipList only after the estimateHeight has been calculated the first time\n      if (this.skipList === null) {\n        this.skipList = new SkipList(this.totalItems, this._calculatedEstimateHeight);\n      } else {\n        this.skipList.defaultValue = this._calculatedEstimateHeight;\n      }\n    }\n    _updateIndexes() {\n      const {\n        bufferSize,\n        skipList,\n        visibleTop,\n        visibleBottom,\n        totalItems,\n        _didReset\n      } = this;\n      if (totalItems === 0) {\n        this._firstItemIndex = 0;\n        this._lastItemIndex = -1;\n        this._totalBefore = 0;\n        this._totalAfter = 0;\n        return;\n      }\n\n      // Don't measure if the radar has just been instantiated or reset, as we are rendering with a\n      // completely new set of items and won't get an accurate measurement until after they render the\n      // first time.\n      if (_didReset === false) {\n        this._measure();\n      }\n      const {\n        values\n      } = skipList;\n      let {\n        totalBefore,\n        index: firstVisibleIndex\n      } = this.skipList.find(visibleTop);\n      let {\n        totalAfter,\n        index: lastVisibleIndex\n      } = this.skipList.find(visibleBottom);\n      const maxIndex = totalItems - 1;\n      let firstItemIndex = firstVisibleIndex;\n      let lastItemIndex = lastVisibleIndex;\n\n      // Add buffers\n      for (let i = bufferSize; i > 0 && firstItemIndex > 0; i--) {\n        firstItemIndex--;\n        totalBefore -= values[firstItemIndex];\n      }\n      for (let i = bufferSize; i > 0 && lastItemIndex < maxIndex; i--) {\n        lastItemIndex++;\n        totalAfter -= values[lastItemIndex];\n      }\n      this._firstItemIndex = firstItemIndex;\n      this._lastItemIndex = lastItemIndex;\n      this._totalBefore = totalBefore;\n      this._totalAfter = totalAfter;\n    }\n    _calculateScrollDiff() {\n      const {\n        firstItemIndex,\n        _prevFirstVisibleIndex,\n        _prevFirstItemIndex\n      } = this;\n      let beforeVisibleDiff = 0;\n      if (firstItemIndex < _prevFirstItemIndex) {\n        // Measurement only items that could affect scrollTop. This will necesarilly be the\n        // minimum of the either the total number of items that are rendered up to the first\n        // visible item, OR the number of items that changed before the first visible item\n        // (the delta). We want to measure the delta of exactly this number of items, because\n        // items that are after the first visible item should not affect the scroll position,\n        // and neither should items already rendered before the first visible item.\n        const measureLimit = Math.min(Math.abs(firstItemIndex - _prevFirstItemIndex), _prevFirstVisibleIndex - firstItemIndex);\n        beforeVisibleDiff = Math.round(this._measure(measureLimit));\n      }\n      return beforeVisibleDiff + super._calculateScrollDiff();\n    }\n    _shouldScheduleRerender() {\n      const {\n        firstItemIndex,\n        lastItemIndex\n      } = this;\n      this._updateConstants();\n      this._measure();\n\n      // These indexes could change after the measurement, and in the incremental render\n      // case we want to check them _after_ the change.\n      const {\n        firstVisibleIndex,\n        lastVisibleIndex\n      } = this;\n      return firstVisibleIndex < firstItemIndex || lastVisibleIndex > lastItemIndex;\n    }\n    _measure(measureLimit = null) {\n      const {\n        orderedComponents,\n        skipList,\n        _occludedContentBefore,\n        _transformScale\n      } = this;\n      const numToMeasure = measureLimit !== null ? Math.min(measureLimit, orderedComponents.length) : orderedComponents.length;\n      let totalDelta = 0;\n      for (let i = 0; i < numToMeasure; i++) {\n        const currentItem = orderedComponents[i];\n        const previousItem = orderedComponents[i - 1];\n        const itemIndex = currentItem.index;\n        const {\n          top: currentItemTop,\n          height: currentItemHeight\n        } = getScaledClientRect(currentItem, _transformScale);\n        let margin;\n        if (previousItem !== undefined) {\n          margin = currentItemTop - getScaledClientRect(previousItem, _transformScale).bottom;\n        } else {\n          margin = currentItemTop - getScaledClientRect(_occludedContentBefore, _transformScale).bottom;\n        }\n        const newHeight = roundTo(currentItemHeight + margin);\n        const itemDelta = skipList.set(itemIndex, newHeight);\n        if (newHeight < this._minHeight) {\n          this._minHeight = newHeight;\n        }\n        if (itemDelta !== 0) {\n          totalDelta += itemDelta;\n        }\n      }\n      return totalDelta;\n    }\n    _didEarthquake(scrollDiff) {\n      return scrollDiff > this._minHeight / 2;\n    }\n    get total() {\n      return this.skipList.total;\n    }\n    get totalBefore() {\n      return this._totalBefore;\n    }\n    get totalAfter() {\n      return this._totalAfter;\n    }\n    get firstItemIndex() {\n      return this._firstItemIndex;\n    }\n    get lastItemIndex() {\n      return this._lastItemIndex;\n    }\n    get firstVisibleIndex() {\n      const {\n        visibleTop\n      } = this;\n      const {\n        index\n      } = this.skipList.find(visibleTop);\n      return index;\n    }\n    get lastVisibleIndex() {\n      const {\n        visibleBottom,\n        totalItems\n      } = this;\n      const {\n        index\n      } = this.skipList.find(visibleBottom);\n      return Math.min(index, totalItems - 1);\n    }\n    prepend(numPrepended) {\n      super.prepend(numPrepended);\n      this.skipList.prepend(numPrepended);\n    }\n    append(numAppended) {\n      super.append(numAppended);\n      this.skipList.append(numAppended);\n    }\n    reset() {\n      super.reset();\n      this.skipList.reset(this.totalItems);\n    }\n\n    /*\n     * Public API to query the skiplist for the offset of an item\n     */\n    getOffsetForIndex(index) {\n      this._measure();\n      return this.skipList.getOffset(index);\n    }\n  }\n\n  class StaticRadar extends Radar {\n    constructor(parentToken, options) {\n      super(parentToken, options);\n      this._firstItemIndex = 0;\n      this._lastItemIndex = 0;\n      {\n        Object.preventExtensions(this);\n      }\n    }\n    _updateIndexes() {\n      const {\n        bufferSize,\n        totalItems,\n        visibleMiddle,\n        _calculatedEstimateHeight,\n        _calculatedScrollContainerHeight\n      } = this;\n      if (totalItems === 0) {\n        this._firstItemIndex = 0;\n        this._lastItemIndex = -1;\n        return;\n      }\n      const maxIndex = totalItems - 1;\n      const middleItemIndex = Math.floor(visibleMiddle / _calculatedEstimateHeight);\n      const shouldRenderCount = Math.min(Math.ceil(_calculatedScrollContainerHeight / _calculatedEstimateHeight), totalItems);\n      let firstItemIndex = middleItemIndex - Math.floor(shouldRenderCount / 2);\n      let lastItemIndex = middleItemIndex + Math.ceil(shouldRenderCount / 2) - 1;\n      if (firstItemIndex < 0) {\n        firstItemIndex = 0;\n        lastItemIndex = shouldRenderCount - 1;\n      }\n      if (lastItemIndex > maxIndex) {\n        lastItemIndex = maxIndex;\n        firstItemIndex = maxIndex - (shouldRenderCount - 1);\n      }\n      firstItemIndex = Math.max(firstItemIndex - bufferSize, 0);\n      lastItemIndex = Math.min(lastItemIndex + bufferSize, maxIndex);\n      this._firstItemIndex = firstItemIndex;\n      this._lastItemIndex = lastItemIndex;\n    }\n    _didEarthquake(scrollDiff) {\n      return scrollDiff > this._calculatedEstimateHeight / 2;\n    }\n    get total() {\n      return this.totalItems * this._calculatedEstimateHeight;\n    }\n    get totalBefore() {\n      return this.firstItemIndex * this._calculatedEstimateHeight;\n    }\n    get totalAfter() {\n      return this.total - (this.lastItemIndex + 1) * this._calculatedEstimateHeight;\n    }\n    get firstItemIndex() {\n      return this._firstItemIndex;\n    }\n    get lastItemIndex() {\n      return this._lastItemIndex;\n    }\n    get firstVisibleIndex() {\n      return Math.ceil(this.visibleTop / this._calculatedEstimateHeight);\n    }\n    get lastVisibleIndex() {\n      return Math.min(Math.ceil(this.visibleBottom / this._calculatedEstimateHeight), this.totalItems) - 1;\n    }\n\n    /*\n     * Public API to query for the offset of an item\n     */\n    getOffsetForIndex(index) {\n      return index * this._calculatedEstimateHeight + 1;\n    }\n  }\n\n  exports.DynamicRadar = DynamicRadar;\n  exports.ScrollHandler = ScrollHandler;\n  exports.StaticRadar = StaticRadar;\n  exports.ViewportContainer = ViewportContainer$1;\n  exports.addScrollHandler = addScrollHandler;\n  exports.closestElement = closest;\n  exports.keyForItem = keyForItem;\n  exports.objectAt = objectAt;\n  exports.removeScrollHandler = removeScrollHandler;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n","define(\"@html-next/vertical-collection/components/vertical-collection/component\", [\"exports\", \"@ember/debug\", \"@ember/object/computed\", \"@ember/component\", \"@ember/object\", \"@ember/runloop\", \"@html-next/vertical-collection/components/vertical-collection/template\", \"@html-next/vertical-collection/-private\", \"ember-raf-scheduler\"], function (_exports, _debug, _computed, _component, _object, _runloop, _template, _private, _emberRafScheduler) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /*\n   * BEGIN DEBUG HELPERS\n   *\n   * These methods and the Visualization class are used by DEBUG code paths.\n   */\n  function isNonZero(value) {\n    let int = parseInt(value, 10);\n    let float = parseFloat(value);\n    return !isNaN(int) && (int !== 0 || float !== 0);\n  }\n  function hasStyleValue(styles, key, value) {\n    return styles[key] === value;\n  }\n  function hasStyleWithNonZeroValue(styles, key) {\n    return isNonZero(styles[key]);\n  }\n  function styleIsOneOf(styles, key, values) {\n    return styles[key] && values.indexOf(styles[key]) !== -1;\n  }\n  function applyVerticalStyles(element, geography) {\n    element.style.height = `${geography.height}px`;\n    element.style.top = `${geography.top}px`;\n  }\n  class Visualization {\n    constructor(radar) {\n      this.radar = radar;\n      this.satellites = [];\n      this.cache = [];\n      this.wrapper = document.createElement('div');\n      this.wrapper.className = 'vertical-collection-visual-debugger';\n      this.container = document.createElement('div');\n      this.container.className = 'vc_visualization-container';\n      this.wrapper.appendChild(this.container);\n      this.itemContainer = document.createElement('div');\n      this.itemContainer.className = 'vc_visualization-item-container';\n      this.container.appendChild(this.itemContainer);\n      this.scrollContainer = document.createElement('div');\n      this.scrollContainer.className = 'vc_visualization-scroll-container';\n      this.container.appendChild(this.scrollContainer);\n      this.screen = document.createElement('div');\n      this.screen.className = 'vc_visualization-screen';\n      this.container.appendChild(this.screen);\n      document.body.appendChild(this.wrapper);\n    }\n    render() {\n      this.styleViewport();\n      this.updateSatellites();\n    }\n    styleViewport() {\n      const {\n        _scrollContainer\n      } = this.radar;\n      this.container.style.height = `${_scrollContainer.getBoundingClientRect().height}px`;\n      applyVerticalStyles(this.scrollContainer, _scrollContainer.getBoundingClientRect());\n      applyVerticalStyles(this.screen, _private.ViewportContainer.getBoundingClientRect());\n    }\n    makeSatellite() {\n      let satellite;\n      if (this.cache.length) {\n        satellite = this.cache.pop();\n      } else {\n        satellite = document.createElement('div');\n        satellite.className = 'vc_visualization-virtual-component';\n      }\n      this.satellites.push(satellite);\n      this.itemContainer.append(satellite);\n    }\n    updateSatellites() {\n      const {\n        satellites: sats\n      } = this;\n      let {\n        firstItemIndex,\n        lastItemIndex,\n        totalItems,\n        totalBefore,\n        totalAfter,\n        skipList,\n        _calculatedEstimateHeight\n      } = this.radar;\n      const isDynamic = !!skipList;\n      const itemHeights = isDynamic && skipList.values;\n      const firstVisualizedIndex = Math.max(firstItemIndex - 10, 0);\n      const lastVisualizedIndex = Math.min(lastItemIndex + 10, totalItems - 1);\n      const lengthWithBuffer = lastVisualizedIndex - firstVisualizedIndex + 1;\n      const isShrinking = sats.length > lengthWithBuffer;\n      while (sats.length !== lengthWithBuffer) {\n        if (isShrinking) {\n          const satellite = sats.pop();\n          satellite.parentNode.removeChild(satellite);\n          this.cache.push(satellite);\n        } else {\n          this.makeSatellite();\n        }\n      }\n      for (let itemIndex = firstVisualizedIndex, i = 0; itemIndex <= lastVisualizedIndex; itemIndex++, i++) {\n        const element = sats[i];\n        const itemHeight = isDynamic ? itemHeights[itemIndex] : _calculatedEstimateHeight;\n        element.style.height = `${itemHeight}px`;\n        element.setAttribute('index', String(itemIndex));\n        element.innerText = String(itemIndex);\n        if (itemIndex < firstItemIndex) {\n          element.classList.add('culled');\n          totalBefore -= itemHeight;\n        } else if (itemIndex > lastItemIndex) {\n          element.classList.add('culled');\n          totalAfter -= itemHeight;\n        } else {\n          element.classList.remove('culled');\n        }\n      }\n      this.itemContainer.style.paddingTop = `${totalBefore}px`;\n      this.itemContainer.style.paddingBottom = `${totalAfter}px`;\n    }\n    destroy() {\n      this.wrapper.parentNode.removeChild(this.wrapper);\n      this.wrapper = null;\n      this.radar = null;\n      this.component = null;\n      this.satellites.forEach(satellite => {\n        if (satellite.parentNode) {\n          satellite.parentNode.removeChild(satellite);\n        }\n      });\n      this.satellites = null;\n      this.cache = null;\n    }\n  }\n  /*\n   * END DEBUG HELPERS\n   */\n\n  const VerticalCollection = _component.default.extend({\n    layout: _template.default,\n    tagName: '',\n    /**\n     * Property name used for storing references to each item in items. Accessing this attribute for each item\n     * should yield a unique result for every item in the list.\n     *\n     * @property key\n     * @type String\n     * @default '@identity'\n     */\n    key: '@identity',\n    // –––––––––––––– Required Settings\n\n    /**\n     * Estimated height of an item to be rendered. Use best guess as this will be used to determine how many items\n     * are displayed virtually, before and after the vertical-collection viewport.\n     *\n     * @property estimateHeight\n     * @type Number\n     * @required\n     */\n    estimateHeight: null,\n    /**\n     * List of objects to svelte-render.\n     * Can be called like `<VerticalCollection @items={{itemsArray}} />`.\n     *\n     * @property items\n     * @type Array\n     * @required\n     */\n    items: null,\n    // –––––––––––––– Optional Settings\n    /**\n     * Indicates if the occluded items' heights will change or not.\n     * If true, the vertical-collection will assume that items' heights are always equal to estimateHeight;\n     * this is more performant, but less flexible.\n     *\n     * @property staticHeight\n     * @type Boolean\n     */\n    staticHeight: false,\n    /**\n     * Indicates whether or not list items in the Radar should be reused on update of virtual components (e.g. scroll).\n     * This yields performance benefits because it is not necessary to repopulate the component pool of the radar.\n     * Set to false when recycling a component instance has undesirable ramifications including:\n     *  - When using `unbound` in a component or sub-component\n     *  - When using init for instance state that differs between instances of a component or sub-component\n     *      (can move to didInitAttrs to fix this)\n     *  - When templates for individual items vary widely or are based on conditionals that are likely to change\n     *      (i.e. would defeat any benefits of DOM recycling anyway)\n     *\n     * @property shouldRecycle\n     * @type Boolean\n     */\n    shouldRecycle: true,\n    /*\n     * A selector string that will select the element from\n     * which to calculate the viewable height and needed offsets.\n     *\n     * This element will also have the `scroll` event handler added to it.\n     *\n     * Usually this element will be the component's immediate parent element,\n     * if so, you can leave this null.\n     *\n     * Set this to \"body\" to scroll the entire web page.\n     */\n    containerSelector: '*',\n    // –––––––––––––– Performance Tuning\n    /**\n     * The amount of extra items to keep visible on either side of the viewport -- must be greater than 0.\n     * Increasing this value is useful when doing infinite scrolling and loading data from a remote service,\n     * with the desire to allow records to show as the user scrolls and the backend API takes time to respond.\n     *\n     * @property bufferSize\n     * @type Number\n     * @default 1\n     */\n    bufferSize: 1,\n    // –––––––––––––– Initial Scroll State\n    /**\n     * If set, upon initialization the scroll\n     * position will be set such that the item\n     * with the provided id is at the top left\n     * on screen.\n     *\n     * If the item cannot be found, scrollTop\n     * is set to 0.\n     * @property idForFirstItem\n     */\n    idForFirstItem: null,\n    /**\n     * If set, if scrollPosition is empty\n     * at initialization, the component will\n     * render starting at the bottom.\n     * @property renderFromLast\n     * @type Boolean\n     * @default false\n     */\n    renderFromLast: false,\n    /**\n     * If set to true, the collection will render all of the items passed into the component.\n     * This counteracts the performance benefits of using vertical collection, but has several potential applications,\n     * including but not limited to:\n     *\n     * - It allows for improved accessibility since all elements are rendered and can be picked up by a screen reader.\n     * - Can be applied in SEO solutions (i.e. fastboot) where rendering every item is desirable.\n     * - Can be used to respond to the keyboard input for Find (i.e. ctrl+F/cmd+F) to show all elements, which then\n     *    allows the list items to be searchable\n     *\n     * @property renderAll\n     * @type Boolean\n     * @default false\n     */\n    renderAll: false,\n    /**\n     * The tag name used in DOM elements before and after the rendered list. By default, it is set to\n     * 'occluded-content' to avoid any confusion with user's CSS settings. However, it could be\n     * overriden to provide custom behavior (for example, in table user wants to set it to 'tr' to\n     * comply with table semantics).\n     */\n    occlusionTagName: 'occluded-content',\n    isEmpty: (0, _computed.empty)('items'),\n    shouldYieldToInverse: (0, _computed.readOnly)('isEmpty'),\n    virtualComponents: (0, _object.computed)('items.[]', 'renderAll', 'estimateHeight', 'bufferSize', function () {\n      const {\n        _radar\n      } = this;\n      const items = this.items;\n      _radar.items = items === null || items === undefined ? [] : items;\n      _radar.estimateHeight = this.estimateHeight;\n      _radar.renderAll = this.renderAll;\n      _radar.bufferSize = this.bufferSize;\n      _radar.scheduleUpdate(true);\n      this._clearScheduledActions();\n      return _radar.virtualComponents;\n    }),\n    schedule(queueName, job) {\n      return _emberRafScheduler.scheduler.schedule(queueName, job, this.token);\n    },\n    _clearScheduledActions() {\n      clearTimeout(this._nextSendActions);\n      this._nextSendActions = null;\n      this._scheduledActions.length = 0;\n    },\n    _scheduleSendAction(action, index) {\n      this._scheduledActions.push([action, index]);\n      if (this._nextSendActions === null) {\n        this._nextSendActions = setTimeout(() => {\n          this._nextSendActions = null;\n          (0, _runloop.run)(() => {\n            const items = this.items;\n            const keyPath = this.key;\n            this._scheduledActions.forEach(([action, index]) => {\n              const item = (0, _private.objectAt)(items, index);\n              const key = (0, _private.keyForItem)(item, keyPath, index);\n\n              // this.sendAction will be deprecated in ember 4.0\n              const _action = (0, _object.get)(this, action);\n              if (typeof _action == 'function') {\n                _action(item, index, key);\n              } else if (typeof _action === 'string') {\n                this.sendAction(action, item, index, key);\n              }\n            });\n            this._scheduledActions.length = 0;\n          });\n        });\n      }\n    },\n    /* Public API Methods\n       @index => number\n       This will return offset height of the indexed item.\n    */\n    scrollToItem(index) {\n      const {\n        _radar\n      } = this;\n      // Getting the offset height from Radar\n      let scrollTop = _radar.getOffsetForIndex(index);\n      _radar._scrollContainer.scrollTop = scrollTop;\n      // To scroll exactly to specified index, we are changing the prevIndex values to specified index\n      _radar._prevFirstVisibleIndex = _radar._prevFirstItemIndex = index;\n      // Components will be rendered after schedule 'measure' inside 'update' method.\n      // In our case, we need to focus the element after component is rendered. So passing the promise.\n      return new Promise(resolve => {\n        _radar.scheduleUpdate(false, resolve);\n      });\n    },\n    // –––––––––––––– Setup/Teardown\n    didInsertElement() {\n      this.schedule('sync', () => {\n        this._radar.start();\n      });\n    },\n    willDestroy() {\n      this.token.cancel();\n      this._radar.destroy();\n      let registerAPI = this.registerAPI;\n      if (registerAPI) {\n        registerAPI(null);\n      }\n      clearTimeout(this._nextSendActions);\n      if (true /* DEBUG */) {\n        if (this.__visualization) {\n          console.info('destroying visualization'); // eslint-disable-line no-console\n          this.__visualization.destroy();\n          this.__visualization = null;\n        }\n      }\n    },\n    init() {\n      this._super();\n      this.token = new _emberRafScheduler.Token();\n      const RadarClass = this.staticHeight ? _private.StaticRadar : _private.DynamicRadar;\n      const items = this.items || [];\n      const {\n        bufferSize,\n        containerSelector,\n        estimateHeight,\n        initialRenderCount,\n        renderAll,\n        renderFromLast,\n        shouldRecycle,\n        occlusionTagName,\n        idForFirstItem,\n        key\n      } = this;\n      const startingIndex = calculateStartingIndex(items, idForFirstItem, key, renderFromLast);\n      this._radar = new RadarClass(this.token, {\n        bufferSize,\n        containerSelector,\n        estimateHeight,\n        initialRenderCount,\n        items,\n        key,\n        renderAll,\n        renderFromLast,\n        shouldRecycle,\n        startingIndex,\n        occlusionTagName\n      });\n      this._prevItemsLength = 0;\n      this._prevFirstKey = null;\n      this._prevLastKey = null;\n      this._hasAction = null;\n      this._scheduledActions = [];\n      this._nextSendActions = null;\n      let a = !!this.lastReached;\n      let b = !!this.firstReached;\n      let c = !!this.lastVisibleChanged;\n      let d = !!this.firstVisibleChanged;\n      let any = a || b || c || d;\n      if (any) {\n        this._hasAction = {\n          lastReached: a,\n          firstReached: b,\n          lastVisibleChanged: c,\n          firstVisibleChanged: d\n        };\n        this._radar.sendAction = (action, index) => {\n          if (this._hasAction[action]) {\n            this._scheduleSendAction(action, index);\n          }\n        };\n      }\n\n      /* Public methods to Expose to parent\n        \n        Usage:\n         Template:\n         <VerticalCollection @registerAPI={{action \"registerAPI\"}} />\n         Component:\n        \n        export default Component.extend({\n          actions: {\n            registerAPI(api) {\n                this.set('collectionAPI', api);\n            }\n          },\n          scrollToItem() {\n            let collectionAPI = this.collectionAPI;\n            collectionAPI.scrollToItem(index);\n          }\n        });\n          \n        Need to pass this property in the vertical-collection template\n        Listen in the component actions and do your custom logic\n         This API will have below methods.\n          1. scrollToItem\n      */\n\n      let registerAPI = (0, _object.get)(this, 'registerAPI');\n      if (registerAPI) {\n        /* List of methods to be exposed to public should be added here */\n        let publicAPI = {\n          scrollToItem: this.scrollToItem.bind(this)\n        };\n        registerAPI(publicAPI);\n      }\n      if (true /* DEBUG */) {\n        this.__visualization = null;\n        this._radar._debugDidUpdate = () => {\n          // Update visualization\n          //\n          // This debugging mode can be controlled via the argument\n          // `@debugVis={{true}}` at component invocation.\n          //\n          if (this.debugVis !== true) {\n            if (this.__visualization !== null) {\n              console.info('tearing down existing visualization'); // eslint-disable-line no-console\n              this.__visualization.destroy();\n              this.__visualization = null;\n            }\n            return;\n          }\n          if (this.__visualization === null) {\n            this.__visualization = new Visualization(this._radar);\n          }\n          this.__visualization.render();\n\n          // Detect issues with CSS\n          //\n          // This debugging mode can be controlled via the argument\n          // `@debugCSS={{true}}` at component invocation.\n          //\n          if (this.debugCSS !== true) {\n            return;\n          }\n          let radar = this._radar;\n          let styles;\n\n          // check telescope\n          if (radar.scrollContainer !== _private.ViewportContainer) {\n            styles = window.getComputedStyle(radar.scrollContainer);\n          } else {\n            styles = window.getComputedStyle(document.body);\n          }\n          (true && !(styleIsOneOf(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])) && (0, _debug.assert)(`scrollContainer cannot be inline.`, styleIsOneOf(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])));\n          (true && !(styleIsOneOf(styles, 'position', ['static', 'relative', 'absolute'])) && (0, _debug.assert)(`scrollContainer must define position`, styleIsOneOf(styles, 'position', ['static', 'relative', 'absolute'])));\n          (true && !(hasStyleWithNonZeroValue(styles, 'height') || hasStyleWithNonZeroValue(styles, 'max-height')) && (0, _debug.assert)(`scrollContainer must define height or max-height`, hasStyleWithNonZeroValue(styles, 'height') || hasStyleWithNonZeroValue(styles, 'max-height'))); // conditional perf check for non-body scrolling\n          if (radar.scrollContainer !== _private.ViewportContainer) {\n            (true && !(hasStyleValue(styles, 'overflow-y', 'scroll') || hasStyleValue(styles, 'overflow', 'scroll')) && (0, _debug.assert)(`scrollContainer must define overflow-y`, hasStyleValue(styles, 'overflow-y', 'scroll') || hasStyleValue(styles, 'overflow', 'scroll')));\n          }\n\n          // check itemContainer\n          styles = window.getComputedStyle(radar.itemContainer);\n          (true && !(styleIsOneOf(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])) && (0, _debug.assert)(`itemContainer cannot be inline.`, styleIsOneOf(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])));\n          (true && !(styleIsOneOf(styles, 'position', ['static', 'relative', 'absolute'])) && (0, _debug.assert)(`itemContainer must define position`, styleIsOneOf(styles, 'position', ['static', 'relative', 'absolute']))); // check item defaults\n          (true && !(this.items.length) && (0, _debug.assert)(`You must supply at least one item to the collection to debug it's CSS.`, this.items.length));\n          let element = radar._itemContainer.firstElementChild;\n          styles = window.getComputedStyle(element);\n          (true && !(styleIsOneOf(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])) && (0, _debug.assert)(`Item cannot be inline.`, styleIsOneOf(styles, 'display', ['block', 'inline-block', 'flex', 'inline-flex'])));\n          (true && !(styleIsOneOf(styles, 'position', ['static', 'relative', 'absolute'])) && (0, _debug.assert)(`Item must define position`, styleIsOneOf(styles, 'position', ['static', 'relative', 'absolute'])));\n        };\n      }\n    }\n  });\n  function calculateStartingIndex(items, idForFirstItem, key, renderFromLast) {\n    const totalItems = (0, _object.get)(items, 'length');\n    let startingIndex = 0;\n    if (idForFirstItem !== undefined && idForFirstItem !== null) {\n      for (let i = 0; i < totalItems; i++) {\n        if ((0, _private.keyForItem)((0, _private.objectAt)(items, i), key, i) === idForFirstItem) {\n          startingIndex = i;\n          break;\n        }\n      }\n    } else if (renderFromLast === true) {\n      // If no id was set and `renderFromLast` is true, start from the bottom\n      startingIndex = totalItems - 1;\n    }\n    return startingIndex;\n  }\n  var _default = _exports.default = VerticalCollection;\n});","define(\"@html-next/vertical-collection/components/vertical-collection/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.virtualComponents key=\"id\" as |virtualComponent| ~}}\n    {{~unbound virtualComponent.upperBound~}}\n    {{~#if virtualComponent.isOccludedContent ~}}\n      {{{unbound virtualComponent.element}}}\n    {{~else~}}\n      {{~yield virtualComponent.content virtualComponent.index ~}}\n    {{~/if~}}\n    {{~unbound virtualComponent.lowerBound~}}\n  {{~/each}}\n  \n  {{#if this.shouldYieldToInverse}}\n    {{yield to=\"inverse\"}}\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"JTfU4LBg\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"virtualComponents\\\"]]],null]],null],\\\"id\\\",[[[1,[28,[35,2],[[30,1,[\\\"upperBound\\\"]]],null]],[41,[30,1,[\\\"isOccludedContent\\\"]],[[[2,[28,[37,2],[[30,1,[\\\"element\\\"]]],null]]],[]],[[[18,2,[[30,1,[\\\"content\\\"]],[30,1,[\\\"index\\\"]]]]],[]]],[1,[28,[35,2],[[30,1,[\\\"lowerBound\\\"]]],null]]],[1]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"shouldYieldToInverse\\\"]],[[[1,\\\"  \\\"],[18,3,null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"virtualComponent\\\",\\\"&default\\\",\\\"&else\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"unbound\\\",\\\"if\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"@html-next/vertical-collection/components/vertical-collection/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-ajax/-private/promise\", [\"exports\", \"rsvp\"], function (_exports, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * AJAX Promise\n   *\n   * Sub-class of RSVP Promise that passes the XHR property on to the\n   * child promise\n   *\n   * @extends RSVP.Promise\n   * @private\n   */\n  class AJAXPromise extends _rsvp.Promise {\n    // NOTE: Only necessary due to broken definition of RSVP.Promise\n    // https://github.com/DefinitelyTyped/DefinitelyTyped/pull/26640\n    constructor(executor, label) {\n      // @ts-ignore\n      super(executor, label);\n    }\n    /**\n     * Overriding `.then` to add XHR to child promise\n     */\n    then(onFulfilled, onRejected, label) {\n      const child = super.then(onFulfilled, onRejected, label);\n      child.xhr = this.xhr;\n      return child;\n    }\n  }\n  _exports.default = AJAXPromise;\n});","define(\"ember-ajax/-private/types\", [], function () {\n  \"use strict\";\n});","define(\"ember-ajax/-private/utils/get-header\", [\"exports\", \"@ember/array\", \"@ember/utils\"], function (_exports, _array, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getHeader;\n  /**\n   * Do a case-insensitive lookup of an HTTP header\n   *\n   * @function getHeader\n   * @private\n   */\n  function getHeader(headers, name) {\n    if ((0, _utils.isNone)(headers) || (0, _utils.isNone)(name)) {\n      return undefined;\n    }\n    const matchedKey = (0, _array.A)(Object.keys(headers)).find(key => {\n      return key.toLowerCase() === name.toLowerCase();\n    });\n    return matchedKey ? headers[matchedKey] : undefined;\n  }\n});","define(\"ember-ajax/-private/utils/is-string\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isString;\n  function isString(object) {\n    return typeof object === 'string';\n  }\n});","define(\"ember-ajax/-private/utils/parse-response-headers\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.CRLF = void 0;\n  _exports.default = parseResponseHeaders;\n  const CRLF = _exports.CRLF = '\\u000d\\u000a';\n  function parseResponseHeaders(headersString) {\n    const headers = {};\n    if (!headersString) {\n      return headers;\n    }\n    return headersString.split(CRLF).reduce((hash, header) => {\n      let [field, ...value] = header.split(':');\n      field = field.trim();\n      const valueString = value.join(':').trim();\n      if (valueString) {\n        hash[field] = valueString;\n      }\n      return hash;\n    }, headers);\n  }\n});","define(\"ember-ajax/-private/utils/url-helpers\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.haveSameHost = haveSameHost;\n  _exports.isFullURL = isFullURL;\n  _exports.parseURL = parseURL;\n  /* eslint-env browser, node */\n  const completeUrlRegex = /^(http|https)/;\n  /**\n   * Parse a URL string into an object that defines its structure\n   *\n   * The returned object will have the following properties:\n   *\n   *   href: the full URL\n   *   protocol: the request protocol\n   *   hostname: the target for the request\n   *   port: the port for the request\n   *   pathname: any URL after the host\n   *   search: query parameters\n   *   hash: the URL hash\n   *\n   * @function parseURL\n   * @private\n   */\n  function parseURL(str) {\n    let fullObject;\n    if (typeof FastBoot === 'undefined') {\n      const element = document.createElement('a');\n      element.href = str;\n      fullObject = element;\n    } else {\n      fullObject = FastBoot.require('url').parse(str);\n    }\n    const desiredProps = {\n      href: fullObject.href,\n      protocol: fullObject.protocol,\n      hostname: fullObject.hostname,\n      port: fullObject.port,\n      pathname: fullObject.pathname,\n      search: fullObject.search,\n      hash: fullObject.hash\n    };\n    return desiredProps;\n  }\n  function isFullURL(url) {\n    return !!url.match(completeUrlRegex);\n  }\n  function haveSameHost(a, b) {\n    const urlA = parseURL(a);\n    const urlB = parseURL(b);\n    return urlA.protocol === urlB.protocol && urlA.hostname === urlB.hostname && urlA.port === urlB.port;\n  }\n});","define(\"ember-ajax/ajax-request\", [\"exports\", \"@ember/object\", \"ember-ajax/mixins/ajax-request\"], function (_exports, _object, _ajaxRequest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _object.default.extend(_ajaxRequest.default);\n});","define(\"ember-ajax/errors\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.UnauthorizedError = _exports.TimeoutError = _exports.ServerError = _exports.NotFoundError = _exports.InvalidError = _exports.GoneError = _exports.ForbiddenError = _exports.ConflictError = _exports.BadRequestError = _exports.AjaxError = _exports.AbortError = void 0;\n  _exports.isAbortError = isAbortError;\n  _exports.isAjaxError = isAjaxError;\n  _exports.isBadRequestError = isBadRequestError;\n  _exports.isConflictError = isConflictError;\n  _exports.isForbiddenError = isForbiddenError;\n  _exports.isGoneError = isGoneError;\n  _exports.isInvalidError = isInvalidError;\n  _exports.isNotFoundError = isNotFoundError;\n  _exports.isServerError = isServerError;\n  _exports.isSuccess = isSuccess;\n  _exports.isTimeoutError = isTimeoutError;\n  _exports.isUnauthorizedError = isUnauthorizedError;\n  class AjaxError extends Error {\n    constructor(payload, message = 'Ajax operation failed', status) {\n      super(message);\n      this.payload = payload;\n      this.status = status;\n    }\n  }\n  _exports.AjaxError = AjaxError;\n  class InvalidError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'Request was rejected because it was invalid', 422);\n    }\n  }\n  _exports.InvalidError = InvalidError;\n  class UnauthorizedError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'Ajax authorization failed', 401);\n    }\n  }\n  _exports.UnauthorizedError = UnauthorizedError;\n  class ForbiddenError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'Request was rejected because user is not permitted to perform this operation.', 403);\n    }\n  }\n  _exports.ForbiddenError = ForbiddenError;\n  class BadRequestError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'Request was formatted incorrectly.', 400);\n    }\n  }\n  _exports.BadRequestError = BadRequestError;\n  class NotFoundError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'Resource was not found.', 404);\n    }\n  }\n  _exports.NotFoundError = NotFoundError;\n  class GoneError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'Resource is no longer available.', 410);\n    }\n  }\n  _exports.GoneError = GoneError;\n  class TimeoutError extends AjaxError {\n    constructor() {\n      super(null, 'The ajax operation timed out', -1);\n    }\n  }\n  _exports.TimeoutError = TimeoutError;\n  class AbortError extends AjaxError {\n    constructor() {\n      super(null, 'The ajax operation was aborted', 0);\n    }\n  }\n  _exports.AbortError = AbortError;\n  class ConflictError extends AjaxError {\n    constructor(payload) {\n      super(payload, 'The ajax operation failed due to a conflict', 409);\n    }\n  }\n  _exports.ConflictError = ConflictError;\n  class ServerError extends AjaxError {\n    constructor(payload, status) {\n      super(payload, 'Request was rejected due to server error', status);\n    }\n  }\n  /**\n   * Checks if the given error is or inherits from AjaxError\n   */\n  _exports.ServerError = ServerError;\n  function isAjaxError(error) {\n    return error instanceof AjaxError;\n  }\n  /**\n   * Checks if the given status code or AjaxError object represents an\n   * unauthorized request error\n   */\n  function isUnauthorizedError(error) {\n    if (isAjaxError(error)) {\n      return error instanceof UnauthorizedError;\n    } else {\n      return error === 401;\n    }\n  }\n  /**\n   * Checks if the given status code or AjaxError object represents a forbidden\n   * request error\n   */\n  function isForbiddenError(error) {\n    if (isAjaxError(error)) {\n      return error instanceof ForbiddenError;\n    } else {\n      return error === 403;\n    }\n  }\n  /**\n   * Checks if the given status code or AjaxError object represents an invalid\n   * request error\n   */\n  function isInvalidError(error) {\n    if (isAjaxError(error)) {\n      return error instanceof InvalidError;\n    } else {\n      return error === 422;\n    }\n  }\n  /**\n   * Checks if the given status code or AjaxError object represents a bad request\n   * error\n   */\n  function isBadRequestError(error) {\n    if (isAjaxError(error)) {\n      return error instanceof BadRequestError;\n    } else {\n      return error === 400;\n    }\n  }\n  /**\n   * Checks if the given status code or AjaxError object represents a \"not found\"\n   * error\n   */\n  function isNotFoundError(error) {\n    if (isAjaxError(error)) {\n      return error instanceof NotFoundError;\n    } else {\n      return error === 404;\n    }\n  }\n  /**\n   * Checks if the given status code or AjaxError object represents a \"gone\"\n   * error\n   */\n  function isGoneError(error) {\n    if (isAjaxError(error)) {\n      return error instanceof GoneError;\n    } else {\n      return error === 410;\n    }\n  }\n  /**\n   * Checks if the given object represents a \"timeout\" error\n   */\n  function isTimeoutError(error) {\n    return error instanceof TimeoutError;\n  }\n  /**\n   * Checks if the given status code or AjaxError object represents an\n   * \"abort\" error\n   */\n  function isAbortError(error) {\n    if (isAjaxError(error)) {\n      return error instanceof AbortError;\n    } else {\n      return error === 0;\n    }\n  }\n  /**\n   * Checks if the given status code or AjaxError object represents a\n   * conflict error\n   */\n  function isConflictError(error) {\n    if (isAjaxError(error)) {\n      return error instanceof ConflictError;\n    } else {\n      return error === 409;\n    }\n  }\n  /**\n   * Checks if the given status code or AjaxError object represents a server error\n   */\n  function isServerError(error) {\n    if (isAjaxError(error)) {\n      return error instanceof ServerError;\n    } else {\n      return error >= 500 && error < 600;\n    }\n  }\n  /**\n   * Checks if the given status code represents a successful request\n   */\n  function isSuccess(status) {\n    let s = status;\n    if (typeof status === 'string') {\n      s = parseInt(status, 10);\n    }\n    return s >= 200 && s < 300 || s === 304;\n  }\n});","define(\"ember-ajax/index\", [\"exports\", \"ember-ajax/request\"], function (_exports, _request) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _request.default;\n    }\n  });\n});","define(\"ember-ajax/mixins/ajax-request\", [\"exports\", \"@ember/array\", \"@ember/error\", \"@ember/object/mixin\", \"@ember/object\", \"@ember/utils\", \"@ember/runloop\", \"@ember/debug\", \"ember\", \"ember-ajax/errors\", \"ember-ajax/utils/ajax\", \"ember-ajax/-private/utils/parse-response-headers\", \"ember-ajax/-private/utils/get-header\", \"ember-ajax/-private/utils/url-helpers\", \"ember-ajax/-private/utils/is-string\", \"ember-ajax/-private/promise\"], function (_exports, _array, _error, _mixin, _object, _utils, _runloop, _debug, _ember, _errors, _ajax, _parseResponseHeaders, _getHeader, _urlHelpers, _isString, _promise) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Test\n  } = _ember.default;\n  const JSONContentType = /^application\\/(?:vnd\\.api\\+)?json/i;\n  function isJSONContentType(header) {\n    if (!(0, _isString.default)(header)) {\n      return false;\n    }\n    return !!header.match(JSONContentType);\n  }\n  function isJSONStringifyable(method, {\n    contentType,\n    data,\n    headers\n  }) {\n    if (method === 'GET') {\n      return false;\n    }\n    if (!isJSONContentType(contentType) && !isJSONContentType((0, _getHeader.default)(headers, 'Content-Type'))) {\n      return false;\n    }\n    if (typeof data !== 'object') {\n      return false;\n    }\n    return true;\n  }\n  function startsWithSlash(string) {\n    return string.charAt(0) === '/';\n  }\n  function endsWithSlash(string) {\n    return string.charAt(string.length - 1) === '/';\n  }\n  function removeLeadingSlash(string) {\n    return string.substring(1);\n  }\n  function removeTrailingSlash(string) {\n    return string.slice(0, -1);\n  }\n  function stripSlashes(path) {\n    // make sure path starts with `/`\n    if (startsWithSlash(path)) {\n      path = removeLeadingSlash(path);\n    }\n    // remove end `/`\n    if (endsWithSlash(path)) {\n      path = removeTrailingSlash(path);\n    }\n    return path;\n  }\n  let pendingRequestCount = 0;\n  if (_ember.default.testing) {\n    Test.registerWaiter(function () {\n      return pendingRequestCount === 0;\n    });\n  }\n  /**\n   * AjaxRequest Mixin\n   */\n  var _default = _exports.default = _mixin.default.create({\n    /**\n     * The default value for the request `contentType`\n     *\n     * For now, defaults to the same value that jQuery would assign.  In the\n     * future, the default value will be for JSON requests.\n     * @property {string} contentType\n     * @public\n     */\n    contentType: 'application/x-www-form-urlencoded; charset=UTF-8',\n    /**\n     * Headers to include on the request\n     *\n     * Some APIs require HTTP headers, e.g. to provide an API key. Arbitrary\n     * headers can be set as key/value pairs on the `RESTAdapter`'s `headers`\n     * object and Ember Data will send them along with each ajax request.\n     *\n     * ```javascript\n     * // app/services/ajax.js\n     * import AjaxService from 'ember-ajax/services/ajax';\n     *\n     * export default AjaxService.extend({\n     *   headers: {\n     *     'API_KEY': 'secret key',\n     *     'ANOTHER_HEADER': 'Some header value'\n     *   }\n     * });\n     * ```\n     *\n     * `headers` can also be used as a computed property to support dynamic\n     * headers.\n     *\n     * ```javascript\n     * // app/services/ajax.js\n     * import Ember from 'ember';\n     * import AjaxService from 'ember-ajax/services/ajax';\n     *\n     * const {\n     *   computed,\n     *   get,\n     *   inject: { service }\n     * } = Ember;\n     *\n     * export default AjaxService.extend({\n     *   session: service(),\n     *   headers: computed('session.authToken', function() {\n     *     return {\n     *       'API_KEY': get(this, 'session.authToken'),\n     *       'ANOTHER_HEADER': 'Some header value'\n     *     };\n     *   })\n     * });\n     * ```\n     *\n     * In some cases, your dynamic headers may require data from some object\n     * outside of Ember's observer system (for example `document.cookie`). You\n     * can use the `volatile` function to set the property into a non-cached mode\n     * causing the headers to be recomputed with every request.\n     *\n     * ```javascript\n     * // app/services/ajax.js\n     * import Ember from 'ember';\n     * import AjaxService from 'ember-ajax/services/ajax';\n     *\n     * const {\n     *   computed,\n     *   get,\n     *   inject: { service }\n     * } = Ember;\n     *\n     * export default AjaxService.extend({\n     *   session: service(),\n     *   headers: computed('session.authToken', function() {\n     *     return {\n     *       'API_KEY': get(document.cookie.match(/apiKey\\=([^;]*)/), '1'),\n     *       'ANOTHER_HEADER': 'Some header value'\n     *     };\n     *   }).volatile()\n     * });\n     * ```\n     *\n     * @property {Headers} headers\n     * @public\n     */\n    headers: undefined,\n    /**\n     * @property {string} host\n     * @public\n     */\n    host: undefined,\n    /**\n     * @property {string} namespace\n     * @public\n     */\n    namespace: undefined,\n    /**\n     * @property {Matcher[]} trustedHosts\n     * @public\n     */\n    trustedHosts: undefined,\n    /**\n     * Make an AJAX request, ignoring the raw XHR object and dealing only with\n     * the response\n     */\n    request(url, options) {\n      const hash = this.options(url, options);\n      const internalPromise = this._makeRequest(hash);\n      const ajaxPromise = new _promise.default((resolve, reject) => {\n        internalPromise.then(({\n          response\n        }) => {\n          resolve(response);\n        }).catch(({\n          response\n        }) => {\n          reject(response);\n        });\n      }, `ember-ajax: ${hash.type} ${hash.url} response`);\n      ajaxPromise.xhr = internalPromise.xhr;\n      return ajaxPromise;\n    },\n    /**\n     * Make an AJAX request, returning the raw XHR object along with the response\n     */\n    raw(url, options) {\n      const hash = this.options(url, options);\n      return this._makeRequest(hash);\n    },\n    /**\n     * Shared method to actually make an AJAX request\n     */\n    _makeRequest(hash) {\n      const method = hash.method || hash.type || 'GET';\n      const requestData = {\n        method,\n        type: method,\n        url: hash.url\n      };\n      if (isJSONStringifyable(method, hash)) {\n        hash.data = JSON.stringify(hash.data);\n      }\n      pendingRequestCount = pendingRequestCount + 1;\n      const jqXHR = (0, _ajax.default)(hash.url, hash);\n      const promise = new _promise.default((resolve, reject) => {\n        jqXHR.done((payload, textStatus, jqXHR) => {\n          const response = this.handleResponse(jqXHR.status, (0, _parseResponseHeaders.default)(jqXHR.getAllResponseHeaders()), payload, requestData);\n          if ((0, _errors.isAjaxError)(response)) {\n            const rejectionParam = {\n              payload,\n              textStatus,\n              jqXHR,\n              response\n            };\n            (0, _runloop.join)(null, reject, rejectionParam);\n          } else {\n            const resolutionParam = {\n              payload,\n              textStatus,\n              jqXHR,\n              response\n            };\n            (0, _runloop.join)(null, resolve, resolutionParam);\n          }\n        }).fail((jqXHR, textStatus, errorThrown) => {\n          (0, _debug.runInDebug)(function () {\n            const message = `The server returned an empty string for ${requestData.type} ${requestData.url}, which cannot be parsed into a valid JSON. Return either null or {}.`;\n            const validJSONString = !(textStatus === 'parsererror' && jqXHR.responseText === '');\n            (true && (0, _debug.warn)(message, validJSONString, {\n              id: 'ds.adapter.returned-empty-string-as-JSON'\n            }));\n          });\n          const payload = this.parseErrorResponse(jqXHR.responseText) || errorThrown;\n          let response;\n          if (textStatus === 'timeout') {\n            response = new _errors.TimeoutError();\n          } else if (textStatus === 'abort') {\n            response = new _errors.AbortError();\n          } else {\n            response = this.handleResponse(jqXHR.status, (0, _parseResponseHeaders.default)(jqXHR.getAllResponseHeaders()), payload, requestData);\n          }\n          const rejectionParam = {\n            payload,\n            textStatus,\n            jqXHR,\n            errorThrown,\n            response\n          };\n          (0, _runloop.join)(null, reject, rejectionParam);\n        }).always(() => {\n          pendingRequestCount = pendingRequestCount - 1;\n        });\n      }, `ember-ajax: ${hash.type} ${hash.url}`);\n      promise.xhr = jqXHR;\n      return promise;\n    },\n    /**\n     * calls `request()` but forces `options.type` to `POST`\n     */\n    post(url, options) {\n      return this.request(url, this._addTypeToOptionsFor(options, 'POST'));\n    },\n    /**\n     * calls `request()` but forces `options.type` to `PUT`\n     */\n    put(url, options) {\n      return this.request(url, this._addTypeToOptionsFor(options, 'PUT'));\n    },\n    /**\n     * calls `request()` but forces `options.type` to `PATCH`\n     */\n    patch(url, options) {\n      return this.request(url, this._addTypeToOptionsFor(options, 'PATCH'));\n    },\n    /**\n     * calls `request()` but forces `options.type` to `DELETE`\n     */\n    del(url, options) {\n      return this.request(url, this._addTypeToOptionsFor(options, 'DELETE'));\n    },\n    /**\n     * calls `request()` but forces `options.type` to `DELETE`\n     *\n     * Alias for `del()`\n     */\n    delete(url, options) {\n      return this.del(url, options);\n    },\n    /**\n     * Wrap the `.get` method so that we issue a warning if\n     *\n     * Since `.get` is both an AJAX pattern _and_ an Ember pattern, we want to try\n     * to warn users when they try using `.get` to make a request\n     */\n    get(url) {\n      if (arguments.length > 1 || url.indexOf('/') !== -1) {\n        throw new _error.default('It seems you tried to use `.get` to make a request! Use the `.request` method instead.');\n      }\n      return this._super(...arguments);\n    },\n    /**\n     * Manipulates the options hash to include the HTTP method on the type key\n     */\n    _addTypeToOptionsFor(options, method) {\n      options = options || {};\n      options.type = method;\n      return options;\n    },\n    /**\n     * Get the full \"headers\" hash, combining the service-defined headers with\n     * the ones provided for the request\n     */\n    _getFullHeadersHash(headers) {\n      const classHeaders = (0, _object.get)(this, 'headers');\n      return Object.assign({}, classHeaders, headers);\n    },\n    /**\n     * Created a normalized set of options from the per-request and\n     * service-level settings\n     */\n    options(url, options = {}) {\n      options = Object.assign({}, options);\n      options.url = this._buildURL(url, options);\n      options.type = options.type || 'GET';\n      options.dataType = options.dataType || 'json';\n      options.contentType = (0, _utils.isEmpty)(options.contentType) ? (0, _object.get)(this, 'contentType') : options.contentType;\n      if (this._shouldSendHeaders(options)) {\n        options.headers = this._getFullHeadersHash(options.headers);\n      } else {\n        options.headers = options.headers || {};\n      }\n      return options;\n    },\n    /**\n     * Build a URL for a request\n     *\n     * If the provided `url` is deemed to be a complete URL, it will be returned\n     * directly.  If it is not complete, then the segment provided will be combined\n     * with the `host` and `namespace` options of the request class to create the\n     * full URL.\n     */\n    _buildURL(url, options = {}) {\n      if ((0, _urlHelpers.isFullURL)(url)) {\n        return url;\n      }\n      const urlParts = [];\n      let host = options.host || (0, _object.get)(this, 'host');\n      if (host) {\n        host = endsWithSlash(host) ? removeTrailingSlash(host) : host;\n        urlParts.push(host);\n      }\n      let namespace = options.namespace || (0, _object.get)(this, 'namespace');\n      if (namespace) {\n        // If host is given then we need to strip leading slash too( as it will be added through join)\n        if (host) {\n          namespace = stripSlashes(namespace);\n        } else if (endsWithSlash(namespace)) {\n          namespace = removeTrailingSlash(namespace);\n        }\n        // If the URL has already been constructed (presumably, by Ember Data), then we should just leave it alone\n        const hasNamespaceRegex = new RegExp(`^(/)?${stripSlashes(namespace)}/`);\n        if (!hasNamespaceRegex.test(url)) {\n          urlParts.push(namespace);\n        }\n      }\n      // *Only* remove a leading slash when there is host or namespace -- we need to maintain a trailing slash for\n      // APIs that differentiate between it being and not being present\n      if (startsWithSlash(url) && urlParts.length !== 0) {\n        url = removeLeadingSlash(url);\n      }\n      urlParts.push(url);\n      return urlParts.join('/');\n    },\n    /**\n     * Takes an ajax response, and returns the json payload or an error.\n     *\n     * By default this hook just returns the json payload passed to it.\n     * You might want to override it in two cases:\n     *\n     * 1. Your API might return useful results in the response headers.\n     *    Response headers are passed in as the second argument.\n     *\n     * 2. Your API might return errors as successful responses with status code\n     *    200 and an Errors text or object.\n     */\n    handleResponse(status, headers, payload, requestData) {\n      if (this.isSuccess(status, headers, payload)) {\n        return payload;\n      }\n      // Allow overriding of error payload\n      payload = this.normalizeErrorResponse(status, headers, payload);\n      return this._createCorrectError(status, headers, payload, requestData);\n    },\n    _createCorrectError(status, headers, payload, requestData) {\n      let error;\n      if (this.isUnauthorizedError(status, headers, payload)) {\n        error = new _errors.UnauthorizedError(payload);\n      } else if (this.isForbiddenError(status, headers, payload)) {\n        error = new _errors.ForbiddenError(payload);\n      } else if (this.isInvalidError(status, headers, payload)) {\n        error = new _errors.InvalidError(payload);\n      } else if (this.isBadRequestError(status, headers, payload)) {\n        error = new _errors.BadRequestError(payload);\n      } else if (this.isNotFoundError(status, headers, payload)) {\n        error = new _errors.NotFoundError(payload);\n      } else if (this.isGoneError(status, headers, payload)) {\n        error = new _errors.GoneError(payload);\n      } else if (this.isAbortError(status, headers, payload)) {\n        error = new _errors.AbortError();\n      } else if (this.isConflictError(status, headers, payload)) {\n        error = new _errors.ConflictError(payload);\n      } else if (this.isServerError(status, headers, payload)) {\n        error = new _errors.ServerError(payload, status);\n      } else {\n        const detailedMessage = this.generateDetailedMessage(status, headers, payload, requestData);\n        error = new _errors.AjaxError(payload, detailedMessage, status);\n      }\n      return error;\n    },\n    /**\n     * Match the host to a provided array of strings or regexes that can match to a host\n     */\n    _matchHosts(host, matcher) {\n      if (!(0, _isString.default)(host)) {\n        return false;\n      }\n      if (matcher instanceof RegExp) {\n        return matcher.test(host);\n      } else if (typeof matcher === 'string') {\n        return matcher === host;\n      } else {\n        console.warn('trustedHosts only handles strings or regexes. ', matcher, ' is neither.');\n        return false;\n      }\n    },\n    /**\n     * Determine whether the headers should be added for this request\n     *\n     * This hook is used to help prevent sending headers to every host, regardless\n     * of the destination, since this could be a security issue if authentication\n     * tokens are accidentally leaked to third parties.\n     *\n     * To avoid that problem, subclasses should utilize the `headers` computed\n     * property to prevent authentication from being sent to third parties, or\n     * implement this hook for more fine-grain control over when headers are sent.\n     *\n     * By default, the headers are sent if the host of the request matches the\n     * `host` property designated on the class.\n     */\n    _shouldSendHeaders({\n      url,\n      host\n    }) {\n      url = url || '';\n      host = host || (0, _object.get)(this, 'host') || '';\n      const trustedHosts = (0, _object.get)(this, 'trustedHosts') || (0, _array.A)();\n      const {\n        hostname\n      } = (0, _urlHelpers.parseURL)(url);\n      // Add headers on relative URLs\n      if (!(0, _urlHelpers.isFullURL)(url)) {\n        return true;\n      } else if (trustedHosts.find(matcher => this._matchHosts(hostname, matcher))) {\n        return true;\n      }\n      // Add headers on matching host\n      return (0, _urlHelpers.haveSameHost)(url, host);\n    },\n    /**\n     * Generates a detailed (\"friendly\") error message, with plenty\n     * of information for debugging (good luck!)\n     */\n    generateDetailedMessage(status, headers, payload, requestData) {\n      let shortenedPayload;\n      const payloadContentType = (0, _getHeader.default)(headers, 'Content-Type') || 'Empty Content-Type';\n      if (payloadContentType.toLowerCase() === 'text/html' && payload.length > 250) {\n        shortenedPayload = '[Omitted Lengthy HTML]';\n      } else {\n        shortenedPayload = JSON.stringify(payload);\n      }\n      const requestDescription = `${requestData.type} ${requestData.url}`;\n      const payloadDescription = `Payload (${payloadContentType})`;\n      return [`Ember AJAX Request ${requestDescription} returned a ${status}`, payloadDescription, shortenedPayload].join('\\n');\n    },\n    /**\n     * Default `handleResponse` implementation uses this hook to decide if the\n     * response is a an authorized error.\n     */\n    isUnauthorizedError(status, _headers, _payload) {\n      return (0, _errors.isUnauthorizedError)(status);\n    },\n    /**\n     * Default `handleResponse` implementation uses this hook to decide if the\n     * response is a forbidden error.\n     */\n    isForbiddenError(status, _headers, _payload) {\n      return (0, _errors.isForbiddenError)(status);\n    },\n    /**\n     * Default `handleResponse` implementation uses this hook to decide if the\n     * response is a an invalid error.\n     */\n    isInvalidError(status, _headers, _payload) {\n      return (0, _errors.isInvalidError)(status);\n    },\n    /**\n     * Default `handleResponse` implementation uses this hook to decide if the\n     * response is a bad request error.\n     */\n    isBadRequestError(status, _headers, _payload) {\n      return (0, _errors.isBadRequestError)(status);\n    },\n    /**\n     * Default `handleResponse` implementation uses this hook to decide if the\n     * response is a \"not found\" error.\n     */\n    isNotFoundError(status, _headers, _payload) {\n      return (0, _errors.isNotFoundError)(status);\n    },\n    /**\n     * Default `handleResponse` implementation uses this hook to decide if the\n     * response is a \"gone\" error.\n     */\n    isGoneError(status, _headers, _payload) {\n      return (0, _errors.isGoneError)(status);\n    },\n    /**\n     * Default `handleResponse` implementation uses this hook to decide if the\n     * response is an \"abort\" error.\n     */\n    isAbortError(status, _headers, _payload) {\n      return (0, _errors.isAbortError)(status);\n    },\n    /**\n     * Default `handleResponse` implementation uses this hook to decide if the\n     * response is a \"conflict\" error.\n     */\n    isConflictError(status, _headers, _payload) {\n      return (0, _errors.isConflictError)(status);\n    },\n    /**\n     * Default `handleResponse` implementation uses this hook to decide if the\n     * response is a server error.\n     */\n    isServerError(status, _headers, _payload) {\n      return (0, _errors.isServerError)(status);\n    },\n    /**\n     * Default `handleResponse` implementation uses this hook to decide if the\n     * response is a success.\n     */\n    isSuccess(status, _headers, _payload) {\n      return (0, _errors.isSuccess)(status);\n    },\n    parseErrorResponse(responseText) {\n      try {\n        return JSON.parse(responseText);\n      } catch (e) {\n        return responseText;\n      }\n    },\n    normalizeErrorResponse(_status, _headers, payload) {\n      return payload;\n    }\n  });\n});","define(\"ember-ajax/mixins/ajax-support\", [\"exports\", \"@ember/object/mixin\", \"@ember/service\", \"@ember/object\", \"@ember/object/computed\"], function (_exports, _mixin, _service, _object, _computed) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _mixin.default.create({\n    /**\n     * The AJAX service to send requests through\n     *\n     * @property {AjaxService} ajaxService\n     * @public\n     */\n    ajaxService: (0, _service.inject)('ajax'),\n    /**\n     * @property {string} host\n     * @public\n     */\n    host: (0, _computed.alias)('ajaxService.host'),\n    /**\n     * @property {string} namespace\n     * @public\n     */\n    namespace: (0, _computed.alias)('ajaxService.namespace'),\n    /**\n     * @property {object} headers\n     * @public\n     */\n    headers: (0, _computed.alias)('ajaxService.headers'),\n    ajax(url, _method, _options) {\n      // @ts-ignore\n      const augmentedOptions = this.ajaxOptions(...arguments);\n      return (0, _object.get)(this, 'ajaxService').request(url, augmentedOptions);\n    }\n  });\n});","define(\"ember-ajax/mixins/legacy/normalize-error-response\", [\"exports\", \"@ember/object/mixin\", \"@ember/array\", \"@ember/utils\", \"ember-ajax/-private/utils/is-string\"], function (_exports, _mixin, _array, _utils, _isString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function isObject(object) {\n    return typeof object === 'object';\n  }\n  function isJsonApiErrorResponse(object) {\n    if (!isObject(object)) {\n      return false;\n    }\n    const payloadAsErrorResponse = object;\n    if (payloadAsErrorResponse.errors) {\n      return (0, _array.isArray)(payloadAsErrorResponse.errors);\n    }\n    return false;\n  }\n  function isJsonApiErrorObjectArray(object) {\n    return (0, _array.isArray)(object);\n  }\n  var _default = _exports.default = _mixin.default.create({\n    /**\n     * Normalize the error from the server into the same format\n     *\n     * The format we normalize to is based on the JSON API specification.  The\n     * return value should be an array of objects that match the format they\n     * describe. More details about the object format can be found\n     * [here](http://jsonapi.org/format/#error-objects)\n     *\n     * The basics of the format are as follows:\n     *\n     * ```javascript\n     * [\n     *   {\n     *     status: 'The status code for the error',\n     *     title: 'The human-readable title of the error'\n     *     detail: 'The human-readable details of the error'\n     *   }\n     * ]\n     * ```\n     *\n     * In cases where the server returns an array, then there should be one item\n     * in the array for each of the payload.  If your server returns a JSON API\n     * formatted payload already, it will just be returned directly.\n     *\n     * If your server returns something other than a JSON API format, it's\n     * suggested that you override this method to convert your own errors into the\n     * one described above.\n     */\n    normalizeErrorResponse(status, _headers, payload) {\n      payload = (0, _utils.isNone)(payload) ? {} : payload;\n      if (isJsonApiErrorResponse(payload)) {\n        return payload.errors.map(function (error) {\n          if (isObject(error)) {\n            const ret = Object.assign({}, error);\n            ret.status = `${error.status}`;\n            return ret;\n          } else {\n            return {\n              status: `${status}`,\n              title: error\n            };\n          }\n        });\n      } else if (isJsonApiErrorObjectArray(payload)) {\n        return payload.map(function (error) {\n          if (isObject(error)) {\n            return {\n              status: `${status}`,\n              title: error.title || 'The backend responded with an error',\n              detail: error\n            };\n          } else {\n            return {\n              status: `${status}`,\n              title: `${error}`\n            };\n          }\n        });\n      } else if ((0, _isString.default)(payload)) {\n        return [{\n          status: `${status}`,\n          title: payload\n        }];\n      } else {\n        return [{\n          status: `${status}`,\n          title: payload.title || 'The backend responded with an error',\n          detail: payload\n        }];\n      }\n    }\n  });\n});","define(\"ember-ajax/raw\", [\"exports\", \"ember-ajax/ajax-request\"], function (_exports, _ajaxRequest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = raw;\n  /**\n   * Same as `request` except it resolves an object with\n   *\n   *   {response, textStatus, jqXHR}\n   *\n   * Useful if you need access to the jqXHR object for headers, etc.\n   *\n   * @public\n   */\n  function raw(url, options) {\n    const ajax = _ajaxRequest.default.create();\n    return ajax.raw(url, options);\n  }\n});","define(\"ember-ajax/request\", [\"exports\", \"ember-ajax/ajax-request\"], function (_exports, _ajaxRequest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = request;\n  /**\n   * Helper function that allows you to use the default `ember-ajax` to make\n   * requests without using the service.\n   *\n   * @public\n   */\n  function request(url, options) {\n    const ajax = _ajaxRequest.default.create();\n    return ajax.request(url, options);\n  }\n});","define(\"ember-ajax/services/ajax\", [\"exports\", \"@ember/service\", \"ember-ajax/mixins/ajax-request\"], function (_exports, _service, _ajaxRequest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.AjaxServiceClass = void 0;\n  const AjaxService = _service.default.extend(_ajaxRequest.default);\n  var _default = _exports.default = AjaxService; // DO NOT DELETE: this is how TypeScript knows how to look up your services.\n  class AjaxServiceClass extends AjaxService {}\n  _exports.AjaxServiceClass = AjaxServiceClass;\n});","define(\"ember-ajax/utils/ajax\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const ajax = typeof FastBoot === 'undefined' ? _jquery.default.ajax : FastBoot.require('najax');\n  var _default = _exports.default = ajax;\n});","define(\"ember-assign-helper/helpers/assign\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.assign = assign;\n  _exports.default = void 0;\n  function assign(params) {\n    return Object.assign({}, ...params);\n  }\n  var _default = _exports.default = (0, _helper.helper)(assign);\n});","define(\"ember-basic-dropdown/components/basic-dropdown-content\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/runloop\", \"ember-basic-dropdown/utils/calculate-position\", \"ember-basic-dropdown/utils/scroll-helpers\", \"ember-basic-dropdown/utils/has-moved\", \"ember-modifier\", \"@ember/template-factory\", \"@embroider/macros/runtime\"], function (_exports, _component, _object, _component2, _tracking, _runloop, _calculatePosition, _scrollHelpers, _hasMoved, _emberModifier, _templateFactory, _runtime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"ember-basic-dropdown/utils/calculate-position\",0,\"ember-basic-dropdown/utils/scroll-helpers\",0,\"ember-basic-dropdown/utils/has-moved\",0,\"@embroider/macros\",0,\"ember-modifier\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-inline-styles }}\n  {{#if @dropdown.isOpen}}\n    <div class='ember-basic-dropdown-content-wormhole-origin'>\n      {{#maybe-in-element this.destinationElement @renderInPlace}}\n        {{#if @overlay}}\n          <div class='ember-basic-dropdown-overlay'></div>\n        {{/if}}\n  \n        {{#let (element (or @htmlTag \"div\")) as |OptionalTag|}}\n          <OptionalTag\n            id={{this.dropdownId}}\n            class='ember-basic-dropdown-content ember-basic-dropdown-content--{{@hPosition}}\n              ember-basic-dropdown-content--{{@vPosition}}\n              {{this.animationClass}}{{if\n                @renderInPlace\n                ' ember-basic-dropdown-content--in-place'\n              }}\n              {{@defaultClass}}'\n            dir={{@dir}}\n            ...attributes\n            {{style\n              @otherStyles\n              this.positionStyles\n            }}\n            {{this.respondToEvents}}\n            {{this.initiallyReposition}}\n            {{this.observeMutations}}\n            {{this.animateInAndOut}}\n            {{on 'focusin' (fn (or @onFocusIn this.noop) @dropdown)}}\n            {{on 'focusout' (fn (or @onFocusOut this.noop) @dropdown)}}\n            {{on 'mouseenter' (fn (or @onMouseEnter this.noop) @dropdown)}}\n            {{on 'mouseleave' (fn (or @onMouseLeave this.noop) @dropdown)}}\n            {{! V1 compatibility - See #498 }}\n          >\n            {{yield}}\n          </OptionalTag>\n        {{/let}}\n      {{/maybe-in-element}}\n    </div>\n  {{else}}\n    <div\n      id={{this.dropdownId}}\n      class='ember-basic-dropdown-content-placeholder'\n      {{style (hash display='none')}}\n    ></div>\n  {{/if}}\n  */\n  {\n    \"id\": \"GIkz0XRv\",\n    \"block\": \"[[[41,[30,1,[\\\"isOpen\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"ember-basic-dropdown-content-wormhole-origin\\\"],[12],[1,\\\"\\\\n\\\"],[8,[39,1],null,[[\\\"@destinationElement\\\",\\\"@renderInPlace\\\"],[[30,0,[\\\"destinationElement\\\"]],[30,2]]],[[\\\"default\\\"],[[[[41,[30,3],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"ember-basic-dropdown-overlay\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[44,[[28,[37,3],[[28,[37,4],[[30,4],\\\"div\\\"],null]],null]],[[[1,\\\"        \\\"],[8,[30,5],[[16,1,[30,0,[\\\"dropdownId\\\"]]],[16,0,[29,[\\\"ember-basic-dropdown-content ember-basic-dropdown-content--\\\",[30,6],\\\"\\\\n            ember-basic-dropdown-content--\\\",[30,7],\\\"\\\\n            \\\",[30,0,[\\\"animationClass\\\"]],[52,[30,2],\\\" ember-basic-dropdown-content--in-place\\\"],\\\"\\\\n            \\\",[30,8]]]],[16,\\\"dir\\\",[30,9]],[17,10],[4,[38,5],[[30,11],[30,0,[\\\"positionStyles\\\"]]],null],[4,[30,0,[\\\"respondToEvents\\\"]],null,null],[4,[30,0,[\\\"initiallyReposition\\\"]],null,null],[4,[30,0,[\\\"observeMutations\\\"]],null,null],[4,[30,0,[\\\"animateInAndOut\\\"]],null,null],[4,[38,6],[\\\"focusin\\\",[28,[37,7],[[28,[37,4],[[30,12],[30,0,[\\\"noop\\\"]]],null],[30,1]],null]],null],[4,[38,6],[\\\"focusout\\\",[28,[37,7],[[28,[37,4],[[30,13],[30,0,[\\\"noop\\\"]]],null],[30,1]],null]],null],[4,[38,6],[\\\"mouseenter\\\",[28,[37,7],[[28,[37,4],[[30,14],[30,0,[\\\"noop\\\"]]],null],[30,1]],null]],null],[4,[38,6],[\\\"mouseleave\\\",[28,[37,7],[[28,[37,4],[[30,15],[30,0,[\\\"noop\\\"]]],null],[30,1]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[18,16,null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[5]]]],[]]]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,0],[16,1,[30,0,[\\\"dropdownId\\\"]]],[24,0,\\\"ember-basic-dropdown-content-placeholder\\\"],[4,[38,5],[[28,[37,9],null,[[\\\"display\\\"],[\\\"none\\\"]]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@dropdown\\\",\\\"@renderInPlace\\\",\\\"@overlay\\\",\\\"@htmlTag\\\",\\\"OptionalTag\\\",\\\"@hPosition\\\",\\\"@vPosition\\\",\\\"@defaultClass\\\",\\\"@dir\\\",\\\"&attrs\\\",\\\"@otherStyles\\\",\\\"@onFocusIn\\\",\\\"@onFocusOut\\\",\\\"@onMouseEnter\\\",\\\"@onMouseLeave\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"maybe-in-element\\\",\\\"let\\\",\\\"element\\\",\\\"or\\\",\\\"style\\\",\\\"on\\\",\\\"fn\\\",\\\"yield\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"ember-basic-dropdown/components/basic-dropdown-content.hbs\",\n    \"isStrictMode\": false\n  });\n  let BasicDropdownContent = _exports.default = (_class = class BasicDropdownContent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"transitioningInClass\", this.args.transitioningInClass || 'ember-basic-dropdown--transitioning-in');\n      _defineProperty(this, \"transitionedInClass\", this.args.transitionedInClass || 'ember-basic-dropdown--transitioned-in');\n      _defineProperty(this, \"transitioningOutClass\", this.args.transitioningOutClass || 'ember-basic-dropdown--transitioning-out');\n      _defineProperty(this, \"isTouchDevice\", this.args.isTouchDevice || Boolean(!!window && 'ontouchstart' in window));\n      _defineProperty(this, \"dropdownId\", `ember-basic-dropdown-content-${this.args.dropdown.uniqueId}`);\n      _defineProperty(this, \"touchMoveEvent\", void 0);\n      _defineProperty(this, \"handleRootMouseDown\", void 0);\n      _defineProperty(this, \"scrollableAncestors\", []);\n      _defineProperty(this, \"mutationObserver\", void 0);\n      _initializerDefineProperty(this, \"animationClass\", _descriptor, this);\n      _defineProperty(this, \"respondToEvents\", (0, _emberModifier.modifier)(dropdownElement => {\n        let triggerElement = document.querySelector(`[data-ebd-id=${this.args.dropdown.uniqueId}-trigger]`);\n        this.handleRootMouseDown = e => {\n          if (e.target === null) return;\n          let target = e.target;\n          if ((0, _hasMoved.default)(e, this.touchMoveEvent) || dropdownElement.contains(target) || triggerElement && triggerElement.contains(target)) {\n            this.touchMoveEvent = undefined;\n            return;\n          }\n          if (dropdownIsValidParent(target, this.dropdownId)) {\n            this.touchMoveEvent = undefined;\n            return;\n          }\n          this.args.dropdown.actions.close(e, true);\n        };\n        document.addEventListener(this.args.rootEventType, this.handleRootMouseDown, true);\n        window.addEventListener('resize', this.runloopAwareReposition);\n        window.addEventListener('orientationchange', this.runloopAwareReposition);\n        if (this.isTouchDevice) {\n          document.addEventListener('touchstart', this.touchStartHandler, true);\n          document.addEventListener('touchend', this.handleRootMouseDown, true);\n        }\n        if (triggerElement !== null) {\n          this.scrollableAncestors = getScrollableAncestors(triggerElement);\n        }\n        this.addScrollHandling(dropdownElement);\n        return () => {\n          this.removeGlobalEvents();\n          this.removeScrollHandling();\n          this.scrollableAncestors = [];\n          document.removeEventListener(this.args.rootEventType, this.handleRootMouseDown, true);\n          if (this.isTouchDevice) {\n            document.removeEventListener('touchstart', this.touchStartHandler, true);\n            document.removeEventListener('touchend', this.handleRootMouseDown, true);\n          }\n        };\n        // @ts-ignore\n      }, {\n        eager: false\n      }));\n      _defineProperty(this, \"initiallyReposition\", (0, _emberModifier.modifier)(() => {\n        // Escape autotracking frame and avoid backtracking re-render\n        Promise.resolve().then(() => {\n          this.args.dropdown.actions.reposition();\n        });\n        // @ts-ignore\n      }, {\n        eager: false\n      }));\n      _defineProperty(this, \"animateInAndOut\", (0, _emberModifier.modifier)(dropdownElement => {\n        if (!this.animationEnabled) return () => {};\n        waitForAnimations(dropdownElement, () => {\n          this.animationClass = this.transitionedInClass;\n        });\n        return () => {\n          if (!this.animationEnabled) return;\n          let parentElement = dropdownElement.parentElement ?? this.destinationElement;\n          if (parentElement === null) return;\n          if (this.args.renderInPlace) {\n            parentElement = parentElement.parentElement;\n          }\n          if (parentElement === null) return;\n          let clone = dropdownElement.cloneNode(true);\n          clone.id = `${clone.id}--clone`;\n          clone.classList.remove(...this.transitioningInClass.split(' '));\n          clone.classList.add(...this.transitioningOutClass.split(' '));\n          parentElement.appendChild(clone);\n          this.animationClass = this.transitioningInClass;\n          waitForAnimations(clone, function () {\n            parentElement.removeChild(clone);\n          });\n        };\n        // @ts-ignore\n      }, {\n        eager: false\n      }));\n      _defineProperty(this, \"observeMutations\", (0, _emberModifier.modifier)(dropdownElement => {\n        this.mutationObserver = new MutationObserver(mutations => {\n          let shouldReposition = mutations.some(record => containsRelevantMutation(record.addedNodes) || containsRelevantMutation(record.removedNodes));\n          if (shouldReposition && this.args.shouldReposition) {\n            shouldReposition = this.args.shouldReposition(mutations, this.args.dropdown);\n          }\n          if (shouldReposition) {\n            this.runloopAwareReposition();\n          }\n        });\n        this.mutationObserver.observe(dropdownElement, {\n          childList: true,\n          subtree: true\n        });\n        return () => {\n          if (this.mutationObserver !== undefined) {\n            this.mutationObserver.disconnect();\n            this.mutationObserver = undefined;\n          }\n        };\n        // @ts-ignore\n      }, {\n        eager: false\n      }));\n    }\n    get destinationElement() {\n      return document.getElementById(this.args.destination);\n    }\n    get animationEnabled() {\n      const {\n        animationEnabled: animationEnabledArg = true\n      } = this.args;\n      return animationEnabledArg && !(0, _runtime.isTesting)();\n    }\n    get positionStyles() {\n      const style = {};\n      if (this.args.top !== undefined) {\n        style.top = this.args.top;\n      }\n      if (this.args.left !== undefined) {\n        style.left = this.args.left;\n      }\n      if (this.args.right !== undefined) {\n        style.right = this.args.right;\n      }\n      if (this.args.width !== undefined) {\n        style.width = this.args.width;\n      }\n      if (this.args.height !== undefined) {\n        style.height = this.args.height;\n      }\n      return style;\n    }\n\n    /**\n     * Allows similair behaviour to `ember-composable-helpers`' `optional` helper.\n     * Avoids adding extra dependencies.\n     * Can be removed when the template `V1` compatability event handlers are removed.\n     *\n     * @see https://github.com/cibernox/ember-basic-dropdown/issues/498\n     * @memberof BasicDropdownContent\n     */\n    noop() {}\n    touchStartHandler() {\n      document.addEventListener('touchmove', this.touchMoveHandler, true);\n    }\n    touchMoveHandler(e) {\n      this.touchMoveEvent = e;\n      document.removeEventListener('touchmove', this.touchMoveHandler, true);\n    }\n    runloopAwareReposition() {\n      (0, _runloop.join)(this.args.dropdown.actions.reposition);\n    }\n    removeGlobalEvents() {\n      window.removeEventListener('resize', this.runloopAwareReposition);\n      window.removeEventListener('orientationchange', this.runloopAwareReposition);\n    }\n\n    // Methods\n    addScrollHandling(dropdownElement) {\n      if (this.args.preventScroll === true) {\n        let wheelHandler = event => {\n          if (event.target === null) return;\n          let target = event.target;\n          if (dropdownElement.contains(target) || dropdownElement === event.target) {\n            // Discover the amount of scrollable canvas that is within the dropdown.\n            const availableScroll = (0, _scrollHelpers.getAvailableScroll)(target, dropdownElement);\n\n            // Calculate what the event's desired change to that scrollable canvas is.\n            let {\n              deltaX,\n              deltaY\n            } = (0, _scrollHelpers.getScrollDeltas)(event);\n\n            // If the consequence of the wheel action would result in scrolling beyond\n            // the scrollable canvas of the dropdown, call preventDefault() and clamp\n            // the value of the delta to the available scroll size.\n            if (deltaX < availableScroll.deltaXNegative) {\n              deltaX = availableScroll.deltaXNegative;\n              event.preventDefault();\n            } else if (deltaX > availableScroll.deltaXPositive) {\n              deltaX = availableScroll.deltaXPositive;\n              event.preventDefault();\n            } else if (deltaY < availableScroll.deltaYNegative) {\n              deltaY = availableScroll.deltaYNegative;\n              event.preventDefault();\n            } else if (deltaY > availableScroll.deltaYPositive) {\n              deltaY = availableScroll.deltaYPositive;\n              event.preventDefault();\n            }\n\n            // Add back in the default behavior for the two good states that the above\n            // `preventDefault()` code will break.\n            // - Two-axis scrolling on a one-axis scroll container\n            // - The last relevant wheel event if the scroll is overshooting\n\n            // Also, don't attempt to do this if both of `deltaX` or `deltaY` are 0.\n            if (event.defaultPrevented && (deltaX || deltaY)) {\n              (0, _scrollHelpers.distributeScroll)(deltaX, deltaY, target, dropdownElement);\n            }\n          } else {\n            // Scrolling outside of the dropdown is prohibited.\n            event.preventDefault();\n          }\n        };\n        document.addEventListener('wheel', wheelHandler, {\n          capture: true,\n          passive: false\n        });\n        this.removeScrollHandling = () => {\n          document.removeEventListener('wheel', wheelHandler, {\n            capture: true\n          });\n        };\n      } else {\n        this.addScrollEvents();\n        this.removeScrollHandling = this.removeScrollEvents;\n      }\n    }\n\n    // Assigned at runtime to ensure that changes to the `preventScroll` property\n    // don't result in not cleaning up after ourselves.\n    removeScrollHandling() {}\n\n    // These two functions wire up scroll handling if `preventScroll` is false.\n    // These trigger reposition of the dropdown.\n    addScrollEvents() {\n      window.addEventListener('scroll', this.runloopAwareReposition);\n      this.scrollableAncestors.forEach(el => {\n        el.addEventListener('scroll', this.runloopAwareReposition);\n      });\n    }\n    removeScrollEvents() {\n      window.removeEventListener('scroll', this.runloopAwareReposition);\n      this.scrollableAncestors.forEach(el => {\n        el.removeEventListener('scroll', this.runloopAwareReposition);\n      });\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"animationClass\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.transitioningInClass;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"touchStartHandler\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"touchStartHandler\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"touchMoveHandler\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"touchMoveHandler\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"runloopAwareReposition\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"runloopAwareReposition\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeGlobalEvents\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeGlobalEvents\"), _class.prototype)), _class);\n  function containsRelevantMutation(nodeList) {\n    for (let i = 0; i < nodeList.length; i++) {\n      const node = nodeList[i];\n      if (node.nodeName !== '#comment' && !(node.nodeName === '#text' && node.nodeValue === '')) {\n        return true;\n      }\n    }\n    return false;\n  }\n\n  // All ancestors with scroll (except the BODY, which is treated differently)\n  function getScrollableAncestors(triggerElement) {\n    let scrollableAncestors = [];\n    if (triggerElement) {\n      let parent = triggerElement.parentNode;\n      if (parent !== null) {\n        let nextScrollable = (0, _calculatePosition.getScrollParent)(parent);\n        while (nextScrollable && nextScrollable.tagName.toUpperCase() !== 'BODY' && nextScrollable.tagName.toUpperCase() !== 'HTML') {\n          scrollableAncestors.push(nextScrollable);\n          let nextParent = nextScrollable.parentNode;\n          if (nextParent === null) {\n            nextScrollable = undefined;\n          } else {\n            nextScrollable = (0, _calculatePosition.getScrollParent)(nextParent);\n          }\n        }\n      }\n    }\n    return scrollableAncestors;\n  }\n  function closestContent(el) {\n    while (el && (!el.classList || !el.classList.contains('ember-basic-dropdown-content'))) {\n      if (el.parentElement === null) return null;\n      el = el.parentElement;\n    }\n    return el;\n  }\n  function waitForAnimations(element, callback) {\n    window.requestAnimationFrame(function () {\n      let computedStyle = window.getComputedStyle(element);\n      if (computedStyle.animationName !== 'none' && computedStyle.animationPlayState === 'running') {\n        let eventCallback = function () {\n          element.removeEventListener('animationend', eventCallback);\n          callback();\n        };\n        element.addEventListener('animationend', eventCallback);\n      } else {\n        callback();\n      }\n    });\n  }\n\n  /**\n   * Evaluates if the given element is in a dropdown or any of its parent dropdowns.\n   *\n   * @param {HTMLElement} el\n   * @param {String} dropdownId\n   */\n  function dropdownIsValidParent(el, dropdownId) {\n    let closestDropdown = closestContent(el);\n    if (closestDropdown === null) {\n      return false;\n    } else {\n      let closestAttrs = closestDropdown.attributes;\n      let trigger = document.querySelector(`[aria-controls=${closestAttrs.id.value}]`);\n      if (trigger === null) return false;\n      let parentDropdown = closestContent(trigger);\n      if (parentDropdown === null) return false;\n      let parentAttrs = parentDropdown.attributes;\n      return parentDropdown && parentAttrs.id.value === dropdownId || dropdownIsValidParent(parentDropdown, dropdownId);\n    }\n  }\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BasicDropdownContent);\n});","define(\"ember-basic-dropdown/components/basic-dropdown-trigger\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#let (element (or @htmlTag 'div')) as |OptionalTag|}}\n    {{!-- template-lint-disable no-pointer-down-event-binding --}}\n    <OptionalTag\n      class='ember-basic-dropdown-trigger\n        {{if @renderInPlace \" ember-basic-dropdown-trigger--in-place\"}}\n        {{if @hPosition (concat \" ember-basic-dropdown-trigger--\" @hPosition)}}\n        {{if @vPosition (concat \" ember-basic-dropdown-trigger--\" @vPosition)}}\n        {{@defaultClass}}'\n      {{basic-dropdown-trigger\n        dropdown=@dropdown\n        eventType=@eventType\n        stopPropagation=@stopPropagation\n      }}\n      tabindex={{unless @dropdown.disabled '0'}}\n      ...attributes\n      {{on 'mousedown' (fn this.disableDocumentTextSelect true)}}\n      {{on 'mouseup' (fn this.disableDocumentTextSelect false)}}\n      {{! V1 compatibility - See #498 }}\n      {{on 'keydown' (fn (or @onKeyDown this.noop) @dropdown)}}\n      {{on 'mousedown' (fn (or @onMouseDown this.noop) @dropdown)}}\n      {{on 'touchend' (fn (or @onTouchEnd this.noop) @dropdown)}}\n      {{on 'click' (fn (or @onClick this.noop) @dropdown)}}\n      {{on 'mouseenter' (fn (or @onMouseEnter this.noop) @dropdown)}}\n      {{on 'mouseleave' (fn (or @onMouseLeave this.noop) @dropdown)}}\n      {{on 'focus' (fn (or @onFocus this.noop) @dropdown)}}\n      {{on 'blur' (fn (or @onBlur this.noop) @dropdown)}}\n      {{on 'focusin' (fn (or @onFocusIn this.noop) @dropdown)}}\n      {{on 'focusout' (fn (or @onFocusOut this.noop) @dropdown)}}\n    >\n      {{yield}}\n    </OptionalTag>\n  {{/let}}\n  */\n  {\n    \"id\": \"XrQmCgt8\",\n    \"block\": \"[[[44,[[28,[37,1],[[28,[37,2],[[30,1],\\\"div\\\"],null]],null]],[[[1,\\\"  \\\"],[8,[30,2],[[16,0,[29,[\\\"ember-basic-dropdown-trigger\\\\n      \\\",[52,[30,3],\\\" ember-basic-dropdown-trigger--in-place\\\"],\\\"\\\\n      \\\",[52,[30,4],[28,[37,4],[\\\" ember-basic-dropdown-trigger--\\\",[30,4]],null]],\\\"\\\\n      \\\",[52,[30,5],[28,[37,4],[\\\" ember-basic-dropdown-trigger--\\\",[30,5]],null]],\\\"\\\\n      \\\",[30,6]]]],[16,\\\"tabindex\\\",[52,[51,[30,7,[\\\"disabled\\\"]]],\\\"0\\\"]],[17,8],[4,[38,6],null,[[\\\"dropdown\\\",\\\"eventType\\\",\\\"stopPropagation\\\"],[[30,7],[30,9],[30,10]]]],[4,[38,7],[\\\"mousedown\\\",[28,[37,8],[[30,0,[\\\"disableDocumentTextSelect\\\"]],true],null]],null],[4,[38,7],[\\\"mouseup\\\",[28,[37,8],[[30,0,[\\\"disableDocumentTextSelect\\\"]],false],null]],null],[4,[38,7],[\\\"keydown\\\",[28,[37,8],[[28,[37,2],[[30,11],[30,0,[\\\"noop\\\"]]],null],[30,7]],null]],null],[4,[38,7],[\\\"mousedown\\\",[28,[37,8],[[28,[37,2],[[30,12],[30,0,[\\\"noop\\\"]]],null],[30,7]],null]],null],[4,[38,7],[\\\"touchend\\\",[28,[37,8],[[28,[37,2],[[30,13],[30,0,[\\\"noop\\\"]]],null],[30,7]],null]],null],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,2],[[30,14],[30,0,[\\\"noop\\\"]]],null],[30,7]],null]],null],[4,[38,7],[\\\"mouseenter\\\",[28,[37,8],[[28,[37,2],[[30,15],[30,0,[\\\"noop\\\"]]],null],[30,7]],null]],null],[4,[38,7],[\\\"mouseleave\\\",[28,[37,8],[[28,[37,2],[[30,16],[30,0,[\\\"noop\\\"]]],null],[30,7]],null]],null],[4,[38,7],[\\\"focus\\\",[28,[37,8],[[28,[37,2],[[30,17],[30,0,[\\\"noop\\\"]]],null],[30,7]],null]],null],[4,[38,7],[\\\"blur\\\",[28,[37,8],[[28,[37,2],[[30,18],[30,0,[\\\"noop\\\"]]],null],[30,7]],null]],null],[4,[38,7],[\\\"focusin\\\",[28,[37,8],[[28,[37,2],[[30,19],[30,0,[\\\"noop\\\"]]],null],[30,7]],null]],null],[4,[38,7],[\\\"focusout\\\",[28,[37,8],[[28,[37,2],[[30,20],[30,0,[\\\"noop\\\"]]],null],[30,7]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[18,21,null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]]]],[\\\"@htmlTag\\\",\\\"OptionalTag\\\",\\\"@renderInPlace\\\",\\\"@hPosition\\\",\\\"@vPosition\\\",\\\"@defaultClass\\\",\\\"@dropdown\\\",\\\"&attrs\\\",\\\"@eventType\\\",\\\"@stopPropagation\\\",\\\"@onKeyDown\\\",\\\"@onMouseDown\\\",\\\"@onTouchEnd\\\",\\\"@onClick\\\",\\\"@onMouseEnter\\\",\\\"@onMouseLeave\\\",\\\"@onFocus\\\",\\\"@onBlur\\\",\\\"@onFocusIn\\\",\\\"@onFocusOut\\\",\\\"&default\\\"],false,[\\\"let\\\",\\\"element\\\",\\\"or\\\",\\\"if\\\",\\\"concat\\\",\\\"unless\\\",\\\"basic-dropdown-trigger\\\",\\\"on\\\",\\\"fn\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-basic-dropdown/components/basic-dropdown-trigger.hbs\",\n    \"isStrictMode\": false\n  });\n  let BasicDropdownTrigger = _exports.default = (_class = class BasicDropdownTrigger extends _component2.default {\n    // Actions\n    /**\n     * Allows similair behaviour to `ember-composable-helpers`' `optional` helper.\n     * Avoids adding extra dependencies.\n     * Can be removed when the template `V1` compatability event handlers are removed.\n     *\n     * @see https://github.com/cibernox/ember-basic-dropdown/issues/498\n     * @memberof BasicDropdownContent\n     */\n    noop() {}\n    disableDocumentTextSelect(disable) {\n      if (disable) {\n        document.body.classList.add('ember-basic-dropdown-text-select-disabled');\n      } else {\n        document.body.classList.remove('ember-basic-dropdown-text-select-disabled');\n      }\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"disableDocumentTextSelect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"disableDocumentTextSelect\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BasicDropdownTrigger);\n});","define(\"ember-basic-dropdown/components/basic-dropdown\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/object/internals\", \"ember-basic-dropdown/utils/calculate-position\", \"@ember/runloop\", \"ember-get-config\", \"@ember/template-factory\", \"@embroider/macros/runtime\", \"@embroider/macros/es-compat2\"], function (_exports, _component, _component2, _tracking, _object, _internals, _calculatePosition, _runloop, _emberGetConfig, _templateFactory, _runtime, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/object/internals\",0,\"ember-basic-dropdown/utils/calculate-position\",0,\"@ember/runloop\",0,\"@embroider/macros\",0,\"ember-get-config\",0,\"@ember/component\",0,\"@ember/test-helpers\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#let\n    (hash\n      uniqueId=this.publicAPI.uniqueId\n      isOpen=this.publicAPI.isOpen\n      disabled=this.publicAPI.disabled\n      actions=this.publicAPI.actions\n      Trigger=(if\n        (eq @triggerComponent undefined)\n        (component\n          'basic-dropdown-trigger'\n          dropdown=(readonly this.publicAPI)\n          hPosition=(readonly this.hPosition)\n          renderInPlace=(readonly this.renderInPlace)\n          vPosition=(readonly this.vPosition)\n        )\n        (component\n          (ensure-safe-component @triggerComponent)\n          dropdown=(readonly this.publicAPI)\n          hPosition=(readonly this.hPosition)\n          renderInPlace=(readonly this.renderInPlace)\n          vPosition=(readonly this.vPosition)\n        )\n      )\n      Content=(if\n        (eq @contentComponent undefined)\n        (component\n          'basic-dropdown-content'\n          dropdown=(readonly this.publicAPI)\n          hPosition=(readonly this.hPosition)\n          renderInPlace=(readonly this.renderInPlace)\n          preventScroll=(readonly @preventScroll)\n          rootEventType=(or @rootEventType 'click')\n          vPosition=(readonly this.vPosition)\n          destination=(readonly this.destination)\n          top=(readonly this.top)\n          left=(readonly this.left)\n          right=(readonly this.right)\n          width=(readonly this.width)\n          height=(readonly this.height)\n          otherStyles=(readonly this.otherStyles)\n        )\n        (component\n          (ensure-safe-component @contentComponent)\n          dropdown=(readonly this.publicAPI)\n          hPosition=(readonly this.hPosition)\n          renderInPlace=(readonly this.renderInPlace)\n          preventScroll=(readonly @preventScroll)\n          rootEventType=(or @rootEventType 'click')\n          vPosition=(readonly this.vPosition)\n          destination=(readonly this.destination)\n          top=(readonly this.top)\n          left=(readonly this.left)\n          right=(readonly this.right)\n          width=(readonly this.width)\n          height=(readonly this.height)\n          otherStyles=(readonly this.otherStyles)\n        )\n      )\n    )\n  as |api|\n  }}\n    {{#if this.renderInPlace}}\n      <div class='ember-basic-dropdown' ...attributes>{{yield api}}</div>\n    {{else}}\n      {{yield api}}\n    {{/if}}\n  {{/let}}\n  */\n  {\n    \"id\": \"ebygRSqk\",\n    \"block\": \"[[[44,[[28,[37,1],null,[[\\\"uniqueId\\\",\\\"isOpen\\\",\\\"disabled\\\",\\\"actions\\\",\\\"Trigger\\\",\\\"Content\\\"],[[30,0,[\\\"publicAPI\\\",\\\"uniqueId\\\"]],[30,0,[\\\"publicAPI\\\",\\\"isOpen\\\"]],[30,0,[\\\"publicAPI\\\",\\\"disabled\\\"]],[30,0,[\\\"publicAPI\\\",\\\"actions\\\"]],[52,[28,[37,3],[[30,1],[27]],null],[50,\\\"basic-dropdown-trigger\\\",0,null,[[\\\"dropdown\\\",\\\"hPosition\\\",\\\"renderInPlace\\\",\\\"vPosition\\\"],[[28,[37,5],[[30,0,[\\\"publicAPI\\\"]]],null],[28,[37,5],[[30,0,[\\\"hPosition\\\"]]],null],[28,[37,5],[[30,0,[\\\"renderInPlace\\\"]]],null],[28,[37,5],[[30,0,[\\\"vPosition\\\"]]],null]]]],[50,[28,[37,6],[[30,1]],null],0,null,[[\\\"dropdown\\\",\\\"hPosition\\\",\\\"renderInPlace\\\",\\\"vPosition\\\"],[[28,[37,5],[[30,0,[\\\"publicAPI\\\"]]],null],[28,[37,5],[[30,0,[\\\"hPosition\\\"]]],null],[28,[37,5],[[30,0,[\\\"renderInPlace\\\"]]],null],[28,[37,5],[[30,0,[\\\"vPosition\\\"]]],null]]]]],[52,[28,[37,3],[[30,2],[27]],null],[50,\\\"basic-dropdown-content\\\",0,null,[[\\\"dropdown\\\",\\\"hPosition\\\",\\\"renderInPlace\\\",\\\"preventScroll\\\",\\\"rootEventType\\\",\\\"vPosition\\\",\\\"destination\\\",\\\"top\\\",\\\"left\\\",\\\"right\\\",\\\"width\\\",\\\"height\\\",\\\"otherStyles\\\"],[[28,[37,5],[[30,0,[\\\"publicAPI\\\"]]],null],[28,[37,5],[[30,0,[\\\"hPosition\\\"]]],null],[28,[37,5],[[30,0,[\\\"renderInPlace\\\"]]],null],[28,[37,5],[[30,3]],null],[28,[37,7],[[30,4],\\\"click\\\"],null],[28,[37,5],[[30,0,[\\\"vPosition\\\"]]],null],[28,[37,5],[[30,0,[\\\"destination\\\"]]],null],[28,[37,5],[[30,0,[\\\"top\\\"]]],null],[28,[37,5],[[30,0,[\\\"left\\\"]]],null],[28,[37,5],[[30,0,[\\\"right\\\"]]],null],[28,[37,5],[[30,0,[\\\"width\\\"]]],null],[28,[37,5],[[30,0,[\\\"height\\\"]]],null],[28,[37,5],[[30,0,[\\\"otherStyles\\\"]]],null]]]],[50,[28,[37,6],[[30,2]],null],0,null,[[\\\"dropdown\\\",\\\"hPosition\\\",\\\"renderInPlace\\\",\\\"preventScroll\\\",\\\"rootEventType\\\",\\\"vPosition\\\",\\\"destination\\\",\\\"top\\\",\\\"left\\\",\\\"right\\\",\\\"width\\\",\\\"height\\\",\\\"otherStyles\\\"],[[28,[37,5],[[30,0,[\\\"publicAPI\\\"]]],null],[28,[37,5],[[30,0,[\\\"hPosition\\\"]]],null],[28,[37,5],[[30,0,[\\\"renderInPlace\\\"]]],null],[28,[37,5],[[30,3]],null],[28,[37,7],[[30,4],\\\"click\\\"],null],[28,[37,5],[[30,0,[\\\"vPosition\\\"]]],null],[28,[37,5],[[30,0,[\\\"destination\\\"]]],null],[28,[37,5],[[30,0,[\\\"top\\\"]]],null],[28,[37,5],[[30,0,[\\\"left\\\"]]],null],[28,[37,5],[[30,0,[\\\"right\\\"]]],null],[28,[37,5],[[30,0,[\\\"width\\\"]]],null],[28,[37,5],[[30,0,[\\\"height\\\"]]],null],[28,[37,5],[[30,0,[\\\"otherStyles\\\"]]],null]]]]]]]]],[[[41,[30,0,[\\\"renderInPlace\\\"]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"ember-basic-dropdown\\\"],[17,6],[12],[18,7,[[30,5]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[18,7,[[30,5]]],[1,\\\"\\\\n\\\"]],[]]]],[5]]]],[\\\"@triggerComponent\\\",\\\"@contentComponent\\\",\\\"@preventScroll\\\",\\\"@rootEventType\\\",\\\"api\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"let\\\",\\\"hash\\\",\\\"if\\\",\\\"eq\\\",\\\"component\\\",\\\"readonly\\\",\\\"ensure-safe-component\\\",\\\"or\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-basic-dropdown/components/basic-dropdown.hbs\",\n    \"isStrictMode\": false\n  });\n  const UNINITIALIZED = {};\n  const IGNORED_STYLES = ['top', 'left', 'right', 'width', 'height'];\n  let BasicDropdown = _exports.default = (_class = class BasicDropdown extends _component2.default {\n    get horizontalPosition() {\n      return this.args.horizontalPosition || 'auto'; // auto-right | right | center | left\n    }\n\n    get verticalPosition() {\n      return this.args.verticalPosition || 'auto'; // above | below\n    }\n\n    get destination() {\n      return this.args.destination || this._getDestinationId();\n    }\n    get disabled() {\n      let newVal = this.args.disabled || false;\n      if (this._previousDisabled !== UNINITIALIZED && this._previousDisabled !== newVal) {\n        (0, _runloop.schedule)('actions', () => {\n          if (newVal && this.publicAPI.isOpen) {\n            this.isOpen = false;\n          }\n          this.args.registerAPI && this.args.registerAPI(this.publicAPI);\n        });\n      }\n      this._previousDisabled = newVal;\n      return newVal;\n    }\n    get publicAPI() {\n      return {\n        uniqueId: this._uid,\n        isOpen: this.isOpen,\n        disabled: this.disabled,\n        actions: this._actions\n      };\n    }\n\n    // Lifecycle hooks\n    constructor(owner, args) {\n      super(owner, args);\n      _initializerDefineProperty(this, \"hPosition\", _descriptor, this);\n      _initializerDefineProperty(this, \"vPosition\", _descriptor2, this);\n      _initializerDefineProperty(this, \"top\", _descriptor3, this);\n      _initializerDefineProperty(this, \"left\", _descriptor4, this);\n      _initializerDefineProperty(this, \"right\", _descriptor5, this);\n      _initializerDefineProperty(this, \"width\", _descriptor6, this);\n      _initializerDefineProperty(this, \"height\", _descriptor7, this);\n      _initializerDefineProperty(this, \"otherStyles\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isOpen\", _descriptor9, this);\n      _initializerDefineProperty(this, \"renderInPlace\", _descriptor10, this);\n      _defineProperty(this, \"previousVerticalPosition\", void 0);\n      _defineProperty(this, \"previousHorizontalPosition\", void 0);\n      _defineProperty(this, \"destinationElement\", void 0);\n      _defineProperty(this, \"_uid\", (0, _internals.guidFor)(this));\n      _defineProperty(this, \"_dropdownId\", this.args.dropdownId || `ember-basic-dropdown-content-${this._uid}`);\n      _defineProperty(this, \"_previousDisabled\", UNINITIALIZED);\n      _defineProperty(this, \"_actions\", {\n        open: this.open,\n        close: this.close,\n        toggle: this.toggle,\n        reposition: this.reposition\n      });\n      if (this.args.onInit) {\n        this.args.onInit(this.publicAPI);\n      }\n      this.args.registerAPI && this.args.registerAPI(this.publicAPI);\n    }\n    willDestroy() {\n      super.willDestroy();\n      if (this.args.registerAPI) {\n        this.args.registerAPI(null);\n      }\n    }\n\n    // Actions\n    open(e) {\n      if (this.isDestroyed) {\n        return;\n      }\n      if (this.publicAPI.disabled || this.publicAPI.isOpen) {\n        return;\n      }\n      if (this.args.onOpen && this.args.onOpen(this.publicAPI, e) === false) {\n        return;\n      }\n      this.isOpen = true;\n      this.args.registerAPI && this.args.registerAPI(this.publicAPI);\n      let trigger = document.querySelector(`[data-ebd-id=${this.publicAPI.uniqueId}-trigger]`);\n      if (trigger) {\n        let parent = trigger.parentElement;\n        if (parent) {\n          parent.setAttribute(\"aria-owns\", this._dropdownId);\n        }\n      }\n    }\n    close(e, skipFocus) {\n      if (this.isDestroyed) {\n        return;\n      }\n      if (this.publicAPI.disabled || !this.publicAPI.isOpen) {\n        return;\n      }\n      if (this.args.onClose && this.args.onClose(this.publicAPI, e) === false) {\n        return;\n      }\n      if (this.isDestroyed) {\n        return; // To check that the `onClose` didn't destroy the dropdown\n      }\n\n      this.hPosition = this.vPosition = null;\n      this.top = this.left = this.right = this.width = this.height = undefined;\n      this.previousVerticalPosition = this.previousHorizontalPosition = undefined;\n      this.isOpen = false;\n      this.args.registerAPI && this.args.registerAPI(this.publicAPI);\n      let trigger = document.querySelector(`[data-ebd-id=${this.publicAPI.uniqueId}-trigger]`);\n      if (!trigger) {\n        return;\n      }\n      let parent = trigger.parentElement;\n      if (parent) {\n        parent.removeAttribute(\"aria-owns\");\n      }\n      if (skipFocus) {\n        return;\n      }\n      if (trigger.tabIndex > -1) {\n        trigger.focus();\n      }\n    }\n    toggle(e) {\n      if (this.publicAPI.isOpen) {\n        this.close(e);\n      } else {\n        this.open(e);\n      }\n    }\n    reposition() {\n      if (!this.publicAPI.isOpen) {\n        return;\n      }\n      let dropdownElement = document.getElementById(this._dropdownId);\n      let triggerElement = document.querySelector(`[data-ebd-id=${this.publicAPI.uniqueId}-trigger]`);\n      if (!dropdownElement || !triggerElement) {\n        return;\n      }\n      this.destinationElement = this.destinationElement || document.getElementById(this.destination);\n      let {\n        horizontalPosition,\n        verticalPosition,\n        previousHorizontalPosition,\n        previousVerticalPosition\n      } = this;\n      let {\n        renderInPlace = false,\n        matchTriggerWidth = false\n      } = this.args;\n      let calculatePositionFn = this.args.calculatePosition || _calculatePosition.default;\n      let positionData = calculatePositionFn(triggerElement, dropdownElement, this.destinationElement, {\n        horizontalPosition,\n        verticalPosition,\n        previousHorizontalPosition,\n        previousVerticalPosition,\n        renderInPlace,\n        matchTriggerWidth,\n        dropdown: this\n      });\n      return this.applyReposition(triggerElement, dropdownElement, positionData);\n    }\n    applyReposition(_trigger, dropdown, positions) {\n      let changes = {\n        hPosition: positions.horizontalPosition,\n        vPosition: positions.verticalPosition,\n        otherStyles: Object.assign({}, this.otherStyles)\n      };\n      if (positions.style) {\n        if (positions.style.top !== undefined) {\n          changes.top = `${positions.style.top}px`;\n        }\n        // The component can be aligned from the right or from the left, but not from both.\n        if (positions.style.left !== undefined) {\n          changes.left = `${positions.style.left}px`;\n          changes.right = undefined;\n          // Since we set the first run manually we may need to unset the `right` property.\n          if (positions.style.right !== undefined) {\n            positions.style.right = undefined;\n          }\n        } else if (positions.style.right !== undefined) {\n          changes.right = `${positions.style.right}px`;\n          changes.left = undefined;\n        }\n        if (positions.style.width !== undefined) {\n          changes.width = `${positions.style.width}px`;\n        }\n        if (positions.style.height !== undefined) {\n          changes.height = `${positions.style.height}px`;\n        }\n        if (this.top === undefined) {\n          // Bypass Ember on the first reposition only to avoid flickering.\n          for (let prop in positions.style) {\n            if (positions.style[prop] !== undefined) {\n              if (typeof positions.style[prop] === 'number') {\n                dropdown.style.setProperty(prop, `${positions.style[prop]}px`);\n              } else {\n                dropdown.style.setProperty(prop, `${positions.style[prop]}`);\n              }\n            }\n          }\n        }\n      }\n      for (let prop in positions.style) {\n        if (!IGNORED_STYLES.includes(prop)) {\n          changes.otherStyles;\n          changes.otherStyles[prop] = positions.style[prop];\n        }\n      }\n      this.hPosition = changes.hPosition;\n      this.vPosition = changes.vPosition;\n      this.top = changes.top;\n      this.left = changes.left;\n      this.right = changes.right;\n      this.width = changes.width;\n      this.height = changes.height;\n      this.otherStyles = changes.otherStyles;\n      this.previousHorizontalPosition = positions.horizontalPosition;\n      this.previousVerticalPosition = positions.verticalPosition;\n      return changes;\n    }\n    _getDestinationId() {\n      // This takes care of stripping this code out if not running tests\n      if ((0, _runtime.macroCondition)((0, _runtime.isTesting)())) {\n        if (typeof FastBoot === 'undefined') {\n          try {\n            let {\n              getRootElement\n            } = (0, _esCompat.default)(require(\"@ember/test-helpers\"));\n            return getRootElement().id;\n          } catch (error) {\n            // use default below\n          }\n        }\n        let rootView = document.querySelector('#ember-testing > .ember-view');\n        if (rootView) {\n          return rootView.id;\n        }\n        return '';\n      }\n      const _config = _emberGetConfig.default;\n      return _config['ember-basic-dropdown'] && _config['ember-basic-dropdown'].destination || 'ember-basic-dropdown-wormhole';\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"hPosition\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"vPosition\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"top\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"left\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"right\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"width\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"height\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"otherStyles\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.initiallyOpened || false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"renderInPlace\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.renderInPlace !== undefined ? this.args.renderInPlace : false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"open\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"open\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reposition\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"reposition\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BasicDropdown);\n});","define(\"ember-basic-dropdown/modifiers/basic-dropdown-trigger\", [\"exports\", \"ember-modifier\", \"@ember/debug\", \"@ember/object\", \"@ember/destroyable\", \"ember-basic-dropdown/utils/has-moved\"], function (_exports, _emberModifier, _debug, _object, _destroyable, _hasMoved) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"ember-modifier\",0,\"@ember/debug\",0,\"@ember/object\",0,\"@ember/destroyable\",0,\"ember-basic-dropdown/utils/has-moved\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  let DropdownTriggerModifier = _exports.default = (_class = class DropdownTriggerModifier extends _emberModifier.default {\n    constructor(owner, args) {\n      super(owner, args);\n      _defineProperty(this, \"didSetup\", false);\n      _defineProperty(this, \"triggerElement\", void 0);\n      _defineProperty(this, \"toggleIsBeingHandledByTouchEvents\", false);\n      _defineProperty(this, \"touchMoveEvent\", void 0);\n      _defineProperty(this, \"dropdown\", void 0);\n      _defineProperty(this, \"desiredEventType\", void 0);\n      _defineProperty(this, \"stopPropagation\", void 0);\n      (0, _destroyable.registerDestructor)(this, cleanup);\n    }\n    modify(element, positional, named) {\n      (true && !(named.dropdown) && (0, _debug.assert)('must be provided dropdown object', named.dropdown));\n      this.dropdown = named.dropdown;\n      this.desiredEventType = named.eventType ?? 'click';\n      this.stopPropagation = named.stopPropagation;\n      if (!this.didSetup) {\n        this.setup(element);\n        this.didSetup = true;\n      }\n      this.update(element, positional, named);\n    }\n    setup(element) {\n      // Keep a reference to the element for cleanup\n      this.triggerElement = element;\n      if (!element.getAttribute('role')) element.setAttribute('role', 'button');\n      element.addEventListener('click', this.handleMouseEvent);\n      element.addEventListener('mousedown', this.handleMouseEvent);\n      element.addEventListener('keydown', this.handleKeyDown);\n      element.addEventListener('touchstart', this.handleTouchStart);\n      element.addEventListener('touchend', this.handleTouchEnd);\n    }\n    update(element, _positional, named) {\n      const {\n        dropdown\n      } = named;\n      element.setAttribute('data-ebd-id', `${dropdown.uniqueId}-trigger`);\n      element.setAttribute('aria-owns', `ember-basic-dropdown-content-${dropdown.uniqueId}`);\n      element.setAttribute('aria-controls', `ember-basic-dropdown-content-${dropdown.uniqueId}`);\n      element.setAttribute('aria-expanded', dropdown.isOpen ? 'true' : 'false');\n      element.setAttribute('aria-disabled', dropdown.disabled ? 'true' : 'false');\n    }\n    handleMouseEvent(e) {\n      if (typeof document === 'undefined') return;\n      const {\n        dropdown,\n        desiredEventType,\n        stopPropagation\n      } = this;\n      if ((0, _destroyable.isDestroyed)(this) || !dropdown || dropdown.disabled) return;\n      const eventType = e.type;\n      const notLeftClick = e.button !== 0;\n      if (eventType !== desiredEventType || notLeftClick) return;\n      if (stopPropagation) e.stopPropagation();\n      if (this.toggleIsBeingHandledByTouchEvents) {\n        // Some devises have both touchscreen & mouse, and they are not mutually exclusive\n        // In those cases the touchdown handler is fired first, and it sets a flag to\n        // short-circuit the mouseup so the component is not opened and immediately closed.\n        this.toggleIsBeingHandledByTouchEvents = false;\n        return;\n      }\n      dropdown.actions.toggle(e);\n    }\n    handleKeyDown(e) {\n      const {\n        disabled,\n        actions\n      } = this.dropdown;\n      if (disabled) return;\n      if (e.keyCode === 13) {\n        // Enter\n        actions.toggle(e);\n      } else if (e.keyCode === 32) {\n        // Space\n        e.preventDefault(); // prevents the space to trigger a scroll page-next\n        actions.toggle(e);\n      } else if (e.keyCode === 27) {\n        actions.close(e);\n      }\n    }\n    handleTouchStart() {\n      document.addEventListener('touchmove', this._touchMoveHandler);\n    }\n    handleTouchEnd(e) {\n      this.toggleIsBeingHandledByTouchEvents = true;\n      const {\n        disabled,\n        actions\n      } = this.dropdown;\n      if (e && e.defaultPrevented || disabled) {\n        return;\n      }\n      if (!(0, _hasMoved.default)(e, this.touchMoveEvent)) {\n        actions.toggle(e);\n      }\n      this.touchMoveEvent = undefined;\n      document.removeEventListener('touchmove', this._touchMoveHandler);\n      // This next three lines are stolen from hammertime. This prevents the default\n      // behaviour of the touchend, but synthetically trigger a focus and a (delayed) click\n      // to simulate natural behaviour.\n      const target = e.target;\n      if (target !== null) {\n        target.focus();\n      }\n      setTimeout(function () {\n        if (!e.target) {\n          return;\n        }\n        try {\n          const event = document.createEvent('MouseEvents');\n          event.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);\n          e.target.dispatchEvent(event);\n        } catch (e) {\n          const event = new Event('click');\n          e.target.dispatchEvent(event);\n        }\n      }, 0);\n      e.preventDefault();\n    }\n    _touchMoveHandler(e) {\n      this.touchMoveEvent = e;\n      document.removeEventListener('touchmove', this._touchMoveHandler);\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"handleMouseEvent\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeyDown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeyDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleTouchStart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleTouchStart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleTouchEnd\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleTouchEnd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_touchMoveHandler\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_touchMoveHandler\"), _class.prototype)), _class);\n  function cleanup(instance) {\n    const {\n      triggerElement\n    } = instance;\n    if (triggerElement) {\n      if (typeof document !== 'undefined') document.removeEventListener('touchmove', instance._touchMoveHandler);\n      triggerElement.removeEventListener('click', instance.handleMouseEvent);\n      triggerElement.removeEventListener('mousedown', instance.handleMouseEvent);\n      triggerElement.removeEventListener('keydown', instance.handleKeyDown);\n      triggerElement.removeEventListener('touchstart', instance.handleTouchStart);\n      triggerElement.removeEventListener('touchend', instance.handleTouchEnd);\n    }\n  }\n});","define(\"ember-basic-dropdown/utils/calculate-position\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.calculateWormholedPosition = _exports.calculateInPlacePosition = void 0;\n  _exports.getScrollParent = getScrollParent;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  let calculateWormholedPosition = (trigger, content, destination, {\n    horizontalPosition,\n    verticalPosition,\n    matchTriggerWidth,\n    previousHorizontalPosition,\n    previousVerticalPosition\n  }) => {\n    // Collect information about all the involved DOM elements\n    let scroll = {\n      left: window.pageXOffset,\n      top: window.pageYOffset\n    };\n    let {\n      left: triggerLeft,\n      top: triggerTop,\n      width: triggerWidth,\n      height: triggerHeight\n    } = trigger.getBoundingClientRect();\n    let {\n      height: dropdownHeight,\n      width: dropdownWidth\n    } = content.getBoundingClientRect();\n    let viewportWidth = document.body.clientWidth || window.innerWidth;\n    let style = {};\n\n    // Apply containers' offset\n    let anchorElement = destination.parentNode;\n    let anchorPosition = window.getComputedStyle(anchorElement).position;\n    while (anchorPosition !== 'relative' && anchorPosition !== 'absolute' && anchorElement.tagName.toUpperCase() !== 'BODY') {\n      anchorElement = anchorElement.parentNode;\n      anchorPosition = window.getComputedStyle(anchorElement).position;\n    }\n    if (anchorPosition === 'relative' || anchorPosition === 'absolute') {\n      let rect = anchorElement.getBoundingClientRect();\n      triggerLeft = triggerLeft - rect.left;\n      triggerTop = triggerTop - rect.top;\n      let {\n        offsetParent\n      } = anchorElement;\n      if (offsetParent) {\n        triggerLeft -= offsetParent.scrollLeft;\n        triggerTop -= offsetParent.scrollTop;\n      }\n    }\n\n    // Calculate drop down width\n    dropdownWidth = matchTriggerWidth ? triggerWidth : dropdownWidth;\n    if (matchTriggerWidth) {\n      style.width = dropdownWidth;\n    }\n\n    // Calculate horizontal position\n    let triggerLeftWithScroll = triggerLeft + scroll.left;\n    if (horizontalPosition === 'auto' || horizontalPosition === 'auto-left') {\n      // Calculate the number of visible horizontal pixels if we were to place the\n      // dropdown on the left and right\n      let leftVisible = Math.min(viewportWidth, triggerLeft + dropdownWidth) - Math.max(0, triggerLeft);\n      let rightVisible = Math.min(viewportWidth, triggerLeft + triggerWidth) - Math.max(0, triggerLeft + triggerWidth - dropdownWidth);\n      if (dropdownWidth > leftVisible && rightVisible > leftVisible) {\n        // If the drop down won't fit left-aligned, and there is more space on the\n        // right than on the left, then force right-aligned\n        horizontalPosition = 'right';\n      } else if (dropdownWidth > rightVisible && leftVisible > rightVisible) {\n        // If the drop down won't fit right-aligned, and there is more space on\n        // the left than on the right, then force left-aligned\n        horizontalPosition = 'left';\n      } else {\n        // Keep same position as previous\n        horizontalPosition = previousHorizontalPosition || 'left';\n      }\n    } else if (horizontalPosition === 'auto-right') {\n      // Calculate the number of visible horizontal pixels if we were to place the\n      // dropdown on the left and right\n      let leftVisible = Math.min(viewportWidth, triggerLeft + dropdownWidth) - Math.max(0, triggerLeft);\n      let rightVisible = Math.min(viewportWidth, triggerLeft + triggerWidth) - Math.max(0, triggerLeft + triggerWidth - dropdownWidth);\n      if (dropdownWidth > rightVisible && leftVisible > rightVisible) {\n        // If the drop down won't fit right-aligned, and there is more space on the\n        // left than on the right, then force left-aligned\n        horizontalPosition = 'left';\n      } else if (dropdownWidth > leftVisible && rightVisible > leftVisible) {\n        // If the drop down won't fit left-aligned, and there is more space on\n        // the right than on the left, then force right-aligned\n        horizontalPosition = 'right';\n      } else {\n        // Keep same position as previous\n        horizontalPosition = previousHorizontalPosition || 'right';\n      }\n    }\n    if (horizontalPosition === 'right') {\n      style.right = viewportWidth - (triggerLeftWithScroll + triggerWidth);\n    } else if (horizontalPosition === 'center') {\n      style.left = triggerLeftWithScroll + (triggerWidth - dropdownWidth) / 2;\n    } else {\n      style.left = triggerLeftWithScroll;\n    }\n\n    // Calculate vertical position\n    let triggerTopWithScroll = triggerTop;\n\n    /**\n     * Fixes bug where the dropdown always stays on the same position on the screen when\n     * the <body> is relatively positioned\n     */\n    let isBodyPositionRelative = window.getComputedStyle(document.body).getPropertyValue('position') === 'relative';\n    if (!isBodyPositionRelative) {\n      triggerTopWithScroll += scroll.top;\n    }\n    if (verticalPosition === 'above') {\n      style.top = triggerTopWithScroll - dropdownHeight;\n    } else if (verticalPosition === 'below') {\n      style.top = triggerTopWithScroll + triggerHeight;\n    } else {\n      let viewportBottom = scroll.top + window.innerHeight;\n      let enoughRoomBelow = triggerTopWithScroll + triggerHeight + dropdownHeight < viewportBottom;\n      let enoughRoomAbove = triggerTop > dropdownHeight;\n      if (!enoughRoomBelow && !enoughRoomAbove) {\n        verticalPosition = 'below';\n      } else if (previousVerticalPosition === 'below' && !enoughRoomBelow && enoughRoomAbove) {\n        verticalPosition = 'above';\n      } else if (previousVerticalPosition === 'above' && !enoughRoomAbove && enoughRoomBelow) {\n        verticalPosition = 'below';\n      } else if (!previousVerticalPosition) {\n        verticalPosition = enoughRoomBelow ? 'below' : 'above';\n      } else {\n        verticalPosition = previousVerticalPosition;\n      }\n      style.top = triggerTopWithScroll + (verticalPosition === 'below' ? triggerHeight : -dropdownHeight);\n    }\n    return {\n      horizontalPosition,\n      verticalPosition,\n      style\n    };\n  };\n  _exports.calculateWormholedPosition = calculateWormholedPosition;\n  let calculateInPlacePosition = (trigger, content, _destination, {\n    horizontalPosition,\n    verticalPosition\n  }) => {\n    let dropdownRect;\n    let positionData = {\n      horizontalPosition: 'left',\n      verticalPosition: 'below',\n      style: {}\n    };\n    if (horizontalPosition === 'auto') {\n      let triggerRect = trigger.getBoundingClientRect();\n      dropdownRect = content.getBoundingClientRect();\n      let viewportRight = window.pageXOffset + window.innerWidth;\n      positionData.horizontalPosition = triggerRect.left + dropdownRect.width > viewportRight ? 'right' : 'left';\n    } else if (horizontalPosition === 'center') {\n      let {\n        width: triggerWidth\n      } = trigger.getBoundingClientRect();\n      let {\n        width: dropdownWidth\n      } = content.getBoundingClientRect();\n      positionData.style = {\n        left: (triggerWidth - dropdownWidth) / 2\n      };\n    } else if (horizontalPosition === 'auto-right') {\n      let triggerRect = trigger.getBoundingClientRect();\n      let dropdownRect = content.getBoundingClientRect();\n      positionData.horizontalPosition = triggerRect.right > dropdownRect.width ? 'right' : 'left';\n    } else if (horizontalPosition === 'right') {\n      positionData.horizontalPosition = 'right';\n    }\n    if (verticalPosition === 'above') {\n      positionData.verticalPosition = verticalPosition;\n      dropdownRect = dropdownRect || content.getBoundingClientRect();\n      positionData.style.top = -dropdownRect.height;\n    } else {\n      positionData.verticalPosition = 'below';\n    }\n    return positionData;\n  };\n  _exports.calculateInPlacePosition = calculateInPlacePosition;\n  function getScrollParent(element) {\n    let style = window.getComputedStyle(element);\n    let excludeStaticParent = style.position === 'absolute';\n    let overflowRegex = /(auto|scroll)/;\n    if (style.position === 'fixed') return document.body;\n    for (let parent = element; parent = parent.parentElement;) {\n      style = window.getComputedStyle(parent);\n      if (excludeStaticParent && style.position === 'static') {\n        continue;\n      }\n      if (overflowRegex.test(style.overflow + style.overflowY + style.overflowX)) {\n        return parent;\n      }\n    }\n    return document.body;\n  }\n  let calculatePosition = (trigger, content, destination, options) => {\n    if (options.renderInPlace) {\n      return calculateInPlacePosition(trigger, content, destination, options);\n    } else {\n      return calculateWormholedPosition(trigger, content, destination, options);\n    }\n  };\n  var _default = _exports.default = calculatePosition;\n});","define(\"ember-basic-dropdown/utils/has-moved\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = hasMoved;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function hasMoved(endEvent, moveEvent) {\n    if (!moveEvent) {\n      return false;\n    }\n    if (!endEvent.changedTouches?.[0] || moveEvent.changedTouches[0].touchType !== 'stylus') {\n      return true;\n    }\n\n    // Distinguish stylus scroll and tap: if touch \"distance\" < 5px, we consider it a tap\n    let horizontalDistance = Math.abs(moveEvent.changedTouches[0].pageX - endEvent.changedTouches[0].pageX);\n    let verticalDistance = Math.abs(moveEvent.changedTouches[0].pageY - endEvent.changedTouches[0].pageY);\n    return horizontalDistance >= 5 || verticalDistance >= 5;\n  }\n});","define(\"ember-basic-dropdown/utils/scroll-helpers\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.LINES_PER_PAGE = _exports.DOM_DELTA_PIXEL = _exports.DOM_DELTA_PAGE = _exports.DOM_DELTA_LINE = void 0;\n  _exports.distributeScroll = distributeScroll;\n  _exports.getAvailableScroll = getAvailableScroll;\n  _exports.getScrollDeltas = getScrollDeltas;\n  _exports.getScrollLineHeight = getScrollLineHeight;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Mode that expresses the deltas in pixels.\n   */\n  const DOM_DELTA_PIXEL = _exports.DOM_DELTA_PIXEL = 0;\n  /**\n   * Mode that expresses the deltas in lines.\n   *\n   * This only happens in Firefox for Windows.\n   *\n   * Reference: https://stackoverflow.com/a/37474225\n   */\n  const DOM_DELTA_LINE = _exports.DOM_DELTA_LINE = 1;\n  /**\n   * Mode that expresses the deltas in pages.\n   *\n   * This only happens in Firefox for Windows with\n   * a custom OS setting activated.\n   *\n   * Reference: https://stackoverflow.com/a/37474225\n   */\n  const DOM_DELTA_PAGE = _exports.DOM_DELTA_PAGE = 2;\n\n  /**\n   * Number of lines per page considered for\n   * DOM_DELTA_PAGE.\n   *\n   */\n  const LINES_PER_PAGE = _exports.LINES_PER_PAGE = 3;\n  let scrollLineHeight = undefined;\n  function getScrollDeltas({\n    deltaX = 0,\n    deltaY = 0,\n    deltaMode = DOM_DELTA_PIXEL\n  }) {\n    if (deltaMode !== DOM_DELTA_PIXEL) {\n      if (deltaMode === DOM_DELTA_PAGE) {\n        deltaX *= LINES_PER_PAGE;\n        deltaY *= LINES_PER_PAGE;\n      }\n      const scrollLineHeight = getScrollLineHeight();\n      if (scrollLineHeight !== undefined) {\n        deltaX *= scrollLineHeight;\n        deltaY *= scrollLineHeight;\n      }\n    }\n    return {\n      deltaX,\n      deltaY\n    };\n  }\n  function getScrollLineHeight() {\n    if (scrollLineHeight === undefined) {\n      const iframe = document.createElement('iframe');\n      iframe.src = '#';\n      iframe.style.position = 'absolute';\n      iframe.style.visibility = 'hidden';\n      iframe.style.width = '0px';\n      iframe.style.height = '0px';\n      iframe.style.border = 'none';\n      document.body.appendChild(iframe);\n      const iframeDocument = iframe.contentWindow.document;\n      iframeDocument.open();\n      iframeDocument.write('<!doctype html><html><head></head><body><span>X</span></body></html>');\n      iframeDocument.close();\n      let body = iframeDocument.body;\n      scrollLineHeight = body.firstElementChild.offsetHeight;\n      document.body.removeChild(iframe);\n    }\n    return scrollLineHeight;\n  }\n  function getAvailableScroll(element, container) {\n    const availableScroll = {\n      deltaXNegative: 0,\n      deltaXPositive: 0,\n      deltaYNegative: 0,\n      deltaYPositive: 0\n    };\n    let scrollLeftMax, scrollTopMax;\n    while (container.contains(element) || container === element) {\n      scrollLeftMax = element.scrollWidth - element.clientWidth;\n      scrollTopMax = element.scrollHeight - element.clientHeight;\n      availableScroll.deltaXNegative += -element.scrollLeft;\n      availableScroll.deltaXPositive += scrollLeftMax - element.scrollLeft;\n      availableScroll.deltaYNegative += -element.scrollTop;\n      availableScroll.deltaYPositive += scrollTopMax - element.scrollTop;\n      let parent = element.parentNode;\n      if (parent === null) break;\n      element = parent;\n    }\n    return availableScroll;\n  }\n\n  /**\n   * Calculates the scroll distribution for `element` inside` container.\n   */\n  function calculateScrollDistribution(deltaX, deltaY, element, container, accumulator = []) {\n    const scrollInformation = {\n      element,\n      scrollLeft: 0,\n      scrollTop: 0\n    };\n    const scrollLeftMax = element.scrollWidth - element.clientWidth;\n    const scrollTopMax = element.scrollHeight - element.clientHeight;\n    const availableScroll = {\n      deltaXNegative: -element.scrollLeft,\n      deltaXPositive: scrollLeftMax - element.scrollLeft,\n      deltaYNegative: -element.scrollTop,\n      deltaYPositive: scrollTopMax - element.scrollTop\n    };\n    const elementStyle = window.getComputedStyle(element);\n    if (elementStyle.overflowX !== 'hidden') {\n      // The `deltaX` can be larger than the available scroll for the element, thus overshooting.\n      // The result of that is that it scrolls the element as far as possible. We don't need to\n      // calculate exactly because we reduce the amount of desired scroll for the\n      // parent elements by the correct amount below.\n      scrollInformation.scrollLeft = element.scrollLeft + deltaX;\n      if (deltaX > availableScroll.deltaXPositive) {\n        deltaX = deltaX - availableScroll.deltaXPositive;\n      } else if (deltaX < availableScroll.deltaXNegative) {\n        deltaX = deltaX - availableScroll.deltaXNegative;\n      } else {\n        deltaX = 0;\n      }\n    }\n    if (elementStyle.overflowY !== 'hidden') {\n      scrollInformation.scrollTop = element.scrollTop + deltaY;\n      if (deltaY > availableScroll.deltaYPositive) {\n        deltaY = deltaY - availableScroll.deltaYPositive;\n      } else if (deltaY < availableScroll.deltaYNegative) {\n        deltaY = deltaY - availableScroll.deltaYNegative;\n      } else {\n        deltaY = 0;\n      }\n    }\n    if (element !== container && (deltaX || deltaY)) {\n      return calculateScrollDistribution(deltaX, deltaY, element.parentNode, container, accumulator.concat([scrollInformation]));\n    }\n    return accumulator.concat([scrollInformation]);\n  }\n\n  // Recursively walks up scroll containers until the delta is distributed or we\n  // run out of elements in the allowed-to-scroll container.\n  function distributeScroll(deltaX, deltaY, element, container) {\n    const scrollInfos = calculateScrollDistribution(deltaX, deltaY, element, container);\n    let info;\n    for (let i = 0; i < scrollInfos.length; i++) {\n      info = scrollInfos[i];\n      info.element.scrollLeft = info.scrollLeft;\n      info.element.scrollTop = info.scrollTop;\n    }\n  }\n});","define(\"ember-cached-decorator-polyfill/index\", [\"exports\", \"@glimmer/tracking/primitives/cache\", \"@ember/debug\"], function (_exports, _cache, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.cached = cached;\n  function cached(...args) {\n    const [target, key, descriptor] = args;\n\n    // Error on `@cached()`, `@cached(...args)`, and `@cached propName = value;`\n    (true && !(target !== undefined) && (0, _debug.assert)('You attempted to use @cached(), which is not necessary nor supported. Remove the parentheses and you will be good to go!', target !== undefined));\n    (true && !(typeof target === 'object' && typeof key === 'string' && typeof descriptor === 'object' && args.length === 3) && (0, _debug.assert)(`You attempted to use @cached on with ${args.length > 1 ? 'arguments' : 'an argument'} ( @cached(${args.map(d => `'${d}'`).join(', ')}), which is not supported. Dependencies are automatically tracked, so you can just use ${'`@cached`'}`, typeof target === 'object' && typeof key === 'string' && typeof descriptor === 'object' && args.length === 3));\n    (true && !(typeof descriptor.get == 'function') && (0, _debug.assert)(`The @cached decorator must be applied to getters. '${key}' is not a getter.`, typeof descriptor.get == 'function'));\n    const caches = new WeakMap();\n    const getter = descriptor.get;\n    descriptor.get = function () {\n      if (!caches.has(this)) caches.set(this, (0, _cache.createCache)(getter.bind(this)));\n      return (0, _cache.getValue)(caches.get(this));\n    };\n  }\n});","define(\"ember-changeset-validations/index\", [\"exports\", \"validated-changeset\"], function (_exports, _validatedChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"validated-changeset\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _validatedChangeset.lookupValidator;\n});","define(\"ember-changeset-validations/utils/get-messages\", [\"exports\", \"@ember/array\", \"@ember/utils\", \"ember-get-config\", \"ember-changeset-validations/utils/messages\", \"ember-changeset-validations/utils/with-defaults\"], function (_exports, _array, _utils, _emberGetConfig, _messages, _withDefaults) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getMessages;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember/utils\",0,\"ember-get-config\",0,\"ember-changeset-validations/utils/messages\",0,\"ember-changeset-validations/utils/with-defaults\"eaimeta@70e063a35619d71f\n  /* globals requirejs, requireModule */\n  const {\n    keys\n  } = Object;\n  const moduleName = `${_emberGetConfig.default.modulePrefix}/validations/messages`;\n  let cachedRef = null;\n\n  /**\n   * Find and load messages module on consuming app. Defaults to addon messages.\n   * To define a custom message map, create `my-app/app/validations/messages.js`\n   * and export an object.\n   *\n   * @param  {Object} moduleMap\n   * @param  {Boolean} useCache Pass `false` to ignore cached key\n   * @return {Object}\n   */\n  function getMessages(moduleMap = requirejs.entries, useCache = true) {\n    let messagesModule = _messages.default;\n    if (useCache && (0, _utils.isPresent)(cachedRef)) {\n      return cachedRef;\n    }\n    let moduleKey = (0, _array.A)(keys(moduleMap)).find(key => key === moduleName);\n    if ((0, _utils.isPresent)(moduleKey)) {\n      // Merge the user specified messages with the defaults\n      messagesModule = (0, _withDefaults.default)(requireModule(moduleKey).default, messagesModule);\n    }\n    cachedRef = messagesModule;\n    return messagesModule;\n  }\n});","define(\"ember-changeset-validations/utils/handle-multiple-validations\", [\"exports\", \"@ember/array\", \"rsvp\", \"@ember/utils\", \"validated-changeset\"], function (_exports, _array, _rsvp, _utils, _validatedChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = handleMultipleValidations;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"rsvp\",0,\"@ember/utils\",0,\"validated-changeset\"eaimeta@70e063a35619d71f\n  /**\n   * Rejects `true` values from an array of validations. Returns `true` when there\n   * are no errors, or the error object if there are errors.\n   *\n   * @private\n   * @param  {Array} validations\n   * @return {Boolean|Any}\n   */\n  function handleValidations(validations = []) {\n    let rejectedValidations = (0, _array.A)(validations).reject(validation => (0, _utils.typeOf)(validation) === 'boolean' && validation);\n    return rejectedValidations.length === 0 || rejectedValidations;\n  }\n\n  /**\n   * Handles an array of validators and returns Promise.all if any value is a\n   * Promise.\n   *\n   * @public\n   * @param  {Array} validators Array of validator functions\n   * @param  {String} options.key\n   * @param  {Any} options.newValue\n   * @param  {Any} options.oldValue\n   * @param  {Object} options.changes\n   * @param  {Object} options.content\n   * @return {Promise|Boolean|Any}\n   */\n  function handleMultipleValidations(validators, {\n    key,\n    newValue,\n    oldValue,\n    changes,\n    content\n  }) {\n    let validations = (0, _array.A)(validators.map(validator => validator(key, newValue, oldValue, changes, content)));\n    if ((0, _array.A)(validations).any(_validatedChangeset.isPromise)) {\n      return (0, _rsvp.all)(validations).then(handleValidations);\n    }\n    return handleValidations(validations);\n  }\n});","define(\"ember-changeset-validations/utils/messages\", [\"exports\", \"ember-validators/messages\", \"@ember/string\"], function (_exports, _messages, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-validators/messages\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n  const Messages = Object.assign({}, _messages.default);\n  var _default = _exports.default = Object.assign(Messages, {\n    // Blank and present are flipped in ember-validators. Need to flip them back here\n    blank: _messages.default.present,\n    present: _messages.default.blank,\n    getDescriptionFor(key = '') {\n      return (0, _string.capitalize)((0, _string.dasherize)(key).split(/[._-]/g).join(' '));\n    }\n  });\n});","define(\"ember-changeset-validations/utils/to-date\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = toDate;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * @name toDate\n   * @param {Date|Number} argument - the value to convert\n   * @returns {Date} the parsed date in the local time zone\n   * @throws {TypeError} 1 argument required\n   */\n  function toDate(argument) {\n    const argStr = Object.prototype.toString.call(argument);\n    if (typeof argument === 'function') {\n      argument = argument();\n    }\n    if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {\n      return argument;\n    } else if (typeof argument === 'number' || argStr === '[object Number]') {\n      return new Date(argument);\n    } else {\n      if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n        // eslint-disable-next-line no-console\n        console.warn('Please use `Date.parse` to parse strings.');\n        // eslint-disable-next-line no-console\n        console.warn(new Error().stack);\n      }\n      return new Date(NaN);\n    }\n  }\n});","define(\"ember-changeset-validations/utils/validation-errors\", [\"exports\", \"@ember/object\", \"@ember/debug\", \"ember-get-config\", \"ember-changeset-validations/utils/get-messages\"], function (_exports, _object, _debug, _emberGetConfig, _getMessages) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildMessage;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/debug\",0,\"ember-get-config\",0,\"ember-changeset-validations/utils/get-messages\"eaimeta@70e063a35619d71f\n  /**\n   * For code taken from ember-cp-validations\n   * Copyright 2016, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n  function buildMessage(key, result) {\n    let returnsRaw = _emberGetConfig.default['changeset-validations']?.rawOutput || false;\n    let messages = (0, _getMessages.default)();\n    let description = messages.getDescriptionFor(key);\n    if (result.message) {\n      return result.message;\n    }\n    let {\n      type,\n      value,\n      context = {}\n    } = result;\n    let message = (0, _object.get)(messages, type);\n    if (returnsRaw) {\n      context = Object.assign({}, context, {\n        description\n      });\n      return {\n        value,\n        type,\n        message,\n        context\n      };\n    }\n    if (context.message) {\n      let message = context.message;\n      if (typeof message === 'function') {\n        let builtMessage = message(key, type, value, context);\n        (true && !(typeof builtMessage === 'string') && (0, _debug.assert)('Custom message function must return a string', typeof builtMessage === 'string'));\n        return builtMessage;\n      }\n      return messages.formatMessage(message, Object.assign({\n        description\n      }, context));\n    }\n    return messages.formatMessage(message, Object.assign({\n      description\n    }, context));\n  }\n});","define(\"ember-changeset-validations/utils/with-defaults\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = withDefaults;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Create a new object with defaults\n   *\n   * @public\n   * @param  {Object} obj\n   * @param  {Object} defaults\n   * @return {Object}\n   */\n  function withDefaults(obj = {}, defaults = {}) {\n    return Object.assign(Object.assign({}, defaults), obj);\n  }\n});","define(\"ember-changeset-validations/utils/wrap\", [\"exports\", \"@ember/array\"], function (_exports, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = wrapInArray;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\"eaimeta@70e063a35619d71f\n  /**\n   * Wraps a value in an Ember.Array.\n   *\n   * @public\n   * @param  {Any} value\n   * @return {Ember.Array}\n   */\n  function wrapInArray(value) {\n    if ((0, _array.isArray)(value)) {\n      return (0, _array.A)(value);\n    }\n    return (0, _array.A)([value]);\n  }\n});","define(\"ember-changeset-validations/validators/confirmation\", [\"exports\", \"ember-changeset-validations/utils/validation-errors\", \"ember-validators/confirmation\"], function (_exports, _validationErrors, _confirmation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateConfirmation;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/utils/validation-errors\",0,\"ember-validators/confirmation\"eaimeta@70e063a35619d71f\n  function validateConfirmation(options = {}) {\n    return (key, newValue, _oldValue, changes, content = {}) => {\n      // Combine the changes on top of the content so that we evaluate against both default values\n      // and valid changes. `changes` only has valid changes that have been made and won't include\n      // default values\n      let model = Object.assign({}, content, changes);\n      let result = (0, _confirmation.default)(newValue, options, model, key);\n      return result === true ? true : (0, _validationErrors.default)(key, result);\n    };\n  }\n});","define(\"ember-changeset-validations/validators/date\", [\"exports\", \"ember-changeset-validations/utils/validation-errors\", \"ember-changeset-validations/utils/with-defaults\", \"ember-changeset-validations/utils/to-date\"], function (_exports, _validationErrors, _withDefaults, _toDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateDate;\n  _exports.errorFormat = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/utils/validation-errors\",0,\"ember-changeset-validations/utils/with-defaults\",0,\"ember-changeset-validations/utils/to-date\"eaimeta@70e063a35619d71f\n  const errorFormat = _exports.errorFormat = 'MMM Do, YYYY';\n  function isValidDate(d) {\n    return d instanceof Date && !isNaN(d);\n  }\n  function validateDate(options = {}) {\n    options = (0, _withDefaults.default)(options, {\n      allowBlank: false,\n      errorFormat: errorFormat\n    });\n    return (key, value) => {\n      let {\n        allowBlank\n      } = options;\n      let {\n        before,\n        onOrBefore,\n        after,\n        onOrAfter,\n        message\n      } = options;\n      let type = 'date';\n      if (allowBlank && (typeof value === 'undefined' || value === null)) {\n        return true;\n      }\n      let date = (0, _toDate.default)(value);\n      if (!isValidDate(date)) {\n        return (0, _validationErrors.default)(key, {\n          type,\n          value: 'not a date',\n          context: {\n            value,\n            message\n          }\n        });\n      }\n      if (before) {\n        before = (0, _toDate.default)(before);\n        message = message || `[BEFORE] date is NOT before ${value}`;\n        type = 'before';\n        if (date >= before) {\n          return (0, _validationErrors.default)(key, {\n            type,\n            value,\n            context: {\n              before,\n              message\n            }\n          });\n        }\n      }\n      if (onOrBefore) {\n        onOrBefore = (0, _toDate.default)(onOrBefore);\n        message = message || `[ON OR BEFORE] date is NOT on or before ${value}`;\n        type = 'onOrBefore';\n        if (date > onOrBefore) {\n          return (0, _validationErrors.default)(key, {\n            type,\n            value,\n            context: {\n              onOrBefore,\n              message\n            }\n          });\n        }\n      }\n      if (after) {\n        after = (0, _toDate.default)(after);\n        message = message || `[AFTER] date is NOT after ${value}`;\n        type = 'after';\n        if (date <= after) {\n          return (0, _validationErrors.default)(key, {\n            type,\n            value,\n            context: {\n              after,\n              message\n            }\n          });\n        }\n      }\n      if (onOrAfter) {\n        onOrAfter = (0, _toDate.default)(onOrAfter);\n        message = message || `[ON OR AFTER] date is NOT on or after ${value}`;\n        type = 'onOrAfter';\n        if (date < onOrAfter) {\n          return (0, _validationErrors.default)(key, {\n            type,\n            value,\n            context: {\n              onOrAfter,\n              message\n            }\n          });\n        }\n      }\n      return true;\n    };\n  }\n});","define(\"ember-changeset-validations/validators/exclusion\", [\"exports\", \"ember-changeset-validations/utils/validation-errors\", \"ember-validators/exclusion\"], function (_exports, _validationErrors, _exclusion) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateExclusion;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/utils/validation-errors\",0,\"ember-validators/exclusion\"eaimeta@70e063a35619d71f\n  function validateExclusion(options = {}) {\n    if (options.list) {\n      options.in = options.list;\n    }\n    return (key, value) => {\n      let result = (0, _exclusion.default)(value, options, null, key);\n      return result === true ? true : (0, _validationErrors.default)(key, result);\n    };\n  }\n});","define(\"ember-changeset-validations/validators/format\", [\"exports\", \"@ember/utils\", \"ember-changeset-validations/utils/validation-errors\", \"ember-validators/format\"], function (_exports, _utils, _validationErrors, _format) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateFormat;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"ember-changeset-validations/utils/validation-errors\",0,\"ember-validators/format\"eaimeta@70e063a35619d71f\n  function validateFormat(options = {}) {\n    let hasOptions = !(0, _utils.isEmpty)(Object.keys(options));\n    return (key, value) => {\n      if (!hasOptions) {\n        return true;\n      }\n      let result = (0, _format.default)(value, options, null, key);\n      return result === true ? true : (0, _validationErrors.default)(key, result);\n    };\n  }\n});","define(\"ember-changeset-validations/validators/inclusion\", [\"exports\", \"ember-changeset-validations/utils/validation-errors\", \"ember-validators/inclusion\"], function (_exports, _validationErrors, _inclusion) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateInclusion;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/utils/validation-errors\",0,\"ember-validators/inclusion\"eaimeta@70e063a35619d71f\n  function validateInclusion(options = {}) {\n    if (options.list) {\n      options.in = options.list;\n    }\n    return (key, value) => {\n      let result = (0, _inclusion.default)(value, options, null, key);\n      return result === true ? true : (0, _validationErrors.default)(key, result);\n    };\n  }\n});","define(\"ember-changeset-validations/validators/index\", [\"exports\", \"ember-changeset-validations/validators/date\", \"ember-changeset-validations/validators/presence\", \"ember-changeset-validations/validators/length\", \"ember-changeset-validations/validators/number\", \"ember-changeset-validations/validators/format\", \"ember-changeset-validations/validators/inclusion\", \"ember-changeset-validations/validators/exclusion\", \"ember-changeset-validations/validators/confirmation\"], function (_exports, _date, _presence, _length, _number, _format, _inclusion, _exclusion, _confirmation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"validateConfirmation\", {\n    enumerable: true,\n    get: function () {\n      return _confirmation.default;\n    }\n  });\n  Object.defineProperty(_exports, \"validateDate\", {\n    enumerable: true,\n    get: function () {\n      return _date.default;\n    }\n  });\n  Object.defineProperty(_exports, \"validateExclusion\", {\n    enumerable: true,\n    get: function () {\n      return _exclusion.default;\n    }\n  });\n  Object.defineProperty(_exports, \"validateFormat\", {\n    enumerable: true,\n    get: function () {\n      return _format.default;\n    }\n  });\n  Object.defineProperty(_exports, \"validateInclusion\", {\n    enumerable: true,\n    get: function () {\n      return _inclusion.default;\n    }\n  });\n  Object.defineProperty(_exports, \"validateLength\", {\n    enumerable: true,\n    get: function () {\n      return _length.default;\n    }\n  });\n  Object.defineProperty(_exports, \"validateNumber\", {\n    enumerable: true,\n    get: function () {\n      return _number.default;\n    }\n  });\n  Object.defineProperty(_exports, \"validatePresence\", {\n    enumerable: true,\n    get: function () {\n      return _presence.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators/date\",0,\"ember-changeset-validations/validators/presence\",0,\"ember-changeset-validations/validators/length\",0,\"ember-changeset-validations/validators/number\",0,\"ember-changeset-validations/validators/format\",0,\"ember-changeset-validations/validators/inclusion\",0,\"ember-changeset-validations/validators/exclusion\",0,\"ember-changeset-validations/validators/confirmation\"eaimeta@70e063a35619d71f\n});","define(\"ember-changeset-validations/validators/length\", [\"exports\", \"ember-changeset-validations/utils/validation-errors\", \"ember-changeset-validations/utils/with-defaults\", \"ember-validators/length\"], function (_exports, _validationErrors, _withDefaults, _length) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateLength;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/utils/validation-errors\",0,\"ember-changeset-validations/utils/with-defaults\",0,\"ember-validators/length\"eaimeta@70e063a35619d71f\n  function validateLength(options = {}) {\n    options = (0, _withDefaults.default)(options, {\n      useBetweenMessage: true\n    });\n    return (key, value) => {\n      let result = (0, _length.default)(value, options, null, key);\n      return result === true ? true : (0, _validationErrors.default)(key, result);\n    };\n  }\n});","define(\"ember-changeset-validations/validators/number\", [\"exports\", \"ember-changeset-validations/utils/validation-errors\", \"ember-changeset-validations/utils/with-defaults\", \"ember-validators/number\"], function (_exports, _validationErrors, _withDefaults, _number) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateNumber;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/utils/validation-errors\",0,\"ember-changeset-validations/utils/with-defaults\",0,\"ember-validators/number\"eaimeta@70e063a35619d71f\n  function validateNumber(options = {}) {\n    options = (0, _withDefaults.default)(options, {\n      allowString: true,\n      allowNone: false\n    });\n    if (options.allowBlank) {\n      options.allowNone = true;\n    }\n    return (key, value) => {\n      let result = (0, _number.default)(value, options, null, key);\n      return result === true ? true : (0, _validationErrors.default)(key, result);\n    };\n  }\n});","define(\"ember-changeset-validations/validators/presence\", [\"exports\", \"ember-changeset-validations/utils/validation-errors\", \"ember-validators/presence\", \"@ember/object\"], function (_exports, _validationErrors, _presence, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validatePresence;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/utils/validation-errors\",0,\"ember-validators/presence\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function validatePresence(options) {\n    let targets;\n    if (typeof options === 'boolean') {\n      options = {\n        presence: options\n      };\n    } else if (options && options.on !== undefined) {\n      if (typeof options.on === 'string') {\n        targets = [options.on];\n      } else if (Array.isArray(options.on)) {\n        targets = options.on;\n      }\n      delete options.on;\n    }\n    return (key, value, _oldValue, changes, content) => {\n      if (targets && !targets.some(target => {\n        const change = (0, _object.get)(changes, target);\n        return change || change === undefined && (0, _object.get)(content, target);\n      })) {\n        return true;\n      }\n      let result = (0, _presence.default)(value, options, null, key);\n      if (typeof result === 'boolean' || typeof result === 'string') {\n        return result;\n      } else {\n        // We flipped the meaning behind `present` and `blank` so switch the two\n        if (result.type === 'present') {\n          result.type = 'blank';\n        } else if (result.type === 'blank') {\n          result.type = 'present';\n        }\n        return (0, _validationErrors.default)(key, result);\n      }\n    };\n  }\n});","define(\"ember-changeset/helpers/changeset-get\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.changesetGet = changesetGet;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function changesetGet([changeset, fieldPath]) {\n    return changeset.get(fieldPath);\n  }\n  var _default = _exports.default = (0, _helper.helper)(changesetGet);\n});","define(\"ember-changeset/helpers/changeset-set\", [\"exports\", \"@ember/component/helper\", \"validated-changeset\"], function (_exports, _helper, _validatedChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.changesetSet = changesetSet;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"validated-changeset\"eaimeta@70e063a35619d71f\n  /**\n   * This is a drop in replacement for the `mut` helper\n   *\n   * @method changesetSet\n   * @param params\n   */\n  function changesetSet([obj, path]) {\n    if ((0, _validatedChangeset.isChangeset)(obj)) {\n      return value => {\n        return obj.set(path, value);\n      };\n    }\n  }\n  var _default = _exports.default = (0, _helper.helper)(changesetSet);\n});","define(\"ember-changeset/helpers/changeset\", [\"exports\", \"@ember/component/helper\", \"ember-changeset\", \"validated-changeset\"], function (_exports, _helper, _emberChangeset, _validatedChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.changeset = changeset;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-changeset\",0,\"validated-changeset\"eaimeta@70e063a35619d71f\n  function changeset([obj, validations], options = {}) {\n    if (!obj) {\n      // route transitions may trigger this\n      return;\n    }\n    if ((0, _validatedChangeset.isChangeset)(obj)) {\n      return obj;\n    }\n    if ((0, _validatedChangeset.isObject)(validations)) {\n      if ((0, _validatedChangeset.isPromise)(obj)) {\n        return obj.then(resolved => (0, _emberChangeset.Changeset)(resolved, (0, _validatedChangeset.lookupValidator)(validations), validations, options));\n      }\n      return (0, _emberChangeset.Changeset)(obj, (0, _validatedChangeset.lookupValidator)(validations), validations, options);\n    }\n    if ((0, _validatedChangeset.isPromise)(obj)) {\n      return Promise.resolve(obj).then(resolved => (0, _emberChangeset.Changeset)(resolved, validations, {}, options));\n    }\n    return (0, _emberChangeset.Changeset)(obj, validations, {}, options);\n  }\n  var _default = _exports.default = (0, _helper.helper)(changeset);\n});","define(\"ember-changeset/index\", [\"exports\", \"@ember/debug\", \"@ember/object/compat\", \"validated-changeset\", \"ember-changeset/validated-changeset\", \"@ember/array/proxy\", \"@ember/object/proxy\", \"@ember/object\", \"ember-changeset/utils/merge-deep\", \"ember-changeset/utils/is-object\", \"@glimmer/tracking\", \"@embroider/macros/es-compat2\"], function (_exports, _debug, _compat, _validatedChangeset, _validatedChangeset2, _proxy, _proxy2, _object, _mergeDeep, _isObject, _tracking, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.Changeset = Changeset;\n  _exports.EmberChangeset = void 0;\n  Object.defineProperty(_exports, \"ValidatedChangeset\", {\n    enumerable: true,\n    get: function () {\n      return _validatedChangeset2.Changeset;\n    }\n  });\n  _exports.buildOldValues = buildOldValues;\n  _exports.changeset = changeset;\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/object/compat\",0,\"validated-changeset\",0,\"ember-changeset/validated-changeset\",0,\"@ember/array/proxy\",0,\"@ember/object/proxy\",0,\"@ember/object\",0,\"ember-changeset/utils/merge-deep\",0,\"ember-changeset/utils/is-object\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@embroider/macros\",0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const CHANGES = '_changes';\n  const PREVIOUS_CONTENT = '_previousContent';\n  const CONTENT = '_content';\n  const defaultValidatorFn = () => true;\n  function buildOldValues(content, changes, getDeep) {\n    const obj = Object.create(null);\n    for (let change of changes) {\n      obj[change.key] = getDeep(content, change.key);\n    }\n    return obj;\n  }\n  function isProxy(o) {\n    return !!(o && (o instanceof _proxy2.default || o instanceof _proxy.default));\n  }\n  function maybeUnwrapProxy(o) {\n    return isProxy(o) ? maybeUnwrapProxy((0, _object.get)(o, 'content')) : o;\n  }\n  let Model;\n  {\n    Model = (0, _esCompat.default)(require(\"@ember-data/model\")).default;\n  }\n  let EmberChangeset = _exports.EmberChangeset = (_class = class EmberChangeset extends _validatedChangeset.BufferedChangeset {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_changes\", _descriptor, this);\n      _initializerDefineProperty(this, \"_errors\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_content\", _descriptor3, this);\n      _defineProperty(this, \"isObject\", _isObject.default);\n      _defineProperty(this, \"maybeUnwrapProxy\", maybeUnwrapProxy);\n      // DO NOT override setDeep. Ember.set does not work wth empty hash and nested\n      // key Ember.set({}, 'user.name', 'foo');\n      // override base class\n      // DO NOT override setDeep. Ember.set does not work with Ember.set({}, 'user.name', 'foo');\n      _defineProperty(this, \"getDeep\", _object.get);\n      _defineProperty(this, \"mergeDeep\", _mergeDeep.default);\n    }\n    safeGet(obj, key) {\n      if (Model && obj.relationshipFor?.(key)?.meta?.kind == 'belongsTo') {\n        return obj.belongsTo(key).value();\n      }\n      return (0, _object.get)(obj, key);\n    }\n    safeSet(obj, key, value) {\n      return (0, _object.set)(obj, key, value);\n    }\n\n    /**\n     * @property isValid\n     * @type {Array}\n     */\n    get isValid() {\n      return super.isValid;\n    }\n\n    /**\n     * @property isInvalid\n     * @type {Boolean}\n     */\n    get isInvalid() {\n      return super.isInvalid;\n    }\n\n    /**\n     * @property isPristine\n     * @type {Boolean}\n     */\n    get isPristine() {\n      return super.isPristine;\n    }\n\n    /**\n     * @property isDirty\n     * @type {Boolean}\n     */\n    get isDirty() {\n      return super.isDirty;\n    }\n    get pendingData() {\n      let content = this[CONTENT];\n      let changes = this[CHANGES];\n      let pendingChanges = this.mergeDeep(Object.create(Object.getPrototypeOf(content)), content, {\n        safeGet: _object.get,\n        safeSet: _object.set\n      });\n      return this.mergeDeep(pendingChanges, changes, {\n        safeGet: _object.get,\n        safeSet: _object.set\n      });\n    }\n\n    /**\n     * Manually add an error to the changeset. If there is an existing\n     * error or change for `key`, it will be overwritten.\n     *\n     * @method addError\n     */\n    addError(key, error) {\n      super.addError(key, error);\n      (0, _object.notifyPropertyChange)(this, key);\n      // Return passed-in `error`.\n      return error;\n    }\n\n    /**\n     * Manually push multiple errors to the changeset as an array.\n     *\n     * @method pushErrors\n     */\n    pushErrors(key, ...newErrors) {\n      const {\n        value,\n        validation\n      } = super.pushErrors(key, ...newErrors);\n      (0, _object.notifyPropertyChange)(this, key);\n      return {\n        value,\n        validation\n      };\n    }\n\n    /**\n     * Sets property or error on the changeset.\n     * Returns value or error\n     */\n    _setProperty({\n      key,\n      value,\n      oldValue\n    }) {\n      super._setProperty({\n        key,\n        value,\n        oldValue\n      });\n      (0, _object.notifyPropertyChange)(this, key);\n    }\n\n    /**\n     * Notifies virtual properties set on the changeset of a change.\n     * You can specify which keys are notified by passing in an array.\n     *\n     * @private\n     * @param {Array} keys\n     * @return {Void}\n     */\n    _notifyVirtualProperties(keys) {\n      keys = super._notifyVirtualProperties(keys);\n      (keys || []).forEach(key => (0, _object.notifyPropertyChange)(this, key));\n      return;\n    }\n\n    /**\n     * Deletes a key off an object and notifies observers.\n     */\n    _deleteKey(objName, key = '') {\n      const result = super._deleteKey(objName, key);\n      (0, _object.notifyPropertyChange)(this, key);\n      return result;\n    }\n\n    /**\n     * Executes the changeset if in a valid state.\n     *\n     * @method execute\n     */\n    execute() {\n      let oldContent;\n      if (this.isValid && this.isDirty) {\n        let content = this[CONTENT];\n        let changes = this[CHANGES];\n\n        // keep old values in case of error and we want to rollback\n        oldContent = buildOldValues(content, this.changes, this.getDeep);\n\n        // we want mutation on original object\n        // @tracked\n        this[CONTENT] = this.mergeDeep(content, changes, {\n          safeGet: _object.get,\n          safeSet: _object.set\n        });\n      }\n      this[PREVIOUS_CONTENT] = oldContent;\n      return this;\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_changes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_errors\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_content\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"isValid\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isValid\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isInvalid\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isInvalid\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isPristine\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isPristine\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isDirty\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isDirty\"), _class.prototype)), _class);\n  /**\n   * Creates new changesets.\n   */\n  function changeset(obj, validateFn = defaultValidatorFn, validationMap = {}, options = {}) {\n    (true && !(Boolean(obj)) && (0, _debug.assert)('Underlying object for changeset is missing', Boolean(obj)));\n    (true && !(!Array.isArray(obj)) && (0, _debug.assert)('Array is not a valid type to pass as the first argument to `changeset`', !Array.isArray(obj)));\n    if (options.changeset) {\n      return new options.changeset(obj, validateFn, validationMap, options);\n    }\n    const c = new EmberChangeset(obj, validateFn, validationMap, options);\n    return c;\n  }\n\n  /**\n   * Creates new changesets.\n   * @function Changeset\n   */\n  function Changeset(obj, validateFn = defaultValidatorFn, validationMap = {}, options = {}) {\n    const c = changeset(obj, validateFn, validationMap, options);\n    return new Proxy(c, {\n      get(targetBuffer, key /*, receiver*/) {\n        const res = targetBuffer.get(key.toString());\n        return res;\n      },\n      set(targetBuffer, key, value /*, receiver*/) {\n        targetBuffer.set(key.toString(), value);\n        return true;\n      }\n    });\n  }\n  class ChangesetKlass {\n    /**\n     * Changeset factory\n     * TODO: deprecate in favor of factory function\n     *\n     * @class ChangesetKlass\n     * @constructor\n     */\n    constructor(obj, validateFn = defaultValidatorFn, validationMap = {}, options = {}) {\n      const c = changeset(obj, validateFn, validationMap, options);\n      return new Proxy(c, {\n        get(targetBuffer, key /*, receiver*/) {\n          const res = targetBuffer.get(key.toString());\n          return res;\n        },\n        set(targetBuffer, key, value /*, receiver*/) {\n          targetBuffer.set(key.toString(), value);\n          return true;\n        }\n      });\n    }\n  }\n  _exports.default = ChangesetKlass;\n});","define(\"ember-changeset/utils/is-object\", [\"exports\", \"@ember/array\"], function (_exports, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isObject;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\"eaimeta@70e063a35619d71f\n  /**\n   * Employ Ember strategies for isObject detection\n   * @method isObject\n   */\n  function isObject(val) {\n    return val !== null && typeof val === 'object' && !(val instanceof Date || val instanceof RegExp) && !(0, _array.isArray)(val);\n  }\n});","define(\"ember-changeset/utils/merge-deep\", [\"exports\", \"validated-changeset\"], function (_exports, _validatedChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = mergeDeep;\n  0; //eaimeta@70e063a35619d71f0,\"validated-changeset\"eaimeta@70e063a35619d71f\n  function isMergeableObject(value) {\n    return isNonNullObject(value) && !isSpecial(value);\n  }\n  function isNonNullObject(value) {\n    return !!value && typeof value === 'object' && value !== null;\n  }\n  function isSpecial(value) {\n    let stringValue = Object.prototype.toString.call(value);\n    return stringValue === '[object RegExp]' || stringValue === '[object Date]';\n  }\n\n  // Reconsider when enumerable symbols are removed - https://github.com/emberjs/ember.js/commit/ef0e277533b3eab01e58d68b79d7e37d8b11ee34\n  // function getEnumerableOwnPropertySymbols(target) {\n  //   return Object.getOwnPropertySymbols\n  //     ? Object.getOwnPropertySymbols(target).filter(symbol => {\n  //       return Object.prototype.propertyIsEnumerable.call(target, symbol)\n  //     })\n  //     : [];\n  // }\n\n  function getKeys(target) {\n    return Object.keys(target);\n    // .concat(getEnumerableOwnPropertySymbols(target))\n  }\n\n  function propertyIsOnObject(object, property) {\n    try {\n      return property in object;\n    } catch (_) {\n      return false;\n    }\n  }\n\n  // Ember Data models don't respond as expected to foo.hasOwnProperty, so we do a special check\n  function hasEmberDataProperty(target, key, options) {\n    let fields = options.safeGet(target, 'constructor.fields');\n    return fields instanceof Map && fields.has(key);\n  }\n\n  // Protects from prototype poisoning and unexpected merging up the prototype chain.\n  function propertyIsUnsafe(target, key, options) {\n    if (hasEmberDataProperty(target, key, options)) {\n      return false;\n    }\n    return propertyIsOnObject(target, key) &&\n    // Properties are safe to merge if they don't exist in the target yet,\n    !(Object.prototype.hasOwnProperty.call(target, key) && Object.prototype.propertyIsEnumerable.call(target, key) // unsafe if they exist up the prototype chain,\n    ); // and also unsafe if they're nonenumerable.\n  }\n\n  /**\n   * DFS - traverse depth first until find object with `value`.  Then go back up tree and try on next key\n   * Need to exhaust all possible avenues.\n   *\n   * @method buildPathToValue\n   */\n  function buildPathToValue(source, options, kv, possibleKeys) {\n    Object.keys(source).forEach(key => {\n      let possible = source[key];\n      if (possible && (0, _validatedChangeset.isChange)(possible)) {\n        kv[[...possibleKeys, key].join('.')] = (0, _validatedChangeset.getChangeValue)(possible);\n        return;\n      }\n      if (possible && typeof possible === 'object') {\n        buildPathToValue(possible, options, kv, [...possibleKeys, key]);\n      }\n    });\n    return kv;\n  }\n\n  /**\n   * `source` will always have a leaf key `value` with the property we want to set\n   *\n   * @method mergeTargetAndSource\n   */\n  function mergeTargetAndSource(target, source, options) {\n    getKeys(source).forEach(key => {\n      // proto poisoning.  So can set by nested key path 'person.name'\n      if (propertyIsUnsafe(target, key, options)) {\n        // if safeSet, we will find keys leading up to value and set\n        if (options.safeSet) {\n          const kv = buildPathToValue(source, options, {}, []);\n          // each key will be a path nested to the value `person.name.other`\n          if (Object.keys(kv).length > 0) {\n            // we found some keys!\n            for (key in kv) {\n              const val = kv[key];\n              options.safeSet(target, key, val);\n            }\n          }\n        }\n        return;\n      }\n\n      // else safe key on object\n      if (propertyIsOnObject(target, key) && isMergeableObject(source[key]) && !(0, _validatedChangeset.isChange)(source[key])) {\n        options.safeSet(target, key, mergeDeep(options.safeGet(target, key), options.safeGet(source, key), options));\n      } else {\n        let next = source[key];\n        if ((0, _validatedChangeset.isChange)(next)) {\n          return options.safeSet(target, key, (0, _validatedChangeset.getChangeValue)(next));\n        }\n\n        // if just some normal leaf value, then set\n        return options.safeSet(target, key, (0, _validatedChangeset.normalizeObject)(next));\n      }\n    });\n    return target;\n  }\n\n  /**\n   * goal is to mutate target with source's properties, ensuring we dont encounter\n   * pitfalls of { ..., ... } spread syntax overwriting keys on objects that we merged\n   *\n   * This is also adjusted for Ember peculiarities.  Specifically `options.safeSet` will allows us\n   * to handle properties on Proxy objects (that aren't the target's own property)\n   *\n   * @method mergeDeep\n   */\n  function mergeDeep(target, source, options = {}) {\n    options.safeGet = options.safeGet || function (obj, key) {\n      return obj[key];\n    };\n    options.safeSet = options.safeSet || function (obj, key, value) {\n      return obj[key] = value;\n    };\n    let sourceIsArray = Array.isArray(source);\n    let targetIsArray = Array.isArray(target);\n    let sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n    if (!sourceAndTargetTypesMatch) {\n      let sourceIsArrayLike = (0, _validatedChangeset.isArrayObject)(source);\n      if (targetIsArray && sourceIsArrayLike) {\n        return (0, _validatedChangeset.objectToArray)(mergeTargetAndSource((0, _validatedChangeset.arrayToObject)(target), source, options));\n      }\n      return source;\n    } else if (sourceIsArray) {\n      return source;\n    } else if (target === null || target === undefined) {\n      /**\n       * If the target was set to null or undefined, we always want to return the source.\n       * There is nothing to merge.\n       *\n       * Without this explicit check, typeof null === typeof {any object-like thing}\n       * which means that mergeTargetAndSource will be called, and you can't merge with null\n       */\n      return source;\n    } else {\n      try {\n        return mergeTargetAndSource(target, source, options);\n      } catch (e) {\n        // this is very unlikely to be hit but lets throw an error otherwise\n        throw new Error('Unable to `mergeDeep` with your data. Are you trying to merge two ember-data objects? Please file an issue with ember-changeset.');\n      }\n    }\n  }\n});","define(\"ember-changeset/validated-changeset\", [\"exports\", \"@ember/debug\", \"@ember/object/compat\", \"validated-changeset\", \"@ember/array/proxy\", \"@ember/object/proxy\", \"@ember/object\", \"ember-changeset/utils/merge-deep\", \"ember-changeset/utils/is-object\", \"@glimmer/tracking\", \"@embroider/macros/es-compat2\"], function (_exports, _debug, _compat, _validatedChangeset, _proxy, _proxy2, _object, _mergeDeep, _isObject, _tracking, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.Changeset = Changeset;\n  _exports.EmberValidationChangeset = void 0;\n  _exports.buildOldValues = buildOldValues;\n  _exports.changeset = changeset;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/object/compat\",0,\"validated-changeset\",0,\"@ember/array/proxy\",0,\"@ember/object/proxy\",0,\"@ember/object\",0,\"ember-changeset/utils/merge-deep\",0,\"ember-changeset/utils/is-object\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@embroider/macros\",0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const CHANGES = '_changes';\n  const PREVIOUS_CONTENT = '_previousContent';\n  const CONTENT = '_content';\n  function buildOldValues(content, changes, getDeep) {\n    const obj = Object.create(null);\n    for (let change of changes) {\n      obj[change.key] = getDeep(content, change.key);\n    }\n    return obj;\n  }\n  function isProxy(o) {\n    return !!(o && (o instanceof _proxy2.default || o instanceof _proxy.default));\n  }\n  function maybeUnwrapProxy(o) {\n    return isProxy(o) ? maybeUnwrapProxy((0, _object.get)(o, 'content')) : o;\n  }\n  let Model;\n  {\n    Model = (0, _esCompat.default)(require(\"@ember-data/model\")).default;\n  }\n  let EmberValidationChangeset = _exports.EmberValidationChangeset = (_class = class EmberValidationChangeset extends _validatedChangeset.ValidationChangeset {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_changes\", _descriptor, this);\n      _initializerDefineProperty(this, \"_errors\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_content\", _descriptor3, this);\n      _defineProperty(this, \"isObject\", _isObject.default);\n      _defineProperty(this, \"maybeUnwrapProxy\", maybeUnwrapProxy);\n      // DO NOT override setDeep. Ember.set does not work wth empty hash and nested\n      // key Ember.set({}, 'user.name', 'foo');\n      // override base class\n      // DO NOT override setDeep. Ember.set does not work with Ember.set({}, 'user.name', 'foo');\n      _defineProperty(this, \"getDeep\", _object.get);\n      _defineProperty(this, \"mergeDeep\", _mergeDeep.default);\n    }\n    safeGet(obj, key) {\n      if (Model && obj.relationshipFor?.(key)?.meta?.kind == 'belongsTo') {\n        return obj.belongsTo(key).value();\n      }\n      return (0, _object.get)(obj, key);\n    }\n    safeSet(obj, key, value) {\n      return (0, _object.set)(obj, key, value);\n    }\n\n    /**\n     * @property isValid\n     * @type {Array}\n     */\n    get isValid() {\n      return super.isValid;\n    }\n\n    /**\n     * @property isInvalid\n     * @type {Boolean}\n     */\n    get isInvalid() {\n      return super.isInvalid;\n    }\n\n    /**\n     * @property isPristine\n     * @type {Boolean}\n     */\n    get isPristine() {\n      return super.isPristine;\n    }\n\n    /**\n     * @property isDirty\n     * @type {Boolean}\n     */\n    get isDirty() {\n      return super.isDirty;\n    }\n    get pendingData() {\n      let content = this[CONTENT];\n      let changes = this[CHANGES];\n      let pendingChanges = this.mergeDeep(Object.create(Object.getPrototypeOf(content)), content, {\n        safeGet: _object.get,\n        safeSet: _object.set\n      });\n      return this.mergeDeep(pendingChanges, changes, {\n        safeGet: _object.get,\n        safeSet: _object.set\n      });\n    }\n\n    /**\n     * Manually add an error to the changeset. If there is an existing\n     * error or change for `key`, it will be overwritten.\n     *\n     * @method addError\n     */\n    addError(key, error) {\n      super.addError(key, error);\n      (0, _object.notifyPropertyChange)(this, key);\n      // Return passed-in `error`.\n      return error;\n    }\n\n    /**\n     * Manually push multiple errors to the changeset as an array.\n     *\n     * @method pushErrors\n     */\n    pushErrors(key, ...newErrors) {\n      const {\n        value,\n        validation\n      } = super.pushErrors(key, ...newErrors);\n      (0, _object.notifyPropertyChange)(this, key);\n      return {\n        value,\n        validation\n      };\n    }\n\n    /**\n     * Sets property or error on the changeset.\n     * Returns value or error\n     */\n    _setProperty({\n      key,\n      value,\n      oldValue\n    }) {\n      super._setProperty({\n        key,\n        value,\n        oldValue\n      });\n      (0, _object.notifyPropertyChange)(this, key);\n    }\n\n    /**\n     * Notifies virtual properties set on the changeset of a change.\n     * You can specify which keys are notified by passing in an array.\n     *\n     * @private\n     * @param {Array} keys\n     * @return {Void}\n     */\n    _notifyVirtualProperties(keys) {\n      keys = super._notifyVirtualProperties(keys);\n      (keys || []).forEach(key => (0, _object.notifyPropertyChange)(this, key));\n      return;\n    }\n\n    /**\n     * Deletes a key off an object and notifies observers.\n     */\n    _deleteKey(objName, key = '') {\n      const result = super._deleteKey(objName, key);\n      (0, _object.notifyPropertyChange)(this, key);\n      return result;\n    }\n\n    /**\n     * Executes the changeset if in a valid state.\n     *\n     * @method execute\n     */\n    execute() {\n      let oldContent;\n      if (this.isValid && this.isDirty) {\n        let content = this[CONTENT];\n        let changes = this[CHANGES];\n\n        // keep old values in case of error and we want to rollback\n        oldContent = buildOldValues(content, (0, _validatedChangeset.getKeyValues)(changes), this.getDeep);\n\n        // we want mutation on original object\n        // @tracked\n        this[CONTENT] = this.mergeDeep(content, changes, {\n          safeGet: _object.get,\n          safeSet: _object.set\n        });\n      }\n      this[PREVIOUS_CONTENT] = oldContent;\n      return this;\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_changes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_errors\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_content\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"isValid\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isValid\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isInvalid\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isInvalid\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isPristine\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isPristine\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isDirty\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"isDirty\"), _class.prototype)), _class);\n  /**\n   * Creates new changesets.\n   */\n  function changeset(obj) {\n    (true && !(Boolean(obj)) && (0, _debug.assert)('Underlying object for changeset is missing', Boolean(obj)));\n    (true && !(!Array.isArray(obj)) && (0, _debug.assert)('Array is not a valid type to pass as the first argument to `changeset`', !Array.isArray(obj)));\n    const c = new EmberValidationChangeset(obj);\n    return c;\n  }\n\n  /**\n   * Creates new changesets.\n   * @function Changeset\n   */\n  function Changeset(obj) {\n    const c = changeset(obj);\n    return new Proxy(c, {\n      get(targetBuffer, key /*, receiver*/) {\n        const res = targetBuffer.get(key.toString());\n        return res;\n      },\n      set(targetBuffer, key, value /*, receiver*/) {\n        targetBuffer.set(key.toString(), value);\n        return true;\n      }\n    });\n  }\n});","define(\"ember-cli-app-version/initializer-factory\", [\"exports\", \"ember\", \"@ember/string\"], function (_exports, _ember, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = initializerFactory;\n  const {\n    libraries\n  } = _ember.default;\n  function initializerFactory(name, version) {\n    let registered = false;\n    return function () {\n      if (!registered && name && version) {\n        let appName = (0, _string.classify)(name);\n        libraries.register(appName, version);\n        registered = true;\n      }\n    };\n  }\n});","define(\"ember-cli-app-version/utils/regexp\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.versionRegExp = _exports.versionExtendedRegExp = _exports.shaRegExp = void 0;\n  const versionRegExp = _exports.versionRegExp = /\\d+[.]\\d+[.]\\d+/; // Match any number of 3 sections of digits separated by .\n  const versionExtendedRegExp = _exports.versionExtendedRegExp = /\\d+[.]\\d+[.]\\d+-[a-z]*([.]\\d+)?/; // Match the above but also hyphen followed by any number of lowercase letters, then optionally period and digits\n  const shaRegExp = _exports.shaRegExp = /[a-z\\d]{8}$/; // Match 8 lowercase letters and digits, at the end of the string only (to avoid matching with version extended part)\n});","define(\"ember-cli-chart/components/ember-chart\", [\"exports\", \"@ember/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global Chart */\n  var _default = _exports.default = _component.default.extend({\n    tagName: \"canvas\",\n    attributeBindings: [\"width\", \"height\"],\n    init() {\n      this._super(...arguments);\n      this.plugins = this.plugins || [];\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      let context = this.element;\n      let data = this.data;\n      let type = this.type;\n      let options = this.options;\n      let plugins = this.plugins;\n      let chart = new Chart(context, {\n        type: type,\n        data: data,\n        options: options,\n        plugins: plugins\n      });\n      this.set(\"chart\", chart);\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      this.chart.destroy();\n    },\n    didUpdateAttrs() {\n      this._super(...arguments);\n      this.updateChart();\n    },\n    updateChart() {\n      let chart = this.chart;\n      let data = this.data;\n      let options = this.options;\n      let animate = this.animate;\n      if (chart) {\n        chart.data = data;\n        chart.options = options;\n        if (animate) {\n          chart.update();\n        } else {\n          chart.update(0);\n        }\n        if (this.customLegendElement) {\n          this.customLegendElement.innerHTML = chart.generateLegend();\n        }\n      }\n    }\n  });\n});","define(\"ember-cli-head/components/head-layout\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\"], function (_exports, _component, _templateFactory, _component2, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor;\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#in-element this.headElement insertBefore=null}}\n    {{! template-lint-disable no-forbidden-elements }}\n    <meta name=\"ember-cli-head-start\" content=\"\"><HeadContent /><meta name=\"ember-cli-head-end\" content=\"\">\n  {{/in-element}}\n  \n  */\n  {\n    \"id\": \"5Hr1QmAy\",\n    \"block\": \"[[[40,[[[1,\\\"  \\\"],[10,\\\"meta\\\"],[14,3,\\\"ember-cli-head-start\\\"],[14,\\\"content\\\",\\\"\\\"],[12],[13],[8,[39,2],null,null,null],[10,\\\"meta\\\"],[14,3,\\\"ember-cli-head-end\\\"],[14,\\\"content\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],\\\"%cursor:0%\\\",[28,[37,1],[[30,0,[\\\"headElement\\\"]]],null],null]],[],false,[\\\"in-element\\\",\\\"-in-el-null\\\",\\\"head-content\\\"]]\",\n    \"moduleName\": \"ember-cli-head/components/head-layout.hbs\",\n    \"isStrictMode\": false\n  });\n  let HeadLayout = _exports.default = (_dec = (0, _service.inject)('-document'), (_class = class HeadLayout extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"document\", _descriptor, this);\n      /**\n       * If true, this will tear down any existing head on init of this component.\n       * This is useful if there is a head built with fastboot - it will then be torn down when this is initialized in the browser.\n       * If you do not want this behavior, you can set this to false.\n       * @public\n       */\n      _defineProperty(this, \"shouldTearDownOnInit\", true);\n      /**\n       * The element to render into. Defaults to <head> in `init`, overridable for our own tests only.\n       * @private\n       */\n      _defineProperty(this, \"headElement\", this.args.headElement || this.document.head);\n      if (this.shouldTearDownOnInit) {\n        this._tearDownHead();\n      }\n    }\n\n    /**\n     * Tear down any previous head, if there was one.\n     * @private\n     */\n    _tearDownHead() {\n      if (this._isFastboot()) {\n        return;\n      }\n\n      // clear fast booted head (if any)\n      let document = this.document;\n      let startMeta = document.querySelector('meta[name=\"ember-cli-head-start\"]');\n      let endMeta = document.querySelector('meta[name=\"ember-cli-head-end\"]');\n      if (startMeta && endMeta) {\n        let el = startMeta.nextSibling;\n        while (el && el !== endMeta) {\n          document.head.removeChild(el);\n          el = startMeta.nextSibling;\n        }\n        document.head.removeChild(startMeta);\n        document.head.removeChild(endMeta);\n      }\n    }\n    _isFastboot() {\n      return typeof FastBoot !== 'undefined';\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"document\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class));\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, HeadLayout);\n});","define(\"ember-cli-head/services/head-data\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class HeadData extends _service.default {}\n  _exports.default = HeadData;\n});","define(\"ember-cli-mirage/assert\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _miragejs._assert;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n});","define(\"ember-cli-mirage/ember-data\", [\"exports\", \"require\", \"ember-get-config\", \"ember-cli-mirage/assert\", \"ember-cli-mirage/utils/ember-data\", \"miragejs\", \"ember-cli-mirage/serializers/ember-data-serializer\"], function (_exports, _require, _emberGetConfig, _assert, _emberData, _miragejs, _emberDataSerializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.applyEmberDataSerializers = applyEmberDataSerializers;\n  _exports.discoverEmberDataModels = discoverEmberDataModels;\n  _exports.getDsModels = getDsModels;\n  _exports.getDsSerializers = getDsSerializers;\n  _exports.modelFor = modelFor;\n  0; //eaimeta@70e063a35619d71f0,\"require\",0,\"ember-get-config\",0,\"ember-cli-mirage/assert\",0,\"ember-cli-mirage/utils/ember-data\",0,\"miragejs\",0,\"ember-cli-mirage/serializers/ember-data-serializer\",0,\"miragejs\"eaimeta@70e063a35619d71f\n  /* global requirejs */\n  const {\n    modulePrefix,\n    podModulePrefix\n  } = _emberGetConfig.default;\n\n  // Caches\n  let DsModels, Models;\n  let DsSerializers, Serializers;\n\n  /**\n   * Get all ember data models under the app's namespaces\n   *\n   * @method getDsModels\n   * @private\n   * @hide\n   * @param {StoreService} store\n   * @return {Object} models\n   */\n  function getDsModels(store) {\n    if (DsModels) {\n      return DsModels;\n    }\n    let moduleMap = requirejs.entries;\n    let classicModelMatchRegex = new RegExp(`^${modulePrefix}/models/(.*)$`, 'i');\n    let podModelMatchRegex = new RegExp(`^${podModulePrefix || modulePrefix}/(.*)/model$`, 'i');\n    DsModels = {};\n    if (!_emberData.hasEmberData) {\n      return DsModels;\n    }\n    Object.keys(moduleMap).forEach(path => {\n      let matches = path.match(classicModelMatchRegex) || path.match(podModelMatchRegex);\n      if (matches && matches[1]) {\n        let modelName = matches[1];\n        let model = store.modelFor(modelName);\n        if ((0, _emberData.isDsModel)(model)) {\n          DsModels[modelName] = model;\n        }\n      }\n    });\n    return DsModels;\n  }\n\n  /**\n   * Get all mirage models for each of the ember-data models\n   *\n   * @method discoverEmberDataModels\n   * @param {StoreService} store\n   * @return {Object} models\n   */\n  function discoverEmberDataModels(store) {\n    if (Models || !store) {\n      return Models;\n    }\n    let emberDataModels = getDsModels(store);\n    Models = {};\n    Object.keys(emberDataModels).forEach(modelName => {\n      let model = emberDataModels[modelName];\n      let attrs = {};\n      model.eachRelationship((name, r) => {\n        if (r.kind === 'belongsTo') {\n          attrs[name] = (0, _miragejs.belongsTo)(r.type, r.options);\n        } else if (r.kind === 'hasMany') {\n          attrs[name] = (0, _miragejs.hasMany)(r.type, r.options);\n        }\n      });\n      Models[modelName] = _miragejs.Model.extend(attrs);\n    });\n    return Models;\n  }\n\n  /**\n   * A lookup method for an autogenerated model\n   *\n   * @method modelFor\n   * @private\n   * @param  {String} name\n   * @return {Model}\n   * @hide\n   */\n  function modelFor(name) {\n    let models = discoverEmberDataModels();\n    (0, _assert.default)(!!models[name], `Model of type '${name}' does not exist.`);\n    return models[name];\n  }\n\n  /**\n   * Get all ember data serializers under the app's namespaces\n   *\n   * @method getDsSerializers\n   * @private\n   * @hide\n   * @return {Object} serializers\n   */\n  function getDsSerializers() {\n    if (DsSerializers) {\n      return DsSerializers;\n    }\n    let moduleMap = requirejs.entries;\n    let classicSerializerMatchRegex = new RegExp(`^${modulePrefix}/serializers/(.*)$`, 'i');\n    let podSerializerMatchRegex = new RegExp(`^${podModulePrefix || modulePrefix}/(.*)/serializer$`, 'i');\n    DsSerializers = {};\n    if (!_emberData.hasEmberData) {\n      return DsSerializers;\n    }\n    Object.keys(moduleMap).forEach(path => {\n      let matches = path.match(classicSerializerMatchRegex) || path.match(podSerializerMatchRegex);\n      if (matches && matches[1]) {\n        let serializerName = matches[1];\n        let serializer = (0, _require.default)(path, null, null, true).default;\n        // in mirage, registering models takes care of camelize, serializers do not\n        DsSerializers[(0, _miragejs._utilsInflectorCamelize)(serializerName)] = serializer;\n      }\n    });\n    return DsSerializers;\n  }\n\n  /**\n   * Generate mirage serializers for each of the ember-data serializers\n   * if a mirage serializer already exists, apply the ember-data transforms\n   *\n   * @method applyEmberDataSerializers\n   * @return {Object} serializers\n   */\n  function applyEmberDataSerializers(mirageSerializers = {}) {\n    if (Serializers) {\n      return Serializers;\n    }\n    let emberDataSerializers = getDsSerializers();\n\n    // Start off with the mirage serializers,\n    // so if there are any mirage serializers with no ED counterpart, they are in the list\n    Serializers = mirageSerializers;\n    Object.keys(emberDataSerializers).forEach(serializerName => {\n      let dsSerializer = emberDataSerializers[serializerName];\n\n      // Seems I have to create it to get access to some of the properties\n      dsSerializer = dsSerializer.create ? dsSerializer.create() : new dsSerializer();\n      let transforms;\n      let primaryKey = dsSerializer.primaryKey;\n      let attrs = dsSerializer.attrs;\n      if (primaryKey || attrs) {\n        let Serializer = mirageSerializers[serializerName] || mirageSerializers.application || _emberDataSerializer.default;\n        if (attrs) {\n          let serializer = Serializer.create ? Serializer.create() : new Serializer();\n          transforms = serializer.transforms || {};\n          Object.keys(attrs).forEach(key => {\n            let transform = attrs[key];\n            let serializerTransform = serializer.transforms ? serializer.transforms[key] : {};\n            let resolvedTransform = typeof attrs[key] === 'string' ? {\n              key: attrs[key]\n            } : {\n              key: attrs[key].key\n            };\n            if (transform.serialize !== undefined) {\n              resolvedTransform.deserialize = transform.serialize;\n            }\n            if (transform.deserialize !== undefined) {\n              resolvedTransform.serialize = transform.deserialize;\n            }\n            transforms[key] = Object.assign(resolvedTransform, serializerTransform);\n          });\n        }\n        Serializers[serializerName] = Serializer.extend({\n          primaryKey,\n          transforms\n        });\n      }\n    });\n    return Serializers;\n  }\n});","define(\"ember-cli-mirage/get-rfc232-test-context\", [\"exports\", \"@embroider/macros/runtime\", \"@embroider/macros/es-compat2\"], function (_exports, _runtime, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getRfc232TestContext;\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/macros\",0,\"@ember/test-helpers\"eaimeta@70e063a35619d71f\n  /**\n    Helper to get our rfc232/rfc268 test context object, or null if we're not in\n    such a test.\n  \n    @hide\n  */\n  function getRfc232TestContext() {\n    // Support older versions of `ember-qunit` that don't have\n    // `@ember/test-helpers` (and therefore cannot possibly be running an\n    // rfc232/rfc268 test).\n    if (true && (0, _runtime.isTesting)()) {\n      let {\n        getContext\n      } = (0, _esCompat.default)(require(\"@ember/test-helpers\"));\n      return getContext();\n    }\n  }\n});","define(\"ember-cli-mirage/index\", [\"exports\", \"ember-cli-mirage/ember-data\", \"ember-cli-mirage/serializers/ember-data-serializer\"], function (_exports, _emberData, _emberDataSerializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"EmberDataSerializer\", {\n    enumerable: true,\n    get: function () {\n      return _emberDataSerializer.default;\n    }\n  });\n  Object.defineProperty(_exports, \"applyEmberDataSerializers\", {\n    enumerable: true,\n    get: function () {\n      return _emberData.applyEmberDataSerializers;\n    }\n  });\n  Object.defineProperty(_exports, \"discoverEmberDataModels\", {\n    enumerable: true,\n    get: function () {\n      return _emberData.discoverEmberDataModels;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-mirage/ember-data\",0,\"ember-cli-mirage/serializers/ember-data-serializer\"eaimeta@70e063a35619d71f\n});","define(\"ember-cli-mirage/instance-initializers/ember-cli-mirage-autostart\", [\"exports\", \"@ember/destroyable\", \"ember-cli-mirage/get-rfc232-test-context\", \"ember-cli-mirage/start-mirage\"], function (_exports, _destroyable, _getRfc232TestContext, _startMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/destroyable\",0,\"ember-cli-mirage/get-rfc232-test-context\",0,\"ember-cli-mirage/start-mirage\"eaimeta@70e063a35619d71f\n  /**\n    If we are running an rfc232/rfc268 test then we want to support the\n    `autostart` configuration option, which auto-starts mirage before the test\n    runs and shuts it down afterwards, and also sets `this.server` on the test\n    context so the tests don't need to use the global `server`. We do this in an\n    instance initializer because initializers only run once per test run, not\n    before and after each test.\n  \n    @hide\n  */\n  function initialize(appInstance) {\n    let testContext = (0, _getRfc232TestContext.default)();\n    if (testContext) {\n      let {\n        'ember-cli-mirage': {\n          autostart\n        } = {}\n      } = appInstance.resolveRegistration('config:environment');\n      if (autostart) {\n        testContext.server = (0, _startMirage.default)(appInstance);\n\n        // Ensure that the server is shut down when the application is destroyed.\n        (0, _destroyable.registerDestructor)(appInstance, () => {\n          testContext.server.shutdown();\n          delete testContext.server;\n        });\n      }\n    }\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"ember-cli-mirage/serializers/ember-data-serializer\", [\"exports\", \"miragejs\", \"@ember/object\"], function (_exports, _miragejs, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  /**\n   * This serializer does not use following mirage properties to control how things are serialized\n   *\n   *     attrs - see `serialize` on the transform property\n   *     embed - see `serialize` on the transform property\n   *     serializeIds - see serialize on the transform property\n   *\n   * The above configuration was applied to every property on the serializer, whereas the transforms allows you\n   * to specify a value for each property or relation.\n   *\n   * This serializer uses a property `transforms` that follows the Ember Data serializer format of `attrs` to specify the\n   * serialization (`attrs` is already in use by mirageJs).\n   *\n   * The startMirage has been modified to also generate serializers from the Ember Data serializers supporting\n   * the key and the serialize/deserialize properties with the value of (true/ids/records). If a serializer is\n   * already present in the mirage directory, the transforms will be added to it. If that serializer is not\n   * a serializer of this type, there will be no effect.  Ensure that your serializers and/or the application\n   * serializer in the mirage directory is a type of this serializer\n   *\n   * @class EmberDataSerializer\n   * @constructor\n   * @public\n   *\n   */\n  let EmberDataSerializer = _miragejs.RestSerializer.extend({\n    /**\n     * The property name for the primary key for mirage and ember data is normally `id`. This allows you\n     * to specify what that property name should be in the JSON.\n     */\n    primaryKey: 'id',\n    /**\n     * Transforms follow the format of ember data serializer attrs as follows\n     *\n     * {\n     *   property: {    // property would be the name of the property in the mirage store\n     *      key: 'externalKey',   // externalKey would be the name in the JSON\n     *      serialize: 'ids',     // how should this property be serialized and deserialized\n     *      deserialize: 'ids'    // the default is 'ids' that is the id of the releation\n     *                            // or 'records', that is, embed the full record instead of the id\n     *                            // or false, do not serialize or deserialize as applied\n     *   }\n     * }\n     *\n     * These transforms will be created from the attrs on the corresponding serializer in ember data much like\n     * the models for mirage are created from the models in in ember date. If the transforms key is specified, it\n     * will overlay the definition created from the serializer key for key. That is you could override some\n     * of the transform definition.\n     */\n    transforms: undefined,\n    // resolved transforms\n    _transforms: undefined,\n    // These are the defaults\n    // include: []\n\n    keyForId() {\n      return this.primaryKey;\n    },\n    getKeysForIncluded() {\n      return typeof this.include === 'function' ? this.include(this.request, this.primaryResource) : this.include;\n    },\n    getTransforms() {\n      return this.transforms || {};\n    },\n    getResolvedTransforms() {\n      if (!this._resolvedTransforms) {\n        this._resolvedTransforms = {\n          serialize: {},\n          normalize: {}\n        };\n      }\n      return this._resolvedTransforms;\n    },\n    getTransformForSerialize(key) {\n      let resolvedTransforms = this.getResolvedTransforms();\n      let transforms = this.getTransforms();\n      if (!resolvedTransforms.serialize[key]) {\n        let transform = typeof transforms[key] === 'string' ? {\n          key: transforms[key]\n        } : Object.assign({}, transforms[key]);\n        resolvedTransforms.serialize[key] = Object.assign({\n          key: key,\n          serialize: 'ids',\n          deserialize: 'ids'\n        }, transform);\n      }\n      return resolvedTransforms.serialize[key];\n    },\n    getTransformForNormalize(key) {\n      let resolvedTransforms = this.getResolvedTransforms();\n      if (!resolvedTransforms.normalize[key]) {\n        let transforms = this.getTransforms();\n        let foundKey;\n        let foundTransform = Object.keys(transforms).find(item => {\n          foundKey = item;\n          return transforms[item].key === key;\n        });\n        let transform = foundTransform ? Object.assign({}, transforms[foundKey], {\n          key: foundKey\n        }) : {\n          key: key,\n          serialize: 'ids',\n          deserialize: 'ids'\n        };\n        resolvedTransforms.normalize[key] = transform;\n      }\n      return resolvedTransforms.normalize[key];\n    },\n    /**\n     *\n     * @param model\n     * @param removeForeignKeys\n     * @param didSerialize\n     * @returns {*}\n     * @private\n     */\n    _hashForModel(model, removeForeignKeys, didSerialize = {}) {\n      let attrs = this._attrsForModel(model);\n      let newDidSerialize = Object.assign({}, didSerialize);\n      newDidSerialize[model.modelName] = newDidSerialize[model.modelName] || {};\n      newDidSerialize[model.modelName][model.id] = true;\n      model.associationKeys.forEach(key => {\n        let transform = this.getTransformForSerialize(key);\n        if (transform.serialize) {\n          let associatedResource = model[key];\n          let serializeOption = transform.serialize;\n          if (associatedResource && (0, _object.get)(newDidSerialize, `${associatedResource.modelName}.${associatedResource.id}`)) {\n            // force it to IDS if we already have serialized it to prevent recursion\n            // TODO: However is the end system wants records, we need to send records, so this really should be do records, dont resurse\n            serializeOption = 'ids';\n          }\n          if (serializeOption === 'records') {\n            let [associatedResourceHash] = this.getHashForResource(associatedResource, false, newDidSerialize, true);\n            let formattedKey = this._keyForProperty(key) || this.isCollection(associatedResource) ? this.keyForRelationship(key) : this.keyForEmbeddedRelationship(key);\n            attrs[formattedKey] = associatedResourceHash;\n          } else {\n            let formattedKey = this._keyForProperty(key) || this.keyForRelationshipIds(key);\n            if (this.isCollection(associatedResource)) {\n              attrs[formattedKey] = model[`${this._container.inflector.singularize(key)}Ids`];\n            } else {\n              attrs[formattedKey] = model[`${this._container.inflector.singularize(key)}Id`];\n            }\n          }\n        }\n      });\n      return attrs;\n    },\n    _keyForProperty(attr) {\n      let transform = this.getTransformForSerialize(attr);\n      return transform.key;\n    },\n    keyForAttribute(attr) {\n      if (attr === 'id') {\n        return this.keyForId();\n      }\n      return this._keyForProperty(attr) || _miragejs.RestSerializer.prototype.keyForAttribute.apply(this, arguments);\n    },\n    keyForRelationship(type) {\n      return this._keyForProperty(type) || _miragejs.RestSerializer.prototype.keyForRelationship.apply(this, arguments);\n    },\n    keyForEmbeddedRelationship(attributeName) {\n      return this._keyForProperty(attributeName) || _miragejs.RestSerializer.prototype.keyForEmbeddedRelationship.apply(this, arguments);\n    },\n    keyForRelationshipIds(type) {\n      return this._keyForProperty(type) || _miragejs.RestSerializer.prototype.keyForRelationshipIds.apply(this, arguments);\n    },\n    keyForForeignKey(relationshipName) {\n      return this._keyForProperty(relationshipName) || _miragejs.RestSerializer.prototype.keyForForeignKey.apply(this, arguments);\n    },\n    normalize(payload) {\n      // was it not wrapped when serialized?\n      if (this.root === false) {\n        let p = {};\n        p[this.type] = payload;\n        payload = p;\n      }\n      let type = Object.keys(payload)[0];\n      let attrs = payload[type];\n      let modelName = (0, _miragejs._utilsInflectorCamelize)(type);\n      let modelClass = this.schema.modelClassFor(modelName);\n      let {\n        belongsToAssociations,\n        hasManyAssociations\n      } = modelClass;\n      let belongsToKeys = Object.keys(belongsToAssociations);\n      let hasManyKeys = Object.keys(hasManyAssociations);\n      let jsonApiPayload = {\n        data: {\n          type: this._container.inflector.pluralize(type),\n          attributes: {}\n        }\n      };\n      if (attrs[this.primaryKey]) {\n        jsonApiPayload.data.id = attrs[this.primaryKey];\n      }\n      let relationships = {};\n      Object.keys(attrs).forEach(attrKey => {\n        if (attrKey !== this.primaryKey) {\n          let transform = this.getTransformForNormalize(attrKey);\n          let key = transform.key || attrKey;\n          if (this.normalizeIds) {\n            if (belongsToKeys.includes(key)) {\n              let association = belongsToAssociations[key];\n              let associationModel = association.modelName;\n              relationships[(0, _miragejs._utilsInflectorDasherize)(key)] = {\n                data: {\n                  type: associationModel,\n                  id: attrs[attrKey]\n                }\n              };\n            } else if (hasManyKeys.includes(key)) {\n              let association = hasManyAssociations[key];\n              let associationModel = association.modelName;\n              let data = attrs[attrKey].map(id => {\n                return {\n                  type: associationModel,\n                  id\n                };\n              });\n              relationships[(0, _miragejs._utilsInflectorDasherize)(key)] = {\n                data\n              };\n            } else {\n              jsonApiPayload.data.attributes[(0, _miragejs._utilsInflectorDasherize)(key)] = attrs[attrKey];\n            }\n          } else {\n            jsonApiPayload.data.attributes[(0, _miragejs._utilsInflectorDasherize)(key)] = attrs[attrKey];\n          }\n        }\n      });\n      if (Object.keys(relationships).length) {\n        jsonApiPayload.data.relationships = relationships;\n      }\n      return jsonApiPayload;\n    }\n  });\n  var _default = _exports.default = EmberDataSerializer;\n});","define(\"ember-cli-mirage/start-mirage\", [\"exports\", \"ember-cli-mirage/utils/read-modules\", \"ember-inflector\", \"@ember/debug\"], function (_exports, _readModules, _emberInflector, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = startMirage;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-mirage/utils/read-modules\",0,\"ember-inflector\",0,\"@ember/debug\"eaimeta@70e063a35619d71f\n  /**\n    Helper to start mirage. This should not be called directly. In rfc232/rfc268\n    tests, use `setupMirage()` or the `autoboot` option in the addon config\n    in the environment.\n  \n    @hide\n  */\n  function startMirage(owner, {\n    env,\n    makeServer\n  } = {}) {\n    if (!env || !makeServer) {\n      if (!owner) {\n        throw new Error('You must pass `owner` to startMirage()');\n      }\n      env = env || owner.resolveRegistration('config:environment');\n\n      // These are set from `<app>/initializers/ember-cli-mirage`\n      makeServer = makeServer || owner.resolveRegistration('mirage:make-server');\n    }\n    let environment = env.environment;\n    let modules = (0, _readModules.default)(env.modulePrefix);\n    let options = Object.assign(modules, {\n      environment,\n      store: owner.lookup('service:store')\n    });\n    options.inflector = {\n      singularize: _emberInflector.singularize,\n      pluralize: _emberInflector.pluralize\n    };\n\n    // MakeServer must accept at least one param\n    (true && !(makeServer) && (0, _debug.assert)('There is no makeServer function passed or registered as mirage:make-server', makeServer));\n    (true && !(makeServer.length > 0) && (0, _debug.assert)('Mirage config default exported function must at least one parameter', makeServer.length > 0));\n    let server = makeServer(options);\n    if (typeof location !== 'undefined' && location.search.indexOf('mirageLogging') !== -1) {\n      server.logging = true;\n    }\n    return server;\n  }\n});","define(\"ember-cli-mirage/utils/ember-data\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.hasEmberData = void 0;\n  _exports.isDsModel = isDsModel;\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/macros\"eaimeta@70e063a35619d71f\n  /**\n    @hide\n  */\n  const hasEmberData = _exports.hasEmberData = true || true;\n\n  /**\n    @hide\n  */\n  function isDsModel(m) {\n    return m && typeof m.eachRelationship === 'function';\n  }\n});","define(\"ember-cli-mirage/utils/read-modules\", [\"exports\", \"ember-cli-mirage/assert\", \"miragejs\", \"ember-inflector\", \"require\"], function (_exports, _assert, _miragejs, _emberInflector, _require) {\n  /* global requirejs */\n  /* eslint-env node */\n  'use strict';\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-mirage/assert\",0,\"miragejs\",0,\"ember-inflector\",0,\"require\"eaimeta@70e063a35619d71f\n  /**\n    This function looks through all files that have been loaded by Ember CLI and\n    finds the ones under /mirage/[factories, fixtures, scenarios, models]/, and exports\n    a hash containing the names of the files as keys and the data as values.\n  \n    @hide\n  */\n  function _default(prefix) {\n    let modules = ['factories', 'fixtures', 'scenarios', 'models', 'serializers', 'identity-managers'];\n    let mirageModuleRegExp = new RegExp(`^${prefix}/mirage/(${modules.join('|')})`);\n    let modulesMap = modules.reduce((memo, name) => {\n      memo[(0, _miragejs._utilsInflectorCamelize)(name)] = {};\n      return memo;\n    }, {});\n    Object.keys(requirejs.entries).filter(function (key) {\n      return mirageModuleRegExp.test(key);\n    }).forEach(function (moduleName) {\n      if (moduleName.match('.jshint')) {\n        // ignore autogenerated .jshint files\n        return;\n      }\n      let moduleParts = moduleName.split('/');\n      let moduleTypeIndex = moduleParts.indexOf('mirage') + 1;\n      let moduleType = (0, _miragejs._utilsInflectorCamelize)(moduleParts[moduleTypeIndex]);\n      let moduleKey = moduleParts.slice([moduleTypeIndex + 1]).join('/');\n      if (moduleType === 'scenario') {\n        (0, _assert.default)('Only scenario/default.js is supported at this time.', moduleKey !== 'default');\n      }\n\n      /*\n      Ensure fixture keys are pluralized\n      */\n      if (moduleType === 'fixtures') {\n        moduleKey = (0, _emberInflector.pluralize)(moduleKey);\n      }\n      let module = (0, _require.default)(moduleName, null, null, true);\n      if (!module) {\n        throw new Error(`${moduleName} must export a ${moduleType}`);\n      }\n      let data = module.default;\n      modulesMap[moduleType][(0, _miragejs._utilsInflectorCamelize)(moduleKey)] = data;\n    });\n    return modulesMap;\n  }\n});","define(\"ember-cli-notifications/components/notification-container\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template\", \"@ember/service\", \"ember-cli-notifications/templates/components/notification-container\"], function (_exports, _component, _object, _template, _service, _notificationContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _component.default.extend({\n    layout: _notificationContainer.default,\n    position: 'top',\n    notifications: (0, _service.inject)(),\n    classNameBindings: ['computedPosition', ':ember-cli-notifications-notification__container'],\n    attributeBindings: ['computedStyle:style', 'position:data-test-notification-container'],\n    zindex: '1060',\n    computedPosition: (0, _object.computed)('position', function () {\n      return `ember-cli-notifications-notification__container--${this.get('position')}`;\n    }),\n    computedStyle: (0, _object.computed)('zindex', function () {\n      return (0, _template.htmlSafe)(`z-index: ${this.get('zindex')};`);\n    })\n  });\n});","define(\"ember-cli-notifications/components/notification-message\", [\"exports\", \"@ember/component\", \"ember\", \"@ember/template\", \"@ember/object\", \"@ember/service\", \"ember-cli-notifications/templates/components/notification-message\"], function (_exports, _component, _ember, _template, _object, _service, _notificationMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _component.default.extend({\n    layout: _notificationMessage.default,\n    tagName: '',\n    notifications: (0, _service.inject)(),\n    paused: false,\n    dismissClass: (0, _object.computed)('notification.dismiss', function () {\n      if (!this.get('notification.dismiss')) return 'c-notification--in';\n      return false;\n    }),\n    clickableClass: (0, _object.computed)('notification.onClick', function () {\n      if (this.get('notification.onClick')) return 'c-notification--clickable';\n      return false;\n    }),\n    notificationSVGPath: (0, _object.computed)('notification.type', function () {\n      switch (this.get('notification.type')) {\n        case \"error\":\n        case \"info\":\n          return 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z';\n        case \"success\":\n          return 'M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z';\n        case \"warning\":\n          return 'M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z';\n      }\n      return '';\n    }),\n    processedType: (0, _object.computed)('notification.type', function () {\n      if (this.get('notification.type') && ['info', 'success', 'warning', 'error'].indexOf(this.get('notification.type')) !== -1) {\n        return `c-notification--${this.get('notification.type')}`;\n      }\n      return '';\n    }),\n    // Apply the clear animation duration rule inline\n    notificationClearDuration: (0, _object.computed)('paused', 'notification.clearDuration', function () {\n      const duration = _ember.default.Handlebars.Utils.escapeExpression(this.get('notification.clearDuration'));\n      const playState = this.get('paused') ? 'paused' : 'running';\n      return (0, _template.htmlSafe)(`animation-duration: ${duration}ms; -webkit-animation-duration: ${duration}ms; animation-play-state: ${playState}; -webkit-animation-play-state: ${playState}`);\n    }),\n    actions: {\n      handleOnClick() {\n        if (this.get('notification.onClick')) {\n          this.get('notification.onClick')(this.get('notification'));\n        }\n      },\n      removeNotification() {\n        this.get('notifications').removeNotification(this.get('notification'));\n      },\n      handleMouseEnter() {\n        if (this.get('notification.autoClear')) {\n          this.set('paused', true);\n          this.notifications.pauseAutoClear(this.get('notification'));\n        }\n      },\n      handleMouseLeave() {\n        if (this.get('notification.autoClear')) {\n          this.set('paused', false);\n          this.notifications.setupAutoClear(this.get('notification'));\n        }\n      }\n    }\n  });\n});","define(\"ember-cli-notifications/helpers/equal\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.equal = equal;\n  function equal(params) {\n    return params[0] === params[1];\n  }\n  var _default = _exports.default = (0, _helper.helper)(equal);\n});","define(\"ember-cli-notifications/services/notifications\", [\"exports\", \"@ember/service\", \"@ember/polyfills\", \"@ember/array\", \"@ember/object\", \"@ember/runloop\", \"ember-get-config\"], function (_exports, _service, _polyfills, _array, _object, _runloop, _emberGetConfig) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const notificationAssign = _polyfills.assign || _polyfills.merge;\n  const globals = _emberGetConfig.default['ember-cli-notifications'] || {}; // Import app config object\n  var _default = _exports.default = _service.default.extend({\n    init() {\n      this._super(...arguments);\n      this.set('content', (0, _array.A)());\n    },\n    // Method for adding a notification\n    addNotification(options) {\n      // If no message is set, throw an error\n      if (!options.message) {\n        throw new Error(\"No notification message set\");\n      }\n      const notification = _object.default.create({\n        message: options.message,\n        type: options.type || 'info',\n        autoClear: options.autoClear ?? globals.autoClear ?? false,\n        clearDuration: options.clearDuration ?? globals.clearDuration ?? 3200,\n        onClick: options.onClick,\n        htmlContent: options.htmlContent || false,\n        cssClasses: options.cssClasses\n      });\n      this.content.pushObject(notification);\n      if (notification.autoClear) {\n        notification.set('remaining', notification.get('clearDuration'));\n        this.setupAutoClear(notification);\n      }\n      return notification;\n    },\n    // Helper methods for each type of notification\n    error(message, options) {\n      return this.addNotification(notificationAssign({\n        message: message,\n        type: 'error'\n      }, options));\n    },\n    success(message, options) {\n      return this.addNotification(notificationAssign({\n        message: message,\n        type: 'success'\n      }, options));\n    },\n    info(message, options) {\n      return this.addNotification(notificationAssign({\n        message: message,\n        type: 'info'\n      }, options));\n    },\n    warning(message, options) {\n      return this.addNotification(notificationAssign({\n        message: message,\n        type: 'warning'\n      }, options));\n    },\n    removeNotification(notification) {\n      if (!notification) {\n        return;\n      }\n      notification.set('dismiss', true);\n\n      // Delay removal from DOM for dismissal animation\n      _runloop.run.later(this, () => {\n        this.content.removeObject(notification);\n      }, 500);\n    },\n    setupAutoClear(notification) {\n      notification.set('startTime', Date.now());\n      const timer = _runloop.run.later(this, () => {\n        // Hasn't been closed manually\n        if (this.content.indexOf(notification) >= 0) {\n          this.removeNotification(notification);\n        }\n      }, notification.get('remaining'));\n      notification.set('timer', timer);\n    },\n    pauseAutoClear(notification) {\n      _runloop.run.cancel(notification.get('timer'));\n      const elapsed = Date.now() - notification.get('startTime');\n      const remaining = notification.get('clearDuration') - elapsed;\n      notification.set('remaining', remaining);\n    },\n    clearAll() {\n      this.get('content').forEach(notification => {\n        this.removeNotification(notification);\n      });\n      return this;\n    },\n    setDefaultAutoClear(autoClear) {\n      (0, _object.set)(globals, 'autoClear', autoClear);\n    },\n    setDefaultClearDuration(clearDuration) {\n      (0, _object.set)(globals, 'clearDuration', clearDuration);\n    }\n  });\n});","define(\"ember-cli-notifications/templates/components/notification-container\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"+3BjWwu2\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"notifications\\\",\\\"content\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[1,[28,[35,2],null,[[\\\"notification\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null]],[\\\"notification\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"notification-message\\\"]]\",\n    \"moduleName\": \"ember-cli-notifications/templates/components/notification-container.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-cli-notifications/templates/components/notification-message\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"5JpTP0Je\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"c-notification \\\",[30,0,[\\\"dismissClass\\\"]],\\\" \\\",[30,0,[\\\"clickableClass\\\"]],\\\" \\\",[30,0,[\\\"processedType\\\"]],\\\" \\\",[30,0,[\\\"notification\\\",\\\"cssClasses\\\"]]]]],[16,\\\"data-test-notification-message\\\",[33,0,[\\\"type\\\"]]],[4,[38,1],[\\\"mouseenter\\\",[28,[37,2],[[30,0],\\\"handleMouseEnter\\\"],null]],null],[4,[38,1],[\\\"mouseleave\\\",[28,[37,2],[[30,0],\\\"handleMouseLeave\\\"],null]],null],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"c-notification__icon\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"notificationSVGPath\\\"]],[[[1,\\\"      \\\"],[10,\\\"svg\\\"],[14,0,\\\"c-notification__svg\\\"],[14,\\\"fill\\\",\\\"#FFFFFF\\\"],[14,\\\"viewBox\\\",\\\"0 0 24 24\\\"],[14,\\\"height\\\",\\\"48\\\"],[14,\\\"width\\\",\\\"48\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"path\\\"],[15,\\\"d\\\",[30,0,[\\\"notificationSVGPath\\\"]]],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,0],[24,0,\\\"c-notification__content\\\"],[4,[38,2],[[30,0],\\\"handleOnClick\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[33,0,[\\\"htmlContent\\\"]],[[[1,\\\"      \\\"],[2,[33,0,[\\\"message\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[1,[33,0,[\\\"message\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[11,0],[24,0,\\\"c-notification__close\\\"],[24,\\\"title\\\",\\\"Dismiss this notification\\\"],[4,[38,2],[[30,0],\\\"removeNotification\\\"],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n      \\\"],[10,\\\"svg\\\"],[14,0,\\\"c-notification__svg\\\"],[14,3,\\\"close\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"viewBox\\\",\\\"0 0 26 26\\\"],[14,\\\"width\\\",\\\"1024\\\"],[14,\\\"height\\\",\\\"1024\\\"],[14,\\\"fill\\\",\\\"#FFF\\\"],[12],[10,\\\"path\\\"],[14,\\\"d\\\",\\\"M21.734 19.64l-2.097 2.094a.983.983 0 0 1-1.395 0L13 16.496l-5.238 5.238a.988.988 0 0 1-1.399 0l-2.097-2.093a.988.988 0 0 1 0-1.399L9.504 13 4.266 7.762a.995.995 0 0 1 0-1.399l2.097-2.097a.988.988 0 0 1 1.399 0L13 9.508l5.242-5.242a.983.983 0 0 1 1.395 0l2.097 2.093a.996.996 0 0 1 .004 1.403L16.496 13l5.238 5.242a.988.988 0 0 1 0 1.399z\\\"],[12],[13],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[33,0,[\\\"autoClear\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"c-notification__countdown\\\"],[15,5,[30,0,[\\\"notificationClearDuration\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"notification\\\",\\\"on\\\",\\\"action\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"ember-cli-notifications/templates/components/notification-message.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-concurrency/-private/async-arrow-runtime\", [\"exports\", \"ember-concurrency/-private/task-factory\"], function (_exports, _taskFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.buildTask = buildTask;\n  /**\n   * This builder function is called by the transpiled code from\n   * `task(async () => {})`. See lib/babel-plugin-transform-ember-concurrency-async-tasks.js\n   *\n   * @private\n   */\n  function buildTask(contextFn, options, taskName, bufferPolicyName) {\n    let optionsWithBufferPolicy = options;\n    if (bufferPolicyName) {\n      optionsWithBufferPolicy = Object.assign({}, optionsWithBufferPolicy);\n      optionsWithBufferPolicy[bufferPolicyName] = true;\n    }\n    const result = contextFn();\n    const taskFactory = new _taskFactory.TaskFactory(taskName || '<unknown>', result.generator, optionsWithBufferPolicy);\n    return taskFactory.createTask(result.context);\n  }\n});","define(\"ember-concurrency/-private/cancelable-promise-helpers\", [\"exports\", \"@ember/debug\", \"rsvp\", \"ember-concurrency/-private/task-instance\", \"ember-concurrency/-private/external/yieldables\"], function (_exports, _debug, _rsvp, _taskInstance, _yieldables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.race = _exports.hashSettled = _exports.hash = _exports.allSettled = _exports.all = void 0;\n  /**\n   * A cancelation-aware variant of [Promise.all](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all).\n   * The normal version of a `Promise.all` just returns a regular, uncancelable\n   * Promise. The `ember-concurrency` variant of `all()` has the following\n   * additional behavior:\n   *\n   * - if the task that `yield`ed `all()` is canceled, any of the\n   *   {@linkcode TaskInstance}s passed in to `all` will be canceled\n   * - if any of the {@linkcode TaskInstance}s (or regular promises) passed in reject (or\n   *   are canceled), all of the other unfinished `TaskInstance`s will\n   *   be automatically canceled.\n   *\n   * [Check out the \"Awaiting Multiple Child Tasks example\"](/docs/examples/joining-tasks)\n   */\n  const all = _exports.all = taskAwareVariantOf(_rsvp.default.Promise, 'all', identity);\n\n  /**\n   * A cancelation-aware variant of [RSVP.allSettled](https://api.emberjs.com/ember/release/functions/rsvp/allSettled).\n   * The normal version of a `RSVP.allSettled` just returns a regular, uncancelable\n   * Promise. The `ember-concurrency` variant of `allSettled()` has the following\n   * additional behavior:\n   *\n   * - if the task that `yield`ed `allSettled()` is canceled, any of the\n   *   {@linkcode TaskInstance}s passed in to `allSettled` will be canceled\n   */\n  const allSettled = _exports.allSettled = taskAwareVariantOf(_rsvp.default, 'allSettled', identity);\n\n  /**\n   * A cancelation-aware variant of [Promise.race](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race).\n   * The normal version of a `Promise.race` just returns a regular, uncancelable\n   * Promise. The `ember-concurrency` variant of `race()` has the following\n   * additional behavior:\n   *\n   * - if the task that `yield`ed `race()` is canceled, any of the\n   *   {@linkcode TaskInstance}s passed in to `race` will be canceled\n   * - once any of the tasks/promises passed in complete (either success, failure,\n   *   or cancelation), any of the {@linkcode TaskInstance}s passed in will be canceled\n   *\n   * [Check out the \"Awaiting Multiple Child Tasks example\"](/docs/examples/joining-tasks)\n   */\n  const race = _exports.race = taskAwareVariantOf(_rsvp.Promise, 'race', identity);\n\n  /**\n   * A cancelation-aware variant of [RSVP.hash](https://api.emberjs.com/ember/release/functions/rsvp/hash).\n   * The normal version of a `RSVP.hash` just returns a regular, uncancelable\n   * Promise. The `ember-concurrency` variant of `hash()` has the following\n   * additional behavior:\n   *\n   * - if the task that `yield`ed `hash()` is canceled, any of the\n   *   {@linkcode TaskInstance}s passed in to `hash` will be canceled\n   * - if any of the items rejects/cancels, all other cancelable items\n   *   (e.g. {@linkcode TaskInstance}s) will be canceled\n   */\n  const hash = _exports.hash = taskAwareVariantOf(_rsvp.default, 'hash', getValues);\n\n  /**\n   * A cancelation-aware variant of [RSVP.hashSettled](https://api.emberjs.com/ember/release/functions/rsvp/hashSettled).\n   * The normal version of a `RSVP.hashSettled` just returns a regular, uncancelable\n   * Promise. The `ember-concurrency` variant of `hashSettled()` has the following\n   * additional behavior:\n   *\n   * - if the task that `yield`ed `hashSettled()` is canceled, any of the\n   *   {@linkcode TaskInstance}s passed in to `hashSettled` will be canceled\n   */\n  const hashSettled = _exports.hashSettled = taskAwareVariantOf(_rsvp.default, 'hashSettled', getValues);\n  function identity(obj) {\n    return obj;\n  }\n  function getValues(obj) {\n    return Object.keys(obj).map(k => obj[k]);\n  }\n  function castForPromiseHelper(castable) {\n    if (castable) {\n      if (castable instanceof _taskInstance.TaskInstance) {\n        // Mark TaskInstances, including those that performed synchronously and\n        // have finished already, as having their errors handled, as if they had\n        // been then'd, which this is emulating.\n        castable.executor.asyncErrorsHandled = true;\n      } else if (castable instanceof _yieldables.Yieldable) {\n        // Cast to promise\n        return castable._toPromise();\n      }\n    }\n    return castable;\n  }\n  function castAwaitables(arrOrHash, callback) {\n    if (Array.isArray(arrOrHash)) {\n      return arrOrHash.map(callback);\n    } else if (typeof arrOrHash === 'object' && arrOrHash !== null) {\n      let obj = {};\n      Object.keys(arrOrHash).forEach(key => {\n        obj[key] = callback(arrOrHash[key]);\n      });\n      return obj;\n    } else {\n      // :shruggie:\n      return arrOrHash;\n    }\n  }\n  function taskAwareVariantOf(obj, method, getItems) {\n    return function (awaitable) {\n      let awaitables = castAwaitables(awaitable, castForPromiseHelper);\n      let items = getItems(awaitables);\n      (true && !(Array.isArray(items)) && (0, _debug.assert)(`'${method}' expects an array.`, Array.isArray(items)));\n      let defer = _rsvp.default.defer();\n      obj[method](awaitables).then(defer.resolve, defer.reject);\n      let hasCancelled = false;\n      let cancelAll = () => {\n        if (hasCancelled) {\n          return;\n        }\n        hasCancelled = true;\n        items.forEach(it => {\n          if (it) {\n            if (it instanceof _taskInstance.TaskInstance) {\n              it.cancel();\n            } else if (typeof it[_yieldables.cancelableSymbol] === 'function') {\n              it[_yieldables.cancelableSymbol]();\n            }\n          }\n        });\n      };\n      let promise = defer.promise.finally(cancelAll);\n      promise[_yieldables.cancelableSymbol] = cancelAll;\n      return promise;\n    };\n  }\n});","define(\"ember-concurrency/-private/ember-environment\", [\"exports\", \"ember\", \"rsvp\", \"ember-concurrency/-private/external/environment\", \"@ember/debug\", \"@ember/runloop\"], function (_exports, _ember, _rsvp, _environment, _debug, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.EmberEnvironment = _exports.EMBER_ENVIRONMENT = void 0;\n  class EmberEnvironment extends _environment.Environment {\n    assert(...args) {\n      (true && !(false) && (0, _debug.assert)(...args));\n    }\n    async(callback) {\n      (0, _runloop.join)(() => (0, _runloop.schedule)('actions', callback));\n    }\n    reportUncaughtRejection(error) {\n      (0, _runloop.next)(null, function () {\n        if (_ember.default.onerror) {\n          _ember.default.onerror(error);\n        } else {\n          throw error;\n        }\n      });\n    }\n    defer() {\n      return (0, _rsvp.defer)();\n    }\n    globalDebuggingEnabled() {\n      return _ember.default.ENV.DEBUG_TASKS;\n    }\n  }\n  _exports.EmberEnvironment = EmberEnvironment;\n  const EMBER_ENVIRONMENT = _exports.EMBER_ENVIRONMENT = new EmberEnvironment();\n});","define(\"ember-concurrency/-private/external/environment\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.Environment = _exports.DEFAULT_ENVIRONMENT = void 0;\n  class Environment {\n    assert() {}\n    async(callback) {\n      Promise.resolve().then(callback);\n    }\n    reportUncaughtRejection() {\n      this.async(error => {\n        throw error;\n      });\n    }\n    defer() {\n      let deferable = {\n        promise: null,\n        resolve: null,\n        reject: null\n      };\n      let promise = new Promise((resolve, reject) => {\n        deferable.resolve = resolve;\n        deferable.reject = reject;\n      });\n      deferable.promise = promise;\n      return deferable;\n    }\n    globalDebuggingEnabled() {\n      return false;\n    }\n  }\n  _exports.Environment = Environment;\n  const DEFAULT_ENVIRONMENT = _exports.DEFAULT_ENVIRONMENT = new Environment();\n});","define(\"ember-concurrency/-private/external/generator-state\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.GeneratorStepResult = _exports.GeneratorState = void 0;\n  class GeneratorStepResult {\n    constructor(value, done, errored) {\n      this.value = value;\n      this.done = done;\n      this.errored = errored;\n    }\n  }\n  _exports.GeneratorStepResult = GeneratorStepResult;\n  class GeneratorState {\n    constructor(generatorFactory) {\n      this.done = false;\n      this.generatorFactory = generatorFactory;\n      this.iterator = null;\n    }\n    step(resolvedValue, iteratorMethod) {\n      try {\n        let iterator = this.getIterator();\n        let {\n          value,\n          done\n        } = iterator[iteratorMethod](resolvedValue);\n        if (done) {\n          return this.finalize(value, false);\n        } else {\n          return new GeneratorStepResult(value, false, false);\n        }\n      } catch (e) {\n        return this.finalize(e, true);\n      }\n    }\n    getIterator() {\n      if (!this.iterator && !this.done) {\n        this.iterator = this.generatorFactory();\n      }\n      return this.iterator;\n    }\n    finalize(value, errored) {\n      this.done = true;\n      this.iterator = null;\n      return new GeneratorStepResult(value, true, errored);\n    }\n  }\n  _exports.GeneratorState = GeneratorState;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/bounded-policy\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class BoundedPolicy {\n    constructor(maxConcurrency) {\n      this.maxConcurrency = maxConcurrency || 1;\n    }\n  }\n  var _default = _exports.default = BoundedPolicy;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/drop-policy\", [\"exports\", \"ember-concurrency/-private/external/scheduler/policies/bounded-policy\", \"ember-concurrency/-private/external/scheduler/policies/execution-states\"], function (_exports, _boundedPolicy, _executionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const CANCELLED = (0, _executionStates.makeCancelState)(`it belongs to a 'drop' Task that was already running`);\n  class DropReducer {\n    constructor(remainingSlots) {\n      this.remainingSlots = remainingSlots;\n    }\n    step() {\n      if (this.remainingSlots > 0) {\n        this.remainingSlots--;\n        return _executionStates.STARTED;\n      }\n      return CANCELLED;\n    }\n  }\n  class DropPolicy extends _boundedPolicy.default {\n    makeReducer() {\n      return new DropReducer(this.maxConcurrency);\n    }\n  }\n  var _default = _exports.default = DropPolicy;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/enqueued-policy\", [\"exports\", \"ember-concurrency/-private/external/scheduler/policies/bounded-policy\", \"ember-concurrency/-private/external/scheduler/policies/execution-states\"], function (_exports, _boundedPolicy, _executionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class EnqueuedReducer {\n    constructor(remainingSlots) {\n      this.remainingSlots = remainingSlots;\n    }\n    step() {\n      if (this.remainingSlots > 0) {\n        this.remainingSlots--;\n        return _executionStates.STARTED;\n      } else {\n        return _executionStates.QUEUED;\n      }\n    }\n  }\n  class EnqueuedPolicy extends _boundedPolicy.default {\n    makeReducer() {\n      return new EnqueuedReducer(this.maxConcurrency);\n    }\n  }\n  var _default = _exports.default = EnqueuedPolicy;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/execution-states\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.makeCancelState = _exports.TYPE_STARTED = _exports.TYPE_QUEUED = _exports.TYPE_CANCELLED = _exports.STARTED = _exports.QUEUED = void 0;\n  const TYPE_CANCELLED = _exports.TYPE_CANCELLED = 'CANCELLED';\n  const TYPE_STARTED = _exports.TYPE_STARTED = 'STARTED';\n  const TYPE_QUEUED = _exports.TYPE_QUEUED = 'QUEUED';\n  const STARTED = _exports.STARTED = {\n    type: TYPE_STARTED\n  };\n  const QUEUED = _exports.QUEUED = {\n    type: TYPE_QUEUED\n  };\n  const makeCancelState = reason => ({\n    type: TYPE_CANCELLED,\n    reason\n  });\n  _exports.makeCancelState = makeCancelState;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/keep-latest-policy\", [\"exports\", \"ember-concurrency/-private/external/scheduler/policies/bounded-policy\", \"ember-concurrency/-private/external/scheduler/policies/execution-states\"], function (_exports, _boundedPolicy, _executionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const CANCELLED = (0, _executionStates.makeCancelState)(`it belongs to a 'keepLatest' Task that was already running`);\n\n  // Given:\n  // - started tasks: [a,b,_]\n  // - queued tasks:  [c,d,e,f]\n  // KeepLatest will cancel all but the last queued task instance, producing:\n  // - started tasks: [a,b,c]\n  // - queued tasks: [f]\n\n  // TODO: perhaps we should expose another config for the number to keep enqueued.\n  //       this would also make sense for enqueued, e.g. perform a max of maxConcurrency\n  //       concurrent task instances, but after a number of queued instances has been\n  //       reached, they should be cancelled.\n\n  class KeepLatestReducer {\n    constructor(remainingSlots, numToCancel) {\n      this.remainingSlots = remainingSlots;\n      this.numToCancel = numToCancel;\n    }\n    step() {\n      if (this.remainingSlots > 0) {\n        this.remainingSlots--;\n        return _executionStates.STARTED;\n      } else {\n        if (this.numToCancel > 0) {\n          this.numToCancel--;\n          return CANCELLED;\n        } else {\n          return _executionStates.QUEUED;\n        }\n      }\n    }\n  }\n  class KeepLatestPolicy extends _boundedPolicy.default {\n    makeReducer(numRunning, numQueued) {\n      let maxEnqueued = 1;\n      let totalRunning = numRunning + numQueued;\n      return new KeepLatestReducer(this.maxConcurrency, totalRunning - this.maxConcurrency - maxEnqueued);\n    }\n  }\n  var _default = _exports.default = KeepLatestPolicy;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/restartable-policy\", [\"exports\", \"ember-concurrency/-private/external/scheduler/policies/bounded-policy\", \"ember-concurrency/-private/external/scheduler/policies/execution-states\"], function (_exports, _boundedPolicy, _executionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const CANCELLED = (0, _executionStates.makeCancelState)(`it belongs to a 'restartable' Task that was .perform()ed again`);\n  class RestartableReducer {\n    constructor(numToCancel) {\n      this.numToCancel = numToCancel;\n    }\n    step() {\n      if (this.numToCancel > 0) {\n        this.numToCancel--;\n        return CANCELLED;\n      } else {\n        return _executionStates.STARTED;\n      }\n    }\n  }\n  class RestartablePolicy extends _boundedPolicy.default {\n    makeReducer(numRunning, numQueued) {\n      return new RestartableReducer(numRunning + numQueued - this.maxConcurrency);\n    }\n  }\n  var _default = _exports.default = RestartablePolicy;\n});","define(\"ember-concurrency/-private/external/scheduler/policies/unbounded-policy\", [\"exports\", \"ember-concurrency/-private/external/scheduler/policies/execution-states\"], function (_exports, _executionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class UnboundedReducer {\n    step() {\n      return _executionStates.STARTED;\n    }\n  }\n  const SINGLETON_REDUCER = new UnboundedReducer();\n  class UnboundedPolicy {\n    makeReducer() {\n      return SINGLETON_REDUCER;\n    }\n  }\n  var _default = _exports.default = UnboundedPolicy;\n});","define(\"ember-concurrency/-private/external/scheduler/refresh\", [\"exports\", \"ember-concurrency/-private/external/scheduler/policies/execution-states\"], function (_exports, _executionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const LAST_APPLIED_TAGS = new Map();\n  class Refresh {\n    constructor(schedulerPolicy, stateTracker, taskInstances) {\n      this.stateTracker = stateTracker;\n      this.schedulerPolicy = schedulerPolicy;\n      this.initialTaskInstances = taskInstances;\n      this.startingInstances = [];\n    }\n    process() {\n      let [taskInstances, numRunning, numQueued] = this.filterFinishedTaskInstances();\n      let reducer = this.schedulerPolicy.makeReducer(numRunning, numQueued);\n      let finalTaskInstances = taskInstances.filter(taskInstance => {\n        return this.setTaskInstanceExecutionState(taskInstance, reducer.step());\n      });\n      this.stateTracker.computeFinalStates(state => this.applyState(state));\n      this.startingInstances.forEach(taskInstance => taskInstance.start());\n      return finalTaskInstances;\n    }\n    filterFinishedTaskInstances() {\n      let numRunning = 0,\n        numQueued = 0;\n      let taskInstances = this.initialTaskInstances.filter(taskInstance => {\n        let taskState = this.stateTracker.stateFor(taskInstance.task);\n        let executorState = taskInstance.executor.state;\n        if (executorState.isFinished) {\n          taskState.onCompletion(taskInstance);\n          return false;\n        }\n        if (executorState.hasStarted) {\n          numRunning += 1;\n        } else {\n          numQueued += 1;\n        }\n        return true;\n      });\n      return [taskInstances, numRunning, numQueued];\n    }\n    setTaskInstanceExecutionState(taskInstance, desiredState) {\n      let taskState = this.stateTracker.stateFor(taskInstance.task);\n      if (!taskInstance.executor.counted) {\n        taskInstance.executor.counted = true;\n        taskState.onPerformed(taskInstance);\n      }\n      switch (desiredState.type) {\n        case _executionStates.TYPE_CANCELLED:\n          // this will cause a follow up flush which will detect and recompute cancellation state\n          taskInstance.cancel(desiredState.reason);\n          return false;\n        case _executionStates.TYPE_STARTED:\n          if (!taskInstance.executor.state.hasStarted) {\n            this.startingInstances.push(taskInstance);\n            taskState.onStart(taskInstance);\n          }\n          taskState.onRunning(taskInstance);\n          return true;\n        case _executionStates.TYPE_QUEUED:\n          taskState.onQueued(taskInstance);\n          // TODO: assert taskInstance hasn't started?\n          // Or perhaps this can be a way to pause a task?\n          return true;\n      }\n    }\n    applyState(state) {\n      let {\n        taskable\n      } = state;\n      if (!taskable.onState) {\n        return;\n      }\n      const {\n        guid\n      } = taskable;\n      if (LAST_APPLIED_TAGS.has(guid) && state.tag < LAST_APPLIED_TAGS.get(guid)) {\n        return;\n      }\n      let props = Object.assign({\n        numRunning: state.numRunning,\n        numQueued: state.numQueued,\n        numPerformedInc: state.numPerformedInc\n      }, state.attrs);\n      taskable.onState(props, taskable);\n      LAST_APPLIED_TAGS.set(guid, state.tag);\n    }\n  }\n  var _default = _exports.default = Refresh;\n});","define(\"ember-concurrency/-private/external/scheduler/scheduler\", [\"exports\", \"ember-concurrency/-private/external/scheduler/refresh\", \"ember-concurrency/-private/external/scheduler/state-tracker/state-tracker\", \"ember-concurrency/-private/external/scheduler/state-tracker/null-state-tracker\"], function (_exports, _refresh, _stateTracker, _nullStateTracker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // Scheduler base class\n\n  // When a Task is performed, it creates an unstarted TaskInstance and\n  // passes it to the Scheduler to determine when it should run. The\n  // scheduler consults the schedulerPolicy (e.g. DropPolicy, RestartablePolicy, etc)\n  // to determine whether the task instance should start executing, be enqueued\n  // for later execution, or be immediately cancelled. As TaskInstances start\n  // and run to completion, the Scheduler's `refresh()` method is called to\n  // give it an opportunity to start (or cancel) previously enqueued task instances,\n  // as well as update the derived state on Tasks and TaskGroups.\n\n  // Every Task has its own Scheduler instance, unless it is part of a group,\n  // in which case all the Tasks in a group share a single Scheduler.\n  class Scheduler {\n    constructor(schedulerPolicy, stateTrackingEnabled) {\n      this.schedulerPolicy = schedulerPolicy;\n      this.stateTrackingEnabled = stateTrackingEnabled;\n      this.taskInstances = [];\n    }\n    cancelAll(guid, cancelRequest) {\n      let cancelations = this.taskInstances.map(taskInstance => {\n        if (taskInstance.task.guids[guid]) {\n          taskInstance.executor.cancel(cancelRequest);\n        }\n      }).filter(cancelation => !!cancelation);\n      return Promise.all(cancelations);\n    }\n    perform(taskInstance) {\n      taskInstance.onFinalize(() => this.scheduleRefresh());\n      this.taskInstances.push(taskInstance);\n      this.refresh();\n    }\n    scheduleRefresh() {\n      Promise.resolve().then(() => this.refresh());\n    }\n    refresh() {\n      let stateTracker = this.stateTrackingEnabled ? new _stateTracker.default() : new _nullStateTracker.default();\n      let refresh = new _refresh.default(this.schedulerPolicy, stateTracker, this.taskInstances);\n      this.taskInstances = refresh.process();\n    }\n  }\n  var _default = _exports.default = Scheduler;\n});","define(\"ember-concurrency/-private/external/scheduler/state-tracker/null-state-tracker\", [\"exports\", \"ember-concurrency/-private/external/scheduler/state-tracker/null-state\"], function (_exports, _nullState) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const NULL_STATE = new _nullState.default();\n  class NullStateTracker {\n    stateFor() {\n      return NULL_STATE;\n    }\n    computeFinalStates() {}\n  }\n  var _default = _exports.default = NullStateTracker;\n});","define(\"ember-concurrency/-private/external/scheduler/state-tracker/null-state\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class NullState {\n    onCompletion() {}\n    onPerformed() {}\n    onStart() {}\n    onRunning() {}\n    onQueued() {}\n  }\n  var _default = _exports.default = NullState;\n});","define(\"ember-concurrency/-private/external/scheduler/state-tracker/state-tracker\", [\"exports\", \"ember-concurrency/-private/external/scheduler/state-tracker/state\"], function (_exports, _state) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const CURRENT_REFRESH_TAGS = new Map();\n  class StateTracker {\n    constructor() {\n      this.states = new Map();\n    }\n    stateFor(taskable) {\n      let guid = taskable.guid;\n      let taskState = this.states.get(guid);\n      if (!taskState) {\n        let currentTag = CURRENT_REFRESH_TAGS.has(guid) ? CURRENT_REFRESH_TAGS.get(guid) : 0;\n        taskState = new _state.default(taskable, ++currentTag);\n        this.states.set(guid, taskState);\n        CURRENT_REFRESH_TAGS.set(guid, currentTag);\n      }\n      return taskState;\n    }\n\n    // After cancelling/queueing task instances, we have to recompute the derived state\n    // of all the tasks that had/have task instances in this scheduler. We do this by\n    // looping through all the Tasks that we've accumulated state for, and then recursively\n    // applying/adding to the state of any TaskGroups they belong to.\n    computeFinalStates(callback) {\n      this.computeRecursiveState();\n      this.forEachState(state => callback(state));\n    }\n    computeRecursiveState() {\n      this.forEachState(taskState => {\n        let lastState = taskState;\n        taskState.recurseTaskGroups(taskGroup => {\n          let state = this.stateFor(taskGroup);\n          state.applyStateFrom(lastState);\n          lastState = state;\n        });\n      });\n    }\n    forEachState(callback) {\n      this.states.forEach(state => callback(state));\n    }\n  }\n  var _default = _exports.default = StateTracker;\n});","define(\"ember-concurrency/-private/external/scheduler/state-tracker/state\", [\"exports\", \"ember-concurrency/-private/external/task-instance/completion-states\"], function (_exports, _completionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class RefreshState {\n    constructor(taskable, tag) {\n      this.taskable = taskable;\n      this.group = taskable.group;\n      this.numRunning = 0;\n      this.numQueued = 0;\n      this.numPerformedInc = 0;\n      this.attrs = {};\n      this.tag = tag;\n    }\n    onCompletion(taskInstance) {\n      let state = taskInstance.completionState;\n      this.attrs.lastRunning = null;\n      this.attrs.lastComplete = taskInstance;\n      if (state === _completionStates.COMPLETION_SUCCESS) {\n        this.attrs.lastSuccessful = taskInstance;\n      } else {\n        if (state === _completionStates.COMPLETION_ERROR) {\n          this.attrs.lastErrored = taskInstance;\n        } else if (state === _completionStates.COMPLETION_CANCEL) {\n          this.attrs.lastCanceled = taskInstance;\n        }\n        this.attrs.lastIncomplete = taskInstance;\n      }\n    }\n    onPerformed(taskInstance) {\n      this.numPerformedInc += 1;\n      this.attrs.lastPerformed = taskInstance;\n    }\n    onStart(taskInstance) {\n      this.attrs.last = taskInstance;\n    }\n    onRunning(taskInstance) {\n      this.attrs.lastRunning = taskInstance;\n      this.numRunning += 1;\n    }\n    onQueued() {\n      this.numQueued += 1;\n    }\n    recurseTaskGroups(callback) {\n      let group = this.group;\n      while (group) {\n        callback(group);\n        group = group.group;\n      }\n    }\n    applyStateFrom(other) {\n      Object.assign(this.attrs, other.attrs);\n      this.numRunning += other.numRunning;\n      this.numQueued += other.numQueued;\n      this.numPerformedInc += other.numPerformedInc;\n    }\n  }\n  var _default = _exports.default = RefreshState;\n});","define(\"ember-concurrency/-private/external/task-decorators\", [\"exports\", \"ember-concurrency/-private/external/task-factory\"], function (_exports, _taskFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.createTaskDecorator = createTaskDecorator;\n  _exports.createTaskGroupDecorator = createTaskGroupDecorator;\n  _exports.decoratorWithParams = decoratorWithParams;\n  _exports.lastValue = void 0;\n  function taskFromPropertyDescriptor(target, key, descriptor, params = [], factoryClass = _taskFactory.TaskFactory) {\n    let {\n      initializer,\n      get,\n      value\n    } = descriptor;\n    let taskFn;\n    if (initializer) {\n      taskFn = initializer.call(undefined);\n    } else if (get) {\n      taskFn = get.call(undefined);\n    } else if (value) {\n      taskFn = value;\n    }\n    taskFn.displayName = `${key} (task)`;\n    let tasks = new WeakMap();\n    let options = params[0] || {};\n    let factory = new factoryClass(key, taskFn, options);\n    factory._setupEmberKVO(target);\n    return {\n      get() {\n        let task = tasks.get(this);\n        if (!task) {\n          task = factory.createTask(this);\n          tasks.set(this, task);\n        }\n        return task;\n      }\n    };\n  }\n  function taskGroupPropertyDescriptor(_target, key, _descriptor, params = [], factoryClass = _taskFactory.TaskFactory) {\n    let taskGroups = new WeakMap();\n    let options = params[0] || {};\n    let factory = new factoryClass(key, null, options);\n    return {\n      get() {\n        let task = taskGroups.get(this);\n        if (!task) {\n          task = factory.createTaskGroup(this);\n          taskGroups.set(this, task);\n        }\n        return task;\n      }\n    };\n  }\n\n  // Cribbed from @ember-decorators/utils\n  function isFieldDescriptor(possibleDesc) {\n    let [target, key, desc] = possibleDesc;\n    return possibleDesc.length === 3 && typeof target === 'object' && target !== null && typeof key === 'string' && (typeof desc === 'object' && desc !== null && 'enumerable' in desc && 'configurable' in desc || desc === undefined) // TS compatibility ???\n    ;\n  }\n\n  function decoratorWithParams(descriptorFn) {\n    return function (...params) {\n      if (isFieldDescriptor(params)) {\n        return descriptorFn(...params);\n      } else {\n        return (...desc) => descriptorFn(...desc, params);\n      }\n    };\n  }\n  function createDecorator(fn, baseOptions = {}, factoryClass = _taskFactory.TaskFactory) {\n    return decoratorWithParams((target, key, descriptor, [userOptions] = []) => {\n      let mergedOptions = Object.assign({}, {\n        ...baseOptions,\n        ...userOptions\n      });\n      return fn(target, key, descriptor, [mergedOptions], factoryClass);\n    });\n  }\n  function createTaskDecorator(baseOptions = {}, factoryClass = _taskFactory.TaskFactory) {\n    return createDecorator(taskFromPropertyDescriptor, baseOptions, factoryClass);\n  }\n  function createTaskGroupDecorator(baseOptions = {}, factoryClass = _taskFactory.TaskFactory) {\n    return createDecorator(taskGroupPropertyDescriptor, baseOptions, factoryClass);\n  }\n  const lastValue = _exports.lastValue = decoratorWithParams((_target, _key, descriptor, [taskName] = []) => {\n    const {\n      initializer\n    } = descriptor;\n    delete descriptor.initializer;\n    return {\n      get() {\n        let lastInstance = this[taskName].lastSuccessful;\n        if (lastInstance) {\n          return lastInstance.value;\n        }\n        if (initializer) {\n          return initializer.call(this);\n        }\n        return undefined;\n      }\n    };\n  });\n});","define(\"ember-concurrency/-private/external/task-factory\", [\"exports\", \"ember-concurrency/-private/external/scheduler/scheduler\", \"ember-concurrency/-private/external/scheduler/policies/unbounded-policy\", \"ember-concurrency/-private/external/scheduler/policies/enqueued-policy\", \"ember-concurrency/-private/external/scheduler/policies/drop-policy\", \"ember-concurrency/-private/external/scheduler/policies/keep-latest-policy\", \"ember-concurrency/-private/external/scheduler/policies/restartable-policy\", \"ember-concurrency/-private/external/task/task\", \"ember-concurrency/-private/external/task/task-group\", \"ember-concurrency/-private/external/environment\"], function (_exports, _scheduler, _unboundedPolicy, _enqueuedPolicy, _dropPolicy, _keepLatestPolicy, _restartablePolicy, _task, _taskGroup, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskFactory = void 0;\n  _exports.getModifier = getModifier;\n  _exports.hasModifier = hasModifier;\n  _exports.registerModifier = registerModifier;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function assertModifiersNotMixedWithGroup(obj) {\n    if (obj._hasSetConcurrencyConstraint && obj._taskGroupPath) {\n      throw new Error(`Cannot use both 'group' and other concurrency-constraining task modifiers (e.g. 'drop', 'enqueue', 'restartable')`);\n    }\n  }\n  function assertUnsetBufferPolicy(obj) {\n    if (obj._hasSetBufferPolicy) {\n      throw new Error(`Cannot set multiple buffer policies on a task or task group. ${obj._schedulerPolicyClass} has already been set for task or task group '${obj.name}'`);\n    }\n  }\n  const MODIFIER_REGISTRY = {\n    enqueue: (factory, value) => value && factory.setBufferPolicy(_enqueuedPolicy.default),\n    evented: (factory, value) => value && factory.setEvented(value),\n    debug: (factory, value) => value && factory.setDebug(value),\n    drop: (factory, value) => value && factory.setBufferPolicy(_dropPolicy.default),\n    group: (factory, groupName) => factory.setGroup(groupName),\n    keepLatest: (factory, value) => value && factory.setBufferPolicy(_keepLatestPolicy.default),\n    maxConcurrency: (factory, maxConcurrency) => factory.setMaxConcurrency(maxConcurrency),\n    onState: (factory, onStateCallback) => factory.setOnState(onStateCallback),\n    restartable: (factory, value) => value && factory.setBufferPolicy(_restartablePolicy.default)\n  };\n\n  /**\n   * Callback type defining a task modifier\n   *\n   * @callback TaskFactory~TaskModifier\n   * @param {TaskFactory} factory\n   * @param {*} taskModifierOption\n   */\n\n  /**\n   * Registers a new modifier with the modifier registry\n   *\n   * @param {string} name Name of the modifier\n   * @param {TaskFactory~TaskModifier} callback\n   */\n  function registerModifier(name, callback) {\n    if (MODIFIER_REGISTRY[name]) {\n      throw new Error(`A modifier with the name '${name}' has already been defined.`);\n    }\n    MODIFIER_REGISTRY[name] = callback;\n  }\n\n  /**\n   * Returns a specified modifier, if it exists in the registry\n   *\n   * @param {string} name Name of the modifier\n   * @returns {TaskFactory~TaskModifier?}\n   */\n  function getModifier(name) {\n    return MODIFIER_REGISTRY[name];\n  }\n\n  /**\n   * Returns whether a specified modifier exists in the registry\n   *\n   * @param {string} name Name of the modifier\n   * @returns {boolean}\n   */\n  function hasModifier(name) {\n    return name in MODIFIER_REGISTRY;\n  }\n\n  /**\n   * Factory used for instantiating Tasks and Task Groups. Mostly for internal\n   * use, but some public APIs exposed via the Task Modifier APIs.\n   *\n   * <style>\n   *  .ignore-this--this-is-here-to-hide-constructor,\n   *  #TaskFactory { display: none }\n   * </style>\n   *\n   * @class TaskFactory\n   */\n  class TaskFactory {\n    constructor(name = '<unknown>', taskDefinition = null, options = {}) {\n      _defineProperty(this, \"env\", _environment.DEFAULT_ENVIRONMENT);\n      _defineProperty(this, \"_debug\", null);\n      _defineProperty(this, \"_enabledModifiers\", []);\n      _defineProperty(this, \"_hasSetConcurrencyConstraint\", false);\n      _defineProperty(this, \"_hasSetBufferPolicy\", false);\n      _defineProperty(this, \"_hasEnabledEvents\", false);\n      _defineProperty(this, \"_maxConcurrency\", null);\n      _defineProperty(this, \"_onStateCallback\", (state, taskable) => taskable.setState(state));\n      _defineProperty(this, \"_schedulerPolicyClass\", _unboundedPolicy.default);\n      _defineProperty(this, \"_taskGroupPath\", null);\n      this.name = name;\n      this.taskDefinition = taskDefinition;\n      this.options = options;\n      this._processModifierOptions(options);\n    }\n\n    /**\n     * Returns a new Task bound to the given context\n     *\n     * @protected\n     * @param {*} context\n     * @returns {Task}\n     */\n    createTask(context) {\n      let options = this.getTaskOptions(context);\n      return new _task.Task(Object.assign({\n        generatorFactory: args => this.taskDefinition.apply(context, args)\n      }, options));\n    }\n\n    /**\n     * Returns a new TaskGroup bound to the given context\n     *\n     * @protected\n     * @param {*} context\n     * @returns {Task}\n     */\n    createTaskGroup(context) {\n      let options = this.getTaskOptions(context);\n      return new _taskGroup.TaskGroup(options);\n    }\n\n    /**\n     * Returns a modifier callback with the given name bound to this TaskFactory,\n     * if registered.\n     *\n     * @protected\n     * @param {string} name\n     * @returns {TaskFactory~TaskModifier?}\n     */\n    getModifier(name) {\n      if (hasModifier(name)) {\n        return MODIFIER_REGISTRY[name].bind(null, this);\n      }\n    }\n\n    /**\n     * Returns the options provided to TaskFactory\n     *\n     * @public\n     * @returns {object}\n     */\n    getOptions() {\n      return this.options;\n    }\n\n    /**\n     * Returns a new Scheduler instance\n     *\n     * @protected\n     * @param {*} schedulerPolicy\n     * @param {boolean} stateTrackingEnabled\n     * @returns {Scheduler}\n     */\n    getScheduler(schedulerPolicy, stateTrackingEnabled) {\n      return new _scheduler.default(schedulerPolicy, stateTrackingEnabled);\n    }\n\n    /**\n     * Returns the options to pass to a Task or TaskGroup constructor\n     *\n     * @protected\n     * @param {*} context\n     * @returns {object}\n     */\n    getTaskOptions(context) {\n      let group, scheduler;\n      let onStateCallback = this._onStateCallback;\n      if (this._taskGroupPath) {\n        group = context[this._taskGroupPath];\n        if (!(group instanceof _taskGroup.TaskGroup)) {\n          throw new Error(`Expected group '${this._taskGroupPath}' to be defined but was not found.`);\n        }\n        scheduler = group.scheduler;\n      } else {\n        let schedulerPolicy = new this._schedulerPolicyClass(this._maxConcurrency);\n        scheduler = this.getScheduler(schedulerPolicy, onStateCallback && typeof onStateCallback === 'function');\n      }\n      return {\n        context,\n        debug: this._debug,\n        env: this.env,\n        name: this.name,\n        group,\n        scheduler,\n        hasEnabledEvents: this._hasEnabledEvents,\n        onStateCallback,\n        enabledModifiers: this._enabledModifiers,\n        modifierOptions: this.getOptions()\n      };\n    }\n\n    /**\n     * Sets the Scheduler buffer policy class to the specified value.\n     *\n     * Will raise an assertion if a buffer policy has already been specified\n     *\n     * @param {*} policy\n     * @returns {TaskFactory}\n     */\n    setBufferPolicy(policy) {\n      assertUnsetBufferPolicy(this);\n      this._hasSetBufferPolicy = true;\n      this._hasSetConcurrencyConstraint = true;\n      this._schedulerPolicyClass = policy;\n      assertModifiersNotMixedWithGroup(this);\n      return this;\n    }\n\n    /**\n     * Sets debug mode\n     *\n     * @param {boolean} enabled\n     * @returns {TaskFactory}\n     */\n    setDebug(enabled) {\n      this._debug = enabled;\n      return this;\n    }\n\n    /**\n     * Sets whether Task will dispatch Task events or not\n     *\n     * @param {boolean} enabled\n     * @returns {TaskFactory}\n     */\n    setEvented(enabled) {\n      this._hasEnabledEvents = enabled;\n      return this;\n    }\n\n    /**\n     * Sets Scheduling policy's `maxConcurrency`\n     *\n     * @param {number} maxConcurrency\n     * @returns {TaskFactory}\n     */\n    setMaxConcurrency(maxConcurrency) {\n      this._hasSetConcurrencyConstraint = true;\n      this._maxConcurrency = maxConcurrency;\n      return this;\n    }\n\n    /**\n     * Assigns Task created from this factory to the specified group name\n     *\n     * @param {string} group\n     * @returns {TaskFactory}\n     */\n    setGroup(group) {\n      this._taskGroupPath = group;\n      return this;\n    }\n\n    /**\n     * Sets the name of tasks created from this factory\n     *\n     * @param {string} name\n     * @returns {TaskFactory}\n     */\n    setName(name) {\n      this.name = name;\n      return this;\n    }\n\n    /**\n     * Sets the callback used on state updates. Can be set to null to disable\n     * state tracking on tasks.\n     *\n     * @param {function} onStateCallback\n     * @returns {TaskFactory}\n     */\n    setOnState(onStateCallback) {\n      this._onStateCallback = onStateCallback;\n      return this;\n    }\n\n    /**\n     * Sets the definition for tasks created from this factory\n     *\n     * @param {*} taskDefinition\n     * @returns {TaskFactory}\n     */\n    setTaskDefinition(taskDefinition) {\n      this.taskDefinition = taskDefinition;\n      return this;\n    }\n    _processModifierOptions(options) {\n      if (!options) {\n        return;\n      }\n      for (let key of Object.keys(options)) {\n        let value = options[key];\n        let modifier = this.getModifier(key);\n        if (typeof modifier === 'function' && modifier(value)) {\n          this._enabledModifiers.push(key);\n        }\n      }\n    }\n  }\n  _exports.TaskFactory = TaskFactory;\n});","define(\"ember-concurrency/-private/external/task-instance/base\", [\"exports\", \"ember-concurrency/-private/external/task-instance/initial-state\", \"ember-concurrency/-private/external/yieldables\", \"ember-concurrency/-private/external/task-instance/cancelation\"], function (_exports, _initialState, _yieldables, _cancelation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.BaseTaskInstance = void 0;\n  const EXPLICIT_CANCEL_REASON = '.cancel() was explicitly called';\n  class BaseTaskInstance {\n    constructor({\n      task,\n      args,\n      executor,\n      performType,\n      hasEnabledEvents\n    }) {\n      this.task = task;\n      this.args = args;\n      this.performType = performType;\n      this.executor = executor;\n      this.executor.taskInstance = this;\n      this.hasEnabledEvents = hasEnabledEvents;\n    }\n    setState() {}\n    onStarted() {}\n    onSuccess() {}\n    onError() {}\n    onCancel() {}\n    formatCancelReason() {}\n    selfCancelLoopWarning() {}\n    onFinalize(callback) {\n      this.executor.onFinalize(callback);\n    }\n    proceed(index, yieldResumeType, value) {\n      this.executor.proceedChecked(index, yieldResumeType, value);\n    }\n    [_yieldables.yieldableSymbol](parentTaskInstance, resumeIndex) {\n      return this.executor.onYielded(parentTaskInstance, resumeIndex);\n    }\n    cancel(cancelReason = EXPLICIT_CANCEL_REASON) {\n      this.executor.cancel(new _cancelation.CancelRequest(_cancelation.CANCEL_KIND_EXPLICIT, cancelReason));\n    }\n    then(...args) {\n      return this.executor.promise().then(...args);\n    }\n    catch(...args) {\n      return this.executor.promise().catch(...args);\n    }\n    finally(...args) {\n      return this.executor.promise().finally(...args);\n    }\n    toString() {\n      return `${this.task} TaskInstance`;\n    }\n    start() {\n      this.executor.start();\n      return this;\n    }\n  }\n  _exports.BaseTaskInstance = BaseTaskInstance;\n  Object.assign(BaseTaskInstance.prototype, _initialState.INITIAL_STATE);\n  Object.assign(BaseTaskInstance.prototype, {\n    state: 'waiting',\n    isDropped: false,\n    isRunning: true\n  });\n});","define(\"ember-concurrency/-private/external/task-instance/cancelation\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TASK_CANCELATION_NAME = _exports.CancelRequest = _exports.CANCEL_KIND_YIELDABLE_CANCEL = _exports.CANCEL_KIND_PARENT_CANCEL = _exports.CANCEL_KIND_LIFESPAN_END = _exports.CANCEL_KIND_EXPLICIT = void 0;\n  _exports.didCancel = didCancel;\n  const TASK_CANCELATION_NAME = _exports.TASK_CANCELATION_NAME = 'TaskCancelation';\n\n  /**\n   * Returns true if the object passed to it is a TaskCancelation error.\n   * If you call `someTask.perform().catch(...)` or otherwise treat\n   * a {@linkcode TaskInstance} like a promise, you may need to\n   * handle the cancelation of a TaskInstance differently from\n   * other kinds of errors it might throw, and you can use this\n   * convenience function to distinguish cancelation from errors.\n   *\n   * ```js\n   * click() {\n   *   this.myTask.perform().catch(e => {\n   *     if (!didCancel(e)) { throw e; }\n   *   });\n   * }\n   * ```\n   *\n   * @param {object} error the caught error, which might be a TaskCancelation\n   * @returns {boolean}\n   */\n  function didCancel(e) {\n    return e && e.name === TASK_CANCELATION_NAME;\n  }\n  const CANCEL_KIND_EXPLICIT = _exports.CANCEL_KIND_EXPLICIT = 'explicit';\n  const CANCEL_KIND_YIELDABLE_CANCEL = _exports.CANCEL_KIND_YIELDABLE_CANCEL = 'yielded';\n  const CANCEL_KIND_LIFESPAN_END = _exports.CANCEL_KIND_LIFESPAN_END = 'lifespan_end';\n  const CANCEL_KIND_PARENT_CANCEL = _exports.CANCEL_KIND_PARENT_CANCEL = 'parent_cancel';\n  class CancelRequest {\n    constructor(kind, reason) {\n      this.kind = kind;\n      this.reason = reason;\n      this.promise = new Promise(resolve => {\n        this.finalize = resolve;\n      });\n    }\n  }\n  _exports.CancelRequest = CancelRequest;\n});","define(\"ember-concurrency/-private/external/task-instance/completion-states\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.COMPLETION_SUCCESS = _exports.COMPLETION_PENDING = _exports.COMPLETION_ERROR = _exports.COMPLETION_CANCEL = void 0;\n  const COMPLETION_PENDING = _exports.COMPLETION_PENDING = 0;\n  const COMPLETION_SUCCESS = _exports.COMPLETION_SUCCESS = 1;\n  const COMPLETION_ERROR = _exports.COMPLETION_ERROR = 2;\n  const COMPLETION_CANCEL = _exports.COMPLETION_CANCEL = 3;\n});","define(\"ember-concurrency/-private/external/task-instance/executor\", [\"exports\", \"ember-concurrency/-private/external/generator-state\", \"ember-concurrency/-private/external/task-instance/initial-state\", \"ember-concurrency/-private/external/yieldables\", \"ember-concurrency/-private/external/task-instance/completion-states\", \"ember-concurrency/-private/external/task-instance/cancelation\"], function (_exports, _generatorState, _initialState, _yieldables, _completionStates, _cancelation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskInstanceExecutor = _exports.PERFORM_TYPE_UNLINKED = _exports.PERFORM_TYPE_LINKED = _exports.PERFORM_TYPE_DEFAULT = void 0;\n  _exports.getRunningInstance = getRunningInstance;\n  const PERFORM_TYPE_DEFAULT = _exports.PERFORM_TYPE_DEFAULT = 'PERFORM_TYPE_DEFAULT';\n  const PERFORM_TYPE_UNLINKED = _exports.PERFORM_TYPE_UNLINKED = 'PERFORM_TYPE_UNLINKED';\n  const PERFORM_TYPE_LINKED = _exports.PERFORM_TYPE_LINKED = 'PERFORM_TYPE_LINKED';\n  const CANCEL_RETURN_VALUE_SENTINEL = {};\n  let TASK_INSTANCE_STACK = [];\n  function getRunningInstance() {\n    return TASK_INSTANCE_STACK[TASK_INSTANCE_STACK.length - 1];\n  }\n  class TaskInstanceExecutor {\n    constructor({\n      generatorFactory,\n      env,\n      debug\n    }) {\n      this.generatorState = new _generatorState.GeneratorState(generatorFactory);\n      this.state = Object.assign({}, _initialState.INITIAL_STATE);\n      this.index = 1;\n      this.disposers = [];\n      this.finalizeCallbacks = [];\n      this.env = env;\n      this.debug = debug;\n      this.cancelRequest = null;\n    }\n    start() {\n      if (this.state.hasStarted || this.cancelRequest) {\n        return;\n      }\n      this.setState({\n        hasStarted: true\n      });\n      this.proceedSync(_yieldables.YIELDABLE_CONTINUE, undefined);\n      this.taskInstance.onStarted();\n    }\n    cancel(cancelRequest) {\n      if (!this.requestCancel(cancelRequest)) {\n        cancelRequest.finalize();\n        return cancelRequest.promise;\n      }\n      if (this.state.hasStarted) {\n        this.proceedWithCancelAsync();\n      } else {\n        this.finalizeWithCancel();\n      }\n      return this.cancelRequest.promise;\n    }\n    setState(state) {\n      Object.assign(this.state, state);\n      this.taskInstance.setState(this.state);\n    }\n    proceedChecked(index, yieldResumeType, value) {\n      if (this.state.isFinished) {\n        return;\n      }\n      if (!this.advanceIndex(index)) {\n        return;\n      }\n      if (yieldResumeType === _yieldables.YIELDABLE_CANCEL) {\n        this.requestCancel(new _cancelation.CancelRequest(_cancelation.CANCEL_KIND_YIELDABLE_CANCEL), value);\n        this.proceedWithCancelAsync();\n      } else {\n        this.proceedAsync(yieldResumeType, value);\n      }\n    }\n    proceedWithCancelAsync() {\n      this.proceedAsync(_yieldables.YIELDABLE_RETURN, CANCEL_RETURN_VALUE_SENTINEL);\n    }\n    proceedAsync(yieldResumeType, value) {\n      this.advanceIndex(this.index);\n      this.env.async(() => this.proceedSync(yieldResumeType, value));\n    }\n    proceedSync(yieldResumeType, value) {\n      if (this.state.isFinished) {\n        return;\n      }\n      this.dispose();\n      if (this.generatorState.done) {\n        this.handleResolvedReturnedValue(yieldResumeType, value);\n      } else {\n        this.handleResolvedContinueValue(yieldResumeType, value);\n      }\n    }\n\n    /**\n     * This method is called when a previously yielded value from\n     * the generator has been resolved, and now it's time to pass\n     * it back into the generator. There are 3 ways to \"resume\" a\n     * generator:\n     *\n     * - call `.next(value)` on it, which is used to pass in a resolved\n     *   value (the fulfilled value of a promise), e.g. if a task generator fn\n     *   does `yield Promise.resolve(5)`, then we take that promise yielded\n     *   by the generator, detect that it's a promise, resolve it, and then\n     *   pass its fulfilled value `5` back into the generator function so\n     *   that it can continue executing.\n     * - call `.throw(error)` on it, which throw an exception from where the\n     *   the generator previously yielded. We do this when the previously\n     *   yielded value resolves to an error value (e.g. a rejected promise\n     *   or a TaskInstance that finished with an error). Note that when you\n     *   resume a generator with a `.throw()`, it can still recover from that\n     *   thrown error and continue executing normally so long as the `yield`\n     *   was inside a `try/catch` statement.\n     * - call `.return(value)` on it, causes the generator function to return\n     *   from where it previously `yield`ed. We use `.return()` when cancelling\n     *   a TaskInstance; by `.return`ing, rather than `.throw`ing, it allows\n     *   the generator function to skip `catch(e) {}` blocks, which is usually\n     *   reserved for actual errors/exceptions; if we `.throw`'d cancellations,\n     *   it would require all tasks that used try/catch to conditionally ignore\n     *   cancellations, which is annoying. So we `.return()` from generator functions\n     *   in the case of errors as a matter of convenience.\n     *\n     * @private\n     */\n    handleResolvedContinueValue(iteratorMethod, resumeValue) {\n      let beforeIndex = this.index;\n      let stepResult = this.generatorStep(resumeValue, iteratorMethod);\n\n      // TODO: what is this doing? write breaking test.\n      if (!this.advanceIndex(beforeIndex)) {\n        return;\n      }\n      if (stepResult.errored) {\n        this.finalize(stepResult.value, _completionStates.COMPLETION_ERROR);\n        return;\n      }\n      this.handleYieldedValue(stepResult);\n    }\n\n    /**\n     * This method is called when the generator function is all\n     * out of values, and the last value returned from the function\n     * (possible a thenable/yieldable/promise/etc) has been resolved.\n     *\n     * Possible cases:\n     * - `return \"simple value\";` // resolved value is \"simple value\"\n     * - `return undefined;` // (or omitted return) resolved value is undefined\n     * - `return someTask.perform()` // resolved value is the value returned/resolved from someTask\n     *\n     * @private\n     */\n    handleResolvedReturnedValue(yieldResumeType, value) {\n      switch (yieldResumeType) {\n        case _yieldables.YIELDABLE_CONTINUE:\n        case _yieldables.YIELDABLE_RETURN:\n          this.finalize(value, _completionStates.COMPLETION_SUCCESS);\n          break;\n        case _yieldables.YIELDABLE_THROW:\n          this.finalize(value, _completionStates.COMPLETION_ERROR);\n          break;\n      }\n    }\n    handleYieldedUnknownThenable(thenable) {\n      let resumeIndex = this.index;\n      thenable.then(value => {\n        this.proceedChecked(resumeIndex, _yieldables.YIELDABLE_CONTINUE, value);\n      }, error => {\n        this.proceedChecked(resumeIndex, _yieldables.YIELDABLE_THROW, error);\n      });\n    }\n\n    /**\n     * The TaskInstance internally tracks an index/sequence number\n     * (the `index` property) which gets incremented every time the\n     * task generator function iterator takes a step. When a task\n     * function is paused at a `yield`, there are two events that\n     * cause the TaskInstance to take a step: 1) the yielded value\n     * \"resolves\", thus resuming the TaskInstance's execution, or\n     * 2) the TaskInstance is canceled. We need some mechanism to prevent\n     * stale yielded value resolutions from resuming the TaskFunction\n     * after the TaskInstance has already moved on (either because\n     * the TaskInstance has since been canceled or because an\n     * implementation of the Yieldable API tried to resume the\n     * TaskInstance more than once). The `index` serves as\n     * that simple mechanism: anyone resuming a TaskInstance\n     * needs to pass in the `index` they were provided that acts\n     * as a ticket to resume the TaskInstance that expires once\n     * the TaskInstance has moved on.\n     *\n     * @private\n     */\n    advanceIndex(index) {\n      if (this.index === index) {\n        return ++this.index;\n      }\n    }\n    handleYieldedValue(stepResult) {\n      let yieldedValue = stepResult.value;\n      if (!yieldedValue) {\n        this.proceedWithSimpleValue(yieldedValue);\n        return;\n      }\n      this.addDisposer(yieldedValue[_yieldables.cancelableSymbol]);\n      if (yieldedValue[_yieldables.yieldableSymbol]) {\n        this.invokeYieldable(yieldedValue);\n      } else if (typeof yieldedValue.then === 'function') {\n        this.handleYieldedUnknownThenable(yieldedValue);\n      } else {\n        this.proceedWithSimpleValue(yieldedValue);\n      }\n    }\n    proceedWithSimpleValue(yieldedValue) {\n      this.proceedAsync(_yieldables.YIELDABLE_CONTINUE, yieldedValue);\n    }\n    addDisposer(maybeDisposer) {\n      if (typeof maybeDisposer !== 'function') {\n        return;\n      }\n      this.disposers.push(maybeDisposer);\n    }\n\n    /**\n     * Runs any disposers attached to the task's most recent `yield`.\n     * For instance, when a task yields a TaskInstance, it registers that\n     * child TaskInstance's disposer, so that if the parent task is canceled,\n     * dispose() will run that disposer and cancel the child TaskInstance.\n     *\n     * @private\n     */\n    dispose() {\n      let disposers = this.disposers;\n      if (disposers.length === 0) {\n        return;\n      }\n      this.disposers = [];\n      disposers.forEach(disposer => disposer());\n    }\n\n    /**\n     * Calls .next()/.throw()/.return() on the task's generator function iterator,\n     * essentially taking a single step of execution on the task function.\n     *\n     * @private\n     */\n    generatorStep(nextValue, iteratorMethod) {\n      TASK_INSTANCE_STACK.push(this);\n      let stepResult = this.generatorState.step(nextValue, iteratorMethod);\n      TASK_INSTANCE_STACK.pop();\n\n      // TODO: fix this!\n      if (this._expectsLinkedYield) {\n        let value = stepResult.value;\n        if (!value || value.performType !== PERFORM_TYPE_LINKED) {\n          // eslint-disable-next-line no-console\n          console.warn('You performed a .linked() task without immediately yielding/returning it. This is currently unsupported (but might be supported in future version of ember-concurrency).');\n        }\n        this._expectsLinkedYield = false;\n      }\n      return stepResult;\n    }\n    maybeResolveDefer() {\n      if (!this.defer || !this.state.isFinished) {\n        return;\n      }\n      if (this.state.completionState === _completionStates.COMPLETION_SUCCESS) {\n        this.defer.resolve(this.state.value);\n      } else {\n        this.defer.reject(this.state.error);\n      }\n    }\n    onFinalize(callback) {\n      this.finalizeCallbacks.push(callback);\n      if (this.state.isFinished) {\n        this.runFinalizeCallbacks();\n      }\n    }\n    runFinalizeCallbacks() {\n      this.finalizeCallbacks.forEach(cb => cb());\n      this.finalizeCallbacks = [];\n      this.maybeResolveDefer();\n      this.maybeThrowUnhandledTaskErrorLater();\n    }\n    promise() {\n      if (!this.defer) {\n        this.defer = this.env.defer();\n        this.asyncErrorsHandled = true;\n        this.maybeResolveDefer();\n      }\n      return this.defer.promise;\n    }\n    maybeThrowUnhandledTaskErrorLater() {\n      if (!this.asyncErrorsHandled && this.state.completionState === _completionStates.COMPLETION_ERROR && !(0, _cancelation.didCancel)(this.state.error)) {\n        this.env.async(() => {\n          if (!this.asyncErrorsHandled) {\n            this.env.reportUncaughtRejection(this.state.error);\n          }\n        });\n      }\n    }\n    requestCancel(request) {\n      if (this.cancelRequest || this.state.isFinished) {\n        return false;\n      }\n      this.cancelRequest = request;\n      return true;\n    }\n    finalize(value, completionState) {\n      if (this.cancelRequest) {\n        return this.finalizeWithCancel();\n      }\n      let state = {\n        completionState\n      };\n      if (completionState === _completionStates.COMPLETION_SUCCESS) {\n        state.isSuccessful = true;\n        state.value = value;\n      } else if (completionState === _completionStates.COMPLETION_ERROR) {\n        state.isError = true;\n        state.error = value;\n      } else if (completionState === _completionStates.COMPLETION_CANCEL) {\n        state.error = value;\n      }\n      this.finalizeShared(state);\n    }\n    finalizeWithCancel() {\n      let cancelReason = this.taskInstance.formatCancelReason(this.cancelRequest.reason);\n      let error = new Error(cancelReason);\n      if (this.debugEnabled()) {\n        // eslint-disable-next-line no-console\n        console.log(cancelReason);\n      }\n      error.name = _cancelation.TASK_CANCELATION_NAME;\n      this.finalizeShared({\n        isCanceled: true,\n        completionState: _completionStates.COMPLETION_CANCEL,\n        error,\n        cancelReason\n      });\n      this.cancelRequest.finalize();\n    }\n    debugEnabled() {\n      return this.debug || this.env.globalDebuggingEnabled();\n    }\n    finalizeShared(state) {\n      this.index++;\n      state.isFinished = true;\n      this.setState(state);\n      this.runFinalizeCallbacks();\n      this.dispatchFinalizeEvents(state.completionState);\n    }\n    dispatchFinalizeEvents(completionState) {\n      switch (completionState) {\n        case _completionStates.COMPLETION_SUCCESS:\n          this.taskInstance.onSuccess();\n          break;\n        case _completionStates.COMPLETION_ERROR:\n          this.taskInstance.onError(this.state.error);\n          break;\n        case _completionStates.COMPLETION_CANCEL:\n          this.taskInstance.onCancel(this.state.cancelReason);\n          break;\n      }\n    }\n    invokeYieldable(yieldedValue) {\n      try {\n        let maybeDisposer = yieldedValue[_yieldables.yieldableSymbol](this.taskInstance, this.index);\n        this.addDisposer(maybeDisposer);\n      } catch (e) {\n        this.env.reportUncaughtRejection(e);\n      }\n    }\n\n    /**\n     * `onYielded` is called when this task instance has been\n     * yielded in another task instance's execution. We take\n     * this opportunity to conditionally link up the tasks\n     * so that when the parent or child cancels, the other\n     * is cancelled.\n     *\n     * Given the following case:\n     *\n     * ```js\n     * parentTask: task(function * () {\n     *   yield otherTask.perform();\n     * })\n     * ```\n     *\n     * Then the `parent` param is the task instance that is executing, `this`\n     * is the `otherTask` task instance that was yielded.\n     *\n     * @private\n     */\n    onYielded(parent, resumeIndex) {\n      this.asyncErrorsHandled = true;\n      this.onFinalize(() => {\n        let completionState = this.state.completionState;\n        if (completionState === _completionStates.COMPLETION_SUCCESS) {\n          parent.proceed(resumeIndex, _yieldables.YIELDABLE_CONTINUE, this.state.value);\n        } else if (completionState === _completionStates.COMPLETION_ERROR) {\n          parent.proceed(resumeIndex, _yieldables.YIELDABLE_THROW, this.state.error);\n        } else if (completionState === _completionStates.COMPLETION_CANCEL) {\n          parent.proceed(resumeIndex, _yieldables.YIELDABLE_CANCEL, null);\n        }\n      });\n      let performType = this.getPerformType();\n      if (performType === PERFORM_TYPE_UNLINKED) {\n        return;\n      }\n      return () => {\n        this.detectSelfCancelLoop(performType, parent);\n        this.cancel(new _cancelation.CancelRequest(_cancelation.CANCEL_KIND_PARENT_CANCEL));\n      };\n    }\n    getPerformType() {\n      return this.taskInstance.performType || PERFORM_TYPE_DEFAULT;\n    }\n    detectSelfCancelLoop(performType, parent) {\n      if (performType !== PERFORM_TYPE_DEFAULT) {\n        return;\n      }\n      let parentCancelRequest = parent.executor && parent.executor.cancelRequest;\n\n      // Detect that the parent was cancelled by a lifespan ending and\n      // that the child is still running and not cancelled.\n      if (parentCancelRequest && parentCancelRequest.kind === _cancelation.CANCEL_KIND_LIFESPAN_END && !this.cancelRequest && !this.state.isFinished) {\n        this.taskInstance.selfCancelLoopWarning(parent);\n      }\n    }\n  }\n  _exports.TaskInstanceExecutor = TaskInstanceExecutor;\n});","define(\"ember-concurrency/-private/external/task-instance/initial-state\", [\"exports\", \"ember-concurrency/-private/external/task-instance/completion-states\"], function (_exports, _completionStates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.INITIAL_STATE = void 0;\n  const INITIAL_STATE = _exports.INITIAL_STATE = {\n    completionState: _completionStates.COMPLETION_PENDING,\n    /**\n     * If this TaskInstance runs to completion by returning a property\n     * other than a rejecting promise, this property will be set\n     * with that value.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    value: null,\n    /**\n     * If this TaskInstance is canceled or throws an error (or yields\n     * a promise that rejects), this property will be set with that error.\n     * Otherwise, it is null.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    error: null,\n    /**\n     * True if the task instance is fulfilled.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    isSuccessful: false,\n    /**\n     * True if the task instance resolves to a rejection.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    isError: false,\n    /**\n     * True if the task instance is canceled\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    isCanceled: false,\n    /**\n     * True if the task instance has started, else false.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    hasStarted: false,\n    /**\n     * True if the task has run to completion.\n     *\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n    isFinished: false\n  };\n});","define(\"ember-concurrency/-private/external/task/default-state\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.DEFAULT_STATE = void 0;\n  const DEFAULT_STATE = _exports.DEFAULT_STATE = {\n    last: null,\n    lastRunning: null,\n    lastPerformed: null,\n    lastSuccessful: null,\n    lastComplete: null,\n    lastErrored: null,\n    lastCanceled: null,\n    lastIncomplete: null,\n    performCount: 0\n  };\n  Object.freeze(DEFAULT_STATE);\n});","define(\"ember-concurrency/-private/external/task/task-group\", [\"exports\", \"ember-concurrency/-private/external/task/taskable\"], function (_exports, _taskable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskGroup = void 0;\n  class TaskGroup extends _taskable.Taskable {}\n  _exports.TaskGroup = TaskGroup;\n});","define(\"ember-concurrency/-private/external/task/task\", [\"exports\", \"ember-concurrency/-private/external/task/taskable\", \"ember-concurrency/-private/external/task-instance/executor\"], function (_exports, _taskable, _executor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.Task = void 0;\n  class TaskLinkProxy {\n    constructor(task, performType, linkedObject) {\n      this.task = task;\n      this.performType = performType;\n      this.linkedObject = linkedObject;\n    }\n    perform(...args) {\n      return this.task._performShared(args, this.performType, this.linkedObject);\n    }\n  }\n  class Task extends _taskable.Taskable {\n    constructor(options) {\n      super(options);\n      this.generatorFactory = options.generatorFactory;\n      this.perform = this._perform.bind(this);\n    }\n    linked() {\n      let linkedObject = (0, _executor.getRunningInstance)();\n      if (!linkedObject) {\n        throw new Error(`You can only call .linked() from within a task.`);\n      }\n      return new TaskLinkProxy(this, _executor.PERFORM_TYPE_LINKED, linkedObject);\n    }\n    unlinked() {\n      return new TaskLinkProxy(this, _executor.PERFORM_TYPE_UNLINKED, null);\n    }\n    toString() {\n      return `<Task:${this.name}>`;\n    }\n    _clone() {\n      return new Task({\n        context: this.context,\n        debug: this.debug,\n        env: this.env,\n        generatorFactory: this.generatorFactory,\n        group: this.group,\n        hasEnabledEvents: this.hasEnabledEvents,\n        name: this.name,\n        onStateCallback: this.onStateCallback,\n        scheduler: this.scheduler\n      });\n    }\n    _curry(...args) {\n      let task = this._clone();\n      task._curryArgs = [...(this._curryArgs || []), ...args];\n      return task;\n    }\n    _perform(...args) {\n      return this._performShared(args, _executor.PERFORM_TYPE_DEFAULT, null);\n    }\n    _performShared(args, performType, linkedObject) {\n      let fullArgs = this._curryArgs ? [...this._curryArgs, ...args] : args;\n      let taskInstance = this._taskInstanceFactory(fullArgs, performType, linkedObject);\n      if (performType === _executor.PERFORM_TYPE_LINKED) {\n        linkedObject._expectsLinkedYield = true;\n      }\n      if (!this._isAlive) {\n        // a task linked to a dead lifetime should immediately cancel.\n        taskInstance.cancel();\n      }\n      this.scheduler.perform(taskInstance);\n      return taskInstance;\n    }\n\n    // eslint-disable-next-line no-unused-vars\n    _taskInstanceOptions(args, performType, _linkedObject) {\n      let generatorFactory = () => this.generatorFactory(args);\n      let taskInstanceOptions = {\n        task: this,\n        args,\n        executor: new _executor.TaskInstanceExecutor({\n          generatorFactory,\n          env: this.env,\n          debug: this.debug\n        }),\n        performType,\n        hasEnabledEvents: this.hasEnabledEvents\n      };\n      return taskInstanceOptions;\n    }\n  }\n  _exports.Task = Task;\n});","define(\"ember-concurrency/-private/external/task/taskable\", [\"exports\", \"ember-concurrency/-private/external/task/default-state\", \"ember-concurrency/-private/external/task-instance/cancelation\"], function (_exports, _defaultState, _cancelation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.Taskable = void 0;\n  let guidId = 0;\n  function makeGuid() {\n    return `ec_${guidId++}`;\n  }\n  class Taskable {\n    constructor(options) {\n      this.context = options.context;\n      this.debug = options.debug || false;\n      this.enabledModifiers = options.enabledModifiers;\n      this.env = options.env;\n      this.group = options.group;\n      this.hasEnabledEvents = options.hasEnabledEvents;\n      this.modifierOptions = options.modifierOptions;\n      this.name = options.name;\n      this.onStateCallback = options.onStateCallback;\n      this.scheduler = options.scheduler;\n      this.guid = makeGuid();\n      this.guids = {};\n      this.guids[this.guid] = true;\n      if (this.group) {\n        Object.assign(this.guids, this.group.guids);\n      }\n    }\n    cancelAll(options) {\n      let {\n        reason,\n        cancelRequestKind,\n        resetState\n      } = options || {};\n      reason = reason || '.cancelAll() was explicitly called on the Task';\n      let cancelRequest = new _cancelation.CancelRequest(cancelRequestKind || _cancelation.CANCEL_KIND_EXPLICIT, reason);\n      return this.scheduler.cancelAll(this.guid, cancelRequest).then(() => {\n        if (resetState) {\n          this._resetState();\n        }\n      });\n    }\n    get _isAlive() {\n      return true;\n    }\n    _resetState() {\n      this.setState(_defaultState.DEFAULT_STATE);\n    }\n\n    // override\n    setState() {}\n  }\n  _exports.Taskable = Taskable;\n  Object.assign(Taskable.prototype, _defaultState.DEFAULT_STATE);\n  Object.assign(Taskable.prototype, {\n    numRunning: 0,\n    numQueued: 0,\n    isRunning: false,\n    isQueued: false,\n    isIdle: true,\n    state: 'idle'\n  });\n});","define(\"ember-concurrency/-private/external/yieldables\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.Yieldable = _exports.YIELDABLE_THROW = _exports.YIELDABLE_RETURN = _exports.YIELDABLE_CONTINUE = _exports.YIELDABLE_CANCEL = void 0;\n  _exports.animationFrame = animationFrame;\n  _exports.forever = _exports.cancelableSymbol = void 0;\n  _exports.rawTimeout = rawTimeout;\n  _exports.yieldableSymbol = void 0;\n  const cancelableSymbol = _exports.cancelableSymbol = '__ec_cancel__';\n  const yieldableSymbol = _exports.yieldableSymbol = '__ec_yieldable__';\n  const YIELDABLE_CONTINUE = _exports.YIELDABLE_CONTINUE = 'next';\n  const YIELDABLE_THROW = _exports.YIELDABLE_THROW = 'throw';\n  const YIELDABLE_RETURN = _exports.YIELDABLE_RETURN = 'return';\n  const YIELDABLE_CANCEL = _exports.YIELDABLE_CANCEL = 'cancel';\n\n  /**\n   * @class YieldableState\n   * @hideconstructor\n   */\n  class YieldableState {\n    constructor(taskInstance, resumeIndex) {\n      this._taskInstance = taskInstance;\n      this._resumeIndex = resumeIndex;\n    }\n\n    /**\n     * Return yielded TaskInstance. Useful for introspection on instance state.\n     * @method getTaskInstance\n     * @memberof YieldableState\n     * @public\n     * @instance\n     */\n    getTaskInstance() {\n      return this._taskInstance;\n    }\n\n    /**\n     * Cancel the yielded TaskInstance.\n     * @method cancel\n     * @memberof YieldableState\n     * @public\n     * @instance\n     */\n    cancel() {\n      let taskInstance = this._taskInstance;\n      taskInstance.proceed.call(taskInstance, this._resumeIndex, YIELDABLE_CANCEL);\n    }\n\n    /**\n     * Cause the TaskInstance to return from its yield with an optional value,\n     * and continue executing.\n     * @method next\n     * @memberof YieldableState\n     * @param value\n     * @public\n     * @instance\n     */\n    next(value) {\n      let taskInstance = this._taskInstance;\n      taskInstance.proceed.call(taskInstance, this._resumeIndex, YIELDABLE_CONTINUE, value);\n    }\n\n    /**\n     * Short-circuit TaskInstance execution and have it return with an optional\n     * value.\n     * @method return\n     * @memberof YieldableState\n     * @param value\n     * @public\n     * @instance\n     */\n    return(value) {\n      let taskInstance = this._taskInstance;\n      taskInstance.proceed.call(taskInstance, this._resumeIndex, YIELDABLE_RETURN, value);\n    }\n\n    /**\n     * Raise a given error within the given task instance and halt execution\n     * @method throw\n     * @memberof YieldableState\n     * @param error\n     * @public\n     * @instance\n     */\n    throw(error) {\n      let taskInstance = this._taskInstance;\n      taskInstance.proceed.call(taskInstance, this._resumeIndex, YIELDABLE_THROW, error);\n    }\n  }\n\n  /**\n   * Yieldables are a primitive for building safe, cancelation-aware ways to\n   * instrument and introspect the runtime of a task. Many Yieldables are built-in\n   * to ember-concurrency today, such as `timeout`, `animationFrame`, and\n   * `rawTimeout`.\n   *\n   * For example, if I wanted to implement a yieldable for `requestIdleCallback`,\n   * I could do the following:\n   *\n   * ```javascript\n   * import Component from '@glimmer/component';\n   * import { task, Yieldable } from 'ember-concurrency';\n   *\n   * class IdleCallbackYieldable extends Yieldable {\n   *   onYield(state) {\n   *     let callbackId = requestIdleCallback(() => state.next());\n   *\n   *     return () => cancelIdleCallback(callbackId);\n   *   }\n   * }\n   *\n   * const idleCallback = () => new IdleCallbackYieldable();\n   *\n   * class MyComponent extends Component {\n   *   &#64;task *backgroundTask() {\n   *     while (1) {\n   *       yield idleCallback();\n   *\n   *       const data = this.complicatedNumberCrunching();\n   *       yield this.sendData(data);\n   *     }\n   *   }\n   * }\n   * ```\n   *\n   * In general, `Yieldable` instances **should** be reusable across calls, and thus\n   * care should be taken to ensure that teardown is provided and state not\n   * intended to be shared across calls stay inside `onYield`.\n   *\n   * `Yieldable` also provides automatic Promise-casting.\n   *\n   * <style>\n   *   .ignore-this--this-is-here-to-hide-constructor,\n   *   #Yieldable { display: none }\n   * </style>\n   *\n   * @class Yieldable\n   */\n  class Yieldable {\n    constructor() {\n      this[yieldableSymbol] = this[yieldableSymbol].bind(this);\n    }\n\n    /**\n     * Defines what happens when the task encounters `yield myYieldable` and returns\n     * a disposer function that handles any cleanup.\n     *\n     * The state parameter is provided by the runtime, and provides operations for\n     * interacting with the yielding task instance and advancing, returning,\n     * throwing, or canceling its execution.\n     *\n     * @method onYield\n     * @memberof Yieldable\n     * @param {YieldableState} state\n     * @instance\n     * @public\n     */\n    onYield() {}\n    _deferable() {\n      let def = {\n        resolve: undefined,\n        reject: undefined\n      };\n      def.promise = new Promise((resolve, reject) => {\n        def.resolve = resolve;\n        def.reject = reject;\n      });\n      return def;\n    }\n    _toPromise() {\n      let def = this._deferable();\n      let thinInstance = {\n        proceed(_index, resumeType, value) {\n          if (resumeType == YIELDABLE_CONTINUE || resumeType == YIELDABLE_RETURN) {\n            def.resolve(value);\n          } else {\n            def.reject(value);\n          }\n        }\n      };\n      let maybeDisposer = this[yieldableSymbol](thinInstance, 0);\n      def.promise[cancelableSymbol] = maybeDisposer;\n      return def.promise;\n    }\n\n    /**\n     * Returns a promise that resolves with the value yielded back to or returned\n     * to the yielded task, or rejects with either the exception thrown from the\n     * Yieldable, or an error with a `.name` property with value `\"TaskCancelation\"`.\n     *\n     * @method then\n     * @memberof Yieldable\n     * @instance\n     * @return {Promise}\n     */\n    then(...args) {\n      return this._toPromise().then(...args);\n    }\n\n    /**\n     * @method catch\n     * @memberof Yieldable\n     * @instance\n     * @return {Promise}\n     */\n    catch(...args) {\n      return this._toPromise().catch(...args);\n    }\n\n    /**\n     * @method finally\n     * @memberof Yieldable\n     * @instance\n     * @return {Promise}\n     */\n    finally(...args) {\n      return this._toPromise().finally(...args);\n    }\n    [yieldableSymbol](taskInstance, resumeIndex) {\n      let state = new YieldableState(taskInstance, resumeIndex);\n      return this.onYield(state);\n    }\n  }\n  _exports.Yieldable = Yieldable;\n  class AnimationFrameYieldable extends Yieldable {\n    onYield(state) {\n      let timerId = requestAnimationFrame(() => state.next());\n      return () => cancelAnimationFrame(timerId);\n    }\n  }\n  class ForeverYieldable extends Yieldable {\n    onYield() {}\n  }\n  class RawTimeoutYieldable extends Yieldable {\n    constructor(ms) {\n      super();\n      this.ms = ms;\n    }\n    onYield(state) {\n      let timerId = setTimeout(() => state.next(), this.ms);\n      return () => clearTimeout(timerId);\n    }\n  }\n\n  /**\n   * Yielding `animationFrame()` will pause a task until after the next animation\n   * frame using the native `requestAnimationFrame()` browser API.\n   *\n   * The task below, when performed, will print the time since the last loop run\n   * for every animation frame.\n   *\n   * ```js\n   * export default class MyComponent extends Component {\n   *   &#64;task *myTask() {\n   *     let lastNow = performance.now();\n   *     while (true) {\n   *       yield animationFrame();\n   *\n   *       let now = performance.now();\n   *       let dt = now - lastNow;\n   *       lastNow = now;\n   *\n   *       console.log(dt);\n   *     }\n   *   }\n   * }\n   * ```\n   */\n  function animationFrame() {\n    return new AnimationFrameYieldable();\n  }\n\n  /**\n   *\n   * Yielding `forever` will pause a task indefinitely until\n   * it is cancelled (i.e. via host object destruction, the restartable modifier,\n   * or manual cancellation).\n   *\n   * This is often useful in cases involving animation: if you're\n   * using Liquid Fire, or some other animation scheme, sometimes you'll\n   * notice buttons visibly reverting to their inactive states during\n   * a route transition. By yielding `forever` in a Component task that drives a\n   * button's active state, you can keep a task indefinitely running\n   * until the animation runs to completion.\n   *\n   * NOTE: Liquid Fire also includes a useful `waitUntilIdle()` method\n   * on the `liquid-fire-transitions` service that you can use in a lot\n   * of these cases, but it won't cover cases of asynchrony that are\n   * unrelated to animation, in which case `forever` might be better suited\n   * to your needs.\n   *\n   * ```js\n   * import { task, forever } from 'ember-concurrency';\n   * export default class MyComponent extends Component {\n   *   &#64;service myService;\n   *   &#64;task *myTask() {\n   *     yield this.myService.doSomethingThatCausesATransition();\n   *     yield forever;\n   *   }\n   * }\n   * ```\n   */\n  const forever = _exports.forever = new ForeverYieldable();\n\n  /**\n   *\n   * Yielding `rawTimeout(ms)` will pause a task for the duration\n   * of time passed in, in milliseconds.\n   *\n   * The timeout will use the native `setTimeout()` browser API,\n   * instead of the Ember runloop, which means that test helpers\n   * will *not* wait for it to complete.\n   *\n   * The task below, when performed, will print a message to the\n   * console every second.\n   *\n   * ```js\n   * export default class MyComponent extends Component {\n   *   &#64;task *myTask() {\n   *     while (true) {\n   *       console.log(\"Hello!\");\n   *       yield rawTimeout(1000);\n   *     }\n   *   }\n   * }\n   * ```\n   *\n   * @param {number} ms - the amount of time to sleep before resuming\n   *   the task, in milliseconds\n   */\n  function rawTimeout(ms) {\n    return new RawTimeoutYieldable(ms);\n  }\n});","define(\"ember-concurrency/-private/helpers\", [\"exports\", \"@ember/object\", \"@ember/debug\"], function (_exports, _object, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.taskHelperClosure = taskHelperClosure;\n  function taskHelperClosure(helperName, taskMethod, _args, hash) {\n    let task = _args[0];\n    let outerArgs = _args.slice(1);\n    return function (...innerArgs) {\n      if (!task || typeof task[taskMethod] !== 'function') {\n        (true && !(false) && (0, _debug.assert)(`The first argument passed to the \\`${helperName}\\` helper should be a Task object (without quotes); you passed ${task}`, false));\n        return;\n      }\n      if (hash && hash.value) {\n        let event = innerArgs.pop();\n        innerArgs.push((0, _object.get)(event, hash.value));\n      }\n      return task[taskMethod](...outerArgs, ...innerArgs);\n    };\n  }\n});","define(\"ember-concurrency/-private/scheduler/ember-scheduler\", [\"exports\", \"ember-concurrency/-private/external/scheduler/scheduler\", \"@ember/runloop\"], function (_exports, _scheduler, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class EmberScheduler extends _scheduler.default {\n    scheduleRefresh() {\n      (0, _runloop.once)(this, this.refresh);\n    }\n  }\n  var _default = _exports.default = EmberScheduler;\n});","define(\"ember-concurrency/-private/task-decorators\", [\"exports\", \"@ember/object\", \"ember-concurrency/-private/external/task-decorators\", \"ember-concurrency/-private/task-factory\", \"ember-concurrency/-private/utils\"], function (_exports, _object, _taskDecorators, _taskFactory, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.taskGroup = _exports.task = _exports.restartableTaskGroup = _exports.restartableTask = _exports.lastValue = _exports.keepLatestTaskGroup = _exports.keepLatestTask = _exports.enqueueTaskGroup = _exports.enqueueTask = _exports.dropTaskGroup = _exports.dropTask = void 0;\n  const computedLastValue = (0, _taskDecorators.decoratorWithParams)((target, key, descriptor, [taskName] = []) => {\n    const {\n      initializer\n    } = descriptor;\n    delete descriptor.initializer;\n    let cp = (0, _object.computed)(`${taskName}.lastSuccessful`, function () {\n      let lastInstance = (0, _object.get)(this, `${taskName}.lastSuccessful`);\n      if (lastInstance) {\n        // eslint-disable-next-line ember/no-get\n        return (0, _object.get)(lastInstance, 'value');\n      }\n      if (initializer) {\n        return initializer.call(this);\n      }\n      return undefined;\n    });\n    return cp(target, key, descriptor);\n  });\n  const lastValue = _exports.lastValue = _utils.USE_TRACKED ? _taskDecorators.lastValue : computedLastValue;\n\n  /**\n   * A Task is a cancelable, restartable, asynchronous operation that\n   * is driven by a generator function. Tasks are automatically canceled\n   * when the object they live on is destroyed (e.g. a Component\n   * is unrendered).\n   *\n   * Turns the decorated generator function into a task.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task. For instance `maxConcurrency`, `on`, `group` or `keepLatest`.\n   *\n   * By default, tasks have no concurrency constraints\n   * (multiple instances of a task can be running at the same time)\n   * but much of a power of tasks lies in proper usage of Task Modifiers\n   * that you can apply to a task.\n   *\n   * You can also define an\n   * <a href=\"/docs/advanced/encapsulated-task\">Encapsulated Task</a>\n   * by decorating an object that defines a `perform` generator\n   * method.\n   *\n   * ```js\n   * import Component from '@ember/component';\n   * import { task } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;task\n   *   *plainTask() {}\n   *\n   *   &#64;task({ maxConcurrency: 5, keepLatest: true, cancelOn: 'click' })\n   *   *taskWithModifiers() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}] Task modifier options\n   * @param {string|string[]} [options.cancelOn] Events to cancel task on. Applies only to `&#64;ember/component`\n   * @param {boolean} [options.enqueue] Sets `enqueue` modifier on task if `true`\n   * @param {boolean} [options.evented] Enables [task lifecycle events](/docs/advanced/lifecycle-events) for this Task, if `true`\n   * @param {boolean} [options.debug] Enables task debugging if `true`\n   * @param {boolean} [options.drop] Sets `drop` modifier on task if `true`\n   * @param {string} [options.group] Associates task with the group specified\n   * @param {boolean} [options.keepLatest] Sets `keepLatest` modifier on task if `true`\n   * @param {number} [options.maxConcurrency] Sets the maximum number of running task instances for the task\n   * @param {string|string[]} [options.observes] Properties to watch and cause task to be performed when they change\n   * @param {string|string[]} [options.on] Events to perform task on. Applies only to `&#64;ember/component`\n   * @param {function?} [options.onState] Callback to use for state tracking. May be set to `null` to disable state tracking.\n   * @param {boolean} [options.restartable] Sets `restartable` modifier on task if `true`\n   * @return {Task}\n   */\n  const task = _exports.task = (0, _taskDecorators.createTaskDecorator)({}, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated generator function into a task and applies the\n   * `drop` modifier.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task. For instance `maxConcurrency`, `on`, or `group`.\n   *\n   * You can also define an\n   * <a href=\"/docs/advanced/encapsulated-task\">Encapsulated Task</a>\n   * by decorating an object that defines a `perform` generator\n   * method.\n   *\n   * ```js\n   * import Component from '@ember/component';\n   * import { task, dropTask } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;task\n   *   *plainTask() {}\n   *\n   *   &#64;dropTask({ cancelOn: 'click' })\n   *   *myDropTask() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}] Task modifier options. See {@link task} for list.\n   * @return {Task}\n   */\n  const dropTask = _exports.dropTask = (0, _taskDecorators.createTaskDecorator)({\n    drop: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated generator function into a task and applies the\n   * `enqueue` modifier.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task. For instance `maxConcurrency`, `on`, or `group`.\n   *\n   * You can also define an\n   * <a href=\"/docs/advanced/encapsulated-task\">Encapsulated Task</a>\n   * by decorating an object that defines a `perform` generator\n   * method.\n   *\n   * ```js\n   * import Component from '@ember/component';\n   * import { task, enqueueTask } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;task\n   *   *plainTask() {}\n   *\n   *   &#64;enqueueTask({ cancelOn: 'click' })\n   *   *myEnqueueTask() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}] Task modifier options. See {@link task} for list.\n   * @return {Task}\n   */\n  const enqueueTask = _exports.enqueueTask = (0, _taskDecorators.createTaskDecorator)({\n    enqueue: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated generator function into a task and applies the\n   * `keepLatest` modifier.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task. For instance `maxConcurrency`, `on`, or `group`.\n   *\n   * You can also define an\n   * <a href=\"/docs/advanced/encapsulated-task\">Encapsulated Task</a>\n   * by decorating an object that defines a `perform` generator\n   * method.\n   *\n   * ```js\n   * import Component from '@ember/component';\n   * import { task, keepLatestTask } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;task\n   *   *plainTask() {}\n   *\n   *   &#64;keepLatestTask({ cancelOn: 'click' })\n   *   *myKeepLatestTask() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}] Task modifier options. See {@link task} for list.\n   * @return {Task}\n   */\n  const keepLatestTask = _exports.keepLatestTask = (0, _taskDecorators.createTaskDecorator)({\n    keepLatest: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated generator function into a task and applies the\n   * `restartable` modifier.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task. For instance `maxConcurrency`, `on`, or `group`.\n   *\n   * You can also define an\n   * <a href=\"/docs/advanced/encapsulated-task\">Encapsulated Task</a>\n   * by decorating an object that defines a `perform` generator\n   * method.\n   *\n   * ```js\n   * import Component from '@ember/component';\n   * import { task, restartableTask } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;task\n   *   *plainTask() {}\n   *\n   *   &#64;restartableTask({ cancelOn: 'click' })\n   *   *myRestartableTask() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}] Task modifier options. See {@link task} for list.\n   * @return {Task}\n   */\n  const restartableTask = _exports.restartableTask = (0, _taskDecorators.createTaskDecorator)({\n    restartable: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * \"Task Groups\" provide a means for applying\n   * task modifiers to groups of tasks. Once a {@linkcode Task} is declared\n   * as part of a group task, modifiers like `drop` or `restartable`\n   * will no longer affect the individual `Task`. Instead those\n   * modifiers can be applied to the entire group.\n   *\n   * Turns the decorated property into a task group.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task group. For instance `maxConcurrency` or `keepLatest`.\n   *\n   * ```js\n   * import Component from '@glimmer/component';\n   * import { task, taskGroup } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;taskGroup({ maxConcurrency: 5 }) chores;\n   *\n   *   &#64;task({ group: 'chores' })\n   *   *mowLawn() {}\n   *\n   *   &#64;task({ group: 'chores' })\n   *   *doDishes() {}\n   * }\n   * ```\n   *\n   * @function\n   * @param {object?} [options={}] Task group modifier options. See {@link task} for list.\n   * @return {TaskGroup}\n   */\n  const taskGroup = _exports.taskGroup = (0, _taskDecorators.createTaskGroupDecorator)({}, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated property into a task group and applies the\n   * `drop` modifier.\n   *\n   * Optionally takes a hash of further options that will be applied as modifiers\n   * to the task group.\n   *\n   * @function\n   * @param {object?} [options={}] Task group modifier options. See {@link task} for list.\n   * @return {TaskGroup}\n   */\n  const dropTaskGroup = _exports.dropTaskGroup = (0, _taskDecorators.createTaskGroupDecorator)({\n    drop: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated property into a task group and applies the\n   * `enqueue` modifier.\n   *\n   * Optionally takes a hash of further options that will be applied as modifiers\n   * to the task group.\n   *\n   * @function\n   * @param {object?} [options={}] Task group modifier options. See {@link task} for list.\n   * @return {TaskGroup}\n   */\n  const enqueueTaskGroup = _exports.enqueueTaskGroup = (0, _taskDecorators.createTaskGroupDecorator)({\n    enqueue: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated property into a task group and applies the\n   * `keepLatest` modifier.\n   *\n   * Optionally takes a hash of further options that will be applied as modifiers\n   * to the task group.\n   *\n   * @function\n   * @param {object?} [options={}] Task group modifier options. See {@link task} for list.\n   * @return {TaskGroup}\n   */\n  const keepLatestTaskGroup = _exports.keepLatestTaskGroup = (0, _taskDecorators.createTaskGroupDecorator)({\n    keepLatest: true\n  }, _taskFactory.TaskFactory);\n\n  /**\n   * Turns the decorated property into a task group and applies the\n   * `restartable` modifier.\n   *\n   * Optionally takes a hash of further options that will be applied as modifiers\n   * to the task group.\n   *\n   * @function\n   * @param {object?} [options={}] Task group modifier options. See {@link task} for list.\n   * @return {TaskGroup}\n   */\n  const restartableTaskGroup = _exports.restartableTaskGroup = (0, _taskDecorators.createTaskGroupDecorator)({\n    restartable: true\n  }, _taskFactory.TaskFactory);\n});","define(\"ember-concurrency/-private/task-factory\", [\"exports\", \"@ember/debug\", \"@ember/object\", \"@ember/object/events\", \"@ember/object/observers\", \"@ember/runloop\", \"ember-concurrency/-private/external/task-factory\", \"ember-concurrency/-private/task\", \"ember-concurrency/-private/task-properties\", \"ember-concurrency/-private/task-group\", \"ember-concurrency/-private/scheduler/ember-scheduler\", \"ember-concurrency/-private/ember-environment\"], function (_exports, _debug, _object, _events, _observers, _runloop, _taskFactory, _task, _taskProperties, _taskGroup, _emberScheduler, _emberEnvironment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskFactory = void 0;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  let handlerCounter = 0;\n  function registerOnPrototype(addListenerOrObserver, proto, names, taskName, taskMethod, once) {\n    if (names && names.length > 0) {\n      for (let i = 0; i < names.length; ++i) {\n        let name = names[i];\n        let handlerName = `__ember_concurrency_handler_${handlerCounter++}`;\n        proto[handlerName] = makeTaskCallback(taskName, taskMethod, once);\n        addListenerOrObserver(proto, name, null, handlerName);\n      }\n    }\n  }\n  function makeTaskCallback(taskName, method, once) {\n    return function () {\n      let task = (0, _object.get)(this, taskName);\n      if (once) {\n        (0, _runloop.scheduleOnce)('actions', task, method, ...arguments);\n      } else {\n        task[method].apply(task, arguments);\n      }\n    };\n  }\n  const ensureArray = possibleArr => Array.isArray(possibleArr) ? possibleArr : [possibleArr];\n  (0, _taskFactory.registerModifier)('cancelOn', (factory, eventNames) => factory.addCancelEvents(...ensureArray(eventNames)));\n  (0, _taskFactory.registerModifier)('observes', (factory, propertyPaths) => factory.addObserverKeys(...ensureArray(propertyPaths)));\n  (0, _taskFactory.registerModifier)('on', (factory, eventNames) => factory.addPerformEvents(...ensureArray(eventNames)));\n  class TaskFactory extends _taskFactory.TaskFactory {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"env\", _emberEnvironment.EMBER_ENVIRONMENT);\n    }\n    createTask(context) {\n      (true && !(this.taskDefinition) && (0, _debug.assert)(`Cannot create task if a task definition is not provided as generator function or encapsulated task.`, this.taskDefinition));\n      let options = this.getTaskOptions(context);\n      if (typeof this.taskDefinition === 'object') {\n        return new _task.EncapsulatedTask(Object.assign({\n          taskObj: this.taskDefinition\n        }, options));\n      } else {\n        return new _task.Task(Object.assign({\n          generatorFactory: args => this.taskDefinition.apply(context, args)\n        }, options));\n      }\n    }\n    createTaskGroup(context) {\n      (true && !(!this.taskDefinition) && (0, _debug.assert)(`A task definition is not expected for a task group.`, !this.taskDefinition));\n      let options = this.getTaskOptions(context);\n      return new _taskGroup.TaskGroup(options);\n    }\n    addCancelEvents(...cancelEventNames) {\n      this._cancelEventNames = this._cancelEventNames || [];\n      this._cancelEventNames.push(...cancelEventNames);\n      return this;\n    }\n    addObserverKeys(...keys) {\n      this._observes = this._observes || [];\n      this._observes.push(...keys);\n      return this;\n    }\n    addPerformEvents(...eventNames) {\n      this._eventNames = this._eventNames || [];\n      this._eventNames.push(...eventNames);\n      return this;\n    }\n    getModifier(name) {\n      let modifier = super.getModifier(name);\n      if (!modifier && typeof _taskProperties.TaskProperty.prototype[name] === 'function') {\n        // Shim for compatibility with user-defined TaskProperty prototype\n        // extensions. To be removed when replaced with proper public API.\n        modifier = _taskProperties.TaskProperty.prototype[name].bind(this);\n      }\n      (true && !(modifier) && (0, _debug.assert)(`Task option '${name}' is not recognized as a supported option.`, modifier));\n      return modifier;\n    }\n    getScheduler(schedulerPolicy, stateTrackingEnabled) {\n      return new _emberScheduler.default(schedulerPolicy, stateTrackingEnabled);\n    }\n    _setupEmberKVO(proto) {\n      // TODO: Does this make sense in a post-Ember object world?\n\n      registerOnPrototype(_events.addListener, proto, this._eventNames, this.name, 'perform', false);\n      registerOnPrototype(_events.addListener, proto, this._cancelEventNames, this.name, 'cancelAll', false);\n      registerOnPrototype(_observers.addObserver, proto, this._observes, this.name, 'perform', true);\n    }\n\n    // Provided for compatibility with ember-concurrency TaskProperty extension\n    // methods\n    get taskFn() {\n      return this.taskDefinition;\n    }\n    set taskFn(fn) {\n      this.setTaskDefinition(fn);\n    }\n  }\n  _exports.TaskFactory = TaskFactory;\n});","define(\"ember-concurrency/-private/task-group\", [\"exports\", \"ember-concurrency/-private/external/task/task-group\", \"ember-concurrency/-private/taskable-mixin\", \"ember-concurrency/-private/tracked-state\"], function (_exports, _taskGroup, _taskableMixin, _trackedState) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskGroup = void 0;\n  /**\n   * \"Task Groups\" provide a means for applying\n   * task modifiers to groups of tasks. Once a {@linkcode Task} is declared\n   * as part of a group task, modifiers like `drop` or `restartable`\n   * will no longer affect the individual `Task`. Instead those\n   * modifiers can be applied to the entire group.\n   *\n   * Turns the decorated property into a task group.\n   *\n   * Optionally takes a hash of options that will be applied as modifiers to the\n   * task group. For instance `maxConcurrency` or `keepLatest`.\n   *\n   * ```js\n   * import Component from '@glimmer/component';\n   * import { task, taskGroup } from 'ember-concurrency';\n   *\n   * class MyComponent extends Component {\n   *   &#64;taskGroup({ maxConcurrency: 5 }) chores;\n   *\n   *   &#64;task({ group: 'chores' })\n   *   *mowLawn() {}\n   *\n   *   &#64;task({ group: 'chores' })\n   *   *doDishes() {}\n   * }\n   * ```\n   *\n   * <style>\n   *  .ignore-this--this-is-here-to-hide-constructor,\n   *  #TaskGroup { display: none }\n   * </style>\n   *\n   * @class TaskGroup\n   */\n  class TaskGroup extends _taskGroup.TaskGroup {\n    /**\n     * Cancels all running or queued `TaskInstance`s for this task group.\n     * If you're trying to cancel a specific TaskInstance (rather\n     * than all of the instances running under this task group) call\n     * `.cancel()` on the specific TaskInstance.\n     *\n     * @method cancelAll\n     * @memberof TaskGroup\n     * @param options.reason A descriptive reason the task group was\n     *   cancelled. Defaults to `\".cancelAll() was explicitly called\n     *   on the Task\"`.\n     * @param options.resetState If true, will clear the task group state\n     *   (`last*` and `performCount` properties will be set to initial\n     *   values). Defaults to false.\n     * @instance\n     * @async\n     *\n     */\n    /**\n     * `true` if any current task instances are running.\n     *\n     * @memberof TaskGroup\n     * @member {boolean} isRunning\n     * @instance\n     * @readOnly\n     */\n    /**\n     * `true` if any future task instances are queued.\n     *\n     * @memberof TaskGroup\n     * @member {boolean} isQueued\n     * @instance\n     * @readOnly\n     */\n    /**\n     * `true` if the task is not in the running or queued state.\n     *\n     * @memberof TaskGroup\n     * @member {boolean} isIdle\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The current state of the task: `\"running\"`, `\"queued\"` or `\"idle\"`.\n     *\n     * @memberof TaskGroup\n     * @member {string} state\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently started task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} last\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that is currently running.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastRunning\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently performed task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastPerformed\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that succeeded.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastSuccessful\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently completed task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastComplete\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that errored.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastErrored\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently canceled task instance.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastCanceled\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that is incomplete.\n     *\n     * @memberof TaskGroup\n     * @member {TaskInstance} lastIncomplete\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The number of times this task has been performed.\n     *\n     * @memberof TaskGroup\n     * @member {number} performCount\n     * @instance\n     * @readOnly\n     */\n  }\n  _exports.TaskGroup = TaskGroup;\n  if (_trackedState.TRACKED_INITIAL_TASK_STATE) {\n    Object.defineProperties(TaskGroup.prototype, _trackedState.TRACKED_INITIAL_TASK_STATE);\n  }\n  Object.assign(TaskGroup.prototype, _taskableMixin.TASKABLE_MIXIN);\n});","define(\"ember-concurrency/-private/task-instance\", [\"exports\", \"ember-concurrency/-private/external/task-instance/base\", \"ember-concurrency/-private/tracked-state\", \"ember-concurrency/-private/utils\"], function (_exports, _base, _trackedState, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TaskInstance = void 0;\n  /**\n    A `TaskInstance` represent a single execution of a\n    {@linkcode Task}. Every call to {@linkcode Task#perform} returns\n    a `TaskInstance`.\n  \n    `TaskInstance`s are cancelable, either explicitly\n    via {@linkcode TaskInstance#cancel} or {@linkcode Task#cancelAll},\n    or automatically due to the host object being destroyed, or\n    because concurrency policy enforced by a\n    {@linkcode TaskProperty Task Modifier} canceled the task instance.\n  \n    <style>\n      .ignore-this--this-is-here-to-hide-constructor,\n      #TaskInstance { display: none }\n    </style>\n  \n    @class TaskInstance\n  */\n\n  class TaskInstance extends _base.BaseTaskInstance {\n    setState(props) {\n      let state = this._recomputeState(props);\n      (0, _utils.assignProperties)(this, {\n        ...props,\n        isRunning: !props.isFinished,\n        isDropped: state === 'dropped',\n        state\n      });\n    }\n    _recomputeState(props) {\n      if (props.isDropped) {\n        return 'dropped';\n      } else if (props.isCanceled) {\n        if (props.hasStarted) {\n          return 'canceled';\n        } else {\n          return 'dropped';\n        }\n      } else if (props.isFinished) {\n        return 'finished';\n      } else if (props.hasStarted) {\n        return 'running';\n      } else {\n        return 'waiting';\n      }\n    }\n    onStarted() {\n      this.triggerEvent('started', this);\n    }\n    onSuccess() {\n      this.triggerEvent('succeeded', this);\n    }\n    onError(error) {\n      this.triggerEvent('errored', this, error);\n    }\n    onCancel(cancelReason) {\n      this.triggerEvent('canceled', this, cancelReason);\n    }\n    formatCancelReason(reason) {\n      return `TaskInstance '${this.getName()}' was canceled because ${reason}. For more information, see: http://ember-concurrency.com/docs/task-cancelation-help`;\n    }\n    getName() {\n      if (!this.name) {\n        this.name = this.task && this.task.name || '<unknown>';\n      }\n      return this.name;\n    }\n    selfCancelLoopWarning(parent) {\n      let parentName = `\\`${parent.getName()}\\``;\n      let childName = `\\`${this.getName()}\\``;\n      // eslint-disable-next-line no-console\n      console.warn(`ember-concurrency detected a potentially hazardous \"self-cancel loop\" between parent task ${parentName} and child task ${childName}. If you want child task ${childName} to be canceled when parent task ${parentName} is canceled, please change \\`.perform()\\` to \\`.linked().perform()\\`. If you want child task ${childName} to keep running after parent task ${parentName} is canceled, change it to \\`.unlinked().perform()\\``);\n    }\n    triggerEvent(...allArgs) {\n      if (!this.hasEnabledEvents) {\n        return;\n      }\n      let taskInstance = this;\n      let task = taskInstance.task;\n      let host = task.context;\n      let eventNamespace = task && task.name;\n      if (host && host.trigger && eventNamespace) {\n        let [eventType, ...args] = allArgs;\n        host.trigger(`${eventNamespace}:${eventType}`, ...args);\n      }\n    }\n\n    /**\n     * Describes the state that the task instance is in. Can be used for debugging,\n     * or potentially driving some UI state. Possible values are:\n     *\n     * - `\"dropped\"`: task instance was canceled before it started\n     * - `\"canceled\"`: task instance was canceled before it could finish\n     * - `\"finished\"`: task instance ran to completion (even if an exception was thrown)\n     * - `\"running\"`: task instance is currently running (returns true even if\n     *     is paused on a yielded promise)\n     * - `\"waiting\"`: task instance hasn't begun running yet (usually\n     *     because the task is using the {@linkcode TaskProperty#enqueue enqueue}\n     *     task modifier)\n     *\n     * The animated timeline examples on the [Task Concurrency](/docs/task-concurrency)\n     * docs page make use of this property.\n     *\n     * @name state\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n\n    /**\n     * True if the TaskInstance was canceled before it could\n     * ever start running. For example, calling\n     * {@linkcode Task#perform .perform()} twice on a\n     * task with the {@linkcode TaskProperty#drop drop} modifier applied\n     * will result in the second task instance being dropped.\n     *\n     * @name isDropped\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n\n    /**\n     * True if the task is still running.\n     *\n     * @name isRunning\n     * @memberof TaskInstance\n     * @instance\n     * @readOnly\n     */\n\n    /**\n     * Event emitted when a new {@linkcode TaskInstance} starts executing.\n     *\n     * `on` from `@ember/object/evented` may be used to create a binding on the host object to the event.\n     *\n     * ```js\n     * export default Component.extend({\n     *   doSomething: task(function * () {\n     *     // ... does something\n     *   }),\n     *\n     *   onDoSomethingStarted: on('doSomething:started', function (taskInstance) {\n     *     // ...\n     *   })\n     * });\n     * ```\n     *\n     * @event TaskInstance#TASK_NAME:started\n     * @param {TaskInstance} taskInstance - Task instance that was started\n     */\n\n    /**\n     * Event emitted when a {@linkcode TaskInstance} succeeds.\n     *\n     * `on` from `@ember/object/evented` may be used to create a binding on the host object to the event.\n     *\n     * ```js\n     * export default Component.extend({\n     *   doSomething: task(function * () {\n     *     // ... does something\n     *   }),\n     *\n     *   onDoSomethingSucceeded: on('doSomething:succeeded', function (taskInstance) {\n     *     // ...\n     *   })\n     * });\n     * ```\n     *\n     * @event TaskInstance#TASK_NAME:succeeded\n     * @param {TaskInstance} taskInstance - Task instance that was succeeded\n     */\n\n    /**\n     * Event emitted when a {@linkcode TaskInstance} throws an an error that is\n     * not handled within the task itself.\n     *\n     * `on` from `@ember/object/evented` may be used to create a binding on the host object to the event.\n     *\n     * ```js\n     * export default Component.extend({\n     *   doSomething: task(function * () {\n     *     // ... does something\n     *   }),\n     *\n     *   onDoSomethingErrored: on('doSomething:errored', function (taskInstance, error) {\n     *     // ...\n     *   })\n     * });\n     * ```\n     *\n     * @event TaskInstance#TASK_NAME:errored\n     * @param {TaskInstance} taskInstance - Task instance that was started\n     * @param {Error} error - Error that was thrown by the task instance\n     */\n\n    /**\n     * Event emitted when a {@linkcode TaskInstance} is canceled.\n     *\n     * `on` from `@ember/object/evented` may be used to create a binding on the host object to the event.\n     *\n     * ```js\n     * export default Component.extend({\n     *   doSomething: task(function * () {\n     *     // ... does something\n     *   }),\n     *\n     *   onDoSomethingCanceled: on('doSomething:canceled', function (taskInstance, cancelationReason) {\n     *     // ...\n     *   })\n     * });\n     * ```\n     *\n     * @event TaskInstance#TASK_NAME:canceled\n     * @param {TaskInstance} taskInstance - Task instance that was started\n     * @param {string} cancelationReason - Cancelation reason that was was provided to {@linkcode TaskInstance#cancel}\n     */\n\n    /**\n     * Cancels the task instance. Has no effect if the task instance has\n     * already been canceled or has already finished running.\n     *\n     * @method cancel\n     * @memberof TaskInstance\n     * @instance\n     * @async\n     */\n\n    /**\n     * Returns a promise that resolves with the value returned\n     * from the task's (generator) function, or rejects with\n     * either the exception thrown from the task function, or\n     * an error with a `.name` property with value `\"TaskCancelation\"`.\n     *\n     * @method then\n     * @memberof TaskInstance\n     * @instance\n     * @return {Promise}\n     */\n\n    /**\n     * @method catch\n     * @memberof TaskInstance\n     * @instance\n     * @return {Promise}\n     */\n\n    /**\n     * @method finally\n     * @memberof TaskInstance\n     * @instance\n     * @return {Promise}\n     */\n  }\n  _exports.TaskInstance = TaskInstance;\n  if (_trackedState.TRACKED_INITIAL_INSTANCE_STATE) {\n    Object.defineProperties(TaskInstance.prototype, _trackedState.TRACKED_INITIAL_INSTANCE_STATE);\n  }\n});","define(\"ember-concurrency/-private/task-properties\", [\"exports\", \"ember\", \"@ember/object\", \"@ember/object/computed\", \"ember-concurrency/-private/external/scheduler/policies/enqueued-policy\", \"ember-concurrency/-private/external/scheduler/policies/drop-policy\", \"ember-concurrency/-private/external/scheduler/policies/keep-latest-policy\", \"ember-concurrency/-private/external/scheduler/policies/restartable-policy\"], function (_exports, _ember, _object, _computed, _enqueuedPolicy, _dropPolicy, _keepLatestPolicy, _restartablePolicy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.propertyModifiers = _exports.TaskProperty = _exports.TaskGroupProperty = void 0;\n  _exports.taskComputed = taskComputed;\n  _exports.taskFactorySymbol = void 0;\n  let taskFactorySymbol = _exports.taskFactorySymbol = '__ec_task_factory';\n  const propertyModifiers = _exports.propertyModifiers = {\n    /**\n     * Configures the task to cancel old currently task instances\n     * to make room for a new one to perform. Sets default\n     * maxConcurrency to 1.\n     *\n     * [See the Live Example](/docs/examples/route-tasks/1)\n     *\n     * @method restartable\n     * @memberof TaskProperty\n     * @instance\n     */\n    restartable() {\n      this[taskFactorySymbol].setBufferPolicy(_restartablePolicy.default);\n      return this;\n    },\n    /**\n     * Configures the task to run task instances one-at-a-time in\n     * the order they were `.perform()`ed. Sets default\n     * maxConcurrency to 1.\n     *\n     * @method enqueue\n     * @memberof TaskProperty\n     * @instance\n     */\n    enqueue() {\n      this[taskFactorySymbol].setBufferPolicy(_enqueuedPolicy.default);\n      return this;\n    },\n    /**\n     * Configures the task to immediately cancel (i.e. drop) any\n     * task instances performed when the task is already running\n     * at maxConcurrency. Sets default maxConcurrency to 1.\n     *\n     * @method drop\n     * @memberof TaskProperty\n     * @instance\n     */\n    drop() {\n      this[taskFactorySymbol].setBufferPolicy(_dropPolicy.default);\n      return this;\n    },\n    /**\n     * Configures the task to drop all but the most recently\n     * performed {@linkcode TaskInstance }.\n     *\n     * @method keepLatest\n     * @memberof TaskProperty\n     * @instance\n     */\n    keepLatest() {\n      this[taskFactorySymbol].setBufferPolicy(_keepLatestPolicy.default);\n      return this;\n    },\n    /**\n     * Sets the maximum number of task instances that are allowed\n     * to run at the same time. By default, with no task modifiers\n     * applied, this number is Infinity (there is no limit\n     * to the number of tasks that can run at the same time).\n     * {@linkcode TaskProperty#restartable .restartable},\n     * {@linkcode TaskProperty#enqueue .enqueue}, and\n     * {@linkcode TaskProperty#drop .drop} set the default\n     * maxConcurrency to 1, but you can override this value\n     * to set the maximum number of concurrently running tasks\n     * to a number greater than 1.\n     *\n     * [See the AJAX Throttling example](/docs/examples/ajax-throttling)\n     *\n     * The example below uses a task with `maxConcurrency(3)` to limit\n     * the number of concurrent AJAX requests (for anyone using this task)\n     * to 3.\n     *\n     * ```js\n     * doSomeAjax: task(function * (url) {\n     *   return fetch(url);\n     * }).maxConcurrency(3),\n     *\n     * elsewhere() {\n     *   this.doSomeAjax.perform(\"http://www.example.com/json\");\n     * },\n     * ```\n     *\n     * @method maxConcurrency\n     * @memberof TaskProperty\n     * @param {Number} n The maximum number of concurrently running tasks\n     * @instance\n     */\n    maxConcurrency(n) {\n      this[taskFactorySymbol].setMaxConcurrency(n);\n      return this;\n    },\n    /**\n     * Adds this task to a TaskGroup so that concurrency constraints\n     * can be shared between multiple tasks.\n     *\n     * [See the Task Group docs for more information](/docs/task-groups)\n     *\n     * @method group\n     * @memberof TaskProperty\n     * @param {String} groupPath A path to the TaskGroup property\n     * @instance\n     */\n    group(taskGroupPath) {\n      this[taskFactorySymbol].setGroup(taskGroupPath);\n      return this;\n    },\n    /**\n     * Activates lifecycle events, allowing Evented host objects to react to task state\n     * changes.\n     *\n     * ```js\n     *\n     * export default Component.extend({\n     *   uploadTask: task(function* (file) {\n     *     // ... file upload stuff\n     *   }).evented(),\n     *\n     *   uploadedStarted: on('uploadTask:started', function(taskInstance) {\n     *     this.analytics.track(\"User Photo: upload started\");\n     *   }),\n     * });\n     * ```\n     *\n     * @method evented\n     * @memberof TaskProperty\n     * @instance\n     */\n    evented() {\n      this[taskFactorySymbol].setEvented(true);\n      return this;\n    },\n    /**\n     * Logs lifecycle events to aid in debugging unexpected Task behavior.\n     * Presently only logs cancelation events and the reason for the cancelation,\n     * e.g. \"TaskInstance 'doStuff' was canceled because the object it lives on was destroyed or unrendered\"\n     *\n     * @method debug\n     * @memberof TaskProperty\n     * @instance\n     */\n    debug() {\n      this[taskFactorySymbol].setDebug(true);\n      return this;\n    },\n    /**\n     * Configures the task to call the passed in callback for derived state updates,\n     * overriding the default derived state tracking. You may call with `null` to\n     * completely opt-out of derived state tracking.\n     *\n     * @method onState\n     * @memberof TaskProperty\n     * @param {function?} callback Callback to be called. Receives an object argument with the new state.\n     * @instance\n     */\n    onState(callback) {\n      this[taskFactorySymbol].setOnState(callback);\n      return this;\n    }\n  };\n\n  /**\n    A {@link TaskProperty} is the Computed Property-like object returned\n    from the {@linkcode task} function. You can call Task Modifier methods\n    on this object to configure the behavior of the {@link Task}.\n  \n    See [Managing Task Concurrency](/docs/task-concurrency) for an\n    overview of all the different task modifiers you can use and how\n    they impact automatic cancelation / enqueueing of task instances.\n  \n    {@link TaskProperty} is only used for supporting \"classic\" Ember objects.\n    When using Native JavaScript or TypeScript classes, you will use [task decorators](/docs/task-decorators)\n    on methods instead.\n  \n    @class TaskProperty\n  */\n  let TaskProperty = _exports.TaskProperty = void 0;\n  let TaskGroupProperty = _exports.TaskGroupProperty = void 0;\n  if (true) {\n    _exports.TaskProperty = TaskProperty = class {};\n    _exports.TaskGroupProperty = TaskGroupProperty = class {};\n  } else {\n    // Prior to the 3.10.0 refactors, we had to extend the _ComputedProperty class\n    // for a classic decorator/descriptor to run correctly.\n    _exports.TaskProperty = TaskProperty = class extends _computed.default {\n      callSuperSetup() {\n        if (super.setup) {\n          super.setup(...arguments);\n        }\n      }\n    };\n    _exports.TaskGroupProperty = TaskGroupProperty = class extends _computed.default {};\n  }\n  Object.assign(TaskGroupProperty.prototype, propertyModifiers);\n  Object.assign(TaskProperty.prototype, propertyModifiers, {\n    setup(proto, key) {\n      if (this.callSuperSetup) {\n        this.callSuperSetup(...arguments);\n      }\n      this[taskFactorySymbol].setName(key);\n      this[taskFactorySymbol]._setupEmberKVO(proto);\n    },\n    /**\n     * Calling `task(...).on(eventName)` configures the task to be\n     * automatically performed when the specified events fire. In\n     * this way, it behaves like\n     * [Ember.on](http://emberjs.com/api/classes/Ember.html#method_on).\n     *\n     * You can use `task(...).on('init')` to perform the task\n     * when the host object is initialized.\n     *\n     * ```js\n     * export default Component.extend({\n     *   pollForUpdates: task(function * () {\n     *     // ... this runs when the Component is first created\n     *     // because we specified .on('init')\n     *   }).on('init'),\n     *\n     *   handleFoo: task(function * (a, b, c) {\n     *     // this gets performed automatically if the 'foo'\n     *     // event fires on this Component,\n     *     // e.g., if someone called component.trigger('foo')\n     *   }).on('foo'),\n     * });\n     * ```\n     *\n     * [See the Writing Tasks Docs for more info](/docs/writing-tasks)\n     *\n     * @method on\n     * @memberof TaskProperty\n     * @param {String} eventNames*\n     * @instance\n     */\n    on() {\n      this[taskFactorySymbol].addPerformEvents(...arguments);\n      return this;\n    },\n    /**\n     * This behaves like the {@linkcode TaskProperty#on task(...).on() modifier},\n     * but instead will cause the task to be canceled if any of the\n     * specified events fire on the parent object.\n     *\n     * [See the Live Example](/docs/examples/route-tasks/1)\n     *\n     * @method cancelOn\n     * @memberof TaskProperty\n     * @param {String} eventNames*\n     * @instance\n     */\n    cancelOn() {\n      this[taskFactorySymbol].addCancelEvents(...arguments);\n      return this;\n    },\n    /**\n     * This behaves like the {@linkcode TaskProperty#on task(...).on() modifier},\n     * but instead will cause the task to be performed if any of the\n     * specified properties on the parent object change.\n     *\n     * @method observes\n     * @memberof TaskProperty\n     * @param {String} keys*\n     * @instance\n     */\n    observes() {\n      this[taskFactorySymbol].addObserverKeys(...arguments);\n      return this;\n    }\n  });\n  const setDecorator = _ember.default._setClassicDecorator || _ember.default._setComputedDecorator;\n  function taskComputed(fn) {\n    if (true) {\n      let cp = function (proto, key) {\n        if (cp.setup !== undefined) {\n          cp.setup(proto, key);\n        }\n        return (0, _object.computed)(fn)(...arguments);\n      };\n      setDecorator(cp);\n      return cp;\n    } else {\n      return (0, _object.computed)(fn);\n    }\n  }\n});","define(\"ember-concurrency/-private/task-public-api\", [\"exports\", \"ember-concurrency/-private/task-factory\", \"ember-concurrency/-private/task-properties\", \"ember-concurrency/-private/task-decorators\", \"@ember/debug\"], function (_exports, _taskFactory, _taskProperties, _taskDecorators, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.task = task;\n  _exports.taskGroup = taskGroup;\n  /**\n   * TODO: update docs to reflect both old and new ES6 styles\n   *\n   * A Task is a cancelable, restartable, asynchronous operation that\n   * is driven by a generator function. Tasks are automatically canceled\n   * when the object they live on is destroyed (e.g. a Component\n   * is unrendered).\n   *\n   * To define a task, use the `task(...)` function, and pass in\n   * a generator function, which will be invoked when the task\n   * is performed. The reason generator functions are used is\n   * that they (like the proposed ES7 async-await syntax) can\n   * be used to elegantly express asynchronous, cancelable\n   * operations.\n   *\n   * You can also define an\n   * <a href=\"/docs/advanced/encapsulated-task\">Encapsulated Task</a>\n   * by passing in an object that defined a `perform` generator\n   * function property.\n   *\n   * The following Component defines a task called `myTask` that,\n   * when performed, prints a message to the console, sleeps for 1 second,\n   * prints a final message to the console, and then completes.\n   *\n   * ```js\n   * import { task, timeout } from 'ember-concurrency';\n   * export default Component.extend({\n   *   myTask: task(function * () {\n   *     console.log(\"Pausing for a second...\");\n   *     yield timeout(1000);\n   *     console.log(\"Done!\");\n   *   })\n   * });\n   * ```\n   *\n   * ```hbs\n   * <button {{action myTask.perform}}>Perform Task</button>\n   * ```\n   *\n   * By default, tasks have no concurrency constraints\n   * (multiple instances of a task can be running at the same time)\n   * but much of a power of tasks lies in proper usage of Task Modifiers\n   * that you can apply to a task.\n   *\n   * @param {function} generatorFunction the generator function backing the task.\n   * @returns {TaskProperty}\n   */\n  function task(taskFnOrProtoOrDecoratorOptions, key, descriptor) {\n    (true && !(!isUntranspiledAsyncFn(arguments[arguments.length - 1])) && (0, _debug.assert)(`It appears you're attempting to use the new task(async () => { ... }) syntax, but the async arrow task function you've provided is not being properly compiled by Babel.\\n\\nPossible causes / remedies:\\n\\n1. You must pass the async function expression directly to the task() function (it is not currently supported to pass in a variable containing the async arrow fn, or any other kind of indirection)\\n2. The new task syntax is only supported by native classes. Ensure that this is one.\\n3. If this code is in an addon, please ensure the addon specifies ember-concurrency \"2.3.0\" or higher in \"dependencies\" (not \"devDependencies\")\\n4. Ensure that there is only one version of ember-concurrency v2.3.0+ being used in your project (including nested dependencies) and consider using npm/yarn/pnpm resolutions to enforce a single version is used`, !isUntranspiledAsyncFn(arguments[arguments.length - 1])));\n    if (isDecoratorOptions(taskFnOrProtoOrDecoratorOptions) || key && descriptor) {\n      return (0, _taskDecorators.task)(...arguments);\n    } else {\n      return buildClassicTaskProperty(taskFnOrProtoOrDecoratorOptions);\n    }\n  }\n  function isUntranspiledAsyncFn(obj) {\n    return obj && obj.constructor && obj.constructor.name === 'AsyncFunction';\n  }\n\n  /**\n   * Build and return a \"classic\" TaskProperty, which is essentially a subclass of a Computed Property\n   * descriptor that can be used to define Tasks on classic Ember.Objects.\n   *\n   * @private\n   */\n  function buildClassicTaskProperty(taskFn) {\n    const taskProperty = (0, _taskProperties.taskComputed)(function () {\n      taskProperty[_taskProperties.taskFactorySymbol].setTaskDefinition(taskProperty.taskFn);\n      return taskProperty[_taskProperties.taskFactorySymbol].createTask(this);\n    });\n    taskProperty.taskFn = taskFn;\n    taskProperty[_taskProperties.taskFactorySymbol] = new _taskFactory.TaskFactory();\n    Object.setPrototypeOf(taskProperty, _taskProperties.TaskProperty.prototype);\n    return taskProperty;\n  }\n\n  /**\n   * \"Task Groups\" provide a means for applying\n   * task modifiers to groups of tasks. Once a {@linkcode Task} is declared\n   * as part of a group task, modifiers like `drop` or `restartable`\n   * will no longer affect the individual `Task`. Instead those\n   * modifiers can be applied to the entire group.\n   *\n   * ```js\n   * import { task, taskGroup } from 'ember-concurrency';\n   *\n   * export default class MyController extends Controller {\n   *   &#64;taskGroup({ drop: true }) chores;\n   *\n   *   &#64;task({ group: 'chores' }) mowLawn = taskFn;\n   *   &#64;task({ group: 'chores' }) doDishes = taskFn;\n   *   &#64;task({ group: 'chores' }) changeDiapers = taskFn;\n   * }\n   * ```\n   *\n   * @returns {TaskGroup}\n   */\n  function taskGroup(possibleDecoratorOptions, key, descriptor) {\n    if (isDecoratorOptions(possibleDecoratorOptions) || key && descriptor) {\n      return (0, _taskDecorators.taskGroup)(...arguments);\n    } else {\n      let tp = (0, _taskProperties.taskComputed)(function (key) {\n        tp[_taskProperties.taskFactorySymbol].setName(key);\n        return tp[_taskProperties.taskFactorySymbol].createTaskGroup(this);\n      });\n      tp[_taskProperties.taskFactorySymbol] = new _taskFactory.TaskFactory();\n      Object.setPrototypeOf(tp, _taskProperties.TaskGroupProperty.prototype);\n      return tp;\n    }\n  }\n  function isDecoratorOptions(possibleOptions) {\n    if (!possibleOptions) {\n      return false;\n    }\n    if (typeof possibleOptions === 'function') {\n      return false;\n    }\n    if (typeof possibleOptions === 'object' && 'perform' in possibleOptions && typeof possibleOptions.perform === 'function') {\n      return false;\n    }\n    return Object.getPrototypeOf(possibleOptions) === Object.prototype;\n  }\n});","define(\"ember-concurrency/-private/task\", [\"exports\", \"@ember/application\", \"@ember/object\", \"@ember/destroyable\", \"ember-concurrency/-private/external/task/task\", \"ember-concurrency/-private/task-instance\", \"ember-concurrency/-private/external/task-instance/executor\", \"ember-concurrency/-private/taskable-mixin\", \"ember-concurrency/-private/tracked-state\", \"ember-concurrency/-private/external/task-instance/cancelation\"], function (_exports, _application, _object, _destroyable, _task, _taskInstance, _executor, _taskableMixin, _trackedState, _cancelation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.Task = _exports.EncapsulatedTask = void 0;\n  /**\n    The `Task` object lives on a host Ember object (e.g.\n    a Component, Route, or Controller). You call the\n    {@linkcode Task#perform .perform()} method on this object\n    to create run individual {@linkcode TaskInstance}s,\n    and at any point, you can call the {@linkcode Task#cancelAll .cancelAll()}\n    method on this object to cancel all running or enqueued\n    {@linkcode TaskInstance}s.\n  \n    <style>\n      .ignore-this--this-is-here-to-hide-constructor,\n      #Task { display: none }\n    </style>\n  \n    @class Task\n  */\n  class Task extends _task.Task {\n    /**\n     * `true` if any current task instances are running.\n     *\n     * @memberof Task\n     * @member {boolean} isRunning\n     * @instance\n     * @readOnly\n     */\n    /**\n     * `true` if any future task instances are queued.\n     *\n     * @memberof Task\n     * @member {boolean} isQueued\n     * @instance\n     * @readOnly\n     */\n    /**\n     * `true` if the task is not in the running or queued state.\n     *\n     * @memberof Task\n     * @member {boolean} isIdle\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The current state of the task: `\"running\"`, `\"queued\"` or `\"idle\"`.\n     *\n     * @memberof Task\n     * @member {string} state\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently started task instance.\n     *\n     * @memberof Task\n     * @member {TaskInstance} last\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that is currently running.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastRunning\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently performed task instance.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastPerformed\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that succeeded.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastSuccessful\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently completed task instance.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastComplete\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that errored.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastErrored\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recently canceled task instance.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastCanceled\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The most recent task instance that is incomplete.\n     *\n     * @memberof Task\n     * @member {TaskInstance} lastIncomplete\n     * @instance\n     * @readOnly\n     */\n    /**\n     * The number of times this task has been performed.\n     *\n     * @memberof Task\n     * @member {number} performCount\n     * @instance\n     * @readOnly\n     */\n\n    constructor(options) {\n      super(options);\n      if (!(0, _destroyable.isDestroying)(this.context)) {\n        (0, _destroyable.registerDestructor)(this.context, () => {\n          this.cancelAll({\n            reason: 'the object it lives on was destroyed or unrendered',\n            cancelRequestKind: _cancelation.CANCEL_KIND_LIFESPAN_END\n          });\n        });\n      }\n    }\n\n    /**\n     * Flags the task as linked to the parent task's lifetime. Must be called\n     * within another task's perform function. The task will be cancelled if the\n     * parent task is canceled as well.\n     *\n     * ember-concurrency will indicate when this may be needed.\n     *\n     * @method linked\n     * @memberof Task\n     * @instance\n     *\n     */\n\n    /**\n     * Flags the task as not linked to the parent task's lifetime. Must be called\n     * within another task's perform function. The task will NOT be cancelled if the\n     * parent task is canceled.\n     *\n     * This is useful for avoiding the so-called \"self-cancel loop\" for tasks.\n     * ember-concurrency will indicate when this may be needed.\n     *\n     * @method unlinked\n     * @memberof Task\n     * @instance\n     *\n     */\n\n    /**\n     * Creates a new {@linkcode TaskInstance} and attempts to run it right away.\n     * If running this task instance would increase the task's concurrency\n     * to a number greater than the task's maxConcurrency, this task\n     * instance might be immediately canceled (dropped), or enqueued\n     * to run at later time, after the currently running task(s) have finished.\n     *\n     * @method perform\n     * @memberof Task\n     * @param {*} arg* - args to pass to the task function\n     * @instance\n     *\n     * @fires TaskInstance#TASK_NAME:started\n     * @fires TaskInstance#TASK_NAME:succeeded\n     * @fires TaskInstance#TASK_NAME:errored\n     * @fires TaskInstance#TASK_NAME:canceled\n     *\n     */\n\n    /**\n     * Cancels all running or queued `TaskInstance`s for this Task.\n     * If you're trying to cancel a specific TaskInstance (rather\n     * than all of the instances running under this task) call\n     * `.cancel()` on the specific TaskInstance.\n     *\n     * @method cancelAll\n     * @memberof Task\n     * @param options.reason A descriptive reason the task was\n     *   cancelled. Defaults to `\".cancelAll() was explicitly called\n     *   on the Task\"`.\n     * @param options.resetState If true, will clear the task state\n     *   (`last*` and `performCount` properties will be set to initial\n     *   values). Defaults to false.\n     * @instance\n     * @async\n     *\n     */\n\n    get _isAlive() {\n      return !(0, _destroyable.isDestroying)(this.context);\n    }\n    _taskInstanceFactory(args, performType, linkedObject) {\n      let options = this._taskInstanceOptions(args, performType, linkedObject);\n      let taskInstance = new _taskInstance.TaskInstance(options);\n      return taskInstance;\n    }\n    _clone() {\n      return new Task({\n        context: this.context,\n        debug: this.debug,\n        env: this.env,\n        generatorFactory: this.generatorFactory,\n        group: this.group,\n        hasEnabledEvents: this.hasEnabledEvents,\n        name: this.name,\n        onStateCallback: this.onStateCallback,\n        scheduler: this.scheduler\n      });\n    }\n  }\n  _exports.Task = Task;\n  if (_trackedState.TRACKED_INITIAL_TASK_STATE) {\n    Object.defineProperties(Task.prototype, _trackedState.TRACKED_INITIAL_TASK_STATE);\n  }\n  Object.assign(Task.prototype, _taskableMixin.TASKABLE_MIXIN);\n  const currentTaskInstanceSymbol = '__ec__encap_current_ti';\n  class EncapsulatedTask extends Task {\n    constructor(options) {\n      super(options);\n      this.taskObj = options.taskObj;\n      this._encapsulatedTaskStates = new WeakMap();\n      this._encapsulatedTaskInstanceProxies = new WeakMap();\n    }\n    _getEncapsulatedTaskClass() {\n      let encapsulatedTaskImplClass = this._encapsulatedTaskImplClass;\n      if (!encapsulatedTaskImplClass) {\n        // eslint-disable-next-line ember/no-classic-classes\n        encapsulatedTaskImplClass = _object.default.extend(this.taskObj, {\n          unknownProperty(key) {\n            let currentInstance = this[currentTaskInstanceSymbol];\n            return currentInstance ? currentInstance[key] : undefined;\n          }\n        });\n      }\n      return encapsulatedTaskImplClass;\n    }\n    _taskInstanceFactory(args, performType) {\n      let owner = (0, _application.getOwner)(this.context);\n      let taskInstanceProxy;\n      let encapsulatedTaskImpl = this._getEncapsulatedTaskClass().create({\n        context: this.context\n      });\n      (0, _application.setOwner)(encapsulatedTaskImpl, owner);\n      let generatorFactory = () => encapsulatedTaskImpl.perform.apply(taskInstanceProxy, args);\n      let taskInstance = new _taskInstance.TaskInstance({\n        task: this,\n        args,\n        executor: new _executor.TaskInstanceExecutor({\n          generatorFactory,\n          env: this.env,\n          debug: this.debug\n        }),\n        performType,\n        hasEnabledEvents: this.hasEnabledEvents\n      });\n      encapsulatedTaskImpl[currentTaskInstanceSymbol] = taskInstance;\n      this._encapsulatedTaskStates.set(taskInstance, encapsulatedTaskImpl);\n      taskInstanceProxy = this._wrappedEncapsulatedTaskInstance(taskInstance);\n      return taskInstanceProxy;\n    }\n    _wrappedEncapsulatedTaskInstance(taskInstance) {\n      if (!taskInstance) {\n        return null;\n      }\n      let _encapsulatedTaskInstanceProxies = this._encapsulatedTaskInstanceProxies;\n      let proxy = _encapsulatedTaskInstanceProxies.get(taskInstance);\n      if (!proxy) {\n        let encapsulatedTaskImpl = this._encapsulatedTaskStates.get(taskInstance);\n        proxy = new Proxy(taskInstance, {\n          get(obj, prop) {\n            return prop in obj ? obj[prop] : (0, _object.get)(encapsulatedTaskImpl, prop.toString());\n          },\n          set(obj, prop, value) {\n            if (prop in obj) {\n              obj[prop] = value;\n            } else {\n              (0, _object.set)(encapsulatedTaskImpl, prop.toString(), value);\n            }\n            return true;\n          },\n          has(obj, prop) {\n            return prop in obj || prop in encapsulatedTaskImpl;\n          },\n          ownKeys(obj) {\n            return Reflect.ownKeys(obj).concat(Reflect.ownKeys(encapsulatedTaskImpl));\n          },\n          defineProperty(obj, prop, descriptor) {\n            // Ember < 3.16 uses a WeakMap for value storage, keyed to the proxy.\n            // We need to ensure that when we use setProperties to update it, and\n            // it creates Meta, that it uses the proxy to key, otherwise we'll\n            // have two different values stores in Meta, one which won't render.\n            let proxy = _encapsulatedTaskInstanceProxies.get(taskInstance);\n            if (proxy) {\n              if (descriptor.get) {\n                descriptor.get = descriptor.get.bind(proxy);\n              } else if (proxy && descriptor.set) {\n                descriptor.set = descriptor.set.bind(proxy);\n              }\n            }\n            return Reflect.defineProperty(encapsulatedTaskImpl, prop, descriptor);\n          },\n          getOwnPropertyDescriptor(obj, prop) {\n            return prop in obj ? Reflect.getOwnPropertyDescriptor(obj, prop) : Reflect.getOwnPropertyDescriptor(encapsulatedTaskImpl, prop);\n          }\n        });\n        _encapsulatedTaskInstanceProxies.set(taskInstance, proxy);\n      }\n      return proxy;\n    }\n  }\n  _exports.EncapsulatedTask = EncapsulatedTask;\n});","define(\"ember-concurrency/-private/taskable-mixin\", [\"exports\", \"ember-concurrency/-private/utils\"], function (_exports, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TASKABLE_MIXIN = void 0;\n  const TASKABLE_MIXIN = _exports.TASKABLE_MIXIN = {\n    _performCount: 0,\n    setState(state) {\n      this._performCount = this._performCount + (state.numPerformedInc || 0);\n      let isRunning = state.numRunning > 0;\n      let isQueued = state.numQueued > 0;\n      let derivedState = Object.assign({}, state, {\n        performCount: this._performCount,\n        isRunning,\n        isQueued,\n        isIdle: !isRunning && !isQueued,\n        state: isRunning ? 'running' : 'idle'\n      });\n      (0, _utils.assignProperties)(this, derivedState);\n    },\n    onState(state, task) {\n      if (task.onStateCallback) {\n        task.onStateCallback(state, task);\n      }\n    }\n  };\n});","define(\"ember-concurrency/-private/tracked-state\", [\"exports\", \"@glimmer/tracking\", \"ember-concurrency/-private/external/task/default-state\", \"ember-concurrency/-private/external/task-instance/initial-state\", \"ember-concurrency/-private/utils\"], function (_exports, _tracking, _defaultState, _initialState, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TRACKED_INITIAL_TASK_STATE = _exports.TRACKED_INITIAL_INSTANCE_STATE = void 0;\n  function trackMixin(proto, obj, key) {\n    const propDesc = Object.getOwnPropertyDescriptor(proto, key);\n    propDesc.initializer = propDesc.initializer || (() => proto[key]);\n    delete propDesc.value;\n    const desc = (0, _tracking.tracked)(obj, key, propDesc);\n    obj[key] = desc;\n    return obj;\n  }\n  function applyTracked(proto, initial) {\n    return Object.keys(proto).reduce((acc, key) => {\n      return trackMixin(proto, acc, key);\n    }, initial);\n  }\n  let TRACKED_INITIAL_TASK_STATE = _exports.TRACKED_INITIAL_TASK_STATE = void 0;\n  let TRACKED_INITIAL_INSTANCE_STATE = _exports.TRACKED_INITIAL_INSTANCE_STATE = void 0;\n  if (_utils.USE_TRACKED) {\n    _exports.TRACKED_INITIAL_TASK_STATE = TRACKED_INITIAL_TASK_STATE = applyTracked(_defaultState.DEFAULT_STATE, {});\n    _exports.TRACKED_INITIAL_TASK_STATE = TRACKED_INITIAL_TASK_STATE = applyTracked({\n      numRunning: 0,\n      numQueued: 0,\n      isRunning: false,\n      isQueued: false,\n      isIdle: true,\n      state: 'idle'\n    }, TRACKED_INITIAL_TASK_STATE);\n    _exports.TRACKED_INITIAL_INSTANCE_STATE = TRACKED_INITIAL_INSTANCE_STATE = applyTracked(_initialState.INITIAL_STATE, {});\n    _exports.TRACKED_INITIAL_INSTANCE_STATE = TRACKED_INITIAL_INSTANCE_STATE = applyTracked({\n      state: 'waiting',\n      isDropped: false,\n      isRunning: false\n    }, TRACKED_INITIAL_INSTANCE_STATE);\n    Object.freeze(TRACKED_INITIAL_TASK_STATE);\n    Object.freeze(TRACKED_INITIAL_INSTANCE_STATE);\n  }\n});","define(\"ember-concurrency/-private/utils\", [\"exports\", \"@ember/object\", \"@ember/runloop\", \"ember-concurrency/-private/ember-environment\", \"ember-concurrency/-private/external/yieldables\"], function (_exports, _object, _runloop, _emberEnvironment, _yieldables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.assignProperties = _exports.USE_TRACKED = _exports.EmberYieldable = void 0;\n  _exports.deprecatePrivateModule = deprecatePrivateModule;\n  _exports.isEventedObject = isEventedObject;\n  _exports.timeout = timeout;\n  const USE_TRACKED = _exports.USE_TRACKED = true;\n  const assignProperties = _exports.assignProperties = USE_TRACKED ? Object.assign : _object.setProperties;\n  function isEventedObject(c) {\n    return c && (typeof c.one === 'function' && typeof c.off === 'function' || typeof c.on === 'function' && typeof c.off === 'function' || typeof c.addEventListener === 'function' && typeof c.removeEventListener === 'function');\n  }\n  class EmberYieldable extends _yieldables.Yieldable {\n    _deferable() {\n      return _emberEnvironment.EMBER_ENVIRONMENT.defer();\n    }\n  }\n  _exports.EmberYieldable = EmberYieldable;\n  class TimeoutYieldable extends EmberYieldable {\n    constructor(ms) {\n      super();\n      this.ms = ms;\n    }\n    onYield(state) {\n      let timerId = (0, _runloop.later)(() => state.next(), this.ms);\n      return () => (0, _runloop.cancel)(timerId);\n    }\n  }\n\n  /**\n   *\n   * Yielding `timeout(ms)` will pause a task for the duration\n   * of time passed in, in milliseconds.\n   *\n   * This timeout will be scheduled on the Ember runloop, which\n   * means that test helpers will wait for it to complete before\n   * continuing with the test. See `rawTimeout()` if you need\n   * different behavior.\n   *\n   * The task below, when performed, will print a message to the\n   * console every second.\n   *\n   * ```js\n   * export default class MyComponent extends Component {\n   *   &#64;task *myTask() {\n   *     while (true) {\n   *       console.log(\"Hello!\");\n   *       yield timeout(1000);\n   *     }\n   *   }\n   * }\n   * ```\n   *\n   * @param {number} ms - the amount of time to sleep before resuming\n   *   the task, in milliseconds\n   */\n  function timeout(ms) {\n    return new TimeoutYieldable(ms);\n  }\n  function deprecatePrivateModule(moduleName) {\n    // eslint-disable-next-line no-console\n    console.warn(`an Ember addon is importing a private ember-concurrency module '${moduleName}' that has moved`);\n  }\n});","define(\"ember-concurrency/-private/wait-for\", [\"exports\", \"@ember/debug\", \"@ember/runloop\", \"@ember/object\", \"@ember/object/observers\", \"ember-concurrency/-private/utils\"], function (_exports, _debug, _runloop, _object, _observers, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.waitForEvent = waitForEvent;\n  _exports.waitForProperty = waitForProperty;\n  _exports.waitForQueue = waitForQueue;\n  class WaitForQueueYieldable extends _utils.EmberYieldable {\n    constructor(queueName) {\n      super();\n      this.queueName = queueName;\n    }\n    onYield(state) {\n      let timerId;\n      try {\n        timerId = (0, _runloop.schedule)(this.queueName, () => state.next());\n      } catch (error) {\n        state.throw(error);\n      }\n      return () => (0, _runloop.cancel)(timerId);\n    }\n  }\n  class WaitForEventYieldable extends _utils.EmberYieldable {\n    constructor(object, eventName) {\n      super();\n      this.object = object;\n      this.eventName = eventName;\n      this.usesDOMEvents = false;\n    }\n    on(callback) {\n      if (typeof this.object.addEventListener === 'function') {\n        // assume that we're dealing with a DOM `EventTarget`.\n        this.usesDOMEvents = true;\n        this.object.addEventListener(this.eventName, callback);\n      } else {\n        this.object.on(this.eventName, callback);\n      }\n    }\n    off(callback) {\n      if (this.usesDOMEvents) {\n        this.object.removeEventListener(this.eventName, callback);\n      } else {\n        this.object.off(this.eventName, callback);\n      }\n    }\n    onYield(state) {\n      let fn = null;\n      let disposer = () => {\n        fn && this.off(fn);\n        fn = null;\n      };\n      fn = event => {\n        disposer();\n        state.next(event);\n      };\n      this.on(fn);\n      return disposer;\n    }\n  }\n  class WaitForPropertyYieldable extends _utils.EmberYieldable {\n    constructor(object, key, predicateCallback = Boolean) {\n      super();\n      this.object = object;\n      this.key = key;\n      if (typeof predicateCallback === 'function') {\n        this.predicateCallback = predicateCallback;\n      } else {\n        this.predicateCallback = v => v === predicateCallback;\n      }\n    }\n    onYield(state) {\n      let observerBound = false;\n      let observerFn = () => {\n        let value = (0, _object.get)(this.object, this.key);\n        let predicateValue = this.predicateCallback(value);\n        if (predicateValue) {\n          state.next(value);\n          return true;\n        }\n      };\n      if (!observerFn()) {\n        // eslint-disable-next-line ember/no-observers\n        (0, _observers.addObserver)(this.object, this.key, null, observerFn);\n        observerBound = true;\n      }\n      return () => {\n        if (observerBound && observerFn) {\n          (0, _observers.removeObserver)(this.object, this.key, null, observerFn);\n        }\n      };\n    }\n  }\n\n  /**\n   * Use `waitForQueue` to pause the task until a certain run loop queue is reached.\n   *\n   * ```js\n   * import { task, waitForQueue } from 'ember-concurrency';\n   * export default class MyComponent extends Component {\n   *   &#64;task *myTask() {\n   *     yield waitForQueue('afterRender');\n   *     console.log(\"now we're in the afterRender queue\");\n   *   }\n   * }\n   * ```\n   *\n   * @param {string} queueName the name of the Ember run loop queue\n   */\n  function waitForQueue(queueName) {\n    return new WaitForQueueYieldable(queueName);\n  }\n\n  /**\n   * Use `waitForEvent` to pause the task until an event is fired. The event\n   * can either be a jQuery event or an Ember.Evented event (or any event system\n   * where the object supports `.on()` `.one()` and `.off()`).\n   *\n   * ```js\n   * import { task, waitForEvent } from 'ember-concurrency';\n   * export default class MyComponent extends Component {\n   *   &#64;task *myTask() {\n   *     console.log(\"Please click anywhere..\");\n   *     let clickEvent = yield waitForEvent($('body'), 'click');\n   *     console.log(\"Got event\", clickEvent);\n   *\n   *     let emberEvent = yield waitForEvent(this, 'foo');\n   *     console.log(\"Got foo event\", emberEvent);\n   *\n   *     // somewhere else: component.trigger('foo', { value: 123 });\n   *   }\n   * }\n   * ```\n   *\n   * @param {object} object the Ember Object, jQuery element, or other object with .on() and .off() APIs\n   *                 that the event fires from\n   * @param {function} eventName the name of the event to wait for\n   */\n  function waitForEvent(object, eventName) {\n    (true && !((0, _utils.isEventedObject)(object)) && (0, _debug.assert)(`${object} must include Ember.Evented (or support \\`.on()\\` and \\`.off()\\`) or DOM EventTarget (or support \\`addEventListener\\` and  \\`removeEventListener\\`) to be able to use \\`waitForEvent\\``, (0, _utils.isEventedObject)(object)));\n    return new WaitForEventYieldable(object, eventName);\n  }\n\n  /**\n   * Use `waitForProperty` to pause the task until a property on an object\n   * changes to some expected value. This can be used for a variety of use\n   * cases, including synchronizing with another task by waiting for it\n   * to become idle, or change state in some other way. If you omit the\n   * callback, `waitForProperty` will resume execution when the observed\n   * property becomes truthy. If you provide a callback, it'll be called\n   * immediately with the observed property's current value, and multiple\n   * times thereafter whenever the property changes, until you return\n   * a truthy value from the callback, or the current task is canceled.\n   * You can also pass in a non-Function value in place of the callback,\n   * in which case the task will continue executing when the property's\n   * value becomes the value that you passed in.\n   *\n   * ```js\n   * import { task, waitForProperty } from 'ember-concurrency';\n   * export default class MyComponent extends Component {\n   *   &#64;tracked foo = 0;\n   *\n   *   &#64;task *myTask() {\n   *     console.log(\"Waiting for `foo` to become 5\");\n   *\n   *     yield waitForProperty(this, 'foo', v => v === 5);\n   *     // alternatively: yield waitForProperty(this, 'foo', 5);\n   *\n   *     // somewhere else: this.foo = 5;\n   *\n   *     console.log(\"`foo` is 5!\");\n   *\n   *     // wait for another task to be idle before running:\n   *     yield waitForProperty(this, 'otherTask.isIdle');\n   *     console.log(\"otherTask is idle!\");\n   *   }\n   * }\n   * ```\n   *\n   * @param {object} object an object (most likely an Ember Object)\n   * @param {string} key the property name that is observed for changes\n   * @param {function} callbackOrValue a Function that should return a truthy value\n   *                                   when the task should continue executing, or\n   *                                   a non-Function value that the watched property\n   *                                   needs to equal before the task will continue running\n   */\n  function waitForProperty(object, key, predicateCallback) {\n    return new WaitForPropertyYieldable(object, key, predicateCallback);\n  }\n});","define(\"ember-concurrency/-task-instance\", [\"exports\", \"ember-concurrency/-private/task-instance\", \"ember-concurrency/-private/utils\"], function (_exports, _taskInstance, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  (0, _utils.deprecatePrivateModule)('ember-concurrency/-task-instance');\n  var _default = _exports.default = _taskInstance.TaskInstance;\n});","define(\"ember-concurrency/-task-property\", [\"exports\", \"ember-concurrency/-private/task\", \"ember-concurrency/-private/task-properties\", \"ember-concurrency/-private/utils\"], function (_exports, _task, _taskProperties, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"Task\", {\n    enumerable: true,\n    get: function () {\n      return _task.Task;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskProperty\", {\n    enumerable: true,\n    get: function () {\n      return _taskProperties.TaskProperty;\n    }\n  });\n  (0, _utils.deprecatePrivateModule)('ember-concurrency/-task-property');\n});","define(\"ember-concurrency/helpers/cancel-all\", [\"exports\", \"@ember/component/helper\", \"@ember/debug\", \"ember-concurrency/-private/helpers\"], function (_exports, _helper, _debug, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.cancelHelper = cancelHelper;\n  _exports.default = void 0;\n  const CANCEL_REASON = \"the 'cancel-all' template helper was invoked\";\n  function cancelHelper(args) {\n    let cancelable = args[0];\n    if (!cancelable || typeof cancelable.cancelAll !== 'function') {\n      (true && !(false) && (0, _debug.assert)(`The first argument passed to the \\`cancel-all\\` helper should be a Task or TaskGroup (without quotes); you passed ${cancelable}`, false));\n    }\n    return (0, _helpers.taskHelperClosure)('cancel-all', 'cancelAll', [cancelable, {\n      reason: CANCEL_REASON\n    }]);\n  }\n  var _default = _exports.default = (0, _helper.helper)(cancelHelper);\n});","define(\"ember-concurrency/helpers/perform\", [\"exports\", \"@ember/component/helper\", \"@ember/debug\", \"ember-concurrency/-private/helpers\"], function (_exports, _helper, _debug, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.performHelper = performHelper;\n  function maybeReportError(onError) {\n    return function (e) {\n      if (typeof onError === 'function') {\n        onError(e);\n      } else if (onError === null) {\n        // Do nothing\n      } else {\n        (true && !(false) && (0, _debug.assert)(`The onError argument passed to the \\`perform\\` helper should be a function or null; you passed ${onError}`, false));\n      }\n    };\n  }\n  function performHelper(args, hash) {\n    let perform = (0, _helpers.taskHelperClosure)('perform', 'perform', args, hash);\n    if (hash && typeof hash.onError !== 'undefined') {\n      return function (...innerArgs) {\n        try {\n          let taskInstance = perform(...innerArgs);\n          return taskInstance.catch(maybeReportError(hash.onError));\n          // eslint-disable-next-line no-empty\n        } catch {\n          maybeReportError(hash.onError);\n        }\n      };\n    } else {\n      return perform;\n    }\n  }\n  var _default = _exports.default = (0, _helper.helper)(performHelper);\n});","define(\"ember-concurrency/helpers/task\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function taskHelper([task, ...args]) {\n    return task._curry(...args);\n  }\n  var _default = _exports.default = (0, _helper.helper)(taskHelper);\n});","define(\"ember-concurrency/index\", [\"exports\", \"ember-concurrency/-private/utils\", \"ember-concurrency/-private/task-properties\", \"ember-concurrency/-private/task-public-api\", \"ember-concurrency/-private/task-instance\", \"ember-concurrency/-private/cancelable-promise-helpers\", \"ember-concurrency/-private/wait-for\", \"ember-concurrency/-private/external/task-instance/cancelation\", \"ember-concurrency/-private/external/yieldables\", \"ember-concurrency/-private/task\", \"ember-concurrency/-private/task-group\", \"ember-concurrency/-private/task-decorators\", \"ember-concurrency/-private/external/task-factory\"], function (_exports, _utils, _taskProperties, _taskPublicApi, _taskInstance, _cancelablePromiseHelpers, _waitFor, _cancelation, _yieldables, _task, _taskGroup, _taskDecorators, _taskFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"Task\", {\n    enumerable: true,\n    get: function () {\n      return _task.Task;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskGroup.TaskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskGroupProperty\", {\n    enumerable: true,\n    get: function () {\n      return _taskProperties.TaskGroupProperty;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskInstance\", {\n    enumerable: true,\n    get: function () {\n      return _taskInstance.TaskInstance;\n    }\n  });\n  Object.defineProperty(_exports, \"TaskProperty\", {\n    enumerable: true,\n    get: function () {\n      return _taskProperties.TaskProperty;\n    }\n  });\n  Object.defineProperty(_exports, \"Yieldable\", {\n    enumerable: true,\n    get: function () {\n      return _utils.EmberYieldable;\n    }\n  });\n  Object.defineProperty(_exports, \"all\", {\n    enumerable: true,\n    get: function () {\n      return _cancelablePromiseHelpers.all;\n    }\n  });\n  Object.defineProperty(_exports, \"allSettled\", {\n    enumerable: true,\n    get: function () {\n      return _cancelablePromiseHelpers.allSettled;\n    }\n  });\n  Object.defineProperty(_exports, \"animationFrame\", {\n    enumerable: true,\n    get: function () {\n      return _yieldables.animationFrame;\n    }\n  });\n  Object.defineProperty(_exports, \"didCancel\", {\n    enumerable: true,\n    get: function () {\n      return _cancelation.didCancel;\n    }\n  });\n  Object.defineProperty(_exports, \"dropTask\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.dropTask;\n    }\n  });\n  Object.defineProperty(_exports, \"dropTaskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.dropTaskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"enqueueTask\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.enqueueTask;\n    }\n  });\n  Object.defineProperty(_exports, \"enqueueTaskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.enqueueTaskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"forever\", {\n    enumerable: true,\n    get: function () {\n      return _yieldables.forever;\n    }\n  });\n  Object.defineProperty(_exports, \"getModifier\", {\n    enumerable: true,\n    get: function () {\n      return _taskFactory.getModifier;\n    }\n  });\n  Object.defineProperty(_exports, \"hasModifier\", {\n    enumerable: true,\n    get: function () {\n      return _taskFactory.hasModifier;\n    }\n  });\n  Object.defineProperty(_exports, \"hash\", {\n    enumerable: true,\n    get: function () {\n      return _cancelablePromiseHelpers.hash;\n    }\n  });\n  Object.defineProperty(_exports, \"hashSettled\", {\n    enumerable: true,\n    get: function () {\n      return _cancelablePromiseHelpers.hashSettled;\n    }\n  });\n  Object.defineProperty(_exports, \"keepLatestTask\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.keepLatestTask;\n    }\n  });\n  Object.defineProperty(_exports, \"keepLatestTaskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.keepLatestTaskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"lastValue\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.lastValue;\n    }\n  });\n  Object.defineProperty(_exports, \"race\", {\n    enumerable: true,\n    get: function () {\n      return _cancelablePromiseHelpers.race;\n    }\n  });\n  Object.defineProperty(_exports, \"rawTimeout\", {\n    enumerable: true,\n    get: function () {\n      return _yieldables.rawTimeout;\n    }\n  });\n  Object.defineProperty(_exports, \"registerModifier\", {\n    enumerable: true,\n    get: function () {\n      return _taskFactory.registerModifier;\n    }\n  });\n  Object.defineProperty(_exports, \"restartableTask\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.restartableTask;\n    }\n  });\n  Object.defineProperty(_exports, \"restartableTaskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskDecorators.restartableTaskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"task\", {\n    enumerable: true,\n    get: function () {\n      return _taskPublicApi.task;\n    }\n  });\n  Object.defineProperty(_exports, \"taskGroup\", {\n    enumerable: true,\n    get: function () {\n      return _taskPublicApi.taskGroup;\n    }\n  });\n  Object.defineProperty(_exports, \"timeout\", {\n    enumerable: true,\n    get: function () {\n      return _utils.timeout;\n    }\n  });\n  Object.defineProperty(_exports, \"waitForEvent\", {\n    enumerable: true,\n    get: function () {\n      return _waitFor.waitForEvent;\n    }\n  });\n  Object.defineProperty(_exports, \"waitForProperty\", {\n    enumerable: true,\n    get: function () {\n      return _waitFor.waitForProperty;\n    }\n  });\n  Object.defineProperty(_exports, \"waitForQueue\", {\n    enumerable: true,\n    get: function () {\n      return _waitFor.waitForQueue;\n    }\n  });\n});","define(\"ember-css-modules/decorators\", [\"exports\", \"@ember/object\", \"@ember/debug\"], function (_exports, _object, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.localClassNames = _exports.localClassName = void 0;\n  /*\n    The implementation of these decorators is based on the original work of the\n    ember-osf-web project, released under the Apache License 2.0:\n  \n    https://github.com/CenterForOpenScience/ember-osf-web/blob/4675920c4d53e60c62eed7a87ea84e0f4c5ab018/app/decorators/css-modules.ts\n  */\n\n  /**\n    Class decorator which specifies the local  class names to be applied to a\n    component. This replaces the `localClassNames` property on components in the\n    traditional Ember object model.\n  \n    ```js\n    @localClassNames('a-static-class', 'another-static-class')\n    export default class ClassNamesDemoComponent extends Component {}\n    ```\n  \n    @param {...string} classNames - The list of local classes to be applied to the component\n  */\n  const localClassNames = (...classNames) => (...desc) => {\n    (true && !(classNames.every(className => typeof className === 'string')) && (0, _debug.assert)(`The @localClassNames decorator must be provided strings, received: ${classNames}`, classNames.every(className => typeof className === 'string')));\n    if (isStage1ClassDescriptor(desc)) {\n      collapseAndMerge(desc[0].prototype, 'localClassNames', ...classNames);\n    } else {\n      desc[0].finisher = target => {\n        collapseAndMerge(target.prototype, 'localClassNames', ...classNames);\n      };\n    }\n  };\n\n  /**\n    Decorator which indicates that the field or computed should be bound to the\n    component local class names. This replaces `localClassNameBindings` by\n    directly allowing you to specify which properties should be bound.\n  \n    ```js\n    export default class ClassNameDemoComponent extends Component {\n      // Adds 'bound-field' class, if true\n      @localClassName boundField = true;\n  \n      // With provided true/false class names\n      @localClassName('active', 'inactive') isActive = true;\n    }\n    ```\n    @function\n    @param {string} truthyName? - The local class to be applied if the value the\n                                  field is truthy, defaults to the name of the\n                                  field.\n    @param {string} falsyName? - The class to be applied if the value of the field\n                                 is falsy.\n  */\n  _exports.localClassNames = localClassNames;\n  const localClassName = (...params) => {\n    if (isFieldDescriptor(params)) {\n      return localClassName()(...params);\n    }\n    return (...desc) => {\n      (true && !(params.every(className => typeof className === 'string')) && (0, _debug.assert)(`The @localClassName decorator may only receive strings as parameters. Received: ${params}`, params.every(className => typeof className === 'string')));\n      if (isStage1FieldDescriptor(desc)) {\n        let [prototype, key, descriptor] = desc;\n        setUpLocalClassField(params, prototype, key, descriptor);\n      } else if (isStage2FieldDescriptor(desc)) {\n        desc[0].finisher = target => {\n          const {\n            key,\n            descriptor\n          } = desc[0];\n          setUpLocalClassField(params, target.prototype, key, descriptor);\n        };\n      }\n    };\n  };\n  _exports.localClassName = localClassName;\n  function setUpLocalClassField(params, prototype, key, descriptor) {\n    const binding = params.length > 0 ? `${key}:${params.join(':')}` : key;\n    collapseAndMerge(prototype, 'localClassNameBindings', binding);\n    if (descriptor) {\n      // Decorated fields are currently not configurable in Babel for some reason, so ensure\n      // that the field becomes configurable (else it messes with things)\n      descriptor.configurable = true;\n\n      // Decorated fields which don't have a getter or setter, but also no\n      // explicit `writable` flag, default to not being writable in Babel. Since\n      // by default fields _are_ writable and this decorator should not change\n      // that, we enable the `writable` flag in this specific case.\n      if (!('get' in descriptor || 'set' in descriptor || 'writable' in descriptor)) {\n        descriptor.writable = true;\n      }\n\n      // Babel 6 provides a `null` initializer if one isn't set, but that can wind up\n      // overwriting passed-in values if they're specified.\n      // This is a no-op in Babel 7 (since `initializer` isn't part of the property descriptor)\n      // and can be dropped when we remove support for Babel 6\n      if (descriptor.initializer === null) {\n        descriptor.initializer = function () {\n          return (0, _object.get)(this, key);\n        };\n      }\n    }\n  }\n  function collapseAndMerge(prototype, property, ...items) {\n    collapseProto(prototype);\n    if (property in prototype) {\n      const parentElements = prototype[property];\n      items.unshift(...parentElements);\n    }\n    prototype[property] = items;\n  }\n\n  // These utilities are from @ember-decorators/utils\n  // https://github.com/ember-decorators/ember-decorators/blob/f3e3d636a38d99992af326a1012d69bf10a2cb4c/packages/utils/addon/-private/class-field-descriptor.js\n\n  function isStage1ClassDescriptor(possibleDesc) {\n    let [target] = possibleDesc;\n    return possibleDesc.length === 1 && typeof target === 'function' && 'prototype' in target && !target.__isComputedDecorator;\n  }\n  function isFieldDescriptor(possibleDesc) {\n    return isStage1FieldDescriptor(possibleDesc) || isStage2FieldDescriptor(possibleDesc);\n  }\n  function isStage2FieldDescriptor(possibleDesc) {\n    return possibleDesc && possibleDesc.toString() === '[object Descriptor]';\n  }\n  function isStage1FieldDescriptor(possibleDesc) {\n    let [target, key, desc] = possibleDesc;\n    return possibleDesc.length === 3 && typeof target === 'object' && target !== null && typeof key === 'string' && (typeof desc === 'object' && desc !== null && 'enumerable' in desc && 'configurable' in desc || desc === undefined) // TS compatibility\n    ;\n  }\n\n  function collapseProto(target) {\n    // We must collapse the superclass prototype to make sure that the `actions`\n    // object will exist. Since collapsing doesn't generally happen until a class is\n    // instantiated, we have to do it manually.\n    if (typeof target.constructor.proto === 'function') {\n      target.constructor.proto();\n    }\n  }\n});","define(\"ember-css-modules/extensions\", [\"@ember/component\", \"ember-css-modules/mixins/component-mixin\"], function (_component, _componentMixin) {\n  \"use strict\";\n\n  _component.default.reopen(_componentMixin.default);\n});","define(\"ember-css-modules/helpers/local-class\", [\"exports\", \"@ember/component/helper\", \"@ember/debug\", \"require\"], function (_exports, _helper, _debug, _require) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.localClass = localClass;\n  function localClass(params, hash) {\n    (true && !('from' in hash) && (0, _debug.assert)('No source specified to local-class lookup', 'from' in hash));\n    if (!hash.from) {\n      return '';\n    }\n    let styles = resolveSource(hash.from);\n    let classes = (params[0] || '').split(/\\s+/);\n    return classes.map(style => styles[style]).filter(Boolean).join(' ');\n  }\n  var _default = _exports.default = (0, _helper.helper)(localClass);\n  function resolveSource(source) {\n    if (typeof source === 'string') {\n      if (_require.default.has(source)) {\n        return (0, _require.default)(source).default;\n      } else {\n        throw new Error(`Unable to resolve local class names from ${source}; does the styles file exist?`);\n      }\n    } else {\n      return source;\n    }\n  }\n});","define(\"ember-css-modules/index\", [\"exports\", \"ember-css-modules/decorators\"], function (_exports, _decorators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.keys(_decorators).forEach(function (key) {\n    if (key === \"default\" || key === \"__esModule\") return;\n    if (key in _exports && _exports[key] === _decorators[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _decorators[key];\n      }\n    });\n  });\n});","define(\"ember-css-modules/mixins/component-mixin\", [\"exports\", \"@ember/object\", \"@ember/object/mixin\", \"@ember/string\", \"@ember/application\", \"@ember/debug\"], function (_exports, _object, _mixin, _string, _application, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global require */\n  var _default = _exports.default = _mixin.default.create({\n    localClassNames: null,\n    localClassNameBindings: null,\n    concatenatedProperties: ['localClassNames', 'localClassNameBindings'],\n    init() {\n      this._super();\n      if (this.tagName === '') return;\n      this.classNameBindings = [...this.classNameBindings, ...localClassNames(this), LOCAL_CLASS_NAMES_CP];\n      if (this.localClassNameBindings.length) {\n        let value = localClassNamesCP(this.localClassNameBindings, this.get('__styles__'));\n        (0, _object.defineProperty)(this, LOCAL_CLASS_NAMES_CP, value);\n      }\n    },\n    __styles__: (0, _object.computed)(function () {\n      let key = this._debugContainerKey;\n      if (!key) {\n        return;\n      }\n      let name = key.replace(/^component:/, '');\n      let layout = this.layout || (0, _application.getOwner)(this).lookup(`template:components/${name}`);\n      (true && !(layout) && (0, _debug.assert)(`Unable to resolve localClassNames or localClassNameBindings for component ${name}, which has no ` + `layout. You can fix this by either creating an empty template for your component or importing and ` + `using the styles hash directly instead, e.g. \\`classNames: styles['my-class']\\`.`, layout));\n      (true && !(false) && (0, _debug.deprecate)('Support for `localClassNames`, `localClassNameBindings` and the `@localClassName` and `@localClassNames` ' + 'decorators will be removed in the next major release of ember-css-modules. The `' + name + '` component ' + 'uses one or more of these APIs. See the ECM 1.5.0 release notes for further details and migration options: ' + 'https://github.com/salsify/ember-css-modules/releases/tag/v1.5.0', false, {\n        id: 'ember-css-modules.classic-component-apis',\n        for: 'ember-css-modules',\n        until: '2.0.0',\n        since: {\n          enabled: '1.5.0'\n        }\n      })); // Since https://github.com/emberjs/ember.js/pull/18096\n      if (typeof layout === 'function') layout = layout((0, _application.getOwner)(this));\n\n      // This is not public API and might break at any time...\n      let moduleName = (layout.meta || layout.referrer).moduleName.replace(/\\.hbs$/, '');\n      if (/\\/template$/.test(moduleName)) {\n        return tryLoad(moduleName.replace(/template$/, 'styles'));\n      } else if (/\\/templates\\//.test(moduleName)) {\n        return tryLoad(moduleName.replace('/templates/', '/styles/'));\n      }\n      return;\n    })\n  });\n  function tryLoad(path) {\n    if (require.has(path)) {\n      return require(path).default;\n    }\n  }\n  const LOCAL_CLASS_NAMES_CP = '__ecm_local_class_names__';\n  function localClassNames(component) {\n    return component.localClassNames.map(className => `__styles__.${className}`);\n  }\n  function localClassNamesCP(localClassNameBindings, styles) {\n    let bindings = localClassNameBindings.map(binding => {\n      let [property, trueStyle, falseStyle] = binding.split(':');\n      let trueClasses = styles[trueStyle || (0, _string.dasherize)(property)] || '';\n      let falseClasses = styles[falseStyle] || '';\n      let isBoolean = !!trueStyle;\n      return {\n        property,\n        trueClasses,\n        falseClasses,\n        isBoolean\n      };\n    });\n    return (0, _object.computed)(...bindings.map(binding => binding.property), function () {\n      let classes = [];\n      bindings.forEach(binding => {\n        let value = this.get(binding.property);\n        if (binding.isBoolean || typeof value !== 'string') {\n          classes.push(value ? binding.trueClasses : binding.falseClasses);\n        } else {\n          classes.push(value.split(/\\s+/).map(key => styles[key]).join(' '));\n        }\n      });\n      return classes.join(' ');\n    });\n  }\n});","define(\"ember-css-modules/templates/static-helpers-hack\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{local-class \"hello\"}}\n  \n  */\n  {\n    \"id\": \"X/HuVqGl\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"hello\\\"],null]],[1,\\\"\\\\n\\\"]],[],false,[\\\"local-class\\\"]]\",\n    \"moduleName\": \"ember-css-modules/templates/static-helpers-hack.hbs\",\n    \"isStrictMode\": false\n  });\n});","define('ember-data/-private', ['exports', '@ember-data/store', '@ember/application/namespace', 'ember', 'ember-data/version', '@ember-data/model/-private', '@ember-data/store/-private', '@ember-data/record-data/-private'], (function (exports, store, Namespace, Ember, VERSION, Private, Private$1, Private$2) { 'use strict';\n\n  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\n  var store__default = /*#__PURE__*/_interopDefaultLegacy(store);\n  var Namespace__default = /*#__PURE__*/_interopDefaultLegacy(Namespace);\n  var Ember__default = /*#__PURE__*/_interopDefaultLegacy(Ember);\n  var VERSION__default = /*#__PURE__*/_interopDefaultLegacy(VERSION);\n\n  var DS = Namespace__default[\"default\"].create({\n    VERSION: VERSION__default[\"default\"],\n    name: 'DS'\n  });\n  if (Ember__default[\"default\"].libraries) {\n    Ember__default[\"default\"].libraries.registerCoreLibrary('Ember Data', VERSION__default[\"default\"]);\n  }\n\n  Object.defineProperty(exports, 'Store', {\n    enumerable: true,\n    get: function () { return store__default[\"default\"]; }\n  });\n  Object.defineProperty(exports, 'Errors', {\n    enumerable: true,\n    get: function () { return Private.Errors; }\n  });\n  Object.defineProperty(exports, 'ManyArray', {\n    enumerable: true,\n    get: function () { return Private.ManyArray; }\n  });\n  Object.defineProperty(exports, 'PromiseManyArray', {\n    enumerable: true,\n    get: function () { return Private.PromiseManyArray; }\n  });\n  Object.defineProperty(exports, 'AdapterPopulatedRecordArray', {\n    enumerable: true,\n    get: function () { return Private$1.AdapterPopulatedRecordArray; }\n  });\n  Object.defineProperty(exports, 'InternalModel', {\n    enumerable: true,\n    get: function () { return Private$1.InternalModel; }\n  });\n  Object.defineProperty(exports, 'PromiseArray', {\n    enumerable: true,\n    get: function () { return Private$1.PromiseArray; }\n  });\n  Object.defineProperty(exports, 'PromiseObject', {\n    enumerable: true,\n    get: function () { return Private$1.PromiseObject; }\n  });\n  Object.defineProperty(exports, 'RecordArray', {\n    enumerable: true,\n    get: function () { return Private$1.RecordArray; }\n  });\n  Object.defineProperty(exports, 'RecordArrayManager', {\n    enumerable: true,\n    get: function () { return Private$1.RecordArrayManager; }\n  });\n  Object.defineProperty(exports, 'RootState', {\n    enumerable: true,\n    get: function () { return Private$1.RootState; }\n  });\n  Object.defineProperty(exports, 'Snapshot', {\n    enumerable: true,\n    get: function () { return Private$1.Snapshot; }\n  });\n  Object.defineProperty(exports, 'SnapshotRecordArray', {\n    enumerable: true,\n    get: function () { return Private$1.SnapshotRecordArray; }\n  });\n  Object.defineProperty(exports, 'coerceId', {\n    enumerable: true,\n    get: function () { return Private$1.coerceId; }\n  });\n  Object.defineProperty(exports, 'normalizeModelName', {\n    enumerable: true,\n    get: function () { return Private$1.normalizeModelName; }\n  });\n  Object.defineProperty(exports, 'RecordData', {\n    enumerable: true,\n    get: function () { return Private$2.RecordData; }\n  });\n  Object.defineProperty(exports, 'Relationship', {\n    enumerable: true,\n    get: function () { return Private$2.Relationship; }\n  });\n  exports.DS = DS;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n","define(\"ember-data/adapter\", [\"exports\", \"@ember-data/adapter\"], function (_exports, _adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _adapter.default;\n    }\n  });\n});","define(\"ember-data/adapters/errors\", [\"exports\", \"@ember-data/adapter/error\"], function (_exports, _error) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"AbortError\", {\n    enumerable: true,\n    get: function () {\n      return _error.AbortError;\n    }\n  });\n  Object.defineProperty(_exports, \"AdapterError\", {\n    enumerable: true,\n    get: function () {\n      return _error.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ConflictError\", {\n    enumerable: true,\n    get: function () {\n      return _error.ConflictError;\n    }\n  });\n  Object.defineProperty(_exports, \"ForbiddenError\", {\n    enumerable: true,\n    get: function () {\n      return _error.ForbiddenError;\n    }\n  });\n  Object.defineProperty(_exports, \"InvalidError\", {\n    enumerable: true,\n    get: function () {\n      return _error.InvalidError;\n    }\n  });\n  Object.defineProperty(_exports, \"NotFoundError\", {\n    enumerable: true,\n    get: function () {\n      return _error.NotFoundError;\n    }\n  });\n  Object.defineProperty(_exports, \"ServerError\", {\n    enumerable: true,\n    get: function () {\n      return _error.ServerError;\n    }\n  });\n  Object.defineProperty(_exports, \"TimeoutError\", {\n    enumerable: true,\n    get: function () {\n      return _error.TimeoutError;\n    }\n  });\n  Object.defineProperty(_exports, \"UnauthorizedError\", {\n    enumerable: true,\n    get: function () {\n      return _error.UnauthorizedError;\n    }\n  });\n  Object.defineProperty(_exports, \"errorsArrayToHash\", {\n    enumerable: true,\n    get: function () {\n      return _error.errorsArrayToHash;\n    }\n  });\n  Object.defineProperty(_exports, \"errorsHashToArray\", {\n    enumerable: true,\n    get: function () {\n      return _error.errorsHashToArray;\n    }\n  });\n});","define(\"ember-data/adapters/json-api\", [\"exports\", \"@ember-data/adapter/json-api\"], function (_exports, _jsonApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _jsonApi.default;\n    }\n  });\n});","define(\"ember-data/adapters/rest\", [\"exports\", \"@ember-data/adapter/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _rest.default;\n    }\n  });\n});","define(\"ember-data/attr\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _model.attr;\n    }\n  });\n});","define(\"ember-data/index\", [\"exports\", \"ember-inflector\", \"@ember/error\", \"@ember/version\", \"require\", \"@ember-data/adapter\", \"@ember-data/adapter/error\", \"@ember-data/adapter/json-api\", \"@ember-data/adapter/rest\", \"@ember-data/model\", \"@ember-data/serializer\", \"@ember-data/serializer/-private\", \"@ember-data/serializer/json\", \"@ember-data/serializer/json-api\", \"@ember-data/serializer/rest\", \"@ember-data/serializer/transform\", \"@ember-data/store\", \"ember-data/-private\", \"ember-data/setup-container\"], function (_exports, _emberInflector, _error, _version, _require, _adapter, _error2, _jsonApi, _rest, _model, _serializer, _private, _json, _jsonApi2, _rest2, _transform, _store, _private2, _setupContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var HAS_DEBUG_PACKAGE = (0, _require.has)('@ember-data/debug') || false;\n  if (_version.VERSION.match(/^1\\.([0-9]|1[0-2])\\./)) {\n    throw new _error.default('Ember Data requires at least Ember 1.13.0, but you have ' + _version.VERSION + '. Please upgrade your version of Ember, then upgrade Ember Data.');\n  }\n  _private2.DS.Store = _store.default;\n  _private2.DS.PromiseArray = _private2.PromiseArray;\n  _private2.DS.PromiseObject = _private2.PromiseObject;\n  _private2.DS.PromiseManyArray = _private2.PromiseManyArray;\n  _private2.DS.Model = _model.default;\n  _private2.DS.RootState = _private2.RootState;\n  _private2.DS.attr = _model.attr;\n  _private2.DS.Errors = _private2.Errors;\n  _private2.DS.InternalModel = _private2.InternalModel;\n  _private2.DS.Snapshot = _private2.Snapshot;\n  _private2.DS.Adapter = _adapter.default;\n  _private2.DS.AdapterError = _error2.default;\n  _private2.DS.InvalidError = _error2.InvalidError;\n  _private2.DS.TimeoutError = _error2.TimeoutError;\n  _private2.DS.AbortError = _error2.AbortError;\n  _private2.DS.UnauthorizedError = _error2.UnauthorizedError;\n  _private2.DS.ForbiddenError = _error2.ForbiddenError;\n  _private2.DS.NotFoundError = _error2.NotFoundError;\n  _private2.DS.ConflictError = _error2.ConflictError;\n  _private2.DS.ServerError = _error2.ServerError;\n  _private2.DS.errorsHashToArray = _error2.errorsHashToArray;\n  _private2.DS.errorsArrayToHash = _error2.errorsArrayToHash;\n  _private2.DS.Serializer = _serializer.default;\n  if (HAS_DEBUG_PACKAGE) {\n    _private2.DS.DebugAdapter = (0, _require.default)(\"@ember-data/debug\").default;\n  }\n  _private2.DS.RecordArray = _private2.RecordArray;\n  _private2.DS.AdapterPopulatedRecordArray = _private2.AdapterPopulatedRecordArray;\n  _private2.DS.ManyArray = _private2.ManyArray;\n  _private2.DS.RecordArrayManager = _private2.RecordArrayManager;\n  _private2.DS.RESTAdapter = _rest.default;\n  _private2.DS.BuildURLMixin = _adapter.BuildURLMixin;\n  _private2.DS.RESTSerializer = _rest2.default;\n  _private2.DS.JSONSerializer = _json.default;\n  _private2.DS.JSONAPIAdapter = _jsonApi.default;\n  _private2.DS.JSONAPISerializer = _jsonApi2.default;\n  _private2.DS.Transform = _transform.default;\n  _private2.DS.DateTransform = _private.DateTransform;\n  _private2.DS.StringTransform = _private.StringTransform;\n  _private2.DS.NumberTransform = _private.NumberTransform;\n  _private2.DS.BooleanTransform = _private.BooleanTransform;\n  _private2.DS.EmbeddedRecordsMixin = _rest2.EmbeddedRecordsMixin;\n  _private2.DS.belongsTo = _model.belongsTo;\n  _private2.DS.hasMany = _model.hasMany;\n  _private2.DS.Relationship = _private2.Relationship;\n  _private2.DS._setupContainer = _setupContainer.default;\n  Object.defineProperty(_private2.DS, 'normalizeModelName', {\n    enumerable: true,\n    writable: false,\n    configurable: false,\n    value: _store.normalizeModelName\n  });\n  var _default = _exports.default = _private2.DS;\n});","define(\"ember-data/model\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _model.default;\n    }\n  });\n});","define(\"ember-data/relationships\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"belongsTo\", {\n    enumerable: true,\n    get: function () {\n      return _model.belongsTo;\n    }\n  });\n  Object.defineProperty(_exports, \"hasMany\", {\n    enumerable: true,\n    get: function () {\n      return _model.hasMany;\n    }\n  });\n});","define(\"ember-data/serializer\", [\"exports\", \"@ember-data/serializer\"], function (_exports, _serializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _serializer.default;\n    }\n  });\n});","define(\"ember-data/serializers/embedded-records-mixin\", [\"exports\", \"@ember-data/serializer/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _rest.EmbeddedRecordsMixin;\n    }\n  });\n});","define(\"ember-data/serializers/json-api\", [\"exports\", \"@ember-data/serializer/json-api\"], function (_exports, _jsonApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _jsonApi.default;\n    }\n  });\n});","define(\"ember-data/serializers/json\", [\"exports\", \"@ember-data/serializer/json\"], function (_exports, _json) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _json.default;\n    }\n  });\n});","define(\"ember-data/serializers/rest\", [\"exports\", \"@ember-data/serializer/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _rest.default;\n    }\n  });\n});","define(\"ember-data/setup-container\", [\"exports\", \"@ember/debug\", \"@ember-data/store\"], function (_exports, _debug, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = setupContainer;\n  function initializeStore(application) {\n    // we can just use registerOptionsForType when we no longer\n    // support (deprecated) versions of @ember/test-helpers\n    // We're issuing a \"private-api\" deprecation for users of the\n    // deprecated @ember/test-helpers versions, but will keep\n    // this for as long as until 4.0 as needed\n    if (true /* DEBUG */ && !application.registerOptionsForType) {\n      (true && !(false) && (0, _debug.deprecate)(`Deprecated test syntax usage detected!\\n\\n\\t` + `This test relies on a deprecated test setup that is no longer supported by EmberData.` + ` To resolve this you will need to be on a recent version of @ember/test-helpers` + ` AND your tests must use \\`setApplication()\\` instead of \\`setResolver()\\` and` + ` \\`module()\\` with \\`setup*Test()\\`instead of \\`moduleFor*()\\`.`, false, {\n        id: 'ember-data:legacy-test-helper-support',\n        until: '3.17',\n        for: 'ember-data',\n        since: {\n          available: '3.15',\n          enabled: '3.15'\n        }\n      }));\n      application.optionsForType('serializer', {\n        singleton: false\n      });\n      application.optionsForType('adapter', {\n        singleton: false\n      });\n      if (!application.has('service:store')) {\n        application.register('service:store', _store.default);\n      }\n      return;\n    }\n    application.registerOptionsForType('serializer', {\n      singleton: false\n    });\n    application.registerOptionsForType('adapter', {\n      singleton: false\n    });\n    if (!application.hasRegistration('service:store')) {\n      application.register('service:store', _store.default);\n    }\n  }\n  function initializeStoreInjections(application) {\n    var inject = application.inject || application.injection;\n    inject.call(application, 'controller', 'store', 'service:store');\n    inject.call(application, 'route', 'store', 'service:store');\n  }\n  function setupContainer(application) {\n    initializeStoreInjections(application);\n    initializeStore(application);\n  }\n});","define(\"ember-data/store\", [\"exports\", \"@ember-data/store\"], function (_exports, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _store.default;\n    }\n  });\n});","define(\"ember-data/transform\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.default;\n    }\n  });\n});","define(\"ember-data/version\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = \"3.28.13\";\n});","define(\"ember-dayjs-helpers/helpers/day-js\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayJs(params, {\n    date,\n    format\n  }) {\n    if (format) {\n      return (0, _dayjs.default)(date).format(format);\n    }\n    return (0, _dayjs.default)(date).toString();\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-add\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsAdd(params, {\n    amount,\n    unit\n  }) {\n    return (0, _dayjs.default)().add(amount, unit);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-calendar\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/calendar\"], function (_exports, _helper, _dayjs, _calendar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/calendar\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsCalendar(params /*, hash*/) {\n    _dayjs.default.extend(_calendar.default);\n    return (0, _dayjs.default)().calendar((0, _dayjs.default)(params[0]));\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-date\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsDate(params /*, hash*/) {\n    return (0, _dayjs.default)(params[0]).date();\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-day-of-week\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsDayOfWeek(params /*, hash*/) {\n    return (0, _dayjs.default)(params[0]).day();\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-day-of-year\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/dayOfYear\"], function (_exports, _helper, _dayjs, _dayOfYear) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/dayOfYear\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsDayOfYear(params /*, hash*/) {\n    _dayjs.default.extend(_dayOfYear.default);\n    return (0, _dayjs.default)(params[0]).dayOfYear();\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-diff\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsDiff(params, {\n    from,\n    to,\n    unit\n  }) {\n    return (0, _dayjs.default)(from).diff(to, unit);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-end-of\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsEndOf(params /*, hash*/) {\n    return (0, _dayjs.default)().endOf(params[0]);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-format\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsFormat(params, {\n    date,\n    format\n  }) {\n    return (0, _dayjs.default)(date).format(format);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-from-now\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/relativeTime\"], function (_exports, _helper, _dayjs, _relativeTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/relativeTime\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsFromNow(params /*, hash*/) {\n    //return params;\n    _dayjs.default.extend(_relativeTime.default);\n    return (0, _dayjs.default)(params[0]).fromNow();\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-from\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/relativeTime\"], function (_exports, _helper, _dayjs, _relativeTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/relativeTime\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsFrom(params /*, hash*/) {\n    _dayjs.default.extend(_relativeTime.default);\n    return (0, _dayjs.default)().from(params[0]);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-is-after\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsIsAfter(params, {\n    date,\n    unit\n  }) {\n    return (0, _dayjs.default)().isAfter(date, unit);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-is-before\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsIsBefore(params, {\n    date,\n    unit\n  }) {\n    return (0, _dayjs.default)().isBefore(date, unit);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-is-between\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/isBetween\"], function (_exports, _helper, _dayjs, _isBetween) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/isBetween\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsIsBetween(params, {\n    date,\n    from,\n    to,\n    unit\n  }) {\n    _dayjs.default.extend(_isBetween.default);\n    return (0, _dayjs.default)(date).isBetween(from, to, unit);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-is-leap-year\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/isLeapYear\"], function (_exports, _helper, _dayjs, _isLeapYear) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/isLeapYear\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsIsLeapYear(params /*, hash*/) {\n    _dayjs.default.extend(_isLeapYear.default);\n    return (0, _dayjs.default)(params[0]).isLeapYear();\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-is-same-or-after\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/isSameOrAfter\"], function (_exports, _helper, _dayjs, _isSameOrAfter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/isSameOrAfter\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsIsSameOrAfter(params, {\n    date,\n    unit\n  }) {\n    _dayjs.default.extend(_isSameOrAfter.default);\n    return (0, _dayjs.default)().isSameOrAfter(date, unit);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-is-same-or-before\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/isSameOrBefore\"], function (_exports, _helper, _dayjs, _isSameOrBefore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/isSameOrBefore\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsIsSameOrBefore(params, {\n    date,\n    unit\n  }) {\n    _dayjs.default.extend(_isSameOrBefore.default);\n    return (0, _dayjs.default)().isSameOrBefore(date, unit);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-is-same\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsIsSame(params, {\n    date,\n    unit\n  }) {\n    return (0, _dayjs.default)().isSame(date, unit);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-months-short\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/localeData\"], function (_exports, _helper, _dayjs, _localeData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/localeData\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsMonthsShort() {\n    _dayjs.default.extend(_localeData.default);\n    return _dayjs.default.monthsShort();\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-months\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/localeData\"], function (_exports, _helper, _dayjs, _localeData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/localeData\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsMonths() {\n    _dayjs.default.extend(_localeData.default);\n    return _dayjs.default.months();\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-start-of\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsStartOf(params /*, hash*/) {\n    return (0, _dayjs.default)().startOf(params[0]);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-subtract\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsSubtract(params, {\n    amount,\n    unit,\n    format\n  }) {\n    return (0, _dayjs.default)().subtract(amount, unit).format(format);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-to-now\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/relativeTime\"], function (_exports, _helper, _dayjs, _relativeTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/relativeTime\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsToNow(params /*, hash*/) {\n    _dayjs.default.extend(_relativeTime.default);\n    return (0, _dayjs.default)(params[0]).toNow();\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-to\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/relativeTime\"], function (_exports, _helper, _dayjs, _relativeTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/relativeTime\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsTo(params /*, hash*/) {\n    _dayjs.default.extend(_relativeTime.default);\n    return (0, _dayjs.default)().to(params[0]);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-week-of-year\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/weekOfYear\"], function (_exports, _helper, _dayjs, _weekOfYear) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/weekOfYear\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsWeekOfYear(params /*, hash*/) {\n    _dayjs.default.extend(_weekOfYear.default);\n    return (0, _dayjs.default)(params[0]).week();\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-weekday\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/weekday\"], function (_exports, _helper, _dayjs, _weekday) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/weekday\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsWeekday(params) {\n    _dayjs.default.extend(_weekday.default);\n    return (0, _dayjs.default)().weekday(params[0]);\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-weekdays-min\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/localeData\"], function (_exports, _helper, _dayjs, _localeData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/localeData\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsWeekdaysMin() {\n    _dayjs.default.extend(_localeData.default);\n    return _dayjs.default.weekdaysMin();\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-weekdays-short\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/localeData\"], function (_exports, _helper, _dayjs, _localeData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/localeData\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsWeekdaysShort() {\n    _dayjs.default.extend(_localeData.default);\n    return _dayjs.default.weekdaysShort();\n  });\n});","define(\"ember-dayjs-helpers/helpers/dayjs-weekdays\", [\"exports\", \"@ember/component/helper\", \"dayjs\", \"dayjs/plugin/localeData\"], function (_exports, _helper, _dayjs, _localeData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\",0,\"dayjs/plugin/localeData\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function dayjsWeekdays() {\n    _dayjs.default.extend(_localeData.default);\n    return _dayjs.default.weekdays();\n  });\n});","define(\"ember-dayjs-helpers/helpers/days-in-month\", [\"exports\", \"@ember/component/helper\", \"dayjs\"], function (_exports, _helper, _dayjs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"dayjs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function daysInMonth(params /*, hash*/) {\n    return (0, _dayjs.default)(params[0]).daysInMonth();\n  });\n});","define('ember-django-adapter/adapters/drf', ['exports', '@ember/string', 'ember-data/adapters/rest', 'ember-inflector', 'ember-data'], function (exports, _string, _rest, _emberInflector, _emberData) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  const AdapterError = _emberData.default.AdapterError,\n        InvalidError = _emberData.default.InvalidError;\n\n\n  const ERROR_MESSAGES = {\n    401: 'Unauthorized',\n    500: 'Internal Server Error'\n  };\n\n  /**\n   * The Django REST Framework adapter allows your store to communicate\n   * with Django REST Framework-built APIs by adjusting the JSON and URL\n   * structure implemented by Ember Data to match that of DRF.\n   *\n   * The source code for the RESTAdapter superclass can be found at:\n   * https://github.com/emberjs/data/blob/master/packages/ember-data/lib/adapters/rest_adapter.js\n   *\n   * @class DRFAdapter\n   * @constructor\n   * @extends DS.RESTAdapter\n   */\n  exports.default = _rest.default.extend({\n    defaultSerializer: \"DS/djangoREST\",\n    addTrailingSlashes: true,\n    nonFieldErrorsKey: 'non_field_errors',\n\n    /**\n     * Determine the pathname for a given type.\n     *\n     * @method pathForType\n     * @param {String} type\n     * @return {String} path\n     */\n    pathForType: function pathForType(type) {\n      var dasherized = (0, _string.dasherize)(type);\n      return (0, _emberInflector.pluralize)(dasherized);\n    },\n\n    /**\n      Builds a URL for a given model name and optional ID.\n       By default, it pluralizes the type's name (for example, 'post'\n      becomes 'posts' and 'person' becomes 'people').\n       If an ID is specified, it adds the ID to the path generated\n      for the type, separated by a `/`.\n       If the adapter has the property `addTrailingSlashes` set to\n      true, a trailing slash will be appended to the result.\n       @method buildURL\n      @param {String} modelName\n      @param {(String|Array|Object)} id single id or array of ids or query\n      @param {(DS.Snapshot|Array)} snapshot single snapshot or array of snapshots\n      @param {String} requestType\n      @param {Object} query object of query parameters to send for query requests.\n      @return {String} url\n    */\n    buildURL: function buildURL(modelName, id, snapshot, requestType, query) {\n      var url = this._super(modelName, id, snapshot, requestType, query);\n      if (this.get('addTrailingSlashes')) {\n        if (url.charAt(url.length - 1) !== '/') {\n          url += '/';\n        }\n      }\n      return url;\n    },\n\n    /**\n      Takes an ajax response, and returns the json payload or an error.\n       By default this hook just returns the json payload passed to it.\n      You might want to override it in two cases:\n       1. Your API might return useful results in the response headers.\n      Response headers are passed in as the second argument.\n       2. Your API might return errors as successful responses with status code\n      200 and an Errors text or object. You can return a `DS.InvalidError` or a\n      `DS.AdapterError` (or a sub class) from this hook and it will automatically\n      reject the promise and put your record into the invalid or error state.\n       Returning a `DS.InvalidError` from this method will cause the\n      record to transition into the `invalid` state and make the\n      `errors` object available on the record. When returning an\n      `DS.InvalidError` the store will attempt to normalize the error data\n      returned from the server using the serializer's `extractErrors`\n      method.\n       @method handleResponse\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @return {Object | DS.AdapterError} response\n    */\n    handleResponse: function handleResponse(status, headers, payload) {\n      if (this.isSuccess(status, headers, payload)) {\n        return payload;\n      } else if (this.isInvalid(status, headers, payload)) {\n        return new InvalidError(this._drfToJsonAPIValidationErrors(payload));\n      }\n\n      if (Object.getOwnPropertyNames(payload).length === 0) {\n        payload = '';\n      } else if (payload.detail) {\n        payload = payload.detail;\n      }\n      let errors = this.normalizeErrorResponse(status, headers, payload);\n\n      if (ERROR_MESSAGES[status]) {\n        return new AdapterError(errors, ERROR_MESSAGES[status]);\n      }\n      return new AdapterError(errors);\n    },\n\n    isInvalid: function isInvalid(status) {\n      return status === 400;\n    },\n\n    /**\n      Convert validation errors to a JSON API object.\n       Non-field errors are converted to an object that points at /data.  Field-\n      specific errors are converted to an object that points at the respective\n      attribute.  Nested field-specific errors are converted to an object that\n      include a slash-delimited pointer to the nested attribute.\n       NOTE: Because JSON API does not technically support nested resource objects\n            at this time, any nested errors are literally \"in name\" only.  The\n            error object will be attached to the parent resource and the nested\n            object's isValid property will continue to be true.\n       @method _drfToJsonAPIValidationErrors\n      @param {Object} payload\n      @param {String} keyPrefix Used to recursively process nested errors\n      @return {Array} A list of JSON API compliant error objects\n    */\n    _drfToJsonAPIValidationErrors(payload, keyPrefix = '') {\n      let out = [];\n\n      payload = this._formatPayload(payload);\n\n      for (let key in payload) {\n        /*jshint loopfunc: true */\n        if (payload.hasOwnProperty(key)) {\n          if (Ember.isArray(payload[key])) {\n            payload[key].forEach(error => {\n              if (key === this.get('nonFieldErrorsKey')) {\n                out.push({\n                  source: { pointer: '/data' },\n                  detail: error,\n                  title: 'Validation Error'\n                });\n              } else {\n                out.push({\n                  source: { pointer: `/data/attributes/${keyPrefix}${key}` },\n                  detail: error,\n                  title: 'Invalid Attribute'\n                });\n              }\n            });\n          } else {\n            out = out.concat(this._drfToJsonAPIValidationErrors(payload[key], `${keyPrefix}${key}/`));\n          }\n        }\n      }\n      return out;\n    },\n\n    /**\n     * This is used by RESTAdapter._drfToJsonAPIValidationErrors.\n     *\n     * Map string values to arrays because improperly formatted payloads cause\n     * a maximum call stack size exceeded error\n     *\n     * @method _formatPayload\n     * @param {Object} payload\n     * @return {Object} payload\n     */\n    _formatPayload: function _formatPayload(payload) {\n      for (let key in payload) {\n        if (payload.hasOwnProperty(key)) {\n          if (typeof payload[key] === 'string') {\n            payload[key] = [payload[key]];\n          }\n        }\n      }\n\n      return payload;\n    },\n\n    /**\n     * This is used by RESTAdapter.groupRecordsForFindMany.\n     *\n     * The original implementation does not handle trailing slashes well.\n     * Additionally, it is a complex stripping of the id from the URL,\n     * which can be dramatically simplified by just returning the base\n     * URL for the type.\n     *\n     * @method _stripIDFromURL\n     * @param {DS.Store} store\n     * @param {DS.Snapshot} snapshot\n     * @return {String} url\n     */\n    _stripIDFromURL: function _stripIDFromURL(store, snapshot) {\n      return this.buildURL(snapshot.modelName);\n    }\n  });\n});","define('ember-django-adapter/serializers/drf', ['exports', '@ember/string', 'ember-data/serializers/rest'], function (exports, _string, _rest) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _rest.default.extend({\n    // Remove this in our 2.0 release.\n    isNewSerializerAPI: true,\n\n    /**\n     * Returns the resource's relationships formatted as a JSON-API \"relationships object\".\n     *\n     * http://jsonapi.org/format/#document-resource-object-relationships\n     *\n     * This version adds a 'links'hash with relationship urls before invoking the\n     * JSONSerializer's version.\n     *\n     * @method extractRelationships\n     * @param {Object} modelClass\n     * @param {Object} resourceHash\n     * @return {Object}\n     */\n    extractRelationships: function extractRelationships(modelClass, resourceHash) {\n      if (!resourceHash.hasOwnProperty('links')) {\n        resourceHash['links'] = {};\n      }\n\n      modelClass.eachRelationship(function (key, relationshipMeta) {\n        let payloadRelKey = this.keyForRelationship(key);\n\n        if (!resourceHash.hasOwnProperty(payloadRelKey)) {\n          return;\n        }\n\n        if (relationshipMeta.kind === 'hasMany' || relationshipMeta.kind === 'belongsTo') {\n          // Matches strings starting with: https://, http://, //, /\n          var payloadRel = resourceHash[payloadRelKey];\n          if (!Ember.isNone(payloadRel) && !Ember.isNone(payloadRel.match) && typeof payloadRel.match === 'function' && payloadRel.match(/^((https?:)?\\/\\/|\\/)\\w/)) {\n            resourceHash['links'][key] = resourceHash[payloadRelKey];\n            delete resourceHash[payloadRelKey];\n          }\n        }\n      }, this);\n\n      return this._super(modelClass, resourceHash);\n    },\n\n    /**\n     *  Returns the number extracted from the page number query param of\n     *  a `url`. `null` is returned when the page number query param\n     *  isn't present in the url. `null` is also returned when `url` is\n     *  `null`.\n     *\n     * @method extractPageNumber\n     * @private\n     * @param {String} url\n     * @return {Number} page number\n     */\n    extractPageNumber: function extractPageNumber(url) {\n      var match = /.*?[?&]page=(\\d+).*?/.exec(url);\n      if (match) {\n        return Number(match[1]).valueOf();\n      }\n      return null;\n    },\n\n    /**\n     * Converts DRF API server responses into the format expected by the RESTSerializer.\n     *\n     * If the payload has DRF metadata and results properties, all properties that aren't in\n     * the results are added to the 'meta' hash so that Ember Data can use these properties\n     * for metadata. The next and previous pagination URLs are parsed to make it easier to\n     * paginate data in applications. The RESTSerializer's version of this function is called\n     * with the converted payload.\n     *\n     * @method normalizeResponse\n     * @param {DS.Store} store\n     * @param {DS.Model} primaryModelClass\n     * @param {Object} payload\n     * @param {String|Number} id\n     * @param {String} requestType\n     * @return {Object} JSON-API Document\n     */\n    normalizeResponse: function normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n      let convertedPayload = {};\n\n      if (!Ember.isNone(payload) && payload.hasOwnProperty('next') && payload.hasOwnProperty('previous') && payload.hasOwnProperty('results')) {\n\n        // Move DRF metadata to the meta hash.\n        convertedPayload[primaryModelClass.modelName] = JSON.parse(JSON.stringify(payload.results));\n        delete payload.results;\n        convertedPayload['meta'] = JSON.parse(JSON.stringify(payload));\n\n        // The next and previous pagination URLs are parsed to make it easier to paginate data in applications.\n        if (!Ember.isNone(convertedPayload.meta['next'])) {\n          convertedPayload.meta['next'] = this.extractPageNumber(convertedPayload.meta['next']);\n        }\n        if (!Ember.isNone(convertedPayload.meta['previous'])) {\n          let pageNumber = this.extractPageNumber(convertedPayload.meta['previous']);\n          // The DRF previous URL doesn't always include the page=1 query param in the results for page 2. We need to\n          // explicitly set previous to 1 when the previous URL is defined but the page is not set.\n          if (Ember.isNone(pageNumber)) {\n            pageNumber = 1;\n          }\n          convertedPayload.meta['previous'] = pageNumber;\n        }\n      } else {\n        convertedPayload[primaryModelClass.modelName] = JSON.parse(JSON.stringify(payload));\n      }\n\n      // return single result for requestType 'queryRecord'\n      let records = convertedPayload[primaryModelClass.modelName];\n      if (requestType === 'queryRecord' && Array.isArray(records)) {\n        let first = records.length > 0 ? records[0] : null;\n        convertedPayload[primaryModelClass.modelName] = first;\n      }\n\n      return this._super(store, primaryModelClass, convertedPayload, id, requestType);\n    },\n\n    /**\n     * You can use this method to customize how a serialized record is\n     * added to the complete JSON hash to be sent to the server. By\n     * default the JSON Serializer does not namespace the payload and\n     * just sends the raw serialized JSON object.\n     *\n     * If your server expects namespaced keys, you should consider using\n     * the RESTSerializer.  Otherwise you can override this method to\n     * customize how the record is added to the hash.\n     *\n     * For example, your server may expect underscored root objects.\n     *\n     * @method serializeIntoHash\n     * @param {Object} hash\n     * @param {subclass of DS.Model} type\n     * @param {DS.Snapshot} snapshot\n     * @param {Object} options\n     */\n    serializeIntoHash: function serializeIntoHash(hash, type, snapshot, options) {\n      Object.assign(hash, this.serialize(snapshot, options));\n    },\n\n    /**\n     * `keyForAttribute` can be used to define rules for how to convert\n     * an attribute name in your model to a key in your JSON.\n     *\n     * @method keyForAttribute\n     * @param {String} key\n     * @return {String} normalized key\n     */\n    keyForAttribute: function keyForAttribute(key) {\n      return (0, _string.decamelize)(key);\n    },\n\n    /**\n     * `keyForRelationship` can be used to define a custom key when\n     * serializing relationship properties. By default `JSONSerializer`\n     * does not provide an implementation of this method.\n     *\n     * @method keyForRelationship\n     * @param {String} key\n     * @return {String} normalized key\n     */\n    keyForRelationship: function keyForRelationship(key) {\n      return (0, _string.decamelize)(key);\n    }\n  });\n});","define(\"ember-fetch/errors\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isAbortError = isAbortError;\n  _exports.isBadRequestResponse = isBadRequestResponse;\n  _exports.isConflictResponse = isConflictResponse;\n  _exports.isForbiddenResponse = isForbiddenResponse;\n  _exports.isGoneResponse = isGoneResponse;\n  _exports.isInvalidResponse = isInvalidResponse;\n  _exports.isNotFoundResponse = isNotFoundResponse;\n  _exports.isServerErrorResponse = isServerErrorResponse;\n  _exports.isUnauthorizedResponse = isUnauthorizedResponse;\n  /**\n   * Checks if the given response represents an unauthorized request error\n   */\n  function isUnauthorizedResponse(response) {\n    return response.status === 401;\n  }\n\n  /**\n   * Checks if the given response represents a forbidden request error\n   */\n  function isForbiddenResponse(response) {\n    return response.status === 403;\n  }\n\n  /**\n   * Checks if the given response represents an invalid request error\n   */\n  function isInvalidResponse(response) {\n    return response.status === 422;\n  }\n\n  /**\n   * Checks if the given response represents a bad request error\n   */\n  function isBadRequestResponse(response) {\n    return response.status === 400;\n  }\n\n  /**\n   * Checks if the given response represents a \"not found\" error\n   */\n  function isNotFoundResponse(response) {\n    return response.status === 404;\n  }\n\n  /**\n   * Checks if the given response represents a \"gone\" error\n   */\n  function isGoneResponse(response) {\n    return response.status === 410;\n  }\n\n  /**\n   * Checks if the given error is an \"abort\" error\n   */\n  function isAbortError(error) {\n    return error.name == 'AbortError';\n  }\n\n  /**\n   * Checks if the given response represents a conflict error\n   */\n  function isConflictResponse(response) {\n    return response.status === 409;\n  }\n\n  /**\n   * Checks if the given response represents a server error\n   */\n  function isServerErrorResponse(response) {\n    return response.status >= 500 && response.status < 600;\n  }\n});","define(\"ember-fetch/types\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isPlainObject = isPlainObject;\n  function isPlainObject(obj) {\n    return Object.prototype.toString.call(obj) === '[object Object]';\n  }\n});","define(\"ember-fetch/utils/determine-body-promise\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = determineBodyPromise;\n  /**\n   * Function that always attempts to parse the response as json, and if an error is thrown,\n   * returns `undefined` if the response is successful and has a status code of 204 (No Content),\n   * or 205 (Reset Content) or if the request method was 'HEAD', and the plain payload otherwise.\n   */\n  function determineBodyPromise(response, requestData) {\n    return response.text().then(function (payload) {\n      let ret = payload;\n      try {\n        ret = JSON.parse(payload);\n      } catch (error) {\n        if (!(error instanceof SyntaxError)) {\n          throw error;\n        }\n        const status = response.status;\n        if (response.ok && (status === 204 || status === 205 || requestData.method === 'HEAD')) {\n          ret = undefined;\n        } else {\n          (0, _debug.debug)(`This response was unable to be parsed as json: ${payload}`);\n        }\n      }\n      return ret;\n    });\n  }\n});","define(\"ember-fetch/utils/mung-options-for-fetch\", [\"exports\", \"@ember/polyfills\", \"ember-fetch/utils/serialize-query-params\", \"ember-fetch/types\"], function (_exports, _polyfills, _serializeQueryParams, _types) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = mungOptionsForFetch;\n  /**\n   * Helper function that translates the options passed to `jQuery.ajax` into a format that `fetch` expects.\n   */\n  function mungOptionsForFetch(options) {\n    const hash = (0, _polyfills.assign)({\n      credentials: 'same-origin'\n    }, options);\n\n    // Default to 'GET' in case `type` is not passed in (mimics jQuery.ajax).\n    hash.method = (hash.method || hash.type || 'GET').toUpperCase();\n    if (hash.data) {\n      // GET and HEAD requests can't have a `body`\n      if (hash.method === 'GET' || hash.method === 'HEAD') {\n        // If no options are passed, Ember Data sets `data` to an empty object, which we test for.\n        if (Object.keys(hash.data).length) {\n          // Test if there are already query params in the url (mimics jQuey.ajax).\n          const queryParamDelimiter = hash.url.indexOf('?') > -1 ? '&' : '?';\n          hash.url += `${queryParamDelimiter}${(0, _serializeQueryParams.serializeQueryParams)(hash.data)}`;\n        }\n      } else {\n        // NOTE: a request's body cannot be a POJO, so we stringify it if it is.\n        // JSON.stringify removes keys with values of `undefined` (mimics jQuery.ajax).\n        // If the data is not a POJO (it's a String, FormData, etc), we just set it.\n        // If the data is a string, we assume it's a stringified object.\n        if ((0, _types.isPlainObject)(hash.data)) {\n          hash.body = JSON.stringify(hash.data);\n        } else {\n          hash.body = hash.data;\n        }\n      }\n    }\n    return hash;\n  }\n});","define(\"ember-fetch/utils/serialize-query-params\", [\"exports\", \"ember-fetch/types\"], function (_exports, _types) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.serializeQueryParams = serializeQueryParams;\n  const RBRACKET = /\\[\\]$/;\n\n  /**\n   * Helper function that turns the data/body of a request into a query param string.\n   * This is directly copied from jQuery.param.\n   */\n  function serializeQueryParams(queryParamsObject) {\n    var s = [];\n    function buildParams(prefix, obj) {\n      var i, len, key;\n      if (prefix) {\n        if (Array.isArray(obj)) {\n          for (i = 0, len = obj.length; i < len; i++) {\n            if (RBRACKET.test(prefix)) {\n              add(s, prefix, obj[i]);\n            } else {\n              buildParams(prefix + '[' + (typeof obj[i] === 'object' ? i : '') + ']', obj[i]);\n            }\n          }\n        } else if ((0, _types.isPlainObject)(obj)) {\n          for (key in obj) {\n            buildParams(prefix + '[' + key + ']', obj[key]);\n          }\n        } else {\n          add(s, prefix, obj);\n        }\n      } else if (Array.isArray(obj)) {\n        for (i = 0, len = obj.length; i < len; i++) {\n          add(s, obj[i].name, obj[i].value);\n        }\n      } else {\n        for (key in obj) {\n          buildParams(key, obj[key]);\n        }\n      }\n      return s;\n    }\n    return buildParams('', queryParamsObject).join('&').replace(/%20/g, '+');\n  }\n\n  /**\n   * Part of the `serializeQueryParams` helper function.\n   */\n  function add(s, k, v) {\n    // Strip out keys with undefined value and replace null values with\n    // empty strings (mimics jQuery.ajax)\n    if (v === undefined) {\n      return;\n    } else if (v === null) {\n      v = '';\n    }\n    v = typeof v === 'function' ? v() : v;\n    s[s.length] = `${encodeURIComponent(k)}=${encodeURIComponent(v)}`;\n  }\n  var _default = _exports.default = serializeQueryParams;\n});","define(\"ember-g-recaptcha/components/g-recaptcha\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/utils\", \"@ember/polyfills\", \"ember-g-recaptcha/configuration\"], function (_exports, _component, _computed, _utils, _polyfills, _configuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _component.default.extend({\n    classNames: ['g-recaptcha'],\n    sitekey: _configuration.default.siteKey,\n    tabindex: (0, _computed.alias)('tabIndex'),\n    renderReCaptcha() {\n      let properties = this.getProperties('sitekey', 'theme', 'type', 'size', 'tabindex', 'hl', 'badge');\n      let parameters = (0, _polyfills.assign)(properties, {\n        callback: this.get('successCallback').bind(this),\n        'expired-callback': this.get('expiredCallback').bind(this)\n      });\n      let widgetId = window.grecaptcha.render(this.get('element'), parameters);\n      this.set('widgetId', widgetId);\n      this.set('ref', this);\n      this.renderCallback();\n    },\n    resetReCaptcha() {\n      if ((0, _utils.isPresent)(this.get('widgetId'))) {\n        window.grecaptcha.reset(this.get('widgetId'));\n      }\n    },\n    renderCallback() {\n      let action = this.get('onRender');\n      if ((0, _utils.isPresent)(action)) {\n        action();\n      }\n    },\n    successCallback(reCaptchaResponse) {\n      let action = this.get('onSuccess');\n      if ((0, _utils.isPresent)(action)) {\n        action(reCaptchaResponse);\n      }\n    },\n    expiredCallback() {\n      let action = this.get('onExpired');\n      if ((0, _utils.isPresent)(action)) {\n        action();\n      } else {\n        this.resetReCaptcha();\n      }\n    },\n    appendScript(src) {\n      let scriptTag = document.createElement('script');\n      scriptTag.src = src;\n      document.body.appendChild(scriptTag);\n    },\n    // Lifecycle Hooks\n\n    didInsertElement() {\n      this._super(...arguments);\n      window.__ember_g_recaptcha_onload_callback = () => {\n        this.renderReCaptcha();\n      };\n      let baseUrl = _configuration.default.jsUrl || 'https://www.google.com/recaptcha/api.js?render=explicit';\n      this.appendScript(`${baseUrl}&onload=__ember_g_recaptcha_onload_callback`);\n    }\n  });\n});","define(\"ember-g-recaptcha/configuration\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _object.default.create();\n});","define(\"ember-get-config/index\", [\"exports\", \"@embroider/macros/runtime\"], function (_exports, _runtime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global require */\n\n  let configModulePath = `${(0, _runtime.config)(\"/Users/yibaebielliot/Documents/Software Development/Appknox/Repos/irene/node_modules/ember-basic-dropdown/node_modules/ember-get-config\").modulePrefix}/config/environment`;\n  var _default = _exports.default = require(configModulePath).default;\n});","define('ember-ignore-children-helper/helpers/ignore-children', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.ignoreChildren = ignoreChildren;\n  function ignoreChildren([nextHandler]) {\n    return function (...args) {\n      let event = args[args.length - 1];\n      if (event && event.target === event.currentTarget) {\n        nextHandler.apply(this, args);\n      }\n    };\n  }\n\n  exports.default = Ember.Helper.helper(ignoreChildren);\n});","define('ember-inflector/index', ['exports', 'ember-inflector/lib/system', 'ember-inflector/lib/ext/string'], function (exports, _system) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.defaultRules = exports.singularize = exports.pluralize = undefined;\n\n\n  _system.Inflector.defaultRules = _system.defaultRules;\n\n  Object.defineProperty(Ember, 'Inflector', {\n    get() {\n      Ember.deprecate(`Ember.Inflector is deprecated. Please explicitly: import Inflector from 'ember-inflector';`, false, {\n        id: 'ember-inflector.globals',\n        until: '3.0.0'\n      });\n\n      return _system.Inflector;\n    }\n  });\n\n  Object.defineProperty(Ember.String, 'singularize', {\n    get() {\n      Ember.deprecate(`Ember.String.singularize() is deprecated. Please explicitly: import { singularize } from 'ember-inflector';`, false, {\n        id: 'ember-inflector.globals',\n        until: '3.0.0'\n      });\n\n      return _system.singularize;\n    }\n  });\n\n  Object.defineProperty(Ember.String, 'pluralize', {\n    get() {\n      Ember.deprecate(`Ember.String.pluralize() is deprecated. Please explicitly: import { pluralize } from 'ember-inflector';`, false, {\n        id: 'ember-inflector.globals',\n        until: '3.0.0'\n      });\n\n      return _system.pluralize;\n    }\n  });\n\n  exports.default = _system.Inflector;\n  exports.pluralize = _system.pluralize;\n  exports.singularize = _system.singularize;\n  exports.defaultRules = _system.defaultRules;\n});","define('ember-inflector/lib/ext/string', ['ember-inflector/lib/system/string'], function (_string) {\n  'use strict';\n\n  if (Ember.ENV.EXTEND_PROTOTYPES === true || Ember.ENV.EXTEND_PROTOTYPES.String) {\n    /**\n      See {{#crossLink \"Ember.String/pluralize\"}}{{/crossLink}}\n       @method pluralize\n      @for String\n    */\n    Object.defineProperty(String.prototype, 'pluralize', {\n      get() {\n        Ember.deprecate(`String.prototype.pluralize() is deprecated. Please explicitly: import { pluralize } from 'ember-inflector';`, false, {\n          id: 'ember-inflector.globals',\n          until: '3.0.0'\n        });\n\n        return function () {\n          return (0, _string.pluralize)(this);\n        };\n      }\n    });\n\n    /**\n      See {{#crossLink \"Ember.String/singularize\"}}{{/crossLink}}\n       @method singularize\n      @for String\n    */\n    Object.defineProperty(String.prototype, 'singularize', {\n      get() {\n        Ember.deprecate(`String.prototype.singularize() is deprecated. Please explicitly: import { singularize } from 'ember-inflector';`, false, {\n          id: 'ember-inflector.globals',\n          until: '3.0.0'\n        });\n\n        return function () {\n          return (0, _string.singularize)(this);\n        };\n      }\n    });\n  }\n});","define('ember-inflector/lib/helpers/pluralize', ['exports', 'ember-inflector', 'ember-inflector/lib/utils/make-helper'], function (exports, _emberInflector, _makeHelper) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = (0, _makeHelper.default)(function (params, hash) {\n    let fullParams = new Array(...params);\n\n    if (fullParams.length === 2) {\n      fullParams.push({ withoutCount: hash[\"without-count\"] });\n    }\n\n    return (0, _emberInflector.pluralize)(...fullParams);\n  });\n});","define('ember-inflector/lib/helpers/singularize', ['exports', 'ember-inflector', 'ember-inflector/lib/utils/make-helper'], function (exports, _emberInflector, _makeHelper) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = (0, _makeHelper.default)(function (params) {\n    return (0, _emberInflector.singularize)(params[0]);\n  });\n});","define(\"ember-inflector/lib/system\", [\"exports\", \"ember-inflector/lib/system/inflector\", \"ember-inflector/lib/system/string\", \"ember-inflector/lib/system/inflections\"], function (exports, _inflector, _string, _inflections) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.defaultRules = exports.pluralize = exports.singularize = exports.Inflector = undefined;\n\n\n  _inflector.default.inflector = new _inflector.default(_inflections.default);\n\n  exports.Inflector = _inflector.default;\n  exports.singularize = _string.singularize;\n  exports.pluralize = _string.pluralize;\n  exports.defaultRules = _inflections.default;\n});","define('ember-inflector/lib/system/inflections', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    plurals: [[/$/, 's'], [/s$/i, 's'], [/^(ax|test)is$/i, '$1es'], [/(octop|vir)us$/i, '$1i'], [/(octop|vir)i$/i, '$1i'], [/(alias|status|bonus)$/i, '$1es'], [/(bu)s$/i, '$1ses'], [/(buffal|tomat)o$/i, '$1oes'], [/([ti])um$/i, '$1a'], [/([ti])a$/i, '$1a'], [/sis$/i, 'ses'], [/(?:([^f])fe|([lr])f)$/i, '$1$2ves'], [/(hive)$/i, '$1s'], [/([^aeiouy]|qu)y$/i, '$1ies'], [/(x|ch|ss|sh)$/i, '$1es'], [/(matr|vert|ind)(?:ix|ex)$/i, '$1ices'], [/^(m|l)ouse$/i, '$1ice'], [/^(m|l)ice$/i, '$1ice'], [/^(ox)$/i, '$1en'], [/^(oxen)$/i, '$1'], [/(quiz)$/i, '$1zes']],\n\n    singular: [[/s$/i, ''], [/(ss)$/i, '$1'], [/(n)ews$/i, '$1ews'], [/([ti])a$/i, '$1um'], [/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i, '$1sis'], [/(^analy)(sis|ses)$/i, '$1sis'], [/([^f])ves$/i, '$1fe'], [/(hive)s$/i, '$1'], [/(tive)s$/i, '$1'], [/([lr])ves$/i, '$1f'], [/([^aeiouy]|qu)ies$/i, '$1y'], [/(s)eries$/i, '$1eries'], [/(m)ovies$/i, '$1ovie'], [/(x|ch|ss|sh)es$/i, '$1'], [/^(m|l)ice$/i, '$1ouse'], [/(bus)(es)?$/i, '$1'], [/(o)es$/i, '$1'], [/(shoe)s$/i, '$1'], [/(cris|test)(is|es)$/i, '$1is'], [/^(a)x[ie]s$/i, '$1xis'], [/(octop|vir)(us|i)$/i, '$1us'], [/(alias|status|bonus)(es)?$/i, '$1'], [/^(ox)en/i, '$1'], [/(vert|ind)ices$/i, '$1ex'], [/(matr)ices$/i, '$1ix'], [/(quiz)zes$/i, '$1'], [/(database)s$/i, '$1']],\n\n    irregularPairs: [['person', 'people'], ['man', 'men'], ['child', 'children'], ['sex', 'sexes'], ['move', 'moves'], ['cow', 'kine'], ['zombie', 'zombies']],\n\n    uncountable: ['equipment', 'information', 'rice', 'money', 'species', 'series', 'fish', 'sheep', 'jeans', 'police']\n  };\n});","define('ember-inflector/lib/system/inflector', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n\n  var capitalize = Ember.String.capitalize;\n\n  var BLANK_REGEX = /^\\s*$/;\n  var LAST_WORD_DASHED_REGEX = /([\\w/-]+[_/\\s-])([a-z\\d]+$)/;\n  var LAST_WORD_CAMELIZED_REGEX = /([\\w/\\s-]+)([A-Z][a-z\\d]*$)/;\n  var CAMELIZED_REGEX = /[A-Z][a-z\\d]*$/;\n\n  function loadUncountable(rules, uncountable) {\n    for (var i = 0, length = uncountable.length; i < length; i++) {\n      rules.uncountable[uncountable[i].toLowerCase()] = true;\n    }\n  }\n\n  function loadIrregular(rules, irregularPairs) {\n    var pair;\n\n    for (var i = 0, length = irregularPairs.length; i < length; i++) {\n      pair = irregularPairs[i];\n\n      //pluralizing\n      rules.irregular[pair[0].toLowerCase()] = pair[1];\n      rules.irregular[pair[1].toLowerCase()] = pair[1];\n\n      //singularizing\n      rules.irregularInverse[pair[1].toLowerCase()] = pair[0];\n      rules.irregularInverse[pair[0].toLowerCase()] = pair[0];\n    }\n  }\n\n  /**\n    Inflector.Ember provides a mechanism for supplying inflection rules for your\n    application. Ember includes a default set of inflection rules, and provides an\n    API for providing additional rules.\n  \n    Examples:\n  \n    Creating an inflector with no rules.\n  \n    ```js\n    var inflector = new Ember.Inflector();\n    ```\n  \n    Creating an inflector with the default ember ruleset.\n  \n    ```js\n    var inflector = new Ember.Inflector(Ember.Inflector.defaultRules);\n  \n    inflector.pluralize('cow'); //=> 'kine'\n    inflector.singularize('kine'); //=> 'cow'\n    ```\n  \n    Creating an inflector and adding rules later.\n  \n    ```javascript\n    var inflector = Ember.Inflector.inflector;\n  \n    inflector.pluralize('advice'); // => 'advices'\n    inflector.uncountable('advice');\n    inflector.pluralize('advice'); // => 'advice'\n  \n    inflector.pluralize('formula'); // => 'formulas'\n    inflector.irregular('formula', 'formulae');\n    inflector.pluralize('formula'); // => 'formulae'\n  \n    // you would not need to add these as they are the default rules\n    inflector.plural(/$/, 's');\n    inflector.singular(/s$/i, '');\n    ```\n  \n    Creating an inflector with a nondefault ruleset.\n  \n    ```javascript\n    var rules = {\n      plurals:  [\n        [ /$/, 's' ]\n      ],\n      singular: [\n        [ /\\s$/, '' ]\n      ],\n      irregularPairs: [\n        [ 'cow', 'kine' ]\n      ],\n      uncountable: [ 'fish' ]\n    };\n  \n    var inflector = new Ember.Inflector(rules);\n    ```\n  \n    @class Inflector\n    @namespace Ember\n  */\n  function Inflector(ruleSet) {\n    ruleSet = ruleSet || {};\n    ruleSet.uncountable = ruleSet.uncountable || makeDictionary();\n    ruleSet.irregularPairs = ruleSet.irregularPairs || makeDictionary();\n\n    var rules = this.rules = {\n      plurals: ruleSet.plurals || [],\n      singular: ruleSet.singular || [],\n      irregular: makeDictionary(),\n      irregularInverse: makeDictionary(),\n      uncountable: makeDictionary()\n    };\n\n    loadUncountable(rules, ruleSet.uncountable);\n    loadIrregular(rules, ruleSet.irregularPairs);\n\n    this.enableCache();\n  }\n\n  if (!Object.create && !Object.create(null).hasOwnProperty) {\n    throw new Error(\"This browser does not support Object.create(null), please polyfil with es5-sham: http://git.io/yBU2rg\");\n  }\n\n  function makeDictionary() {\n    var cache = Object.create(null);\n    cache['_dict'] = null;\n    delete cache['_dict'];\n    return cache;\n  }\n\n  Inflector.prototype = {\n    /**\n      @public\n       As inflections can be costly, and commonly the same subset of words are repeatedly\n      inflected an optional cache is provided.\n       @method enableCache\n    */\n    enableCache: function enableCache() {\n      this.purgeCache();\n\n      this.singularize = function (word) {\n        this._cacheUsed = true;\n        return this._sCache[word] || (this._sCache[word] = this._singularize(word));\n      };\n\n      this.pluralize = function (numberOrWord, word, options = {}) {\n        this._cacheUsed = true;\n        var cacheKey = [numberOrWord, word, options.withoutCount];\n        return this._pCache[cacheKey] || (this._pCache[cacheKey] = this._pluralize(numberOrWord, word, options));\n      };\n    },\n\n    /**\n      @public\n       @method purgedCache\n    */\n    purgeCache: function purgeCache() {\n      this._cacheUsed = false;\n      this._sCache = makeDictionary();\n      this._pCache = makeDictionary();\n    },\n\n    /**\n      @public\n      disable caching\n       @method disableCache;\n    */\n    disableCache: function disableCache() {\n      this._sCache = null;\n      this._pCache = null;\n      this.singularize = function (word) {\n        return this._singularize(word);\n      };\n\n      this.pluralize = function () {\n        return this._pluralize(...arguments);\n      };\n    },\n\n    /**\n      @method plural\n      @param {RegExp} regex\n      @param {String} string\n    */\n    plural: function plural(regex, string) {\n      if (this._cacheUsed) {\n        this.purgeCache();\n      }\n      this.rules.plurals.push([regex, string.toLowerCase()]);\n    },\n\n    /**\n      @method singular\n      @param {RegExp} regex\n      @param {String} string\n    */\n    singular: function singular(regex, string) {\n      if (this._cacheUsed) {\n        this.purgeCache();\n      }\n      this.rules.singular.push([regex, string.toLowerCase()]);\n    },\n\n    /**\n      @method uncountable\n      @param {String} regex\n    */\n    uncountable: function uncountable(string) {\n      if (this._cacheUsed) {\n        this.purgeCache();\n      }\n      loadUncountable(this.rules, [string.toLowerCase()]);\n    },\n\n    /**\n      @method irregular\n      @param {String} singular\n      @param {String} plural\n    */\n    irregular: function irregular(singular, plural) {\n      if (this._cacheUsed) {\n        this.purgeCache();\n      }\n      loadIrregular(this.rules, [[singular, plural]]);\n    },\n\n    /**\n      @method pluralize\n      @param {String} word\n    */\n    pluralize: function pluralize() {\n      return this._pluralize(...arguments);\n    },\n\n    _pluralize: function _pluralize(wordOrCount, word, options = {}) {\n      if (word === undefined) {\n        return this.inflect(wordOrCount, this.rules.plurals, this.rules.irregular);\n      }\n\n      if (parseFloat(wordOrCount) !== 1) {\n        word = this.inflect(word, this.rules.plurals, this.rules.irregular);\n      }\n\n      return options.withoutCount ? word : `${wordOrCount} ${word}`;\n    },\n    /**\n      @method singularize\n      @param {String} word\n    */\n    singularize: function singularize(word) {\n      return this._singularize(word);\n    },\n\n    _singularize: function _singularize(word) {\n      return this.inflect(word, this.rules.singular, this.rules.irregularInverse);\n    },\n\n    /**\n      @protected\n       @method inflect\n      @param {String} word\n      @param {Object} typeRules\n      @param {Object} irregular\n    */\n    inflect: function inflect(word, typeRules, irregular) {\n      var inflection, substitution, result, lowercase, wordSplit, firstPhrase, lastWord, isBlank, isCamelized, rule, isUncountable;\n\n      isBlank = !word || BLANK_REGEX.test(word);\n\n      isCamelized = CAMELIZED_REGEX.test(word);\n      firstPhrase = \"\";\n\n      if (isBlank) {\n        return word;\n      }\n\n      lowercase = word.toLowerCase();\n      wordSplit = LAST_WORD_DASHED_REGEX.exec(word) || LAST_WORD_CAMELIZED_REGEX.exec(word);\n\n      if (wordSplit) {\n        firstPhrase = wordSplit[1];\n        lastWord = wordSplit[2].toLowerCase();\n      }\n\n      isUncountable = this.rules.uncountable[lowercase] || this.rules.uncountable[lastWord];\n\n      if (isUncountable) {\n        return word;\n      }\n\n      for (rule in irregular) {\n        if (lowercase.match(rule + \"$\")) {\n          substitution = irregular[rule];\n\n          if (isCamelized && irregular[lastWord]) {\n            substitution = capitalize(substitution);\n            rule = capitalize(rule);\n          }\n\n          return word.replace(new RegExp(rule, 'i'), substitution);\n        }\n      }\n\n      for (var i = typeRules.length, min = 0; i > min; i--) {\n        inflection = typeRules[i - 1];\n        rule = inflection[0];\n\n        if (rule.test(word)) {\n          break;\n        }\n      }\n\n      inflection = inflection || [];\n\n      rule = inflection[0];\n      substitution = inflection[1];\n\n      result = word.replace(rule, substitution);\n\n      return result;\n    }\n  };\n\n  exports.default = Inflector;\n});","define('ember-inflector/lib/system/string', ['exports', 'ember-inflector/lib/system/inflector'], function (exports, _inflector) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.singularize = exports.pluralize = undefined;\n\n\n  function pluralize() {\n    return _inflector.default.inflector.pluralize(...arguments);\n  }\n\n  function singularize(word) {\n    return _inflector.default.inflector.singularize(word);\n  }\n\n  exports.pluralize = pluralize;\n  exports.singularize = singularize;\n});","define('ember-inflector/lib/utils/make-helper', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = makeHelper;\n  function makeHelper(helperFunction) {\n    if (Ember.Helper) {\n      return Ember.Helper.helper(helperFunction);\n    }\n    if (Ember.HTMLBars) {\n      return Ember.HTMLBars.makeBoundHelper(helperFunction);\n    }\n    return Ember.Handlebars.makeBoundHelper(helperFunction);\n  }\n});","define(\"ember-intl/-private/error-types\", [\"exports\", \"intl-messageformat\"], function (_exports, _intlMessageformat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.MISSING_TRANSLATION = _exports.MISSING_INTL_API = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"intl-messageformat\"eaimeta@70e063a35619d71f\n  /**\n   * An error that indicates a required Intl API was not available\n   * at runtime. This is generally resolved by polyfilling the missing API.\n   *\n   * @private\n   * @hide\n   */\n  // If the consuming project uses `--isolatedModules`, `const enums`\n  // may not be used. Since `ember-cli-babel` does not care for `const enums`\n  // _anyway_ , this is not an issue.\n  const MISSING_INTL_API = _exports.MISSING_INTL_API = _intlMessageformat.ErrorCode.MISSING_INTL_API;\n\n  /**\n   * An error type that indicates a translation that was looked up\n   * by a specific key was not found.\n   *\n   * @private\n   * @hide\n   */\n  const MISSING_TRANSLATION = _exports.MISSING_TRANSLATION = 'MISSING_TRANSLATION';\n});","define(\"ember-intl/-private/formatters/-base\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n\n  /**\n   * @private\n   * @hide\n   */\n  // eslint-disable-next-line @typescript-eslint/ban-types\n  class FormatterBase {\n    get options() {\n      return [];\n    }\n  }\n  _exports.default = FormatterBase;\n  _defineProperty(FormatterBase, \"type\", void 0);\n});","define(\"ember-intl/-private/formatters/format-date\", [\"exports\", \"ember-intl/-private/formatters/-base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/-private/formatters/-base\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); } /**\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyright 2015, Yahoo! Inc.\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n                                                                                                                                                                                                                                                                                                                                                                                             */\n  /**\n   * @private\n   * @hide\n   */\n  class FormatDate extends _base.default {\n    format(intl, ...[value, opts]) {\n      return intl.formatDate(value, opts);\n    }\n  }\n  _exports.default = FormatDate;\n  _defineProperty(FormatDate, \"type\", 'date');\n});","define(\"ember-intl/-private/formatters/format-list\", [\"exports\", \"ember-intl/-private/formatters/-base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/-private/formatters/-base\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); } /**\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyright 2015, Yahoo! Inc.\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n                                                                                                                                                                                                                                                                                                                                                                                             */\n  /**\n   * @private\n   * @hide\n   */\n  class FormatList extends _base.default {\n    format(intl, ...[value, opts]) {\n      return intl.formatList(value, opts);\n    }\n  }\n  _exports.default = FormatList;\n  _defineProperty(FormatList, \"type\", 'list');\n});","define(\"ember-intl/-private/formatters/format-message\", [\"exports\", \"@ember/template\", \"ember\", \"ember-intl/-private/formatters/-base\"], function (_exports, _template, _ember, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template\",0,\"ember\",0,\"ember-intl/-private/formatters/-base\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); } /**\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyright 2015, Yahoo! Inc.\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n                                                                                                                                                                                                                                                                                                                                                                                             */\n  const {\n    Handlebars: {\n      // @ts-expect-error Upstream types are incomplete.\n      Utils: {\n        escapeExpression\n      }\n    }\n  } = _ember.default;\n  function escapeOptions(object) {\n    if (typeof object !== 'object') {\n      return;\n    }\n    const escapedOpts = {};\n    Object.keys(object).forEach(key => {\n      const val = object[key];\n      if ((0, _template.isHTMLSafe)(val)) {\n        // If the option is an instance of Ember SafeString,\n        // we don't want to pass it into the formatter, since the\n        // formatter won't know what to do with it. Instead, we cast\n        // the SafeString to a regular string using `toHTML`.\n        // Since it was already marked as safe we should *not* escape it.\n        // @ts-expect-error: see comment above\n        escapedOpts[key] = val.toHTML();\n      } else if (typeof val === 'string') {\n        escapedOpts[key] = escapeExpression(val);\n      } else {\n        // @ts-expect-error: see comment above\n        escapedOpts[key] = val; // copy as-is\n      }\n    });\n\n    return escapedOpts;\n  }\n  /**\n   * @private\n   * @hide\n   */\n  class FormatMessage extends _base.default {\n    // ! Function overloads are not passed through generic types for reasons that\n    // evade my knowledge. ¯\\_(ツ)_/¯\n    // For this reason these types need to be manually copied over to the\n    // `IntlService#formatMessage`.\n    format(intl, stringOrDesc, options) {\n      const isHTMLSafe = options && options.htmlSafe;\n      // Empty string is considered an err in ember-intl\n      // if (typeof stringOrDesc === 'string' && !stringOrDesc) {\n      //   return stringOrDesc;\n      // }\n      const escapedOptions = isHTMLSafe ? escapeOptions(options) : options;\n      const desc = stringOrDesc && typeof stringOrDesc === 'object' ? stringOrDesc : {\n        id: stringOrDesc,\n        defaultMessage: stringOrDesc\n      };\n      const result = intl.formatMessage(desc, escapedOptions, {\n        ignoreTag: true\n      });\n      return isHTMLSafe ? (0, _template.htmlSafe)(result) : result;\n    }\n  }\n  _exports.default = FormatMessage;\n  _defineProperty(FormatMessage, \"type\", 'message');\n});","define(\"ember-intl/-private/formatters/format-number\", [\"exports\", \"ember-intl/-private/formatters/-base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/-private/formatters/-base\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); } /**\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyright 2015, Yahoo! Inc.\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n                                                                                                                                                                                                                                                                                                                                                                                             */\n  /**\n   * @private\n   * @hide\n   */\n  class FormatNumber extends _base.default {\n    format(intl, ...[value, opts]) {\n      return intl.formatNumber(value, opts);\n    }\n  }\n  _exports.default = FormatNumber;\n  _defineProperty(FormatNumber, \"type\", 'number');\n});","define(\"ember-intl/-private/formatters/format-relative\", [\"exports\", \"@ember/debug\", \"ember-intl/-private/formatters/-base\"], function (_exports, _debug, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"ember-intl/-private/formatters/-base\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); } /**\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyright 2015, Yahoo! Inc.\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n                                                                                                                                                                                                                                                                                                                                                                                             */\n  /**\n   * An object with some or all of properties of `options` parameter\n   * of `Intl.RelativeTimeFormat` constructor.\n   *\n   * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n   *\n   * [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).\n   */\n\n  /**\n   * @private\n   * @hide\n   */\n  class FormatRelative extends _base.default {\n    format(intl, value, formatOptions) {\n      (true && !(formatOptions) && (0, _debug.assert)(`[ember-intl] FormatRelative: Missing option`, formatOptions));\n      const {\n        format\n      } = formatOptions;\n      let unit = formatOptions.unit;\n      let opts = formatOptions;\n      if (!unit && format && intl.formats.relative && (opts = intl.formats.relative[format])) {\n        unit = opts.unit;\n      }\n      (true && !(unit) && (0, _debug.assert)(`[ember-intl] FormatRelative: 'formatOptions' are missing a 'unit'. ${JSON.stringify(formatOptions)}`, unit));\n      return intl.formatRelativeTime(value, unit, opts);\n    }\n  }\n  _exports.default = FormatRelative;\n  _defineProperty(FormatRelative, \"type\", 'relative');\n});","define(\"ember-intl/-private/formatters/format-time\", [\"exports\", \"ember-intl/-private/formatters/-base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/-private/formatters/-base\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); } /**\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyright 2015, Yahoo! Inc.\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n                                                                                                                                                                                                                                                                                                                                                                                             */\n  /**\n   * @private\n   * @hide\n   */\n  class FormatTime extends _base.default {\n    format(intl, ...[value, opts]) {\n      return intl.formatTime(value, opts);\n    }\n  }\n  _exports.default = FormatTime;\n  _defineProperty(FormatTime, \"type\", 'time');\n});","define(\"ember-intl/-private/formatters/index\", [\"exports\", \"ember-intl/-private/formatters/format-date\", \"ember-intl/-private/formatters/format-list\", \"ember-intl/-private/formatters/format-message\", \"ember-intl/-private/formatters/format-number\", \"ember-intl/-private/formatters/format-relative\", \"ember-intl/-private/formatters/format-time\"], function (_exports, _formatDate, _formatList, _formatMessage, _formatNumber, _formatRelative, _formatTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"FormatDate\", {\n    enumerable: true,\n    get: function () {\n      return _formatDate.default;\n    }\n  });\n  Object.defineProperty(_exports, \"FormatList\", {\n    enumerable: true,\n    get: function () {\n      return _formatList.default;\n    }\n  });\n  Object.defineProperty(_exports, \"FormatMessage\", {\n    enumerable: true,\n    get: function () {\n      return _formatMessage.default;\n    }\n  });\n  Object.defineProperty(_exports, \"FormatNumber\", {\n    enumerable: true,\n    get: function () {\n      return _formatNumber.default;\n    }\n  });\n  Object.defineProperty(_exports, \"FormatRelative\", {\n    enumerable: true,\n    get: function () {\n      return _formatRelative.default;\n    }\n  });\n  Object.defineProperty(_exports, \"FormatTime\", {\n    enumerable: true,\n    get: function () {\n      return _formatTime.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/-private/formatters/format-date\",0,\"ember-intl/-private/formatters/format-list\",0,\"ember-intl/-private/formatters/format-message\",0,\"ember-intl/-private/formatters/format-number\",0,\"ember-intl/-private/formatters/format-relative\",0,\"ember-intl/-private/formatters/format-time\"eaimeta@70e063a35619d71f\n});","define(\"ember-intl/-private/utils/empty-object\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * @private\n   * @hide\n   */\n  const proto = Object.create(null, {\n    constructor: {\n      value: undefined,\n      enumerable: false,\n      writable: true\n    }\n  });\n\n  // eslint-disable-next-line @typescript-eslint/no-empty-function\n  function EmptyObject() {}\n  EmptyObject.prototype = proto;\n\n  /**\n   * @private\n   * @hide\n   */\n  var _default = _exports.default = EmptyObject;\n});","define(\"ember-intl/-private/utils/flatten\", [\"exports\", \"ember-intl/-private/utils/empty-object\"], function (_exports, _emptyObject) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = flatten;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/-private/utils/empty-object\"eaimeta@70e063a35619d71f\n  const hasOwnProperty = Object.prototype.hasOwnProperty;\n  /**\n   * @private\n   * @hide\n   */\n  function flatten(src) {\n    const result = new _emptyObject.default();\n    for (const key in src) {\n      if (!hasOwnProperty.call(src, key)) {\n        continue;\n      }\n      const value = src[key];\n      if (typeof value === 'object' && value) {\n        const hash = flatten(value);\n        for (const suffix in hash) {\n          const hasSuffix = hash[suffix];\n          if (typeof hasSuffix !== 'undefined') {\n            result[`${key}.${suffix}`] = hasSuffix;\n          }\n        }\n      } else {\n        if (typeof value !== 'undefined') {\n          result[key] = value;\n        }\n      }\n    }\n    return result;\n  }\n});","define(\"ember-intl/-private/utils/get-dom\", [\"exports\", \"@ember/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = getDOM;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\"eaimeta@70e063a35619d71f\n  // adjusted from https://github.com/yapplabs/ember-wormhole/blob/0.5.4/addon/utils/dom.js#L45-L63\n  //\n  // Private Ember API usage. Get the dom implementation used by the current\n  // renderer, be it native browser DOM or Fastboot SimpleDOM\n  /**\n   * @private\n   * @hide\n   */\n  function getDOM(context) {\n    let {\n      renderer\n    } = context;\n    if (!renderer || !renderer._dom) {\n      // pre glimmer2\n      let container = _application.getOwner ? (0, _application.getOwner)(context) : context.container;\n      let documentService = container.lookup('service:-document');\n      if (documentService) {\n        return documentService;\n      }\n      renderer = container.lookup('renderer:-dom');\n    }\n    if (renderer._dom && renderer._dom.document) {\n      // pre Ember 2.6\n      return renderer._dom.document;\n    }\n    return null;\n  }\n});","define(\"ember-intl/-private/utils/hydrate\", [\"exports\", \"ember-intl/translations\"], function (_exports, _translations) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = hydrate;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/translations\"eaimeta@70e063a35619d71f\n  /**\n   * @private\n   * @hide\n   */\n  function hydrate(service) {\n    _translations.default.forEach(([locale, translations]) => {\n      service.addTranslations(locale, translations);\n    });\n  }\n});","define(\"ember-intl/-private/utils/is-array-equal\", [\"exports\", \"@ember/array\"], function (_exports, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isArrayEqual;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\"eaimeta@70e063a35619d71f\n  /**\n   * @private\n   * @hide\n   */\n  function isArrayEqual(a, b) {\n    if (!(0, _array.isArray)(a) || !(0, _array.isArray)(b)) {\n      return false;\n    }\n    if (a === b) {\n      return true;\n    }\n    return a.toString() === b.toString();\n  }\n});","define(\"ember-intl/-private/utils/missing-message\", [\"exports\", \"@ember/debug\", \"@ember/utils\"], function (_exports, _debug, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = missingMessage;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  /**\n   * @private\n   * @hide\n   */\n  function missingMessage(key, locales) {\n    if ((0, _utils.isEmpty)(locales)) {\n      (true && (0, _debug.warn)(`[ember-intl] no locale has been set!  See: https://ember-intl.github.io/ember-intl/docs/quickstart#4-configure-ember-intl`, false, {\n        id: 'ember-intl-no-locale-set'\n      }));\n      return `No locale defined.  Unable to resolve translation: \"${key}\"`;\n    }\n    const localeNames = locales.join(', ');\n    (true && (0, _debug.warn)(`[ember-intl] translation: \"${key}\" on locale: \"${localeNames}\" was not found.`, false, {\n      id: 'ember-intl-missing-translation'\n    }));\n    return `Missing translation \"${key}\" for locale \"${localeNames}\"`;\n  }\n});","define(\"ember-intl/-private/utils/normalize-locale\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = normalizeLocale;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * @private\n   * @hide\n   */\n  function normalizeLocale(localeName) {\n    if (typeof localeName === 'string') {\n      return localeName.replace(/_/g, '-').toLowerCase();\n    }\n  }\n});","define(\"ember-intl/-private/utils/parse\", [\"exports\", \"@formatjs/icu-messageformat-parser\"], function (_exports, _icuMessageformatParser) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = parse;\n  0; //eaimeta@70e063a35619d71f0,\"@formatjs/icu-messageformat-parser\"eaimeta@70e063a35619d71f\n  /**\n   * @private\n   * @hide\n   */\n  function parse(string) {\n    // ! Sync with `lib/parse-options.js`\n    return (0, _icuMessageformatParser.parse)(string, {\n      ignoreTag: true\n    });\n  }\n});","define(\"ember-intl/helpers/-format-base\", [\"exports\", \"@ember/application\", \"@ember/component/helper\", \"@ember/utils\"], function (_exports, _application, _helper, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\",0,\"@ember/component/helper\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); } /**\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyright 2015, Yahoo! Inc.\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n                                                                                                                                                                                                                                                                                                                                                                                             */\n  /**\n   * @private\n   * @hide\n   */\n  class AbstractHelper extends _helper.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"intl\", null);\n      _defineProperty(this, \"unsubscribeLocaleChanged\", null);\n      if (this.constructor === AbstractHelper) {\n        throw new Error('FormatHelper is an abstract class, can not be instantiated directly.');\n      }\n      this.intl = (0, _application.getOwner)(this).lookup('service:intl');\n      this.unsubscribeLocaleChanged = this.intl.onLocaleChanged(this.recompute, this);\n    }\n    format() {\n      throw new Error('not implemented');\n    }\n    compute([value, positionalOptions], namedOptions) {\n      const options = positionalOptions ? Object.assign({}, positionalOptions, namedOptions) : namedOptions;\n      if ((0, _utils.isEmpty)(value)) {\n        if (options.allowEmpty ?? this.allowEmpty) {\n          return;\n        }\n        if (typeof value === 'undefined') {\n          throw new Error(`${this} helper requires value attribute.`);\n        }\n      }\n      return this.format(value, options);\n    }\n    willDestroy() {\n      super.willDestroy();\n      this.unsubscribeLocaleChanged();\n    }\n  }\n  _exports.default = AbstractHelper;\n});","define(\"ember-intl/helpers/format-date\", [\"exports\", \"ember-intl/helpers/-format-base\"], function (_exports, _formatBase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/-format-base\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); } /**\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyright 2015, Yahoo! Inc.\n                                                                                                                                                                                                                                                                                                                                                                                             * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n                                                                                                                                                                                                                                                                                                                                                                                             */\n  class FormatDateHelper extends _formatBase.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"allowEmpty\", true);\n    }\n    format(value, options) {\n      return this.intl.formatDate(value, options);\n    }\n  }\n  _exports.default = FormatDateHelper;\n});","define(\"ember-intl/helpers/format-list\", [\"exports\", \"ember-intl/helpers/-format-base\"], function (_exports, _formatBase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/-format-base\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n  class FormatListHelper extends _formatBase.default {\n    format(value, options) {\n      return this.intl.formatList(value, options);\n    }\n  }\n  _exports.default = FormatListHelper;\n});","define(\"ember-intl/helpers/format-message\", [\"exports\", \"ember-intl/helpers/-format-base\"], function (_exports, _formatBase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/-format-base\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n  class FormatMessageHelper extends _formatBase.default {\n    format(value, options) {\n      return this.intl.formatMessage(value, options);\n    }\n  }\n  _exports.default = FormatMessageHelper;\n});","define(\"ember-intl/helpers/format-number\", [\"exports\", \"ember-intl/helpers/-format-base\"], function (_exports, _formatBase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/-format-base\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n  class FormatNumberHelper extends _formatBase.default {\n    format(value, options) {\n      return this.intl.formatNumber(value, options);\n    }\n  }\n  _exports.default = FormatNumberHelper;\n});","define(\"ember-intl/helpers/format-relative\", [\"exports\", \"ember-intl/helpers/-format-base\"], function (_exports, _formatBase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/-format-base\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n  class FormatRelativeHelper extends _formatBase.default {\n    format(params, hash) {\n      return this.intl.formatRelative(params, hash);\n    }\n  }\n  _exports.default = FormatRelativeHelper;\n});","define(\"ember-intl/helpers/format-time\", [\"exports\", \"ember-intl/helpers/-format-base\"], function (_exports, _formatBase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/-format-base\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n  class FormatTimeHelper extends _formatBase.default {\n    format(value, options) {\n      return this.intl.formatTime(value, options);\n    }\n  }\n  _exports.default = FormatTimeHelper;\n});","define(\"ember-intl/helpers/t\", [\"exports\", \"ember-intl/helpers/-format-base\"], function (_exports, _formatBase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/-format-base\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n  class THelper extends _formatBase.default {\n    format(key, options) {\n      return this.intl.t(key, options);\n    }\n  }\n  _exports.default = THelper;\n});","define(\"ember-intl/index\", [\"exports\", \"ember-intl/macros\", \"ember-intl/services/intl\"], function (_exports, _macros, _intl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  var _exportNames = {\n    IntlService: true\n  };\n  Object.defineProperty(_exports, \"IntlService\", {\n    enumerable: true,\n    get: function () {\n      return _intl.default;\n    }\n  });\n  Object.keys(_macros).forEach(function (key) {\n    if (key === \"default\" || key === \"__esModule\") return;\n    if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n    if (key in _exports && _exports[key] === _macros[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _macros[key];\n      }\n    });\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/macros\",0,\"ember-intl/services/intl\"eaimeta@70e063a35619d71f\n});","define(\"ember-intl/macros/index\", [\"exports\", \"ember-intl/macros/intl\", \"ember-intl/macros/t\"], function (_exports, _intl, _t) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"intl\", {\n    enumerable: true,\n    get: function () {\n      return _intl.default;\n    }\n  });\n  Object.defineProperty(_exports, \"raw\", {\n    enumerable: true,\n    get: function () {\n      return _t.raw;\n    }\n  });\n  Object.defineProperty(_exports, \"t\", {\n    enumerable: true,\n    get: function () {\n      return _t.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/macros/intl\",0,\"ember-intl/macros/t\"eaimeta@70e063a35619d71f\n});","define(\"ember-intl/macros/intl\", [\"exports\", \"@ember/application\", \"@ember/object\"], function (_exports, _application, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.__intlInjectionName = void 0;\n  _exports.default = intl;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  /**\n   * @private\n   * @hide\n   */\n  const __intlInjectionName = _exports.__intlInjectionName = `intl-${Date.now().toString(36)}`;\n  function intl(...dependentKeysAndGetterFn) {\n    const getterFn = dependentKeysAndGetterFn.pop();\n    const dependentKeys = dependentKeysAndGetterFn;\n    return (0, _object.computed)(`${__intlInjectionName}.locale`, ...dependentKeys, function (propertyKey) {\n      if (!this[__intlInjectionName]) {\n        (0, _object.defineProperty)(this, __intlInjectionName, {\n          // @ts-expect-error: https://github.com/typed-ember/ember-cli-typescript/issues/1471\n          value: (0, _application.getOwner)(this).lookup('service:intl'),\n          enumerable: false\n        });\n      }\n      const intl = this[__intlInjectionName];\n      return getterFn.call(this, intl, propertyKey, this);\n    });\n  }\n});","define(\"ember-intl/macros/t\", [\"exports\", \"@ember/object\", \"ember-intl/-private/utils/empty-object\", \"ember-intl/macros/intl\"], function (_exports, _object, _emptyObject, _intl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = createTranslatedComputedProperty;\n  _exports.raw = raw;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"ember-intl/-private/utils/empty-object\",0,\"ember-intl/macros/intl\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); } // eslint-disable-next-line ember/no-computed-properties-in-native-classes\n  function partitionDynamicValuesAndStaticValues(options) {\n    const dynamicValues = new _emptyObject.default();\n    const staticValues = new _emptyObject.default();\n    Object.keys(options).forEach(key => {\n      const value = options[key];\n      if (value instanceof Raw) {\n        staticValues[key] = value.valueOf();\n      } else if (typeof value !== 'undefined') {\n        dynamicValues[key] = value;\n      }\n    });\n    return [dynamicValues, staticValues];\n  }\n  function mapPropertiesByHash(object, hash) {\n    const result = new _emptyObject.default();\n    Object.keys(hash).forEach(key => {\n      result[key] = (0, _object.get)(object, hash[key]);\n    });\n    return result;\n  }\n\n  /**\n   * This class is used to box primitive types and mark them as raw literals that\n   * should be used as is by the translation macro.\n   *\n   * This class is internal. Instead of using this class directly, use the `raw`\n   * utility function, that creates an instance of this class.\n   */\n  class Raw {\n    constructor(value) {\n      _defineProperty(this, \"_value\", void 0);\n      this._value = value;\n    }\n    valueOf() {\n      return this._value;\n    }\n    toString() {\n      return String(this._value);\n    }\n  }\n\n  /**\n   * Use this utility function to mark a value as a raw literal.\n   *\n   * @param {*} value The value to mark as a raw literal.\n   * @return The same value, but boxed in the `Raw` class so that the consuming\n   *  macro understands that this value should be used as is.\n   */\n  function raw(value) {\n    return new Raw(value);\n  }\n  function createTranslatedComputedProperty(translationKey, options) {\n    const hash = options || new _emptyObject.default();\n    const [dynamicValues, staticValues] = partitionDynamicValuesAndStaticValues(hash);\n    const dependentKeys = Object.values(dynamicValues);\n\n    // @ts-expect-error TS2556: Can't deal with leading rest arguments\n    return (0, _intl.default)(...dependentKeys, (intl, propertyKey, ctx) => intl.t(translationKey, {\n      ...staticValues,\n      ...mapPropertiesByHash(ctx, dynamicValues)\n    }));\n  }\n});","define(\"ember-intl/services/intl\", [\"exports\", \"@ember/application\", \"@ember/array\", \"@ember/debug\", \"@ember/object/compat\", \"@ember/runloop\", \"@ember/service\", \"@formatjs/intl\", \"@glimmer/tracking\", \"eventemitter3\", \"ember-intl/-private/formatters\", \"ember-intl/-private/utils/flatten\", \"ember-intl/-private/utils/get-dom\", \"ember-intl/-private/utils/hydrate\", \"ember-intl/-private/utils/is-array-equal\", \"ember-intl/-private/utils/normalize-locale\"], function (_exports, _application, _array, _debug, _compat, _runloop, _service, _intl, _tracking, _eventemitter, _formatters, _flatten, _getDom, _hydrate, _isArrayEqual, _normalizeLocale) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\",0,\"@ember/array\",0,\"@ember/debug\",0,\"@ember/object/compat\",0,\"@ember/runloop\",0,\"@ember/service\",0,\"@formatjs/intl\",0,\"@glimmer/tracking\",0,\"eventemitter3\",0,\"ember-intl/-private/formatters\",0,\"ember-intl/-private/utils/flatten\",0,\"ember-intl/-private/utils/get-dom\",0,\"ember-intl/-private/utils/hydrate\",0,\"ember-intl/-private/utils/is-array-equal\",0,\"ember-intl/-private/utils/normalize-locale\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  let IntlService = _exports.default = (_class = class IntlService extends _service.default {\n    /**\n     * Returns an array of registered locale names\n     *\n     */\n    get locales() {\n      return Object.keys(this._intls);\n    }\n\n    /** @public **/\n    set locale(localeName) {\n      const proposed = (0, _array.makeArray)(localeName).map(_normalizeLocale.default);\n      if (!(0, _isArrayEqual.default)(proposed, this._locale)) {\n        this._locale = proposed;\n        (0, _runloop.cancel)(this._timer);\n        this._timer = (0, _runloop.next)(() => {\n          this._ee.emit('localeChanged');\n          this._updateDocumentLanguage(this._locale);\n        });\n      }\n    }\n    get locale() {\n      return this._locale;\n    }\n\n    /**\n     * Returns the first locale of the currently active locales\n     *\n     */\n    get primaryLocale() {\n      return this.locale[0];\n    }\n\n    /** @public **/\n\n    /** @public **/\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"formatRelative\", createFormatterProxy('relative'));\n      /** @public **/\n      _defineProperty(this, \"formatMessage\", createFormatterProxy('message'));\n      /** @public **/\n      _defineProperty(this, \"formatNumber\", createFormatterProxy('number'));\n      /** @public **/\n      _defineProperty(this, \"formatTime\", createFormatterProxy('time'));\n      /** @public **/\n      _defineProperty(this, \"formatDate\", createFormatterProxy('date'));\n      /** @public **/\n      _defineProperty(this, \"formatList\", createFormatterProxy('list'));\n      /** @private **/\n      _initializerDefineProperty(this, \"_locale\", _descriptor, this);\n      /** @private **/\n      _defineProperty(this, \"_timer\", null);\n      /** @private **/\n      _defineProperty(this, \"_formats\", null);\n      /** @private **/\n      _defineProperty(this, \"_formatters\", null);\n      /** @private */\n      _initializerDefineProperty(this, \"_intls\", _descriptor2, this);\n      /**\n       * @private\n       * @type {EventEmitter}\n       */\n      _defineProperty(this, \"_ee\", null);\n      _defineProperty(this, \"_cache\", (0, _intl.createIntlCache)());\n      const initialLocale = this.locale || ['en-us'];\n      this._intls = {};\n      this._ee = new _eventemitter.default();\n      this.setLocale(initialLocale);\n      this._owner = (0, _application.getOwner)(this);\n      this._formatters = this._createFormatters();\n      if (!this._formats) {\n        this._formats = this._owner.resolveRegistration('formats:main') || {};\n      }\n      this.onIntlError = this.onIntlError.bind(this);\n      this.getIntl = this.getIntl.bind(this);\n      this.getOrCreateIntl = this.getOrCreateIntl.bind(this);\n      (0, _hydrate.default)(this);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      (0, _runloop.cancel)(this._timer);\n    }\n    onIntlError(err) {\n      if (err.code !== _intl.IntlErrorCode.MISSING_TRANSLATION) {\n        throw err;\n      }\n    }\n\n    /** @private **/\n    onError({\n      /* kind, */error\n    }) {\n      throw error;\n    }\n\n    /** @public **/\n    lookup(key, localeName, options = {}) {\n      const localeNames = this._localeWithDefault(localeName);\n      let translation;\n      for (let i = 0; i < localeNames.length; i++) {\n        const messages = this.translationsFor(localeNames[i]);\n        if (!messages) {\n          continue;\n        }\n        translation = messages[key];\n        if (translation !== undefined) {\n          break;\n        }\n      }\n      if (translation === undefined && options.resilient !== true) {\n        const missingMessage = this._owner.resolveRegistration('util:intl/missing-message');\n        return missingMessage.call(this, key, localeNames, options);\n      }\n      return translation;\n    }\n\n    /**\n     * @private\n     */\n    getIntl(locale) {\n      const resolvedLocale = Array.isArray(locale) ? locale[0] : locale;\n      return this._intls[resolvedLocale];\n    }\n    getOrCreateIntl(locale, messages) {\n      const resolvedLocale = Array.isArray(locale) ? locale[0] : locale;\n      const existingIntl = this._intls[resolvedLocale];\n      if (!existingIntl) {\n        this._intls = {\n          ...this._intls,\n          [resolvedLocale]: this.createIntl(resolvedLocale, messages)\n        };\n      } else if (messages) {\n        this._intls = {\n          ...this._intls,\n          [resolvedLocale]: this.createIntl(resolvedLocale, {\n            ...(existingIntl.messages || {}),\n            ...messages\n          })\n        };\n      }\n      return this._intls[resolvedLocale];\n    }\n\n    /**\n     * @private\n     * @param {String} locale Locale of intl obj to create\n     */\n    createIntl(locale, messages = {}) {\n      const resolvedLocale = Array.isArray(locale) ? locale[0] : locale;\n      return (0, _intl.createIntl)({\n        locale: resolvedLocale,\n        defaultLocale: resolvedLocale,\n        formats: this._formats,\n        defaultFormats: this._formats,\n        onError: this.onIntlError,\n        messages\n      }, this._cache);\n    }\n    validateKeys(keys) {\n      return keys.forEach(key => {\n        (true && !(typeof key === 'string') && (0, _debug.assert)(`[ember-intl] expected translation key \"${key}\" to be of type String but received: \"${typeof key}\"`, typeof key === 'string'));\n      });\n    }\n\n    /** @public **/\n    t(key, options = {}) {\n      let keys = [key];\n      if (options.default) {\n        if (Array.isArray(options.default)) {\n          keys = [...keys, ...options.default];\n        } else if (typeof options.default === 'string') {\n          keys = [...keys, options.default];\n        }\n      }\n      this.validateKeys(keys);\n      for (let index = 0; index < keys.length; index++) {\n        const key = keys[index];\n        const message = this.lookup(key, options.locale, {\n          ...options,\n          // Note: last iteration will throw with the last key that was missing\n          // in the future maybe the thrown error should include all the keys to help debugging\n          resilient: keys.length - 1 !== index\n        });\n\n        // @formatjs/intl consider empty message to be an error\n        if (message === '' || typeof message === 'number') {\n          return message;\n        }\n        if (message) {\n          return this.formatMessage({\n            id: key,\n            defaultMessage: message\n          }, options);\n        }\n      }\n    }\n\n    /** @public **/\n    exists(key, localeName) {\n      const localeNames = this._localeWithDefault(localeName);\n      (true && !(Array.isArray(localeNames) && localeNames.length) && (0, _debug.assert)(`[ember-intl] locale is unset, cannot lookup '${key}'`, Array.isArray(localeNames) && localeNames.length));\n      return localeNames.some(localeName => key in (this.getIntl(localeName)?.messages || {}));\n    }\n\n    /** @public */\n    setLocale(locale) {\n      (true && !(locale) && (0, _debug.assert)(`[ember-intl] no locale has been set!  See: https://ember-intl.github.io/ember-intl/docs/quickstart#4-configure-ember-intl`, locale));\n      this.locale = locale;\n      this.getOrCreateIntl(locale);\n    }\n\n    /** @public **/\n    addTranslations(localeName, payload) {\n      const locale = (0, _normalizeLocale.default)(localeName);\n      this.getOrCreateIntl(locale, (0, _flatten.default)(payload));\n    }\n\n    /** @public **/\n    translationsFor(localeName) {\n      const locale = (0, _normalizeLocale.default)(localeName);\n      return this.getIntl(locale)?.messages;\n    }\n\n    /** @private **/\n    _localeWithDefault(localeName) {\n      if (!localeName) {\n        return this._locale || [];\n      }\n      if (typeof localeName === 'string') {\n        return (0, _array.makeArray)(localeName).map(_normalizeLocale.default);\n      }\n      if (Array.isArray(localeName)) {\n        return localeName.map(_normalizeLocale.default);\n      }\n    }\n\n    /** @private **/\n    _updateDocumentLanguage(locales) {\n      const dom = (0, _getDom.default)(this);\n      if (dom) {\n        const [primaryLocale] = locales;\n        const html = dom.documentElement;\n        html.setAttribute('lang', primaryLocale);\n      }\n    }\n\n    /** @private */\n    _createFormatters() {\n      return {\n        message: new _formatters.FormatMessage(),\n        relative: new _formatters.FormatRelative(),\n        number: new _formatters.FormatNumber(),\n        time: new _formatters.FormatTime(),\n        date: new _formatters.FormatDate(),\n        list: new _formatters.FormatList()\n      };\n    }\n    /**\n     * @private\n     * @param {Function} fn\n     * @returns {Function} unsubscribed from localeChanged\n     */\n    onLocaleChanged(...args) {\n      this._ee.on('localeChanged', ...args);\n      return () => {\n        this._ee.off('localeChanged', ...args);\n      };\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"locale\", [_compat.dependentKeyCompat], Object.getOwnPropertyDescriptor(_class.prototype, \"locale\"), _class.prototype), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_locale\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_intls\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  })), _class);\n  function createFormatterProxy(name) {\n    return function serviceFormatterProxy(value, formatOptions) {\n      let locale;\n      let intl;\n      if (formatOptions && formatOptions.locale) {\n        locale = this._localeWithDefault(formatOptions.locale);\n        // Cannot use getOrCreateIntl since it triggers a re-render which\n        // might cause infinite loop\n        // This is also a case we're not optimizing for so let it take\n        // the slow path\n        intl = this.createIntl(locale);\n      } else {\n        locale = this.locale;\n        intl = this.getIntl(locale);\n      }\n      return this._formatters[name].format(intl, value, formatOptions);\n    };\n  }\n});","define(\"ember-intl/template-registry\", [], function () {\n  \"use strict\";\n\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n});","define(\"ember-intl/translations\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = [[\"en\", {\n    \"0sharableCredits\": \"0 sharable credits\",\n    \"SBOM\": \"SBOM\",\n    \"acceptInvite\": \"Signup & Accept Invite\",\n    \"acceptTerms\": \"I accept the terms and conditions\",\n    \"accessPermissions\": \"Access permissions\",\n    \"accessRequested\": \"Removal for the restriction has been requested, please wait for our team to revert\",\n    \"account\": \"Account\",\n    \"accountOverview\": \"Account Overview\",\n    \"accountSettings\": \"Account Settings\",\n    \"acsURL\": \"ACS URL\",\n    \"action\": \"Action\",\n    \"actions\": \"ACTIONS\",\n    \"activateUser\": \"Activate User\",\n    \"activateUserDesc\": \"In order to activate the user, click on the button below.\",\n    \"activated\": \"Activated\",\n    \"activationSuccess\": \"Your account has been activated, you will be redirected to login page.\",\n    \"active\": \"active\",\n    \"activeCapital\": \"Active\",\n    \"activeSubscription\": \"Active Subscription\",\n    \"add\": \"Add\",\n    \"addCollaborator\": \"Add Collaborator\",\n    \"addDomain\": \"Add Domain\",\n    \"addMember\": \"Add Member\",\n    \"addMembers\": \"Add Members\",\n    \"addName\": \"Add Name\",\n    \"addNamespace\": \"Add Namespace\",\n    \"addNewNamespace\": \"You can add a new namespace below\",\n    \"addNewTeam\": \"Add new team\",\n    \"addOrgName\": \"Add Organization Name\",\n    \"addProject\": \"Add Project\",\n    \"addSSOMembers\": \"Add SSO members\",\n    \"addTags\": \"Add tags\",\n    \"addTeam\": \"Add Team\",\n    \"addTeamMember\": \"Add Team Member\",\n    \"addTeamMemberDesc\": \"Add Users to this team\",\n    \"addTeamProjectDesc\": \"Add Projects to this team\",\n    \"addToTeams\": \"Add to Teams\",\n    \"addToTeamsDesc\": \"Here you can add a particular user to the team\",\n    \"addUser\": \"Add User\",\n    \"addUsers\": \"Add Users\",\n    \"addedNamespaces\": \"Added Namespaces\",\n    \"addedOn\": \"Added on\",\n    \"addedSSOMembersToOrg\": \"Created members from SSO emails\",\n    \"addedSuccessfully\": \"added successfully\",\n    \"admin\": \"Admin\",\n    \"adminPermissionProject\": \"Admin permission is required to connect project to JIRA\",\n    \"all\": \"All\",\n    \"allFutureAnalyses\": \"All Future Analyses\",\n    \"allPlatforms\": \"All Platforms\",\n    \"allProjects\": \"All Projects\",\n    \"allScans\": \"All Scans\",\n    \"allUploads\": \"All Uploads\",\n    \"allowEdit\": \"Allow Edit\",\n    \"alreadyHaveAccount\": \"Already have an account?\",\n    \"amountPaid\": \"AMOUNT PAID\",\n    \"analysisSettings\": \"Analysis Settings\",\n    \"analytics\": \"Analytics\",\n    \"analyzing\": \"Analyzing\",\n    \"anyDevice\": \"Any Device\",\n    \"anyVersion\": \"Any Version\",\n    \"api\": \"API\",\n    \"apiKey\": \"API Key\",\n    \"apiScan\": \"API Scan\",\n    \"apiURLFilter\": \"API URL Filter\",\n    \"apis\": \"APIs\",\n    \"app\": \"app\",\n    \"appCenterPipeline\": \"App Center Build\",\n    \"appMonitoring\": \"Store Monitoring\",\n    \"appMonitoringDescription\": \"Once enabled, our platform will monitor for any unscanned versions of your applications on Google Play Store or Apple App Store. If any such applications are found, the list below will be updated automatically at 24 hour intervals.\",\n    \"appMonitoringHeading\": \"Store Monitoring Setting\",\n    \"appMonitoringMessages\": {\n      \"emptyResults\": {\n        \"body\": \"We are looking for unscanned versions of your applications on Playstore or Appstore. This data will be available to you in some time.\",\n        \"header\": \"Store Monitoring is Initiated\"\n      },\n      \"monitoringDetailsEmpty\": {\n        \"body\": \"This application could not be located on the Play Store or App Store.\"\n      },\n      \"monitoringHistoryEmpty\": {\n        \"body\": \"No history information was found for this application.\"\n      },\n      \"noOrgProjects\": {\n        \"body\": \"Upload a Project and then Enable the Store Monitoring Setting to initiate the monitoring of your applications in Playstore or Appstore.\",\n        \"header\": \"No Projects Uploaded\"\n      },\n      \"pendingStateLoadingText\": \"Store monitoring has been initiated for this application for the first time. Kindly visit this page after 24hrs to check the results\"\n    },\n    \"appMonitoringModule\": {\n      \"actionsInfo\": \"Initiate Upload button will be available in instances where an Unscanned version of the app was detected.\",\n      \"appStatus\": \"App status\",\n      \"applicationName\": \"Application Name\",\n      \"checkDetails\": \"Check Details\",\n      \"countryCode\": \"Country Code\",\n      \"foundOn\": \"Found On\",\n      \"initiateScan\": \"Initiate Scan\",\n      \"initiateUpload\": \"Initiate Upload\",\n      \"lastMonitoredOn\": \"Last monitored on\",\n      \"lastUploadAttemptText\": \"Upload was last attempted on\",\n      \"latestScannedVersion\": \"Latest Scanned Version\",\n      \"monitoringAction\": \"Monitoring Action\",\n      \"monitoringDetails\": \"Monitoring Details\",\n      \"monitoringHistory\": \"Monitoring History\",\n      \"monitoringStatus\": \"Monitoring Status\",\n      \"multiGeoToolTip\": {\n        \"bodyText\": \"Click on this row to get more details.\",\n        \"headerText\": \"Multiple versions detected.\"\n      },\n      \"retryUpload\": \"Retry Upload\",\n      \"scannedOnAppknox\": \"Scanned on Appknox\",\n      \"storeVersion\": \"Store Version\",\n      \"syncInProgress\": \"Sync in progress\"\n    },\n    \"appOrS\": \"app(s)\",\n    \"appiumFileUploadedSuccessfully\": \"File Uploaded Successfully\",\n    \"appiumScheduledAutomation\": \"Schedule Automation\",\n    \"appiumScheduledAutomationSuccessOff\": \"Scheduled dynamic scan automation turned OFF\",\n    \"appiumScheduledAutomationSuccessOn\": \"Scheduled dynamic scan automation turned ON\",\n    \"appiumScriptInvalid\": \"Invalid script file. Please upload a valid Appium project\",\n    \"appiumScripts\": \"Appium scripts\",\n    \"appiumScriptsDescription\": \"As a part of our upcoming automated dynamic scan feature, we are currently supporting <strong>scheduled dynamic scans</strong> option using Appium scripts. Upload your app's Appium test scripts here as a zip file, dynamic scans would be automatically scheduled for all your future app uploads in this project.\",\n    \"appiumScriptsSchedNote\": \"Scheduled dynamic scans may take upto 24 hours to be completed.\",\n    \"appleAppStore\": \"Apple App Store\",\n    \"application\": \"Application\",\n    \"approvalRequest\": \"Approval Request\",\n    \"approvalStatus\": \"Approval\",\n    \"approve\": \"Approve\",\n    \"apps\": \" Apps\",\n    \"assignTeam\": \"Assign Team\",\n    \"asvs\": \"ASVS\",\n    \"asvsExpansion\": \"Application Security Verification Standard\",\n    \"attachments\": \"Attachments\",\n    \"author\": \"Author\",\n    \"automated\": \"Automated\",\n    \"available\": \"available\",\n    \"availableCredits\": \"Available Scan Credits\",\n    \"azurePipeline\": \"Azure Pipeline\",\n    \"back\": \"Back\",\n    \"backToTeams\": \"Back to teams\",\n    \"beta\": \"Beta\",\n    \"billing\": \"Billing\",\n    \"billingPeriod\": \"Billing Period\",\n    \"bitbucketPipeline\": \"Bitbucket Pipeline\",\n    \"bitriseWorkflow\": \"Bitrise Workflow\",\n    \"browseFiles\": \"browse files\",\n    \"businessImplication\": \"Business Implication\",\n    \"by\": \"by\",\n    \"cancel\": \"Cancel\",\n    \"cancelSubsciption\": \"Cancel Subscription\",\n    \"capturedApiEmptyDesc\": \"1. Make sure you go through all views of the app during the dynamic scan<br>2. Check if correct API URL filters are set<br>3. Ensure SSL pinning is not enabled in app\",\n    \"capturedApiEmptyTitle\": \"No APIs captured during the last dynamic scan. Please try again\",\n    \"capturedApiSaveSuccessMsg\": \"Successfully saved the captured api status\",\n    \"capturedApiTitle\": \"Captured APIs\",\n    \"certificate\": \"Certificate\",\n    \"changeDevice\": \"Change Device\",\n    \"changeMFAMethod\": \"Change Multi Factor Authentication Method\",\n    \"changePassword\": \"Change Password\",\n    \"changeRole\": \"Change Role\",\n    \"changedMandatoryMFA\": \"Changed MFA setting\",\n    \"chatSupport\": \"Chat Support\",\n    \"checking\": \"Checking\",\n    \"chipStatus\": {\n      \"active\": \"ACTIVE\",\n      \"completed\": \"COMPLETED\",\n      \"failed\": \"FAILED\",\n      \"inProgress\": \"IN PROGRESS\",\n      \"inactive\": \"INACTIVE\",\n      \"neverInitiated\": \"NEVER INITIATED\",\n      \"notFound\": \"NOT FOUND\",\n      \"notScanned\": \"NOT SCANNED\",\n      \"outdated\": \"OUTDATED\",\n      \"pending\": \"PENDING\",\n      \"secure\": \"SECURE\",\n      \"vulnerable\": \"VULNERABLE\"\n    },\n    \"chooseAFile\": \"Choose a file to compare\",\n    \"circleCIPipeline\": \"Circle CI Pipeline\",\n    \"clickHere\": \"Click here\",\n    \"clickOnDynamicScan\": \"Click on Start Dynamic Scan\",\n    \"clickingHere\": \"clicking here\",\n    \"client\": \"Client\",\n    \"clients\": \"Clients\",\n    \"close\": \"Close\",\n    \"closeModal\": \"Exit Full Screen\",\n    \"collaboratorRemoved\": \"Removed Collaborator\",\n    \"collaborators\": \"Collaborators\",\n    \"collapse\": \"Collapse\",\n    \"comingSoon\": \"Coming soon\",\n    \"comment\": \"Comment\",\n    \"comments\": \"Comments\",\n    \"company\": \"Company\",\n    \"companyName\": \"Company Name\",\n    \"compare\": \"Compare\",\n    \"completed\": \"Completed\",\n    \"complianceInsights\": \"Compliance Insights\",\n    \"compliantSolution\": \"Compliant Solution\",\n    \"confirm\": \"Confirm\",\n    \"confirmBox\": {\n      \"cancelSubsciption\": \"Are you sure you want to cancel Subscription?\",\n      \"deleteInvitation\": \"Are you sure you want to delete this invitation?\",\n      \"rejectNamespace\": \"Are you sure you want to delete this namespace?\",\n      \"removeJIRA\": \"Are you sure you want to remove JIRA Project?\",\n      \"removeProject\": \"Are you sure you want to remove Github Project?\",\n      \"removeProjectCollaborator\": \"Are you sure you want to remove this collaborator?\",\n      \"removeProjectTeam\": \"Are you sure you want to remove this team from project?\",\n      \"removeTeamProject\": \"Are you sure you want to remove this project from team?\",\n      \"removeURL\": \"Are you sure you want to remove from url filters?\",\n      \"removeUser\": \"Are you sure you want to remove this user from team?\",\n      \"removeUserRole\": \"Are you sure you want to remove this role?\",\n      \"resendInvitation\": \"Are you sure you want to resend this invitation?\",\n      \"revokeGithub\": \"Are you sure you want to revoke Github Integration?\",\n      \"revokeJira\": \"Are you sure you want to revoke JIRA Integration?\",\n      \"revokePersonalToken\": \"Are you sure you want to delete this personal access token?\"\n    },\n    \"confirmPassword\": \"Confirm Password\",\n    \"confirmTransfer\": \"Confirm Transfer\",\n    \"confirmation\": \"Confirmation\",\n    \"contactUs\": \"Contact Us\",\n    \"container\": \"Container\",\n    \"continue\": \"Continue\",\n    \"copy\": \"Copy\",\n    \"countries\": \"Countries\",\n    \"country\": \"Country\",\n    \"createAccount\": \"Create Account\",\n    \"createTeam\": \"Create Team\",\n    \"createTeamInputLabel\": \"Here you can enter the team name\",\n    \"created\": \"Created\",\n    \"createdOn\": \"Created on\",\n    \"credentialsNotUpdated\": \"Something went wrong when trying to update credentials\",\n    \"credentialsUpdated\": \"Credentials Successfully Updated\",\n    \"creditAddPurchase\": \"Please contact support for purchasing scan credits\",\n    \"creditTransfer\": \"Credit Transfer\",\n    \"creditTransferError\": \"Couldn't transfer credits, please try again later!\",\n    \"creditTransferNotSupported\": \"Scan credit sharing is currently not supported in your payment plan (per-app). Please contact support for transferring credits to clients.\",\n    \"creditTransferSuccess\": \"Credits transferred to the client successfully\",\n    \"critical\": \"Critical\",\n    \"currentCredits\": \"Current Credits\",\n    \"currentFileOnly\": \"Current File Only\",\n    \"currentPassword\": \"Current Password\",\n    \"currentPlan\": \"Current Plan\",\n    \"cvss\": \"CVSS\",\n    \"cvssExpansion\": \"Common Vulnerability Scoring System\",\n    \"cvssMetrics\": \"CVSS Metrics\",\n    \"cvssV3\": \"CVSSv3\",\n    \"cwe\": \"CWE\",\n    \"cweExpansion\": \"Common Weakness Enumeration\",\n    \"dastAutomation\": {\n      \"addScenario\": \"Add Scenario\",\n      \"automationScenarios\": \"Automation Scenarios\",\n      \"clickToEdit\": \"Click to edit value\",\n      \"dastAutomationScenario\": \"DAST Automation Scenario\",\n      \"deleteDefaultScenarioInfo\": \"You cannot delete a default scenario.\",\n      \"enterScenarioName\": \"Enter scenario name\",\n      \"enterType\": \"Enter Type\",\n      \"inputType\": \"Input Type\",\n      \"inputTypeColumnHeaderInfo\": \"<strong>Example values for Input Type</strong> are <br /> Username, Password or Email ID etc...\",\n      \"inputValue\": \"Input Value\",\n      \"maskParameterText\": \"Marking this value as secure will irreversibly mask the value. Are you sure you want to proceed?\",\n      \"noParamaterAvailable\": \"No input parameters exist for this scenario. Use the Input Type and Input Value fields above to create the parameters for this scenario.\",\n      \"noScenariosFound\": \"No scenarios found.\",\n      \"paramDeleteSuccess\": \"Parameter deleted successfully\",\n      \"paramEditSuccess\": \"Parameter edited successfully\",\n      \"paramTypeDupText\": \"<strong>Input type - \\\"{type}\\\"</strong> already exists. Kindly use a different input type.\",\n      \"parameterAdded\": \"Parameter added successfully\",\n      \"parameterDeleteConfirm\": \"Would you like to delete this config under <strong>Scenario - {scenarioName}?</strong>\",\n      \"scenarioAdded\": \"Scenario added\",\n      \"scenarioDeleteConfirm\": \"Would you like to delete <strong>Scenario - {scenarioName}?</strong>\",\n      \"scenarioDeleted\": \"Scenario - \\\"{scenarioName}\\\" deleted\",\n      \"scenarioListDesc\": \"  Create multiple scenarios and configure them with the necessary settings for utilization in the automation of Dynamic Application Security Testing (DAST)\",\n      \"scenarioStatusUpdated\": \"Scenario status updated successfully\",\n      \"statusColumnToggleInfo\": \"Use this toggle to Activate/Deactivate a scenario. Only Active scenarios will be used for executing DAST automation.\",\n      \"unmaskNotAllowed\": \"You cannot unmask a masked field value.\"\n    },\n    \"date\": \"DATE\",\n    \"dateCreated\": \"Date Created\",\n    \"dateUpdated\": \"Date Updated\",\n    \"day\": \"Day\",\n    \"deactivateUser\": \"Deactivate User\",\n    \"deactivateUserDesc\": \"In order to deactivate the user, click on the button below.\",\n    \"deactivated\": \"Deactivated\",\n    \"delete\": \"Delete\",\n    \"deleteDomain\": \"Delete Domain\",\n    \"deleteInvitation\": \"delete invitation\",\n    \"deleteTeam\": \"Delete Team\",\n    \"deletedInvitationOf\": \"Deleted invitation of\",\n    \"description\": \"Description\",\n    \"details\": \"Details\",\n    \"developer\": \"Developer\",\n    \"developerSettings\": \"Developer Settings\",\n    \"device\": \"Device\",\n    \"deviceBooting\": \"Booting\",\n    \"deviceCompleted\": \"Completed\",\n    \"deviceDownloading\": \"Downloading\",\n    \"deviceHooking\": \"Starting\",\n    \"deviceInQueue\": \"In Queue\",\n    \"deviceInstalling\": \"Installing\",\n    \"deviceIsReady\": \"The Device is ready to be connected\",\n    \"deviceLaunching\": \"Launching\",\n    \"deviceNotFound\": \"Hard time for us to find the device\",\n    \"devicePreferences\": \"Device Preferences\",\n    \"deviceSelected\": \"You have successfully selected the device\",\n    \"deviceShuttingDown\": \"Stopping\",\n    \"deviceType\": \"Device Type\",\n    \"devicefarm\": \"Devicefarm\",\n    \"disable\": \"Disable\",\n    \"disableMFA\": \"Disable MFA\",\n    \"disableMFADenied\": \"MFA can not be disabled for this user account since your organization has mandated MFA for all members.\",\n    \"disableThisIn\": \"You can disable this in\",\n    \"disabled\": \"Disabled\",\n    \"disconnect\": \"Disconnect\",\n    \"domainDeleted\": \"Domain Deleted\",\n    \"dontHaveAccount\": \"Don't have an account?\",\n    \"download\": \"Download\",\n    \"downloadClientsStatData\": \"Download Clients Statistics Data\",\n    \"downloadPrevReport\": \"Download Previous Report\",\n    \"downloadReport\": \"Download Report\",\n    \"downloadUrlNotFound\": \"Couldn't download the report!\",\n    \"dragDropFile\": \"Drag & drop file\",\n    \"dynScanAutoSchedNote\": \"Once you have created a scenario and added the relevant input parameters, turn on this toggle to schedule Automated Dynamic Scans. It may take up to 24hrs for the Automated Dynamic Scans to be completed.\",\n    \"dynamic\": \"Dynamic\",\n    \"dynamicScan\": \"Dynamic Scan\",\n    \"dynamicScanAutomation\": \"Dynamic Scan Automation\",\n    \"dynamicScanExtentionLimit\": \"Scan duration can be extended once 15 mins are remaining\",\n    \"dynamicScanStart\": \"Start Dynamic Scan\",\n    \"dynamicScanStop\": \"Stop Dynamic Scan\",\n    \"dynamicScanText\": \"Please refresh the page if the scan doesn't start in 1-2 mins\",\n    \"dynamicShutDown\": \"Shutdown Device\",\n    \"edit\": \"Edit\",\n    \"editAccess\": \"Edit Access\",\n    \"editAnalyses\": \"Edit Analyses\",\n    \"editAnalysis\": \"Edit Analysis\",\n    \"editAnalysisOverrideDescription\": \"You can override the severity of this issue here.\",\n    \"editName\": \"Edit Name\",\n    \"editProjectSettings\": \"Edit Project Settings\",\n    \"editTeamName\": \"Edit Team Name\",\n    \"editTeamNameInputLabel\": \"Here you can edit the team name\",\n    \"email\": \"Email\",\n    \"emailCode\": \"Enter the code from the email in the field below.\",\n    \"emailDomainRestriction\": \"Email Domain Restriction for Invitations\",\n    \"emailId\": \"Email ID\",\n    \"emailOTP\": \"We've sent a OTP code to your email.\",\n    \"emailOrUsername\": \"Email / Username\",\n    \"emailRestrictDesc\": \"Whitelist email domains which are allowed to be invited as organization users. If not set all domains will be allowed.\",\n    \"emptyEmailId\": \"Please enter the email id\",\n    \"emptyURL\": \"Please enter any url filter\",\n    \"emptyURLFilter\": \"Enter host name\",\n    \"enHTMLReport\": \"EN HTML Report\",\n    \"enable\": \"Enable\",\n    \"enableMFA\": \"Enable MFA\",\n    \"enableMandatoryMFADescription\": \"By enabling this you are mandating multi factor authentication for all users in this organization. Users who do not have MFA enabled in their user account will receive OTP via the registered email.\",\n    \"enableMandatoryMFARequirement\": \"For enabling mandatory MFA for organization, you need to have MFA enabled for your user account. Enable it from here:\",\n    \"enableMandatoryMFATitle\": \"Enable mandatory multi factor authentication\",\n    \"enableMandatoryMFAWarning\": \"This setting will affect login process of every user of this organization.\",\n    \"enabled\": \"Enabled\",\n    \"enfoceSSO\": \"Enforce SSO\",\n    \"enterNamespace\": \"Enter the namespace\",\n    \"enterOTP\": \"Enter the six digit OTP\",\n    \"enterRightTeamName\": \"Enter the right team name to delete it\",\n    \"enterRightUserName\": \"Enter the right username to delete it\",\n    \"enterTagName\": \"Enter Tag Name\",\n    \"enterTeamName\": \"Please enter the team name\",\n    \"enterTokenName\": \"Please enter the token name\",\n    \"enterValidPassword\": \"Please enter valid passwords!\",\n    \"enterValidURL\": \"Please enter a valid URL\",\n    \"entityID\": \"Entity ID\",\n    \"error\": \"Error\",\n    \"errorCouldNotLoadData\": \"Error: Could not load data\",\n    \"errorMessage\": \"Error message\",\n    \"errorWhileFetching\": \"Error while fetching signed url\",\n    \"errorWhileUploading\": \"Error while uploading file to presigned URL\",\n    \"errored\": \"Errored\",\n    \"excelReport\": \"Excel Report\",\n    \"expand\": \"Expand\",\n    \"experimentalFeature\": \"Experimental Feature\",\n    \"expired\": \"Expired \",\n    \"expiredOn\": \"Expired on\",\n    \"expires\": \"Expires\",\n    \"expiresOn\": \"Expires on\",\n    \"expiring\": \"Expiring \",\n    \"expiry\": \"Expiry\",\n    \"exportCSV\": \"Export CSV\",\n    \"exports\": \"Exports\",\n    \"failed\": \"Failed\",\n    \"failedGitHubProject\": \"Something went wrong in getting the integrated project.\",\n    \"falsePositive\": \"Is this a false positive? you can override this analysis here\",\n    \"fetchGitHubRepoFailed\": \"Something went wrong when trying to fetch repo list\",\n    \"fetchProjectFailed\": \"Something went wrong when trying to fetch projects list\",\n    \"file\": \"File\",\n    \"fileCleanup\": {\n      \"activeCount\": \"Files to keep active\",\n      \"autoCleanup\": \"Auto cleanup\",\n      \"description\": \"Enabling this will delete application binaries for files which are not in the <n> recent uploads per project. Files for which the deletion is processed will be marked as inactive. Files marked as inactive will not allow future scans to be performed on it.\",\n      \"lastActivity\": \"Last Activity\",\n      \"listTitle\": \"File Cleanup Activities\",\n      \"msg\": {\n        \"saveError\": \"Problem while updating cleanup preferen\",\n        \"saveSuccess\": \"Cleanup preference updated!\",\n        \"triggerError\": \"Problem with trigger\",\n        \"triggerSuccess\": \"Cleanup initiated!\"\n      },\n      \"noCleanup\": \"No Cleanups found\",\n      \"run\": \"Run CleanUp\",\n      \"status\": \"File cleaned status\",\n      \"title\": \"Automated file cleanup\",\n      \"viewList\": \"View All\"\n    },\n    \"fileCompare\": {\n      \"deselectFile\": \"Deselect one file to select this one\",\n      \"emptyVulnListMsg\": \"No {category} vulnerabilities found\",\n      \"fileSelection\": \"File Selection\",\n      \"nameOfTestCase\": \"Name of Test Case\",\n      \"newIssues\": \"New Issues\",\n      \"noDataAvailable\": \"No Data Available\",\n      \"noTagsMessage\": \"<em>No tags available.</em>\",\n      \"nonExistentTestCase\": \"Test case did not exist in this file\",\n      \"notFoundText\": \"One or both of the files being compared doesn't exist\",\n      \"recurringIssues\": \"Recurring Issues\",\n      \"resolvedIssues\": \"Resolved Issues\",\n      \"selectAFile\": \"Select a File\",\n      \"selectCompareFile\": \"Select One More File ID\",\n      \"summary1\": \"You are comparing file of ID\",\n      \"summary2\": \"with file of ID\",\n      \"untestedIssues\": \"Untested Issues\",\n      \"uploadMoreFileDescription\": \"As it is the first upload of this app, you will only be able to view Key Insights in the subsequent uploads.\"\n    },\n    \"fileCount\": \"File Count\",\n    \"fileDetails\": \"File Details\",\n    \"fileID\": \"File ID\",\n    \"fileInactive\": \"File Inactive\",\n    \"fileLevel\": \"File Level\",\n    \"fileList\": {\n      \"selectFilesHeaderText\": \"View all the files uploaded under this Project. Select any 2 files to compare the scan results.\"\n    },\n    \"fileOverview\": \"File Overview\",\n    \"fileReport\": {\n      \"detailedReport\": \"Detailed Report ({reportType})\",\n      \"generateReportCTAText\": \"Kindly click on the button below to generate the Vulnerability Assessment report.\",\n      \"generateReportLoaderText\": \"Generating VA Reports\",\n      \"goToLatestFile\": \"Go to Latest File\",\n      \"noPasswordRequired\": \"No Password Required\",\n      \"noSbomReportAvailable\": \"SBOM analysis does not exist for this file. Please check the latest file or upload the app now to initiate the SBOM analysis.\",\n      \"previousReport\": \"Previous Report ({reportType})\",\n      \"reportDrawerHeaderText\": \"You can download different types of scan reports here.\",\n      \"reportPassword\": \"Report Password - {password}\",\n      \"sampleJsonReportText\": \"Sample Cyclone DX (json) report\",\n      \"samplePDFReportText\": \"Sample Detailed PDF report\",\n      \"sbomReportInProgress\": \"SBOM analysis for this file is still in progress. Please check back after a few minutes.\",\n      \"sbomReports\": \"SBOM Reports\",\n      \"sbomSampleContactSuccessMsg\": \"Thanks for requesting the free trial of SBOM. Someone from our team will get in touch with you shortly.\",\n      \"sbomSampleReportText1\": \"Gain visibility into the software components used in your app and proactively manage vulnerabilities.\",\n      \"sbomSampleReportText2\": \"to activate a free trial of SBOM.\",\n      \"summaryReport\": \"Summary Report ({reportType})\",\n      \"vaReports\": \"VA Reports\",\n      \"viewSbomDetails\": \"View SBOM details\"\n    },\n    \"fileTag\": {\n      \"addedSuccessMsg\": \"Tag added\",\n      \"blankErrorMsg\": \"Tag value cannot be blank\",\n      \"deletedSuccessMsg\": \"Tag deleted\"\n    },\n    \"fileUploadedSuccessfully\": \"File Uploaded Successfully. Please wait while we process your file.\",\n    \"fileVulnerabilityDetailsDescription\": \"Here you can view the issues detected for each test cases\",\n    \"fileVulnerabilityEmpty\": {\n      \"description\": \"It is due to <em>Hide Untested Analysis</em> being set to Yes, on the Analysis Settings page of this project.\",\n      \"title\": \"Test cases are not visible\"\n    },\n    \"files\": \"Files\",\n    \"filterBy\": \"Filter By\",\n    \"fingerprints\": \"Fingerprints\",\n    \"firmware\": \"Firmware\",\n    \"first\": \"First\",\n    \"firstName\": \"First name\",\n    \"for\": \"for\",\n    \"forgotPassword\": \"Forgot Password?\",\n    \"framework\": \"Framework\",\n    \"fromDate\": \"From Date\",\n    \"fullName\": \"Full name\",\n    \"gdpr\": \"GDPR\",\n    \"gdprExpansion\": \"General Data Protection Regulation\",\n    \"general\": \"General\",\n    \"generalSettings\": \"General Settings\",\n    \"generateNewReport\": \"Generate New Report\",\n    \"generateReport\": \"Generate Report\",\n    \"generatedOn\": \"Generated on\",\n    \"generating\": \"Generating\",\n    \"generatingReport\": \"Generating Report\",\n    \"ghPageConfigure\": \"page to configure GitHub integration\",\n    \"github\": \"GitHub\",\n    \"githubAction\": \"Github Action\",\n    \"githubErrorIntegration\": \"Intergration failed, please contact support\",\n    \"githubIntegration\": \"GitHub Integration\",\n    \"githubIntegrationDesc\": \"Here you can intergrate your GitHub Account\",\n    \"githubNoProject\": \"Linked Github account doesn't have any projects\",\n    \"githubWillBeRevoked\": \"Your GitHub authorization will be revoked in a moment\",\n    \"gitlab\": \"GitLab\",\n    \"googlePlayStore\": \"Google Play Store\",\n    \"gotoHome\": \"Go Back To Home\",\n    \"gotoSettings\": \"is not integrated, integrate by\",\n    \"halfYearly\": \"Half Yearly\",\n    \"halt\": \"Halt the scan, contact us\",\n    \"hangInThere\": \"Hang in there while we process your URL\",\n    \"hiddenAnalysis\": \"HIDDEN ANALYSIS\",\n    \"hideVulnerability\": \"Hide Vulnerability\",\n    \"high\": \"High\",\n    \"hipaa\": \"HIPAA\",\n    \"hipaaExpansion\": \"Health Insurance Portability and Accountability Act\",\n    \"host\": \"Host\",\n    \"howAndWhat\": \"How and What?\",\n    \"howToFix\": \"How to fix ?\",\n    \"identification\": \"Username / Email\",\n    \"identityProvider\": \"Identity Provider\",\n    \"idpMetadata\": \"IdP Metadata\",\n    \"idpMetadataDelete\": \"Delete IdP Metadata Config\",\n    \"idpMetadataEdit\": \"Edit IdP Metadata XML if any change is required before uploading:\",\n    \"idpMetadataUpload\": \"Upload your IdP Metadata XML file\",\n    \"impact\": \"Impact\",\n    \"improved\": \"Improved\",\n    \"inProgress\": \"In Progress\",\n    \"inactive\": \"inactive\",\n    \"inactiveCapital\": \"Inactive\",\n    \"includeInactiveMembers\": \"Include inactive users\",\n    \"info\": \"Info\",\n    \"installAppknoxPluginTo\": \"Install plugin to \",\n    \"integrateAppknoxTo\": \"Integrate to \",\n    \"integrateAppknoxToCICDPipeline\": \"Integrate To CI/CD Pipeline\",\n    \"integrateGithub\": \"Integrate GitHub\",\n    \"integrateJIRA\": \"Integrate JIRA\",\n    \"integratedGithub\": \"This project is integrated with GitHub repo\",\n    \"integratedJIRA\": \"This project is integrated with JIRA project\",\n    \"integration\": \"Integrations\",\n    \"integrationCompleted\": \"Integration Completed\",\n    \"integrationFailed\": \"Something went wrong, kindly reconnect.\",\n    \"integrationsPermissionDenied\": \"You dont have permission to add integrations. Please contact your organization admin\",\n    \"invalidCredits\": \"Invalid Credits\",\n    \"invalidOTP\": \"Please enter a valid OTP\",\n    \"invalidPassword\": \"Passwords did not match\",\n    \"invalidPayment\": \"Invalid payment\",\n    \"invalidProject\": \"Please select valid project\",\n    \"invalidRisk\": \"Please select valid risk value\",\n    \"invalidURL\": \" is an invalid URL\",\n    \"invitationDeleted\": \"Invitation is deleted successfully\",\n    \"invitationReSent\": \"Invitation re-sent successfully\",\n    \"invitationRegisterConfirmation\": \"Thank you for registering with us. Please login to continue.\",\n    \"invitationSent\": \"Invitation sent successfully\",\n    \"invitations\": \"Invitations\",\n    \"invite\": \"Invite\",\n    \"inviteClient\": \"Invite Client\",\n    \"inviteClients\": \"Invite Clients\",\n    \"inviteMember\": \"Invite Member\",\n    \"inviteMembers\": \"Invite Members\",\n    \"inviteType\": \"Invite type\",\n    \"inviteUserMultipleEmailHelperText\": \"Separate Multiple Email ID Using Commas (,):\",\n    \"inviteUsers\": \"Invite Users\",\n    \"invited\": \"Invited\",\n    \"invitedOn\": \"Invited on\",\n    \"invitee\": \"Invitee\",\n    \"invites\": \"Invites\",\n    \"invoice\": \"INVOICE\",\n    \"invoiceId\": \"INVOICE ID\",\n    \"invoices\": \"Invoices\",\n    \"issuedOn\": \"Issued On\",\n    \"issuer\": \"Issuer\",\n    \"jaHTMLReport\": \"JA HTML Report\",\n    \"jenkinsPipeline\": \"Jenkins Pipeline\",\n    \"jira\": \"Jira\",\n    \"jiraHost\": \"Jira Host\",\n    \"jiraIntegrated\": \"JIRA integrated\",\n    \"jiraIntegration\": \"JIRA Integration\",\n    \"jiraIntegrationDesc\": \"Here you can intergrate your JIRA Account\",\n    \"jiraNoProject\": \"Linked JIRA account doesn't have any projects\",\n    \"jiraPageConfigure\": \"page to configure JIRA integration\",\n    \"jiraWillBeRevoked\": \"Your JIRA authorization will be revoked in a moment\",\n    \"keyInsightDesc\": {\n      \"part1\": \"Based on the comparison with previous\",\n      \"part2\": \"uploaded on <strong>{uploadedOn}</strong>, there are:\"\n    },\n    \"keyInsights\": \"Key Insights\",\n    \"knowledgeBase\": \"Knowledge Base\",\n    \"language\": \"Language\",\n    \"last\": \"Last\",\n    \"lastLoggedIn\": \"Last logged in\",\n    \"lastName\": \"Last name\",\n    \"lastUpload\": \"Last upload\",\n    \"leastRecent\": \" (Oldest First)\",\n    \"lessDetails\": \"less details\",\n    \"library\": \"Library\",\n    \"license\": \"License\",\n    \"loading\": \"Loading\",\n    \"loadingTeam\": \"Loading Team\",\n    \"login\": \"Login\",\n    \"logout\": \"Logout\",\n    \"low\": \"Low\",\n    \"manager\": \"Manager\",\n    \"manual\": \"Manual\",\n    \"manualRequested\": \"Manual assessment requested\",\n    \"manualScan\": \"Manual Scan\",\n    \"manualSettings\": \"Manual Settings\",\n    \"markAnalysis\": \"Mark Analysis\",\n    \"markItAs\": \"Mark it as\",\n    \"marketplace\": \"Marketplace\",\n    \"marketplaceIntegrationDesc\": \"Connect your development workflow tools to get notified with the vulnerability updates\",\n    \"marketplacePluginDesc\": \"Plug in your CI/CD pipeline to test for security issues on each build\",\n    \"masvs\": \"OWASP MASVS (v2)\",\n    \"masvsExpansion\": \"OWASP Mobile Application Security Verification Standard\",\n    \"medium\": \"Medium\",\n    \"member\": \"member\",\n    \"memberCount\": \"Members count\",\n    \"memberRole\": \"Member\",\n    \"members\": \"Members\",\n    \"message\": \"Message\",\n    \"mfaAppDesc\": \"Using time based OTP generated by any 2FA app on your phone.\",\n    \"mfaDescription\": \"Multi Factor Authentication provides another layer of security to your account. Along with password you also need to enter an OTP to log in.\",\n    \"mfaDisabled\": \"Multi Factor Authentication is now disabled\",\n    \"mfaEmailDesc\": \"OTP will be sent to the email address associated with your account.\",\n    \"mfaEnabled\": \"Multi Factor Authentication is now enabled\",\n    \"mfaSelect\": \"Choose one option from the following methods to receive your one-time password\",\n    \"mfaSwitchToAppDescription\": \"Are you sure you want to switch to Authenticator app MFA? <br>You will no longer be receiving OTP via email.\",\n    \"mfaSwitchToAppTitle\": \"Switch to Authenticator app MFA\",\n    \"mfaSwitchToEmailDescription\": \"Are you sure you want to switch to email MFA? <br>OTP from authenticator app will no longer work.\",\n    \"mfaSwitchToEmailTitle\": \"Switch to email MFA\",\n    \"modalCard\": {\n      \"addMember\": {\n        \"title\": \"Add Member\"\n      },\n      \"addProject\": {\n        \"title\": \"Add project to team\"\n      },\n      \"apiScan\": {\n        \"description\": \"We will run API scan for web vulnerabilities on the below list of requests captured during the dynamic scan.\",\n        \"noDynamicScan\": \"Please run dynamic scan with API URL filters set. That will capture APIs required for the API scan\",\n        \"start\": \"Start API Scan\",\n        \"title\": \"API Scan\",\n        \"warning\": \"API scan performs multiple automated tests that may result in <strong>denial of service</strong> or <strong>loss of data</strong>. Do not proceed if the app is configured to use a <strong>production API server</strong>.\"\n      },\n      \"copyPassword\": {\n        \"title\": \"Copy PDF Report Password\"\n      },\n      \"devicePreference\": {\n        \"note\": \"changing the device preference won't affect the already running scan.\",\n        \"selectDevice\": \"Select the device\",\n        \"title\": \"Change Device Preference\"\n      },\n      \"disableMFA\": {\n        \"description\": \"If you turn off Multi Factor Authentication, your account will only be protected by your password.\",\n        \"enterOTP\": \"To confirm, please enter the OTP\",\n        \"viaApp\": \"from Authenticator app\",\n        \"viaEmail\": \"sent via email\"\n      },\n      \"dynamicScan\": {\n        \"apiScanDescription\": \"During dynamic scan <strong>network traffic made by the app, filtered by the below provided API endpoints</strong> will be recorded. Currently traffic capturing is <strong>not supported for the apps that employ SSL pinning.</strong>\",\n        \"deviceRequirements\": \"App's device requirements\",\n        \"deviceSettingsWarning\": \"Please ensure the mobile device settings remain unchanged during the dynamic scan. Altering device settings outside your application can cause the scanner to malfunction. Kindly refrain from actions such as updating the OS, disconnecting from WiFi, performing factory resets, uninstalling apps or changing system settings.\",\n        \"deviceTypes\": \"Device types\",\n        \"orAbove\": \"or above\",\n        \"osVersion\": \"OS version\",\n        \"processorArchitecture\": \"Processor architecture\",\n        \"runApiScan\": \"Enable API Capture\",\n        \"start\": \"Start Dynamic Scan\",\n        \"title\": \"Dynamic Scan\",\n        \"warning\": \"Make sure you perform all the actions in the App, there are high chances that the scanner might mark the risk as passed\"\n      },\n      \"enableMFAApp\": {\n        \"enterCode\": \"After scanning the barcode image, the app will display a six-digit code, enter that code below.\",\n        \"scanBarcode\": \"Scan this barcode with your 2FA app\"\n      },\n      \"enableMFAEmail\": {\n        \"description\": \"We have sent a security code to email \",\n        \"enterCode\": \"Enter OTP\",\n        \"sendMailMsg\": \"An OTP code will be send to email \"\n      },\n      \"manual\": {\n        \"actions\": \"Actions\",\n        \"addUserRole\": \"Add user role\",\n        \"additionalComments\": \"Additional comments\",\n        \"appEnv\": \"App Environment\",\n        \"appName\": \"App Name\",\n        \"appQuestion1\": \"What would you like us to do in case some features cannot be accessed or are not live on the application?\",\n        \"appQuestion1Answer1\": \"Proceed with the scan & mention the features that were not scanned in the report. We will rescan it later.\",\n        \"appQuestion1Answer2\": \"Halt the scan, contact us & then proceed with the complete application scan.\",\n        \"basicAppInfo\": \"Basic App Info\",\n        \"companyName\": \"Company Name\",\n        \"description\": \"We need some additional information in order to request for a manual scan\",\n        \"enterCredentails\": \"If credentails are required, please enter the username & password\",\n        \"enterLoginDetails\": \"Please enter the credentials required to login into the app <b class='bold'>(4 sets of credentials for each role)</b>\",\n        \"enterMinOSVersion\": \"Enter Min OS Version\",\n        \"enterVPNDetails\": \"Please Enter the VPN Address & Port\",\n        \"loginDetails\": \"Login Details\",\n        \"loginRequired\": \"Does your application require an account to login?\",\n        \"minOSVersion\": \"Min OS Version\",\n        \"pleaseEnterAllValues\": \"Please enter all the values\",\n        \"pleaseEnterUserRoles\": \"Please enter user roles\",\n        \"pleaseEnterVPNDetails\": \"Please enter VPN details\",\n        \"poc\": \"Point of contact for queries pertaining to manual assessment\",\n        \"roleAdded\": \"Role added successfully\",\n        \"title\": \"Request Manual Scan\",\n        \"userRoles\": \"User roles\",\n        \"vpnAddress\": \"VPN Address\",\n        \"vpnDetails\": \"VPN Details\",\n        \"vpnPort\": \"Port\",\n        \"vpnRequired\": \"Is VPN/Proxy required to reach the app server from the client?\"\n      },\n      \"mfaTitle\": {\n        \"change\": \"Change Multi Factor Authentication\",\n        \"disable\": \"Disable Multi Factor Authentication\",\n        \"enable\": \"Enable Multi Factor Authentication\"\n      },\n      \"orgModal\": {\n        \"title\": \"Please enter organization name\"\n      },\n      \"requestAccess\": {\n        \"button\": \"Request Access\",\n        \"description\": \"Trial account does not have access to this feature\",\n        \"title\": \"Request Access\"\n      },\n      \"rescan\": {\n        \"description\": \"Do you want to do the static scan again?\",\n        \"title\": \"Re-scan Static Scan\"\n      },\n      \"runAPIScan\": {\n        \"capturedWarning\": \"Run Dynamic Scan first\",\n        \"description\": \"Run Captured Api Scan\",\n        \"noCapturedAPIsData\": \"Oops, no captured API's found during dynamic scan\",\n        \"runScan\": \"Run Dynamic & API Scan\",\n        \"title\": \"Run API Scan\"\n      }\n    },\n    \"month\": \"Month\",\n    \"monthWithNum\": \"{numMonths, plural, =0 {0 Month} =1 {1 Month} other {# Months}}\",\n    \"monthly\": \"Monthly\",\n    \"moreDetails\": \"more details\",\n    \"mostRecent\": \" (Most Recent First)\",\n    \"movedRequestToPending\": \"Moved request to pending\",\n    \"mstg\": \"MSTG\",\n    \"mstgExpansion\": \"Mobile Security Testing Guide\",\n    \"multiFactorAuth\": \"Multi Factor Authentication\",\n    \"multiFactorAuthSubtitle\": \"Mandatory multi factor authentication\",\n    \"name\": \"Name\",\n    \"nameIDFormat\": \"Name ID Format\",\n    \"namespace\": \"Namespace\",\n    \"namespaceApproved\": \"Namespace approved successfully\",\n    \"namespaceRejected\": \"Namespace rejected successfully\",\n    \"namespaces\": \"Namespaces\",\n    \"networkError\": \"A network error occured! Please try again later\",\n    \"never\": \"Never\",\n    \"new\": \"new\",\n    \"newCredits\": \"New Credits\",\n    \"newPassword\": \"New Password\",\n    \"newScan\": \"New Scan\",\n    \"newScanStarted\": \"New scan started, Click here to show\",\n    \"next\": \"Next\",\n    \"nist\": \"NIST\",\n    \"nistExpansion\": \"National Institute of Standards and Technology\",\n    \"nistsp800171\": \"NIST SP 800-171\",\n    \"nistsp80053\": \"NIST SP 800-53\",\n    \"no\": \"No\",\n    \"noActionRequired\": \"<em>No Action Required</em>\",\n    \"noArchive\": \"No Archive Generated Yet...\",\n    \"noArchiveExports\": \"No Archive Exports\",\n    \"noClientUploads\": \"This client has not uploaded any apps\",\n    \"noClients\": \"No clients\",\n    \"noCollaborators\": \"No Collaborators\",\n    \"noDataAvailable\": \"No Data Available\",\n    \"noDeviceAvailable\": \"No Device Available\",\n    \"noFileSelected\": \"No file selected\",\n    \"noFiles\": \"No Files\",\n    \"noInvitations\": \"No pending invitations\",\n    \"noMembers\": \"No members\",\n    \"noName\": \"No Name\",\n    \"noNamespace\": \"No namespaces\",\n    \"noNamespaceDescription\": \"Once the app is added to appknox dashboard you will be seeing the respected data over here\",\n    \"noNamespaceRequested\": \"No namespaces requested\",\n    \"noOfProjects\": \"No of projects\",\n    \"noPendingRequests\": \"No pending requests\",\n    \"noPersonalToken\": \"no tokens found\",\n    \"noPreference\": \"No Preference\",\n    \"noProject\": \"No projects\",\n    \"noProjectUploaded\": \"You haven't uploaded any project yet\",\n    \"noReportExists\": \"{format} doesn't exists, please generate and try again\",\n    \"noReportsGenerated\": \"No reports generated yet\",\n    \"noRequestByStatus\": \"No {status} request\",\n    \"noResultsFound\": \"No Results Found\",\n    \"noScansFound\": \"no scans found\",\n    \"noTeams\": \"No Teams\",\n    \"noTeamsMember\": \"You are not member of any teams\",\n    \"noUploads\": \"No uploads\",\n    \"nonCompliantCodeExample\": \"Noncompliant Code Example\",\n    \"none\": \"None\",\n    \"notAvailable\": \"Not Available\",\n    \"notFound\": \"Not Found\",\n    \"notScanned\": \"Not Scanned\",\n    \"note\": \"Note\",\n    \"notificationModule\": {\n      \"currentRiskStatusFile\": \"Current risk status of file\",\n      \"messages\": {\n        \"nf-am-newversn\": \"Unscanned version of {platform_display} app <strong>{app_name} ({package_name})</strong> detected via store monitoring. Please <strong>upload app binary of version {version_unscanned} to perform scan.</strong>\",\n        \"nf-apistcmpltd1\": \"<strong>API scan completed</strong> for {platform_display} app <strong>{file_name} ({package_name})</strong>.\",\n        \"nf-dastcmpltd1\": \"<strong>Dynamic scan completed</strong> for {platform_display} app <strong>{file_name}} ({package_name})</strong>.\",\n        \"nf-nsapprvd1\": \"Your <strong>namespace request</strong> for {platform_display} app <strong>{namespace_value}</strong> created on {namespace_created_on} <strong>has approved</strong> by {moderator_username}. Please <strong>upload the app again</strong> to perform scan.\",\n        \"nf-nsapprvd2\": \"{platform_display} <strong>namespace {namespace_value}</strong> requested by {requester_username} <strong>has approved</strong> by {moderator_username}.\",\n        \"nf-nsautoapprvd1\": \"Your {platform_display} app's <strong>namespace {namespace_value}</strong> was <strong>auto approved</strong>.\",\n        \"nf-nsautoapprvd2\": \"{platform_display} <strong>namespace {namespace_value}</strong> requested by {requester_username} was <strong>auto approved</strong>.\",\n        \"nf-nsrejctd1\": \"Your <strong>namespace request</strong> for {platform_display} app <strong>{namespace_value}</strong> created on {namespace_created_on} was <strong>not approved</strong>.\",\n        \"nf-nsrejctd2\": \"{platform_display} <strong>namespace {namespace_value}</strong> requested by {requester_username} was <strong>rejected</strong> by {moderator_username}.\",\n        \"nf-nsreqstd1\": \"{requester_username} has <strong>requested for {platform_display} namespace {namespace_value}</strong>.\",\n        \"nf-nsreqstd2\": \"{current_requester_username} has <strong>requested for an unapproved {platform_display} namespace {namespace_value}</strong> (initially requested by {initial_requester_username} on {namespace_created_on}).\",\n        \"nf-sastcmpltd1\": \"<strong>Static scan completed</strong> for {platform_display} app <strong>{file_name} ({package_name})</strong>.\",\n        \"nf-sbomcmpltd\": {\n          \"prefix\": \"<strong>SBOM generated successfully</strong> for the \",\n          \"suffix\": \", {platform_display} app <strong>{file_name} ({package_name})</strong>.\",\n          \"summary\": \"<span>Total Components: {total_components}</span> <span>Vulnerable Components: {vulnerable_components}</span> <span>Components with version updates: {outdated_components}</span>\"\n        },\n        \"nf-str-url-nsreqstd1\": \"{requester_username} has <strong>requested for {platform_display} namespace {namespace_value}</strong>.\",\n        \"nf-str-url-nsreqstd2\": \"{current_requester_username} has <strong>requested for an unapproved {platform_display} namespace {namespace_value}</strong> (initially requested by {initial_requester_username} on {namespace_created_on}).\",\n        \"nf-str-url-upldfailnprjdeny1\": \"The app upload you initiated from {store_name} has <strong>failed due to Namespace Permission Error</strong>. You don't have permission to upload to project <strong>{package_name}</strong>.\",\n        \"nf-str-url-upldfailnprjdeny2\": {\n          \"primary\": \"Upload of {platform_display} app {package_name} by {requester_username} ({requester_role} role) failed. <strong>User does not have access to the project</strong>.\",\n          \"secondary\": \"Access can be provided to the user via team or collaborator settings if required\"\n        },\n        \"nf-str-url-upldfailnscreatd1\": \"The app upload you initiated from {store_name} has <strong>failed due to non-existent namespace</strong>. New namespace request has been submitted to your organization owner for approval.\",\n        \"nf-str-url-upldfailnsunaprv1\": \"The app upload you initiated from {store_name} has <strong>failed due to unapproved namespace</strong>.\",\n        \"nf-str-url-upldfailpay2\": \"App {package_name} upload by {requester_username} from {store_name} has <strong>failed due to Insufficient Credits Error</strong>. Please upgrade your plan.\",\n        \"nf-str-url-upldfailpayrq1\": \"The app upload you initiated from {store_name} has <strong>failed due to Insufficient Credits Error</strong>. Please upgrade your plan.\",\n        \"nf-str-url-upload-success\": {\n          \"prefix\": \"Your {platform_display} app upload of <strong>{package_name}</strong> from {store_name} is <strong>successful</strong>. Please go to the \",\n          \"suffix\": \" to perform the vulnerability assessment.\"\n        },\n        \"nf-str-url-vldtn-err\": \"The app upload you initiated from the {store_name} has <strong>failed</strong> due to an error\",\n        \"nf-systm-file-upload-success\": {\n          \"prefix\": \"Your {platform_display} app upload of <strong>{package_name}</strong> is <strong>successful</strong>. Please go to the \",\n          \"suffix\": \" to perform the vulnerability assessment.\"\n        },\n        \"nf-upldfailnprjdeny1\": \"You <strong>don't have permission</strong> to upload to {platform_display} project {package_name}\",\n        \"nf-upldfailnprjdeny2\": {\n          \"primary\": \"Upload of {platform_display} app {package_name} by {requester_username} ({requester_role} role) failed. <strong>User does not have access to the project</strong>.\",\n          \"secondary\": \"Access can be provided to the user via team or collaborator settings if required\"\n        },\n        \"nf-upldfailnscreatd1\": \"Your {platform_display} app upload of {namespace_value} <strong>failed due to non-existent namespace</strong>. New namespace request has been submitted to your organization owner for approval.\",\n        \"nf-upldfailnsunaprv1\": \"Your upload of {platform_display} app {namespace_value} <strong>failed due to unapproved namespace</strong>.\",\n        \"nf-upldfailpay2\": \"App {package_name} upload by {requester_username} <strong>failed due to insufficient payment credits</strong>. Please upgrade your plan.\",\n        \"nf-upldfailpayrq1\": \"Failed to upload app {package_name}. Your organization has <strong>no payment credits</strong> left. Please upgrade your plan.\"\n      },\n      \"namespaceMessage\": {\n        \"approved\": \"{moderaterName} approved this namespace\",\n        \"rejected\": \"This namespace was rejected\"\n      },\n      \"projectSettings\": \"Project settings\",\n      \"riskStatus\": \"Risk status\",\n      \"viewAppOnStore\": \"View App on Store\",\n      \"viewNamespaces\": \"View namespaces\",\n      \"viewProjectSettings\": \"View project settings\",\n      \"viewSBOMResults\": \"View SBOM results\",\n      \"viewStoreMonitoring\": \"View store monitoring\",\n      \"viewStoreMonitoringResults\": \"View store monitoring results\"\n    },\n    \"notifications\": \"Notifications\",\n    \"off\": \"off\",\n    \"ok\": \"Ok\",\n    \"on\": \"on\",\n    \"openInAppstore\": \"Open in Appstore\",\n    \"openInNewTab\": \"Open in new tab\",\n    \"openInPlaystore\": \"Open in Playstore\",\n    \"operatingSystem\": \"Operating System\",\n    \"operational\": \"operational\",\n    \"or\": \"or\",\n    \"orgMemberInvited\": \"Invitation email sent!\",\n    \"organization\": \"Organization\",\n    \"organizationArchive\": \"Organization Data Exports\",\n    \"organizationArchiveDescription\": \"Download your organization's scans data and activity logs in an Excel file. Choose a date range below to get started. Generating the data export may take long time, as soon as the processing finishes we will send you an email with the download link.\",\n    \"organizationArchiveDownloadErrored\": \"Failed to Download File\",\n    \"organizationArchiveExport\": \"Export Excel\",\n    \"organizationArchiveFailed\": \"Failed to Generate File\",\n    \"organizationArchiveSelectDateDesc\": \"Choose your required date to export organization data\",\n    \"organizationArchiveSelectDateTitle\": \"Select the date\",\n    \"organizationArchiveSuccess\": \"File Generation Has Started\",\n    \"organizationArchiveTableDesc\": \"Here are your previous exports details\",\n    \"organizationArchiveTableHeading\": \"Previous Exports\",\n    \"organizationMandatory2FA\": \"Your organization has enabled mandatory 2FA\",\n    \"organizationMembers\": \"Organization Members\",\n    \"organizationName\": \"Organization Name\",\n    \"organizationNameAddLabel\": \"Add Organization Name\",\n    \"organizationNameAddNotPermitted\": \"As a <strong>{type, select, owner {owner} admin {admin} other {member}}</strong>, you are not permitted to set up the organization name.\",\n    \"organizationNameAddedOrUpdated\": \"Organization Name has been successfully {type, select, edit { updated } add { added } other { updated }}\",\n    \"organizationNameEditLabel\": \"Here you edit organization name\",\n    \"organizationNameUpdated\": \"Successfully updated the organization name\",\n    \"organizationSettings\": \"Organization Settings\",\n    \"organizationTableCreatedOn\": \"Created On\",\n    \"organizationTableDuration\": \"Duration\",\n    \"organizationTableGeneratedBy\": \"Generated By\",\n    \"organizationTeamNameUpdated\": \"Successfully updated the team name\",\n    \"orginalRisk\": \"Original Risk\",\n    \"osVersion\": \"OS Version\",\n    \"otherTemplates\": {\n      \"addATeam\": \"Add a team which you want to collaborate with this project\",\n      \"selectGHRepo\": \"Select the Github Repo where you want us to create issues for the risks we find in your project\",\n      \"selectJIRAAccount\": \"Select the JIRA account where you want us to create issues for the risks we find in your project\",\n      \"selectPreferredDevice\": \"Select the Preferred Device Type and OS Version for Dynamic Scan\",\n      \"showUntestedAnalysis\": \"Do you want us to show untested analysis?\",\n      \"specifyTheURL\": \"Specify host names for filtering network requests during the dynamic scan. If left empty, all requests will be captured\"\n    },\n    \"overriddenRisk\": \"Overridden Risk\",\n    \"overrideRisk\": \"Override Risk\",\n    \"overview\": \"Overview\",\n    \"owasp\": \"OWASP\",\n    \"owaspApiTop10Expansion\": \"OWASP API Top 10\",\n    \"owaspDetails\": \"OWASP Details\",\n    \"owaspExpansion\": \"Open Web Application Security Project\",\n    \"owaspapi2023\": \"OWASP API Top 10 (2023)\",\n    \"owner\": \"Owner\",\n    \"package\": \"Package\",\n    \"packageName\": \"Package Name\",\n    \"pageNotFound\": \"The page cannot be found\",\n    \"paid\": \"Paid\",\n    \"partnerPrivilege\": {\n      \"noListFiles\": \"You were not privileged to access files\",\n      \"noListProjects\": \"You were not privileged to access projects\"\n    },\n    \"passed\": \"Passed\",\n    \"password\": \"Password\",\n    \"passwordChanged\": \"Your password has been changed\",\n    \"passwordCopied\": \"Password Copied!\",\n    \"passwordIsReset\": \"Password is successfully reset!\",\n    \"passwordLengthError\": \"Passwords must be greater than or equal to 6\",\n    \"passwordMatchError\": \"Passwords doesnt match\",\n    \"pasteYourUrl\": \"Paste Android / Windows store URL\",\n    \"pay\": \"Pay\",\n    \"paymentPlan\": \"Payment plan\",\n    \"pcidss\": \"PCI-DSS\",\n    \"pcidssExpansion\": \"Payment Card Industry Data Security Standard\",\n    \"pdfReport\": \"Download Report\",\n    \"pending\": \"Pending\",\n    \"pendingInvitations\": \"Pending Invitations\",\n    \"pendingInvitationsTeam\": \"Pending Team Invitations\",\n    \"pendingRequests\": \"Pending Registration Requests\",\n    \"perApp\": \"per App\",\n    \"perAppCreditTransferStatus\": \"Credits transfer is unavailable for Per App plan clients\",\n    \"perScan\": \"per Scan\",\n    \"permissionChanged\": \"Permission changed successfully!\",\n    \"personalAccessTokenCreate\": \"Generate token\",\n    \"personalAccessTokenDesc\": \"Tokens you have generated that can be used to access the API\",\n    \"personalAccessTokens\": \"Personal access tokens\",\n    \"personalTokenGenerated\": \"Personal access token generated successfully.\",\n    \"personalTokenKey\": \"Token\",\n    \"personalTokenRevoke\": \"Revoke\",\n    \"personalTokenRevoked\": \"Personal access token revoked successfully\",\n    \"phone\": \"Phone\",\n    \"planName\": \"PLAN NAME\",\n    \"plans\": \"Plans\",\n    \"platform\": \"Platform\",\n    \"pleaseEnterAllDetails\": \"Please enter all the details\",\n    \"pleaseEnterAnyNamespace\": \"Please enter any namespace\",\n    \"pleaseEnterValidAccountDetail\": \"Please enter valid account details\",\n    \"pleaseEnterValidEmail\": \"Please enter valid email or username\",\n    \"pleaseSelectValidIdp\": \"Please select valid Idp file\",\n    \"pleaseTryAgain\": \"Failed, please try again\",\n    \"pleaseVisit\": \"Please visit the\",\n    \"pleaseWait\": \"Please Wait\",\n    \"plugins\": \"Plugins\",\n    \"pluralApps\": \"{itemCount, plural, =0 {Apps} =1 {App} other {Apps} }\",\n    \"pluralProjects\": \"{itemCount, plural, =0 {Projects} =1 {Project} other {Projects} }\",\n    \"pluralScans\": \"{itemCount, plural, =0 {Scans} =1 {Scan} other {Scans} }\",\n    \"pluralUploads\": \"{itemCount, plural, =0 {Uploads} =1 {Upload} other {Uploads} }\",\n    \"pluralUsers\": \"{itemCount, plural, =0 {Users} =1 {User} other {Users} }\",\n    \"pluralorganizationOwner\": \"{itemCount, plural, =0 {Organization owner} =1 {Organization owner} other {Organization owners} }\",\n    \"popOutModal\": \"Full Screen\",\n    \"port\": \"Port\",\n    \"preferenceSetTo\": \"preference set to\",\n    \"previous\": \"Previous\",\n    \"pricing\": \"Pricing\",\n    \"problemWhileDeletingDomain\": \"Problem while deleting domain\",\n    \"proceed\": \"Proceed with the scan\",\n    \"processing\": \"Processing ...\",\n    \"production\": \"Production\",\n    \"project\": \"project\",\n    \"projectCollaboratorAdded\": \"Added collaborator to project\",\n    \"projectCount\": \"Projects count\",\n    \"projectID\": \"Project ID\",\n    \"projectLevel\": \"Project Level\",\n    \"projectName\": \"Project Name\",\n    \"projectRemoved\": \"Project has been removed\",\n    \"projectSettings\": {\n      \"drawerTitles\": {\n        \"addCollaborator\": \"Add collaborator to project\",\n        \"addTeam\": \"Allow teams to access this project\"\n      },\n      \"headerText\": \"View and update project general and analysis preferences\"\n    },\n    \"projectTeamAdded\": \"Added team to project\",\n    \"projectUpdated\": \"Project updated successfully.\",\n    \"projects\": \"Projects\",\n    \"promptBox\": {\n      \"deleteTeamPrompt\": {\n        \"description\": \"Please enter the team name which you want to delete\",\n        \"title\": \"Are you sure you want to delete this team?\"\n      },\n      \"removeMemberPrompt\": {\n        \"description\": \"Please enter the name of team member who you want to remove\",\n        \"title\": \"Are you sure you want to remove this team member?\"\n      }\n    },\n    \"proxyEdit\": \"Edit in project settings\",\n    \"proxyEnable\": \"Enable Proxy\",\n    \"proxySettingsDescription\": \"Route dynamic scan and API scan requests via proxy server\",\n    \"proxySettingsRouteVia\": \"Routing all API requests during dynamic scan & API scan via\",\n    \"proxySettingsSaved\": \"Proxy settings saved\",\n    \"proxySettingsTitle\": \"API Proxy\",\n    \"proxyTurned\": \"Proxy turned \",\n    \"proxyWarning\": \"Please check if you have enabled proxy\",\n    \"quarterly\": \"Quarterly\",\n    \"reasonForOverride\": \"Reason for override\",\n    \"reconnect\": \"Reconnet\",\n    \"reconnectGotoSettings\": \"is not integrated, something went wrong you can go to settings &amp; reconnect by\",\n    \"recordPerPage\": \"Records per page\",\n    \"recover\": \"Recover\",\n    \"recoverPassword\": \"Recover your password\",\n    \"recurring\": \"recurring\",\n    \"register\": \"Register\",\n    \"registerConfirmation\": \"Your registration process has been initiated. Please check your email for further instructions\",\n    \"registrationRequests\": \"Registration requests\",\n    \"regulatory\": \"Regulatory\",\n    \"regulatoryPreferenceReset\": \"Reset preference to default\",\n    \"regulatoryPreferences\": \"Regulatory Preferences\",\n    \"regulatoryPreferencesChooseForAll\": \"Choose regulatories applicable for all projects\",\n    \"regulatoryPreferencesChooseForProfile\": \"Choose regulatories applicable for this project.\",\n    \"regulatoryPreferencesProfileNote\": \"Preference from organization settings is inherited by default\",\n    \"regulatoryPreferencesWarning\": \"If you hide a regulatory, respective section from analysis will be hidden from the dashboard & report\",\n    \"reject\": \"Reject\",\n    \"rejected\": \"Rejected\",\n    \"rejectedRequestFrom\": \"Rejected request from\",\n    \"rejectedRequests\": \"Rejected Requests\",\n    \"remaining\": \"remaining\",\n    \"remainingCredits\": \"Remaining Credits\",\n    \"remove\": \"remove\",\n    \"removeCollaborator\": \"Remove Collaborator\",\n    \"removeFromTeam\": \"Remove from team\",\n    \"removedSSOSuccessfully\": \"SSO has been removed successfully\",\n    \"repo\": \"Repo\",\n    \"repoIntegrated\": \"Repo successfully integrated\",\n    \"repoNotIntegrated\": \"Something went wrong when trying to update this repo\",\n    \"report\": \"Report\",\n    \"reportGenerateError\": \"Problem while generating report, please try again!\",\n    \"reportGeneratedSuccessfully\": \"Report generated successfully\",\n    \"reportGenerationInProgressWait\": \"Report generation in progress. Please wait\",\n    \"reportIsGettingGenerated\": \"Please wait while the report is getting generated\",\n    \"reportPassword\": \"Report Password\",\n    \"reportPreferences\": \"Report Preferences\",\n    \"reportPreferencesChooseTypes\": \"Choose types of scans to be included in the report\",\n    \"reportSendTo\": \"and sent to following Email IDS:\",\n    \"requestStatus\": \"Request\",\n    \"requestToAddNamespace\": \"We have received your request to add a new namespace\",\n    \"requested\": \"Requested\",\n    \"rescanInitiated\": \"Re-scan initiated\",\n    \"resend\": \"Resend\",\n    \"resendInvitation\": \"Resend invitation\",\n    \"resentInvitationTo\": \"Resent invitation to\",\n    \"reset\": \"Reset\",\n    \"resetOverriddenAnalysis\": \"Reset Overridden Analysis\",\n    \"resetPassword\": \"Reset your password\",\n    \"resetToDefault\": \"Reset to default\",\n    \"resolved\": \"resolved\",\n    \"revokeGithub\": \"Revoke Github\",\n    \"revokeJira\": \"Revoke Jira\",\n    \"risk\": \"The risk of\",\n    \"riskAndCommentRequired\": \"Risk and comment are required fields\",\n    \"riskOf\": \"Risk Of\",\n    \"riskType\": \"Risk Type\",\n    \"role\": \"Role\",\n    \"samlAuth\": \"SAML Authentication\",\n    \"samlDesc\": \"SAML-based single sign-on (SSO) gives users access to app through an identity provider (IdP) of your choice. Get set up with ADFS, G Suite, Auth0, OneLogin, or your custom SAML 2.0 solution.\",\n    \"save\": \"Save\",\n    \"saveCredentials\": \"Save Credentials\",\n    \"savedPreferences\": \"Successfully saved the preferences\",\n    \"sbomModule\": {\n      \"affectedAndFixedVersion\": {\n        \"emptyTitle\": \"No Data Available\",\n        \"title\": \"Affected & Fixed Versions\"\n      },\n      \"affectedVersions\": \"Affected Versions\",\n      \"allComponents\": \"All Components\",\n      \"allComponentsAndVulnerabilities\": \"All Components and Vulnerabilities\",\n      \"appScanEmptyText\": {\n        \"description\": \"No SBOM analyses has been done for this application (Project). Kindly upload the app to initiate an SBOM analysis\",\n        \"title\": \"No SBOM Analyses\"\n      },\n      \"applicationName\": \"Application Name\",\n      \"applicationVersion\": \"Application Version\",\n      \"componentDescription\": \"View the list of components detected in your application.\",\n      \"componentDetails\": \"Component Details\",\n      \"componentDetailsDescription\": \"View additional information related to each component.\",\n      \"componentListEmptyText\": {\n        \"description\": \"No components could be detected for this application. Kindly reupload and check again. If this issue persists, please reach out to the support team.\",\n        \"title\": \"No Components Found\"\n      },\n      \"componentName\": \"Component Name\",\n      \"componentType\": \"Components Type\",\n      \"components\": \"Components\",\n      \"cvssV3Score\": \"CVSS V3 Score\",\n      \"fixedVersions\": \"Fixed Versions\",\n      \"generateReportDescription\": \"Report is not available yet. Please click on the Generate button to access the SBOM report.\",\n      \"generatedDate\": \"Generated Date\",\n      \"knownVulnerabilities\": \"Known Vulnerabilities\",\n      \"knownVulnerabilitiesEmptyText\": {\n        \"description\": \"We could not locate any known vulnerabilities associated with this component, at this point in time.\",\n        \"title\": \"No Vulnerability Found\"\n      },\n      \"lastSbomAnalysisOn\": \"Last SBOM Analysis On\",\n      \"latestVersion\": \"Latest Version\",\n      \"neverInitiated\": \"Never Initiated\",\n      \"noScanAlertDescription\": \"Upload the app to initiate SBOM analysis.\",\n      \"pastSbomAnalyses\": \"Past SBOM Analyses\",\n      \"pastSbomAnalysesDescription\": \"Here you see all SBOM reports related to the {projectName} project.\",\n      \"sbomAppDescription\": \"Identify the components used in your mobile application and any vulnerabilities associated with it\",\n      \"sbomAppEmptyText\": {\n        \"description\": \"Uh, Oh!. Looks like you have not been granted access to any application (Project) or there have been no applications uploaded yet. Please contact the 'Owner' in your organization for more details.\",\n        \"title\": \"No SBOM Applications\"\n      },\n      \"sbomAppTitle\": \"Software Bill of Materials (SBOM)\",\n      \"sbomDownloadJsonPrimaryText\": \"Cyclone DX (json)\",\n      \"sbomDownloadJsonSecondaryText\": \"No Password Required\",\n      \"sbomDownloadPdfPrimaryText\": \"Detailed Report (pdf)\",\n      \"sbomDownloadPdfSecondaryText\": \"Report Password - {password}\",\n      \"sbomDownloadReportDescription\": \"Here you able to download different types of SBOM scan reports.\",\n      \"sbomGeneratedOn\": \"SBOM Generated On\",\n      \"sbomReport\": \"SBOM Report\",\n      \"sbomScanStatusError\": {\n        \"description\": \"SBOM analysis for this application could not be completed due to some issues. Kindly reupload and check again. If this issue persists, please reach out to the support team.\",\n        \"title\": \"SBOM Analysis Error\"\n      },\n      \"sbomScanStatusProgress\": {\n        \"description\": \"SBOM Analysis for this application is currently in progress. Please wait for a few moments for it to be completed.\",\n        \"title\": \"SBOM Analysis in Progress\"\n      },\n      \"sbomSummary\": \"SBOM Summary\",\n      \"scanReportEmptyText\": {\n        \"description\": \"We could not locate any report associated with this SBOM analysis.\",\n        \"title\": \"No SBOM Report Found\"\n      },\n      \"scanReports\": \"Scan Reports\",\n      \"severity\": \"Severity\",\n      \"totalComponents\": \"Total Components\",\n      \"versionCode\": \"Version Code\",\n      \"viewReport\": \"View Report\",\n      \"vulnerabilityId\": \"Vulnerability ID\"\n    },\n    \"scan\": \"scan(s)\",\n    \"scanCompleted\": \"scan completed\",\n    \"scanDetails\": \"Scan Details\",\n    \"scanNotCompleted\": \"scan not completed\",\n    \"scanResults\": \"Scan Results\",\n    \"scanStarted\": \"Scan Started\",\n    \"scanStatus\": \"Scan Status\",\n    \"scanSummary\": \"Scan Summary\",\n    \"scanTypes\": \"Scan Types\",\n    \"scanned\": \"scanned\",\n    \"scanning\": \"Scanning\",\n    \"scans\": \"Scans\",\n    \"scansLeft\": \" Scan Left\",\n    \"scenario\": \"Scenario\",\n    \"scheduleDynamicscan\": \"Schedule Automated Dynamic Scan\",\n    \"scheduleDynamicscanDesc\": \"Schedule an automated dynamic scan for this file by clicking on the button below. Once scheduled, the system will use the Active Scenarios on the Project Settings page to execute the Automated DAST. It may take up to 24hrs for this to be completed.\",\n    \"scheduleDynamicscanSuccess\": \"Automated dynamic scan scheduled successfully\",\n    \"search\": \"Search\",\n    \"searchCollaborator\": \"Search collaborator\",\n    \"searchInvite\": \"Search invite\",\n    \"searchProject\": \"Search project\",\n    \"searchQuery\": \"Search By Package Name\",\n    \"searchTeam\": \"Search team\",\n    \"searchTeamByName\": \"Search by team name\",\n    \"searchUser\": \"Search user\",\n    \"security\": \"Security\",\n    \"securityDashboard\": \"Security Dashboard\",\n    \"selectAnyTeam\": \"Please select any team\",\n    \"selectDevice\": \"Select the device\",\n    \"selectLanguage\": \"Select the preferred language below\",\n    \"selectProject\": \"Select Project\",\n    \"selectRepo\": \"Select Repo\",\n    \"selectRisk\": \"Select Risk\",\n    \"selectTeam\": \"Select a team\",\n    \"selectThreshold\": \"Select Threshold\",\n    \"selected\": \"Selected\",\n    \"selectedDevice\": \"Selected Device Type\",\n    \"selectedVersion\": \"Selected OS Version\",\n    \"sendInvitation\": \"Send Invitation\",\n    \"sendPasswordResetMail\": \"Send password reset email\",\n    \"sentInvitationTo\": \"Sent invitation to\",\n    \"server\": \"Server\",\n    \"serviceProvider\": \"Service Provider\",\n    \"settings\": \"Settings\",\n    \"severity\": \"Severity\",\n    \"severityLevel\": \"Severity Level\",\n    \"showHiddenAnalysis\": \"Do you want to show the hidden analysis in the Report?\",\n    \"showLess\": \"Show Less\",\n    \"showMore\": \"Show More\",\n    \"showUntestedAnalysis\": \"Show/Hide Untested Analysis\",\n    \"showVulnerability\": \"Show Vulnerability \",\n    \"signin\": \"Sign In\",\n    \"singleSignOn\": \"Single Sign-On\",\n    \"slack\": \"Slack\",\n    \"somethingWentWrong\": \"Something went wrong, please try again\",\n    \"somethingWentWrongContactSupport\": \"Something went wrong, please contact support\",\n    \"sortBy\": \"Sort By\",\n    \"source\": \"Source\",\n    \"spMetadataDesc\": \"Configure your identity provider based of the SP Metadata:\",\n    \"spMetadataXml\": \"SP Metadata XML\",\n    \"ssoAuthentication\": \"SSO Authentication\",\n    \"ssoEnableDesc\": \"Show Single Sign-On option in login form\",\n    \"ssoEnforce\": \"Enforce SSO\",\n    \"ssoEnforceDesc\": \"Disable password based login for all users, show only SSO login button\",\n    \"ssoIdentityURL\": \"SSO Identity Provider URL\",\n    \"ssoLogin\": \"Login using SSO\",\n    \"ssoServiceURL\": \"SSO Service URL\",\n    \"staging\": \"Staging\",\n    \"standards\": \"Standards\",\n    \"start\": \"Start\",\n    \"startDynamicScan\": \"Start Dynamic Scan\",\n    \"startNewScan\": \"Start a new scan\",\n    \"started\": \"Started\",\n    \"startingApiScan\": \"Starting API Scan\",\n    \"startingScan\": \"Starting the scan\",\n    \"static\": \"Static\",\n    \"staticScan\": \"Static Scan\",\n    \"status\": \"Status\",\n    \"stop\": \"Stop\",\n    \"storage\": \"Storage\",\n    \"storageManagement\": \"Storage Management\",\n    \"storeLowercase\": \"store\",\n    \"submitUrl\": \"Submit URL\",\n    \"subscription\": \"Subscription\",\n    \"subscriptionCancelled\": \"Subscription Cancelled Successfully\",\n    \"subscriptionDetails\": \"Subscription Details\",\n    \"subscriptionExpired\": \"Subscription Expired \",\n    \"subscriptionWillExpire\": \"Subscription will expire \",\n    \"subscriptionWillExpireOn\": \"Subscription will expire on\",\n    \"successfullyOverridden\": \"You have successfully overridden this analysis\",\n    \"successfullyReset\": \"You have successfully reverted back to orginal risk of this analysis\",\n    \"summary\": \"Summary\",\n    \"support\": \"Support\",\n    \"sync\": \"Sync More\",\n    \"system\": \"System\",\n    \"systemStatus\": \"System Status\",\n    \"tInValidCredentials\": \"Invalid credentials\",\n    \"tablet\": \"Tablet\",\n    \"tags\": \"Tags\",\n    \"team\": \"Team\",\n    \"teamCreated\": \"Team Created Successfully\",\n    \"teamDeleted\": \"has been deleted successfully\",\n    \"teamDetails\": \"Team Details\",\n    \"teamInvitations\": \"Team Invitations\",\n    \"teamInvitationsDesc\": \"Send your team invitations\",\n    \"teamMember\": \"Team member\",\n    \"teamMemberAdded\": \"Team member added\",\n    \"teamMemberInvited\": \"Team member invited\",\n    \"teamMemberRemoved\": \"Removed member from the team\",\n    \"teamMembers\": \"Team Members\",\n    \"teamName\": \"Team Name\",\n    \"teamProjectAdded\": \"Project added to team\",\n    \"teamProjectsDesc\": \"Projects associated with this team\",\n    \"teamRemoved\": \"Team removed from accessing this project\",\n    \"teamUsersDesc\": \"Users associated with this team\",\n    \"teams\": \"Teams\",\n    \"templates\": {\n      \"addNewUrlFilter\": \"Add Filter\",\n      \"apiScanURLFilter\": \"API Scanner URL Filter\",\n      \"enterAPIEndpoint\": \"Enter host\",\n      \"enterEndpoint\": \"Enter the API endpoint to scan: eg. subdomain.domain.com. Do not specify the scheme (http://...), port (:443/...) & path (.../users)\",\n      \"saveFilter\": \"Save Filter\"\n    },\n    \"testCase\": \"Test Case\",\n    \"testCases\": \"Test Cases\",\n    \"testCredentials\": \"Test Credentials\",\n    \"threshold\": \"Threshold\",\n    \"title\": \"Title\",\n    \"toDate\": \"To Date\",\n    \"tokenCopied\": \"Token Copied!\",\n    \"totalProjects\": \"Total Projects\",\n    \"totalUsers\": \"Total Users\",\n    \"transferCredits\": \"Transfer Credits\",\n    \"trialWillBeConverted\": \"Your free trial will be converted into paid subscription on\",\n    \"trialWillExpireOn\": \"Your trial will expire on\",\n    \"tryAdjustingFilter\": \"Try adjusting your search or filter\",\n    \"type\": \"Type\",\n    \"typeOfScan\": \"Type of Scan\",\n    \"unavailable\": \"unavailable\",\n    \"unchanged\": \"Unchanged\",\n    \"undefined\": \"undefined\",\n    \"undo\": \"Undo\",\n    \"unknown\": \"Unknown\",\n    \"unpaid\": \"Unpaid\",\n    \"unreachable\": \"Unreachable\",\n    \"untested\": \"Untested\",\n    \"update\": \"Update\",\n    \"upload\": \"Upload\",\n    \"uploadApp\": \"Upload App\",\n    \"uploadAppModule\": {\n      \"linkInputLabel\": \"Add a link\",\n      \"linkPastePlaceholder\": \"Paste the link here...\",\n      \"linkUploadPopupHeader\": \"Upload using a link\",\n      \"stores\": \"Google Play Store and Apple App Store\",\n      \"supportedStores\": \"Supported Stores\",\n      \"validURLFormatTitle\": \"Valid URL Formats :\",\n      \"viaLink\": \"Via Link\"\n    },\n    \"uploadCount\": \"Upload Count\",\n    \"uploadIdpFile\": \"Upload Idp File\",\n    \"uploadNewProject\": \"You can upload a new project by clicking on <b class='bold'>Upload App</b> above and start scanning\",\n    \"uploadStatistics\": \"Upload Statistics\",\n    \"uploadStatus\": \"Upload Status\",\n    \"uploadZipFile\": \"Upload .zip file\",\n    \"uploaded\": \"Uploaded\",\n    \"uploadedOn\": \"Uploaded on\",\n    \"uploading\": \"Uploading\",\n    \"uploads\": \"Uploads\",\n    \"urlUpdated\": \"Successfully updated the url filter\",\n    \"usd\": \"USD for\",\n    \"user\": \"User\",\n    \"userActivateTitle\": \"Activate User\",\n    \"userActivationChangeMessage\": \"Are you sure you want to make\",\n    \"userDeactivateTitle\": \"Deactivate User\",\n    \"userDetails\": \"User Details\",\n    \"userRoleUpdated\": \"User role changed successfully\",\n    \"userSetting\": \" user's settings \",\n    \"username\": \"Username\",\n    \"users\": \"Users\",\n    \"usersTeamDesc\": \"List of Teams the user is associated with\",\n    \"validUntil\": \"Valid until\",\n    \"validity\": \"Validity\",\n    \"version\": \"Version\",\n    \"versionCode\": \"version code\",\n    \"versionLowercase\": \"version\",\n    \"versions\": \"Versions\",\n    \"viaLink\": \"VIA LINK\",\n    \"viaSystem\": \"VIA SYSTEM\",\n    \"viewAll\": \"View All\",\n    \"viewDetails\": \"View Details\",\n    \"viewFile\": \"View file\",\n    \"viewFiles\": \"View Files\",\n    \"viewIntegrationInstructions\": \"View Instructions to Integrate\",\n    \"viewReport\": \"View Report\",\n    \"viewStoreLink\": \"View Store Link\",\n    \"viewUploads\": \"View uploads\",\n    \"vulnerabilities\": \"Vulnerabilities\",\n    \"vulnerability\": \"Vulnerability\",\n    \"vulnerabilityDetails\": \"Vulnerability Details\",\n    \"vulnerabilityPreferences\": \"Vulnerability Preferences\",\n    \"vulnerabilityPreferencesCondition\": \"Changes made to vulnerability here will be applied to all future analyses of this project\",\n    \"vulnerabilityPreferencesEdit\": \"You can edit the vulnerability preferences below\",\n    \"warning\": \"WARNING\",\n    \"week\": \"Week\",\n    \"welcome\": \"Welcome \",\n    \"worsened\": \"Worsened\",\n    \"xmlMetadata\": \"XML Metadata\",\n    \"year\": \"Year\",\n    \"yearWithNum\": \"{numYears, plural, =0 {0 Year} =1 {1 Year} other {# Years}}\",\n    \"yearly\": \"Yearly\",\n    \"yes\": \"Yes\",\n    \"yesDelete\": \"Yes, Delete\",\n    \"yesSecure\": \"Yes, Secure\",\n    \"youCanCreateTeam\": \"you can create a new team by\",\n    \"youWillBeChargedOn\": \"You will be charged on\",\n    \"yourPlan\": \"Your Plan\"\n  }], [\"ja\", {\n    \"0sharableCredits\": \"0 sharable credits\",\n    \"SBOM\": \"SBOM\",\n    \"acceptInvite\": \"招待を受けてサインアップする\",\n    \"acceptTerms\": \"私は利用規約に同意します\",\n    \"accessPermissions\": \"Access permissions\",\n    \"accessRequested\": \"Removal for the restriction has been requested, please wait for our team to revert\",\n    \"account\": \"アカウント\",\n    \"accountOverview\": \"アカウントの概要\",\n    \"accountSettings\": \"アカウント設定\",\n    \"acsURL\": \"ACS URL\",\n    \"action\": \"アクション\",\n    \"actions\": \"アクション\",\n    \"activateUser\": \"Activate User\",\n    \"activateUserDesc\": \"In order to activate the user, click on the button below.\",\n    \"activated\": \"Activated\",\n    \"activationSuccess\": \"アカウントが有効化されていると、ログインページにリダイレクトされます。\",\n    \"active\": \"active\",\n    \"activeCapital\": \"Active\",\n    \"activeSubscription\": \"有効なサブスクリプション\",\n    \"add\": \"Add\",\n    \"addCollaborator\": \"Add Collaborator\",\n    \"addDomain\": \"Add Domain\",\n    \"addMember\": \"Add Member\",\n    \"addMembers\": \"Add Members\",\n    \"addName\": \"Add Name\",\n    \"addNamespace\": \"名前空間の追加\",\n    \"addNewNamespace\": \"以下に名前空間が追加できます\",\n    \"addNewTeam\": \"新しいチームの追加\",\n    \"addOrgName\": \"Add Organization Name\",\n    \"addProject\": \"Add Project\",\n    \"addSSOMembers\": \"Add SSO members\",\n    \"addTags\": \"Add tags\",\n    \"addTeam\": \"チームの追加\",\n    \"addTeamMember\": \"Add Team Member\",\n    \"addTeamMemberDesc\": \"Add Users to this team\",\n    \"addTeamProjectDesc\": \"Add Projects to this team\",\n    \"addToTeams\": \"Add to Teams\",\n    \"addToTeamsDesc\": \"Here you can add a particular user to the team\",\n    \"addUser\": \"Add User\",\n    \"addUsers\": \"Add Users\",\n    \"addedNamespaces\": \"Added Namespaces\",\n    \"addedOn\": \"Added on\",\n    \"addedSSOMembersToOrg\": \"Created members from SSO emails\",\n    \"addedSuccessfully\": \"added successfully\",\n    \"admin\": \"管理者\",\n    \"adminPermissionProject\": \"Admin permission is required to connect project to JIRA\",\n    \"all\": \"All\",\n    \"allFutureAnalyses\": \"All Future Analyses\",\n    \"allPlatforms\": \"全プラットフォーム\",\n    \"allProjects\": \"All Projects\",\n    \"allScans\": \"全診断\",\n    \"allUploads\": \"全アップロード\",\n    \"allowEdit\": \"Allow Edit\",\n    \"alreadyHaveAccount\": \"すでにアカウントをお持ちですか？\",\n    \"amountPaid\": \"支払い金額\",\n    \"analysisSettings\": \"Analysis Settings\",\n    \"analytics\": \"Analytics\",\n    \"analyzing\": \"分析中\",\n    \"anyDevice\": \"Any Device\",\n    \"anyVersion\": \"Any Version\",\n    \"api\": \"API\",\n    \"apiKey\": \"API Key\",\n    \"apiScan\": \"API診断\",\n    \"apiURLFilter\": \"API URLフィルタ\",\n    \"apis\": \"APIs\",\n    \"app\": \"アプリ\",\n    \"appCenterPipeline\": \"App Center Build\",\n    \"appMonitoring\": \"Store Monitoring\",\n    \"appMonitoringDescription\": \"Once enabled, our platform will monitor for any unscanned versions of your applications on Google Play Store or Apple App Store. If any such applications are found, the list below will be updated automatically at 24 hour intervals.\",\n    \"appMonitoringHeading\": \"Store Monitoring Setting\",\n    \"appMonitoringMessages\": {\n      \"emptyResults\": {\n        \"body\": \"We are looking for unscanned versions of your applications on Playstore or Appstore. This data will be available to you in some time.\",\n        \"header\": \"Store Monitoring is Initiated\"\n      },\n      \"monitoringDetailsEmpty\": {\n        \"body\": \"This application could not be located on the Play Store or App Store.\"\n      },\n      \"monitoringHistoryEmpty\": {\n        \"body\": \"No history information was found for this application.\"\n      },\n      \"noOrgProjects\": {\n        \"body\": \"Upload a Project and then Enable the Store Monitoring Setting to initiate the monitoring of your applications in Playstore or Appstore.\",\n        \"header\": \"No Projects Uploaded\"\n      },\n      \"pendingStateLoadingText\": \"Store monitoring has been initiated for this application for the first time. Kindly visit this page after 24hrs to check the results\"\n    },\n    \"appMonitoringModule\": {\n      \"actionsInfo\": \"Initiate Upload button will be available in instances where an Unscanned version of the app was detected.\",\n      \"appStatus\": \"App status\",\n      \"applicationName\": \"Application Name\",\n      \"checkDetails\": \"Check Details\",\n      \"countryCode\": \"Country Code\",\n      \"foundOn\": \"Found On\",\n      \"initiateScan\": \"Initiate Scan\",\n      \"initiateUpload\": \"Initiate Upload\",\n      \"lastMonitoredOn\": \"Last monitored on\",\n      \"lastUploadAttemptText\": \"Upload was last attempted on\",\n      \"latestScannedVersion\": \"Latest Scanned Version\",\n      \"monitoringAction\": \"Monitoring Action\",\n      \"monitoringDetails\": \"Monitoring Details\",\n      \"monitoringHistory\": \"Monitoring History\",\n      \"monitoringStatus\": \"Monitoring Status\",\n      \"multiGeoToolTip\": {\n        \"bodyText\": \"Click on this row to get more details.\",\n        \"headerText\": \"Multiple versions detected.\"\n      },\n      \"retryUpload\": \"Retry Upload\",\n      \"scannedOnAppknox\": \"Scanned on Appknox\",\n      \"storeVersion\": \"Store Version\",\n      \"syncInProgress\": \"Sync in progress\"\n    },\n    \"appOrS\": \"アプリ\",\n    \"appiumFileUploadedSuccessfully\": \"File Uploaded Successfully\",\n    \"appiumScheduledAutomation\": \"Schedule Automation\",\n    \"appiumScheduledAutomationSuccessOff\": \"Scheduled dynamic scan automation turned OFF\",\n    \"appiumScheduledAutomationSuccessOn\": \"Scheduled dynamic scan automation turned ON\",\n    \"appiumScriptInvalid\": \"Invalid script file. Please upload a valid Appium project\",\n    \"appiumScripts\": \"Appium scripts\",\n    \"appiumScriptsDescription\": \"As a part of our upcoming automated dynamic scan feature, we are currently supporting <strong>scheduled dynamic scans</strong> option using Appium scripts. Upload your app's Appium test scripts here as a zip file, dynamic scans would be automatically scheduled for all your future app uploads in this project.\",\n    \"appiumScriptsSchedNote\": \"Scheduled dynamic scans may take upto 24 hours to be completed.\",\n    \"appleAppStore\": \"Apple App Store\",\n    \"application\": \"Application\",\n    \"approvalRequest\": \"Approval Request\",\n    \"approvalStatus\": \"Approval\",\n    \"approve\": \"Approve\",\n    \"apps\": \"アプリ\",\n    \"assignTeam\": \"Assign Team\",\n    \"asvs\": \"ASVS\",\n    \"asvsExpansion\": \"Application Security Verification Standard\",\n    \"attachments\": \"添付ファイル\",\n    \"author\": \"Author\",\n    \"automated\": \"Automated\",\n    \"available\": \"available\",\n    \"availableCredits\": \"Available Scan Credits\",\n    \"azurePipeline\": \"Azure Pipeline\",\n    \"back\": \"Back\",\n    \"backToTeams\": \"Back to teams\",\n    \"beta\": \"Beta\",\n    \"billing\": \"料金プラン\",\n    \"billingPeriod\": \"支払い請求周期\",\n    \"bitbucketPipeline\": \"Bitbucket Pipeline\",\n    \"bitriseWorkflow\": \"Bitrise Workflow\",\n    \"browseFiles\": \"browse files\",\n    \"businessImplication\": \"ビジネスへの影響\",\n    \"by\": \"by\",\n    \"cancel\": \"キャンセル\",\n    \"cancelSubsciption\": \"サブスクリプションのキャンセル\",\n    \"capturedApiEmptyDesc\": \"1. Make sure you go through all views of the app during the dynamic scan<br>2. Check if correct API URL filters are set<br>3. Ensure SSL pinning is not enabled in app\",\n    \"capturedApiEmptyTitle\": \"No APIs captured during the last dynamic scan. Please try again\",\n    \"capturedApiSaveSuccessMsg\": \"Successfully saved the captured api status\",\n    \"capturedApiTitle\": \"Captured APIs\",\n    \"certificate\": \"Certificate\",\n    \"changeDevice\": \"デバイスの変更\",\n    \"changeMFAMethod\": \"Change Multi Factor Authentication Method\",\n    \"changePassword\": \"パスワードの変更\",\n    \"changeRole\": \"役割の変更\",\n    \"changedMandatoryMFA\": \"Changed MFA setting\",\n    \"chatSupport\": \"Chat Support\",\n    \"checking\": \"Checking\",\n    \"chipStatus\": {\n      \"active\": \"ACTIVE\",\n      \"completed\": \"COMPLETED\",\n      \"failed\": \"FAILED\",\n      \"inProgress\": \"IN PROGRESS\",\n      \"inactive\": \"INACTIVE\",\n      \"neverInitiated\": \"NEVER INITIATED\",\n      \"notFound\": \"NOT FOUND\",\n      \"notScanned\": \"NOT SCANNED\",\n      \"outdated\": \"OUTDATED\",\n      \"pending\": \"PENDING\",\n      \"secure\": \"SECURE\",\n      \"vulnerable\": \"VULNERABLE\"\n    },\n    \"chooseAFile\": \"比較するファイルを選択してください\",\n    \"circleCIPipeline\": \"Circle CI Pipeline\",\n    \"clickHere\": \"Click here\",\n    \"clickOnDynamicScan\": \"動的診断の開始をクリック\",\n    \"clickingHere\": \"clicking here\",\n    \"client\": \"Client\",\n    \"clients\": \"Clients\",\n    \"close\": \"Close\",\n    \"closeModal\": \"全画面を終了\",\n    \"collaboratorRemoved\": \"Removed Collaborator\",\n    \"collaborators\": \"Collaborators\",\n    \"collapse\": \"Collapse\",\n    \"comingSoon\": \"Coming soon\",\n    \"comment\": \"Comment\",\n    \"comments\": \"Comments\",\n    \"company\": \"Company\",\n    \"companyName\": \"会社名\",\n    \"compare\": \"比較\",\n    \"completed\": \"完了しました\",\n    \"complianceInsights\": \"Compliance Insights\",\n    \"compliantSolution\": \"Compliant Solution\",\n    \"confirm\": \"Confirm\",\n    \"confirmBox\": {\n      \"cancelSubsciption\": \"サブスクリプションをキャンセルしてよろしいですか？\",\n      \"deleteInvitation\": \"Are you sure you want to delete this invitation?\",\n      \"rejectNamespace\": \"Are you sure you want to delete this namespace?\",\n      \"removeJIRA\": \"JIRAプロジェクトを削除してもよろしいですか？\",\n      \"removeProject\": \"Githubプロジェクトを削除してもよろしいですか？\",\n      \"removeProjectCollaborator\": \"Are you sure you want to remove this collaborator?\",\n      \"removeProjectTeam\": \"Are you sure you want to remove this team from project?\",\n      \"removeTeamProject\": \"Are you sure you want to remove this project from team?\",\n      \"removeURL\": \"URLフィルタから削除してもよろしいですか？\",\n      \"removeUser\": \"Are you sure you want to remove this user from team?\",\n      \"removeUserRole\": \"Are you sure you want to remove this role?\",\n      \"resendInvitation\": \"Are you sure you want to resend this invitation?\",\n      \"revokeGithub\": \"Githubとの連携を解除してもよろしいですか？\",\n      \"revokeJira\": \"JIRAとの連携を解除してもよろしいですか？\",\n      \"revokePersonalToken\": \"パーソナルアクセストークンを削除してよろしいですか？\"\n    },\n    \"confirmPassword\": \"新しいパスワード(確認)\",\n    \"confirmTransfer\": \"Confirm Transfer\",\n    \"confirmation\": \"Confirmation\",\n    \"contactUs\": \"Contact Us\",\n    \"container\": \"Container\",\n    \"continue\": \"続ける\",\n    \"copy\": \"コピー\",\n    \"countries\": \"Countries\",\n    \"country\": \"Country\",\n    \"createAccount\": \"Create Account\",\n    \"createTeam\": \"チームの作成\",\n    \"createTeamInputLabel\": \"Here you can enter the team name\",\n    \"created\": \"作成されました\",\n    \"createdOn\": \"作成日\",\n    \"credentialsNotUpdated\": \"資格情報の更新中に問題が発生しました\",\n    \"credentialsUpdated\": \"資格情報が更新されました\",\n    \"creditAddPurchase\": \"Please contact support for purchasing scan credits\",\n    \"creditTransfer\": \"Credit Transfer\",\n    \"creditTransferError\": \"Couldn't transfer credits, please try again later!\",\n    \"creditTransferNotSupported\": \"Scan credit sharing is currently not supported in your payment plan (per-app). Please contact support for transferring credits to clients.\",\n    \"creditTransferSuccess\": \"Credits transferred to the client successfully\",\n    \"critical\": \"クリティカル\",\n    \"currentCredits\": \"Current Credits\",\n    \"currentFileOnly\": \"Current File Only\",\n    \"currentPassword\": \"現在のパスワード\",\n    \"currentPlan\": \"現在のプラン\",\n    \"cvss\": \"CVSS\",\n    \"cvssExpansion\": \"Common Vulnerability Scoring System\",\n    \"cvssMetrics\": \"CVSS Metrics\",\n    \"cvssV3\": \"CVSSv3\",\n    \"cwe\": \"CWE\",\n    \"cweExpansion\": \"Common Weakness Enumeration\",\n    \"dastAutomation\": {\n      \"addScenario\": \"Add Scenario\",\n      \"automationScenarios\": \"Automation Scenarios\",\n      \"clickToEdit\": \"Click to edit value\",\n      \"dastAutomationScenario\": \"DAST Automation Scenario\",\n      \"deleteDefaultScenarioInfo\": \"You cannot delete a default scenario.\",\n      \"enterScenarioName\": \"Enter scenario name\",\n      \"enterType\": \"Enter Type\",\n      \"inputType\": \"Input Type\",\n      \"inputTypeColumnHeaderInfo\": \"<strong>Example values for Input Type</strong> are <br /> Username, Password or Email ID etc...\",\n      \"inputValue\": \"Input Value\",\n      \"maskParameterText\": \"Marking this value as secure will irreversibly mask the value. Are you sure you want to proceed?\",\n      \"noParamaterAvailable\": \"No input parameters exist for this scenario. Use the Input Type and Input Value fields above to create the parameters for this scenario.\",\n      \"noScenariosFound\": \"No scenarios found.\",\n      \"paramDeleteSuccess\": \"Parameter deleted successfully\",\n      \"paramEditSuccess\": \"Parameter edited successfully\",\n      \"paramTypeDupText\": \"<strong>Input type - \\\"{type}\\\"</strong> already exists. Kindly use a different input type.\",\n      \"parameterAdded\": \"Parameter added successfully\",\n      \"parameterDeleteConfirm\": \"Would you like to delete this config under <strong>Scenario - {scenarioName}?</strong>\",\n      \"scenarioAdded\": \"Scenario added\",\n      \"scenarioDeleteConfirm\": \"Would you like to delete <strong>Scenario - {scenarioName}?</strong>\",\n      \"scenarioDeleted\": \"Scenario - \\\"{scenarioName}\\\" deleted\",\n      \"scenarioListDesc\": \"Create multiple scenarios and configure them with the necessary settings for utilization in the automation of Dynamic Application Security Testing (DAST)\",\n      \"scenarioStatusUpdated\": \"Scenario status updated successfully\",\n      \"statusColumnToggleInfo\": \"Use this toggle to Activate/Deactivate a scenario. Only Active scenarios will be used for executing DAST automation.\",\n      \"unmaskNotAllowed\": \"You cannot unmask a masked field value.\"\n    },\n    \"date\": \"日付\",\n    \"dateCreated\": \"作成日\",\n    \"dateUpdated\": \"更新日\",\n    \"day\": \"Day\",\n    \"deactivateUser\": \"Deactivate User\",\n    \"deactivateUserDesc\": \"In order to deactivate the user, click on the button below.\",\n    \"deactivated\": \"Deactivated\",\n    \"delete\": \"削除\",\n    \"deleteDomain\": \"Delete Domain\",\n    \"deleteInvitation\": \"delete invitation\",\n    \"deleteTeam\": \"チームを削除\",\n    \"deletedInvitationOf\": \"Deleted invitation of\",\n    \"description\": \"説明\",\n    \"details\": \"詳細\",\n    \"developer\": \"開発者\",\n    \"developerSettings\": \"開発者向け設定\",\n    \"device\": \"Device\",\n    \"deviceBooting\": \"起動中\",\n    \"deviceCompleted\": \"完了しました\",\n    \"deviceDownloading\": \"ダウンロード中\",\n    \"deviceHooking\": \"フック中\",\n    \"deviceInQueue\": \"順番待ち\",\n    \"deviceInstalling\": \"インストール中\",\n    \"deviceIsReady\": \"デバイスの接続準備ができました\",\n    \"deviceLaunching\": \"開始中\",\n    \"deviceNotFound\": \"デバイスが見つかりませんでした\",\n    \"devicePreferences\": \"デバイスの設定\",\n    \"deviceSelected\": \"デバイスを選択しました\",\n    \"deviceShuttingDown\": \"停止中\",\n    \"deviceType\": \"デバイスタイプ\",\n    \"devicefarm\": \"Devicefarm\",\n    \"disable\": \"Disable\",\n    \"disableMFA\": \"MFAの無効化\",\n    \"disableMFADenied\": \"MFA can not be disabled for this user account since your organization has mandated MFA for all members.\",\n    \"disableThisIn\": \"You can disable this in\",\n    \"disabled\": \"無効\",\n    \"disconnect\": \"Disconnect\",\n    \"domainDeleted\": \"Domain Deleted\",\n    \"dontHaveAccount\": \"Don't have an account?\",\n    \"download\": \"ダウンロード\",\n    \"downloadClientsStatData\": \"Download Clients Statistics Data\",\n    \"downloadPrevReport\": \"Download Previous Report\",\n    \"downloadReport\": \"Download Report\",\n    \"downloadUrlNotFound\": \"Couldn't download the report!\",\n    \"dragDropFile\": \"Drag & drop file\",\n    \"dynScanAutoSchedNote\": \"Once you have created a scenario and added the relevant input parameters, turn on this toggle to schedule Automated Dynamic Scans. It may take up to 24hrs for the Automated Dynamic Scans to be completed.\",\n    \"dynamic\": \"動的\",\n    \"dynamicScan\": \"動的診断\",\n    \"dynamicScanAutomation\": \"Dynamic Scan Automation\",\n    \"dynamicScanExtentionLimit\": \"Scan duration can be extended once 15 mins are remaining\",\n    \"dynamicScanStart\": \"動的診断を開始\",\n    \"dynamicScanStop\": \"動的診断を停止\",\n    \"dynamicScanText\": \"Please refresh the page if the scan doesn't start in 1-2 mins\",\n    \"dynamicShutDown\": \"動的診断を終了\",\n    \"edit\": \"Edit\",\n    \"editAccess\": \"Edit Access\",\n    \"editAnalyses\": \"Edit Analyses\",\n    \"editAnalysis\": \"Edit Analysis\",\n    \"editAnalysisOverrideDescription\": \"You can override the severity of this issue here.\",\n    \"editName\": \"Edit Name\",\n    \"editProjectSettings\": \"Edit Project Settings\",\n    \"editTeamName\": \"Edit Team Name\",\n    \"editTeamNameInputLabel\": \"Here you can edit the team name\",\n    \"email\": \"Eメール\",\n    \"emailCode\": \"Enter the code from the email in the field below.\",\n    \"emailDomainRestriction\": \"Email Domain Restriction for Invitations\",\n    \"emailId\": \"Email ID\",\n    \"emailOTP\": \"We've sent a OTP code to your email.\",\n    \"emailOrUsername\": \"Eメール/ユーザ名\",\n    \"emailRestrictDesc\": \"Whitelist email domains which are allowed to be invited as organization users. If not set all domains will be allowed.\",\n    \"emptyEmailId\": \"メールIDを入力してください\",\n    \"emptyURL\": \"URLフィルタを入力してください\",\n    \"emptyURLFilter\": \"Enter host name\",\n    \"enHTMLReport\": \"EN HTML Report\",\n    \"enable\": \"Enable\",\n    \"enableMFA\": \"MFAの有効化\",\n    \"enableMandatoryMFADescription\": \"By enabling this you are mandating multi factor authentication for all users in this organization. Users who do not have MFA enabled in their user account will receive OTP via the registered email.\",\n    \"enableMandatoryMFARequirement\": \"For enabling mandatory MFA for organization, you need to have MFA enabled for your user account. Enable it from here:\",\n    \"enableMandatoryMFATitle\": \"Enable mandatory multi factor authentication\",\n    \"enableMandatoryMFAWarning\": \"This setting will affect login process of every user of this organization.\",\n    \"enabled\": \"有効\",\n    \"enfoceSSO\": \"Enforce SSO\",\n    \"enterNamespace\": \"Enter the namespace\",\n    \"enterOTP\": \"6桁のOTPを入力してください\",\n    \"enterRightTeamName\": \"削除するチーム名を正確に入力してください\",\n    \"enterRightUserName\": \"削除するユーザ名を正確に入力してください\",\n    \"enterTagName\": \"Enter Tag Name\",\n    \"enterTeamName\": \"チーム名を入力してください\",\n    \"enterTokenName\": \"トークン名を入力してください\",\n    \"enterValidPassword\": \"有効なパスワードを入力してください\",\n    \"enterValidURL\": \"有効なURLを入力してください\",\n    \"entityID\": \"Entity ID\",\n    \"error\": \"Error\",\n    \"errorCouldNotLoadData\": \"Error: Could not load data\",\n    \"errorMessage\": \"Error message\",\n    \"errorWhileFetching\": \"署名付きURLの取得時にエラー\",\n    \"errorWhileUploading\": \"事前署名付きURLへのファイルのアップロード中にエラー\",\n    \"errored\": \"Errored\",\n    \"excelReport\": \"Excel Report\",\n    \"expand\": \"Expand\",\n    \"experimentalFeature\": \"Experimental Feature\",\n    \"expired\": \"期限切れ\",\n    \"expiredOn\": \"Expired on\",\n    \"expires\": \"Expires\",\n    \"expiresOn\": \"Expires on\",\n    \"expiring\": \"期限切れ\",\n    \"expiry\": \"Expiry\",\n    \"exportCSV\": \"Export CSV\",\n    \"exports\": \"Exports\",\n    \"failed\": \"Failed\",\n    \"failedGitHubProject\": \"Something went wrong in getting the integrated project.\",\n    \"falsePositive\": \"Is this a false positive? you can override this analysis here\",\n    \"fetchGitHubRepoFailed\": \"リポジトリリストの取得時に問題が発生しました\",\n    \"fetchProjectFailed\": \"プロジェクトリストの取得時に問題が発生しました\",\n    \"file\": \"File\",\n    \"fileCleanup\": {\n      \"activeCount\": \"Files to keep active\",\n      \"autoCleanup\": \"Auto cleanup\",\n      \"description\": \"Enabling this will delete application binaries for files which are not in the <n> recent uploads per project. Files for which the deletion is processed will be marked as inactive. Files marked as inactive will not allow future scans to be performed on it.\",\n      \"lastActivity\": \"Last Activity\",\n      \"listTitle\": \"File Cleanup Activities\",\n      \"msg\": {\n        \"saveError\": \"Problem while updating\",\n        \"saveSuccess\": \"Cleanup preference updated!\",\n        \"triggerError\": \"Problem with trigger\",\n        \"triggerSuccess\": \"Cleanup initiated!\"\n      },\n      \"noCleanup\": \"No Cleanups found\",\n      \"run\": \"Run CleanUp\",\n      \"status\": \"File cleaned status\",\n      \"title\": \"Automated file cleanup\",\n      \"viewList\": \"View All\"\n    },\n    \"fileCompare\": {\n      \"deselectFile\": \"Deselect one file to select this one\",\n      \"emptyVulnListMsg\": \"No {category} vulnerabilities found\",\n      \"fileSelection\": \"File Selection\",\n      \"nameOfTestCase\": \"Name of Test Case\",\n      \"newIssues\": \"New Issues\",\n      \"noDataAvailable\": \"No Data Available\",\n      \"noTagsMessage\": \"<em>No tags available.</em>\",\n      \"nonExistentTestCase\": \"Test case did not exist in this file\",\n      \"notFoundText\": \"One or both of the files being compared doesn't exist\",\n      \"recurringIssues\": \"Recurring Issues\",\n      \"resolvedIssues\": \"Resolved Issues\",\n      \"selectAFile\": \"Select a File\",\n      \"selectCompareFile\": \"Select One More File ID\",\n      \"summary1\": \"You are comparing file of ID\",\n      \"summary2\": \"with file of ID\",\n      \"untestedIssues\": \"Untested Issues\",\n      \"uploadMoreFileDescription\": \"As it is the first upload of this app, you will only be able to view Key Insights in the subsequent uploads.\"\n    },\n    \"fileCount\": \"ファイル数\",\n    \"fileDetails\": \"ファイルの詳細\",\n    \"fileID\": \"File ID\",\n    \"fileInactive\": \"File Inactive\",\n    \"fileLevel\": \"File Level\",\n    \"fileList\": {\n      \"selectFilesHeaderText\": \"View all the files uploaded under this Project. Select any 2 files to compare the scan results.\"\n    },\n    \"fileOverview\": \"File Overview\",\n    \"fileReport\": {\n      \"detailedReport\": \"Detailed Report ({reportType})\",\n      \"generateReportCTAText\": \"Kindly click on the button below to generate the Vulnerability Assessment report.\",\n      \"generateReportLoaderText\": \"Generating VA Reports\",\n      \"goToLatestFile\": \"Go to Latest File\",\n      \"noPasswordRequired\": \"No Password Required\",\n      \"noSbomReportAvailable\": \"SBOM analysis does not exist for this file. Please check the latest file or upload the app now to initiate the SBOM analysis.\",\n      \"previousReport\": \"Previous Report ({reportType})\",\n      \"reportDrawerHeaderText\": \"You can download different types of scan reports here.\",\n      \"reportPassword\": \"Report Password - {password}\",\n      \"sampleJsonReportText\": \"Sample Cyclone DX (json) report\",\n      \"samplePDFReportText\": \"Sample Detailed PDF report\",\n      \"sbomReportInProgress\": \"SBOM analysis for this file is still in progress. Please check back after a few minutes.\",\n      \"sbomReports\": \"SBOM Reports\",\n      \"sbomSampleContactSuccessMsg\": \"Thanks for requesting the free trial of SBOM. Someone from our team will get in touch with you shortly.\",\n      \"sbomSampleReportText1\": \"Gain visibility into the software components used in your app and proactively manage vulnerabilities.\",\n      \"sbomSampleReportText2\": \"to activate a free trial of SBOM.\",\n      \"summaryReport\": \"Summary Report ({reportType})\",\n      \"vaReports\": \"VA Reports\",\n      \"viewSbomDetails\": \"View SBOM details\"\n    },\n    \"fileTag\": {\n      \"addedSuccessMsg\": \"Tag added\",\n      \"blankErrorMsg\": \"Tag value cannot be blank\",\n      \"deletedSuccessMsg\": \"Tag deleted\"\n    },\n    \"fileUploadedSuccessfully\": \"ファイルがアップロードされました。ファイルを処理していますのでお待ちください。\",\n    \"fileVulnerabilityDetailsDescription\": \"Here you can view the issues detected for each test cases\",\n    \"fileVulnerabilityEmpty\": {\n      \"description\": \"It is due to <em>Hide Untested Analysis</em> being set to Yes, on the Analysis Settings page of this project.\",\n      \"title\": \"Test cases are not visible\"\n    },\n    \"files\": \"ファイル\",\n    \"filterBy\": \"フィルタリングする\",\n    \"fingerprints\": \"Fingerprints\",\n    \"firmware\": \"Firmware\",\n    \"first\": \"最初\",\n    \"firstName\": \"First name\",\n    \"for\": \"for\",\n    \"forgotPassword\": \"パスワードを忘れました\",\n    \"framework\": \"Framework\",\n    \"fromDate\": \"From Date\",\n    \"fullName\": \"Full name\",\n    \"gdpr\": \"GDPR\",\n    \"gdprExpansion\": \"General Data Protection Regulation\",\n    \"general\": \"一般\",\n    \"generalSettings\": \"General Settings\",\n    \"generateNewReport\": \"Generate New Report\",\n    \"generateReport\": \"Generate Report\",\n    \"generatedOn\": \"Generated on\",\n    \"generating\": \"Generating\",\n    \"generatingReport\": \"Generating Report\",\n    \"ghPageConfigure\": \"GitHub連携設定ページ\",\n    \"github\": \"GitHub\",\n    \"githubAction\": \"Github Action\",\n    \"githubErrorIntegration\": \"Intergration failed, please contact support\",\n    \"githubIntegration\": \"GitHub連携\",\n    \"githubIntegrationDesc\": \"Here you can intergrate your GitHub Account\",\n    \"githubNoProject\": \"Linked Github account doesn't have any projects\",\n    \"githubWillBeRevoked\": \"GitHub認証は直ちに取り消されます\",\n    \"gitlab\": \"GitLab\",\n    \"googlePlayStore\": \"Google Play Store\",\n    \"gotoHome\": \"ホームに戻る\",\n    \"gotoSettings\": \"is not integrated, integrate by\",\n    \"halfYearly\": \"６か月\",\n    \"halt\": \"診断を停止して、サポートに連絡してください\",\n    \"hangInThere\": \"URLを処理する間、そのままお待ちください\",\n    \"hiddenAnalysis\": \"HIDDEN ANALYSIS\",\n    \"hideVulnerability\": \"脆弱性を非表示にする\",\n    \"high\": \"高\",\n    \"hipaa\": \"HIPAA\",\n    \"hipaaExpansion\": \"Health Insurance Portability and Accountability Act\",\n    \"host\": \"Host\",\n    \"howAndWhat\": \"どのように？\",\n    \"howToFix\": \"How to fix ?\",\n    \"identification\": \"ユーザ名/Eメール\",\n    \"identityProvider\": \"Identity Provider\",\n    \"idpMetadata\": \"IdP Metadata\",\n    \"idpMetadataDelete\": \"Delete IdP Metadata Config\",\n    \"idpMetadataEdit\": \"Edit IdP Metadata XML if any change is required before uploading:\",\n    \"idpMetadataUpload\": \"Upload your IdP Metadata XML file\",\n    \"impact\": \"Impact\",\n    \"improved\": \"改善\",\n    \"inProgress\": \"In Progress\",\n    \"inactive\": \"inactive\",\n    \"inactiveCapital\": \"Inactive\",\n    \"includeInactiveMembers\": \"Include inactive users\",\n    \"info\": \"Info\",\n    \"installAppknoxPluginTo\": \"Install plugin to \",\n    \"integrateAppknoxTo\": \"Integrate to \",\n    \"integrateAppknoxToCICDPipeline\": \"Integrate To CI/CD Pipeline\",\n    \"integrateGithub\": \"GitHubと連携する\",\n    \"integrateJIRA\": \"JIRAと連携する\",\n    \"integratedGithub\": \"このプロジェクトはGitHubリポジトリと連携されています\",\n    \"integratedJIRA\": \"このプロジェクトはJIRAプロジェクトと連携されています\",\n    \"integration\": \"連携\",\n    \"integrationCompleted\": \"連携が完了しました\",\n    \"integrationFailed\": \"Something went wrong, kindly reconnect.\",\n    \"integrationsPermissionDenied\": \"You dont have permission to add integrations. Please contact your organization admin\",\n    \"invalidCredits\": \"Invalid Credits\",\n    \"invalidOTP\": \"Please enter a valid OTP\",\n    \"invalidPassword\": \"パスワードが正しくありません\",\n    \"invalidPayment\": \"Invalid payment\",\n    \"invalidProject\": \"Please select valid project\",\n    \"invalidRisk\": \"Please select valid risk value\",\n    \"invalidURL\": \"は無効なURLです\",\n    \"invitationDeleted\": \"Invitation is deleted successfully\",\n    \"invitationReSent\": \"Invitation re-sent successfully\",\n    \"invitationRegisterConfirmation\": \"Thank you for registering with us. Please login to continue.\",\n    \"invitationSent\": \"Invitation sent successfully\",\n    \"invitations\": \"Invitations\",\n    \"invite\": \"招待\",\n    \"inviteClient\": \"Invite Client\",\n    \"inviteClients\": \"Invite Clients\",\n    \"inviteMember\": \"Invite Member\",\n    \"inviteMembers\": \"Invite Members\",\n    \"inviteType\": \"Invite type\",\n    \"inviteUserMultipleEmailHelperText\": \"Separate Multiple Email ID Using Commas (,):\",\n    \"inviteUsers\": \"Invite Users\",\n    \"invited\": \"Invited\",\n    \"invitedOn\": \"Invited on\",\n    \"invitee\": \"Invitee\",\n    \"invites\": \"Invites\",\n    \"invoice\": \"請求書\",\n    \"invoiceId\": \"請求書ID\",\n    \"invoices\": \"請求書\",\n    \"issuedOn\": \"Issued On\",\n    \"issuer\": \"Issuer\",\n    \"jaHTMLReport\": \"JA HTML Report\",\n    \"jenkinsPipeline\": \"Jenkins Pipeline\",\n    \"jira\": \"JIRA\",\n    \"jiraHost\": \"JIRAホスト\",\n    \"jiraIntegrated\": \"JIRAと連携されました\",\n    \"jiraIntegration\": \"JIRA連携\",\n    \"jiraIntegrationDesc\": \"Here you can intergrate your JIRA Account\",\n    \"jiraNoProject\": \"Linked JIRA account doesn't have any projects\",\n    \"jiraPageConfigure\": \"JIRA連携設定ページ\",\n    \"jiraWillBeRevoked\": \"JIRA認証は直ちに取り消されます\",\n    \"keyInsightDesc\": {\n      \"part1\": \"Based on the comparison with previous\",\n      \"part2\": \"uploaded on <strong>{uploadedOn}</strong>, there are:\"\n    },\n    \"keyInsights\": \"Key Insights\",\n    \"knowledgeBase\": \"Knowledge Base\",\n    \"language\": \"言語\",\n    \"last\": \"最終\",\n    \"lastLoggedIn\": \"Last logged in\",\n    \"lastName\": \"Last name\",\n    \"lastUpload\": \"Last upload\",\n    \"leastRecent\": \" (古い順)\",\n    \"lessDetails\": \"less details\",\n    \"library\": \"Library\",\n    \"license\": \"License\",\n    \"loading\": \"読み込み中\",\n    \"loadingTeam\": \"Loading Team\",\n    \"login\": \"ログイン\",\n    \"logout\": \"ログアウト\",\n    \"low\": \"低\",\n    \"manager\": \"マネージャー\",\n    \"manual\": \"手動\",\n    \"manualRequested\": \"手動診断がリクエストされました\",\n    \"manualScan\": \"手動診断\",\n    \"manualSettings\": \"Manual Settings\",\n    \"markAnalysis\": \"Mark Analysis\",\n    \"markItAs\": \"Mark it as\",\n    \"marketplace\": \"Marketplace\",\n    \"marketplaceIntegrationDesc\": \"Connect your development workflow tools to get notified with the vulnerability updates\",\n    \"marketplacePluginDesc\": \"Plug in your CI/CD pipeline to test for security issues on each build\",\n    \"masvs\": \"OWASP MASVS (v2)\",\n    \"masvsExpansion\": \"OWASP Mobile Application Security Verification Standard\",\n    \"medium\": \"中\",\n    \"member\": \"メンバー\",\n    \"memberCount\": \"Members count\",\n    \"memberRole\": \"メンバー\",\n    \"members\": \"メンバー\",\n    \"message\": \"Message\",\n    \"mfaAppDesc\": \"Using time based OTP generated by any 2FA app on your phone.\",\n    \"mfaDescription\": \"Multi Factor Authentication provides another layer of security to your account. Along with password you also need to enter an OTP to log in.\",\n    \"mfaDisabled\": \"マルチファクタ認証が無効になりました\",\n    \"mfaEmailDesc\": \"OTP will be sent to the email address associated with your account.\",\n    \"mfaEnabled\": \"マルチファクタ認証が有効になりました\",\n    \"mfaSelect\": \"Choose one option from the following methods to receive your one-time password\",\n    \"mfaSwitchToAppDescription\": \"Are you sure you want to switch to Authenticator app MFA? <br>You will no longer be receiving OTP via email.\",\n    \"mfaSwitchToAppTitle\": \"Switch to Authenticator app MFA\",\n    \"mfaSwitchToEmailDescription\": \"Are you sure you want to switch to email MFA? <br>OTP from authenticator app will no longer work.\",\n    \"mfaSwitchToEmailTitle\": \"Switch to email MFA\",\n    \"modalCard\": {\n      \"addMember\": {\n        \"title\": \"メンバーを追加\"\n      },\n      \"addProject\": {\n        \"title\": \"Add project to team\"\n      },\n      \"apiScan\": {\n        \"description\": \"We will run API scan for web vulnerabilities on the below list of requests captured during the dynamic scan.\",\n        \"noDynamicScan\": \"Please run dynamic scan with API URL filters set. That will capture APIs required for the API scan\",\n        \"start\": \"Start API Scan\",\n        \"title\": \"API Scan\",\n        \"warning\": \"API scan performs multiple automated tests that may result in <strong>denial of service</strong> or <strong>loss of data</strong>. Do not proceed if the app is configured to use a <strong>production API server</strong>.\"\n      },\n      \"copyPassword\": {\n        \"title\": \"Copy PDF Report Password\"\n      },\n      \"devicePreference\": {\n        \"note\": \"changing the device preference won't affect the already running scan.\",\n        \"selectDevice\": \"デバイスの選択\",\n        \"title\": \"デバイスの設定変更\"\n      },\n      \"disableMFA\": {\n        \"description\": \"マルチファクタ認証を無効にすると、アカウントはパスワードでのみ保護されます。\",\n        \"enterOTP\": \"確認するには、OTPを入力してください\",\n        \"viaApp\": \"from Authenticator app\",\n        \"viaEmail\": \"sent via email\"\n      },\n      \"dynamicScan\": {\n        \"apiScanDescription\": \"During dynamic scan <strong>network traffic made by the app, filtered by the below provided API endpoints</strong> will be recorded. Currently traffic capturing is <strong>not supported for the apps that employ SSL pinning.</strong>\",\n        \"deviceRequirements\": \"App's device requirements\",\n        \"deviceSettingsWarning\": \"Please ensure the mobile device settings remain unchanged during the dynamic scan. Altering device settings outside your application can cause the scanner to malfunction. Kindly refrain from actions such as updating the OS, disconnecting from WiFi, performing factory resets, uninstalling apps or changing system settings.\",\n        \"deviceTypes\": \"Device types\",\n        \"orAbove\": \"or above\",\n        \"osVersion\": \"OS version\",\n        \"processorArchitecture\": \"Processor architecture\",\n        \"runApiScan\": \"Enable API Capture\",\n        \"start\": \"Start Dynamic Scan\",\n        \"title\": \"Dynamic Scan\",\n        \"warning\": \"Make sure you perform all the actions in the App, there are high chances that the scanner might mark the risk as passed\"\n      },\n      \"enableMFAApp\": {\n        \"enterCode\": \"After scanning the barcode image, the app will display a six-digit code, enter that code below.\",\n        \"scanBarcode\": \"あなたのアプリでこのバーコードをスキャンする\"\n      },\n      \"enableMFAEmail\": {\n        \"description\": \"We have sent a security code to email \",\n        \"enterCode\": \"Enter OTP\",\n        \"sendMailMsg\": \"An OTP code will be send to email \"\n      },\n      \"manual\": {\n        \"actions\": \"アクション\",\n        \"addUserRole\": \"ユーザの役割を追加する\",\n        \"additionalComments\": \"追加コメント\",\n        \"appEnv\": \"アプリケーション環境\",\n        \"appName\": \"アプリ名\",\n        \"appQuestion1\": \"一部の機能にアクセスできない、またはアプリケーションに公開されていない機能がある場合は、どうしたらいいですか？\",\n        \"appQuestion1Answer1\": \"再診断を実施しますので、診断を続行し、診断されなかった機能についてレポートで報告してください。\",\n        \"appQuestion1Answer2\": \"診断を停止して、サポートに連絡してください。\",\n        \"basicAppInfo\": \"アプリの基本情報\",\n        \"companyName\": \"会社名\",\n        \"description\": \"手動診断をリクエストするには追加情報が必要となります\",\n        \"enterCredentails\": \"資格情報が必要な場合は、ユーザー名とパスワードを入力してください\",\n        \"enterLoginDetails\": \"アプリにログインするために必要な資格情報を入力してください<b class = 'bold'>（各役割に4つの資格情報が設定されています）</ b>\",\n        \"enterMinOSVersion\": \"OSの最小バージョンを入力してください\",\n        \"enterVPNDetails\": \"VPNアドレスとポートを入力してください\",\n        \"loginDetails\": \"ログインの詳細\",\n        \"loginRequired\": \"あなたのアプリケーションは、ログインするためのアカウントが必要ですか？\",\n        \"minOSVersion\": \"最小OSバージョン\",\n        \"pleaseEnterAllValues\": \"すべての値を入力してください\",\n        \"pleaseEnterUserRoles\": \"ユーザの役割を入力してください\",\n        \"pleaseEnterVPNDetails\": \"VPNの詳細を入力してください\",\n        \"poc\": \"手動診断に関する問い合わせ窓口\",\n        \"roleAdded\": \"役割が追加されました\",\n        \"title\": \"手動診断をリクエストする\",\n        \"userRoles\": \"ユーザの役割を追加する\",\n        \"vpnAddress\": \"VPNアドレス\",\n        \"vpnDetails\": \"VPNの詳細\",\n        \"vpnPort\": \"ポート\",\n        \"vpnRequired\": \"クライアントからアプリのサーバーにアクセスするにはVPN/プロキシが必要ですか？\"\n      },\n      \"mfaTitle\": {\n        \"change\": \"Change Multi Factor Authentication\",\n        \"disable\": \"Disable Multi Factor Authentication\",\n        \"enable\": \"Enable Multi Factor Authentication\"\n      },\n      \"orgModal\": {\n        \"title\": \"Please enter organization name\"\n      },\n      \"requestAccess\": {\n        \"button\": \"Request Access\",\n        \"description\": \"Trial account does not have access to this feature\",\n        \"title\": \"Request Access\"\n      },\n      \"rescan\": {\n        \"description\": \"Do you want to do the static scan again?\",\n        \"title\": \"Re-scan Static Scan\"\n      },\n      \"runAPIScan\": {\n        \"capturedWarning\": \"Run Dynamic Scan first\",\n        \"description\": \"キャプチャしたAPIスキャンを実行する\",\n        \"noCapturedAPIsData\": \"Oops, no captured API's found during dynamic scan\",\n        \"runScan\": \"動的＆API診断の実行\",\n        \"title\": \"API診断の実行\"\n      }\n    },\n    \"month\": \"か月\",\n    \"monthWithNum\": \"{numMonths, plural, =0 {0 か月} =1 {1 か月} other {# か月}}\",\n    \"monthly\": \"１か月\",\n    \"moreDetails\": \"more details\",\n    \"mostRecent\": \" (新しい順)\",\n    \"movedRequestToPending\": \"Moved request to pending\",\n    \"mstg\": \"MSTG\",\n    \"mstgExpansion\": \"Mobile Security Testing Guide\",\n    \"multiFactorAuth\": \"マルチファクタ認証\",\n    \"multiFactorAuthSubtitle\": \"Mandatory multi factor authentication\",\n    \"name\": \"名前\",\n    \"nameIDFormat\": \"Name ID Format\",\n    \"namespace\": \"名前空間\",\n    \"namespaceApproved\": \"Namespace approved successfully\",\n    \"namespaceRejected\": \"Namespace rejected successfully\",\n    \"namespaces\": \"名前空間\",\n    \"networkError\": \"ネットワークエラーが発生しました。再度お試しください。\",\n    \"never\": \"Never\",\n    \"new\": \"new\",\n    \"newCredits\": \"New Credits\",\n    \"newPassword\": \"新しいパスワード\",\n    \"newScan\": \"新規診断\",\n    \"newScanStarted\": \"New scan started, Click here to show\",\n    \"next\": \"次\",\n    \"nist\": \"NIST\",\n    \"nistExpansion\": \"National Institute of Standards and Technology\",\n    \"nistsp800171\": \"NIST SP 800-171\",\n    \"nistsp80053\": \"NIST SP 800-53\",\n    \"no\": \"いいえ\",\n    \"noActionRequired\": \"<em>No Action Required</em>\",\n    \"noArchive\": \"No Archive Generated Yet...\",\n    \"noArchiveExports\": \"No Archive Exports\",\n    \"noClientUploads\": \"This client has not uploaded any apps\",\n    \"noClients\": \"No clients\",\n    \"noCollaborators\": \"No Collaborators\",\n    \"noDataAvailable\": \"No Data Available\",\n    \"noDeviceAvailable\": \"使用可能なデバイスがありません\",\n    \"noFileSelected\": \"No file selected\",\n    \"noFiles\": \"ファイルがありません\",\n    \"noInvitations\": \"No pending invitations\",\n    \"noMembers\": \"No members\",\n    \"noName\": \"No Name\",\n    \"noNamespace\": \"名前空間がありません\",\n    \"noNamespaceDescription\": \"Once the app is added to appknox dashboard you will be seeing the respected data over here\",\n    \"noNamespaceRequested\": \"No namespaces requested\",\n    \"noOfProjects\": \"プロジェクト数\",\n    \"noPendingRequests\": \"No pending requests\",\n    \"noPersonalToken\": \"トークンが見つかりません\",\n    \"noPreference\": \"指定なし\",\n    \"noProject\": \"プロジェクトがありません\",\n    \"noProjectUploaded\": \"プロジェクトがアップロードされていません\",\n    \"noReportExists\": \"{format} doesn't exists, please generate and try again\",\n    \"noReportsGenerated\": \"No reports generated yet\",\n    \"noRequestByStatus\": \"No {status} request\",\n    \"noResultsFound\": \"No Results Found\",\n    \"noScansFound\": \"診断が見つかりません\",\n    \"noTeams\": \"No Teams\",\n    \"noTeamsMember\": \"You are not member of any teams\",\n    \"noUploads\": \"No uploads\",\n    \"nonCompliantCodeExample\": \"Noncompliant Code Example\",\n    \"none\": \"なし\",\n    \"notAvailable\": \"Not Available\",\n    \"notFound\": \"Not Found\",\n    \"notScanned\": \"Not Scanned\",\n    \"note\": \"Note\",\n    \"notificationModule\": {\n      \"currentRiskStatusFile\": \"Current risk status of file\",\n      \"messages\": {\n        \"nf-am-newversn\": \"Unscanned version of {platform_display} app <strong>{app_name} ({package_name})</strong> detected via store monitoring. Please <strong>upload app binary of version {version_unscanned} to perform scan.</strong>\",\n        \"nf-apistcmpltd1\": \"<strong>API scan completed</strong> for {platform_display} app <strong>{file_name} ({package_name})</strong>.\",\n        \"nf-dastcmpltd1\": \"<strong>Dynamic scan completed</strong> for {platform_display} app <strong>{file_name}} ({package_name})</strong>.\",\n        \"nf-nsapprvd1\": \"Your <strong>namespace request</strong> for {platform_display} app <strong>{namespace_value}</strong> created on {namespace_created_on} <strong>has approved</strong> by {moderator_username}. Please <strong>upload the app again</strong> to perform scan.\",\n        \"nf-nsapprvd2\": \"{platform_display} <strong>namespace {namespace_value}</strong> requested by {requester_username} <strong>has approved</strong> by {moderator_username}.\",\n        \"nf-nsautoapprvd1\": \"Your {platform_display} app's <strong>namespace {namespace_value}</strong> was <strong>auto approved</strong>.\",\n        \"nf-nsautoapprvd2\": \"{platform_display} <strong>namespace {namespace_value}</strong> requested by {requester_username} was <strong>auto approved</strong>.\",\n        \"nf-nsrejctd1\": \"Your <strong>namespace request</strong> for {platform_display} app <strong>{namespace_value}</strong> created on {namespace_created_on} was <strong>not approved</strong>.\",\n        \"nf-nsrejctd2\": \"{platform_display} <strong>namespace {namespace_value}</strong> requested by {requester_username} was <strong>rejected</strong> by {moderator_username}.\",\n        \"nf-nsreqstd1\": \"{requester_username} has <strong>requested for {platform_display} namespace {namespace_value}</strong>.\",\n        \"nf-nsreqstd2\": \"{current_requester_username} has <strong>requested for an unapproved {platform_display} namespace {namespace_value}</strong> (initially requested by {initial_requester_username} on {namespace_created_on}).\",\n        \"nf-sastcmpltd1\": \"<strong>Static scan completed</strong> for {platform_display} app <strong>{file_name} ({package_name})</strong>.\",\n        \"nf-sbomcmpltd\": {\n          \"prefix\": \"<strong>SBOM generated successfully</strong> for the \",\n          \"suffix\": \", {platform_display} app <strong>{file_name} ({package_name})</strong>.\",\n          \"summary\": \"<span>Total Components: {total_components}</span> <span>Vulnerable Components: {vulnerable_components}</span> <span>Components with version updates: {outdated_components}</span>\"\n        },\n        \"nf-str-url-nsreqstd1\": \"{requester_username} has <strong>requested for {platform_display} namespace {namespace_value}</strong>.\",\n        \"nf-str-url-nsreqstd2\": \"{current_requester_username} has <strong>requested for an unapproved {platform_display} namespace {namespace_value}</strong> (initially requested by {initial_requester_username} on {namespace_created_on}).\",\n        \"nf-str-url-upldfailnprjdeny1\": \"The app upload you initiated from {store_name} has <strong>failed due to Namespace Permission Error</strong>. You don't have permission to upload to project <strong>{package_name}</strong>.\",\n        \"nf-str-url-upldfailnprjdeny2\": {\n          \"primary\": \"Upload of {platform_display} app {package_name} by {requester_username} ({requester_role} role) failed. <strong>User does not have access to the project</strong>.\",\n          \"secondary\": \"Access can be provided to the user via team or collaborator settings if required\"\n        },\n        \"nf-str-url-upldfailnscreatd1\": \"The app upload you initiated from {store_name} has <strong>failed due to non-existent namespace</strong>. New namespace request has been submitted to your organization owner for approval.\",\n        \"nf-str-url-upldfailnsunaprv1\": \"The app upload you initiated from {store_name} has <strong>failed due to unapproved namespace</strong>.\",\n        \"nf-str-url-upldfailpay2\": \"App {package_name} upload by {requester_username} from {store_name} has <strong>failed due to Insufficient Credits Error</strong>. Please upgrade your plan.\",\n        \"nf-str-url-upldfailpayrq1\": \"The app upload you initiated from {store_name} has <strong>failed due to Insufficient Credits Error</strong>. Please upgrade your plan.\",\n        \"nf-str-url-upload-success\": {\n          \"prefix\": \"Your {platform_display} app upload of <strong>{package_name}</strong> from {store_name} is <strong>successful</strong>. Please go to the \",\n          \"suffix\": \" to perform the vulnerability assessment.\"\n        },\n        \"nf-str-url-vldtn-err\": \"The app upload you initiated from the {store_name} has <strong>failed</strong> due to an error\",\n        \"nf-systm-file-upload-success\": {\n          \"prefix\": \"Your {platform_display} app upload of <strong>{package_name}</strong> is <strong>successful</strong>. Please go to the \",\n          \"suffix\": \" to perform the vulnerability assessment.\"\n        },\n        \"nf-upldfailnprjdeny1\": \"You <strong>don't have permission</strong> to upload to {platform_display} project {package_name}\",\n        \"nf-upldfailnprjdeny2\": {\n          \"primary\": \"Upload of {platform_display} app {package_name} by {requester_username} ({requester_role} role) failed. <strong>User does not have access to the project</strong>.\",\n          \"secondary\": \"Access can be provided to the user via team or collaborator settings if required\"\n        },\n        \"nf-upldfailnscreatd1\": \"Your {platform_display} app upload of {namespace_value} <strong>failed due to non-existent namespace</strong>. New namespace request has been submitted to your organization owner for approval.\",\n        \"nf-upldfailnsunaprv1\": \"Your upload of {platform_display} app {namespace_value} <strong>failed due to unapproved namespace</strong>.\",\n        \"nf-upldfailpay2\": \"App {package_name} upload by {requester_username} <strong>failed due to insufficient payment credits</strong>. Please upgrade your plan.\",\n        \"nf-upldfailpayrq1\": \"Failed to upload app {package_name}. Your organization has <strong>no payment credits</strong> left. Please upgrade your plan.\"\n      },\n      \"namespaceMessage\": {\n        \"approved\": \"{moderaterName} approved this namespace\",\n        \"rejected\": \"This namespace was rejected\"\n      },\n      \"projectSettings\": \"Project settings\",\n      \"riskStatus\": \"Risk status\",\n      \"viewAppOnStore\": \"View App on Store\",\n      \"viewNamespaces\": \"View namespaces\",\n      \"viewProjectSettings\": \"View project settings\",\n      \"viewSBOMResults\": \"View SBOM results\",\n      \"viewStoreMonitoring\": \"View store monitoring\",\n      \"viewStoreMonitoringResults\": \"View store monitoring results\"\n    },\n    \"notifications\": \"通知\",\n    \"off\": \"off\",\n    \"ok\": \"OK\",\n    \"on\": \"on\",\n    \"openInAppstore\": \"Open in Appstore\",\n    \"openInNewTab\": \"Open in new tab\",\n    \"openInPlaystore\": \"Open in Playstore\",\n    \"operatingSystem\": \"Operating System\",\n    \"operational\": \"operational\",\n    \"or\": \"または\",\n    \"orgMemberInvited\": \"Invitation email sent!\",\n    \"organization\": \"組織\",\n    \"organizationArchive\": \"Organization Data Exports\",\n    \"organizationArchiveDescription\": \"Download your organization's scans data and activity logs in an Excel file. Choose a date range below to get started. Generating the data export may take long time, as soon as the processing finishes we will send you an email with the download link.\",\n    \"organizationArchiveDownloadErrored\": \"Failed to Download File\",\n    \"organizationArchiveExport\": \"Export Excel\",\n    \"organizationArchiveFailed\": \"Failed to Generate File\",\n    \"organizationArchiveSelectDateDesc\": \"Choose your required date to export organization data\",\n    \"organizationArchiveSelectDateTitle\": \"Select the date\",\n    \"organizationArchiveSuccess\": \"File Generation Has Started\",\n    \"organizationArchiveTableDesc\": \"Here are your previous exports details\",\n    \"organizationArchiveTableHeading\": \"Previous Exports\",\n    \"organizationMandatory2FA\": \"Your organization has enabled mandatory 2FA\",\n    \"organizationMembers\": \"組織メンバー\",\n    \"organizationName\": \"Organization Name\",\n    \"organizationNameAddLabel\": \"Add Organization Name\",\n    \"organizationNameAddNotPermitted\": \"As a <strong>{type, select, owner { owner } admin { admin } other { member }}</strong>, you are not permitted to set up the organization name.\",\n    \"organizationNameAddedOrUpdated\": \"Organization Name has been successfully {type, select, edit { updated } add { added } other { updated }}\",\n    \"organizationNameEditLabel\": \"Here you edit organization name\",\n    \"organizationNameUpdated\": \"Successfully updated the organization name\",\n    \"organizationSettings\": \"Organization Settings\",\n    \"organizationTableCreatedOn\": \"Created On\",\n    \"organizationTableDuration\": \"Duration\",\n    \"organizationTableGeneratedBy\": \"Generated By\",\n    \"organizationTeamNameUpdated\": \"Successfully updated the team name\",\n    \"orginalRisk\": \"Original Risk\",\n    \"osVersion\": \"OSバージョン\",\n    \"otherTemplates\": {\n      \"addATeam\": \"このプロジェクトにコラボレートするチームを追加する\",\n      \"selectGHRepo\": \"プロジェクトで見つかったリスクに関するIssueを作成するGithub のリポジトリを選択してください\",\n      \"selectJIRAAccount\": \"プロジェクトで見つかったリスクに関するIssueを作成するJIRAアカウントを選択してください\",\n      \"selectPreferredDevice\": \"動的診断のデバイスタイプとOSバージョンを選択してください\",\n      \"showUntestedAnalysis\": \"Do you want us to show untested analysis?\",\n      \"specifyTheURL\": \"Specify host names for filtering network requests during the dynamic scan. If left empty, all requests will be captured\"\n    },\n    \"overriddenRisk\": \"Overridden Risk\",\n    \"overrideRisk\": \"Override Risk\",\n    \"overview\": \"Overview\",\n    \"owasp\": \"OWASP\",\n    \"owaspApiTop10Expansion\": \"OWASP API Top 10\",\n    \"owaspDetails\": \"OWASP Details\",\n    \"owaspExpansion\": \"Open Web Application Security Project\",\n    \"owaspapi2023\": \"OWASP API Top 10 (2023)\",\n    \"owner\": \"オーナー\",\n    \"package\": \"パッケージ\",\n    \"packageName\": \"パッケージ名\",\n    \"pageNotFound\": \"ページが見つかりません\",\n    \"paid\": \"有料\",\n    \"partnerPrivilege\": {\n      \"noListFiles\": \"You were not privileged to access files\",\n      \"noListProjects\": \"You were not privileged to access projects\"\n    },\n    \"passed\": \"合格\",\n    \"password\": \"パスワード\",\n    \"passwordChanged\": \"パスワードが変更されました\",\n    \"passwordCopied\": \"パスワードがコピーされました\",\n    \"passwordIsReset\": \"パスワードは正常にリセットされました\",\n    \"passwordLengthError\": \"パスワードは6桁以上でなければなりません\",\n    \"passwordMatchError\": \"パスワードが一致しません\",\n    \"pasteYourUrl\": \"Android / WindowsのストアURLを貼り付けてください\",\n    \"pay\": \"支払い請求周期\",\n    \"paymentPlan\": \"Payment plan\",\n    \"pcidss\": \"PCI-DSS\",\n    \"pcidssExpansion\": \"Payment Card Industry Data Security Standard\",\n    \"pdfReport\": \"Download Report\",\n    \"pending\": \"ペンディング中\",\n    \"pendingInvitations\": \"ペンディング中の招待\",\n    \"pendingInvitationsTeam\": \"Pending Team Invitations\",\n    \"pendingRequests\": \"Pending Registration Requests\",\n    \"perApp\": \"per App\",\n    \"perAppCreditTransferStatus\": \"Credits transfer is unavailable for Per App plan clients\",\n    \"perScan\": \"per Scan\",\n    \"permissionChanged\": \"権限が変更されました\",\n    \"personalAccessTokenCreate\": \"トークンの生成\",\n    \"personalAccessTokenDesc\": \"Tokens you have generated that can be used to access the API\",\n    \"personalAccessTokens\": \"作成されました ->　作成日\",\n    \"personalTokenGenerated\": \"パーソナルアクセストークンが生成されました\",\n    \"personalTokenKey\": \"トークン\",\n    \"personalTokenRevoke\": \"無効にする\",\n    \"personalTokenRevoked\": \"パーソナルアクセストークンが無効になりました\",\n    \"phone\": \"Phone\",\n    \"planName\": \"プラン名\",\n    \"plans\": \"プラン\",\n    \"platform\": \"Platform\",\n    \"pleaseEnterAllDetails\": \"プラン名\",\n    \"pleaseEnterAnyNamespace\": \"名前空間を入力してください\",\n    \"pleaseEnterValidAccountDetail\": \"Please enter valid account details\",\n    \"pleaseEnterValidEmail\": \"Please enter valid email or username\",\n    \"pleaseSelectValidIdp\": \"Please select valid Idp file\",\n    \"pleaseTryAgain\": \"失敗しました。もう一度お試しください。\",\n    \"pleaseVisit\": \"ご案内\",\n    \"pleaseWait\": \"Please Wait\",\n    \"plugins\": \"Plugins\",\n    \"pluralApps\": \"{itemCount, plural, =0 {Apps} =1 {App} other {Apps} }\",\n    \"pluralProjects\": \"{itemCount, plural, =0 {Projects} =1 {Project} other {Projects} }\",\n    \"pluralScans\": \"{itemCount, plural, =0 {Scans} =1 {Scan} other {Scans} }\",\n    \"pluralUploads\": \"{itemCount, plural, =0 {Uploads} =1 {Upload} other {Uploads} }\",\n    \"pluralUsers\": \"{itemCount, plural, =0 {Users} =1 {User} other {Users} }\",\n    \"pluralorganizationOwner\": \"{itemCount, plural, =0 {Organization owner} =1 {Organization owner} other {Organization owners} }\",\n    \"popOutModal\": \"全画面\",\n    \"port\": \"Port\",\n    \"preferenceSetTo\": \"preference set to\",\n    \"previous\": \"前\",\n    \"pricing\": \"価格\",\n    \"problemWhileDeletingDomain\": \"Problem while deleting domain\",\n    \"proceed\": \"診断を続行する\",\n    \"processing\": \"Processing ...\",\n    \"production\": \"プロダクション\",\n    \"project\": \"プロジェクト\",\n    \"projectCollaboratorAdded\": \"Added collaborator to project\",\n    \"projectCount\": \"Projects count\",\n    \"projectID\": \"Project ID\",\n    \"projectLevel\": \"Project Level\",\n    \"projectName\": \"プロジェクト名\",\n    \"projectRemoved\": \"プロジェクトが削除されました\",\n    \"projectSettings\": {\n      \"drawerTitles\": {\n        \"addCollaborator\": \"Add collaborator to project\",\n        \"addTeam\": \"Allow teams to access this project\"\n      },\n      \"headerText\": \"View and update project general and analysis preferences\"\n    },\n    \"projectTeamAdded\": \"Added team to project\",\n    \"projectUpdated\": \"Project updated successfully.\",\n    \"projects\": \"プロジェクト\",\n    \"promptBox\": {\n      \"deleteTeamPrompt\": {\n        \"description\": \"削除したいチーム名を入力してください\",\n        \"title\": \"このチームを削除してもよろしいですか？\"\n      },\n      \"removeMemberPrompt\": {\n        \"description\": \"削除したいチームメンバーの名前を入力してください\",\n        \"title\": \"このチームメンバーを削除してもよろしいですか？\"\n      }\n    },\n    \"proxyEdit\": \"Edit in project settings\",\n    \"proxyEnable\": \"Enable Proxy\",\n    \"proxySettingsDescription\": \"Route dynamic scan and API scan requests via proxy server\",\n    \"proxySettingsRouteVia\": \"Routing all API requests during dynamic scan & API scan via\",\n    \"proxySettingsSaved\": \"Proxy settings saved\",\n    \"proxySettingsTitle\": \"API Proxy\",\n    \"proxyTurned\": \"Proxy turned \",\n    \"proxyWarning\": \"Please check if you have enabled proxy\",\n    \"quarterly\": \"３か月\",\n    \"reasonForOverride\": \"Reason for override\",\n    \"reconnect\": \"Reconnet\",\n    \"reconnectGotoSettings\": \"is not integrated, something went wrong you can go to settings &amp; reconnect by\",\n    \"recordPerPage\": \"Records per page\",\n    \"recover\": \"復元\",\n    \"recoverPassword\": \"パスワードの復元\",\n    \"recurring\": \"recurring\",\n    \"register\": \"登録\",\n    \"registerConfirmation\": \"Your registration process has been initiated. Please check your mail for further instructions\",\n    \"registrationRequests\": \"Registration requests\",\n    \"regulatory\": \"Regulatory\",\n    \"regulatoryPreferenceReset\": \"Reset preference to default\",\n    \"regulatoryPreferences\": \"Regulatory Preferences\",\n    \"regulatoryPreferencesChooseForAll\": \"Choose regulatories applicable for all projects\",\n    \"regulatoryPreferencesChooseForProfile\": \"Choose regulatories applicable for this project\",\n    \"regulatoryPreferencesProfileNote\": \"Preference from organization settings is inherited by default\",\n    \"regulatoryPreferencesWarning\": \"If you hide a regulatory, respective section from analysis will be hidden from the dashboard & report\",\n    \"reject\": \"Reject\",\n    \"rejected\": \"Rejected\",\n    \"rejectedRequestFrom\": \"Rejected request from\",\n    \"rejectedRequests\": \"Rejected Requests\",\n    \"remaining\": \"remaining\",\n    \"remainingCredits\": \"Remaining Credits\",\n    \"remove\": \"削除\",\n    \"removeCollaborator\": \"Remove Collaborator\",\n    \"removeFromTeam\": \"Remove from team\",\n    \"removedSSOSuccessfully\": \"SSO has been removed successfully\",\n    \"repo\": \"Repo\",\n    \"repoIntegrated\": \"リポジトリの連携に成功しました\",\n    \"repoNotIntegrated\": \"リポジトリの更新時に問題が発生しました\",\n    \"report\": \"Report\",\n    \"reportGenerateError\": \"Problem while generating report, please try again!\",\n    \"reportGeneratedSuccessfully\": \"Report generated successfully\",\n    \"reportGenerationInProgressWait\": \"Report generation in progress. Please wait\",\n    \"reportIsGettingGenerated\": \"レポートが生成されている間お待ちください\",\n    \"reportPassword\": \"レポートのパスワード\",\n    \"reportPreferences\": \"Report Preferences\",\n    \"reportPreferencesChooseTypes\": \"Choose types of scans to be included in the report\",\n    \"reportSendTo\": \"and sent to following Email IDS:\",\n    \"requestStatus\": \"Request\",\n    \"requestToAddNamespace\": \"新しい名前空間の追加をリクエストしました\",\n    \"requested\": \"リクエストしました\",\n    \"rescanInitiated\": \"再診断を開始しました\",\n    \"resend\": \"Resend\",\n    \"resendInvitation\": \"Resend invitation\",\n    \"resentInvitationTo\": \"Resent invitation to\",\n    \"reset\": \"リセット\",\n    \"resetOverriddenAnalysis\": \"Reset Overridden Analysis\",\n    \"resetPassword\": \"パスワードのリセット\",\n    \"resetToDefault\": \"Reset to default\",\n    \"resolved\": \"resolved\",\n    \"revokeGithub\": \"Githubを取り消す\",\n    \"revokeJira\": \"JIRAを取り消す\",\n    \"risk\": \"リスク\",\n    \"riskAndCommentRequired\": \"Risk and comment are required fields\",\n    \"riskOf\": \"リスク\",\n    \"riskType\": \"リスクタイプ\",\n    \"role\": \"役割\",\n    \"samlAuth\": \"SAML Authentication\",\n    \"samlDesc\": \"SAML-based single sign-on (SSO) gives users access to app through an identity provider (IdP) of your choice. Get set up with ADFS, G Suite, Auth0, OneLogin, or your custom SAML 2.0 solution.\",\n    \"save\": \"Save\",\n    \"saveCredentials\": \"資格情報の保存\",\n    \"savedPreferences\": \"設定を保存しました\",\n    \"sbomModule\": {\n      \"affectedAndFixedVersion\": {\n        \"emptyTitle\": \"No Data Available\",\n        \"title\": \"Affected & Fixed Versions\"\n      },\n      \"affectedVersions\": \"Affected Versions\",\n      \"allComponents\": \"All Components\",\n      \"allComponentsAndVulnerabilities\": \"All Components and Vulnerabilities\",\n      \"appScanEmptyText\": {\n        \"description\": \"No SBOM analyses has been done for this application (Project). Kindly upload the app to initiate an SBOM analysis\",\n        \"title\": \"No SBOM Analyses\"\n      },\n      \"applicationName\": \"Application Name\",\n      \"applicationVersion\": \"Application Version\",\n      \"componentDescription\": \"View the list of components detected in your application.\",\n      \"componentDetails\": \"Component Details\",\n      \"componentDetailsDescription\": \"View additional information related to each component.\",\n      \"componentListEmptyText\": {\n        \"description\": \"No components could be detected for this application. Kindly reupload and check again. If this issue persists, please reach out to the support team.\",\n        \"title\": \"No Components Found\"\n      },\n      \"componentName\": \"Component Name\",\n      \"componentType\": \"Components Type\",\n      \"components\": \"Components\",\n      \"cvssV3Score\": \"CVSS V3 Score\",\n      \"fixedVersions\": \"Fixed Versions\",\n      \"generateReportDescription\": \"Report is not available yet. Please click on the Generate button to access the SBOM report.\",\n      \"generatedDate\": \"Generated Date\",\n      \"knownVulnerabilities\": \"Known Vulnerabilities\",\n      \"knownVulnerabilitiesEmptyText\": {\n        \"description\": \"We could not locate any known vulnerabilities associated with this component, at this point in time.\",\n        \"title\": \"No Vulnerability Found\"\n      },\n      \"lastSbomAnalysisOn\": \"Last SBOM Analysis On\",\n      \"latestVersion\": \"Latest Version\",\n      \"neverInitiated\": \"Never Initiated\",\n      \"noScanAlertDescription\": \"Upload the app to initiate SBOM analysis.\",\n      \"pastSbomAnalyses\": \"Past SBOM Analyses\",\n      \"pastSbomAnalysesDescription\": \"Here you see all SBOM reports related to the {projectName} project.\",\n      \"sbomAppDescription\": \"Identify the components used in your mobile application and any vulnerabilities associated with it\",\n      \"sbomAppEmptyText\": {\n        \"description\": \"Uh, Oh!. Looks like you have not been granted access to any application (Project) or there have been no applications uploaded yet. Please contact the 'Owner' in your organization for more details.\",\n        \"title\": \"No SBOM Applications\"\n      },\n      \"sbomAppTitle\": \"Software Bill of Materials (SBOM)\",\n      \"sbomDownloadJsonPrimaryText\": \"Cyclone DX (json)\",\n      \"sbomDownloadJsonSecondaryText\": \"No Password Required\",\n      \"sbomDownloadPdfPrimaryText\": \"Detailed Report (pdf)\",\n      \"sbomDownloadPdfSecondaryText\": \"Report Password - {password}\",\n      \"sbomDownloadReportDescription\": \"Here you able to download different types of SBOM scan reports.\",\n      \"sbomGeneratedOn\": \"SBOM Generated On\",\n      \"sbomReport\": \"SBOM Report\",\n      \"sbomScanStatusError\": {\n        \"description\": \"SBOM analysis for this application could not be completed due to some issues. Kindly reupload and check again. If this issue persists, please reach out to the support team.\",\n        \"title\": \"SBOM Analysis Error\"\n      },\n      \"sbomScanStatusProgress\": {\n        \"description\": \"SBOM Analysis for this application is currently in progress. Please wait for a few moments for it to be completed.\",\n        \"title\": \"SBOM Analysis in Progress\"\n      },\n      \"sbomSummary\": \"SBOM Summary\",\n      \"scanReportEmptyText\": {\n        \"description\": \"We could not locate any report associated with this SBOM analysis.\",\n        \"title\": \"No SBOM Report Found\"\n      },\n      \"scanReports\": \"Scan Reports\",\n      \"severity\": \"Severity\",\n      \"totalComponents\": \"Total Components\",\n      \"versionCode\": \"Version Code\",\n      \"viewReport\": \"View Report\",\n      \"vulnerabilityId\": \"Vulnerability ID\"\n    },\n    \"scan\": \"診断\",\n    \"scanCompleted\": \"scan completed\",\n    \"scanDetails\": \"診断の詳細\",\n    \"scanNotCompleted\": \"scan not completed\",\n    \"scanResults\": \"Scan Results\",\n    \"scanStarted\": \"Scan Started\",\n    \"scanStatus\": \"診断のステータス\",\n    \"scanSummary\": \"Scan Summary\",\n    \"scanTypes\": \"Scan Types\",\n    \"scanned\": \"scanned\",\n    \"scanning\": \"診断中\",\n    \"scans\": \"Scans\",\n    \"scansLeft\": \"未実施の診断\",\n    \"scenario\": \"Scenario\",\n    \"scheduleDynamicscan\": \"Schedule Automated Dynamic Scan\",\n    \"scheduleDynamicscanDesc\": \"Schedule an automated dynamic scan for this file by clicking on the button below. Once scheduled, the system will use the Active Scenarios on the Project Settings page to execute the Automated DAST. It may take up to 24hrs for this to be completed.\",\n    \"scheduleDynamicscanSuccess\": \"Automated dynamic scan scheduled successfully\",\n    \"search\": \"検索\",\n    \"searchCollaborator\": \"Search collaborator\",\n    \"searchInvite\": \"Search invite\",\n    \"searchProject\": \"Search project\",\n    \"searchQuery\": \"パッケージ名で検索\",\n    \"searchTeam\": \"Search team\",\n    \"searchTeamByName\": \"Search by team name\",\n    \"searchUser\": \"Search user\",\n    \"security\": \"セキュリティ\",\n    \"securityDashboard\": \"Security Dashboard\",\n    \"selectAnyTeam\": \"チームを選択してください\",\n    \"selectDevice\": \"デバイスを選択する\",\n    \"selectLanguage\": \"以下より言語を選択してください\",\n    \"selectProject\": \"Select Project\",\n    \"selectRepo\": \"Select Repo\",\n    \"selectRisk\": \"Select Risk\",\n    \"selectTeam\": \"チームを選択してください\",\n    \"selectThreshold\": \"Select Threshold\",\n    \"selected\": \"Selected\",\n    \"selectedDevice\": \"選択したデバイスの種類\",\n    \"selectedVersion\": \"選択したOSのバージョン\",\n    \"sendInvitation\": \"Send Invitation\",\n    \"sendPasswordResetMail\": \"Send password reset email\",\n    \"sentInvitationTo\": \"Sent invitation to\",\n    \"server\": \"Server\",\n    \"serviceProvider\": \"Service Provider\",\n    \"settings\": \"設定\",\n    \"severity\": \"Severity\",\n    \"severityLevel\": \"重大度レベル\",\n    \"showHiddenAnalysis\": \"Do you want to show the hidden analysis in the Report?\",\n    \"showLess\": \"Show Less\",\n    \"showMore\": \"Show More\",\n    \"showUntestedAnalysis\": \"Show/Hide Untested Analysis\",\n    \"showVulnerability\": \"脆弱性を表示する\",\n    \"signin\": \"サインイン\",\n    \"singleSignOn\": \"Single Sign-On\",\n    \"slack\": \"Slack\",\n    \"somethingWentWrong\": \"Something went wrong, please try again\",\n    \"somethingWentWrongContactSupport\": \"Something went wrong, please contact support\",\n    \"sortBy\": \"並び替え\",\n    \"source\": \"Source\",\n    \"spMetadataDesc\": \"Configure your identity provider based of the SP Metadata:\",\n    \"spMetadataXml\": \"SP Metadata XML\",\n    \"ssoAuthentication\": \"SSO Authentication\",\n    \"ssoEnableDesc\": \"Show Single Sign-On option in login form\",\n    \"ssoEnforce\": \"Enforce SSO\",\n    \"ssoEnforceDesc\": \"Disable password based login for all users, show only SSO login button\",\n    \"ssoIdentityURL\": \"SSO Identity Provider URL\",\n    \"ssoLogin\": \"Login using SSO\",\n    \"ssoServiceURL\": \"SSO Service URL\",\n    \"staging\": \"ステージング\",\n    \"standards\": \"Standards\",\n    \"start\": \"開始\",\n    \"startDynamicScan\": \"Start Dynamic Scan\",\n    \"startNewScan\": \"新しい診断を開始する\",\n    \"started\": \"開始しました\",\n    \"startingApiScan\": \"Starting API Scan\",\n    \"startingScan\": \"診断を開始しています\",\n    \"static\": \"静的\",\n    \"staticScan\": \"静的診断\",\n    \"status\": \"ステータス\",\n    \"stop\": \"停止中\",\n    \"storage\": \"Storage\",\n    \"storageManagement\": \"Storage Management\",\n    \"storeLowercase\": \"store\",\n    \"submitUrl\": \"URLを送信\",\n    \"subscription\": \"サブスクリプション\",\n    \"subscriptionCancelled\": \"サブスクリプションが正常にキャンセルされました\",\n    \"subscriptionDetails\": \"サブスクリプションの詳細\",\n    \"subscriptionExpired\": \"サブスクリプションの期限切れ \",\n    \"subscriptionWillExpire\": \"サブスクリプションは失効します\",\n    \"subscriptionWillExpireOn\": \"サブスクリプションの有効期限：\",\n    \"successfullyOverridden\": \"You have successfully overridden this analysis\",\n    \"successfullyReset\": \"You have successfully reverted back to orginal risk of this analysis\",\n    \"summary\": \"サマリー\",\n    \"support\": \"サポート\",\n    \"sync\": \"同期する\",\n    \"system\": \"System\",\n    \"systemStatus\": \"System Status\",\n    \"tInValidCredentials\": \"Invalid credentials\",\n    \"tablet\": \"タブレット\",\n    \"tags\": \"Tags\",\n    \"team\": \"チーム\",\n    \"teamCreated\": \"チームが作成されました\",\n    \"teamDeleted\": \"削除されました\",\n    \"teamDetails\": \"Team Details\",\n    \"teamInvitations\": \"Team Invitations\",\n    \"teamInvitationsDesc\": \"Send your team invitations\",\n    \"teamMember\": \"チームメンバー\",\n    \"teamMemberAdded\": \"チームメンバーが追加されました\",\n    \"teamMemberInvited\": \"チームメンバーが招待されました\",\n    \"teamMemberRemoved\": \"がチームから削除されました\",\n    \"teamMembers\": \"Team Members\",\n    \"teamName\": \"チーム名を入力してください\",\n    \"teamProjectAdded\": \"Project added to team\",\n    \"teamProjectsDesc\": \"Projects associated with this team\",\n    \"teamRemoved\": \"Team removed from accessing this project\",\n    \"teamUsersDesc\": \"Users associated with this team\",\n    \"teams\": \"チーム\",\n    \"templates\": {\n      \"addNewUrlFilter\": \"Add Filter\",\n      \"apiScanURLFilter\": \"API診断のURLフィルタ\",\n      \"enterAPIEndpoint\": \"Enter host\",\n      \"enterEndpoint\": \"診断するAPIエンドポイントを入力してください。 subdomain.domain.com. スキーム（http：// ...）、ポート（：443 / ...）、パス（... / users）は指定しないでください。\",\n      \"saveFilter\": \"フィルタを保存する\"\n    },\n    \"testCase\": \"Test Case\",\n    \"testCases\": \"Test Cases\",\n    \"testCredentials\": \"テスト資格情報\",\n    \"threshold\": \"Threshold\",\n    \"title\": \"Title\",\n    \"toDate\": \"To Date\",\n    \"tokenCopied\": \"トークンがコピーされました\",\n    \"totalProjects\": \"Total Projects\",\n    \"totalUsers\": \"Total Users\",\n    \"transferCredits\": \"Transfer Credits\",\n    \"trialWillBeConverted\": \"無料トライアルは有料サブスクリプションに移行されます：\",\n    \"trialWillExpireOn\": \"トライアル期限： \",\n    \"tryAdjustingFilter\": \"Try adjusting your search or filter\",\n    \"type\": \"Type\",\n    \"typeOfScan\": \"Type of Scan\",\n    \"unavailable\": \"unavailable\",\n    \"unchanged\": \"変更なし\",\n    \"undefined\": \"未定義\",\n    \"undo\": \"Undo\",\n    \"unknown\": \"未知\",\n    \"unpaid\": \"未払い\",\n    \"unreachable\": \"Unreachable\",\n    \"untested\": \"Untested\",\n    \"update\": \"Update\",\n    \"upload\": \"Upload\",\n    \"uploadApp\": \"アプリのアップロード\",\n    \"uploadAppModule\": {\n      \"linkInputLabel\": \"Add a link\",\n      \"linkPastePlaceholder\": \"Paste the link here...\",\n      \"linkUploadPopupHeader\": \"Upload using a link\",\n      \"stores\": \"Google Play Store and Apple App Store\",\n      \"supportedStores\": \"Supported Stores\",\n      \"validURLFormatTitle\": \"Valid URL Formats :\",\n      \"viaLink\": \"Via Link\"\n    },\n    \"uploadCount\": \"Upload Count\",\n    \"uploadIdpFile\": \"Upload Idp File\",\n    \"uploadNewProject\": \"新しいプロジェクトをアップロードするには、ここをクリックしてください\",\n    \"uploadStatistics\": \"Upload Statistics\",\n    \"uploadStatus\": \"Upload Status\",\n    \"uploadZipFile\": \"Upload .zip file\",\n    \"uploaded\": \"Uploaded\",\n    \"uploadedOn\": \"Uploaded on\",\n    \"uploading\": \"アップロード中\",\n    \"uploads\": \"Uploads\",\n    \"urlUpdated\": \"Successfully updated the url filter\",\n    \"usd\": \"米ドル\",\n    \"user\": \"User\",\n    \"userActivateTitle\": \"Activate User\",\n    \"userActivationChangeMessage\": \"Are you sure you want to make\",\n    \"userDeactivateTitle\": \"Deactivate User\",\n    \"userDetails\": \"User Details\",\n    \"userRoleUpdated\": \"User role changed successfully\",\n    \"userSetting\": \"ユーザ設定\",\n    \"username\": \"ユーザ名\",\n    \"users\": \"Users\",\n    \"usersTeamDesc\": \"List of Teams the user is associated with\",\n    \"validUntil\": \"Valid until\",\n    \"validity\": \"Validity\",\n    \"version\": \"バージョン\",\n    \"versionCode\": \"バージョンコード\",\n    \"versionLowercase\": \"バージョン\",\n    \"versions\": \"Versions\",\n    \"viaLink\": \"VIA LINK\",\n    \"viaSystem\": \"VIA SYSTEM\",\n    \"viewAll\": \"View All\",\n    \"viewDetails\": \"View Details\",\n    \"viewFile\": \"View file\",\n    \"viewFiles\": \"View Files\",\n    \"viewIntegrationInstructions\": \"View Instructions to Integrate\",\n    \"viewReport\": \"View Report\",\n    \"viewStoreLink\": \"View Store Link\",\n    \"viewUploads\": \"View uploads\",\n    \"vulnerabilities\": \"脆弱性\",\n    \"vulnerability\": \"脆弱性\",\n    \"vulnerabilityDetails\": \"脆弱性の詳細\",\n    \"vulnerabilityPreferences\": \"Vulnerability Preferences\",\n    \"vulnerabilityPreferencesCondition\": \"Changes made to vulnerability here will be applied to all future analyses of this project\",\n    \"vulnerabilityPreferencesEdit\": \"You can edit the vulnerability preferences below\",\n    \"warning\": \"WARNING\",\n    \"week\": \"Week\",\n    \"welcome\": \"ようこそ\",\n    \"worsened\": \"悪化\",\n    \"xmlMetadata\": \"XML Metadata\",\n    \"year\": \"年\",\n    \"yearWithNum\": \"{numYears, plural, =0 {0年} =1 {1年} other {#年}}\",\n    \"yearly\": \"１年\",\n    \"yes\": \"はい\",\n    \"yesDelete\": \"Yes, Delete\",\n    \"yesSecure\": \"Yes, Secure\",\n    \"youCanCreateTeam\": \"you can create a new team by\",\n    \"youWillBeChargedOn\": \"次のとおり請求されます：\",\n    \"yourPlan\": \"Your Plan\"\n  }]];\n});","define(\"ember-load-initializers/index\", [\"exports\", \"require\"], function (_exports, _require) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = loadInitializers;\n  function resolveInitializer(moduleName) {\n    var module = (0, _require.default)(moduleName, null, null, true);\n    if (!module) {\n      throw new Error(moduleName + ' must export an initializer.');\n    }\n    var initializer = module['default'];\n    if (!initializer) {\n      throw new Error(moduleName + ' must have a default export');\n    }\n    if (!initializer.name) {\n      initializer.name = moduleName.slice(moduleName.lastIndexOf('/') + 1);\n    }\n    return initializer;\n  }\n  function registerInitializers(app, moduleNames) {\n    for (var i = 0; i < moduleNames.length; i++) {\n      app.initializer(resolveInitializer(moduleNames[i]));\n    }\n  }\n  function registerInstanceInitializers(app, moduleNames) {\n    for (var i = 0; i < moduleNames.length; i++) {\n      app.instanceInitializer(resolveInitializer(moduleNames[i]));\n    }\n  }\n  function _endsWith(str, suffix) {\n    return str.indexOf(suffix, str.length - suffix.length) !== -1;\n  }\n\n  /**\n   * Configure your application as it boots\n   */\n  function loadInitializers(app, prefix) {\n    var initializerPrefix = prefix + '/initializers/';\n    var instanceInitializerPrefix = prefix + '/instance-initializers/';\n    var initializers = [];\n    var instanceInitializers = [];\n    // this is 2 pass because generally the first pass is the problem\n    // and is reduced, and resolveInitializer has potential to deopt\n    var moduleNames = Object.keys(requirejs._eak_seen);\n    for (var i = 0; i < moduleNames.length; i++) {\n      var moduleName = moduleNames[i];\n      if (moduleName.lastIndexOf(initializerPrefix, 0) === 0) {\n        if (!_endsWith(moduleName, '-test')) {\n          initializers.push(moduleName);\n        }\n      } else if (moduleName.lastIndexOf(instanceInitializerPrefix, 0) === 0) {\n        if (!_endsWith(moduleName, '-test')) {\n          instanceInitializers.push(moduleName);\n        }\n      }\n    }\n    registerInitializers(app, initializers);\n    registerInstanceInitializers(app, instanceInitializers);\n  }\n});","define(\"ember-maybe-in-element/components/maybe-in-element\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @renderInPlace}}{{yield}}{{else}}{{#in-element @destinationElement insertBefore=null}}{{yield}}{{/in-element}}{{/if}}\n  */\n  {\n    \"id\": \"HeyU5aHi\",\n    \"block\": \"[[[41,[30,1],[[[18,3,null]],[]],[[[40,[[[18,3,null]],[]],\\\"%cursor:0%\\\",[28,[37,3],[[30,2]],null],null]],[]]]],[\\\"@renderInPlace\\\",\\\"@destinationElement\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"yield\\\",\\\"in-element\\\",\\\"-in-el-null\\\"]]\",\n    \"moduleName\": \"ember-maybe-in-element/components/maybe-in-element.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-modal-dialog/components/basic-dialog\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/utils\", \"@ember/service\", \"ember-modal-dialog/templates/components/basic-dialog\"], function (_exports, _component, _object, _utils, _service, _basicDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _component.default.extend({\n    tagName: '',\n    layout: _basicDialog.default,\n    containerClassNames: null,\n    overlayClassNames: null,\n    wrapperClassNames: null,\n    destinationElementId: null,\n    modalService: (0, _service.inject)('modal-dialog'),\n    init() {\n      this._super(...arguments);\n      if (!this.get('destinationElementId')) {\n        this.set('destinationElementId', this.get('modalService.destinationElementId'));\n      }\n    },\n    variantWrapperClass: 'emd-static',\n    containerClassNamesString: (0, _object.computed)('containerClassNames.[]', 'targetAttachmentClass', 'attachmentClass', 'containerClass', function () {\n      return [this.get('containerClassNames').join(' '), this.get('targetAttachmentClass'), this.get('attachmentClass'), this.get('containerClass')].filter(className => !(0, _utils.isEmpty)(className)).join(' ');\n    }),\n    overlayClassNamesString: (0, _object.computed)('overlayClassNames.[]', 'overlayClass', 'translucentOverlay', function () {\n      return [this.get('overlayClassNames').join(' '), this.get('translucentOverlay') ? 'translucent' : null, this.get('overlayClass')].filter(className => !(0, _utils.isEmpty)(className)).join(' ');\n    }),\n    wrapperClassNamesString: (0, _object.computed)('wrapperClassNames.[]', 'targetAttachmentClass', 'variantWrapperClass', 'wrapperClass', function () {\n      return [this.get('wrapperClassNames').join(' '), this.get('targetAttachmentClass').replace('emd-', 'emd-wrapper-'), this.get('variantWrapperClass'), this.get('wrapperClass')].filter(className => !(0, _utils.isEmpty)(className)).join(' ');\n    }),\n    concatenatedProperties: ['containerClassNames', 'overlayClassNames', 'wrapperClassNames'],\n    translucentOverlay: false,\n    clickOutsideToClose: false,\n    hasOverlay: true,\n    isCentered: true,\n    overlayPosition: null,\n    isOverlaySibling: (0, _object.computed)('overlayPosition', function () {\n      return this.get('overlayPosition') === 'sibling';\n    }),\n    didInsertElement() {\n      if (!this.get('clickOutsideToClose')) {\n        return;\n      }\n      this.makeOverlayClickableOnIOS();\n      this.handleClick = ({\n        target\n      }) => {\n        // if the click has already resulted in the target\n        // being removed or hidden, do nothing\n        if (target.offsetWidth === 0 && target.offsetHeight === 0) {\n          return;\n        }\n        if (this.isDestroying || this.isDestroyed) {\n          return;\n        }\n        let modalSelector = '.ember-modal-dialog';\n        if (this.get('stack')) {\n          modalSelector = '#' + this.get('stack') + modalSelector;\n        }\n\n        // if the click is within the dialog, do nothing\n        let modalEl = document.querySelector(modalSelector);\n        if (modalEl && modalEl.contains(target)) {\n          return;\n        }\n        if (this.get('onClose')) {\n          this.get('onClose')();\n        }\n      };\n      const registerClick = () => document.addEventListener('click', this.handleClick);\n\n      // setTimeout needed or else the click handler will catch the click that spawned this modal dialog\n      setTimeout(registerClick);\n      if (this.get('isIOS')) {\n        const registerTouch = () => document.addEventListener('touchend', this.handleClick);\n        setTimeout(registerTouch);\n      }\n      this._super(...arguments);\n    },\n    willDestroyElement() {\n      document.removeEventListener('click', this.handleClick);\n      if (this.get('isIOS')) {\n        document.removeEventListener('touchend', this.handleClick);\n      }\n      this._super(...arguments);\n    },\n    isIOS: (0, _object.computed)(function () {\n      return /iPad|iPhone|iPod/.test(navigator.userAgent);\n    }),\n    makeOverlayClickableOnIOS: function () {\n      if (this.get('isIOS')) {\n        let overlayEl = document.querySelector('div[data-emd-overlay]');\n        if (overlayEl) {\n          overlayEl.style.cursor = 'pointer';\n        }\n      }\n    }\n  });\n});","define(\"ember-modal-dialog/components/in-place-dialog\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ember-modal-dialog/templates/components/in-place-dialog\"], function (_exports, _component, _object, _inPlaceDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/avoid-leaking-state-in-ember-objects */\n\n  const computedJoin = function (prop) {\n    return (0, _object.computed)(prop, function () {\n      return this.get(prop).join(' ');\n    });\n  };\n  var _default = _exports.default = _component.default.extend({\n    tagName: '',\n    layout: _inPlaceDialog.default,\n    containerClass: null,\n    // passed in\n    containerClassNames: ['ember-modal-dialog', 'ember-modal-dialog-in-place', 'emd-in-place'],\n    // set this in a subclass definition\n    containerClassNamesString: computedJoin('containerClassNames'),\n    concatenatedProperties: ['containerClassNames']\n  });\n});","define(\"ember-modal-dialog/components/liquid-dialog\", [\"exports\", \"ember-modal-dialog/components/basic-dialog\", \"ember-modal-dialog/templates/components/liquid-dialog\"], function (_exports, _basicDialog, _liquidDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/avoid-leaking-state-in-ember-objects */\n  var _default = _exports.default = _basicDialog.default.extend({\n    layout: _liquidDialog.default,\n    hasOverlay: true,\n    containerClassNames: ['liquid-dialog'],\n    variantWrapperClass: 'emd-animatable'\n  });\n});","define(\"ember-modal-dialog/components/liquid-tether-dialog\", [\"exports\", \"@ember/object\", \"@ember/string\", \"ember-modal-dialog/components/basic-dialog\", \"ember-modal-dialog/templates/components/liquid-tether-dialog\"], function (_exports, _object, _string, _basicDialog, _liquidTetherDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _basicDialog.default.extend({\n    layout: _liquidTetherDialog.default,\n    targetAttachmentClass: (0, _object.computed)('targetAttachment', function () {\n      let targetAttachment = this.get('targetAttachment') || '';\n      return `ember-modal-dialog-target-attachment-${(0, _string.dasherize)(targetAttachment)}`;\n    }),\n    targetAttachment: null,\n    attachment: null,\n    didReceiveAttrs() {\n      this._super(...arguments);\n      if (!this.get('attachment')) {\n        this.set('attachment', 'middle center');\n      }\n      if (!this.get('targetAttachment')) {\n        this.set('targetAttachment', 'middle center');\n      }\n    },\n    tetherClassPrefix: (0, _object.computed)({\n      get() {\n        return 'liquid-tether';\n      },\n      set(key, val) {\n        if (val) {\n          return val;\n        }\n        return 'liquid-tether';\n      }\n    }),\n    hasOverlay: true,\n    tetherTarget: null // element, css selector, view instance, 'viewport', or 'scroll-handle'\n    // offset - passed in\n    // targetOffset - passed in\n    // targetModifier - passed in\n  });\n});","define(\"ember-modal-dialog/components/modal-dialog\", [\"exports\", \"@ember/object/computed\", \"@ember/component\", \"@ember/string\", \"@ember/object\", \"@ember/utils\", \"@ember/service\", \"ember-modal-dialog/templates/components/modal-dialog\", \"@ember/debug\"], function (_exports, _computed, _component, _string, _object, _utils, _service, _modalDialog, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const VALID_OVERLAY_POSITIONS = ['parent', 'sibling'];\n  var _default = _exports.default = _component.default.extend({\n    tagName: '',\n    layout: _modalDialog.default,\n    modalService: (0, _service.inject)('modal-dialog'),\n    destinationElementId: null,\n    init() {\n      this._super(...arguments);\n      if (!this.get('destinationElementId')) {\n        this.set('destinationElementId', this.get('modalService.destinationElementId'));\n      }\n    },\n    modalDialogComponentName: (0, _object.computed)('renderInPlace', 'tetherTarget', 'animatable', 'hasLiquidWormhole', 'hasLiquidTether', function () {\n      let tetherTarget = this.get('tetherTarget');\n      let hasLiquidTether = this.get('hasLiquidTether');\n      let hasLiquidWormhole = this.get('hasLiquidWormhole');\n      let animatable = this.get('animatable');\n      if (this.get('renderInPlace')) {\n        return 'ember-modal-dialog/-in-place-dialog';\n      } else if (tetherTarget && hasLiquidTether && hasLiquidWormhole && animatable === true) {\n        return 'ember-modal-dialog/-liquid-tether-dialog';\n      } else if (tetherTarget) {\n        this.ensureEmberTetherPresent();\n        return 'ember-modal-dialog/-tether-dialog';\n      } else if (hasLiquidWormhole && animatable === true) {\n        return 'ember-modal-dialog/-liquid-dialog';\n      }\n      return 'ember-modal-dialog/-basic-dialog';\n    }),\n    animatable: null,\n    hasLiquidWormhole: (0, _computed.readOnly)('modalService.hasLiquidWormhole'),\n    hasLiquidTether: (0, _computed.readOnly)('modalService.hasLiquidTether'),\n    didReceiveAttrs() {\n      this._super(...arguments);\n      if (true /* DEBUG */) {\n        this.validateProps();\n      }\n    },\n    validateProps() {\n      let overlayPosition = this.get('overlayPosition');\n      if (VALID_OVERLAY_POSITIONS.indexOf(overlayPosition) === -1) {\n        (true && (0, _debug.warn)(`overlayPosition value '${overlayPosition}' is not valid (valid values [${VALID_OVERLAY_POSITIONS.join(', ')}])`, false, {\n          id: 'ember-modal-dialog.validate-overlay-position'\n        }));\n      }\n    },\n    // onClose - set this from templates\n\n    /* eslint-disable ember/avoid-leaking-state-in-ember-objects */\n\n    // containerClass - set this from templates\n    containerClassNames: ['ember-modal-dialog'],\n    // set this in a subclass definition\n\n    // overlayClass - set this from templates\n    overlayClassNames: ['ember-modal-overlay'],\n    // set this in a subclass definition\n\n    // wrapperClass - set this from templates\n    wrapperClassNames: ['ember-modal-wrapper'],\n    // set this in a subclass definition\n\n    concatenatedProperties: ['containerClassNames', 'overlayClassNames', 'wrapperClassNames'],\n    /* eslint-enable ember/avoid-leaking-state-in-ember-objects */\n\n    hasOverlay: true,\n    translucentOverlay: false,\n    overlayPosition: 'parent',\n    // `parent` or `sibling`\n    clickOutsideToClose: false,\n    renderInPlace: false,\n    tetherTarget: null,\n    stack: (0, _computed.oneWay)('elementId'),\n    // pass a `stack` string to set a \"stack\" to be passed to liquid-wormhole / liquid-tether\n    value: 0,\n    // pass a `value` to set a \"value\" to be passed to liquid-wormhole / liquid-tether\n\n    targetAttachment: 'middle center',\n    tetherClassPrefix: null,\n    attachmentClass: (0, _object.computed)('attachment', function () {\n      let attachment = this.get('attachment');\n      if ((0, _utils.isEmpty)(attachment)) {\n        return;\n      }\n      return attachment.split(' ').map(attachmentPart => {\n        return `emd-attachment-${(0, _string.dasherize)(attachmentPart)}`;\n      }).join(' ');\n    }),\n    targetAttachmentClass: (0, _object.computed)('targetAttachment', function () {\n      let targetAttachment = this.get('targetAttachment') || '';\n      // Convert tether-styled values like 'middle right' to 'right'\n      targetAttachment = targetAttachment.split(' ').slice(-1)[0];\n      return `ember-modal-dialog-target-attachment-${(0, _string.dasherize)(targetAttachment)} emd-target-attachment-${(0, _string.dasherize)(targetAttachment)}`;\n    }),\n    ensureEmberTetherPresent() {\n      if (!this.get('modalService.hasEmberTether')) {\n        throw new Error('Please install ember-tether in order to pass a tetherTarget to modal-dialog');\n      }\n    },\n    actions: {\n      onClose() {\n        const onClose = this.get('onClose');\n        // we shouldn't warn if the callback is not provided at all\n        if ((0, _utils.isNone)(onClose)) {\n          return;\n        }\n        (true && !((0, _utils.typeOf)(onClose) === 'function') && (0, _debug.assert)('onClose handler must be a function', (0, _utils.typeOf)(onClose) === 'function'));\n        onClose();\n      },\n      onClickOverlay(e) {\n        e.preventDefault();\n        const onClickOverlay = this.get('onClickOverlay');\n        // we shouldn't warn if the callback is not provided at all\n        if ((0, _utils.isNone)(onClickOverlay)) {\n          this.send('onClose');\n          return;\n        }\n        (true && !((0, _utils.typeOf)(onClickOverlay) === 'function') && (0, _debug.assert)('onClickOverlay handler must be a function', (0, _utils.typeOf)(onClickOverlay) === 'function'));\n        onClickOverlay();\n      }\n    }\n  });\n});","define(\"ember-modal-dialog/components/positioned-container\", [\"exports\", \"@ember/debug\", \"@ember/utils\", \"@ember/component\", \"@ember/string\", \"@ember/object\", \"@ember/object/evented\"], function (_exports, _debug, _utils, _component, _string, _object, _evented) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const SUPPORTED_TARGET_ATTACHMENTS = ['top', 'right', 'bottom', 'left', 'center', 'elementCenter', 'none'];\n  var _default = _exports.default = _component.default.extend({\n    // target - element selector, element, or Ember View\n    // targetAttachment - top, right, bottom, left, center, or none\n    //   left, right, top, bottom (relative to target)\n    //   center (relative to container)\n    targetAttachment: 'center',\n    isPositioned: (0, _object.computed)('targetAttachment', 'target', 'renderInPlace', function () {\n      if (this.get('renderInPlace')) {\n        return false;\n      }\n      let target = this.get('target');\n      let targetAttachment = this.get('targetAttachment');\n      if (target === 'body' && (targetAttachment === 'center' || targetAttachment === 'middle center')) {\n        return false;\n      }\n      if (target && targetAttachment) {\n        return true;\n      }\n      return false;\n    }),\n    didGetPositioned: (0, _object.observer)('isPositioned', (0, _evented.on)('didInsertElement', function () {\n      if (this._state !== 'inDOM') {\n        return;\n      }\n      if (this.get('isPositioned')) {\n        this.updateTargetAttachment();\n      } else {\n        this.element.style.left = '';\n        this.element.style.top = '';\n      }\n    })),\n    getWrappedTargetAttachmentElement() {\n      const target = this.get('target');\n      if (!target) {\n        return null;\n      }\n      if ((0, _utils.typeOf)(target) === 'string') {\n        const targetSelector = target;\n        const wrappedElement = document.querySelector(targetSelector);\n        (true && !(wrappedElement) && (0, _debug.assert)(`No element found for modal-dialog's target selector '${targetSelector}'.`, wrappedElement));\n        return wrappedElement;\n      }\n\n      // passed an ember view or component\n      if (target.element) {\n        return target.element;\n      }\n\n      // passed an element directly\n      return target;\n    },\n    updateTargetAttachment() {\n      let targetAttachment = this.get('targetAttachment');\n      // Convert tether-styled values like 'middle right' to 'right'\n      targetAttachment = targetAttachment.split(' ').slice(-1)[0];\n      (true && !(SUPPORTED_TARGET_ATTACHMENTS.indexOf(targetAttachment) > -1) && (0, _debug.assert)(`Positioned container supports targetAttachments of ${SUPPORTED_TARGET_ATTACHMENTS.join(', ')}`, SUPPORTED_TARGET_ATTACHMENTS.indexOf(targetAttachment) > -1));\n      const targetAttachmentMethod = `align${(0, _string.capitalize)(targetAttachment)}`;\n      const targetAttachmentElement = this.getWrappedTargetAttachmentElement();\n      this[targetAttachmentMethod](targetAttachmentElement);\n    },\n    alignCenter() {\n      const elementWidth = this.element.offsetWidth;\n      const elementHeight = this.element.offsetHeight;\n      this.element.style.left = '50%';\n      this.element.style.top = '50%';\n      this.element.style.marginLeft = `${elementWidth * -0.5}px`;\n      this.element.style.marginTop = `${elementHeight * -0.5}px`;\n    },\n    alignLeft(targetAttachmentElement) {\n      (true && !(targetAttachmentElement) && (0, _debug.assert)('Left targetAttachment requires a target', targetAttachmentElement));\n      const elementWidth = this.element.offsetWidth;\n      const originOffset = targetAttachmentElement.getBoundingClientRect();\n      const originOffsetTop = originOffset.top;\n      this.element.style.left = `${originOffset.left - elementWidth}px`;\n      this.element.style.top = `${originOffsetTop}px`;\n    },\n    alignRight(targetAttachmentElement) {\n      (true && !(targetAttachmentElement) && (0, _debug.assert)('Right targetAttachment requires a target', targetAttachmentElement));\n      const targetWidth = targetAttachmentElement.offsetWidth;\n      const originOffset = targetAttachmentElement.getBoundingClientRect();\n      const originOffsetTop = originOffset.top;\n      this.element.style.left = `${originOffset.left + targetWidth}px`;\n      this.element.style.top = `${originOffsetTop}px`;\n    },\n    alignTop(targetAttachmentElement) {\n      (true && !(targetAttachmentElement) && (0, _debug.assert)('Top targetAttachment requires a target', targetAttachmentElement));\n      const elementWidth = this.element.offsetWidth;\n      const elementHeight = this.element.offsetHeight;\n      const originOffset = targetAttachmentElement.getBoundingClientRect();\n      const originOffsetTop = originOffset.top;\n      const targetWidth = targetAttachmentElement.offsetWidth;\n      this.element.style.left = `${originOffset.left + targetWidth / 2 - elementWidth / 2}px`;\n      this.element.style.top = `${originOffsetTop - elementHeight}px`;\n    },\n    alignBottom(targetAttachmentElement) {\n      (true && !(targetAttachmentElement) && (0, _debug.assert)('Bottom targetAttachment requires a target', targetAttachmentElement));\n      const elementWidth = this.element.offsetWidth;\n      const originOffset = targetAttachmentElement.getBoundingClientRect();\n      const originOffsetTop = originOffset.top;\n      const targetWidth = targetAttachmentElement.offsetWidth;\n      const targetHeight = targetAttachmentElement.offsetHeight;\n      this.element.style.left = `${originOffset.left + targetWidth / 2 - elementWidth / 2}px`;\n      this.element.style.top = `${originOffsetTop + targetHeight}px`;\n    },\n    alignElementCenter(targetAttachmentElement) {\n      (true && !(targetAttachmentElement) && (0, _debug.assert)('ElementCenter targetAttachment requires a target', targetAttachmentElement));\n      const elementWidth = this.element.offsetWidth;\n      const originOffset = targetAttachmentElement.getBoundingClientRect();\n      const originOffsetTop = originOffset.top;\n      const targetWidth = targetAttachmentElement.offsetWidth;\n      const targetHeight = targetAttachmentElement.offsetHeight;\n      const elementHeight = this.element.offsetHeight;\n      this.element.style.left = `${originOffset.left + targetWidth / 2 - elementWidth / 2}px`;\n      this.element.style.top = `${originOffsetTop + targetHeight / 2 - elementHeight / 2}px`;\n    },\n    alignNone() {}\n  });\n});","define(\"ember-modal-dialog/components/tether-dialog\", [\"exports\", \"@ember/object\", \"@ember/string\", \"ember-modal-dialog/components/basic-dialog\", \"ember-modal-dialog/templates/components/tether-dialog\"], function (_exports, _object, _string, _basicDialog, _tetherDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _basicDialog.default.extend({\n    layout: _tetherDialog.default,\n    init() {\n      this._super(...arguments);\n      this._ensureAttachments();\n    },\n    targetAttachmentClass: (0, _object.computed)('targetAttachment', function () {\n      let targetAttachment = this.get('targetAttachment') || '';\n      return `ember-modal-dialog-target-attachment-${(0, _string.dasherize)(targetAttachment)}`;\n    }),\n    targetAttachment: null,\n    attachment: null,\n    didReceiveAttrs() {\n      this._super(...arguments);\n      this._ensureAttachments();\n    },\n    tetherTarget: null,\n    // element, css selector, view instance, 'viewport', or 'scroll-handle'\n    tetherClassPrefix: (0, _object.computed)({\n      get() {\n        return 'ember-tether';\n      },\n      set(key, val) {\n        if (val) {\n          return val;\n        }\n        return 'ember-tether';\n      }\n    }),\n    // offset - passed in\n    // targetOffset - passed in\n    // targetModifier - passed in\n    _ensureAttachments() {\n      if (!this.get('attachment')) {\n        this.set('attachment', 'middle center');\n      }\n      if (!this.get('targetAttachment')) {\n        this.set('targetAttachment', 'middle center');\n      }\n    }\n  });\n});","define(\"ember-modal-dialog/initializers/add-modals-container\", [\"exports\", \"@ember/application\", \"@ember/engine\", \"@ember/debug\", \"ember\"], function (_exports, _application, _engine, _debug, _ember) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  let hasDOM = typeof document !== 'undefined';\n  function appendContainerElement(rootElementOrId, id) {\n    if (!hasDOM) {\n      return;\n    }\n    if (document.getElementById(id)) {\n      return;\n    }\n    let rootEl = rootElementOrId.appendChild ? rootElementOrId : document.querySelector(rootElementOrId);\n    let modalContainerEl = document.createElement('div');\n    modalContainerEl.id = id;\n    rootEl.appendChild(modalContainerEl);\n  }\n  function _default(AppOrEngine) {\n    let App;\n    if (AppOrEngine instanceof _application.default) {\n      App = AppOrEngine;\n    } else if (AppOrEngine instanceof _engine.default) {\n      // As there is only a single `Router` across the whole app, which is owned\n      // by the root `Application`, this reliably finds the root `Application`\n      // from an`Engine`.\n      // eslint-disable-next-line ember/no-private-routing-service\n      App = (0, _application.getOwner)((0, _application.getOwner)(AppOrEngine).lookup('router:main'));\n    } else {\n      (true && !(false) && (0, _debug.assert)(`Could not find the root Application for '${AppOrEngine}'.`));\n    }\n    let emberModalDialog = AppOrEngine.emberModalDialog ?? App.emberModalDialog ?? {};\n    let modalContainerElId = emberModalDialog.modalRootElementId || 'modal-overlays';\n    AppOrEngine.register('config:modals-container-id', {\n      toString: () => _ember.default.testing ? 'ember-testing' : modalContainerElId\n    }, {\n      instantiate: false\n    });\n    AppOrEngine.inject('service:modal-dialog', 'destinationElementId', 'config:modals-container-id');\n    appendContainerElement(App.rootElement, modalContainerElId);\n  }\n});","define(\"ember-modal-dialog/templates/components/basic-dialog\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"bCoSiZAA\",\n    \"block\": \"[[[6,[39,0],null,[[\\\"to\\\"],[[33,1]]],[[\\\"default\\\"],[[[[41,[33,3],[[[1,\\\"    \\\"],[10,0],[15,0,[29,[[36,4],\\\" \\\",[36,5]]]],[12],[1,\\\"\\\\n\\\"],[41,[33,6],[[[1,\\\"        \\\"],[10,0],[15,0,[36,7]],[15,\\\"onclick\\\",[28,[37,8],[[30,0],[33,9]],null]],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"data-emd-overlay\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[6,[39,10],null,[[\\\"class\\\",\\\"targetAttachment\\\",\\\"target\\\"],[[33,11],[33,12],[33,13]]],[[\\\"default\\\"],[[[[1,\\\"        \\\"],[18,1,null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[15,0,[29,[[36,4],\\\" \\\",[36,5]]]],[12],[1,\\\"\\\\n\\\"],[41,[33,6],[[[1,\\\"        \\\"],[10,0],[15,0,[36,7]],[15,\\\"onclick\\\",[28,[37,8],[[30,0],[28,[37,15],[[33,9]],null]],null]],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"data-emd-overlay\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[6,[39,10],null,[[\\\"class\\\",\\\"targetAttachment\\\",\\\"target\\\"],[[33,11],[33,12],[33,13]]],[[\\\"default\\\"],[[[[1,\\\"            \\\"],[18,1,null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[6,[39,10],null,[[\\\"class\\\",\\\"targetAttachment\\\",\\\"target\\\"],[[33,11],[33,12],[33,13]]],[[\\\"default\\\"],[[[[1,\\\"          \\\"],[18,1,null],[1,\\\"\\\\n\\\"]],[]]]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]]],[\\\"&default\\\"],false,[\\\"ember-wormhole\\\",\\\"destinationElementId\\\",\\\"if\\\",\\\"isOverlaySibling\\\",\\\"wrapperClassNamesString\\\",\\\"wrapperClass\\\",\\\"hasOverlay\\\",\\\"overlayClassNamesString\\\",\\\"action\\\",\\\"onClickOverlay\\\",\\\"ember-modal-dialog-positioned-container\\\",\\\"containerClassNamesString\\\",\\\"targetAttachment\\\",\\\"legacyTarget\\\",\\\"yield\\\",\\\"ignore-children\\\"]]\",\n    \"moduleName\": \"ember-modal-dialog/templates/components/basic-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-modal-dialog/templates/components/in-place-dialog\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"OHd/XjJe\",\n    \"block\": \"[[[10,0],[15,0,[28,[37,0],[[33,1],\\\" \\\",[33,2],\\\" \\\",[33,3]],null]],[12],[1,\\\"\\\\n  \\\"],[18,1,null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"&default\\\"],false,[\\\"concat\\\",\\\"containerClassNamesString\\\",\\\"attachmentClass\\\",\\\"containerClass\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-modal-dialog/templates/components/in-place-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-modal-dialog/templates/components/liquid-dialog\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"gkDuAwdG\",\n    \"block\": \"[[[41,[33,1],[[[6,[39,2],null,[[\\\"stack\\\",\\\"value\\\",\\\"class\\\"],[[33,3],[33,4],[28,[37,5],[\\\"liquid-dialog-container \\\",[33,6],\\\" \\\",[33,7]],null]]],[[\\\"default\\\"],[[[[1,\\\"    \\\"],[10,0],[15,0,[29,[[36,6],\\\" \\\",[36,7]]]],[12],[1,\\\"\\\\n\\\"],[41,[33,8],[[[1,\\\"        \\\"],[10,0],[15,0,[36,9]],[15,\\\"onclick\\\",[28,[37,10],[[30,0],[33,11]],null]],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"data-emd-overlay\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[15,0,[36,12]],[12],[1,\\\"\\\\n        \\\"],[18,1,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[]],[[[6,[39,2],null,[[\\\"stack\\\",\\\"value\\\",\\\"class\\\"],[[33,3],[33,4],[28,[37,5],[\\\"liquid-dialog-container \\\",[33,6],\\\" \\\",[33,7]],null]]],[[\\\"default\\\"],[[[[41,[33,8],[[[1,\\\"      \\\"],[10,0],[15,0,[36,9]],[15,\\\"onclick\\\",[28,[37,10],[[30,0],[28,[37,14],[[33,11]],null]],null]],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"data-emd-overlay\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[15,0,[36,12]],[12],[1,\\\"\\\\n          \\\"],[18,1,null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[15,0,[36,12]],[12],[1,\\\"\\\\n        \\\"],[18,1,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]]],[]]]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"isOverlaySibling\\\",\\\"liquid-wormhole\\\",\\\"stack\\\",\\\"value\\\",\\\"concat\\\",\\\"wrapperClassNamesString\\\",\\\"wrapperClass\\\",\\\"hasOverlay\\\",\\\"overlayClassNamesString\\\",\\\"action\\\",\\\"onClickOverlay\\\",\\\"containerClassNamesString\\\",\\\"yield\\\",\\\"ignore-children\\\"]]\",\n    \"moduleName\": \"ember-modal-dialog/templates/components/liquid-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-modal-dialog/templates/components/liquid-tether-dialog\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"nlOjIi93\",\n    \"block\": \"[[[41,[33,1],[[[6,[39,2],null,[[\\\"stack\\\",\\\"class\\\"],[\\\"modal-overlay\\\",\\\"liquid-dialog-container\\\"]],[[\\\"default\\\"],[[[[1,\\\"    \\\"],[10,0],[15,0,[36,3]],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[33,5]],null]],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"data-emd-overlay\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[]],null],[6,[39,6],null,[[\\\"class\\\",\\\"target\\\",\\\"attachment\\\",\\\"targetAttachment\\\",\\\"targetModifier\\\",\\\"classPrefix\\\",\\\"offset\\\",\\\"targetOffset\\\",\\\"constraints\\\",\\\"stack\\\",\\\"value\\\"],[[33,7],[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[33,14],[33,15],[33,16],[33,17]]],[[\\\"default\\\"],[[[[1,\\\"  \\\"],[18,1,null],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"hasOverlay\\\",\\\"liquid-wormhole\\\",\\\"overlayClassNamesString\\\",\\\"action\\\",\\\"onClickOverlay\\\",\\\"liquid-tether\\\",\\\"containerClassNamesString\\\",\\\"tetherTarget\\\",\\\"attachment\\\",\\\"targetAttachment\\\",\\\"targetModifier\\\",\\\"tetherClassPrefix\\\",\\\"offset\\\",\\\"targetOffset\\\",\\\"constraints\\\",\\\"stack\\\",\\\"value\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-modal-dialog/templates/components/liquid-tether-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-modal-dialog/templates/components/modal-dialog\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ldwQ+NzZ\",\n    \"block\": \"[[[46,[33,1],null,[[\\\"wrapperClass\\\",\\\"wrapperClassNames\\\",\\\"overlayClass\\\",\\\"overlayClassNames\\\",\\\"containerClass\\\",\\\"containerClassNames\\\",\\\"hasOverlay\\\",\\\"translucentOverlay\\\",\\\"clickOutsideToClose\\\",\\\"destinationElementId\\\",\\\"overlayPosition\\\",\\\"tetherTarget\\\",\\\"legacyTarget\\\",\\\"attachment\\\",\\\"targetAttachment\\\",\\\"targetModifier\\\",\\\"targetOffset\\\",\\\"offset\\\",\\\"tetherClassPrefix\\\",\\\"constraints\\\",\\\"attachmentClass\\\",\\\"targetAttachmentClass\\\",\\\"stack\\\",\\\"value\\\",\\\"onClickOverlay\\\",\\\"onClose\\\"],[[33,2],[33,3],[33,4],[33,5],[33,6],[33,7],[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[33,14],[33,15],[33,16],[33,17],[33,18],[33,19],[33,20],[33,21],[33,22],[33,23],[33,24],[33,25],[28,[37,26],[[30,0],\\\"onClickOverlay\\\"],null],[28,[37,26],[[30,0],\\\"onClose\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"  \\\"],[18,1,null],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"&default\\\"],false,[\\\"component\\\",\\\"modalDialogComponentName\\\",\\\"wrapperClass\\\",\\\"wrapperClassNames\\\",\\\"overlayClass\\\",\\\"overlayClassNames\\\",\\\"containerClass\\\",\\\"containerClassNames\\\",\\\"hasOverlay\\\",\\\"translucentOverlay\\\",\\\"clickOutsideToClose\\\",\\\"destinationElementId\\\",\\\"overlayPosition\\\",\\\"tetherTarget\\\",\\\"target\\\",\\\"attachment\\\",\\\"targetAttachment\\\",\\\"targetModifier\\\",\\\"targetOffset\\\",\\\"offset\\\",\\\"tetherClassPrefix\\\",\\\"constraints\\\",\\\"attachmentClass\\\",\\\"targetAttachmentClass\\\",\\\"stack\\\",\\\"value\\\",\\\"action\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-modal-dialog/templates/components/modal-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-modal-dialog/templates/components/tether-dialog\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"D+BDHWYG\",\n    \"block\": \"[[[41,[33,1],[[[6,[39,2],null,[[\\\"to\\\"],[[33,3]]],[[\\\"default\\\"],[[[[1,\\\"    \\\"],[10,0],[15,0,[36,4]],[15,\\\"onclick\\\",[28,[37,5],[[30,0],[33,6]],null]],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"data-emd-overlay\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[]],null],[6,[39,7],null,[[\\\"class\\\",\\\"target\\\",\\\"attachment\\\",\\\"targetAttachment\\\",\\\"targetModifier\\\",\\\"classPrefix\\\",\\\"offset\\\",\\\"targetOffset\\\",\\\"constraints\\\"],[[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[33,14],[33,15],[33,16]]],[[\\\"default\\\"],[[[[1,\\\"  \\\"],[18,1,null],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"hasOverlay\\\",\\\"ember-wormhole\\\",\\\"destinationElementId\\\",\\\"overlayClassNamesString\\\",\\\"action\\\",\\\"onClickOverlay\\\",\\\"ember-tether\\\",\\\"containerClassNamesString\\\",\\\"tetherTarget\\\",\\\"attachment\\\",\\\"targetAttachment\\\",\\\"targetModifier\\\",\\\"tetherClassPrefix\\\",\\\"offset\\\",\\\"targetOffset\\\",\\\"constraints\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-modal-dialog/templates/components/tether-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-modifier/-private/class/modifier-manager\", [\"exports\", \"@ember/modifier\", \"@ember/destroyable\", \"ember-modifier/-private/class/modifier\", \"ember-modifier/-private/compat\"], function (_exports, _modifier, _destroyable, _modifier2, _compat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function destroyModifier(modifier) {\n    modifier.willRemove();\n    modifier.willDestroy();\n  }\n\n  /**\n   * The state bucket used throughout the life-cycle of the modifier. Basically a\n   * state *machine*, where the framework calls us with the version we hand back\n   * to it at each phase. The two states are the two `extends` versions of this\n   * below.\n   *\n   * @internal\n   */\n\n  /**\n   * The `State` after calling `createModifier`, and therefore the state available\n   * at the start of `InstallModifier`.\n   * @internal\n   */\n\n  /**\n   * The `State` after calling `installModifier`, and therefore the state\n   * available in all `updateModifier` calls and in `destroyModifier`.\n   * @internal\n   */\n\n  // Wraps the unsafe (b/c it mutates, rather than creating new state) code that\n  // TS does not yet understand.\n  function installElement(state, element) {\n    // SAFETY: this cast represents how we are actually handling the state machine\n    // transition: from this point forward in the lifecycle of the modifier, it\n    // always behaves as `InstalledState<S>`. It is safe because, and *only*\n    // because, we immediately initialize `element`. (We cannot create a new state\n    // from the old one because the modifier manager API expects mutation of a\n    // single state bucket rather than updating it at hook calls.)\n    const installedState = state;\n    installedState.element = element;\n    return installedState;\n  }\n  function installElementOnInstance(instance, element) {\n    // SAFETY: we use the internal API for all class-based modifiers to set this\n    // in a way which lets us issue the deprecation warning for anyone accessing\n    // `element` as a getter while allowing types to continue working for any\n    // existing subclasses (see the discussion on the class definition).\n    instance[_modifier2.Element] = element;\n  }\n  function updateArgsOnInstance(instance, args) {\n    // SAFETY: we use the internal API for all class-based modifiers to set this\n    // in a way which lets us issue the deprecation warning for anyone accessing\n    // `args` as a getter while allowing types to continue working for any\n    // existing subclasses (see the discussion on the class definition).\n    instance[_modifier2.Args] = args;\n  }\n  class ClassBasedModifierManager {\n    constructor(owner) {\n      _defineProperty(this, \"capabilities\", (0, _modifier.capabilities)(true ? '3.22' : '3.13'));\n      this.owner = owner;\n    }\n    createModifier(factoryOrClass, args) {\n      const Modifier = (0, _compat.isFactory)(factoryOrClass) ? factoryOrClass.class : factoryOrClass;\n      const modifier = new Modifier(this.owner, args);\n      (0, _destroyable.registerDestructor)(modifier, destroyModifier);\n      return {\n        instance: modifier,\n        implementsModify: (0, _modifier2._implementsModify)(modifier),\n        element: null\n      };\n    }\n    installModifier(createdState, element, args) {\n      const state = installElement(createdState, element);\n\n      // TODO: this can be deleted entirely at v4.\n      const {\n        instance\n      } = state;\n      installElementOnInstance(instance, element);\n      if (state.implementsModify) {\n        instance.modify(element, args.positional, args.named);\n      } else {\n        // The `consumeArgs()` call provides backwards compatibility on v3 for the\n        // deprecated legacy lifecycle hooks (`didInstall`, `didReceiveArguments`,\n        // and `didUpdateArguments`), which accidentally had eager consumption\n        // semantics prior to Ember 3.22. The new, recommended `modify` hook has\n        // the updated lazy semantics associated with normal auto-tracking.\n        if (true) {\n          (0, _compat.consumeArgs)(args);\n        }\n        instance.didReceiveArguments();\n        instance.didInstall();\n      }\n    }\n    updateModifier(state, args) {\n      const {\n        instance\n      } = state;\n\n      // TODO: remove at 4.0\n      updateArgsOnInstance(state.instance, args);\n      if (state.implementsModify) {\n        instance.modify(state.element, args.positional, args.named);\n      } else {\n        // The `consumeArgs()` call provides backwards compatibility on v3 for the\n        // deprecated legacy lifecycle hooks (`didInstall`, `didReceiveArguments`,\n        // and `didUpdateArguments`), which accidentally had eager consumption\n        // semantics prior to Ember 3.22. The new, recommended `modify` hook has\n        // the updated lazy semantics associated with normal auto-tracking.\n        if (true) {\n          (0, _compat.consumeArgs)(args);\n        }\n        instance.didUpdateArguments();\n        instance.didReceiveArguments();\n      }\n    }\n    destroyModifier(state) {\n      (0, _destroyable.destroy)(state.instance);\n    }\n  }\n  _exports.default = ClassBasedModifierManager;\n});","define(\"ember-modifier/-private/class/modifier\", [\"exports\", \"@ember/application\", \"@ember/modifier\", \"ember-modifier/-private/class/modifier-manager\", \"@ember/destroyable\", \"@ember/debug\"], function (_exports, _application, _modifier, _modifierManager, _destroyable, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports._implementsModify = _exports._implementsLegacyHooks = _exports.Element = _exports.Args = void 0;\n  // SAFETY: these sets are dev-only code to avoid showing deprecations for the\n  // same class more than once.\n  let SEEN_CLASSES_FOR_LIFECYCLE;\n  if (true /* DEBUG */) {\n    SEEN_CLASSES_FOR_LIFECYCLE = new Set();\n  }\n  let SEEN_CLASSES_FOR_DESTROYABLES;\n  if (true /* DEBUG */) {\n    SEEN_CLASSES_FOR_DESTROYABLES = new Set();\n  }\n  let SEEN_CLASSES_FOR_ARGS;\n  if (true /* DEBUG */) {\n    SEEN_CLASSES_FOR_ARGS = new Set();\n  }\n  let SEEN_CLASSES_FOR_ELEMENTS;\n  if (true /* DEBUG */) {\n    SEEN_CLASSES_FOR_ELEMENTS = new Set();\n  }\n\n  /** @internal */\n  const _implementsModify = instance => instance.modify !== ClassBasedModifier.prototype.modify;\n\n  /** @internal */\n  _exports._implementsModify = _implementsModify;\n  const _implementsLegacyHooks = instance => instance.didInstall !== ClassBasedModifier.prototype.didInstall || instance.didUpdateArguments !== ClassBasedModifier.prototype.didUpdateArguments || instance.didReceiveArguments !== ClassBasedModifier.prototype.didReceiveArguments;\n\n  /** @internal */\n  _exports._implementsLegacyHooks = _implementsLegacyHooks;\n  const Element = _exports.Element = Symbol('Element');\n\n  /** @internal */\n  const Args = _exports.Args = Symbol('Args');\n\n  // Preserve the signature on a class-based modifier so it can be plucked off\n  // later (by e.g. Glint), using interface merging with an opaque item to\n  // preserve it in the type system. The fact that it's an empty interface is\n  // actually the point: it *only* hooks the type parameter into the opaque\n  // (nominal) type. Note that this is distinct from the function-based modifier\n  // type intentionally, because it is actually the static class side of a\n  // class-based modifier which corresponds to the result of calling `modifier()`\n  // with a callback defining a function-based modifier.\n  // eslint-disable-next-line @typescript-eslint/no-empty-interface\n\n  /**\n   * A base class for modifiers which need more capabilities than function-based\n   * modifiers. Useful if, for example:\n   *\n   * 1. You need to inject services and access them\n   * 2. You need fine-grained control of updates, either for performance or\n   *    convenience reasons, and don't want to teardown the state of your modifier\n   *    every time only to set it up again.\n   * 3. You need to store some local state within your modifier.\n   *\n   * The lifecycle hooks of class modifiers are tracked. When they run, they any\n   * values they access will be added to the modifier, and the modifier will\n   * update if any of those values change.\n   */\n  class ClassBasedModifier {\n    // Done this way with the weird combination of `declare` and `defineProperty`\n    // so that subclasses which are overriding this by writing their own `args`\n    // field type declarations continue to type check correctly. (If we introduced\n    // a getter here, existing classes defining their args via a `declare args:`\n    // would stop type checking, because TS -- correctly! -- differentiates\n    // between class fields and getters).\n    /**\n     * The arguments passed to the modifier. `args.positional` is an array of\n     * positional arguments, and `args.named` is an object containing the named\n     * arguments.\n     *\n     * @deprecated Until 4.0. Access positional and named arguments directly in\n     *   the `modify` hook instead.\n     */\n\n    // Done this way with the weird combination of `declare` and `defineProperty`\n    // so that subclasses which are overriding this by writing their own `element`\n    // field declarations continue to type check correctly.\n    /**\n     * The element the modifier is applied to.\n     *\n     * @warning `element` is ***not*** available during `constructor` or\n     *   `willDestroy`.\n     * @deprecated Until 4.0. Access the `element` as an argument in the `modify`\n     *   hook instead.\n     */\n    constructor(owner, args) {\n      (0, _application.setOwner)(this, owner);\n\n      // SAFETY: the point here is (for the period where we are providing `args`\n      // and `element`) to provide an internal-only way of setting and update the\n      // `args` for the modifier instance; we use the `InternalClassBasedModifier`\n      // interface to represent the internal-only API in a way that end users do\n      // *not* have access to when subclassing `ClassBasedModifier`.\n      this[Args] = args;\n      (true && !(!(_implementsModify(this) && _implementsLegacyHooks(this))) && (0, _debug.assert)('ember-modifier: You cannot implement both `modify` and any of the deprecated legacy lifecycle hooks (`didInstall`, `didReceiveArguments`, and `didUpdateArguments`)', !(_implementsModify(this) && _implementsLegacyHooks(this))));\n      (true && !(this.willDestroy === ClassBasedModifier.prototype.willDestroy || SEEN_CLASSES_FOR_DESTROYABLES.has(this.constructor)) && (0, _debug.deprecate)(`ember-modifier (in ${this.constructor.name} at ${new Error().stack}): \\`willDestroy\\`, \\`isDestroyed\\`, and \\`isDestroyed\\` are deprecated. Use the corresponding API from '@ember/destroyable' instead.`, this.willDestroy === ClassBasedModifier.prototype.willDestroy || SEEN_CLASSES_FOR_DESTROYABLES.has(this.constructor), {\n        id: 'ember-modifier.use-destroyables',\n        until: '4.0.0',\n        for: 'ember-modifier',\n        since: {\n          available: '3.2.0',\n          enabled: '3.2.0'\n        }\n      }));\n      if (true /* DEBUG */ && !SEEN_CLASSES_FOR_DESTROYABLES.has(this.constructor)) {\n        SEEN_CLASSES_FOR_DESTROYABLES.add(this.constructor);\n      }\n      (true && !(_implementsModify(this) || SEEN_CLASSES_FOR_LIFECYCLE.has(this.constructor)) && (0, _debug.deprecate)(`ember-modifier (in ${this.constructor.name} at ${new Error().stack}): The \\`didInstall\\`, \\`didReceiveArguments\\`, and \\`didUpdateArguments\\` hooks are deprecated. Use the new \\`modify\\` hook instead.`, _implementsModify(this) || SEEN_CLASSES_FOR_LIFECYCLE.has(this.constructor), {\n        id: 'ember-modifier.use-modify',\n        until: '4.0.0',\n        for: 'ember-modifier',\n        since: {\n          available: '3.2.0',\n          enabled: '3.2.0'\n        }\n      }));\n      if (true /* DEBUG */ && !SEEN_CLASSES_FOR_LIFECYCLE.has(this.constructor)) {\n        SEEN_CLASSES_FOR_LIFECYCLE.add(this.constructor);\n      }\n    }\n\n    /**\n     * Called when the modifier is installed and any time any tracked state used\n     * in the modifier changes.\n     *\n     * If you need to do first-time-only setup, create a class field representing\n     * the initialization state and check it when running the hook. That is also\n     * where and when you should use `registerDestructor` for any teardown you\n     * need to do. For example:\n     *\n     * ```js\n     * function disconnect(instance) {\n     *  instance.observer?.disconnect();\n     * }\n     *\n     * class IntersectionObserver extends Modifier {\n     *   observer;\n     *\n     *   constructor(owner, args) {\n     *     super(owner, args);\n     *     registerDestructor(this, disconnect);\n     *   }\n     *\n     *   modify(element, callback, options) {\n     *     disconnect(this);\n     *\n     *     this.observer = new IntersectionObserver(callback, options);\n     *     this.observer.observe(element);\n     *   }\n     * }\n     * ```\n     *\n     * @param element The element to which the modifier is applied.\n     * @param positional The positional arguments to the modifier.\n     * @param named The named arguments to the modifier.\n     */\n    modify( /* eslint-disable @typescript-eslint/no-unused-vars */\n    element, positional, named) {\n      /* no op, for subclassing */\n    }\n\n    /**\n     * Called when the modifier is installed **and** anytime the arguments are\n     * updated.\n     *\n     * @deprecated Until 4.0. Use `modify()`.\n     */\n    didReceiveArguments() {\n      /* no op, for subclassing */\n    }\n\n    /**\n     * Called anytime the arguments are updated but **not** on the initial\n     * install. Called before `didReceiveArguments`.\n     *\n     * @deprecated Until 4.0. Use `modify()`.\n     */\n    didUpdateArguments() {\n      /* no op, for subclassing */\n    }\n\n    /**\n     * Called when the modifier is installed on the DOM element. Called after\n     * `didReceiveArguments`.\n     *\n     * @deprecated Until 4.0. Use `modify()`.\n     */\n    didInstall() {\n      /* no op, for subclassing */\n    }\n\n    /**\n     * Called when the DOM element is about to be destroyed; use for removing\n     * event listeners on the element and other similar clean-up tasks.\n     *\n     * @deprecated since 2.0.0: prefer to use `willDestroy`, since both it and\n     *   `willRemove` can perform all the same operations, including on the\n     *   `element`.\n     */\n    willRemove() {\n      /* no op, for subclassing */\n    }\n\n    /**\n     * Called when the modifier itself is about to be destroyed; use for teardown\n     * code. Called after `willRemove`.\n     *\n     * @deprecated Until 4.0. Use `registerDestructor` from `@ember/destroyables`.\n     */\n    willDestroy() {\n      /* no op, for subclassing */\n    }\n\n    /**\n     * @deprecated Until 4.0. Use `isDestroying` from `@ember/destroyables`.\n     */\n    get isDestroying() {\n      (true && !(SEEN_CLASSES_FOR_DESTROYABLES.has(this.constructor)) && (0, _debug.deprecate)('Modifier.isDestroying is deprecated', SEEN_CLASSES_FOR_DESTROYABLES.has(this.constructor), {\n        id: 'ember-modifier.use-destroyables',\n        until: '4.0.0',\n        for: 'ember-modifier',\n        since: {\n          available: '3.2.0',\n          enabled: '3.2.0'\n        }\n      }));\n      if (true /* DEBUG */ && !SEEN_CLASSES_FOR_DESTROYABLES.has(this.constructor)) {\n        SEEN_CLASSES_FOR_DESTROYABLES.add(this.constructor);\n      }\n      return (0, _destroyable.isDestroying)(this);\n    }\n\n    /**\n     * @deprecated Until 4.0. Use `isDestroyed` from `@ember/destroyables`.\n     */\n    get isDestroyed() {\n      (true && !(SEEN_CLASSES_FOR_DESTROYABLES.has(this.constructor)) && (0, _debug.deprecate)('Modifier.isDestroyed is deprecated', SEEN_CLASSES_FOR_DESTROYABLES.has(this.constructor), {\n        id: 'ember-modifier.use-destroyables',\n        until: '4.0.0',\n        for: 'ember-modifier',\n        since: {\n          available: '3.2.0',\n          enabled: '3.2.0'\n        }\n      }));\n      if (true /* DEBUG */ && !SEEN_CLASSES_FOR_DESTROYABLES.has(this.constructor)) {\n        SEEN_CLASSES_FOR_DESTROYABLES.add(this.constructor);\n      }\n      return (0, _destroyable.isDestroyed)(this);\n    }\n  }\n\n  // We apply these here, against the prototype, so that there is only one of\n  // these, rather than one per instance. We also only issue the deprecation once\n  // per class for each of `args` and `element`.\n  _exports.default = ClassBasedModifier;\n  Object.defineProperty(ClassBasedModifier.prototype, 'args', {\n    enumerable: true,\n    get() {\n      (true && !(SEEN_CLASSES_FOR_ARGS.has(this.constructor)) && (0, _debug.deprecate)(`ember-modifier (in ${this.constructor.name} at ${new Error().stack}): using \\`this.args\\` is deprecated. Access positional and named arguments directly in the \\`modify\\` hook instead.`, SEEN_CLASSES_FOR_ARGS.has(this.constructor), {\n        id: 'ember-modifier.no-args-property',\n        for: 'ember-modifier',\n        since: {\n          available: '3.2.0',\n          enabled: '3.2.0'\n        },\n        until: '4.0.0'\n      }));\n      if (true /* DEBUG */ && !SEEN_CLASSES_FOR_ARGS.has(this.constructor)) {\n        SEEN_CLASSES_FOR_ARGS.add(this.constructor);\n      }\n      return this[Args];\n    }\n  });\n  Object.defineProperty(ClassBasedModifier.prototype, 'element', {\n    enumerable: true,\n    get() {\n      (true && !(SEEN_CLASSES_FOR_ELEMENTS.has(this.constructor)) && (0, _debug.deprecate)(`ember-modifier (in ${this.constructor.name} at ${new Error().stack}): using \\`this.element\\` is deprecated. Access the \\`element\\` as an argument in the \\`modify\\` hook instead.`, SEEN_CLASSES_FOR_ELEMENTS.has(this.constructor), {\n        id: 'ember-modifier.no-element-property',\n        for: 'ember-modifier',\n        since: {\n          available: '3.2.0',\n          enabled: '3.2.0'\n        },\n        until: '4.0.0'\n      }));\n      if (true /* DEBUG */ && !SEEN_CLASSES_FOR_ELEMENTS.has(this.constructor)) {\n        SEEN_CLASSES_FOR_ELEMENTS.add(this.constructor);\n      }\n      return this[Element] ?? null;\n    }\n  });\n\n  /**\n   * @internal This provides an interface we can use to backwards-compatibly set\n   *   up the element in a way that external callers will not have access to or\n   *   even see.\n   */\n\n  (0, _modifier.setModifierManager)(owner => new _modifierManager.default(owner), ClassBasedModifier);\n});","define(\"ember-modifier/-private/compat\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.consumeArgs = void 0;\n  _exports.isFactory = isFactory;\n  function isFactory(\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  _factoryOrClass) {\n    return !true;\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-empty-function\n  const noop = () => {};\n\n  /**\n   * Consume each positional and named argument to entangle it in autotracking and\n   * enable updates.\n   *\n   * This is a temporary workaround for a change in the autotracking semantics of\n   * the args proxy introduced in `v3.22`. What changed is that arguments are no\n   * longer eagerly consumed. Didn’t use an argument? Then updates won’t be run\n   * when its value changes. This workaround reproduces the previous behaviour to\n   * avoid introducing a breaking change until a suitable transition path is made\n   * available.\n   */\n  let consumeArgs = _exports.consumeArgs = noop;\n  if (true) {\n    _exports.consumeArgs = consumeArgs = function ({\n      positional,\n      named\n    }) {\n      // SAFETY: TS before 4.6 does not correctly/fully resolve the type in a way\n      // that allows the type checker to see that `positional` must *always* be\n      // something which `extends unknown[]` here, because the underlying\n      // machinery is fairly complicated and relies on a fair bit of type\n      // recursion. It will stop mattering when we cut v4.0, because we won't be\n      // doing this anyway.\n      const pos = positional;\n      for (let i = 0; i < pos.length; i++) {\n        pos[i];\n      }\n\n      // SAFETY: TS 4.7 does not see that `named` will always be an object here.\n      // However, it is guaranteed to be resolved as such by the types. This *may*\n      // be a bug (https://github.com/microsoft/TypeScript/issues/48468), but it\n      // *should* also stop being relevant once we ship 4.0.\n      Object.values(named);\n    };\n  }\n});","define(\"ember-modifier/-private/function-based/modifier-manager\", [\"exports\", \"@ember/modifier\", \"ember-modifier/-private/compat\"], function (_exports, _modifier, _compat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  // Wraps the unsafe (b/c it mutates, rather than creating new state) code that\n  // TS does not yet understand.\n  function installElement(state, element) {\n    // SAFETY: this cast represents how we are actually handling the state machine\n    // transition: from this point forward in the lifecycle of the modifier, it\n    // always behaves as `InstalledState<S>`. It is safe because, and *only*\n    // because, we immediately initialize `element`. (We cannot create a new state\n    // from the old one because the modifier manager API expects mutation of a\n    // single state bucket rather than updating it at hook calls.)\n    const installedState = state;\n    installedState.element = element;\n    return installedState;\n  }\n  class FunctionBasedModifierManager {\n    constructor(options) {\n      _defineProperty(this, \"capabilities\", (0, _modifier.capabilities)(true ? '3.22' : '3.13'));\n      _defineProperty(this, \"options\", void 0);\n      this.options = {\n        eager: options?.eager ?? true\n      };\n    }\n    createModifier(factoryOrClass) {\n      const instance = (0, _compat.isFactory)(factoryOrClass) ? factoryOrClass.class : factoryOrClass;\n      return {\n        element: null,\n        instance: instance\n      };\n    }\n    installModifier(createdState, element, args) {\n      const state = installElement(createdState, element);\n      const {\n        positional,\n        named\n      } = args;\n      const teardown = createdState.instance(element, positional, named);\n      if (typeof teardown === 'function') {\n        state.teardown = teardown;\n      }\n      if (true && this.options.eager) {\n        (0, _compat.consumeArgs)(args);\n      }\n    }\n    updateModifier(state, args) {\n      if (state.teardown) {\n        state.teardown();\n      }\n      const teardown = state.instance(state.element, args.positional, args.named);\n      if (typeof teardown === 'function') {\n        state.teardown = teardown;\n      }\n      if (true && this.options.eager) {\n        (0, _compat.consumeArgs)(args);\n      }\n    }\n    destroyModifier(state) {\n      if (typeof state.teardown === 'function') {\n        state.teardown();\n      }\n    }\n  }\n  _exports.default = FunctionBasedModifierManager;\n});","define(\"ember-modifier/-private/function-based/modifier\", [\"exports\", \"@ember/debug\", \"@ember/modifier\", \"ember-modifier/-private/class/modifier\", \"ember-modifier/-private/function-based/modifier-manager\"], function (_exports, _debug, _modifier, _modifier2, _modifierManager) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = modifier;\n  // Provide a singleton manager for each of the options. (If we extend this to\n  // many more options in the future, we can revisit, but for now this means we\n  // only ever allocate two managers.)\n  const EAGER_MANAGER = new _modifierManager.default({\n    eager: true\n  });\n  const LAZY_MANAGER = new _modifierManager.default({\n    eager: false\n  });\n\n  // This type exists to provide a non-user-constructible, non-subclassable\n  // type representing the conceptual \"instance type\" of a function modifier.\n  // The abstract field of type `never` prevents subclassing in userspace of\n  // the value returned from `modifier()`. By extending `Modifier<S>`, any\n  // augmentations of the `Modifier` type performed by tools like Glint will\n  // also apply to function-based modifiers as well.\n  // This provides a type whose only purpose here is to represent the runtime\n  // type of a function-based modifier: a virtually opaque item. The fact that it's\n  // a bare constructor type allows `modifier()` to preserve type parameters from\n  // a generic function it's passed, and by making it abstract and impossible to\n  // subclass (see above) we prevent users from attempting to instantiate the return\n  // value from a `modifier()` call.\n  /**\n   * The (optional) return type for a modifier which needs to perform some kind of\n   * cleanup or teardown -- for example, removing an event listener from an\n   * element besides the one passed into the modifier.\n   */\n  /**\n   * An API for writing simple modifiers.\n   *\n   * This function runs the first time when the element the modifier was applied\n   * to is inserted into the DOM, and it *autotracks* while running. Any values\n   * that it accesses will be tracked, and if any of them changes, the function\n   * will run again.\n   *\n   * **Note:** this will rerun if any of its arguments change, *whether or not you\n   * access them*. This is legacy behavior and you should switch to using the\n   * `{ eager: false }` variant, which has normal auto-tracking semantics.\n   *\n   * The modifier can also optionally return a *destructor*. The destructor\n   * function will be run just before the next update, and when the element is\n   * being removed entirely. It should generally clean up the changes that the\n   * modifier made in the first place.\n   *\n   * @deprecated Until 4.0. Calling `modifier()` without an options argument is\n   *   deprecated. It is supported until 4.0 so that existing modifiers can be\n   *   migrated individually. Please update your function-based modifiers to pass\n   *   `{ eager: false }`.\n   *\n   * @param fn The function which defines the modifier.\n   */\n  // This overload allows users to write types directly on the callback passed to\n  // the `modifier` function and infer the resulting type correctly.\n  /**\n   * An API for writing simple modifiers.\n   *\n   * This function runs the first time when the element the modifier was applied\n   * to is inserted into the DOM, and it *autotracks* while running. Any values\n   * that it accesses will be tracked, and if any of them changes, the function\n   * will run again.\n   *\n   * **Note:** this will rerun if any of its arguments change, *whether or not you\n   * access them*. This is legacy behavior and you should switch to using the\n   * `{ eager: false }` variant, which has normal auto-tracking semantics.\n   *\n   * The modifier can also optionally return a *destructor*. The destructor\n   * function will be run just before the next update, and when the element is\n   * being removed entirely. It should generally clean up the changes that the\n   * modifier made in the first place.\n   *\n   * @deprecated Until 4.0. Calling `modifier()` with `{ eager: true }` is\n   *   deprecated. It is supported until 4.0 so that existing modifiers can be\n   *   migrated individually. Please update your function-based modifiers to pass\n   *   `{ eager: false }`.\n   *\n   * @param fn The function which defines the modifier.\n   * @param options Configuration for the modifier.\n   */\n  // This overload allows users to write types directly on the callback passed to\n  // the `modifier` function and infer the resulting type correctly.\n  /**\n   * An API for writing simple modifiers.\n   *\n   * This function runs the first time when the element the modifier was applied\n   * to is inserted into the DOM, and it *autotracks* while running. Any values\n   * that it accesses will be tracked, including any of its arguments that it\n   * accesses, and if any of them changes, the function will run again.\n   *\n   * **Note:** this will *not* automatically rerun because an argument changes. It\n   * will only rerun if it is *using* that argument (the same as with auto-tracked\n   * state in general).\n   *\n   * The modifier can also optionally return a *destructor*. The destructor\n   * function will be run just before the next update, and when the element is\n   * being removed entirely. It should generally clean up the changes that the\n   * modifier made in the first place.\n   *\n   * @param fn The function which defines the modifier.\n   * @param options Configuration for the modifier.\n   */\n  // This overload allows users to write types directly on the callback passed to\n  // the `modifier` function and infer the resulting type correctly.\n  /**\n   * An API for writing simple modifiers.\n   *\n   * This function runs the first time when the element the modifier was applied\n   * to is inserted into the DOM, and it *autotracks* while running. Any values\n   * that it accesses will be tracked, including any of its arguments that it\n   * accesses, and if any of them changes, the function will run again.\n   *\n   * **Note:** this will *not* automatically rerun because an argument changes. It\n   * will only rerun if it is *using* that argument (the same as with auto-tracked\n   * state in general).\n   *\n   * The modifier can also optionally return a *destructor*. The destructor\n   * function will be run just before the next update, and when the element is\n   * being removed entirely. It should generally clean up the changes that the\n   * modifier made in the first place.\n   *\n   * @param fn The function which defines the modifier.\n   * @param options Configuration for the modifier.\n   */\n  // This overload allows users to provide a `Signature` type explicitly at the\n  // modifier definition site, e.g. `modifier<Sig>((el, pos, named) => {...})`.\n  // **Note:** this overload must appear second, since TS' inference engine will\n  // not correctly infer the type of `S` here from the types on the supplied\n  // callback.\n  // This is the runtime signature; it performs no inference whatsover and just\n  // uses the simplest version of the invocation possible since, for the case of\n  // setting it on the modifier manager, we don't *need* any of that info, and\n  // the two previous overloads capture all invocations from a type perspective.\n  function modifier(fn, options = {\n    eager: true\n  }) {\n    (true && !(options !== undefined) && (0, _debug.deprecate)(`ember-modifier (for ${fn.name ?? fn} at ${new Error().stack}): creating a function-based modifier without options is deprecated and will be removed at v4.0`, options !== undefined, {\n      id: 'ember-modifier.function-based-options',\n      for: 'ember-modifier',\n      since: {\n        available: '3.2.0',\n        enabled: '3.2.0'\n      },\n      until: '4.0.0'\n    }));\n    (true && !(options?.eager === false) && (0, _debug.deprecate)(`ember-modifier (for ${fn.name ?? fn} at ${new Error().stack}): creating a function-based modifier with \\`{ eager: true }\\` is deprecated and will be removed at v4.0`, options?.eager === false, {\n      id: 'ember-modifier.function-based-options',\n      for: 'ember-modifier',\n      since: {\n        available: '3.2.0',\n        enabled: '3.2.0'\n      },\n      until: '4.0.0'\n    })); // SAFETY: the cast here is a *lie*, but it is a useful one. The actual return\n    // type of `setModifierManager` today is `void`; we pretend it actually\n    // returns an opaque `Modifier` type so that we can provide a result from this\n    // type which is useful to TS-aware tooling (e.g. Glint).\n    return (0, _modifier.setModifierManager)(() => options.eager ? EAGER_MANAGER : LAZY_MANAGER, fn);\n  }\n\n  /**\n   * @internal\n   */\n\n  /**\n   * @deprecated Instead of defining a function to match this type, simply define\n   *   a function-based modifier either using a `Signature` or by defining the\n   *   types on the callback passed to the `modifier`.\n   */\n});","define(\"ember-modifier/-private/interfaces\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n});","define(\"ember-modifier/-private/opaque\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n});","define(\"ember-modifier/-private/signature\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n});","define(\"ember-modifier/index\", [\"exports\", \"ember-modifier/-private/class/modifier\", \"ember-modifier/-private/function-based/modifier\"], function (_exports, _modifier, _modifier2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _modifier.default;\n    }\n  });\n  Object.defineProperty(_exports, \"modifier\", {\n    enumerable: true,\n    get: function () {\n      return _modifier2.default;\n    }\n  });\n});","define(\"ember-on-modifier/helpers/prevent-default\", [\"exports\", \"@ember/application/deprecations\", \"@ember/component/helper\", \"@ember/debug\"], function (_exports, _deprecations, _helper, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.preventDefault = preventDefault;\n  function preventDefault([handler]) {\n    (true && !(false) && (0, _deprecations.deprecate)('`(prevent-default)` has been moved to `ember-event-helpers`.', false, {\n      id: 'ember-on-modifier.prevent-default',\n      until: '1.0.0',\n      url: 'https://github.com/buschtoens/ember-event-helpers'\n    }));\n    (true && !(!handler || typeof handler === 'function') && (0, _debug.assert)(`Expected '${handler}' to be a function, if present.`, !handler || typeof handler === 'function'));\n    return function (event) {\n      (true && !(event && typeof event.preventDefault === 'function') && (0, _debug.assert)(`Expected '${event}' to be an Event and have a 'preventDefault' method.`, event && typeof event.preventDefault === 'function'));\n      event.preventDefault();\n      if (handler) handler(event);\n    };\n  }\n  var _default = _exports.default = (0, _helper.helper)(preventDefault);\n});","define(\"ember-on-modifier/utils/event-listener\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.SUPPORTS_EVENT_OPTIONS = void 0;\n  _exports.addEventListener = addEventListener;\n  _exports.addEventListenerOnce = addEventListenerOnce;\n  _exports.removeEventListener = removeEventListener;\n  /* eslint no-param-reassign: \"off\" */\n\n  /**\n   * Internet Explorer 11 does not support `once` and also does not support\n   * passing `eventOptions`. In some situations it then throws a weird script\n   * error, like:\n   *\n   * ```\n   * Could not complete the operation due to error 80020101\n   * ```\n   *\n   * This flag determines, whether `{ once: true }` and thus also event options in\n   * general are supported.\n   */\n  const SUPPORTS_EVENT_OPTIONS = _exports.SUPPORTS_EVENT_OPTIONS = (() => {\n    try {\n      const div = document.createElement('div');\n      let counter = 0;\n      div.addEventListener('click', () => counter++, {\n        once: true\n      });\n      let event;\n      if (typeof Event === 'function') {\n        event = new Event('click');\n      } else {\n        event = document.createEvent('Event');\n        event.initEvent('click', true, true);\n      }\n      div.dispatchEvent(event);\n      div.dispatchEvent(event);\n      return counter === 1;\n    } catch (error) {\n      return false;\n    }\n  })();\n\n  /**\n   * Registers an event for an `element` that is called exactly once and then\n   * unregistered again. This is effectively a polyfill for `{ once: true }`.\n   *\n   * It also accepts a fourth optional argument `useCapture`, that will be passed\n   * through to `addEventListener`.\n   *\n   * @param {Element} element\n   * @param {string} eventName\n   * @param {Function} callback\n   * @param {boolean} [useCapture=false]\n   */\n  function addEventListenerOnce(element, eventName, callback, useCapture = false) {\n    function listener() {\n      element.removeEventListener(eventName, listener, useCapture);\n      callback();\n    }\n    element.addEventListener(eventName, listener, useCapture);\n  }\n\n  /**\n   * Safely invokes `addEventListener` for IE11 and also polyfills the\n   * `{ once: true }` and `{ capture: true }` options.\n   *\n   * All other options are discarded for IE11. Currently this is only `passive`.\n   *\n   * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener\n   *\n   * @param {Element} element\n   * @param {string} eventName\n   * @param {Function} callback\n   * @param {object} [eventOptions]\n   */\n  function addEventListener(element, eventName, callback, eventOptions) {\n    const _callback = true /* DEBUG */ && eventOptions && eventOptions.passive ? function (event) {\n      event.preventDefault = () => {\n        (true && !(false) && (0, _debug.assert)(`ember-on-modifier: You marked this listener as 'passive', meaning that you must not call 'event.preventDefault()'.`));\n      };\n      return callback.call(this, event);\n    } : callback;\n    if (SUPPORTS_EVENT_OPTIONS) {\n      element.addEventListener(eventName, _callback, eventOptions);\n    } else if (eventOptions && eventOptions.once) {\n      addEventListenerOnce(element, eventName, _callback, Boolean(eventOptions.capture));\n    } else {\n      element.addEventListener(eventName, _callback, Boolean(eventOptions && eventOptions.capture));\n    }\n  }\n\n  /**\n   * Since the same `capture` event option that was used to add the event listener\n   * needs to be used when removing the listener, it needs to be polyfilled as\n   * `useCapture` for IE11.\n   *\n   * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener\n   *\n   * @param {Element} element\n   * @param {string} eventName\n   * @param {Function} callback\n   * @param {object} [eventOptions]\n   */\n  function removeEventListener(element, eventName, callback, eventOptions) {\n    if (SUPPORTS_EVENT_OPTIONS) {\n      element.removeEventListener(eventName, callback, eventOptions);\n    } else {\n      element.removeEventListener(eventName, callback, Boolean(eventOptions && eventOptions.capture));\n    }\n  }\n});","define(\"ember-page-title/helpers/page-title\", [\"exports\", \"@ember/service\", \"@ember/component/helper\", \"@ember/object/internals\", \"@ember/polyfills\"], function (_exports, _service, _helper, _internals, _polyfills) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor;\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  /**\n    `{{page-title}}` helper used to set the title of the current route context.\n  \n    @public\n    @method page-title\n   */\n  let PageTitle = _exports.default = (_dec = (0, _service.inject)('page-title-list'), (_class = class PageTitle extends _helper.default {\n    get tokenId() {\n      return (0, _internals.guidFor)(this);\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"tokens\", _descriptor, this);\n      this.tokens.push({\n        id: this.tokenId\n      });\n    }\n    compute(params, _hash) {\n      let hash = (0, _polyfills.assign)({}, _hash, {\n        id: this.tokenId,\n        title: params.join('')\n      });\n      this.tokens.push(hash);\n      this.tokens.scheduleTitleUpdate();\n      return '';\n    }\n    willDestroy() {\n      super.willDestroy();\n      this.tokens.remove(this.tokenId);\n      this.tokens.scheduleTitleUpdate();\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"tokens\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class));\n});","define(\"ember-page-title/services/page-title-list\", [\"exports\", \"@ember/application\", \"@ember/runloop\", \"@ember/service\", \"@ember/utils\", \"@ember/polyfills\", \"@ember/debug\"], function (_exports, _application, _runloop, _service, _utils, _polyfills, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  let isFastBoot = typeof FastBoot !== 'undefined';\n  const RouterEvent = {\n    ROUTE_DID_CHANGE: 'routeDidChange'\n  };\n\n  /**\n    @class page-title-list\n    @extends Ember.Service\n   */\n  let PageTitleListService = _exports.default = (_dec = (0, _service.inject)('page-title'), _dec2 = (0, _service.inject)('-document'), (_class = class PageTitleListService extends _service.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"pageTitle\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      // in fastboot context \"document\" is instance of\n      // ember-fastboot/simple-dom document\n      _initializerDefineProperty(this, \"document\", _descriptor3, this);\n      _defineProperty(this, \"tokens\", []);\n      _defineProperty(this, \"_defaultConfig\", {\n        // The default separator to use between tokens.\n        separator: ' | ',\n        // The default prepend value to use.\n        prepend: true,\n        // The default replace value to use.\n        replace: null\n      });\n      _defineProperty(this, \"scheduleTitleUpdate\", () => {\n        (0, _runloop.scheduleOnce)('afterRender', this, this._updateTitle);\n      });\n      this._validateExistingTitleElement();\n      let config = (0, _application.getOwner)(this).resolveRegistration('config:environment');\n      if (config.pageTitle) {\n        ['separator', 'prepend', 'replace'].forEach(key => {\n          if (!(0, _utils.isEmpty)(config.pageTitle[key])) {\n            this._defaultConfig[key] = config.pageTitle[key];\n          }\n        });\n      }\n      this.router.on(RouterEvent.ROUTE_DID_CHANGE, this.scheduleTitleUpdate);\n    }\n    applyTokenDefaults(token) {\n      let defaultSeparator = this._defaultConfig.separator;\n      let defaultPrepend = this._defaultConfig.prepend;\n      let defaultReplace = this._defaultConfig.replace;\n      if (token.separator == null) {\n        token.separator = defaultSeparator;\n      }\n      if (token.prepend == null && defaultPrepend != null) {\n        token.prepend = defaultPrepend;\n      }\n      if (token.replace == null && defaultReplace != null) {\n        token.replace = defaultReplace;\n      }\n    }\n    inheritFromPrevious(token) {\n      let previous = token.previous;\n      if (previous) {\n        if (token.separator == null) {\n          token.separator = previous.separator;\n        }\n        if (token.prepend == null) {\n          token.prepend = previous.prepend;\n        }\n      }\n    }\n    push(token) {\n      let tokenForId = this._findTokenById(token.id);\n      if (tokenForId) {\n        let index = this.tokens.indexOf(tokenForId);\n        let tokens = [...this.tokens];\n        let previous = tokenForId.previous;\n        token.previous = previous;\n        token.next = tokenForId.next;\n        this.inheritFromPrevious(token);\n        this.applyTokenDefaults(token);\n        tokens.splice(index, 1, token);\n        this.tokens = tokens;\n        return;\n      }\n      let previous = this.tokens.slice(-1)[0];\n      if (previous) {\n        token.previous = previous;\n        previous.next = token;\n        this.inheritFromPrevious(token);\n      }\n      this.applyTokenDefaults(token);\n      this.tokens = [...this.tokens, token];\n    }\n    remove(id) {\n      let token = this._findTokenById(id);\n      let {\n        next,\n        previous\n      } = token;\n      if (next) {\n        next.previous = previous;\n      }\n      if (previous) {\n        previous.next = next;\n      }\n      token.previous = token.next = null;\n      let tokens = [...this.tokens];\n      tokens.splice(tokens.indexOf(token), 1);\n      this.tokens = tokens;\n    }\n    get visibleTokens() {\n      let tokens = this.tokens;\n      let i = tokens ? tokens.length : 0;\n      let visible = [];\n      while (i--) {\n        let token = tokens[i];\n        if (token.replace) {\n          visible.unshift(token);\n          break;\n        } else {\n          visible.unshift(token);\n        }\n      }\n      return visible;\n    }\n    get sortedTokens() {\n      let visible = this.visibleTokens;\n      let appending = true;\n      let group = [];\n      let groups = [group];\n      let frontGroups = [];\n      visible.forEach(token => {\n        if (token.front) {\n          frontGroups.unshift(token);\n        } else if (token.prepend) {\n          if (appending) {\n            appending = false;\n            group = [];\n            groups.push(group);\n          }\n          let lastToken = group[0];\n          if (lastToken) {\n            token = (0, _polyfills.assign)({}, token);\n            token.separator = lastToken.separator;\n          }\n          group.unshift(token);\n        } else {\n          if (!appending) {\n            appending = true;\n            group = [];\n            groups.push(group);\n          }\n          group.push(token);\n        }\n      });\n      return frontGroups.concat(groups.reduce((E, group) => E.concat(group), []));\n    }\n    toString() {\n      let tokens = this.sortedTokens;\n      let title = [];\n      for (let i = 0, len = tokens.length; i < len; i++) {\n        let token = tokens[i];\n        if (token.title) {\n          title.push(token.title);\n          if (i + 1 < len) {\n            title.push(token.separator);\n          }\n        }\n      }\n      return title.join('');\n    }\n    willDestroy() {\n      super.willDestroy();\n      this.router.off(RouterEvent.ROUTE_DID_CHANGE, this.scheduleTitleUpdate);\n    }\n    _updateTitle() {\n      const toBeTitle = this.toString();\n      if (isFastBoot) {\n        this.updateFastbootTitle(toBeTitle);\n      } else {\n        /**\n         * When rendering app with \"?fastboot=false\" (http://ember-fastboot.com/docs/user-guide#disabling-fastboot)\n         * We will not have <title> element present in DOM.\n         *\n         * But this is fine as by HTML spec,\n         * one is created upon assigning \"document.title\" value;\n         *\n         * https://html.spec.whatwg.org/multipage/dom.html#dom-tree-accessors\n         */\n        this.document.title = toBeTitle;\n      }\n      this.pageTitle.titleDidUpdate(toBeTitle);\n    }\n\n    /**\n     * Validate if there's more than one title element present.\n     *\n     * Example: ember-cli-head can cause conflicting updates.\n     * @private\n     */\n    _validateExistingTitleElement() {\n      if (isFastBoot) {\n        return;\n      }\n      (true && !(document.head.querySelectorAll('title').length <= 1) && (0, _debug.assert)('[ember-page-title]: Multiple title elements found. Check for other addons like ember-cli-head updating <title> as well.', document.head.querySelectorAll('title').length <= 1));\n    }\n\n    /**\n     * Find token by id\n     *\n     * IE11 compatible approach due to lack of Array.find support\n     *\n     * @param {String} id\n     * @private\n     */\n    _findTokenById(id) {\n      return this.tokens.filter(token => {\n        return token.id === id;\n      })[0];\n    }\n    updateFastbootTitle(toBeTitle) {\n      if (!isFastBoot) {\n        return;\n      }\n      const headElement = this.document.head;\n      const headChildNodes = headElement.childNodes;\n\n      // Remove existing title elements from previous render cycle\n      for (let i = 0; i < headChildNodes.length; i++) {\n        let node = headChildNodes[i];\n        if (node.nodeName.toLowerCase() === 'title') {\n          headElement.removeChild(node);\n        }\n      }\n\n      // Add title element with latest value\n      let titleEl = this.document.createElement('title');\n      let titleContents = this.document.createTextNode(toBeTitle);\n      titleEl.appendChild(titleContents);\n      headElement.appendChild(titleEl);\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"pageTitle\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"document\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class));\n});","define(\"ember-page-title/services/page-title\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class PageTitleService extends _service.default {\n    titleDidUpdate( /* title */) {}\n  }\n  _exports.default = PageTitleService;\n});","define(\"ember-power-calendar/-private/utils/own-prop\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = ownProp;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function ownProp(obj, prop) {\n    return Object.prototype.hasOwnProperty.call(obj, prop);\n  }\n});","define(\"ember-power-calendar/components/power-calendar-multiple\", [\"exports\", \"ember-power-calendar/components/power-calendar\", \"@ember/object\", \"@glimmer/tracking\", \"ember-power-calendar/utils\", \"@ember/debug\", \"@ember/array\", \"ember-power-calendar/components/power-calendar-multiple/days\"], function (_exports, _powerCalendar, _object, _tracking, _utils, _debug, _array, _days) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-power-calendar/utils\",0,\"@ember/debug\",0,\"@ember/array\",0,\"ember-power-calendar/components/power-calendar-multiple/days\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  let _class = _exports.default = (_class2 = class _class2 extends _powerCalendar.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"daysComponent\", _days.default);\n      _defineProperty(this, \"_calendarType\", 'multiple');\n      _initializerDefineProperty(this, \"_selected\", _descriptor, this);\n    }\n    get selected() {\n      if (this._selected) {\n        return this._selected;\n      }\n      const value = this.args.selected;\n      return (0, _array.isArray)(value) ? value.map(_utils.normalizeDate) : value;\n    }\n    get currentCenter() {\n      let center = this.args.center;\n      if (!center) {\n        center = (this.selected || [])[0] || this.powerCalendarService.getDate();\n      }\n      return (0, _utils.normalizeDate)(center);\n    }\n\n    // Actions\n    select(dayOrDays, calendar, e) {\n      (true && !((0, _array.isArray)(dayOrDays) || dayOrDays instanceof Object && dayOrDays.date instanceof Date) && (0, _debug.assert)(`The select action expects an array of date objects, or a date object. ${typeof dayOrDays} was recieved instead.`, (0, _array.isArray)(dayOrDays) || dayOrDays instanceof Object && dayOrDays.date instanceof Date));\n      let days;\n      if ((0, _array.isArray)(dayOrDays)) {\n        days = dayOrDays;\n      } else if (dayOrDays instanceof Object && dayOrDays.date instanceof Date) {\n        days = [dayOrDays];\n      }\n      if (this.args.onSelect) {\n        this.args.onSelect(this._buildCollection(days), calendar, e);\n      }\n    }\n\n    // Methods\n    _buildCollection(days) {\n      let selected = this.publicAPI.selected || [];\n      for (let day of days) {\n        let index = selected.findIndex(selectedDate => (0, _utils.isSame)(day.date, selectedDate, 'day'));\n        if (index === -1) {\n          selected = [...selected, day.date];\n        } else {\n          selected = selected.slice(0, index).concat(selected.slice(index + 1));\n        }\n      }\n      return (0, _utils.normalizeMultipleActionValue)({\n        date: selected\n      });\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, \"_selected\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"select\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"select\"), _class2.prototype)), _class2);\n});","define(\"ember-power-calendar/components/power-calendar-multiple/days\", [\"exports\", \"ember-power-calendar/components/power-calendar/days\", \"ember-power-calendar/utils\"], function (_exports, _days, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar/days\",0,\"ember-power-calendar/utils\"eaimeta@70e063a35619d71f\n  class _default extends _days.default {\n    get maxLength() {\n      return this.args.maxLength || Infinity;\n    }\n\n    // Methods\n    dayIsSelected(date, calendar = this.args.calendar) {\n      let selected = calendar.selected || [];\n      return selected.some(d => (0, _utils.isSame)(date, d, 'day'));\n    }\n    dayIsDisabled(date) {\n      let numSelected = this.args.calendar.selected && this.args.calendar.selected.length || 0;\n      let maxLength = this.maxLength || Infinity;\n      return super.dayIsDisabled(...arguments) || numSelected >= maxLength && !this.dayIsSelected(date);\n    }\n  }\n  _exports.default = _default;\n});","define(\"ember-power-calendar/components/power-calendar-range\", [\"exports\", \"@glimmer/tracking\", \"@ember/object\", \"ember-power-calendar/components/power-calendar\", \"ember-power-calendar/utils\", \"@ember/debug\", \"ember-power-calendar/-private/utils/own-prop\", \"ember-power-calendar/components/power-calendar-range/days\"], function (_exports, _tracking, _object, _powerCalendar, _utils, _debug, _ownProp, _days) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-power-calendar/components/power-calendar\",0,\"ember-power-calendar/utils\",0,\"@ember/debug\",0,\"ember-power-calendar/-private/utils/own-prop\",0,\"ember-power-calendar/components/power-calendar-range/days\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  let _class = _exports.default = (_class2 = class _class2 extends _powerCalendar.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_selected\", _descriptor, this);\n      _defineProperty(this, \"daysComponent\", _days.default);\n      _defineProperty(this, \"_calendarType\", 'range');\n    }\n    get proximitySelection() {\n      return this.args.proximitySelection !== undefined ? this.args.proximitySelection : false;\n    }\n    get minRange() {\n      if (this.args.minRange !== undefined) {\n        return this._formatRange(this.args.minRange);\n      }\n      return 86400000;\n    }\n    get maxRange() {\n      if (this.args.maxRange !== undefined) {\n        return this._formatRange(this.args.maxRange);\n      }\n      return null;\n    }\n    get selected() {\n      if (this._selected) {\n        return this._selected;\n      }\n      if (this.args.selected) {\n        return {\n          start: (0, _utils.normalizeDate)(this.args.selected.start),\n          end: (0, _utils.normalizeDate)(this.args.selected.end)\n        };\n      }\n      return {\n        start: undefined,\n        end: undefined\n      };\n    }\n    set selected(v) {\n      if (v === undefined || v === null) {\n        v = {};\n      }\n      this._selected = {\n        start: (0, _utils.normalizeDate)(v.start),\n        end: (0, _utils.normalizeDate)(v.end)\n      };\n    }\n    get currentCenter() {\n      let center = this.args.center;\n      if (!center) {\n        center = this.selected.start || this.powerCalendarService.getDate();\n      }\n      return (0, _utils.normalizeDate)(center);\n    }\n    get publicAPI() {\n      let rangeOnlyAPI = {\n        minRange: this.minRange,\n        maxRange: this.maxRange\n      };\n      return Object.assign(rangeOnlyAPI, this._publicAPI);\n    }\n\n    // Actions\n    select({\n      date\n    }, calendar, e) {\n      (true && !(date && ((0, _ownProp.default)(date, 'start') || (0, _ownProp.default)(date, 'end') || date instanceof Date)) && (0, _debug.assert)('date must be either a Date, or a Range', date && ((0, _ownProp.default)(date, 'start') || (0, _ownProp.default)(date, 'end') || date instanceof Date)));\n      let range;\n      if ((0, _ownProp.default)(date, 'start') && (0, _ownProp.default)(date, 'end')) {\n        range = {\n          date\n        };\n      } else {\n        range = this._buildRange({\n          date\n        });\n      }\n      let {\n        start,\n        end\n      } = range.date;\n      if (start && end) {\n        let {\n          minRange,\n          maxRange\n        } = this.publicAPI;\n        let diffInMs = Math.abs((0, _utils.diff)(end, start));\n        if (diffInMs < minRange || maxRange && diffInMs > maxRange) {\n          return;\n        }\n      }\n      if (this.args.onSelect) {\n        this.args.onSelect(range, calendar, e);\n      }\n    }\n    _formatRange(v) {\n      if (typeof v === 'number') {\n        return v * 86400000;\n      }\n      return (0, _utils.normalizeDuration)(v === undefined ? 86400000 : v);\n    }\n\n    // Methods\n    _buildRange(day) {\n      let selected = this.publicAPI.selected || {\n        start: null,\n        end: null\n      };\n      let {\n        start,\n        end\n      } = selected;\n      if (this.proximitySelection) {\n        return this._buildRangeByProximity(day, start, end);\n      }\n      return this._buildDefaultRange(day, start, end);\n    }\n    _buildRangeByProximity(day, start, end) {\n      if (start && end) {\n        let changeStart = Math.abs((0, _utils.diff)(day.date, end)) > Math.abs((0, _utils.diff)(day.date, start));\n        return (0, _utils.normalizeRangeActionValue)({\n          date: {\n            start: changeStart ? day.date : start,\n            end: changeStart ? end : day.date\n          }\n        });\n      }\n      if ((0, _utils.isBefore)(day.date, start)) {\n        return (0, _utils.normalizeRangeActionValue)({\n          date: {\n            start: day.date,\n            end: null\n          }\n        });\n      }\n      return this._buildDefaultRange(day, start, end);\n    }\n    _buildDefaultRange(day, start, end) {\n      if (start && !end) {\n        if ((0, _utils.isAfter)(start, day.date)) {\n          return (0, _utils.normalizeRangeActionValue)({\n            date: {\n              start: day.date,\n              end: start\n            }\n          });\n        }\n        return (0, _utils.normalizeRangeActionValue)({\n          date: {\n            start: start,\n            end: day.date\n          }\n        });\n      }\n      return (0, _utils.normalizeRangeActionValue)({\n        date: {\n          start: day.date,\n          end: null\n        }\n      });\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, \"_selected\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"select\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"select\"), _class2.prototype)), _class2);\n});","define(\"ember-power-calendar/components/power-calendar-range/days\", [\"exports\", \"ember-power-calendar/components/power-calendar/days\", \"ember-power-calendar/utils\"], function (_exports, _days, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar/days\",0,\"ember-power-calendar/utils\"eaimeta@70e063a35619d71f\n  class _default extends _days.default {\n    // Methods\n    buildDay(date, today, calendar) {\n      let day = super.buildDay(...arguments);\n      let {\n        start,\n        end\n      } = calendar.selected || {\n        start: null,\n        end: null\n      };\n      if (start && end) {\n        day.isSelected = (0, _utils.isBetween)(date, start, end, 'day', '[]');\n        day.isRangeStart = day.isSelected && (0, _utils.isSame)(date, start, 'day');\n        day.isRangeEnd = day.isSelected && (0, _utils.isSame)(date, end, 'day');\n      } else {\n        day.isRangeEnd = false;\n        if (!start) {\n          day.isRangeStart = false;\n        } else {\n          day.isRangeStart = day.isSelected = (0, _utils.isSame)(date, start, 'day');\n          if (!day.isDisabled) {\n            let diffInMs = Math.abs((0, _utils.diff)(day.date, start));\n            day.isDisabled = diffInMs < calendar.minRange || calendar.maxRange !== null && diffInMs > calendar.maxRange;\n          }\n        }\n      }\n      return day;\n    }\n    dayIsSelected() {\n      return false;\n    }\n  }\n  _exports.default = _default;\n});","define(\"ember-power-calendar/components/power-calendar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/object/internals\", \"@ember/service\", \"ember-concurrency\", \"@ember/debug\", \"ember-power-calendar/utils\", \"ember-power-calendar/components/power-calendar/nav\", \"ember-power-calendar/components/power-calendar/days\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _internals, _service, _emberConcurrency, _debug, _utils, _nav, _days, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/object/internals\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/debug\",0,\"ember-power-calendar/utils\",0,\"ember-power-calendar/components/power-calendar/nav\",0,\"ember-power-calendar/components/power-calendar/days\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#let (assign this.publicAPI (hash\n    Nav=(component (ensure-safe-component (or @navComponent this.navComponent)) calendar=(readonly this.publicAPI))\n    Days=(component (ensure-safe-component (or @daysComponent this.daysComponent)) calendar=(readonly this.publicAPI))\n  )) as |calendar|}}\n    {{#let (element this.tagWithDefault) as |Tag|}}\n      <Tag class=\"ember-power-calendar\" ...attributes id={{calendar.uniqueId}}\n        {{will-destroy this.destroyElement}}\n      >\n        {{#if (has-block)}}\n          {{yield calendar}}\n        {{else}}\n          <calendar.Nav/>\n          <calendar.Days/>\n        {{/if}}\n      </Tag>\n    {{/let}}\n  {{/let}}\n  \n  */\n  {\n    \"id\": \"9LcuwFgg\",\n    \"block\": \"[[[44,[[28,[37,1],[[30,0,[\\\"publicAPI\\\"]],[28,[37,2],null,[[\\\"Nav\\\",\\\"Days\\\"],[[50,[28,[37,4],[[28,[37,5],[[30,1],[30,0,[\\\"navComponent\\\"]]],null]],null],0,null,[[\\\"calendar\\\"],[[28,[37,6],[[30,0,[\\\"publicAPI\\\"]]],null]]]],[50,[28,[37,4],[[28,[37,5],[[30,2],[30,0,[\\\"daysComponent\\\"]]],null]],null],0,null,[[\\\"calendar\\\"],[[28,[37,6],[[30,0,[\\\"publicAPI\\\"]]],null]]]]]]]],null]],[[[44,[[28,[37,7],[[30,0,[\\\"tagWithDefault\\\"]]],null]],[[[1,\\\"    \\\"],[8,[30,4],[[24,0,\\\"ember-power-calendar\\\"],[17,5],[16,1,[30,3,[\\\"uniqueId\\\"]]],[4,[38,8],[[30,0,[\\\"destroyElement\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[48,[30,6]],[[[1,\\\"        \\\"],[18,6,[[30,3]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[30,3,[\\\"Nav\\\"]],null,null,null],[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"Days\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[4]]]],[3]]]],[\\\"@navComponent\\\",\\\"@daysComponent\\\",\\\"calendar\\\",\\\"Tag\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"let\\\",\\\"assign\\\",\\\"hash\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"or\\\",\\\"readonly\\\",\\\"element\\\",\\\"will-destroy\\\",\\\"if\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-power-calendar/components/power-calendar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _service.inject)('power-calendar'), _dec2 = (0, _emberConcurrency.task)(function* (newCenter, calendar, e) {\n    (true && !(typeof this.args.onCenterChange === 'function') && (0, _debug.assert)(\"You attempted to move the center of a calendar that doesn't receive an `@onCenterChange` action.\", typeof this.args.onCenterChange === 'function'));\n    let value = (0, _utils.normalizeCalendarValue)({\n      date: newCenter\n    });\n    yield this.args.onCenterChange(value, calendar, e);\n  }), (_class = class _class extends _component2.default {\n    // Lifecycle hooks\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"powerCalendarService\", _descriptor, this);\n      _initializerDefineProperty(this, \"center\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_calendarType\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_selected\", _descriptor4, this);\n      _defineProperty(this, \"navComponent\", _nav.default);\n      _defineProperty(this, \"daysComponent\", _days.default);\n      // Tasks\n      _initializerDefineProperty(this, \"changeCenterTask\", _descriptor5, this);\n      this.registerCalendar();\n      if (this.args.onInit) {\n        this.args.onInit(this.publicAPI);\n      }\n    }\n    get publicActions() {\n      let actions = {};\n      if (this.args.onSelect) {\n        actions.select = (...args) => this.select(...args);\n      }\n      if (this.args.onCenterChange) {\n        let changeCenter = (newCenter, calendar, e) => {\n          return this.changeCenterTask.perform(newCenter, calendar, e);\n        };\n        actions.changeCenter = changeCenter;\n        actions.moveCenter = (step, unit, calendar, e) => {\n          let newCenter = (0, _utils.add)(this.currentCenter, step, unit);\n          return changeCenter(newCenter, calendar, e);\n        };\n      }\n      return actions;\n    }\n    get selected() {\n      if (this._selected) {\n        return this._selected;\n      }\n      return (0, _utils.normalizeDate)(this.args.selected);\n    }\n    set selected(v) {\n      this._selected = (0, _utils.normalizeDate)(v);\n    }\n    get currentCenter() {\n      let center = this.args.center;\n      if (!center) {\n        center = this.selected || this.powerCalendarService.getDate();\n      }\n      return (0, _utils.normalizeDate)(center);\n    }\n    get publicAPI() {\n      return this._publicAPI;\n    }\n    get _publicAPI() {\n      return {\n        uniqueId: (0, _internals.guidFor)(this),\n        type: this._calendarType,\n        selected: this.selected,\n        loading: this.changeCenterTask.isRunning,\n        center: this.currentCenter,\n        locale: this.args.locale || this.powerCalendarService.locale,\n        actions: this.publicActions\n      };\n    }\n    get tagWithDefault() {\n      if (this.args.tag === undefined || this.args.tag === null) {\n        return 'div';\n      }\n      return this.args.tag;\n    }\n\n    // Actions\n    select(day, calendar, e) {\n      if (this.args.onSelect) {\n        this.args.onSelect(day, calendar, e);\n      }\n    }\n    destroyElement() {\n      this.unregisterCalendar();\n    }\n    // Methods\n    registerCalendar() {\n      if (window) {\n        window.__powerCalendars = window.__powerCalendars || {}; // TODO: weakmap??\n        window.__powerCalendars[this.publicAPI.uniqueId] = this;\n      }\n    }\n    unregisterCalendar() {\n      if (window) {\n        delete window.__powerCalendars[(0, _internals.guidFor)(this)];\n      }\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"powerCalendarService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"center\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_calendarType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'single';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_selected\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"select\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"destroyElement\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"destroyElement\"), _class.prototype), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"changeCenterTask\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class)));\n});","define(\"ember-power-calendar/components/power-calendar/days\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/runloop\", \"@ember/service\", \"@ember/debug\", \"ember-power-calendar/utils\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _runloop, _service, _debug, _utils, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/service\",0,\"@ember/debug\",0,\"ember-power-calendar/utils\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-invalid-interactive }}\n  <div\n    class=\"ember-power-calendar-days\"\n    {{on \"click\" this.handleClick}}\n    ...attributes\n    data-power-calendar-id={{or @calendar.calendarUniqueId @calendar.uniqueId}}>\n    <div class=\"ember-power-calendar-row ember-power-calendar-weekdays\">\n      {{#each this.weekdaysNames as |wdn|}}\n        <div class=\"ember-power-calendar-weekday\">{{wdn}}</div>\n      {{/each}}\n    </div>\n    <div class=\"ember-power-calendar-day-grid\" {{on \"keydown\" this.handleKeyDown}}>\n      {{#each this.weeks key='id' as |week|}}\n        <div class=\"ember-power-calendar-row ember-power-calendar-week\" data-missing-days={{week.missingDays}}>\n          {{#each week.days key='id' as |day|}}\n            <button type=\"button\"\n              data-date=\"{{day.id}}\"\n              class={{ember-power-calendar-day-classes day @calendar this.weeks @dayClass}}\n              {{on \"focus\" this.handleDayFocus}}\n              {{on \"blur\" this.handleDayBlur}}\n              disabled={{day.isDisabled}}>\n              {{#if (has-block)}}\n                {{yield day @calendar this.weeks}}\n              {{else}}\n                {{day.number}}\n              {{/if}}\n            </button>\n          {{/each}}\n        </div>\n      {{/each}}\n    </div>\n  </div>\n  \n  */\n  {\n    \"id\": \"I4rMVrqS\",\n    \"block\": \"[[[11,0],[24,0,\\\"ember-power-calendar-days\\\"],[17,1],[16,\\\"data-power-calendar-id\\\",[28,[37,0],[[30,2,[\\\"calendarUniqueId\\\"]],[30,2,[\\\"uniqueId\\\"]]],null]],[4,[38,1],[\\\"click\\\",[30,0,[\\\"handleClick\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"ember-power-calendar-row ember-power-calendar-weekdays\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"weekdaysNames\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ember-power-calendar-weekday\\\"],[12],[1,[30,3]],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,0],[24,0,\\\"ember-power-calendar-day-grid\\\"],[4,[38,1],[\\\"keydown\\\",[30,0,[\\\"handleKeyDown\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"weeks\\\"]]],null]],null],\\\"id\\\",[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ember-power-calendar-row ember-power-calendar-week\\\"],[15,\\\"data-missing-days\\\",[30,4,[\\\"missingDays\\\"]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,4,[\\\"days\\\"]]],null]],null],\\\"id\\\",[[[1,\\\"          \\\"],[11,\\\"button\\\"],[16,\\\"data-date\\\",[29,[[30,5,[\\\"id\\\"]]]]],[16,0,[28,[37,4],[[30,5],[30,2],[30,0,[\\\"weeks\\\"]],[30,6]],null]],[16,\\\"disabled\\\",[30,5,[\\\"isDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,1],[\\\"focus\\\",[30,0,[\\\"handleDayFocus\\\"]]],null],[4,[38,1],[\\\"blur\\\",[30,0,[\\\"handleDayBlur\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,7]],[[[1,\\\"              \\\"],[18,7,[[30,5],[30,2],[30,0,[\\\"weeks\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,5,[\\\"number\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"@calendar\\\",\\\"wdn\\\",\\\"week\\\",\\\"day\\\",\\\"@dayClass\\\",\\\"&default\\\"],false,[\\\"or\\\",\\\"on\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ember-power-calendar-day-classes\\\",\\\"if\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-power-calendar/components/power-calendar/days.hbs\",\n    \"isStrictMode\": false\n  });\n  const WEEK_DAYS = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _service.inject)('power-calendar'), (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"powerCalendarService\", _descriptor, this);\n      _initializerDefineProperty(this, \"focusedId\", _descriptor2, this);\n    }\n    get weekdayFormat() {\n      return this.args.weekdayFormat || 'short'; // \"min\" | \"short\" | \"long\"\n    }\n\n    get showDaysAround() {\n      return this.args.showDaysAround !== undefined ? this.args.showDaysAround : true;\n    }\n    get weekdaysMin() {\n      return (0, _utils.withLocale)(this.args.calendar.locale, _utils.getWeekdaysMin);\n    }\n    get weekdaysShort() {\n      return (0, _utils.withLocale)(this.args.calendar.locale, _utils.getWeekdaysShort);\n    }\n    get weekdays() {\n      return (0, _utils.withLocale)(this.args.calendar.locale, _utils.getWeekdays);\n    }\n    get localeStartOfWeek() {\n      let forcedStartOfWeek = this.args.startOfWeek;\n      if (forcedStartOfWeek) {\n        return parseInt(forcedStartOfWeek, 10);\n      }\n      return (0, _utils.localeStartOfWeek)(this.args.calendar.locale);\n    }\n    get weekdaysNames() {\n      let {\n        localeStartOfWeek,\n        weekdayFormat\n      } = this;\n      let format = `weekdays${weekdayFormat === 'long' ? '' : weekdayFormat === 'min' ? 'Min' : 'Short'}`;\n      let weekdaysNames = this[format];\n      return weekdaysNames.slice(localeStartOfWeek).concat(weekdaysNames.slice(0, localeStartOfWeek));\n    }\n    get days() {\n      let today = this.powerCalendarService.getDate();\n      let lastDay = this.lastDay();\n      let day = this.firstDay();\n      let days = [];\n      while ((0, _utils.isBefore)(day, lastDay)) {\n        days.push(this.buildDay(day, today, this.args.calendar));\n        day = (0, _utils.add)(day, 1, 'day');\n      }\n      return days;\n    }\n    get weeks() {\n      let {\n        showDaysAround,\n        days\n      } = this;\n      let weeks = [];\n      let i = 0;\n      while (days[i]) {\n        let daysOfWeek = days.slice(i, i + 7);\n        if (!showDaysAround) {\n          daysOfWeek = daysOfWeek.filter(d => d.isCurrentMonth);\n        }\n        weeks.push({\n          id: `week-of-${daysOfWeek[0].id}`,\n          days: daysOfWeek,\n          missingDays: 7 - daysOfWeek.length\n        });\n        i += 7;\n      }\n      return weeks;\n    }\n    get currentCenter() {\n      let center = this.args.center;\n      if (!center) {\n        center = this.args.selected || this.args.calendar.center;\n      }\n      return (0, _utils.normalizeDate)(center);\n    }\n\n    // Actions\n    handleDayFocus(e) {\n      (0, _runloop.scheduleOnce)('actions', this, this._updateFocused, e.target.dataset.date);\n    }\n    handleDayBlur() {\n      (0, _runloop.scheduleOnce)('actions', this, this._updateFocused, null);\n    }\n    handleKeyDown(e) {\n      let {\n        focusedId\n      } = this;\n      if (focusedId) {\n        let days = this.days;\n        let day, index;\n        for (let i = 0; i < days.length; i++) {\n          if (days[i].id === focusedId) {\n            index = i;\n            break;\n          }\n        }\n        if (e.keyCode === 38) {\n          e.preventDefault();\n          let newIndex = Math.max(index - 7, 0);\n          day = days[newIndex];\n          if (day.isDisabled) {\n            for (let i = newIndex + 1; i <= index; i++) {\n              day = days[i];\n              if (!day.isDisabled) {\n                break;\n              }\n            }\n          }\n        } else if (e.keyCode === 40) {\n          e.preventDefault();\n          let newIndex = Math.min(index + 7, days.length - 1);\n          day = days[newIndex];\n          if (day.isDisabled) {\n            for (let i = newIndex - 1; i >= index; i--) {\n              day = days[i];\n              if (!day.isDisabled) {\n                break;\n              }\n            }\n          }\n        } else if (e.keyCode === 37) {\n          day = days[Math.max(index - 1, 0)];\n          if (day.isDisabled) {\n            return;\n          }\n        } else if (e.keyCode === 39) {\n          day = days[Math.min(index + 1, days.length - 1)];\n          if (day.isDisabled) {\n            return;\n          }\n        } else {\n          return;\n        }\n        this.focusedId = day.id;\n        (0, _runloop.scheduleOnce)('afterRender', this, '_focusDate', day.id);\n      }\n    }\n\n    // Methods\n    buildDay(date, today, calendar) {\n      let id = (0, _utils.formatDate)(date, 'YYYY-MM-DD');\n      return (0, _utils.normalizeCalendarDay)({\n        id,\n        number: date.getDate(),\n        date: new Date(date),\n        isDisabled: this.dayIsDisabled(date),\n        isFocused: this.focusedId === id,\n        isCurrentMonth: date.getMonth() === this.currentCenter.getMonth(),\n        isToday: (0, _utils.isSame)(date, today, 'day'),\n        isSelected: this.dayIsSelected(date, calendar)\n      });\n    }\n    buildonSelectValue(day) {\n      return day;\n    }\n    dayIsSelected(date, calendar = this.args.calendar) {\n      return calendar.selected ? (0, _utils.isSame)(date, calendar.selected, 'day') : false;\n    }\n    dayIsDisabled(date) {\n      let isDisabled = !this.args.calendar.actions.select;\n      if (isDisabled) {\n        return true;\n      }\n      if (this.args.minDate && (0, _utils.isBefore)(date, (0, _utils.startOf)(this.args.minDate, 'day'))) {\n        return true;\n      }\n      if (this.args.maxDate && (0, _utils.isAfter)(date, (0, _utils.endOf)(this.args.maxDate, 'day'))) {\n        return true;\n      }\n      if (this.args.disabledDates) {\n        let disabledInRange = this.args.disabledDates.some(d => {\n          let isSameDay = (0, _utils.isSame)(date, d, 'day');\n          let isWeekDayIncludes = WEEK_DAYS.indexOf(d) !== -1 && (0, _utils.formatDate)(date, 'ddd') === d;\n          return isSameDay || isWeekDayIncludes;\n        });\n        if (disabledInRange) {\n          return true;\n        }\n      }\n      return false;\n    }\n    firstDay() {\n      let firstDay = (0, _utils.startOf)(this.currentCenter, 'month');\n      return (0, _utils.startOfWeek)(firstDay, this.localeStartOfWeek);\n    }\n    lastDay() {\n      let localeStartOfWeek = this.localeStartOfWeek;\n      (true && !(!isNaN(this.currentCenter.getTime())) && (0, _debug.assert)('The center of the calendar is an invalid date.', !isNaN(this.currentCenter.getTime())));\n      let lastDay = (0, _utils.endOf)(this.currentCenter, 'month');\n      return (0, _utils.endOfWeek)(lastDay, localeStartOfWeek);\n    }\n    _updateFocused(id) {\n      this.focusedId = id;\n    }\n    _focusDate(id) {\n      let dayElement = document.querySelector(`[data-power-calendar-id=\"${this.args.calendar.uniqueId}\"] [data-date=\"${id}\"]`);\n      if (dayElement) {\n        dayElement.focus();\n      }\n    }\n    handleClick(e) {\n      let dayEl = e.target.closest('[data-date]');\n      if (dayEl) {\n        let dateStr = dayEl.dataset.date;\n        let day = this.days.find(d => d.id === dateStr);\n        if (day) {\n          if (this.args.calendar.actions.select) {\n            this.args.calendar.actions.select(day, this.args.calendar, e);\n          }\n        }\n      }\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"powerCalendarService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"focusedId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return undefined;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleDayFocus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleDayFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleDayBlur\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleDayBlur\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeyDown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeyDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClick\"), _class.prototype)), _class)));\n});","define(\"ember-power-calendar/components/power-calendar/nav\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <nav class=\"ember-power-calendar-nav\">\n    {{#if @calendar.actions.changeCenter}}\n      <button type=\"button\" class=\"ember-power-calendar-nav-control ember-power-calendar-nav-control--previous\" {{on \"click\" (fn @calendar.actions.moveCenter -1 this.unit @calendar)}}>«</button>\n    {{/if}}\n    <div class=\"ember-power-calendar-nav-title\">\n      {{#if (has-block)}}\n        {{yield @calendar}}\n      {{else}}\n        {{power-calendar-format-date @calendar.center this.format locale=@calendar.locale}}\n      {{/if}}\n    </div>\n    {{#if @calendar.actions.changeCenter}}\n      <button type=\"button\" class=\"ember-power-calendar-nav-control ember-power-calendar-nav-control--next\" {{on \"click\" (fn @calendar.actions.moveCenter 1 this.unit @calendar)}}>»</button>\n    {{/if}}\n  </nav>\n  \n  */\n  {\n    \"id\": \"2EXQ4Tgg\",\n    \"block\": \"[[[10,\\\"nav\\\"],[14,0,\\\"ember-power-calendar-nav\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"actions\\\",\\\"changeCenter\\\"]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"ember-power-calendar-nav-control ember-power-calendar-nav-control--previous\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[28,[37,2],[[30,1,[\\\"actions\\\",\\\"moveCenter\\\"]],-1,[30,0,[\\\"unit\\\"]],[30,1]],null]],null],[12],[1,\\\"«\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,0],[14,0,\\\"ember-power-calendar-nav-title\\\"],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,2]],[[[1,\\\"      \\\"],[18,2,[[30,1]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[1,[28,[35,5],[[30,1,[\\\"center\\\"]],[30,0,[\\\"format\\\"]]],[[\\\"locale\\\"],[[30,1,[\\\"locale\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"actions\\\",\\\"changeCenter\\\"]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"ember-power-calendar-nav-control ember-power-calendar-nav-control--next\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[28,[37,2],[[30,1,[\\\"actions\\\",\\\"moveCenter\\\"]],1,[30,0,[\\\"unit\\\"]],[30,1]],null]],null],[12],[1,\\\"»\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[\\\"@calendar\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"on\\\",\\\"fn\\\",\\\"has-block\\\",\\\"yield\\\",\\\"power-calendar-format-date\\\"]]\",\n    \"moduleName\": \"ember-power-calendar/components/power-calendar/nav.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get unit() {\n      return this.args.unit || 'month';\n    }\n    get format() {\n      return this.args.format || 'MMMM YYYY';\n    }\n  });\n});","define(\"ember-power-calendar/helpers/ember-power-calendar-day-classes\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.emberPowerCalendarDayClasses = emberPowerCalendarDayClasses;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function emberPowerCalendarDayClasses([day, calendar, weeks, dayClass]) {\n    let classes = ['ember-power-calendar-day'];\n    if (calendar.actions.select) {\n      classes.push('ember-power-calendar-day--interactive');\n    }\n    classes.push(`ember-power-calendar-day--${day.isCurrentMonth ? 'current' : 'other'}-month`);\n    if (day.isSelected) {\n      classes.push('ember-power-calendar-day--selected');\n    }\n    if (day.isToday) {\n      classes.push('ember-power-calendar-day--today');\n    }\n    if (day.isFocused) {\n      classes.push('ember-power-calendar-day--focused');\n    }\n    if (day.isRangeStart) {\n      classes.push('ember-power-calendar-day--range-start');\n    }\n    if (day.isRangeEnd) {\n      classes.push('ember-power-calendar-day--range-end');\n    }\n    if (dayClass) {\n      if (typeof dayClass === 'string') {\n        classes.push(dayClass);\n      } else if (typeof dayClass === 'function') {\n        let k = dayClass(day, calendar, weeks);\n        if (k !== null && k !== undefined) {\n          classes.push(k);\n        }\n      }\n    }\n    return classes.join(' ');\n  }\n  var _default = _exports.default = (0, _helper.helper)(emberPowerCalendarDayClasses);\n});","define(\"ember-power-calendar/helpers/power-calendar-format-date\", [\"exports\", \"@ember/component/helper\", \"ember-power-calendar/utils\"], function (_exports, _helper, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.powerCalendarFormatDate = powerCalendarFormatDate;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-power-calendar/utils\"eaimeta@70e063a35619d71f\n  function powerCalendarFormatDate([date, format], {\n    locale\n  }) {\n    return (0, _utils.formatDate)(date, format, locale);\n  }\n  var _default = _exports.default = (0, _helper.helper)(powerCalendarFormatDate);\n});","define(\"ember-power-calendar/index\", [\"exports\", \"ember-power-calendar/utils\"], function (_exports, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"registerDateLibrary\", {\n    enumerable: true,\n    get: function () {\n      return _utils.registerDateLibrary;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/utils\"eaimeta@70e063a35619d71f\n});","define(\"ember-power-calendar/services/power-calendar\", [\"exports\", \"@ember/service\", \"@glimmer/tracking\", \"ember-power-calendar/utils\"], function (_exports, _service, _tracking, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-power-calendar/utils\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"date\", null);\n      _initializerDefineProperty(this, \"_local\", _descriptor, this);\n    }\n    get locale() {\n      if (this._local) {\n        return this._local;\n      }\n      return (0, _utils.getDefaultLocale)();\n    }\n    set locale(value) {\n      this._local = value;\n    }\n\n    // Methods\n    getDate() {\n      return this.date || new Date();\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, \"_local\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  })), _class2);\n});","define(\"ember-power-calendar/utils\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.add = add;\n  _exports.diff = diff;\n  _exports.endOf = endOf;\n  _exports.endOfWeek = endOfWeek;\n  _exports.formatDate = formatDate;\n  _exports.getDefaultLocale = getDefaultLocale;\n  _exports.getWeekdays = getWeekdays;\n  _exports.getWeekdaysMin = getWeekdaysMin;\n  _exports.getWeekdaysShort = getWeekdaysShort;\n  _exports.isAfter = isAfter;\n  _exports.isBefore = isBefore;\n  _exports.isBetween = isBetween;\n  _exports.isSame = isSame;\n  _exports.isoWeekday = isoWeekday;\n  _exports.localeStartOfWeek = localeStartOfWeek;\n  _exports.normalizeCalendarDay = normalizeCalendarDay;\n  _exports.normalizeCalendarValue = normalizeCalendarValue;\n  _exports.normalizeDate = normalizeDate;\n  _exports.normalizeDuration = normalizeDuration;\n  _exports.normalizeMultipleActionValue = normalizeMultipleActionValue;\n  _exports.normalizeRangeActionValue = normalizeRangeActionValue;\n  _exports.registerDateLibrary = registerDateLibrary;\n  _exports.startOf = startOf;\n  _exports.startOfWeek = startOfWeek;\n  _exports.weekday = weekday;\n  _exports.withLocale = withLocale;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  let dateLib;\n  function registerDateLibrary(dateLibrary) {\n    dateLib = dateLibrary;\n  }\n  function getDateLibrary() {\n    if (!dateLib) {\n      throw new Error(`You have installed \"ember-power-calendar\" but you don't have registered any of the required meta-addons to make it work, like 'ember-power-calendar-moment' or 'ember-power-calendar-luxon'. Please add to your app and register the meta package in app.js.`);\n    }\n    return dateLib;\n  }\n  function add(date, quantity, unit) {\n    return getDateLibrary().add(date, quantity, unit);\n  }\n  function formatDate(date, format, locale = null) {\n    return getDateLibrary().formatDate(date, format, locale);\n  }\n  function startOf(date, unit) {\n    return getDateLibrary().startOf(date, unit);\n  }\n  function endOf(date, unit) {\n    return getDateLibrary().endOf(date, unit);\n  }\n  function weekday(date) {\n    return getDateLibrary().weekday(date);\n  }\n  function isoWeekday(date) {\n    return getDateLibrary().isoWeekday(date);\n  }\n  function getWeekdaysShort() {\n    return getDateLibrary().getWeekdaysShort();\n  }\n  function getWeekdaysMin() {\n    return getDateLibrary().getWeekdaysMin();\n  }\n  function getWeekdays() {\n    return getDateLibrary().getWeekdays();\n  }\n  function isAfter(date1, date2) {\n    return getDateLibrary().isAfter(date1, date2);\n  }\n  function isBefore(date1, date2) {\n    return getDateLibrary().isBefore(date1, date2);\n  }\n  function isSame(date1, date2, unit) {\n    return getDateLibrary().isSame(date1, date2, unit);\n  }\n  function isBetween(date, start, end, unit, inclusivity) {\n    return getDateLibrary().isBetween(date, start, end, unit, inclusivity);\n  }\n  function diff(date1, date2) {\n    return getDateLibrary().diff(date1, date2);\n  }\n  function normalizeDate(date) {\n    return getDateLibrary().normalizeDate(date);\n  }\n  function normalizeRangeActionValue(val) {\n    return getDateLibrary().normalizeRangeActionValue(val);\n  }\n  function normalizeMultipleActionValue(val) {\n    return getDateLibrary().normalizeMultipleActionValue(val);\n  }\n  function normalizeCalendarDay(day) {\n    return getDateLibrary().normalizeCalendarDay(day);\n  }\n  function withLocale(locale, fn) {\n    return getDateLibrary().withLocale(locale, fn);\n  }\n  function normalizeCalendarValue(value) {\n    return getDateLibrary().normalizeCalendarValue(value);\n  }\n  function normalizeDuration(value) {\n    return getDateLibrary().normalizeDuration(value);\n  }\n  function getDefaultLocale() {\n    return getDateLibrary().getDefaultLocale();\n  }\n  function localeStartOfWeek(locale) {\n    return getDateLibrary().localeStartOfWeek(locale);\n  }\n  function startOfWeek(day, startOfWeek) {\n    return getDateLibrary().startOfWeek(day, startOfWeek);\n  }\n  function endOfWeek(day, startOfWeek) {\n    return getDateLibrary().endOfWeek(day, startOfWeek);\n  }\n});","define(\"ember-power-select/components/power-select-multiple\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/utils\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _utils, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/utils\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PowerSelect\n    @animationEnabled={{@animationEnabled}}\n    @triggerRole={{@triggerRole}}\n    @ariaDescribedBy={{@ariaDescribedBy}}\n    @ariaInvalid={{@ariaInvalid}}\n    @ariaLabel={{@ariaLabel}}\n    @ariaLabelledBy={{@ariaLabelledBy}}\n    @afterOptionsComponent={{ensure-safe-component @afterOptionsComponent}}\n    @allowClear={{@allowClear}}\n    @beforeOptionsComponent={{if @beforeOptionsComponent (ensure-safe-component @beforeOptionsComponent) null}}\n    @buildSelection={{or @buildSelection this.defaultBuildSelection}}\n    @calculatePosition={{@calculatePosition}}\n    @closeOnSelect={{@closeOnSelect}}\n    @defaultHighlighted={{@defaultHighlighted}}\n    @destination={{@destination}}\n    @disabled={{@disabled}}\n    @dropdownClass={{@dropdownClass}}\n    @extra={{@extra}}\n    @groupComponent={{ensure-safe-component @groupComponent}}\n    @horizontalPosition={{@horizontalPosition}}\n    @initiallyOpened={{@initiallyOpened}}\n    @loadingMessage={{@loadingMessage}}\n    @matcher={{@matcher}}\n    @matchTriggerWidth={{@matchTriggerWidth}}\n    @noMatchesMessage={{@noMatchesMessage}}\n    @noMatchesMessageComponent={{ensure-safe-component @noMatchesMessageComponent}}\n    @onBlur={{@onBlur}}\n    @onChange={{@onChange}}\n    @onClose={{@onClose}}\n    @onFocus={{this.handleFocus}}\n    @onInput={{@onInput}}\n    @onKeydown={{this.handleKeydown}}\n    @onOpen={{this.handleOpen}}\n    @options={{@options}}\n    @optionsComponent={{ensure-safe-component @optionsComponent}}\n    @placeholder={{@placeholder}}\n    @placeholderComponent={{ensure-safe-component @placeholderComponent}}\n    @preventScroll={{@preventScroll}}\n    @registerAPI={{@registerAPI}}\n    @renderInPlace={{@renderInPlace}}\n    @required={{@required}}\n    @scrollTo={{@scrollTo}}\n    @search={{@search}}\n    @searchEnabled={{@searchEnabled}}\n    @searchField={{@searchField}}\n    @searchMessage={{@searchMessage}}\n    @searchMessageComponent={{@searchMessageComponent}}\n    @searchPlaceholder={{@searchPlaceholder}}\n    @selected={{@selected}}\n    @selectedItemComponent={{ensure-safe-component @selectedItemComponent}}\n    @eventType={{@eventType}}\n    @title={{@title}}\n    @triggerClass=\"ember-power-select-multiple-trigger {{@triggerClass}}\"\n    @triggerComponent={{\n      if\n      @triggerComponent\n      (component (ensure-safe-component @triggerComponent) tabindex=@tabindex)\n      (component \"power-select-multiple/trigger\" tabindex=@tabindex)\n    }}\n    @triggerId={{@triggerId}}\n    @verticalPosition={{@verticalPosition}}\n    @tabindex={{this.computedTabIndex}}\n    @ebdTriggerComponent={{ensure-safe-component @ebdTriggerComponent}}\n    @ebdContentComponent={{ensure-safe-component @ebdContentComponent}}\n    ...attributes as |option select|>\n    {{yield option select}}\n  </PowerSelect>\n  \n  */\n  {\n    \"id\": \"OTCB11Ma\",\n    \"block\": \"[[[8,[39,0],[[17,1]],[[\\\"@animationEnabled\\\",\\\"@triggerRole\\\",\\\"@ariaDescribedBy\\\",\\\"@ariaInvalid\\\",\\\"@ariaLabel\\\",\\\"@ariaLabelledBy\\\",\\\"@afterOptionsComponent\\\",\\\"@allowClear\\\",\\\"@beforeOptionsComponent\\\",\\\"@buildSelection\\\",\\\"@calculatePosition\\\",\\\"@closeOnSelect\\\",\\\"@defaultHighlighted\\\",\\\"@destination\\\",\\\"@disabled\\\",\\\"@dropdownClass\\\",\\\"@extra\\\",\\\"@groupComponent\\\",\\\"@horizontalPosition\\\",\\\"@initiallyOpened\\\",\\\"@loadingMessage\\\",\\\"@matcher\\\",\\\"@matchTriggerWidth\\\",\\\"@noMatchesMessage\\\",\\\"@noMatchesMessageComponent\\\",\\\"@onBlur\\\",\\\"@onChange\\\",\\\"@onClose\\\",\\\"@onFocus\\\",\\\"@onInput\\\",\\\"@onKeydown\\\",\\\"@onOpen\\\",\\\"@options\\\",\\\"@optionsComponent\\\",\\\"@placeholder\\\",\\\"@placeholderComponent\\\",\\\"@preventScroll\\\",\\\"@registerAPI\\\",\\\"@renderInPlace\\\",\\\"@required\\\",\\\"@scrollTo\\\",\\\"@search\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@searchMessage\\\",\\\"@searchMessageComponent\\\",\\\"@searchPlaceholder\\\",\\\"@selected\\\",\\\"@selectedItemComponent\\\",\\\"@eventType\\\",\\\"@title\\\",\\\"@triggerClass\\\",\\\"@triggerComponent\\\",\\\"@triggerId\\\",\\\"@verticalPosition\\\",\\\"@tabindex\\\",\\\"@ebdTriggerComponent\\\",\\\"@ebdContentComponent\\\"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[28,[37,1],[[30,8]],null],[30,9],[52,[30,10],[28,[37,1],[[30,10]],null],null],[28,[37,3],[[30,11],[30,0,[\\\"defaultBuildSelection\\\"]]],null],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[28,[37,1],[[30,19]],null],[30,20],[30,21],[30,22],[30,23],[30,24],[30,25],[28,[37,1],[[30,26]],null],[30,27],[30,28],[30,29],[30,0,[\\\"handleFocus\\\"]],[30,30],[30,0,[\\\"handleKeydown\\\"]],[30,0,[\\\"handleOpen\\\"]],[30,31],[28,[37,1],[[30,32]],null],[30,33],[28,[37,1],[[30,34]],null],[30,35],[30,36],[30,37],[30,38],[30,39],[30,40],[30,41],[30,42],[30,43],[30,44],[30,45],[30,46],[28,[37,1],[[30,47]],null],[30,48],[30,49],[29,[\\\"ember-power-select-multiple-trigger \\\",[30,50]]],[52,[30,51],[50,[28,[37,1],[[30,51]],null],0,null,[[\\\"tabindex\\\"],[[30,52]]]],[50,\\\"power-select-multiple/trigger\\\",0,null,[[\\\"tabindex\\\"],[[30,52]]]]],[30,53],[30,54],[30,0,[\\\"computedTabIndex\\\"]],[28,[37,1],[[30,55]],null],[28,[37,1],[[30,56]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[18,59,[[30,57],[30,58]]],[1,\\\"\\\\n\\\"]],[57,58]]]]],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"@animationEnabled\\\",\\\"@triggerRole\\\",\\\"@ariaDescribedBy\\\",\\\"@ariaInvalid\\\",\\\"@ariaLabel\\\",\\\"@ariaLabelledBy\\\",\\\"@afterOptionsComponent\\\",\\\"@allowClear\\\",\\\"@beforeOptionsComponent\\\",\\\"@buildSelection\\\",\\\"@calculatePosition\\\",\\\"@closeOnSelect\\\",\\\"@defaultHighlighted\\\",\\\"@destination\\\",\\\"@disabled\\\",\\\"@dropdownClass\\\",\\\"@extra\\\",\\\"@groupComponent\\\",\\\"@horizontalPosition\\\",\\\"@initiallyOpened\\\",\\\"@loadingMessage\\\",\\\"@matcher\\\",\\\"@matchTriggerWidth\\\",\\\"@noMatchesMessage\\\",\\\"@noMatchesMessageComponent\\\",\\\"@onBlur\\\",\\\"@onChange\\\",\\\"@onClose\\\",\\\"@onInput\\\",\\\"@options\\\",\\\"@optionsComponent\\\",\\\"@placeholder\\\",\\\"@placeholderComponent\\\",\\\"@preventScroll\\\",\\\"@registerAPI\\\",\\\"@renderInPlace\\\",\\\"@required\\\",\\\"@scrollTo\\\",\\\"@search\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@searchMessage\\\",\\\"@searchMessageComponent\\\",\\\"@searchPlaceholder\\\",\\\"@selected\\\",\\\"@selectedItemComponent\\\",\\\"@eventType\\\",\\\"@title\\\",\\\"@triggerClass\\\",\\\"@triggerComponent\\\",\\\"@tabindex\\\",\\\"@triggerId\\\",\\\"@verticalPosition\\\",\\\"@ebdTriggerComponent\\\",\\\"@ebdContentComponent\\\",\\\"option\\\",\\\"select\\\",\\\"&default\\\"],false,[\\\"power-select\\\",\\\"ensure-safe-component\\\",\\\"if\\\",\\\"or\\\",\\\"component\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-power-select/components/power-select-multiple.hbs\",\n    \"isStrictMode\": false\n  });\n  let PowerSelectMultiple = _exports.default = (_class = class PowerSelectMultiple extends _component2.default {\n    get computedTabIndex() {\n      if (this.args.triggerComponent === undefined && this.args.searchEnabled) {\n        return '-1';\n      } else {\n        return this.args.tabindex || '0';\n      }\n    }\n\n    // Actions\n    handleOpen(select, e) {\n      if (this.args.onOpen && this.args.onOpen(select, e) === false) {\n        return false;\n      }\n      this.focusInput(select);\n    }\n    handleFocus(select, e) {\n      if (this.args.onFocus) {\n        this.args.onFocus(select, e);\n      }\n      this.focusInput(select);\n    }\n    handleKeydown(select, e) {\n      if (this.args.onKeydown && this.args.onKeydown(select, e) === false) {\n        e.stopPropagation();\n        return false;\n      }\n      if (e.keyCode === 13 && select.isOpen) {\n        e.stopPropagation();\n        if (select.highlighted !== undefined) {\n          if (!select.selected || select.selected.indexOf(select.highlighted) === -1) {\n            select.actions.choose(select.highlighted, e);\n            return false;\n          } else {\n            select.actions.close(e);\n            return false;\n          }\n        } else {\n          select.actions.close(e);\n          return false;\n        }\n      }\n    }\n    defaultBuildSelection(option, select) {\n      let newSelection = (select.selected || []).slice(0);\n      let idx = -1;\n      for (let i = 0; i < newSelection.length; i++) {\n        if ((0, _utils.isEqual)(newSelection[i], option)) {\n          idx = i;\n          break;\n        }\n      }\n      if (idx > -1) {\n        newSelection.splice(idx, 1);\n      } else {\n        newSelection.push(option);\n      }\n      return newSelection;\n    }\n    focusInput(select) {\n      if (select) {\n        let input = document.querySelector(`#ember-power-select-trigger-multiple-input-${select.uniqueId}`);\n        if (input) {\n          input.focus();\n        }\n      }\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"handleOpen\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleOpen\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleFocus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeydown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeydown\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PowerSelectMultiple);\n});","define(\"ember-power-select/components/power-select-multiple/input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\", \"@ember/debug\", \"@ember/utils\", \"@ember/template\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _runloop, _debug, _utils, _template, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"@ember/debug\",0,\"@ember/utils\",0,\"@ember/template\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{!-- template-lint-disable require-aria-activedescendant-tabindex --}}\n  <input\n    type=\"search\"\n    class=\"ember-power-select-trigger-multiple-input\"\n    aria-activedescendant={{if @select.isOpen @ariaActiveDescendant}}\n    aria-haspopup=\"listbox\"\n    aria-expanded={{if @select.isOpen \"true\" \"false\"}}\n    autocomplete=\"off\"\n    autocorrect=\"off\"\n    autocapitalize=\"off\"\n    spellcheck={{false}}\n    id=\"ember-power-select-trigger-multiple-input-{{@select.uniqueId}}\"\n    aria-labelledby={{@ariaLabelledBy}}\n    aria-label={{@ariaLabel}}\n    value={{@select.searchText}}\n    aria-controls={{if @select.isOpen @listboxId}}\n    style={{this.triggerMultipleInputStyle}}\n    placeholder={{this.maybePlaceholder}}\n    disabled={{@select.disabled}}\n    tabindex={{@tabindex}}\n    form=\"power-select-fake-form\"\n    {{on \"focus\" @onFocus}}\n    {{on \"blur\" @onBlur}}\n    {{on \"input\" this.handleInput}}\n    {{on \"keydown\" this.handleKeydown}}\n    {{did-insert this.storeInputStyles}}\n    ...attributes\n  />\n  */\n  {\n    \"id\": \"e+r3gA53\",\n    \"block\": \"[[[11,\\\"input\\\"],[24,4,\\\"search\\\"],[24,0,\\\"ember-power-select-trigger-multiple-input\\\"],[16,\\\"aria-activedescendant\\\",[52,[30,1,[\\\"isOpen\\\"]],[30,2]]],[24,\\\"aria-haspopup\\\",\\\"listbox\\\"],[16,\\\"aria-expanded\\\",[52,[30,1,[\\\"isOpen\\\"]],\\\"true\\\",\\\"false\\\"]],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,\\\"autocorrect\\\",\\\"off\\\"],[24,\\\"autocapitalize\\\",\\\"off\\\"],[16,\\\"spellcheck\\\",false],[16,1,[29,[\\\"ember-power-select-trigger-multiple-input-\\\",[30,1,[\\\"uniqueId\\\"]]]]],[16,\\\"aria-labelledby\\\",[30,3]],[16,\\\"aria-label\\\",[30,4]],[16,2,[30,1,[\\\"searchText\\\"]]],[16,\\\"aria-controls\\\",[52,[30,1,[\\\"isOpen\\\"]],[30,5]]],[16,5,[30,0,[\\\"triggerMultipleInputStyle\\\"]]],[16,\\\"placeholder\\\",[30,0,[\\\"maybePlaceholder\\\"]]],[16,\\\"disabled\\\",[30,1,[\\\"disabled\\\"]]],[16,\\\"tabindex\\\",[30,6]],[24,\\\"form\\\",\\\"power-select-fake-form\\\"],[17,7],[4,[38,1],[\\\"focus\\\",[30,8]],null],[4,[38,1],[\\\"blur\\\",[30,9]],null],[4,[38,1],[\\\"input\\\",[30,0,[\\\"handleInput\\\"]]],null],[4,[38,1],[\\\"keydown\\\",[30,0,[\\\"handleKeydown\\\"]]],null],[4,[38,2],[[30,0,[\\\"storeInputStyles\\\"]]],null],[12],[13]],[\\\"@select\\\",\\\"@ariaActiveDescendant\\\",\\\"@ariaLabelledBy\\\",\\\"@ariaLabel\\\",\\\"@listboxId\\\",\\\"@tabindex\\\",\\\"&attrs\\\",\\\"@onFocus\\\",\\\"@onBlur\\\"],false,[\\\"if\\\",\\\"on\\\",\\\"did-insert\\\"]]\",\n    \"moduleName\": \"ember-power-select/components/power-select-multiple/input.hbs\",\n    \"isStrictMode\": false\n  });\n  const ua = window && window.navigator ? window.navigator.userAgent : '';\n  const isIE = ua.indexOf('MSIE ') > -1 || ua.indexOf('Trident/') > -1;\n  let PowerSelectMultipleInput = _exports.default = (_class = class PowerSelectMultipleInput extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"inputFont\", void 0);\n      _initializerDefineProperty(this, \"textMeasurer\", _descriptor, this);\n    }\n    // Properties\n    get triggerMultipleInputStyle() {\n      (0, _runloop.scheduleOnce)('actions', null, this.args.select.actions.reposition);\n      if (!this.args.select.selected || (0, _object.get)(this.args.select.selected, 'length') === 0) {\n        return (0, _template.htmlSafe)('width: 100%;');\n      } else {\n        let textWidth = 0;\n        if (this.inputFont) {\n          textWidth = this.textMeasurer.width(this.args.select.searchText, this.inputFont);\n        }\n        return (0, _template.htmlSafe)(`width: ${textWidth + 25}px`);\n      }\n    }\n    get maybePlaceholder() {\n      if (isIE || !this.args.isDefaultPlaceholder) {\n        return undefined;\n      }\n      return !this.args.select.selected || (0, _object.get)(this.args.select.selected, 'length') === 0 ? this.args.placeholder || '' : '';\n    }\n\n    // Actions\n    storeInputStyles(input) {\n      let {\n        fontStyle,\n        fontVariant,\n        fontWeight,\n        fontSize,\n        lineHeight,\n        fontFamily\n      } = window.getComputedStyle(input);\n      this.inputFont = `${fontStyle} ${fontVariant} ${fontWeight} ${fontSize}/${lineHeight} ${fontFamily}`;\n    }\n    handleInput(e) {\n      if (this.args.onInput && this.args.onInput(e) === false) {\n        return;\n      }\n      this.args.select.actions.open(e);\n    }\n    handleKeydown(e) {\n      if (e.target === null) return;\n      if (this.args.onKeydown && this.args.onKeydown(e) === false) {\n        e.stopPropagation();\n        return false;\n      }\n      if (e.keyCode === 8) {\n        e.stopPropagation();\n        if ((0, _utils.isBlank)(e.target.value)) {\n          let lastSelection = this.args.select.selected && this.args.select.selected[this.args.select.selected.length - 1];\n          if (lastSelection) {\n            this.args.select.actions.select(this.args.buildSelection(lastSelection, this.args.select), e);\n            if (typeof lastSelection === 'string') {\n              this.args.select.actions.search(lastSelection);\n            } else {\n              (true && !(this.args.searchField) && (0, _debug.assert)('`<PowerSelectMultiple>` requires a `@searchField` when the options are not strings to remove options using backspace', this.args.searchField));\n              this.args.select.actions.search((0, _object.get)(lastSelection, this.args.searchField));\n            }\n            this.args.select.actions.open(e);\n          }\n        }\n      } else if (e.keyCode >= 48 && e.keyCode <= 90 || e.keyCode === 32) {\n        // Keys 0-9, a-z or SPACE\n        e.stopPropagation();\n      }\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"textMeasurer\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"storeInputStyles\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"storeInputStyles\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeydown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeydown\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PowerSelectMultipleInput);\n});","define(\"ember-power-select/components/power-select-multiple/trigger\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{!-- template-lint-disable no-invalid-interactive --}}\n  {{!-- template-lint-disable no-pointer-down-event-binding --}}\n  {{!-- template-lint-disable no-unsupported-role-attributes --}}\n  {{!-- template-lint-disable require-aria-activedescendant-tabindex --}}\n  <ul\n    id=\"ember-power-select-multiple-options-{{@select.uniqueId}}\"\n    aria-activedescendant={{if\n      (and @select.isOpen (not @searchEnabled))\n      @ariaActiveDescendant\n    }}\n    class=\"ember-power-select-multiple-options\"\n    {{did-update this.openChanged @select.isOpen}}\n    {{on \"touchstart\" this.chooseOption}}\n    {{on \"mousedown\" this.chooseOption}}\n    ...attributes\n  >\n    {{#each @select.selected as |opt idx|}}\n      <li\n        class=\"ember-power-select-multiple-option\n          {{if opt.disabled 'ember-power-select-multiple-option--disabled'}}\"\n      >\n        {{#unless @select.disabled}}\n          <span\n            role=\"button\"\n            aria-label=\"remove element\"\n            class=\"ember-power-select-multiple-remove-btn\"\n            data-selected-index={{idx}}\n          >\n            &times;\n          </span>\n        {{/unless}}\n        {{#if @selectedItemComponent}}\n          {{component\n            (ensure-safe-component @selectedItemComponent)\n            extra=@extra\n            option=opt\n            select=@select\n          }}\n        {{else}}\n          {{yield opt @select}}\n        {{/if}}\n      </li>\n    {{else}}\n      {{#if (and @placeholder (not @searchEnabled))}}\n        <li>\n          {{component\n            (ensure-safe-component @placeholderComponent)\n            placeholder=@placeholder\n          }}\n        </li>\n      {{/if}}\n    {{/each}}\n    {{#if @searchEnabled}}\n      <li>\n        {{#let\n          (component\n            \"power-select-multiple/input\"\n            select=@select\n            ariaActiveDescendant=@ariaActiveDescendant\n            ariaLabelledBy=@ariaLabelledBy\n            ariaLabel=@ariaLabel\n            listboxId=@listboxId\n            tabindex=@tabindex\n            buildSelection=@buildSelection\n            placeholder=@placeholder\n            placeholderComponent=@placeholderComponent\n            searchField=@searchField\n            onFocus=@onFocus\n            onBlur=@onBlur\n            onKeydown=@onKeydown\n            onInput=@onInput\n          )\n          as |InputComponent|\n        }}\n          {{component\n            (ensure-safe-component @placeholderComponent)\n            select=@select\n            placeholder=@placeholder\n            isMutlipleWithSearch=true\n            inputComponent=InputComponent\n            displayPlaceholder=(and\n              (not @select.searchText) (not @select.selected)\n            )\n          }}\n        {{/let}}\n      </li>\n    {{/if}}\n  </ul>\n  <span class=\"ember-power-select-status-icon\"></span>\n  */\n  {\n    \"id\": \"spYqEYpr\",\n    \"block\": \"[[[11,\\\"ul\\\"],[16,1,[29,[\\\"ember-power-select-multiple-options-\\\",[30,1,[\\\"uniqueId\\\"]]]]],[16,\\\"aria-activedescendant\\\",[52,[28,[37,1],[[30,1,[\\\"isOpen\\\"]],[28,[37,2],[[30,2]],null]],null],[30,3]]],[24,0,\\\"ember-power-select-multiple-options\\\"],[17,4],[4,[38,3],[[30,0,[\\\"openChanged\\\"]],[30,1,[\\\"isOpen\\\"]]],null],[4,[38,4],[\\\"touchstart\\\",[30,0,[\\\"chooseOption\\\"]]],null],[4,[38,4],[\\\"mousedown\\\",[30,0,[\\\"chooseOption\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,1,[\\\"selected\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"ember-power-select-multiple-option\\\\n        \\\",[52,[30,5,[\\\"disabled\\\"]],\\\"ember-power-select-multiple-option--disabled\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"disabled\\\"]]],[[[1,\\\"        \\\"],[10,1],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-label\\\",\\\"remove element\\\"],[14,0,\\\"ember-power-select-multiple-remove-btn\\\"],[15,\\\"data-selected-index\\\",[30,6]],[12],[1,\\\"\\\\n          ×\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,7],[[[1,\\\"        \\\"],[46,[28,[37,9],[[30,7]],null],null,[[\\\"extra\\\",\\\"option\\\",\\\"select\\\"],[[30,8],[30,5],[30,1]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[18,22,[[30,5],[30,1]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],[[[41,[28,[37,1],[[30,9],[28,[37,2],[[30,2]],null]],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n        \\\"],[46,[28,[37,9],[[30,10]],null],null,[[\\\"placeholder\\\"],[[30,9]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[41,[30,2],[[[1,\\\"    \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[50,\\\"power-select-multiple/input\\\",0,null,[[\\\"select\\\",\\\"ariaActiveDescendant\\\",\\\"ariaLabelledBy\\\",\\\"ariaLabel\\\",\\\"listboxId\\\",\\\"tabindex\\\",\\\"buildSelection\\\",\\\"placeholder\\\",\\\"placeholderComponent\\\",\\\"searchField\\\",\\\"onFocus\\\",\\\"onBlur\\\",\\\"onKeydown\\\",\\\"onInput\\\"],[[30,1],[30,3],[30,11],[30,12],[30,13],[30,14],[30,15],[30,9],[30,10],[30,16],[30,17],[30,18],[30,19],[30,20]]]]],[[[1,\\\"        \\\"],[46,[28,[37,9],[[30,10]],null],null,[[\\\"select\\\",\\\"placeholder\\\",\\\"isMutlipleWithSearch\\\",\\\"inputComponent\\\",\\\"displayPlaceholder\\\"],[[30,1],[30,9],true,[30,21],[28,[37,1],[[28,[37,2],[[30,1,[\\\"searchText\\\"]]],null],[28,[37,2],[[30,1,[\\\"selected\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[21]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[10,1],[14,0,\\\"ember-power-select-status-icon\\\"],[12],[13]],[\\\"@select\\\",\\\"@searchEnabled\\\",\\\"@ariaActiveDescendant\\\",\\\"&attrs\\\",\\\"opt\\\",\\\"idx\\\",\\\"@selectedItemComponent\\\",\\\"@extra\\\",\\\"@placeholder\\\",\\\"@placeholderComponent\\\",\\\"@ariaLabelledBy\\\",\\\"@ariaLabel\\\",\\\"@listboxId\\\",\\\"@tabindex\\\",\\\"@buildSelection\\\",\\\"@searchField\\\",\\\"@onFocus\\\",\\\"@onBlur\\\",\\\"@onKeydown\\\",\\\"@onInput\\\",\\\"InputComponent\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"and\\\",\\\"not\\\",\\\"did-update\\\",\\\"on\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"yield\\\",\\\"let\\\"]]\",\n    \"moduleName\": \"ember-power-select/components/power-select-multiple/trigger.hbs\",\n    \"isStrictMode\": false\n  });\n  const isIndexAccesible = target => {\n    return typeof target.objectAt === 'function';\n  };\n  let Trigger = _exports.default = (_class = class Trigger extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"_lastIsOpen\", this.args.select.isOpen);\n    }\n    // Actions\n    openChanged(_el, [isOpen]) {\n      if (isOpen === false && this._lastIsOpen === true) {\n        (0, _runloop.scheduleOnce)('actions', null, this.args.select.actions.search, '');\n      }\n      this._lastIsOpen = isOpen;\n    }\n    chooseOption(e) {\n      if (e.target === null) return;\n      let selectedIndex = e.target.getAttribute('data-selected-index');\n      if (selectedIndex) {\n        let numericIndex = parseInt(selectedIndex, 10);\n        e.stopPropagation();\n        e.preventDefault();\n        let object = this.selectedObject(this.args.select.selected, numericIndex);\n        this.args.select.actions.choose(object);\n      }\n    }\n    selectedObject(list, index) {\n      if (isIndexAccesible(list)) {\n        return list.objectAt(index);\n      } else {\n        return (0, _object.get)(list, index);\n      }\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"openChanged\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openChanged\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"chooseOption\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"chooseOption\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Trigger);\n});","define(\"ember-power-select/components/power-select\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/object/observers\", \"@ember/runloop\", \"@ember/utils\", \"@ember/debug\", \"ember-power-select/utils/group-utils\", \"ember-concurrency\", \"@ember/array\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _observers, _runloop, _utils, _debug, _groupUtils, _emberConcurrency, _array, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/object/observers\",0,\"@ember/runloop\",0,\"@ember/utils\",0,\"@ember/debug\",0,\"ember-power-select/utils/group-utils\",0,\"ember-concurrency\",0,\"@ember/array\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <BasicDropdown\n    @horizontalPosition={{@horizontalPosition}}\n    @destination={{@destination}}\n    @initiallyOpened={{@initiallyOpened}}\n    @matchTriggerWidth={{this.matchTriggerWidth}}\n    @preventScroll={{or @preventScroll false}}\n    @onClose={{this.handleClose}}\n    @onOpen={{this.handleOpen}}\n    @renderInPlace={{@renderInPlace}}\n    @verticalPosition={{@verticalPosition}}\n    @disabled={{@disabled}}\n    @calculatePosition={{@calculatePosition}}\n    @triggerComponent={{ensure-safe-component @ebdTriggerComponent}}\n    @contentComponent={{ensure-safe-component @ebdContentComponent}}\n    as |dropdown|>\n    {{#let (assign dropdown (hash\n      selected=this.selected\n      highlighted=this.highlighted\n      options=this.options\n      results=this.results\n      resultsCount=this.resultsCount\n      loading=this.loading\n      isActive=this.isActive\n      searchText=this.searchText\n      lastSearchedText=this.lastSearchedText\n      actions=(assign dropdown.actions this._publicAPIActions)\n    )) (concat \"ember-power-select-options-\" dropdown.uniqueId) as |publicAPI listboxId|}}\n      <dropdown.Trigger\n        @eventType={{or @eventType \"mousedown\"}}\n        {{did-insert this._updateOptions @options}}\n        {{did-update this._updateOptions @options}}\n        {{did-insert this._updateSelected @selected}}\n        {{did-update this._updateSelected @selected}}\n        {{did-insert this._registerAPI publicAPI}}\n        {{did-update this._registerAPI publicAPI}}\n        {{did-update this._performSearch this.searchText}}\n        {{on \"keydown\" this.handleTriggerKeydown}}\n        {{on \"focus\" this.handleFocus}}\n        {{on \"blur\" this.handleBlur}}\n        class=\"ember-power-select-trigger {{@triggerClass}}{{if publicAPI.isActive \" ember-power-select-trigger--active\"}}\"\n        aria-activedescendant={{if dropdown.isOpen (unless @searchEnabled (concat publicAPI.uniqueId \"-\" this.highlightedIndex))}}\n        aria-controls={{unless @searchEnabled listboxId}}\n        aria-describedby={{@ariaDescribedBy}}\n        aria-haspopup={{unless @searchEnabled \"listbox\"}}\n        aria-invalid={{@ariaInvalid}}\n        aria-label={{@ariaLabel}}\n        aria-labelledby={{@ariaLabelledBy}}\n        aria-owns=\"\"\n        aria-required={{@required}}\n        role={{or @triggerRole \"button\"}}\n        title={{@title}}\n        id={{@triggerId}}\n        tabindex={{and (not @disabled) (or @tabindex \"0\")}}\n        ...attributes\n      >\n        {{#let \n          (if \n            @triggerComponent \n            (component (ensure-safe-component @triggerComponent)) \n            (component 'power-select/trigger')\n          ) \n        as |Trigger|}}\n          <Trigger\n            @allowClear={{@allowClear}}\n            @buildSelection={{@buildSelection}}\n            @loadingMessage={{or @loadingMessage \"Loading options...\"}}\n            @selectedItemComponent={{ensure-safe-component @selectedItemComponent}}\n            @select={{publicAPI}}\n            @searchEnabled={{@searchEnabled}}\n            @searchField={{@searchField}}\n            @onFocus={{this.handleFocus}}\n            @onBlur={{this.handleBlur}}\n            @extra={{@extra}}\n            @listboxId={{listboxId}}\n            @onInput={{this.handleInput}}\n            @onKeydown={{this.handleKeydown}}\n            @placeholder={{@placeholder}}\n            @placeholderComponent={{if \n              @placeholderComponent \n              (ensure-safe-component @placeholderComponent) \n              (component 'power-select/placeholder')\n            }}\n            @ariaActiveDescendant={{concat publicAPI.uniqueId \"-\" this.highlightedIndex}}\n            @ariaLabelledBy={{@ariaLabelledBy}}\n            @ariaLabel={{@ariaLabel}}\n            as |opt term|>\n            {{yield opt term}}\n          </Trigger>\n        {{/let}}\n      </dropdown.Trigger>\n      <dropdown.Content\n        class=\"ember-power-select-dropdown{{if publicAPI.isActive \" ember-power-select-dropdown--active\"}} {{@dropdownClass}}\"\n        @animationEnabled={{@animationEnabled}}\n      >\n        {{#if (not-eq @beforeOptionsComponent null)}}\n          {{#let \n            (if \n              @beforeOptionsComponent \n              (component (ensure-safe-component @beforeOptionsComponent))\n              (component 'power-select/before-options')\n            ) \n          as |BeforeOptions|}}\n            <BeforeOptions\n              @select={{publicAPI}}\n              @searchEnabled={{@searchEnabled}}\n              @onInput={{this.handleInput}}\n              @onKeydown={{this.handleKeydown}}\n              @onFocus={{this.handleFocus}}\n              @onBlur={{this.handleBlur}}\n              @placeholder={{@placeholder}}\n              @placeholderComponent={{or @placeholderComponent (component 'power-select/placeholder')}}\n              @extra={{@extra}}\n              @listboxId={{listboxId}}\n              @ariaActiveDescendant={{concat publicAPI.uniqueId \"-\" this.highlightedIndex}}\n              @selectedItemComponent={{ensure-safe-component @selectedItemComponent}}\n              @searchPlaceholder={{@searchPlaceholder}}\n              @ariaLabel={{@ariaLabel}}\n              @ariaLabelledBy={{@ariaLabelledBy}}\n            />\n          {{/let}}\n        {{/if}}\n        {{#if this.mustShowSearchMessage}}\n          {{#let \n            (if \n              @searchMessageComponent \n              (component (ensure-safe-component @searchMessageComponent))\n              (component 'power-select/search-message')\n            ) \n          as |SearchMessage|}}\n            <SearchMessage \n              @searchMessage={{this.searchMessage}}\n              @select={{publicAPI}}\n              id={{listboxId}} \n              aria-label={{@ariaLabel}}\n              aria-labelledby={{@ariaLabelledBy}} \n            /> \n          {{/let}}\n        {{else if this.mustShowNoMessages}}\n          {{#let \n            (if \n              @noMatchesMessageComponent\n              (component (ensure-safe-component @noMatchesMessageComponent))\n              (component 'power-select/no-matches-message')\n            ) \n           as |NoMatchesMessage|}}\n            <NoMatchesMessage \n              @noMatchesMessage={{this.noMatchesMessage}} \n              @select={{publicAPI}} \n              id={{listboxId}} \n              aria-label={{@ariaLabel}}\n              aria-labelledby={{@ariaLabelledBy}} \n            />\n          {{/let}}\n        {{else}}\n          {{#let \n            (if \n              @optionsComponent\n              (component (ensure-safe-component @optionsComponent))\n              (component 'power-select/options')\n            ) \n            (if \n              @groupComponent\n              (component (ensure-safe-component @groupComponent))\n              (component 'power-select/power-select-group')\n            ) \n          as |Options Group|}}\n            <Options\n              @loadingMessage={{or @loadingMessage \"Loading options...\"}}\n              @select={{publicAPI}}\n              @options={{publicAPI.results}}\n              @groupIndex=\"\"\n              @optionsComponent={{Options}}\n              @extra={{@extra}}\n              @highlightOnHover={{this.highlightOnHover}}\n              @groupComponent={{Group}}\n              id={{listboxId}}\n              class=\"ember-power-select-options\" as |option select|>\n              {{yield option select}}\n            </Options>\n          {{/let}}\n        {{/if}}\n        \n        {{#if @afterOptionsComponent}}\n          {{#let (component (ensure-safe-component @afterOptionsComponent)) as |AfterOptions|}}\n            <AfterOptions\n              @extra={{@extra}}\n              @select={{publicAPI}}\n            />\n          {{/let}}\n        {{/if}}\n      </dropdown.Content>\n    {{/let}}\n  </BasicDropdown>\n  {{!-- <BasicDropdown\n    @horizontalPosition={{@horizontalPosition}}\n    @destination={{@destination}}\n    @initiallyOpened={{@initiallyOpened}}\n    @matchTriggerWidth={{this.matchTriggerWidth}}\n    @preventScroll={{this.preventScroll}}\n    @onClose={{this.handleClose}}\n    @onOpen={{this.handleOpen}}\n    @registerAPI={{this._registerAPI}}\n    @renderInPlace={{@renderInPlace}}\n    @verticalPosition={{@verticalPosition}}\n    @disabled={{@disabled}}\n    @calculatePosition={{this.calculatePosition}}\n    ...attributes as |dropdown|>\n    <dropdown.Trigger\n      @eventType={{or @eventType \"mousedown\"}}\n      {{on \"keydown\" this.handleTriggerKeydown}}\n      {{on \"focus\" this.handleTriggerFocus}}\n      {{on \"blur\" this.handleTriggerBlur}}\n      class={{this.concatenatedTriggerClasses}}\n      id={{@triggerId}}\n      role={{this.triggerRole}}\n      aria-describedby={{@ariaDescribedBy}}\n      aria-invalid={{@ariaInvalid}}\n      aria-label={{@ariaLabel}}\n      aria-labelledby={{@ariaLabelledBy}}\n      aria-required={{@required}}\n      title={{@title}}\n      tabindex={{and (not @disabled) (or @tabindex \"0\")}}>\n      {{#let (component this.triggerComponent) as |Trigger|}}\n        <Trigger\n          @htmlTag={{this._triggerTagName}}\n          @allowClear={{@allowClear}}\n          @buildSelection={{@buildSelection}}\n          @extra={{@extra}}\n          @listboxId={{this.optionsId}}\n          @loadingMessage={{this.loadingMessage}}\n          @onFocus={{this.handleFocus}}\n          @onBlur={{this.handleBlur}}\n          @onInput={{this.handleInput}}\n  \n          @onKeydown={{this.handleKeydown}}\n          @searchEnabled={{@searchEnabled}}\n          @searchField={{@searchField}}\n          @select={{this.publicAPI}}\n          @selectedItemComponent={{@selectedItemComponent}}\n          as |opt term|>\n          {{yield opt term}}\n        </Trigger>\n      {{/let}}\n    </dropdown.Trigger>\n    <dropdown.Content @htmlTag={{this._contentTagName}} class={{this.concatenatedDropdownClasses}}>\n      {{#let (component this.beforeOptionsComponent) as |BeforeOptions|}}\n        <BeforeOptions\n          @animationEnabled={{@animationEnabled}}\n          @select={{this.publicAPI}}\n          @searchEnabled={{@searchEnabled}}\n          @searchPlaceholder={{@searchPlaceholder}}\n          @listboxId={{this.optionsId}}\n          @onInput={{this.handleInput}}\n          @onKeydown={{this.handleKeydown}}\n          @onFocus={{this.handleFocus}}\n          @onBlur={{this.handleBlur}}\n          @extra={{@extra}}\n          @placeholder={{@placeholder}}\n          @placeholderComponent={{this.placeholderComponent}}\n          @selectedItemComponent={{@selectedItemComponent}}/>\n      {{/let}}\n      {{#if this.mustShowSearchMessage}}\n        {{#let (component this.searchMessageComponent) as |SearchMessage|}}\n          <SearchMessage @searchMessage={{this.searchMessage}} @select={{this.publicAPI}}/>\n        {{/let}}\n      {{else if this.mustShowNoMessages}}\n        {{#if this.noMatchesMessage}}\n          <ul class=\"ember-power-select-options\" role=\"listbox\">\n            <li class=\"ember-power-select-option ember-power-select-option--no-matches-message\" role=\"option\">\n              {{this.noMatchesMessage}}\n            </li>\n          </ul>\n        {{/if}}\n      {{else}}\n        {{#let (component this.optionsComponent) as |Options|}}\n          <Options\n            @loadingMessage={{this.loadingMessage}}\n            @groupIndex=\"\"\n            @extra={{@extra}}\n            @select={{this.publicAPI}}\n            @options={{this.publicAPI.results}}\n            @optionsComponent={{Options}}\n            @highlightOnHover={{this.highlightOnHover}}\n            @groupComponent={{this.groupComponent}}\n            id={{this.optionsId}}\n            class=\"ember-power-select-options\" as |option term|>\n            {{yield option term}}\n          </Options>\n        {{/let}}\n      {{/if}}\n      {{#let (component this.afterOptionsComponent) as |AfterOptions|}}\n        <AfterOptions @select={{this.publicAPI}} @extra={{@extra}}/>\n      {{/let}}\n    </dropdown.Content>\n  </BasicDropdown> --}}\n  \n  */\n  {\n    \"id\": \"YrYu5Z8j\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@horizontalPosition\\\",\\\"@destination\\\",\\\"@initiallyOpened\\\",\\\"@matchTriggerWidth\\\",\\\"@preventScroll\\\",\\\"@onClose\\\",\\\"@onOpen\\\",\\\"@renderInPlace\\\",\\\"@verticalPosition\\\",\\\"@disabled\\\",\\\"@calculatePosition\\\",\\\"@triggerComponent\\\",\\\"@contentComponent\\\"],[[30,1],[30,2],[30,3],[30,0,[\\\"matchTriggerWidth\\\"]],[28,[37,1],[[30,4],false],null],[30,0,[\\\"handleClose\\\"]],[30,0,[\\\"handleOpen\\\"]],[30,5],[30,6],[30,7],[30,8],[28,[37,2],[[30,9]],null],[28,[37,2],[[30,10]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,4],[[30,11],[28,[37,5],null,[[\\\"selected\\\",\\\"highlighted\\\",\\\"options\\\",\\\"results\\\",\\\"resultsCount\\\",\\\"loading\\\",\\\"isActive\\\",\\\"searchText\\\",\\\"lastSearchedText\\\",\\\"actions\\\"],[[30,0,[\\\"selected\\\"]],[30,0,[\\\"highlighted\\\"]],[30,0,[\\\"options\\\"]],[30,0,[\\\"results\\\"]],[30,0,[\\\"resultsCount\\\"]],[30,0,[\\\"loading\\\"]],[30,0,[\\\"isActive\\\"]],[30,0,[\\\"searchText\\\"]],[30,0,[\\\"lastSearchedText\\\"]],[28,[37,4],[[30,11,[\\\"actions\\\"]],[30,0,[\\\"_publicAPIActions\\\"]]],null]]]]],null],[28,[37,6],[\\\"ember-power-select-options-\\\",[30,11,[\\\"uniqueId\\\"]]],null]],[[[1,\\\"    \\\"],[8,[30,11,[\\\"Trigger\\\"]],[[16,0,[29,[\\\"ember-power-select-trigger \\\",[30,14],[52,[30,12,[\\\"isActive\\\"]],\\\" ember-power-select-trigger--active\\\"]]]],[16,\\\"aria-activedescendant\\\",[52,[30,11,[\\\"isOpen\\\"]],[52,[51,[30,15]],[28,[37,6],[[30,12,[\\\"uniqueId\\\"]],\\\"-\\\",[30,0,[\\\"highlightedIndex\\\"]]],null]]]],[16,\\\"aria-controls\\\",[52,[51,[30,15]],[30,13]]],[16,\\\"aria-describedby\\\",[30,16]],[16,\\\"aria-haspopup\\\",[52,[51,[30,15]],\\\"listbox\\\"]],[16,\\\"aria-invalid\\\",[30,17]],[16,\\\"aria-label\\\",[30,18]],[16,\\\"aria-labelledby\\\",[30,19]],[24,\\\"aria-owns\\\",\\\"\\\"],[16,\\\"aria-required\\\",[30,20]],[16,\\\"role\\\",[28,[37,1],[[30,21],\\\"button\\\"],null]],[16,\\\"title\\\",[30,22]],[16,1,[30,23]],[16,\\\"tabindex\\\",[28,[37,9],[[28,[37,10],[[30,7]],null],[28,[37,1],[[30,24],\\\"0\\\"],null]],null]],[17,25],[4,[38,11],[[30,0,[\\\"_updateOptions\\\"]],[30,27]],null],[4,[38,12],[[30,0,[\\\"_updateOptions\\\"]],[30,27]],null],[4,[38,11],[[30,0,[\\\"_updateSelected\\\"]],[30,28]],null],[4,[38,12],[[30,0,[\\\"_updateSelected\\\"]],[30,28]],null],[4,[38,11],[[30,0,[\\\"_registerAPI\\\"]],[30,12]],null],[4,[38,12],[[30,0,[\\\"_registerAPI\\\"]],[30,12]],null],[4,[38,12],[[30,0,[\\\"_performSearch\\\"]],[30,0,[\\\"searchText\\\"]]],null],[4,[38,13],[\\\"keydown\\\",[30,0,[\\\"handleTriggerKeydown\\\"]]],null],[4,[38,13],[\\\"focus\\\",[30,0,[\\\"handleFocus\\\"]]],null],[4,[38,13],[\\\"blur\\\",[30,0,[\\\"handleBlur\\\"]]],null]],[[\\\"@eventType\\\"],[[28,[37,1],[[30,26],\\\"mousedown\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[52,[30,29],[50,[28,[37,2],[[30,29]],null],0,null,null],[50,\\\"power-select/trigger\\\",0,null,null]]],[[[1,\\\"        \\\"],[8,[30,30],null,[[\\\"@allowClear\\\",\\\"@buildSelection\\\",\\\"@loadingMessage\\\",\\\"@selectedItemComponent\\\",\\\"@select\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@onFocus\\\",\\\"@onBlur\\\",\\\"@extra\\\",\\\"@listboxId\\\",\\\"@onInput\\\",\\\"@onKeydown\\\",\\\"@placeholder\\\",\\\"@placeholderComponent\\\",\\\"@ariaActiveDescendant\\\",\\\"@ariaLabelledBy\\\",\\\"@ariaLabel\\\"],[[30,31],[30,32],[28,[37,1],[[30,33],\\\"Loading options...\\\"],null],[28,[37,2],[[30,34]],null],[30,12],[30,15],[30,35],[30,0,[\\\"handleFocus\\\"]],[30,0,[\\\"handleBlur\\\"]],[30,36],[30,13],[30,0,[\\\"handleInput\\\"]],[30,0,[\\\"handleKeydown\\\"]],[30,37],[52,[30,38],[28,[37,2],[[30,38]],null],[50,\\\"power-select/placeholder\\\",0,null,null]],[28,[37,6],[[30,12,[\\\"uniqueId\\\"]],\\\"-\\\",[30,0,[\\\"highlightedIndex\\\"]]],null],[30,19],[30,18]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[18,58,[[30,39],[30,40]]],[1,\\\"\\\\n        \\\"]],[39,40]]]]],[1,\\\"\\\\n\\\"]],[30]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,11,[\\\"Content\\\"]],[[16,0,[29,[\\\"ember-power-select-dropdown\\\",[52,[30,12,[\\\"isActive\\\"]],\\\" ember-power-select-dropdown--active\\\"],\\\" \\\",[30,41]]]]],[[\\\"@animationEnabled\\\"],[[30,42]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,43],null],null],[[[44,[[52,[30,43],[50,[28,[37,2],[[30,43]],null],0,null,null],[50,\\\"power-select/before-options\\\",0,null,null]]],[[[1,\\\"          \\\"],[8,[30,44],null,[[\\\"@select\\\",\\\"@searchEnabled\\\",\\\"@onInput\\\",\\\"@onKeydown\\\",\\\"@onFocus\\\",\\\"@onBlur\\\",\\\"@placeholder\\\",\\\"@placeholderComponent\\\",\\\"@extra\\\",\\\"@listboxId\\\",\\\"@ariaActiveDescendant\\\",\\\"@selectedItemComponent\\\",\\\"@searchPlaceholder\\\",\\\"@ariaLabel\\\",\\\"@ariaLabelledBy\\\"],[[30,12],[30,15],[30,0,[\\\"handleInput\\\"]],[30,0,[\\\"handleKeydown\\\"]],[30,0,[\\\"handleFocus\\\"]],[30,0,[\\\"handleBlur\\\"]],[30,37],[28,[37,1],[[30,38],[50,\\\"power-select/placeholder\\\",0,null,null]],null],[30,36],[30,13],[28,[37,6],[[30,12,[\\\"uniqueId\\\"]],\\\"-\\\",[30,0,[\\\"highlightedIndex\\\"]]],null],[28,[37,2],[[30,34]],null],[30,45],[30,18],[30,19]]],null],[1,\\\"\\\\n\\\"]],[44]]]],[]],null],[41,[30,0,[\\\"mustShowSearchMessage\\\"]],[[[44,[[52,[30,46],[50,[28,[37,2],[[30,46]],null],0,null,null],[50,\\\"power-select/search-message\\\",0,null,null]]],[[[1,\\\"          \\\"],[8,[30,47],[[16,1,[30,13]],[16,\\\"aria-label\\\",[30,18]],[16,\\\"aria-labelledby\\\",[30,19]]],[[\\\"@searchMessage\\\",\\\"@select\\\"],[[30,0,[\\\"searchMessage\\\"]],[30,12]]],null],[1,\\\" \\\\n\\\"]],[47]]]],[]],[[[41,[30,0,[\\\"mustShowNoMessages\\\"]],[[[44,[[52,[30,48],[50,[28,[37,2],[[30,48]],null],0,null,null],[50,\\\"power-select/no-matches-message\\\",0,null,null]]],[[[1,\\\"          \\\"],[8,[30,49],[[16,1,[30,13]],[16,\\\"aria-label\\\",[30,18]],[16,\\\"aria-labelledby\\\",[30,19]]],[[\\\"@noMatchesMessage\\\",\\\"@select\\\"],[[30,0,[\\\"noMatchesMessage\\\"]],[30,12]]],null],[1,\\\"\\\\n\\\"]],[49]]]],[]],[[[44,[[52,[30,50],[50,[28,[37,2],[[30,50]],null],0,null,null],[50,\\\"power-select/options\\\",0,null,null]],[52,[30,51],[50,[28,[37,2],[[30,51]],null],0,null,null],[50,\\\"power-select/power-select-group\\\",0,null,null]]],[[[1,\\\"          \\\"],[8,[30,52],[[16,1,[30,13]],[24,0,\\\"ember-power-select-options\\\"]],[[\\\"@loadingMessage\\\",\\\"@select\\\",\\\"@options\\\",\\\"@groupIndex\\\",\\\"@optionsComponent\\\",\\\"@extra\\\",\\\"@highlightOnHover\\\",\\\"@groupComponent\\\"],[[28,[37,1],[[30,33],\\\"Loading options...\\\"],null],[30,12],[30,12,[\\\"results\\\"]],\\\"\\\",[30,52],[30,36],[30,0,[\\\"highlightOnHover\\\"]],[30,53]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[18,58,[[30,54],[30,55]]],[1,\\\"\\\\n          \\\"]],[54,55]]]]],[1,\\\"\\\\n\\\"]],[52,53]]],[1,\\\"      \\\"]],[]]]],[]]],[1,\\\"      \\\\n\\\"],[41,[30,56],[[[44,[[50,[28,[37,2],[[30,56]],null],0,null,null]],[[[1,\\\"          \\\"],[8,[30,57],null,[[\\\"@extra\\\",\\\"@select\\\"],[[30,36],[30,12]]],null],[1,\\\"\\\\n\\\"]],[57]]]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[12,13]]]],[11]]]]],[1,\\\"\\\\n\\\"]],[\\\"@horizontalPosition\\\",\\\"@destination\\\",\\\"@initiallyOpened\\\",\\\"@preventScroll\\\",\\\"@renderInPlace\\\",\\\"@verticalPosition\\\",\\\"@disabled\\\",\\\"@calculatePosition\\\",\\\"@ebdTriggerComponent\\\",\\\"@ebdContentComponent\\\",\\\"dropdown\\\",\\\"publicAPI\\\",\\\"listboxId\\\",\\\"@triggerClass\\\",\\\"@searchEnabled\\\",\\\"@ariaDescribedBy\\\",\\\"@ariaInvalid\\\",\\\"@ariaLabel\\\",\\\"@ariaLabelledBy\\\",\\\"@required\\\",\\\"@triggerRole\\\",\\\"@title\\\",\\\"@triggerId\\\",\\\"@tabindex\\\",\\\"&attrs\\\",\\\"@eventType\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@triggerComponent\\\",\\\"Trigger\\\",\\\"@allowClear\\\",\\\"@buildSelection\\\",\\\"@loadingMessage\\\",\\\"@selectedItemComponent\\\",\\\"@searchField\\\",\\\"@extra\\\",\\\"@placeholder\\\",\\\"@placeholderComponent\\\",\\\"opt\\\",\\\"term\\\",\\\"@dropdownClass\\\",\\\"@animationEnabled\\\",\\\"@beforeOptionsComponent\\\",\\\"BeforeOptions\\\",\\\"@searchPlaceholder\\\",\\\"@searchMessageComponent\\\",\\\"SearchMessage\\\",\\\"@noMatchesMessageComponent\\\",\\\"NoMatchesMessage\\\",\\\"@optionsComponent\\\",\\\"@groupComponent\\\",\\\"Options\\\",\\\"Group\\\",\\\"option\\\",\\\"select\\\",\\\"@afterOptionsComponent\\\",\\\"AfterOptions\\\",\\\"&default\\\"],false,[\\\"basic-dropdown\\\",\\\"or\\\",\\\"ensure-safe-component\\\",\\\"let\\\",\\\"assign\\\",\\\"hash\\\",\\\"concat\\\",\\\"if\\\",\\\"unless\\\",\\\"and\\\",\\\"not\\\",\\\"did-insert\\\",\\\"did-update\\\",\\\"on\\\",\\\"component\\\",\\\"yield\\\",\\\"not-eq\\\"]]\",\n    \"moduleName\": \"ember-power-select/components/power-select.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // @ts-ignore\n\n  // Some args are not listed here because they are only accessed from the template. Should I list them?\n\n  const isSliceable = coll => {\n    return (0, _array.isArray)(coll);\n  };\n  const isPromiseLike = thing => {\n    return typeof thing.then === 'function';\n  };\n  const isPromiseProxyLike = thing => {\n    return isPromiseLike(thing) && Object.hasOwnProperty.call(thing, 'content');\n  };\n  const isCancellablePromise = thing => {\n    return typeof thing.cancel === 'function';\n  };\n  let PowerSelect = _exports.default = (_class = class PowerSelect extends _component2.default {\n    // Lifecycle hooks\n    constructor(owner, args) {\n      super(owner, args);\n      // Untracked properties\n      _defineProperty(this, \"_publicAPIActions\", {\n        search: this._search,\n        highlight: this._highlight,\n        select: this._select,\n        choose: this._choose,\n        scrollTo: this._scrollTo\n      });\n      // Tracked properties\n      _initializerDefineProperty(this, \"_resolvedOptions\", _descriptor, this);\n      _initializerDefineProperty(this, \"_resolvedSelected\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_repeatingChar\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_expirableSearchText\", _descriptor4, this);\n      _initializerDefineProperty(this, \"_searchResult\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isActive\", _descriptor6, this);\n      _initializerDefineProperty(this, \"loading\", _descriptor7, this);\n      _initializerDefineProperty(this, \"searchText\", _descriptor8, this);\n      _initializerDefineProperty(this, \"lastSearchedText\", _descriptor9, this);\n      _initializerDefineProperty(this, \"highlighted\", _descriptor10, this);\n      _defineProperty(this, \"storedAPI\", void 0);\n      _defineProperty(this, \"_lastOptionsPromise\", void 0);\n      _defineProperty(this, \"_lastSelectedPromise\", void 0);\n      _defineProperty(this, \"_lastSearchPromise\", void 0);\n      _defineProperty(this, \"_filterResultsCache\", {\n        results: [],\n        options: [],\n        searchText: this.searchText\n      });\n      (true && !(this.args.onChange && typeof this.args.onChange === 'function') && (0, _debug.assert)('<PowerSelect> requires an `@onChange` function', this.args.onChange && typeof this.args.onChange === 'function'));\n    }\n    willDestroy() {\n      if (this._lastSelectedPromise && isPromiseProxyLike(this._lastSelectedPromise)) {\n        try {\n          (0, _observers.removeObserver)(this._lastSelectedPromise, 'content', this, this._selectedObserverCallback);\n        } catch {}\n        this._lastSelectedPromise = undefined;\n      }\n      super.willDestroy.apply(this, arguments);\n    }\n\n    // Getters\n    get highlightOnHover() {\n      return this.args.highlightOnHover === undefined ? true : this.args.highlightOnHover;\n    }\n    get highlightedIndex() {\n      let results = this.results;\n      let highlighted = this.highlighted;\n      return (0, _groupUtils.pathForOption)(results, highlighted);\n    }\n    get searchMessage() {\n      return this.args.searchMessage === undefined ? 'Type to search' : this.args.searchMessage;\n    }\n    get noMatchesMessage() {\n      return this.args.noMatchesMessage === undefined ? 'No results found' : this.args.noMatchesMessage;\n    }\n    get matchTriggerWidth() {\n      return this.args.matchTriggerWidth === undefined ? true : this.args.matchTriggerWidth;\n    }\n    get mustShowSearchMessage() {\n      return !this.loading && this.searchText.length === 0 && !!this.args.search && !!this.searchMessage && this.resultsCount === 0;\n    }\n    get mustShowNoMessages() {\n      return !this.loading && this.resultsCount === 0 && (!this.args.search || this.lastSearchedText.length > 0);\n    }\n    get results() {\n      if (this.searchText.length > 0) {\n        if (this.args.search) {\n          return toPlainArray(this._searchResult || this.options);\n        } else {\n          if (this._filterResultsCache.options === this.options && this._filterResultsCache.searchText === this.searchText) {\n            // This is an optimization to avoid filtering several times, which may be a bit expensive\n            // if there are many options, if neither the options nor the searchtext have changed\n            return this._filterResultsCache.results;\n          }\n          let results = this._filter(this.options, this.searchText);\n          this._filterResultsCache = {\n            results,\n            options: this.options,\n            searchText: this.searchText\n          };\n          return results;\n        }\n      } else {\n        return this.options;\n      }\n    }\n    get options() {\n      if (this._resolvedOptions) return toPlainArray(this._resolvedOptions);\n      if (this.args.options) {\n        return toPlainArray(this.args.options);\n      } else {\n        return [];\n      }\n    }\n    get resultsCount() {\n      return (0, _groupUtils.countOptions)(this.results);\n    }\n    get selected() {\n      if (this._resolvedSelected) {\n        return toPlainArray(this._resolvedSelected);\n      } else if (this.args.selected && typeof this.args.selected.then !== 'function') {\n        return toPlainArray(this.args.selected);\n      }\n      return undefined;\n    }\n\n    // Actions\n    handleOpen(_select, e) {\n      if (this.args.onOpen && this.args.onOpen(this.storedAPI, e) === false) {\n        return false;\n      }\n      if (e) {\n        if (e instanceof KeyboardEvent && e.type === 'keydown' && (e.keyCode === 38 || e.keyCode === 40)) {\n          e.preventDefault();\n        }\n      }\n      this._resetHighlighted();\n    }\n    handleClose(_select, e) {\n      if (this.args.onClose && this.args.onClose(this.storedAPI, e) === false) {\n        return false;\n      }\n      this._highlight(undefined);\n    }\n    handleInput(e) {\n      if (e.target === null) return;\n      let term = e.target.value;\n      let correctedTerm;\n      if (this.args.onInput) {\n        correctedTerm = this.args.onInput(term, this.storedAPI, e);\n        if (correctedTerm === false) {\n          return;\n        }\n      }\n      this._publicAPIActions.search(typeof correctedTerm === 'string' ? correctedTerm : term);\n    }\n    handleKeydown(e) {\n      if (this.args.onKeydown && this.args.onKeydown(this.storedAPI, e) === false) {\n        return false;\n      }\n      return this._routeKeydown(this.storedAPI, e);\n    }\n    handleTriggerKeydown(e) {\n      if (this.args.onKeydown && this.args.onKeydown(this.storedAPI, e) === false) {\n        e.stopImmediatePropagation();\n        return;\n      }\n      if (e.ctrlKey || e.metaKey) {\n        e.stopImmediatePropagation();\n        return;\n      }\n      if (e.keyCode >= 48 && e.keyCode <= 90 || isNumpadKeyEvent(e)) {\n        // Keys 0-9, a-z or numpad keys\n        this.triggerTypingTask.perform(e);\n      } else if (e.keyCode === 32) {\n        // Space\n        this._handleKeySpace(this.storedAPI, e);\n      } else {\n        return this._routeKeydown(this.storedAPI, e);\n      }\n    }\n    handleFocus(event) {\n      if (!this.isDestroying) {\n        (0, _runloop.scheduleOnce)('actions', this, this._updateIsActive, true);\n      }\n      if (this.args.onFocus) {\n        this.args.onFocus(this.storedAPI, event);\n      }\n    }\n    handleBlur(event) {\n      if (!this.isDestroying) {\n        (0, _runloop.scheduleOnce)('actions', this, this._updateIsActive, false);\n      }\n      if (this.args.onBlur) {\n        this.args.onBlur(this.storedAPI, event);\n      }\n    }\n\n    // Methods\n    _search(term) {\n      if (this.searchText === term) return;\n      this.searchText = term;\n      if (!this.args.search) {\n        this.lastSearchedText = term;\n        this._resetHighlighted();\n      }\n    }\n    _updateOptions() {\n      if (!this.args.options) return;\n      if (isPromiseLike(this.args.options)) {\n        if (this._lastOptionsPromise === this.args.options) return; // promise is still the same\n        let currentOptionsPromise = this.args.options;\n        this._lastOptionsPromise = currentOptionsPromise;\n        this.loading = true;\n        this._lastOptionsPromise.then(resolvedOptions => {\n          if (this._lastOptionsPromise === currentOptionsPromise) {\n            this.loading = false;\n            this._resolvedOptions = resolvedOptions;\n            this._resetHighlighted();\n          }\n        }).catch(() => {\n          if (this._lastOptionsPromise === currentOptionsPromise) {\n            this.loading = false;\n          }\n        });\n      } else {\n        (0, _runloop.scheduleOnce)('actions', this, this._resetHighlighted);\n      }\n    }\n    _updateHighlighted() {\n      if (this.storedAPI.isOpen) {\n        this._resetHighlighted();\n      }\n    }\n    _updateSelected() {\n      if (!this.args.selected) return;\n      if (typeof this.args.selected.then === 'function') {\n        if (this._lastSelectedPromise === this.args.selected) return; // promise is still the same\n        if (this._lastSelectedPromise && isPromiseProxyLike(this._lastSelectedPromise)) {\n          (0, _observers.removeObserver)(this._lastSelectedPromise, 'content', this, this._selectedObserverCallback);\n        }\n        let currentSelectedPromise = this.args.selected;\n        currentSelectedPromise.then(() => {\n          if (this.isDestroyed || this.isDestroying) return;\n          if (isPromiseProxyLike(currentSelectedPromise)) {\n            (0, _observers.addObserver)(currentSelectedPromise, 'content', this, this._selectedObserverCallback);\n          }\n        });\n        this._lastSelectedPromise = currentSelectedPromise;\n        this._lastSelectedPromise.then(resolvedSelected => {\n          if (this._lastSelectedPromise === currentSelectedPromise) {\n            this._resolvedSelected = resolvedSelected;\n            this._highlight(resolvedSelected);\n          }\n        });\n      } else {\n        this._resolvedSelected = undefined;\n        // Don't highlight args.selected array on multi-select\n        if (!Array.isArray(this.args.selected)) {\n          this._highlight(this.args.selected);\n        }\n      }\n    }\n    _selectedObserverCallback() {\n      this._resolvedSelected = this._lastSelectedPromise;\n      this._highlight(this._resolvedSelected);\n    }\n    _highlight(opt) {\n      if (opt && (0, _object.get)(opt, 'disabled')) {\n        return;\n      }\n      this.highlighted = opt;\n    }\n    _select(selected, e) {\n      if (!(0, _utils.isEqual)(this.storedAPI.selected, selected)) {\n        this.args.onChange(selected, this.storedAPI, e);\n      }\n    }\n    _choose(selected, e) {\n      let selection = this.args.buildSelection ? this.args.buildSelection(selected, this.storedAPI) : selected;\n      this.storedAPI.actions.select(selection, e);\n      if (this.args.closeOnSelect !== false) {\n        this.storedAPI.actions.close(e);\n        // return false;\n      }\n    }\n\n    _scrollTo(option) {\n      let select = this.storedAPI;\n      if (!document || !option) {\n        return;\n      }\n      if (this.args.scrollTo) {\n        return this.args.scrollTo(option, select);\n      }\n      let optionsList = document.getElementById(`ember-power-select-options-${select.uniqueId}`);\n      if (!optionsList) {\n        return;\n      }\n      let index = (0, _groupUtils.indexOfOption)(select.results, option);\n      if (index === -1) {\n        return;\n      }\n      let optionElement = optionsList.querySelector(`[data-option-index='${index}']`);\n      if (!optionElement) {\n        return;\n      }\n      let optionTopScroll = optionElement.offsetTop - optionsList.offsetTop;\n      let optionBottomScroll = optionTopScroll + optionElement.offsetHeight;\n      if (optionBottomScroll > optionsList.offsetHeight + optionsList.scrollTop) {\n        optionsList.scrollTop = optionBottomScroll - optionsList.offsetHeight;\n      } else if (optionTopScroll < optionsList.scrollTop) {\n        optionsList.scrollTop = optionTopScroll;\n      }\n    }\n    _registerAPI(_, [publicAPI]) {\n      this.storedAPI = publicAPI;\n      if (this.args.registerAPI) {\n        (0, _runloop.scheduleOnce)('actions', null, this.args.registerAPI, publicAPI);\n      }\n    }\n    _performSearch(_, [term]) {\n      if (!this.args.search) return;\n      if (term === '') {\n        this.loading = false;\n        this.lastSearchedText = term;\n        if (this._lastSearchPromise !== undefined) {\n          if (isCancellablePromise(this._lastSearchPromise)) {\n            this._lastSearchPromise.cancel(); // Cancel ember-concurrency tasks\n          }\n\n          this._lastSearchPromise = undefined;\n        }\n        return;\n      }\n      let searchResult = this.args.search(term, this.storedAPI);\n      if (searchResult && isPromiseLike(searchResult)) {\n        this.loading = true;\n        if (this._lastSearchPromise !== undefined && isCancellablePromise(this._lastSearchPromise)) {\n          this._lastSearchPromise.cancel(); // Cancel ember-concurrency tasks\n        }\n\n        this._lastSearchPromise = searchResult;\n        searchResult.then(results => {\n          if (this._lastSearchPromise === searchResult) {\n            this._searchResult = results;\n            this.loading = false;\n            this.lastSearchedText = term;\n            (0, _runloop.scheduleOnce)('actions', this, this._resetHighlighted);\n          }\n        }).catch(() => {\n          if (this._lastSearchPromise === searchResult) {\n            this.loading = false;\n            this.lastSearchedText = term;\n          }\n        });\n      } else {\n        this.lastSearchedText = term;\n        this._searchResult = searchResult;\n        (0, _runloop.scheduleOnce)('actions', this, this._resetHighlighted);\n      }\n    }\n    _defaultBuildSelection(option) {\n      return option;\n    }\n    _routeKeydown(select, e) {\n      if (e.keyCode === 38 || e.keyCode === 40) {\n        // Up & Down\n        return this._handleKeyUpDown(select, e);\n      } else if (e.keyCode === 13) {\n        // ENTER\n        return this._handleKeyEnter(select, e);\n      } else if (e.keyCode === 9) {\n        // Tab\n        return this._handleKeyTab(select, e);\n      } else if (e.keyCode === 27) {\n        // ESC\n        return this._handleKeyESC(select, e);\n      }\n    }\n    _handleKeyTab(select, e) {\n      select.actions.close(e);\n    }\n    _handleKeyESC(select, e) {\n      select.actions.close(e);\n    }\n    _handleKeyEnter(select, e) {\n      if (select.isOpen && select.highlighted !== undefined) {\n        select.actions.choose(select.highlighted, e);\n        e.stopImmediatePropagation();\n        return false;\n      }\n    }\n    _handleKeySpace(select, e) {\n      if (e.target !== null && ['TEXTAREA', 'INPUT'].includes(e.target.nodeName)) {\n        e.stopImmediatePropagation();\n      } else if (select.isOpen && select.highlighted !== undefined) {\n        e.stopImmediatePropagation();\n        e.preventDefault(); // Prevents scrolling of the page.\n        select.actions.choose(select.highlighted, e);\n      }\n    }\n    _handleKeyUpDown(select, e) {\n      if (select.isOpen) {\n        e.preventDefault();\n        e.stopPropagation();\n        let step = e.keyCode === 40 ? 1 : -1;\n        let newHighlighted = (0, _groupUtils.advanceSelectableOption)(select.results, select.highlighted, step);\n        select.actions.highlight(newHighlighted);\n        select.actions.scrollTo(newHighlighted);\n      } else {\n        select.actions.open(e);\n      }\n    }\n    _resetHighlighted() {\n      let highlighted;\n      let defHighlighted = this.args.defaultHighlighted || _groupUtils.defaultHighlighted;\n      if (typeof defHighlighted === 'function') {\n        highlighted = defHighlighted({\n          results: this.results,\n          highlighted: this.highlighted,\n          selected: this.selected\n        });\n      } else {\n        highlighted = defHighlighted;\n      }\n      this._highlight(highlighted);\n    }\n    _filter(options, term, skipDisabled = false) {\n      let matcher = this.args.matcher || _groupUtils.defaultMatcher;\n      let optionMatcher = getOptionMatcher(matcher, _groupUtils.defaultMatcher, this.args.searchField);\n      return (0, _groupUtils.filterOptions)(options || [], term, optionMatcher, skipDisabled);\n    }\n    _updateIsActive(value) {\n      this.isActive = value;\n    }\n    findWithOffset(options, term, offset, skipDisabled = false) {\n      let typeAheadOptionMatcher = getOptionMatcher(this.args.typeAheadOptionMatcher || _groupUtils.defaultTypeAheadMatcher, _groupUtils.defaultTypeAheadMatcher, this.args.searchField);\n      return (0, _groupUtils.findOptionWithOffset)(options || [], term, typeAheadOptionMatcher, offset, skipDisabled);\n    }\n\n    // Tasks\n    *triggerTypingTask(e) {\n      // In general, a user doing this interaction means to have a different result.\n      let searchStartOffset = 1;\n      let repeatingChar = this._repeatingChar;\n      let charCode = e.keyCode;\n      if (isNumpadKeyEvent(e)) {\n        charCode -= 48; // Adjust char code offset for Numpad key codes. Check here for numapd key code behavior: https://goo.gl/Qwc9u4\n      }\n\n      let term;\n\n      // Check if user intends to cycle through results. _repeatingChar can only be the first character.\n      let c = String.fromCharCode(charCode);\n      if (c === this._repeatingChar) {\n        term = c;\n      } else {\n        term = this._expirableSearchText + c;\n      }\n      if (term.length > 1) {\n        // If the term is longer than one char, the user is in the middle of a non-cycling interaction\n        // so the offset is just zero (the current selection is a valid match).\n        searchStartOffset = 0;\n        repeatingChar = '';\n      } else {\n        repeatingChar = c;\n      }\n\n      // When the select is open, the \"selection\" is just highlighted.\n      if (this.storedAPI.isOpen && this.storedAPI.highlighted) {\n        searchStartOffset += (0, _groupUtils.indexOfOption)(this.storedAPI.options, this.storedAPI.highlighted);\n      } else if (!this.storedAPI.isOpen && this.selected) {\n        searchStartOffset += (0, _groupUtils.indexOfOption)(this.storedAPI.options, this.selected);\n      } else {\n        searchStartOffset = 0;\n      }\n\n      // The char is always appended. That way, searching for words like \"Aaron\" will work even\n      // if \"Aa\" would cycle through the results.\n      this._expirableSearchText = this._expirableSearchText + c;\n      this._repeatingChar = repeatingChar;\n      let match = this.findWithOffset(this.storedAPI.options, term, searchStartOffset, true);\n      if (match !== undefined) {\n        if (this.storedAPI.isOpen) {\n          this.storedAPI.actions.highlight(match);\n          this.storedAPI.actions.scrollTo(match);\n        } else {\n          this.storedAPI.actions.select(match, e);\n        }\n      }\n      yield (0, _emberConcurrency.timeout)(1000);\n      this._expirableSearchText = '';\n      this._repeatingChar = '';\n    }\n  }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"_resolvedOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_resolvedSelected\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_repeatingChar\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_expirableSearchText\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_searchResult\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isActive\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"loading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"searchText\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"lastSearchedText\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"highlighted\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleOpen\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleOpen\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeydown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeydown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleTriggerKeydown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleTriggerKeydown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleFocus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleBlur\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleBlur\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_search\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_search\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_updateOptions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_updateOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_updateHighlighted\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_updateHighlighted\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_updateSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_updateSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_highlight\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_highlight\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_select\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_select\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_choose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_choose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_scrollTo\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_scrollTo\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_registerAPI\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_registerAPI\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_performSearch\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_performSearch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerTypingTask\", [_emberConcurrency.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerTypingTask\"), _class.prototype)), _class);\n  function getOptionMatcher(matcher, defaultMatcher, searchField) {\n    if (searchField && matcher === defaultMatcher) {\n      return (option, text) => matcher((0, _object.get)(option, searchField), text);\n    } else {\n      return (option, text) => {\n        (true && !(matcher !== defaultMatcher || typeof option === 'string') && (0, _debug.assert)('<PowerSelect> If you want the default filtering to work on options that are not plain strings, you need to provide `@searchField`', matcher !== defaultMatcher || typeof option === 'string'));\n        return matcher(option, text);\n      };\n    }\n  }\n  function isNumpadKeyEvent(e) {\n    return e.keyCode >= 96 && e.keyCode <= 105;\n  }\n  const toPlainArray = collection => {\n    if (isSliceable(collection)) {\n      return collection.slice();\n    } else {\n      return collection;\n    }\n  };\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PowerSelect);\n});","define(\"ember-power-select/components/power-select/before-options\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/runloop\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _runloop, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @searchEnabled}}\n    <div class=\"ember-power-select-search\">\n      <input type=\"search\"\n        autocomplete=\"off\"\n        autocorrect=\"off\"\n        autocapitalize=\"off\"\n        spellcheck={{false}}\n        class=\"ember-power-select-search-input\"\n        value={{@select.searchText}}\n        aria-activedescendant={{@ariaActiveDescendant}}\n        aria-controls={{@listboxId}}\n        aria-haspopup=\"listbox\"\n        placeholder={{@searchPlaceholder}}\n        aria-label={{@ariaLabel}}\n        aria-labelledby={{@ariaLabelledBy}}\n        {{on \"input\" @onInput}}\n        {{on \"focus\" @onFocus}}\n        {{on \"blur\" @onBlur}}\n        {{on \"keydown\" this.handleKeydown}}\n        {{did-insert this.focusInput}}\n        {{will-destroy this.clearSearch}}>\n    </div>\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"oeAo4sYm\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"ember-power-select-search\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"input\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,\\\"autocorrect\\\",\\\"off\\\"],[24,\\\"autocapitalize\\\",\\\"off\\\"],[16,\\\"spellcheck\\\",false],[24,0,\\\"ember-power-select-search-input\\\"],[16,2,[30,2,[\\\"searchText\\\"]]],[16,\\\"aria-activedescendant\\\",[30,3]],[16,\\\"aria-controls\\\",[30,4]],[24,\\\"aria-haspopup\\\",\\\"listbox\\\"],[16,\\\"placeholder\\\",[30,5]],[16,\\\"aria-label\\\",[30,6]],[16,\\\"aria-labelledby\\\",[30,7]],[24,4,\\\"search\\\"],[4,[38,1],[\\\"input\\\",[30,8]],null],[4,[38,1],[\\\"focus\\\",[30,9]],null],[4,[38,1],[\\\"blur\\\",[30,10]],null],[4,[38,1],[\\\"keydown\\\",[30,0,[\\\"handleKeydown\\\"]]],null],[4,[38,2],[[30,0,[\\\"focusInput\\\"]]],null],[4,[38,3],[[30,0,[\\\"clearSearch\\\"]]],null],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@searchEnabled\\\",\\\"@select\\\",\\\"@ariaActiveDescendant\\\",\\\"@listboxId\\\",\\\"@searchPlaceholder\\\",\\\"@ariaLabel\\\",\\\"@ariaLabelledBy\\\",\\\"@onInput\\\",\\\"@onFocus\\\",\\\"@onBlur\\\"],false,[\\\"if\\\",\\\"on\\\",\\\"did-insert\\\",\\\"will-destroy\\\"]]\",\n    \"moduleName\": \"ember-power-select/components/power-select/before-options.hbs\",\n    \"isStrictMode\": false\n  });\n  let BeforeOptions = _exports.default = (_class = class BeforeOptions extends _component2.default {\n    clearSearch() {\n      (0, _runloop.scheduleOnce)('actions', this.args.select.actions, 'search', '');\n    }\n    handleKeydown(e) {\n      if (this.args.onKeydown(e) === false) {\n        return false;\n      }\n      if (e.keyCode === 13) {\n        this.args.select.actions.close(e);\n      }\n    }\n    focusInput(el) {\n      (0, _runloop.later)(() => {\n        if (this.args.autofocus !== false) {\n          el.focus();\n        }\n      }, 0);\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"clearSearch\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSearch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleKeydown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleKeydown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focusInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"focusInput\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BeforeOptions);\n});","define(\"ember-power-select/components/power-select/no-matches-message\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/component/template-only\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @noMatchesMessage}}\n    <ul class=\"ember-power-select-options\" role=\"listbox\">\n      <li class=\"ember-power-select-option ember-power-select-option--no-matches-message\" role=\"option\" aria-selected={{false}}>\n        {{@noMatchesMessage}}\n      </li>\n    </ul>\n  {{/if}}\n  */\n  {\n    \"id\": \"KVyPx9SX\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[10,\\\"ul\\\"],[14,0,\\\"ember-power-select-options\\\"],[14,\\\"role\\\",\\\"listbox\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[14,0,\\\"ember-power-select-option ember-power-select-option--no-matches-message\\\"],[14,\\\"role\\\",\\\"option\\\"],[15,\\\"aria-selected\\\",false],[12],[1,\\\"\\\\n      \\\"],[1,[30,1]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@noMatchesMessage\\\"],false,[\\\"if\\\"]]\",\n    \"moduleName\": \"ember-power-select/components/power-select/no-matches-message.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-power-select/components/power-select/options\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ul role=\"listbox\" {{did-insert this.addHandlers}} {{will-destroy this.removeHandlers}} ...attributes>\n    {{#if @select.loading}}\n      {{#if @loadingMessage}}\n        <li class=\"ember-power-select-option ember-power-select-option--loading-message\" role=\"option\" aria-selected={{false}}>{{@loadingMessage}}</li>\n      {{/if}}\n    {{/if}}\n    {{#let \n      (component (ensure-safe-component @groupComponent)) \n      (component (ensure-safe-component @optionsComponent)) \n    as |Group Options|}}\n      {{#each @options as |opt index|}}\n        {{#if (ember-power-select-is-group opt)}}\n          <Group @group={{opt}} @select={{@select}} @extra={{@extra}}>\n            <Options\n              @options={{opt.options}}\n              @select={{@select}}\n              @groupIndex=\"{{@groupIndex}}{{index}}.\"\n              @optionsComponent={{@optionsComponent}}\n              @groupComponent={{@groupComponent}}\n              @extra={{@extra}}\n              role=\"group\"\n              class=\"ember-power-select-options\" as |option|>\n              {{yield option @select}}\n            </Options>\n          </Group>\n        {{else}}\n          <li class=\"ember-power-select-option\"\n            id=\"{{@select.uniqueId}}-{{@groupIndex}}{{index}}\"\n            aria-selected=\"{{ember-power-select-is-selected opt @select.selected}}\"\n            aria-disabled={{if opt.disabled \"true\"}}\n            aria-current=\"{{eq opt @select.highlighted}}\"\n            data-option-index=\"{{@groupIndex}}{{index}}\"\n            role=\"option\">\n            {{yield opt @select}}\n          </li>\n        {{/if}}\n      {{/each}}\n    {{/let}}\n  </ul>\n  \n  */\n  {\n    \"id\": \"wUP5VLgM\",\n    \"block\": \"[[[11,\\\"ul\\\"],[24,\\\"role\\\",\\\"listbox\\\"],[17,1],[4,[38,0],[[30,0,[\\\"addHandlers\\\"]]],null],[4,[38,1],[[30,0,[\\\"removeHandlers\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"loading\\\"]],[[[41,[30,3],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"ember-power-select-option ember-power-select-option--loading-message\\\"],[14,\\\"role\\\",\\\"option\\\"],[15,\\\"aria-selected\\\",false],[12],[1,[30,3]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[44,[[50,[28,[37,5],[[30,4]],null],0,null,null],[50,[28,[37,5],[[30,5]],null],0,null,null]],[[[42,[28,[37,7],[[28,[37,7],[[30,8]],null]],null],null,[[[41,[28,[37,8],[[30,9]],null],[[[1,\\\"        \\\"],[8,[30,6],null,[[\\\"@group\\\",\\\"@select\\\",\\\"@extra\\\"],[[30,9],[30,2],[30,11]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,7],[[24,\\\"role\\\",\\\"group\\\"],[24,0,\\\"ember-power-select-options\\\"]],[[\\\"@options\\\",\\\"@select\\\",\\\"@groupIndex\\\",\\\"@optionsComponent\\\",\\\"@groupComponent\\\",\\\"@extra\\\"],[[30,9,[\\\"options\\\"]],[30,2],[29,[[30,12],[30,10],\\\".\\\"]],[30,5],[30,4],[30,11]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[18,14,[[30,13],[30,2]]],[1,\\\"\\\\n          \\\"]],[13]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"li\\\"],[14,0,\\\"ember-power-select-option\\\"],[15,1,[29,[[30,2,[\\\"uniqueId\\\"]],\\\"-\\\",[30,12],[30,10]]]],[15,\\\"aria-selected\\\",[29,[[28,[37,10],[[30,9],[30,2,[\\\"selected\\\"]]],null]]]],[15,\\\"aria-disabled\\\",[52,[30,9,[\\\"disabled\\\"]],\\\"true\\\"]],[15,\\\"aria-current\\\",[29,[[28,[37,11],[[30,9],[30,2,[\\\"highlighted\\\"]]],null]]]],[15,\\\"data-option-index\\\",[29,[[30,12],[30,10]]]],[14,\\\"role\\\",\\\"option\\\"],[12],[1,\\\"\\\\n          \\\"],[18,14,[[30,9],[30,2]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[9,10]],null]],[6,7]]],[13],[1,\\\"\\\\n\\\"]],[\\\"&attrs\\\",\\\"@select\\\",\\\"@loadingMessage\\\",\\\"@groupComponent\\\",\\\"@optionsComponent\\\",\\\"Group\\\",\\\"Options\\\",\\\"@options\\\",\\\"opt\\\",\\\"index\\\",\\\"@extra\\\",\\\"@groupIndex\\\",\\\"option\\\",\\\"&default\\\"],false,[\\\"did-insert\\\",\\\"will-destroy\\\",\\\"if\\\",\\\"let\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ember-power-select-is-group\\\",\\\"yield\\\",\\\"ember-power-select-is-selected\\\",\\\"eq\\\"]]\",\n    \"moduleName\": \"ember-power-select/components/power-select/options.hbs\",\n    \"isStrictMode\": false\n  });\n  const isTouchDevice = !!window && 'ontouchstart' in window;\n  if (typeof FastBoot === 'undefined') {\n    (function (ElementProto) {\n      if (typeof ElementProto.matches !== 'function') {\n        ElementProto.matches = ElementProto.msMatchesSelector || ElementProto.mozMatchesSelector || ElementProto.webkitMatchesSelector;\n      }\n      if (typeof ElementProto.closest !== 'function') {\n        ElementProto.closest = function closest(selector) {\n          let element = this;\n          while (element !== null && element.nodeType === 1) {\n            if (element.matches(selector)) {\n              return element;\n            }\n            element = element.parentNode;\n          }\n          return null;\n        };\n      }\n    })(window.Element.prototype);\n  }\n  let Options = _exports.default = (_class = class Options extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"isTouchDevice\", this.args.extra?._isTouchDevice || isTouchDevice);\n      _defineProperty(this, \"touchMoveEvent\", void 0);\n      _defineProperty(this, \"mouseOverHandler\", _ => {});\n      _defineProperty(this, \"mouseUpHandler\", _ => {});\n      _defineProperty(this, \"touchEndHandler\", _ => {});\n      _defineProperty(this, \"touchMoveHandler\", _ => {});\n      _defineProperty(this, \"touchStartHandler\", _ => {});\n    }\n    addHandlers(element) {\n      let role = element.getAttribute('role');\n      if (role === 'group') {\n        return;\n      }\n      let findOptionAndPerform = (action, e) => {\n        if (e.target === null) return;\n        let optionItem = e.target.closest('[data-option-index]');\n        if (!optionItem) {\n          return;\n        }\n        if (optionItem.closest('[aria-disabled=true]')) {\n          return; // Abort if the item or an ancestor is disabled\n        }\n\n        let optionIndex = optionItem.getAttribute('data-option-index');\n        if (optionIndex === null) return;\n        action(this._optionFromIndex(optionIndex), e);\n      };\n      this.mouseUpHandler = e => findOptionAndPerform(this.args.select.actions.choose, e);\n      element.addEventListener('mouseup', this.mouseUpHandler);\n      if (this.args.highlightOnHover) {\n        this.mouseOverHandler = e => findOptionAndPerform(this.args.select.actions.highlight, e);\n        element.addEventListener('mouseover', this.mouseOverHandler);\n      }\n      if (this.isTouchDevice) {\n        this.touchMoveHandler = e => {\n          this.touchMoveEvent = e;\n          if (element) {\n            element.removeEventListener('touchmove', this.touchMoveHandler);\n          }\n        };\n        // Add touch event handlers to detect taps\n        this.touchStartHandler = _ => {\n          element.addEventListener('touchmove', this.touchMoveHandler);\n        };\n        this.touchEndHandler = e => {\n          if (e.target === null) return;\n          let optionItem = e.target.closest('[data-option-index]');\n          if (optionItem === null) return;\n          e.preventDefault();\n          if (this._hasMoved(e)) {\n            this.touchMoveEvent = undefined;\n            return;\n          }\n          if (optionItem.closest('[aria-disabled=true]')) {\n            return; // Abort if the item or an ancestor is disabled\n          }\n\n          let optionIndex = optionItem.getAttribute('data-option-index');\n          if (optionIndex === null) return;\n          this.args.select.actions.choose(this._optionFromIndex(optionIndex), e);\n        };\n        element.addEventListener('touchstart', this.touchStartHandler);\n        element.addEventListener('touchend', this.touchEndHandler);\n      }\n      if (role !== 'group') {\n        this.args.select.actions.scrollTo(this.args.select.highlighted);\n      }\n    }\n    removeHandlers(element) {\n      element.removeEventListener('mouseup', this.mouseUpHandler);\n      element.removeEventListener('mouseover', this.mouseOverHandler);\n      element.removeEventListener('touchstart', this.touchStartHandler);\n      element.removeEventListener('touchmove', this.touchMoveHandler);\n      element.removeEventListener('touchend', this.touchEndHandler);\n    }\n    _optionFromIndex(index) {\n      let parts = index.split('.');\n      let option = this.args.options[parseInt(parts[0], 10)];\n      for (let i = 1; i < parts.length; i++) {\n        option = option.options[parseInt(parts[i], 10)];\n      }\n      return option;\n    }\n    _hasMoved(endEvent) {\n      let moveEvent = this.touchMoveEvent;\n      if (!moveEvent) {\n        return false;\n      }\n      let changedTouch = moveEvent.changedTouches[0];\n      if (!endEvent.changedTouches?.[0] || changedTouch.touchType !== 'stylus') {\n        return true;\n      }\n\n      // Distinguish stylus scroll and tap: if touch \"distance\" < 5px, we consider it a tap\n      let horizontalDistance = Math.abs(changedTouch.pageX - endEvent.changedTouches[0].pageX);\n      let verticalDistance = Math.abs(changedTouch.pageY - endEvent.changedTouches[0].pageY);\n      return horizontalDistance >= 5 || verticalDistance >= 5;\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"addHandlers\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addHandlers\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeHandlers\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeHandlers\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Options);\n});","define(\"ember-power-select/components/power-select/placeholder\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/component/template-only\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isMutlipleWithSearch}}\n    <@inputComponent @isDefaultPlaceholder={{true}} />\n  {{else if @placeholder}}\n    <span\n      class=\"ember-power-select-placeholder\"\n      ...attributes\n    >{{@placeholder}}</span>\n  {{/if}}\n  */\n  {\n    \"id\": \"+52Nvs0m\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[30,2],null,[[\\\"@isDefaultPlaceholder\\\"],[true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,3],[[[1,\\\"  \\\"],[11,1],[24,0,\\\"ember-power-select-placeholder\\\"],[17,4],[12],[1,[30,3]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[\\\"@isMutlipleWithSearch\\\",\\\"@inputComponent\\\",\\\"@placeholder\\\",\\\"&attrs\\\"],false,[\\\"if\\\"]]\",\n    \"moduleName\": \"ember-power-select/components/power-select/placeholder.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-power-select/components/power-select/power-select-group\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/component/template-only\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <li class=\"ember-power-select-group\" aria-disabled={{if @group.disabled \"true\"}} role=\"option\" aria-selected={{false}}>\n    <span class=\"ember-power-select-group-name\">{{@group.groupName}}</span>\n    {{yield}}\n  </li>\n  */\n  {\n    \"id\": \"KAeZfjYQ\",\n    \"block\": \"[[[10,\\\"li\\\"],[14,0,\\\"ember-power-select-group\\\"],[15,\\\"aria-disabled\\\",[52,[30,1,[\\\"disabled\\\"]],\\\"true\\\"]],[14,\\\"role\\\",\\\"option\\\"],[15,\\\"aria-selected\\\",false],[12],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"ember-power-select-group-name\\\"],[12],[1,[30,1,[\\\"groupName\\\"]]],[13],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@group\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-power-select/components/power-select/power-select-group.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-power-select/components/power-select/search-message\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/component/template-only\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ul class=\"ember-power-select-options\" role=\"listbox\" ...attributes>\n    <li class=\"ember-power-select-option ember-power-select-option--search-message\" role=\"option\" aria-selected={{false}}>\n      {{@searchMessage}}\n    </li>\n  </ul>\n  */\n  {\n    \"id\": \"BySs5LRc\",\n    \"block\": \"[[[11,\\\"ul\\\"],[24,0,\\\"ember-power-select-options\\\"],[24,\\\"role\\\",\\\"listbox\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[10,\\\"li\\\"],[14,0,\\\"ember-power-select-option ember-power-select-option--search-message\\\"],[14,\\\"role\\\",\\\"option\\\"],[15,\\\"aria-selected\\\",false],[12],[1,\\\"\\\\n    \\\"],[1,[30,2]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@searchMessage\\\"],false,[]]\",\n    \"moduleName\": \"ember-power-select/components/power-select/search-message.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"ember-power-select/components/power-select/trigger\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @select.selected}}\n    {{#if @selectedItemComponent}}\n      {{component (ensure-safe-component @selectedItemComponent) extra=(readonly @extra) option=(readonly @select.selected) select=(readonly @select)}}\n    {{else}}\n      <span class=\"ember-power-select-selected-item\">{{yield @select.selected @select}}</span>\n    {{/if}}\n    {{#if (and @allowClear (not @select.disabled))}}\n      <span class=\"ember-power-select-clear-btn\" role=\"button\" {{on \"mousedown\" this.clear}} {{on \"touchstart\" this.clear}}>&times;</span>\n    {{/if}}\n  {{else}}\n    {{component (ensure-safe-component @placeholderComponent) placeholder=@placeholder}}\n  {{/if}}\n  <span class=\"ember-power-select-status-icon\"></span>\n  \n  */\n  {\n    \"id\": \"RdjJMxAX\",\n    \"block\": \"[[[41,[30,1,[\\\"selected\\\"]],[[[41,[30,2],[[[1,\\\"    \\\"],[46,[28,[37,2],[[30,2]],null],null,[[\\\"extra\\\",\\\"option\\\",\\\"select\\\"],[[28,[37,3],[[30,3]],null],[28,[37,3],[[30,1,[\\\"selected\\\"]]],null],[28,[37,3],[[30,1]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"ember-power-select-selected-item\\\"],[12],[18,7,[[30,1,[\\\"selected\\\"]],[30,1]]],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,5],[[30,4],[28,[37,6],[[30,1,[\\\"disabled\\\"]]],null]],null],[[[1,\\\"    \\\"],[11,1],[24,0,\\\"ember-power-select-clear-btn\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,7],[\\\"mousedown\\\",[30,0,[\\\"clear\\\"]]],null],[4,[38,7],[\\\"touchstart\\\",[30,0,[\\\"clear\\\"]]],null],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"  \\\"],[46,[28,[37,2],[[30,5]],null],null,[[\\\"placeholder\\\"],[[30,6]]],null],[1,\\\"\\\\n\\\"]],[]]],[10,1],[14,0,\\\"ember-power-select-status-icon\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[\\\"@select\\\",\\\"@selectedItemComponent\\\",\\\"@extra\\\",\\\"@allowClear\\\",\\\"@placeholderComponent\\\",\\\"@placeholder\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"component\\\",\\\"ensure-safe-component\\\",\\\"readonly\\\",\\\"yield\\\",\\\"and\\\",\\\"not\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"ember-power-select/components/power-select/trigger.hbs\",\n    \"isStrictMode\": false\n  });\n  let Trigger = _exports.default = (_class = class Trigger extends _component2.default {\n    clear(e) {\n      e.stopPropagation();\n      this.args.select.actions.select(null);\n      if (e.type === 'touchstart') {\n        return false;\n      }\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"clear\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clear\"), _class.prototype)), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Trigger);\n});","define(\"ember-power-select/helpers/ember-power-select-is-group\", [\"exports\", \"@ember/component/helper\", \"ember-power-select/utils/group-utils\"], function (_exports, _helper, _groupUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.emberPowerSelectIsGroup = emberPowerSelectIsGroup;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember-power-select/utils/group-utils\"eaimeta@70e063a35619d71f\n  function emberPowerSelectIsGroup([maybeGroup]) {\n    return (0, _groupUtils.isGroup)(maybeGroup);\n  }\n  var _default = _exports.default = (0, _helper.helper)(emberPowerSelectIsGroup);\n});","define(\"ember-power-select/helpers/ember-power-select-is-selected\", [\"exports\", \"@ember/component/helper\", \"@ember/array\", \"@ember/utils\"], function (_exports, _helper, _array, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.emberPowerSelectIsSelected = emberPowerSelectIsSelected;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/array\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  // TODO: Make it private or scoped to the component\n  function emberPowerSelectIsSelected([option, selected]) {\n    if (selected === undefined || selected === null) {\n      return false;\n    }\n    if ((0, _array.isArray)(selected)) {\n      for (let i = 0; i < selected.length; i++) {\n        if ((0, _utils.isEqual)(selected[i], option)) {\n          return true;\n        }\n      }\n      return false;\n    } else {\n      return (0, _utils.isEqual)(option, selected);\n    }\n  }\n  var _default = _exports.default = (0, _helper.helper)(emberPowerSelectIsSelected);\n});","define(\"ember-power-select/utils/computed-fallback-if-undefined\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = computedFallbackIfUndefined;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function computedFallbackIfUndefined(fallback) {\n    return (0, _object.computed)({\n      get() {\n        return fallback;\n      },\n      set(_, v) {\n        return v === undefined ? fallback : v;\n      }\n    });\n  }\n});","define(\"ember-power-select/utils/group-utils\", [\"exports\", \"@ember/array\", \"@ember/object\"], function (_exports, _array, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.advanceSelectableOption = advanceSelectableOption;\n  _exports.countOptions = countOptions;\n  _exports.defaultHighlighted = defaultHighlighted;\n  _exports.defaultMatcher = defaultMatcher;\n  _exports.defaultTypeAheadMatcher = defaultTypeAheadMatcher;\n  _exports.filterOptions = filterOptions;\n  _exports.findOptionWithOffset = findOptionWithOffset;\n  _exports.indexOfOption = indexOfOption;\n  _exports.isGroup = isGroup;\n  _exports.optionAtIndex = optionAtIndex;\n  _exports.pathForOption = pathForOption;\n  _exports.stripDiacritics = stripDiacritics;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function isGroup(entry) {\n    return !!entry && !!(0, _object.get)(entry, 'groupName') && !!(0, _object.get)(entry, 'options');\n  }\n  function countOptions(collection) {\n    let counter = 0;\n    (function walk(collection) {\n      if (!collection) {\n        return;\n      }\n      for (let i = 0; i < (0, _object.get)(collection, 'length'); i++) {\n        let entry = collection.objectAt ? collection.objectAt(i) : collection[i];\n        if (isGroup(entry)) {\n          walk((0, _object.get)(entry, 'options'));\n        } else {\n          counter++;\n        }\n      }\n    })(collection);\n    return counter;\n  }\n  function indexOfOption(collection, option) {\n    let index = 0;\n    return function walk(collection) {\n      if (!collection) {\n        return -1;\n      }\n      for (let i = 0; i < (0, _object.get)(collection, 'length'); i++) {\n        let entry = collection.objectAt ? collection.objectAt(i) : collection[i];\n        if (isGroup(entry)) {\n          let result = walk((0, _object.get)(entry, 'options'));\n          if (result > -1) {\n            return result;\n          }\n        } else if (entry === option) {\n          return index;\n        } else {\n          index++;\n        }\n      }\n      return -1;\n    }(collection);\n  }\n  function pathForOption(collection, option) {\n    return function walk(collection) {\n      if (!collection) {\n        return '';\n      }\n      for (let i = 0; i < (0, _object.get)(collection, 'length'); i++) {\n        let entry = collection.objectAt ? collection.objectAt(i) : collection[i];\n        if (isGroup(entry)) {\n          let result = walk((0, _object.get)(entry, 'options'));\n          if (result.length > 0) {\n            return i + '.' + result;\n          }\n        } else if (entry === option) {\n          return i + '';\n        }\n      }\n      return '';\n    }(collection);\n  }\n  function optionAtIndex(originalCollection, index) {\n    let counter = 0;\n    return function walk(collection, ancestorIsDisabled) {\n      if (!collection || index < 0) {\n        return {\n          disabled: false,\n          option: undefined\n        };\n      }\n      let localCounter = 0;\n      let length = (0, _object.get)(collection, 'length');\n      while (counter <= index && localCounter < length) {\n        let entry = collection.objectAt ? collection.objectAt(localCounter) : collection[localCounter];\n        if (isGroup(entry)) {\n          let found = walk((0, _object.get)(entry, 'options'), ancestorIsDisabled || !!(0, _object.get)(entry, 'disabled'));\n          if (found) {\n            return found;\n          }\n        } else if (counter === index) {\n          return {\n            disabled: ancestorIsDisabled || !!(0, _object.get)(entry, 'disabled'),\n            option: entry\n          };\n        } else {\n          counter++;\n        }\n        localCounter++;\n      }\n    }(originalCollection, false) || {\n      disabled: false,\n      option: undefined\n    };\n  }\n  function copyGroup(group, suboptions) {\n    let groupCopy = {\n      groupName: group.groupName,\n      options: suboptions\n    };\n    if (group.hasOwnProperty('disabled')) {\n      groupCopy.disabled = group.disabled;\n    }\n    return groupCopy;\n  }\n  function findOptionWithOffset(options, text, matcher, offset, skipDisabled = false) {\n    let counter = 0;\n    let foundBeforeOffset;\n    let foundAfterOffset = false;\n    let canStop = () => !!foundAfterOffset;\n    (function walk(options, ancestorIsDisabled) {\n      let length = (0, _object.get)(options, 'length');\n      for (let i = 0; i < length; i++) {\n        let entry = options.objectAt ? options.objectAt(i) : options[i];\n        let entryIsDisabled = !!(0, _object.get)(entry, 'disabled');\n        if (!skipDisabled || !entryIsDisabled) {\n          if (isGroup(entry)) {\n            walk((0, _object.get)(entry, 'options'), ancestorIsDisabled || entryIsDisabled);\n            if (canStop()) {\n              return;\n            }\n          } else if (matcher(entry, text) >= 0) {\n            if (counter < offset) {\n              if (!foundBeforeOffset) {\n                foundBeforeOffset = entry;\n              }\n            } else {\n              foundAfterOffset = entry;\n            }\n            counter++;\n          } else {\n            counter++;\n          }\n          if (canStop()) {\n            return;\n          }\n        }\n      }\n    })(options, false);\n    return foundAfterOffset ? foundAfterOffset : foundBeforeOffset;\n  }\n  function filterOptions(options, text, matcher, skipDisabled = false) {\n    let opts = (0, _array.A)();\n    let length = (0, _object.get)(options, 'length');\n    for (let i = 0; i < length; i++) {\n      let entry = options.objectAt ? options.objectAt(i) : options[i];\n      if (!skipDisabled || !(0, _object.get)(entry, 'disabled')) {\n        if (isGroup(entry)) {\n          let suboptions = filterOptions((0, _object.get)(entry, 'options'), text, matcher, skipDisabled);\n          if ((0, _object.get)(suboptions, 'length') > 0) {\n            opts.push(copyGroup(entry, suboptions));\n          }\n        } else if (matcher(entry, text) >= 0) {\n          opts.push(entry);\n        }\n      }\n    }\n    return opts;\n  }\n  function defaultHighlighted({\n    results,\n    highlighted,\n    selected\n  }) {\n    let option = highlighted || selected;\n    if (option === undefined || indexOfOption(results, option) === -1) {\n      return advanceSelectableOption(results, option, 1);\n    }\n    return option;\n  }\n  function advanceSelectableOption(options, currentOption, step) {\n    let resultsLength = countOptions(options);\n    let startIndex = Math.min(Math.max(indexOfOption(options, currentOption) + step, 0), resultsLength - 1);\n    let {\n      disabled,\n      option\n    } = optionAtIndex(options, startIndex);\n    while (option && disabled) {\n      let next = optionAtIndex(options, startIndex += step);\n      disabled = next.disabled;\n      option = next.option;\n    }\n    return option;\n  }\n  const DIACRITICS = {\n    'Ⓐ': 'A',\n    'Ａ': 'A',\n    'À': 'A',\n    'Á': 'A',\n    'Â': 'A',\n    'Ầ': 'A',\n    'Ấ': 'A',\n    'Ẫ': 'A',\n    'Ẩ': 'A',\n    'Ã': 'A',\n    'Ā': 'A',\n    'Ă': 'A',\n    'Ằ': 'A',\n    'Ắ': 'A',\n    'Ẵ': 'A',\n    'Ẳ': 'A',\n    'Ȧ': 'A',\n    'Ǡ': 'A',\n    'Ä': 'A',\n    'Ǟ': 'A',\n    'Ả': 'A',\n    'Å': 'A',\n    'Ǻ': 'A',\n    'Ǎ': 'A',\n    'Ȁ': 'A',\n    'Ȃ': 'A',\n    'Ạ': 'A',\n    'Ậ': 'A',\n    'Ặ': 'A',\n    'Ḁ': 'A',\n    'Ą': 'A',\n    'Ⱥ': 'A',\n    'Ɐ': 'A',\n    'Ꜳ': 'AA',\n    'Æ': 'AE',\n    'Ǽ': 'AE',\n    'Ǣ': 'AE',\n    'Ꜵ': 'AO',\n    'Ꜷ': 'AU',\n    'Ꜹ': 'AV',\n    'Ꜻ': 'AV',\n    'Ꜽ': 'AY',\n    'Ⓑ': 'B',\n    'Ｂ': 'B',\n    'Ḃ': 'B',\n    'Ḅ': 'B',\n    'Ḇ': 'B',\n    'Ƀ': 'B',\n    'Ƃ': 'B',\n    'Ɓ': 'B',\n    'Ⓒ': 'C',\n    'Ｃ': 'C',\n    'Ć': 'C',\n    'Ĉ': 'C',\n    'Ċ': 'C',\n    'Č': 'C',\n    'Ç': 'C',\n    'Ḉ': 'C',\n    'Ƈ': 'C',\n    'Ȼ': 'C',\n    'Ꜿ': 'C',\n    'Ⓓ': 'D',\n    'Ｄ': 'D',\n    'Ḋ': 'D',\n    'Ď': 'D',\n    'Ḍ': 'D',\n    'Ḑ': 'D',\n    'Ḓ': 'D',\n    'Ḏ': 'D',\n    'Đ': 'D',\n    'Ƌ': 'D',\n    'Ɗ': 'D',\n    'Ɖ': 'D',\n    'Ꝺ': 'D',\n    'Ǳ': 'DZ',\n    'Ǆ': 'DZ',\n    'ǲ': 'Dz',\n    'ǅ': 'Dz',\n    'Ⓔ': 'E',\n    'Ｅ': 'E',\n    'È': 'E',\n    'É': 'E',\n    'Ê': 'E',\n    'Ề': 'E',\n    'Ế': 'E',\n    'Ễ': 'E',\n    'Ể': 'E',\n    'Ẽ': 'E',\n    'Ē': 'E',\n    'Ḕ': 'E',\n    'Ḗ': 'E',\n    'Ĕ': 'E',\n    'Ė': 'E',\n    'Ë': 'E',\n    'Ẻ': 'E',\n    'Ě': 'E',\n    'Ȅ': 'E',\n    'Ȇ': 'E',\n    'Ẹ': 'E',\n    'Ệ': 'E',\n    'Ȩ': 'E',\n    'Ḝ': 'E',\n    'Ę': 'E',\n    'Ḙ': 'E',\n    'Ḛ': 'E',\n    'Ɛ': 'E',\n    'Ǝ': 'E',\n    'Ⓕ': 'F',\n    'Ｆ': 'F',\n    'Ḟ': 'F',\n    'Ƒ': 'F',\n    'Ꝼ': 'F',\n    'Ⓖ': 'G',\n    'Ｇ': 'G',\n    'Ǵ': 'G',\n    'Ĝ': 'G',\n    'Ḡ': 'G',\n    'Ğ': 'G',\n    'Ġ': 'G',\n    'Ǧ': 'G',\n    'Ģ': 'G',\n    'Ǥ': 'G',\n    'Ɠ': 'G',\n    'Ꞡ': 'G',\n    'Ᵹ': 'G',\n    'Ꝿ': 'G',\n    'Ⓗ': 'H',\n    'Ｈ': 'H',\n    'Ĥ': 'H',\n    'Ḣ': 'H',\n    'Ḧ': 'H',\n    'Ȟ': 'H',\n    'Ḥ': 'H',\n    'Ḩ': 'H',\n    'Ḫ': 'H',\n    'Ħ': 'H',\n    'Ⱨ': 'H',\n    'Ⱶ': 'H',\n    'Ɥ': 'H',\n    'Ⓘ': 'I',\n    'Ｉ': 'I',\n    'Ì': 'I',\n    'Í': 'I',\n    'Î': 'I',\n    'Ĩ': 'I',\n    'Ī': 'I',\n    'Ĭ': 'I',\n    'İ': 'I',\n    'Ï': 'I',\n    'Ḯ': 'I',\n    'Ỉ': 'I',\n    'Ǐ': 'I',\n    'Ȉ': 'I',\n    'Ȋ': 'I',\n    'Ị': 'I',\n    'Į': 'I',\n    'Ḭ': 'I',\n    'Ɨ': 'I',\n    'Ⓙ': 'J',\n    'Ｊ': 'J',\n    'Ĵ': 'J',\n    'Ɉ': 'J',\n    'Ⓚ': 'K',\n    'Ｋ': 'K',\n    'Ḱ': 'K',\n    'Ǩ': 'K',\n    'Ḳ': 'K',\n    'Ķ': 'K',\n    'Ḵ': 'K',\n    'Ƙ': 'K',\n    'Ⱪ': 'K',\n    'Ꝁ': 'K',\n    'Ꝃ': 'K',\n    'Ꝅ': 'K',\n    'Ꞣ': 'K',\n    'Ⓛ': 'L',\n    'Ｌ': 'L',\n    'Ŀ': 'L',\n    'Ĺ': 'L',\n    'Ľ': 'L',\n    'Ḷ': 'L',\n    'Ḹ': 'L',\n    'Ļ': 'L',\n    'Ḽ': 'L',\n    'Ḻ': 'L',\n    'Ł': 'L',\n    'Ƚ': 'L',\n    'Ɫ': 'L',\n    'Ⱡ': 'L',\n    'Ꝉ': 'L',\n    'Ꝇ': 'L',\n    'Ꞁ': 'L',\n    'Ǉ': 'LJ',\n    'ǈ': 'Lj',\n    'Ⓜ': 'M',\n    'Ｍ': 'M',\n    'Ḿ': 'M',\n    'Ṁ': 'M',\n    'Ṃ': 'M',\n    'Ɱ': 'M',\n    'Ɯ': 'M',\n    'Ⓝ': 'N',\n    'Ｎ': 'N',\n    'Ǹ': 'N',\n    'Ń': 'N',\n    'Ñ': 'N',\n    'Ṅ': 'N',\n    'Ň': 'N',\n    'Ṇ': 'N',\n    'Ņ': 'N',\n    'Ṋ': 'N',\n    'Ṉ': 'N',\n    'Ƞ': 'N',\n    'Ɲ': 'N',\n    'Ꞑ': 'N',\n    'Ꞥ': 'N',\n    'Ǌ': 'NJ',\n    'ǋ': 'Nj',\n    'Ⓞ': 'O',\n    'Ｏ': 'O',\n    'Ò': 'O',\n    'Ó': 'O',\n    'Ô': 'O',\n    'Ồ': 'O',\n    'Ố': 'O',\n    'Ỗ': 'O',\n    'Ổ': 'O',\n    'Õ': 'O',\n    'Ṍ': 'O',\n    'Ȭ': 'O',\n    'Ṏ': 'O',\n    'Ō': 'O',\n    'Ṑ': 'O',\n    'Ṓ': 'O',\n    'Ŏ': 'O',\n    'Ȯ': 'O',\n    'Ȱ': 'O',\n    'Ö': 'O',\n    'Ȫ': 'O',\n    'Ỏ': 'O',\n    'Ő': 'O',\n    'Ǒ': 'O',\n    'Ȍ': 'O',\n    'Ȏ': 'O',\n    'Ơ': 'O',\n    'Ờ': 'O',\n    'Ớ': 'O',\n    'Ỡ': 'O',\n    'Ở': 'O',\n    'Ợ': 'O',\n    'Ọ': 'O',\n    'Ộ': 'O',\n    'Ǫ': 'O',\n    'Ǭ': 'O',\n    'Ø': 'O',\n    'Ǿ': 'O',\n    'Ɔ': 'O',\n    'Ɵ': 'O',\n    'Ꝋ': 'O',\n    'Ꝍ': 'O',\n    'Ƣ': 'OI',\n    'Ꝏ': 'OO',\n    'Ȣ': 'OU',\n    'Ⓟ': 'P',\n    'Ｐ': 'P',\n    'Ṕ': 'P',\n    'Ṗ': 'P',\n    'Ƥ': 'P',\n    'Ᵽ': 'P',\n    'Ꝑ': 'P',\n    'Ꝓ': 'P',\n    'Ꝕ': 'P',\n    'Ⓠ': 'Q',\n    'Ｑ': 'Q',\n    'Ꝗ': 'Q',\n    'Ꝙ': 'Q',\n    'Ɋ': 'Q',\n    'Ⓡ': 'R',\n    'Ｒ': 'R',\n    'Ŕ': 'R',\n    'Ṙ': 'R',\n    'Ř': 'R',\n    'Ȑ': 'R',\n    'Ȓ': 'R',\n    'Ṛ': 'R',\n    'Ṝ': 'R',\n    'Ŗ': 'R',\n    'Ṟ': 'R',\n    'Ɍ': 'R',\n    'Ɽ': 'R',\n    'Ꝛ': 'R',\n    'Ꞧ': 'R',\n    'Ꞃ': 'R',\n    'Ⓢ': 'S',\n    'Ｓ': 'S',\n    'ẞ': 'S',\n    'Ś': 'S',\n    'Ṥ': 'S',\n    'Ŝ': 'S',\n    'Ṡ': 'S',\n    'Š': 'S',\n    'Ṧ': 'S',\n    'Ṣ': 'S',\n    'Ṩ': 'S',\n    'Ș': 'S',\n    'Ş': 'S',\n    'Ȿ': 'S',\n    'Ꞩ': 'S',\n    'Ꞅ': 'S',\n    'Ⓣ': 'T',\n    'Ｔ': 'T',\n    'Ṫ': 'T',\n    'Ť': 'T',\n    'Ṭ': 'T',\n    'Ț': 'T',\n    'Ţ': 'T',\n    'Ṱ': 'T',\n    'Ṯ': 'T',\n    'Ŧ': 'T',\n    'Ƭ': 'T',\n    'Ʈ': 'T',\n    'Ⱦ': 'T',\n    'Ꞇ': 'T',\n    'Ꜩ': 'TZ',\n    'Ⓤ': 'U',\n    'Ｕ': 'U',\n    'Ù': 'U',\n    'Ú': 'U',\n    'Û': 'U',\n    'Ũ': 'U',\n    'Ṹ': 'U',\n    'Ū': 'U',\n    'Ṻ': 'U',\n    'Ŭ': 'U',\n    'Ü': 'U',\n    'Ǜ': 'U',\n    'Ǘ': 'U',\n    'Ǖ': 'U',\n    'Ǚ': 'U',\n    'Ủ': 'U',\n    'Ů': 'U',\n    'Ű': 'U',\n    'Ǔ': 'U',\n    'Ȕ': 'U',\n    'Ȗ': 'U',\n    'Ư': 'U',\n    'Ừ': 'U',\n    'Ứ': 'U',\n    'Ữ': 'U',\n    'Ử': 'U',\n    'Ự': 'U',\n    'Ụ': 'U',\n    'Ṳ': 'U',\n    'Ų': 'U',\n    'Ṷ': 'U',\n    'Ṵ': 'U',\n    'Ʉ': 'U',\n    'Ⓥ': 'V',\n    'Ｖ': 'V',\n    'Ṽ': 'V',\n    'Ṿ': 'V',\n    'Ʋ': 'V',\n    'Ꝟ': 'V',\n    'Ʌ': 'V',\n    'Ꝡ': 'VY',\n    'Ⓦ': 'W',\n    'Ｗ': 'W',\n    'Ẁ': 'W',\n    'Ẃ': 'W',\n    'Ŵ': 'W',\n    'Ẇ': 'W',\n    'Ẅ': 'W',\n    'Ẉ': 'W',\n    'Ⱳ': 'W',\n    'Ⓧ': 'X',\n    'Ｘ': 'X',\n    'Ẋ': 'X',\n    'Ẍ': 'X',\n    'Ⓨ': 'Y',\n    'Ｙ': 'Y',\n    'Ỳ': 'Y',\n    'Ý': 'Y',\n    'Ŷ': 'Y',\n    'Ỹ': 'Y',\n    'Ȳ': 'Y',\n    'Ẏ': 'Y',\n    'Ÿ': 'Y',\n    'Ỷ': 'Y',\n    'Ỵ': 'Y',\n    'Ƴ': 'Y',\n    'Ɏ': 'Y',\n    'Ỿ': 'Y',\n    'Ⓩ': 'Z',\n    'Ｚ': 'Z',\n    'Ź': 'Z',\n    'Ẑ': 'Z',\n    'Ż': 'Z',\n    'Ž': 'Z',\n    'Ẓ': 'Z',\n    'Ẕ': 'Z',\n    'Ƶ': 'Z',\n    'Ȥ': 'Z',\n    'Ɀ': 'Z',\n    'Ⱬ': 'Z',\n    'Ꝣ': 'Z',\n    'ⓐ': 'a',\n    'ａ': 'a',\n    'ẚ': 'a',\n    'à': 'a',\n    'á': 'a',\n    'â': 'a',\n    'ầ': 'a',\n    'ấ': 'a',\n    'ẫ': 'a',\n    'ẩ': 'a',\n    'ã': 'a',\n    'ā': 'a',\n    'ă': 'a',\n    'ằ': 'a',\n    'ắ': 'a',\n    'ẵ': 'a',\n    'ẳ': 'a',\n    'ȧ': 'a',\n    'ǡ': 'a',\n    'ä': 'a',\n    'ǟ': 'a',\n    'ả': 'a',\n    'å': 'a',\n    'ǻ': 'a',\n    'ǎ': 'a',\n    'ȁ': 'a',\n    'ȃ': 'a',\n    'ạ': 'a',\n    'ậ': 'a',\n    'ặ': 'a',\n    'ḁ': 'a',\n    'ą': 'a',\n    'ⱥ': 'a',\n    'ɐ': 'a',\n    'ꜳ': 'aa',\n    'æ': 'ae',\n    'ǽ': 'ae',\n    'ǣ': 'ae',\n    'ꜵ': 'ao',\n    'ꜷ': 'au',\n    'ꜹ': 'av',\n    'ꜻ': 'av',\n    'ꜽ': 'ay',\n    'ⓑ': 'b',\n    'ｂ': 'b',\n    'ḃ': 'b',\n    'ḅ': 'b',\n    'ḇ': 'b',\n    'ƀ': 'b',\n    'ƃ': 'b',\n    'ɓ': 'b',\n    'ⓒ': 'c',\n    'ｃ': 'c',\n    'ć': 'c',\n    'ĉ': 'c',\n    'ċ': 'c',\n    'č': 'c',\n    'ç': 'c',\n    'ḉ': 'c',\n    'ƈ': 'c',\n    'ȼ': 'c',\n    'ꜿ': 'c',\n    'ↄ': 'c',\n    'ⓓ': 'd',\n    'ｄ': 'd',\n    'ḋ': 'd',\n    'ď': 'd',\n    'ḍ': 'd',\n    'ḑ': 'd',\n    'ḓ': 'd',\n    'ḏ': 'd',\n    'đ': 'd',\n    'ƌ': 'd',\n    'ɖ': 'd',\n    'ɗ': 'd',\n    'ꝺ': 'd',\n    'ǳ': 'dz',\n    'ǆ': 'dz',\n    'ⓔ': 'e',\n    'ｅ': 'e',\n    'è': 'e',\n    'é': 'e',\n    'ê': 'e',\n    'ề': 'e',\n    'ế': 'e',\n    'ễ': 'e',\n    'ể': 'e',\n    'ẽ': 'e',\n    'ē': 'e',\n    'ḕ': 'e',\n    'ḗ': 'e',\n    'ĕ': 'e',\n    'ė': 'e',\n    'ë': 'e',\n    'ẻ': 'e',\n    'ě': 'e',\n    'ȅ': 'e',\n    'ȇ': 'e',\n    'ẹ': 'e',\n    'ệ': 'e',\n    'ȩ': 'e',\n    'ḝ': 'e',\n    'ę': 'e',\n    'ḙ': 'e',\n    'ḛ': 'e',\n    'ɇ': 'e',\n    'ɛ': 'e',\n    'ǝ': 'e',\n    'ⓕ': 'f',\n    'ｆ': 'f',\n    'ḟ': 'f',\n    'ƒ': 'f',\n    'ꝼ': 'f',\n    'ⓖ': 'g',\n    'ｇ': 'g',\n    'ǵ': 'g',\n    'ĝ': 'g',\n    'ḡ': 'g',\n    'ğ': 'g',\n    'ġ': 'g',\n    'ǧ': 'g',\n    'ģ': 'g',\n    'ǥ': 'g',\n    'ɠ': 'g',\n    'ꞡ': 'g',\n    'ᵹ': 'g',\n    'ꝿ': 'g',\n    'ⓗ': 'h',\n    'ｈ': 'h',\n    'ĥ': 'h',\n    'ḣ': 'h',\n    'ḧ': 'h',\n    'ȟ': 'h',\n    'ḥ': 'h',\n    'ḩ': 'h',\n    'ḫ': 'h',\n    'ẖ': 'h',\n    'ħ': 'h',\n    'ⱨ': 'h',\n    'ⱶ': 'h',\n    'ɥ': 'h',\n    'ƕ': 'hv',\n    'ⓘ': 'i',\n    'ｉ': 'i',\n    'ì': 'i',\n    'í': 'i',\n    'î': 'i',\n    'ĩ': 'i',\n    'ī': 'i',\n    'ĭ': 'i',\n    'ï': 'i',\n    'ḯ': 'i',\n    'ỉ': 'i',\n    'ǐ': 'i',\n    'ȉ': 'i',\n    'ȋ': 'i',\n    'ị': 'i',\n    'į': 'i',\n    'ḭ': 'i',\n    'ɨ': 'i',\n    'ı': 'i',\n    'ⓙ': 'j',\n    'ｊ': 'j',\n    'ĵ': 'j',\n    'ǰ': 'j',\n    'ɉ': 'j',\n    'ⓚ': 'k',\n    'ｋ': 'k',\n    'ḱ': 'k',\n    'ǩ': 'k',\n    'ḳ': 'k',\n    'ķ': 'k',\n    'ḵ': 'k',\n    'ƙ': 'k',\n    'ⱪ': 'k',\n    'ꝁ': 'k',\n    'ꝃ': 'k',\n    'ꝅ': 'k',\n    'ꞣ': 'k',\n    'ⓛ': 'l',\n    'ｌ': 'l',\n    'ŀ': 'l',\n    'ĺ': 'l',\n    'ľ': 'l',\n    'ḷ': 'l',\n    'ḹ': 'l',\n    'ļ': 'l',\n    'ḽ': 'l',\n    'ḻ': 'l',\n    'ſ': 'l',\n    'ł': 'l',\n    'ƚ': 'l',\n    'ɫ': 'l',\n    'ⱡ': 'l',\n    'ꝉ': 'l',\n    'ꞁ': 'l',\n    'ꝇ': 'l',\n    'ǉ': 'lj',\n    'ⓜ': 'm',\n    'ｍ': 'm',\n    'ḿ': 'm',\n    'ṁ': 'm',\n    'ṃ': 'm',\n    'ɱ': 'm',\n    'ɯ': 'm',\n    'ⓝ': 'n',\n    'ｎ': 'n',\n    'ǹ': 'n',\n    'ń': 'n',\n    'ñ': 'n',\n    'ṅ': 'n',\n    'ň': 'n',\n    'ṇ': 'n',\n    'ņ': 'n',\n    'ṋ': 'n',\n    'ṉ': 'n',\n    'ƞ': 'n',\n    'ɲ': 'n',\n    'ŉ': 'n',\n    'ꞑ': 'n',\n    'ꞥ': 'n',\n    'ǌ': 'nj',\n    'ⓞ': 'o',\n    'ｏ': 'o',\n    'ò': 'o',\n    'ó': 'o',\n    'ô': 'o',\n    'ồ': 'o',\n    'ố': 'o',\n    'ỗ': 'o',\n    'ổ': 'o',\n    'õ': 'o',\n    'ṍ': 'o',\n    'ȭ': 'o',\n    'ṏ': 'o',\n    'ō': 'o',\n    'ṑ': 'o',\n    'ṓ': 'o',\n    'ŏ': 'o',\n    'ȯ': 'o',\n    'ȱ': 'o',\n    'ö': 'o',\n    'ȫ': 'o',\n    'ỏ': 'o',\n    'ő': 'o',\n    'ǒ': 'o',\n    'ȍ': 'o',\n    'ȏ': 'o',\n    'ơ': 'o',\n    'ờ': 'o',\n    'ớ': 'o',\n    'ỡ': 'o',\n    'ở': 'o',\n    'ợ': 'o',\n    'ọ': 'o',\n    'ộ': 'o',\n    'ǫ': 'o',\n    'ǭ': 'o',\n    'ø': 'o',\n    'ǿ': 'o',\n    'ɔ': 'o',\n    'ꝋ': 'o',\n    'ꝍ': 'o',\n    'ɵ': 'o',\n    'ƣ': 'oi',\n    'ȣ': 'ou',\n    'ꝏ': 'oo',\n    'ⓟ': 'p',\n    'ｐ': 'p',\n    'ṕ': 'p',\n    'ṗ': 'p',\n    'ƥ': 'p',\n    'ᵽ': 'p',\n    'ꝑ': 'p',\n    'ꝓ': 'p',\n    'ꝕ': 'p',\n    'ⓠ': 'q',\n    'ｑ': 'q',\n    'ɋ': 'q',\n    'ꝗ': 'q',\n    'ꝙ': 'q',\n    'ⓡ': 'r',\n    'ｒ': 'r',\n    'ŕ': 'r',\n    'ṙ': 'r',\n    'ř': 'r',\n    'ȑ': 'r',\n    'ȓ': 'r',\n    'ṛ': 'r',\n    'ṝ': 'r',\n    'ŗ': 'r',\n    'ṟ': 'r',\n    'ɍ': 'r',\n    'ɽ': 'r',\n    'ꝛ': 'r',\n    'ꞧ': 'r',\n    'ꞃ': 'r',\n    'ⓢ': 's',\n    'ｓ': 's',\n    'ß': 's',\n    'ś': 's',\n    'ṥ': 's',\n    'ŝ': 's',\n    'ṡ': 's',\n    'š': 's',\n    'ṧ': 's',\n    'ṣ': 's',\n    'ṩ': 's',\n    'ș': 's',\n    'ş': 's',\n    'ȿ': 's',\n    'ꞩ': 's',\n    'ꞅ': 's',\n    'ẛ': 's',\n    'ⓣ': 't',\n    'ｔ': 't',\n    'ṫ': 't',\n    'ẗ': 't',\n    'ť': 't',\n    'ṭ': 't',\n    'ț': 't',\n    'ţ': 't',\n    'ṱ': 't',\n    'ṯ': 't',\n    'ŧ': 't',\n    'ƭ': 't',\n    'ʈ': 't',\n    'ⱦ': 't',\n    'ꞇ': 't',\n    'ꜩ': 'tz',\n    'ⓤ': 'u',\n    'ｕ': 'u',\n    'ù': 'u',\n    'ú': 'u',\n    'û': 'u',\n    'ũ': 'u',\n    'ṹ': 'u',\n    'ū': 'u',\n    'ṻ': 'u',\n    'ŭ': 'u',\n    'ü': 'u',\n    'ǜ': 'u',\n    'ǘ': 'u',\n    'ǖ': 'u',\n    'ǚ': 'u',\n    'ủ': 'u',\n    'ů': 'u',\n    'ű': 'u',\n    'ǔ': 'u',\n    'ȕ': 'u',\n    'ȗ': 'u',\n    'ư': 'u',\n    'ừ': 'u',\n    'ứ': 'u',\n    'ữ': 'u',\n    'ử': 'u',\n    'ự': 'u',\n    'ụ': 'u',\n    'ṳ': 'u',\n    'ų': 'u',\n    'ṷ': 'u',\n    'ṵ': 'u',\n    'ʉ': 'u',\n    'ⓥ': 'v',\n    'ｖ': 'v',\n    'ṽ': 'v',\n    'ṿ': 'v',\n    'ʋ': 'v',\n    'ꝟ': 'v',\n    'ʌ': 'v',\n    'ꝡ': 'vy',\n    'ⓦ': 'w',\n    'ｗ': 'w',\n    'ẁ': 'w',\n    'ẃ': 'w',\n    'ŵ': 'w',\n    'ẇ': 'w',\n    'ẅ': 'w',\n    'ẘ': 'w',\n    'ẉ': 'w',\n    'ⱳ': 'w',\n    'ⓧ': 'x',\n    'ｘ': 'x',\n    'ẋ': 'x',\n    'ẍ': 'x',\n    'ⓨ': 'y',\n    'ｙ': 'y',\n    'ỳ': 'y',\n    'ý': 'y',\n    'ŷ': 'y',\n    'ỹ': 'y',\n    'ȳ': 'y',\n    'ẏ': 'y',\n    'ÿ': 'y',\n    'ỷ': 'y',\n    'ẙ': 'y',\n    'ỵ': 'y',\n    'ƴ': 'y',\n    'ɏ': 'y',\n    'ỿ': 'y',\n    'ⓩ': 'z',\n    'ｚ': 'z',\n    'ź': 'z',\n    'ẑ': 'z',\n    'ż': 'z',\n    'ž': 'z',\n    'ẓ': 'z',\n    'ẕ': 'z',\n    'ƶ': 'z',\n    'ȥ': 'z',\n    'ɀ': 'z',\n    'ⱬ': 'z',\n    'ꝣ': 'z',\n    'Ά': 'Α',\n    'Έ': 'Ε',\n    'Ή': 'Η',\n    'Ί': 'Ι',\n    'Ϊ': 'Ι',\n    'Ό': 'Ο',\n    'Ύ': 'Υ',\n    'Ϋ': 'Υ',\n    'Ώ': 'Ω',\n    'ά': 'α',\n    'έ': 'ε',\n    'ή': 'η',\n    'ί': 'ι',\n    'ϊ': 'ι',\n    'ΐ': 'ι',\n    'ό': 'ο',\n    'ύ': 'υ',\n    'ϋ': 'υ',\n    'ΰ': 'υ',\n    'ω': 'ω',\n    'ς': 'σ'\n  };\n\n  // Copied from Select2\n  function stripDiacritics(text) {\n    // Used 'uni range + named function' from http://jsperf.com/diacritics/18\n    function match(a) {\n      return DIACRITICS[a] || a;\n    }\n    return `${text}`.replace(/[^\\u0000-\\u007E]/g, match); // eslint-disable-line\n  }\n\n  function defaultMatcher(value, text) {\n    return stripDiacritics(value).toUpperCase().indexOf(stripDiacritics(text).toUpperCase());\n  }\n  function defaultTypeAheadMatcher(value, text) {\n    return stripDiacritics(value).toUpperCase().startsWith(stripDiacritics(text).toUpperCase()) ? 1 : -1;\n  }\n});","define(\"ember-raf-scheduler/index\", [\"exports\", \"@ember/runloop\", \"@ember/debug\"], function (_exports, _runloop, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.scheduler = _exports.default = _exports.Token = _exports.Scheduler = void 0;\n  class Token {\n    constructor(parent) {\n      this._parent = parent;\n      this._cancelled = false;\n      if (true /* DEBUG */) {\n        Object.seal(this);\n      }\n    }\n    get cancelled() {\n      return this._cancelled || (this._cancelled = this._parent ? this._parent.cancelled : false);\n    }\n    cancel() {\n      this._cancelled = true;\n    }\n  }\n  _exports.Token = Token;\n  function job(cb, token) {\n    return function execJob() {\n      if (token.cancelled === false) {\n        cb();\n      }\n    };\n  }\n  class Scheduler {\n    constructor() {\n      this.sync = [];\n      this.layout = [];\n      this.measure = [];\n      this.affect = [];\n      this.jobs = 0;\n      this._nextFlush = null;\n      this.ticks = 0;\n      if (true /* DEBUG */) {\n        Object.seal(this);\n      }\n    }\n    schedule(queueName, cb, parent) {\n      (true && !(queueName in this) && (0, _debug.assert)(`Attempted to schedule to unknown queue: ${queueName}`, queueName in this));\n      this.jobs++;\n      let token = new Token(parent);\n      this[queueName].push(job(cb, token));\n      this._flush();\n      return token;\n    }\n    forget(token) {\n      // TODO add explicit test\n      if (token) {\n        token.cancel();\n      }\n    }\n    _flush() {\n      if (this._nextFlush !== null) {\n        return;\n      }\n      this._nextFlush = requestAnimationFrame(() => {\n        this.flush();\n      });\n    }\n    flush() {\n      let i, q;\n      this.jobs = 0;\n      if (this.sync.length > 0) {\n        (0, _runloop.begin)();\n        q = this.sync;\n        this.sync = [];\n        for (i = 0; i < q.length; i++) {\n          q[i]();\n        }\n        (0, _runloop.end)();\n      }\n      if (this.layout.length > 0) {\n        q = this.layout;\n        this.layout = [];\n        for (i = 0; i < q.length; i++) {\n          q[i]();\n        }\n      }\n      if (this.measure.length > 0) {\n        q = this.measure;\n        this.measure = [];\n        for (i = 0; i < q.length; i++) {\n          q[i]();\n        }\n      }\n      if (this.affect.length > 0) {\n        q = this.affect;\n        this.affect = [];\n        for (i = 0; i < q.length; i++) {\n          q[i]();\n        }\n      }\n      this._nextFlush = null;\n      if (this.jobs > 0) {\n        this._flush();\n      }\n    }\n  }\n  _exports.Scheduler = Scheduler;\n  const scheduler = _exports.scheduler = new Scheduler();\n  var _default = _exports.default = scheduler;\n});","/*\n * This is a stub file, it must be on disk b/c babel-plugin-debug-macros\n * does not strip the module require when the transpiled variable usage is\n * stripped.\n */\ndefine(\"ember-resolver/features\", [], function () {\n  \"use strict\";\n});","define(\"ember-resolver/index\", [\"exports\", \"ember-resolver/resolvers/classic\"], function (_exports, _classic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _classic.default;\n    }\n  });\n});","define(\"ember-resolver/resolver\", [\"exports\", \"ember-resolver/resolvers/classic\"], function (_exports, _classic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _classic.default;\n    }\n  });\n});","define(\"ember-resolver/resolvers/classic/container-debug-adapter\", [\"exports\", \"@ember/array\", \"@ember/debug/container-debug-adapter\", \"ember-resolver/resolvers/classic/index\", \"@ember/application\"], function (_exports, _array, _containerDebugAdapter, _index, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function getPod(type, key, prefix) {\n    let match = key.match(new RegExp('^/?' + prefix + '/(.+)/' + type + '$'));\n    if (match !== null) {\n      return match[1];\n    }\n  }\n\n  /*\n   * This module defines a subclass of Ember.ContainerDebugAdapter that adds\n   * support for resolving from modules.\n   *\n   */\n  var _default = _exports.default = _containerDebugAdapter.default.extend({\n    _moduleRegistry: null,\n    init() {\n      this._super(...arguments);\n      this.namespace = (0, _application.getOwner)(this).lookup('application:main');\n      if (!this._moduleRegistry) {\n        this._moduleRegistry = new _index.ModuleRegistry();\n      }\n    },\n    /**\n        The container of the application being debugged.\n        This property will be injected\n        on creation.\n         @property container\n        @default null\n        */\n\n    /**\n        The resolver instance of the application\n        being debugged. This property will be injected\n        on creation.\n         @property resolver\n        @default null\n        */\n\n    /**\n        Returns true if it is possible to catalog a list of available\n        classes in the resolver for a given type.\n         @method canCatalogEntriesByType\n        @param {string} type The type. e.g. \"model\", \"controller\", \"route\"\n        @return {boolean} whether a list is available for this type.\n        */\n    canCatalogEntriesByType(type) {\n      if (type === 'model') {\n        return true;\n      }\n      return this._super(...arguments);\n    },\n    /**\n        Returns the available classes a given type.\n         @method catalogEntriesByType\n        @param {string} type The type. e.g. \"model\", \"controller\", \"route\"\n        @return {Array} An array of classes.\n        */\n    catalogEntriesByType(type) {\n      let moduleNames = this._moduleRegistry.moduleNames();\n      let types = (0, _array.A)();\n      let prefix = this.namespace.modulePrefix;\n      for (let i = 0, l = moduleNames.length; i < l; i++) {\n        let key = moduleNames[i];\n        if (key.indexOf(type) !== -1) {\n          // Check if it's a pod module\n          let name = getPod(type, key, this.namespace.podModulePrefix || prefix);\n          if (!name) {\n            // Not pod\n            name = key.split(type + 's/').pop();\n\n            // Support for different prefix (such as ember-cli addons).\n            // Uncomment the code below when\n            // https://github.com/ember-cli/ember-resolver/pull/80 is merged.\n\n            //let match = key.match('^/?(.+)/' + type);\n            //if (match && match[1] !== prefix) {\n            // Different prefix such as an addon\n            //name = match[1] + '@' + name;\n            //}\n          }\n\n          types.addObject(name);\n        }\n      }\n      return types;\n    }\n  });\n});","define(\"ember-resolver/resolvers/classic/index\", [\"exports\", \"ember\", \"@ember/debug\", \"@ember/object\", \"@ember/string\", \"ember-resolver/utils/class-factory\"], function (_exports, _ember, _debug, _object, _string, _classFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.ModuleRegistry = void 0;\n  /* globals requirejs, require */\n\n  if (typeof requirejs.entries === 'undefined') {\n    requirejs.entries = requirejs._eak_seen;\n  }\n  class ModuleRegistry {\n    constructor(entries) {\n      this._entries = entries || requirejs.entries;\n    }\n    moduleNames() {\n      return Object.keys(this._entries);\n    }\n    has(moduleName) {\n      return moduleName in this._entries;\n    }\n    get(...args) {\n      return require(...args);\n    }\n  }\n\n  /**\n   * This module defines a subclass of Ember.DefaultResolver that adds two\n   * important features:\n   *\n   *  1) The resolver makes the container aware of es6 modules via the AMD\n   *     output. The loader's _moduleEntries is consulted so that classes can be\n   *     resolved directly via the module loader, without needing a manual\n   *     `import`.\n   *  2) is able to provide injections to classes that implement `extend`\n   *     (as is typical with Ember).\n   */\n  _exports.ModuleRegistry = ModuleRegistry;\n  function parseName(fullName) {\n    if (fullName.parsedName === true) {\n      return fullName;\n    }\n    let prefix, type, name;\n    let fullNameParts = fullName.split('@');\n    if (fullNameParts.length === 3) {\n      if (fullNameParts[0].length === 0) {\n        // leading scoped namespace: `@scope/pkg@type:name`\n        prefix = `@${fullNameParts[1]}`;\n        let prefixParts = fullNameParts[2].split(':');\n        type = prefixParts[0];\n        name = prefixParts[1];\n      } else {\n        // interweaved scoped namespace: `type:@scope/pkg@name`\n        prefix = `@${fullNameParts[1]}`;\n        type = fullNameParts[0].slice(0, -1);\n        name = fullNameParts[2];\n      }\n      if (type === 'template:components') {\n        name = `components/${name}`;\n        type = 'template';\n      }\n    } else if (fullNameParts.length === 2) {\n      let prefixParts = fullNameParts[0].split(':');\n      if (prefixParts.length === 2) {\n        if (prefixParts[1].length === 0) {\n          type = prefixParts[0];\n          name = `@${fullNameParts[1]}`;\n        } else {\n          prefix = prefixParts[1];\n          type = prefixParts[0];\n          name = fullNameParts[1];\n        }\n      } else {\n        let nameParts = fullNameParts[1].split(':');\n        prefix = fullNameParts[0];\n        type = nameParts[0];\n        name = nameParts[1];\n      }\n      if (type === 'template' && prefix.lastIndexOf('components/', 0) === 0) {\n        name = `components/${name}`;\n        prefix = prefix.slice(11);\n      }\n    } else {\n      fullNameParts = fullName.split(':');\n      type = fullNameParts[0];\n      name = fullNameParts[1];\n    }\n    let fullNameWithoutType = name;\n    let namespace = (0, _object.get)(this, 'namespace');\n    let root = namespace;\n    return {\n      parsedName: true,\n      fullName: fullName,\n      prefix: prefix || this.prefix({\n        type: type\n      }),\n      type: type,\n      fullNameWithoutType: fullNameWithoutType,\n      name: name,\n      root: root,\n      resolveMethodName: \"resolve\" + (0, _string.classify)(type)\n    };\n  }\n  function resolveOther(parsedName) {\n    (true && !(this.namespace.modulePrefix) && (0, _debug.assert)('`modulePrefix` must be defined', this.namespace.modulePrefix));\n    let normalizedModuleName = this.findModuleName(parsedName);\n    if (normalizedModuleName) {\n      let defaultExport = this._extractDefaultExport(normalizedModuleName, parsedName);\n      if (defaultExport === undefined) {\n        throw new Error(` Expected to find: '${parsedName.fullName}' within '${normalizedModuleName}' but got 'undefined'. Did you forget to 'export default' within '${normalizedModuleName}'?`);\n      }\n      if (this.shouldWrapInClassFactory(defaultExport, parsedName)) {\n        defaultExport = (0, _classFactory.default)(defaultExport);\n      }\n      return defaultExport;\n    }\n  }\n  const Resolver = _object.default.extend({\n    resolveOther,\n    parseName,\n    pluralizedTypes: null,\n    moduleRegistry: null,\n    makeToString(factory, fullName) {\n      return '' + this.namespace.modulePrefix + '@' + fullName + ':';\n    },\n    shouldWrapInClassFactory( /* module, parsedName */\n    ) {\n      return false;\n    },\n    init() {\n      this._super();\n      this.moduleBasedResolver = true;\n      if (!this._moduleRegistry) {\n        this._moduleRegistry = new ModuleRegistry();\n      }\n      this._normalizeCache = Object.create(null);\n      this.pluralizedTypes = this.pluralizedTypes || Object.create(null);\n      if (!this.pluralizedTypes.config) {\n        this.pluralizedTypes.config = 'config';\n      }\n      this._deprecatedPodModulePrefix = false;\n    },\n    normalize(fullName) {\n      return this._normalizeCache[fullName] || (this._normalizeCache[fullName] = this._normalize(fullName));\n    },\n    resolve(fullName) {\n      let parsedName = this.parseName(fullName);\n      let resolveMethodName = parsedName.resolveMethodName;\n      let resolved;\n      if (typeof this[resolveMethodName] === 'function') {\n        resolved = this[resolveMethodName](parsedName);\n      }\n      if (resolved == null) {\n        resolved = this.resolveOther(parsedName);\n      }\n      return resolved;\n    },\n    _normalize(fullName) {\n      // A) Convert underscores to dashes\n      // B) Convert camelCase to dash-case, except for components (their\n      //    templates) and helpers where we want to avoid shadowing camelCase\n      //    expressions\n      // C) replace `.` with `/` in order to make nested controllers work in the following cases\n      //      1. `needs: ['posts/post']`\n      //      2. `{{render \"posts/post\"}}`\n      //      3. `this.render('posts/post')` from Route\n\n      let split = fullName.split(':');\n      if (split.length > 1) {\n        let type = split[0];\n        if (type === 'component' || type === 'helper' || type === 'modifier' || type === 'template' && split[1].indexOf('components/') === 0) {\n          return type + ':' + split[1].replace(/_/g, '-');\n        } else {\n          return type + ':' + (0, _string.dasherize)(split[1].replace(/\\./g, '/'));\n        }\n      } else {\n        return fullName;\n      }\n    },\n    pluralize(type) {\n      return this.pluralizedTypes[type] || (this.pluralizedTypes[type] = type + 's');\n    },\n    podBasedLookupWithPrefix(podPrefix, parsedName) {\n      let fullNameWithoutType = parsedName.fullNameWithoutType;\n      if (parsedName.type === 'template') {\n        fullNameWithoutType = fullNameWithoutType.replace(/^components\\//, '');\n      }\n      return podPrefix + '/' + fullNameWithoutType + '/' + parsedName.type;\n    },\n    podBasedModuleName(parsedName) {\n      let podPrefix = this.namespace.podModulePrefix || this.namespace.modulePrefix;\n      return this.podBasedLookupWithPrefix(podPrefix, parsedName);\n    },\n    podBasedComponentsInSubdir(parsedName) {\n      let podPrefix = this.namespace.podModulePrefix || this.namespace.modulePrefix;\n      podPrefix = podPrefix + '/components';\n      if (parsedName.type === 'component' || /^components/.test(parsedName.fullNameWithoutType)) {\n        return this.podBasedLookupWithPrefix(podPrefix, parsedName);\n      }\n    },\n    resolveEngine(parsedName) {\n      let engineName = parsedName.fullNameWithoutType;\n      let engineModule = engineName + '/engine';\n      if (this._moduleRegistry.has(engineModule)) {\n        return this._extractDefaultExport(engineModule);\n      }\n    },\n    resolveRouteMap(parsedName) {\n      let engineName = parsedName.fullNameWithoutType;\n      let engineRoutesModule = engineName + '/routes';\n      if (this._moduleRegistry.has(engineRoutesModule)) {\n        let routeMap = this._extractDefaultExport(engineRoutesModule);\n        (true && !(routeMap.isRouteMap) && (0, _debug.assert)(`The route map for ${engineName} should be wrapped by 'buildRoutes' before exporting.`, routeMap.isRouteMap));\n        return routeMap;\n      }\n    },\n    resolveTemplate(parsedName) {\n      let resolved = this.resolveOther(parsedName);\n      if (resolved == null) {\n        resolved = _ember.default.TEMPLATES[parsedName.fullNameWithoutType];\n      }\n      return resolved;\n    },\n    mainModuleName(parsedName) {\n      if (parsedName.fullNameWithoutType === 'main') {\n        // if router:main or adapter:main look for a module with just the type first\n        return parsedName.prefix + '/' + parsedName.type;\n      }\n    },\n    defaultModuleName(parsedName) {\n      return parsedName.prefix + '/' + this.pluralize(parsedName.type) + '/' + parsedName.fullNameWithoutType;\n    },\n    nestedColocationComponentModuleName(parsedName) {\n      if (parsedName.type === 'component') {\n        return parsedName.prefix + '/' + this.pluralize(parsedName.type) + '/' + parsedName.fullNameWithoutType + '/index';\n      }\n    },\n    prefix(parsedName) {\n      let tmpPrefix = this.namespace.modulePrefix;\n      if (this.namespace[parsedName.type + 'Prefix']) {\n        tmpPrefix = this.namespace[parsedName.type + 'Prefix'];\n      }\n      return tmpPrefix;\n    },\n    /**\n      A listing of functions to test for moduleName's based on the provided\n     `parsedName`. This allows easy customization of additional module based\n     lookup patterns.\n      @property moduleNameLookupPatterns\n     @returns {Ember.Array}\n     */\n    moduleNameLookupPatterns: (0, _object.computed)(function () {\n      return [this.podBasedModuleName, this.podBasedComponentsInSubdir, this.mainModuleName, this.defaultModuleName, this.nestedColocationComponentModuleName];\n    }).readOnly(),\n    findModuleName(parsedName, loggingDisabled) {\n      let moduleNameLookupPatterns = this.get('moduleNameLookupPatterns');\n      let moduleName;\n      for (let index = 0, length = moduleNameLookupPatterns.length; index < length; index++) {\n        let item = moduleNameLookupPatterns[index];\n        let tmpModuleName = item.call(this, parsedName);\n\n        // allow treat all dashed and all underscored as the same thing\n        // supports components with dashes and other stuff with underscores.\n        if (tmpModuleName) {\n          tmpModuleName = this.chooseModuleName(tmpModuleName, parsedName);\n        }\n        if (tmpModuleName && this._moduleRegistry.has(tmpModuleName)) {\n          moduleName = tmpModuleName;\n        }\n        if (!loggingDisabled) {\n          this._logLookup(moduleName, parsedName, tmpModuleName);\n        }\n        if (moduleName) {\n          return moduleName;\n        }\n      }\n    },\n    chooseModuleName(moduleName, parsedName) {\n      let underscoredModuleName = (0, _string.underscore)(moduleName);\n      if (moduleName !== underscoredModuleName && this._moduleRegistry.has(moduleName) && this._moduleRegistry.has(underscoredModuleName)) {\n        throw new TypeError(`Ambiguous module names: '${moduleName}' and '${underscoredModuleName}'`);\n      }\n      if (this._moduleRegistry.has(moduleName)) {\n        return moduleName;\n      } else if (this._moduleRegistry.has(underscoredModuleName)) {\n        return underscoredModuleName;\n      }\n      // workaround for dasherized partials:\n      // something/something/-something => something/something/_something\n      let partializedModuleName = moduleName.replace(/\\/-([^/]*)$/, '/_$1');\n      if (this._moduleRegistry.has(partializedModuleName)) {\n        (true && !(false) && (0, _debug.deprecate)('Modules should not contain underscores. ' + 'Attempted to lookup \"' + moduleName + '\" which ' + 'was not found. Please rename \"' + partializedModuleName + '\" ' + 'to \"' + moduleName + '\" instead.', false, {\n          id: 'ember-resolver.underscored-modules',\n          until: '3.0.0',\n          for: 'ember-resolver',\n          since: '0.1.0'\n        }));\n        return partializedModuleName;\n      }\n      if (true /* DEBUG */) {\n        let isCamelCaseHelper = parsedName.type === 'helper' && /[a-z]+[A-Z]+/.test(moduleName);\n        if (isCamelCaseHelper) {\n          this._camelCaseHelperWarnedNames = this._camelCaseHelperWarnedNames || [];\n          let alreadyWarned = this._camelCaseHelperWarnedNames.indexOf(parsedName.fullName) > -1;\n          if (!alreadyWarned && this._moduleRegistry.has((0, _string.dasherize)(moduleName))) {\n            this._camelCaseHelperWarnedNames.push(parsedName.fullName);\n            (true && (0, _debug.warn)('Attempted to lookup \"' + parsedName.fullName + '\" which ' + 'was not found. In previous versions of ember-resolver, a bug would have ' + 'caused the module at \"' + (0, _string.dasherize)(moduleName) + '\" to be ' + 'returned for this camel case helper name. This has been fixed. ' + 'Use the dasherized name to resolve the module that would have been ' + 'returned in previous versions.', false, {\n              id: 'ember-resolver.camelcase-helper-names',\n              until: '3.0.0'\n            }));\n          }\n        }\n      }\n    },\n    // used by Ember.DefaultResolver.prototype._logLookup\n    lookupDescription(fullName) {\n      let parsedName = this.parseName(fullName);\n      let moduleName = this.findModuleName(parsedName, true);\n      return moduleName;\n    },\n    // only needed until 1.6.0-beta.2 can be required\n    _logLookup(found, parsedName, description) {\n      if (!_ember.default.ENV.LOG_MODULE_RESOLVER && !parsedName.root.LOG_RESOLVER) {\n        return;\n      }\n      let padding;\n      let symbol = found ? '[✓]' : '[ ]';\n      if (parsedName.fullName.length > 60) {\n        padding = '.';\n      } else {\n        padding = new Array(60 - parsedName.fullName.length).join('.');\n      }\n      if (!description) {\n        description = this.lookupDescription(parsedName);\n      }\n\n      /* eslint-disable no-console */\n      if (console && console.info) {\n        console.info(symbol, parsedName.fullName, padding, description);\n      }\n    },\n    knownForType(type) {\n      let moduleKeys = this._moduleRegistry.moduleNames();\n      let items = Object.create(null);\n      for (let index = 0, length = moduleKeys.length; index < length; index++) {\n        let moduleName = moduleKeys[index];\n        let fullname = this.translateToContainerFullname(type, moduleName);\n        if (fullname) {\n          items[fullname] = true;\n        }\n      }\n      return items;\n    },\n    translateToContainerFullname(type, moduleName) {\n      let prefix = this.prefix({\n        type\n      });\n\n      // Note: using string manipulation here rather than regexes for better performance.\n      // pod modules\n      // '^' + prefix + '/(.+)/' + type + '$'\n      let podPrefix = prefix + '/';\n      let podSuffix = '/' + type;\n      let start = moduleName.indexOf(podPrefix);\n      let end = moduleName.indexOf(podSuffix);\n      if (start === 0 && end === moduleName.length - podSuffix.length && moduleName.length > podPrefix.length + podSuffix.length) {\n        return type + ':' + moduleName.slice(start + podPrefix.length, end);\n      }\n\n      // non-pod modules\n      // '^' + prefix + '/' + pluralizedType + '/(.+)$'\n      let pluralizedType = this.pluralize(type);\n      let nonPodPrefix = prefix + '/' + pluralizedType + '/';\n      if (moduleName.indexOf(nonPodPrefix) === 0 && moduleName.length > nonPodPrefix.length) {\n        return type + ':' + moduleName.slice(nonPodPrefix.length);\n      }\n    },\n    _extractDefaultExport(normalizedModuleName) {\n      let module = this._moduleRegistry.get(normalizedModuleName, null, null, true /* force sync */);\n\n      if (module && module['default']) {\n        module = module['default'];\n      }\n      return module;\n    }\n  });\n  Resolver.reopenClass({\n    moduleBasedResolver: true\n  });\n  var _default = _exports.default = Resolver;\n});","define(\"ember-resolver/utils/class-factory\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = classFactory;\n  function classFactory(klass) {\n    return {\n      create(injections) {\n        if (typeof klass.extend === 'function') {\n          return klass.extend(injections);\n        } else {\n          return klass;\n        }\n      }\n    };\n  }\n});","define(\"ember-rollbar-client/instance-initializers/rollbar\", [\"exports\", \"ember\"], function (_exports, _ember) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  function initialize(appInstance) {\n    let fastbootService = appInstance.lookup('service:fastboot');\n    let rollbarService = appInstance.lookup('service:rollbar');\n    let oldOnError = _ember.default.onerror || function () {};\n    _ember.default.onerror = (...args) => {\n      oldOnError(...args);\n      let enabled = rollbarService.get('enabled');\n      if (enabled) {\n        rollbarService.error(...args);\n      }\n      if (!enabled || _ember.default.testing) {\n        if (!fastbootService || !fastbootService.get('isFastBoot')) {\n          throw args[0];\n        }\n      }\n    };\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"ember-rollbar-client/services/rollbar\", [\"exports\", \"@ember/application\", \"@ember/object\", \"@ember/service\", \"lodash.merge\", \"rollbar\"], function (_exports, _application, _object, _service, _lodash, _rollbar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _service.default.extend({\n    enabled: (0, _object.computed)({\n      get() {\n        return this.get('config.enabled');\n      },\n      set(key, value) {\n        this.get('notifier').configure({\n          enabled: value\n        });\n        return value;\n      }\n    }),\n    currentUser: (0, _object.computed)({\n      set(key, value) {\n        this.get('notifier').configure({\n          payload: {\n            person: value\n          }\n        });\n        return value;\n      }\n    }),\n    notifier: (0, _object.computed)(function () {\n      return this.rollbarClient();\n    }).readOnly(),\n    config: (0, _object.computed)(function () {\n      return (0, _application.getOwner)(this).resolveRegistration('config:environment').emberRollbarClient;\n    }).readOnly(),\n    rollbarClient(customConfig = {}) {\n      let config = (0, _lodash.default)({}, this.get('config'), customConfig);\n      return new _rollbar.default(config);\n    },\n    // Notifications\n\n    critical(...args) {\n      return this.get('notifier').critical(...args);\n    },\n    error(...args) {\n      return this.get('notifier').error(...args);\n    },\n    warning(...args) {\n      return this.get('notifier').warning(...args);\n    },\n    info(...args) {\n      return this.get('notifier').info(...args);\n    },\n    debug(...args) {\n      return this.get('notifier').debug(...args);\n    }\n  });\n});","define(\"ember-style-modifier/modifiers/style\", [\"exports\", \"ember-modifier\", \"@ember/string\", \"@ember/debug\", \"@ember/utils\"], function (_exports, _emberModifier, _string, _debug, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-modifier\",0,\"@ember/string\",0,\"@ember/debug\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  function isObject(o) {\n    return typeof o === 'object' && Boolean(o);\n  }\n\n  /**\n   * Returns a two-dimensional array, like:\n   *\n   * ```js\n   * [\n   *   ['font-size', '16px'],\n   *   ['text-align', 'center'],\n   *   ['color', 'red']\n   * ]\n   * ```\n   *\n   * This data structure is slightly faster to process than an object / dictionary.\n   */\n  function compileStyles(positional, named) {\n    return [...positional.filter(isObject), named].map(obj => Object.entries(obj).map(([k, v]) => [(0, _string.dasherize)(k), v])).flat();\n  }\n  class StyleModifier extends _emberModifier.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"existingStyles\", new Set());\n    }\n    setStyles(element, newStyles) {\n      const {\n        existingStyles\n      } = this;\n      const rulesToRemove = new Set(existingStyles);\n\n      // clear cache of existing styles\n      existingStyles.clear();\n      newStyles.forEach(([property, value]) => {\n        (true && !(typeof value === 'undefined' || (0, _utils.typeOf)(value) === 'string') && (0, _debug.assert)(`Your given value for property '${property}' is ${value} (${(0, _utils.typeOf)(value)}). ` + 'Accepted types are string and undefined. Please change accordingly.', typeof value === 'undefined' || (0, _utils.typeOf)(value) === 'string')); // priority must be specified as separate argument\n        // value must not contain \"!important\"\n        let priority = '';\n        if (value && value.includes('!important')) {\n          priority = 'important';\n          value = value.replace('!important', '');\n        }\n\n        // update CSSOM\n        element.style.setProperty(property, value, priority);\n\n        // should not remove rules that have been updated in this cycle\n        rulesToRemove.delete(property);\n\n        // cache styles that have been set for potential clean-up when argument changes\n        existingStyles.add(property);\n      });\n\n      // remove rules that were present in last cycle but aren't present in this one\n      rulesToRemove.forEach(rule => element.style.removeProperty(rule));\n    }\n    modify(element, positional, named) {\n      this.setStyles(element, compileStyles(positional, named));\n    }\n  }\n  _exports.default = StyleModifier;\n});","define(\"ember-table/-private/collapse-tree\", [\"exports\", \"@ember/object\", \"@ember/array\", \"@ember/debug\", \"ember-table/-private/utils/observer\", \"ember-table/-private/utils/array\", \"ember-table/-private/utils/ember\", \"ember-table/-private/meta-cache\", \"ember-table/-private/utils/sort\"], function (_exports, _object, _array, _debug, _observer, _array2, _ember, _metaCache, _sort) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TableRowMeta = _exports.SELECT_MODE = void 0;\n  const SELECT_MODE = _exports.SELECT_MODE = {\n    NONE: 'none',\n    SINGLE: 'single',\n    MULTIPLE: 'multiple'\n  };\n  const TableRowMeta = _exports.TableRowMeta = _object.default.extend({\n    _rowValue: null,\n    _isCollapsed: false,\n    isCollapsed: (0, _object.computed)('_rowValue.isCollapsed', {\n      get() {\n        let rowValue = (0, _object.get)(this, '_rowValue');\n        if (rowValue.hasOwnProperty('isCollapsed')) {\n          return (0, _object.get)(rowValue, 'isCollapsed');\n        } else {\n          return this._isCollapsed;\n        }\n      },\n      set(key, isCollapsed) {\n        let rowValue = (0, _object.get)(this, '_rowValue');\n        if (rowValue.hasOwnProperty('isCollapsed')) {\n          (0, _object.set)(rowValue, 'isCollapsed', isCollapsed);\n        } else {\n          this._isCollapsed = isCollapsed;\n        }\n        return isCollapsed;\n      }\n    }),\n    // eslint-disable-next-line ember/use-brace-expansion\n    isSelected: (0, _object.computed)('_tree.{selection.[],selectionMatchFunction}', '_parentMeta.isSelected', function () {\n      let rowValue = (0, _object.get)(this, '_rowValue');\n      let selection = (0, _object.get)(this, '_tree.selection');\n      let selectionMatchFunction = (0, _object.get)(this, '_tree.selectionMatchFunction');\n      if ((0, _array.isArray)(selection)) {\n        return this.get('isGroupSelected');\n      }\n      let isRowSelection = selectionMatchFunction ? selectionMatchFunction(selection, rowValue) : selection === rowValue;\n      return isRowSelection || (0, _object.get)(this, '_parentMeta.isSelected');\n    }),\n    isGroupSelected: (0, _object.computed)('_tree.{selection.[],selectionMatchFunction}', '_parentMeta.isSelected', function () {\n      let rowValue = (0, _object.get)(this, '_rowValue');\n      let selection = (0, _object.get)(this, '_tree.selection');\n      let selectionMatchFunction = (0, _object.get)(this, '_tree.selectionMatchFunction');\n      if (!selection || !(0, _array.isArray)(selection)) {\n        return false;\n      }\n      let isSelectionMatch = selectionMatchFunction ? selection.filter(item => selectionMatchFunction(item, rowValue)).length > 0 : selection.includes(rowValue);\n      return isSelectionMatch || (0, _object.get)(this, '_parentMeta.isGroupSelected');\n    }),\n    canCollapse: (0, _object.computed)('_tree.{enableTree,enableCollapse}', '_rowValue.{children.[],disableCollapse}', function () {\n      if (!(0, _object.get)(this, '_tree.enableTree') || !(0, _object.get)(this, '_tree.enableCollapse')) {\n        return false;\n      }\n      let children = (0, _object.get)(this, '_rowValue.children');\n      return !(0, _object.get)(this, '_rowValue.disableCollapse') && (0, _array.isArray)(children) && (0, _object.get)(children, 'length') > 0;\n    }),\n    depth: (0, _object.computed)('_parentMeta.depth', function () {\n      let parentMeta = (0, _object.get)(this, '_parentMeta');\n      return parentMeta ? (0, _object.get)(parentMeta, 'depth') + 1 : 0;\n    }),\n    first: (0, _object.computed)('_tree.length', function () {\n      if ((0, _object.get)(this, '_tree.length') === 0) {\n        return null;\n      }\n      return (0, _object.get)(this, '_tree').objectAt(0);\n    }),\n    last: (0, _object.computed)('_tree.length', function () {\n      let tree = (0, _object.get)(this, '_tree');\n      return tree.objectAt((0, _object.get)(tree, 'length') - 1);\n    }),\n    next: (0, _object.computed)('_tree.length', function () {\n      let tree = (0, _object.get)(this, '_tree');\n      if ((0, _object.get)(this, 'index') + 1 >= (0, _object.get)(tree, 'length')) {\n        return null;\n      }\n      return tree.objectAt((0, _object.get)(this, 'index') + 1);\n    }),\n    prev: (0, _object.computed)('_tree.length', function () {\n      if ((0, _object.get)(this, 'index') === 0) {\n        return null;\n      }\n      return (0, _object.get)(this, '_tree').objectAt((0, _object.get)(this, 'index') - 1);\n    }),\n    init() {\n      this._super(...arguments);\n\n      /**\n       The map that contains cell meta information for this row. Is meant to be\n       unique to this row, which is why it is created here. In order to prevent\n       memory leaks, we need to be able to clean the cache manually when the row\n       is destroyed or updated, which is why we use a Map instead of WeakMap\n       */\n      this._cellMetaCache = new Map();\n    },\n    toggleCollapse() {\n      let canCollapse = (0, _object.get)(this, 'canCollapse');\n      if (canCollapse) {\n        (0, _object.set)(this, 'isCollapsed', !(0, _object.get)(this, 'isCollapsed'));\n      }\n    },\n    select({\n      single,\n      toggle,\n      range\n    } = {}) {\n      var _tree$onSelect2;\n      if ((0, _object.get)(this, 'isDestroying') || (0, _object.get)(this, 'isDestroyed')) {\n        return;\n      }\n      let tree = (0, _object.get)(this, '_tree');\n      let rowValue = (0, _object.get)(this, '_rowValue');\n      let rowIndex = (0, _object.get)(this, 'index');\n      let isGroupSelected = (0, _object.get)(this, 'isGroupSelected');\n      let selectingChildrenSelectsParent = (0, _object.get)(tree, 'selectingChildrenSelectsParent');\n      let rowMetaCache = (0, _object.get)(tree, 'rowMetaCache');\n\n      // create an abort function that the action handler can call to roll back\n      // internal state (e.g. last selected index)\n      let didAbort = false;\n      let abort = function abort() {\n        didAbort = true;\n      };\n      if (single) {\n        var _tree$onSelect;\n        tree._lastSelectedIndex = null;\n        (_tree$onSelect = tree.onSelect) === null || _tree$onSelect === void 0 ? void 0 : _tree$onSelect.call(tree, rowValue, {\n          abort\n        });\n        return;\n      }\n      let oldSelection = (0, _object.get)(tree, 'selection');\n\n      // If the old selection is an array, then we add to it. If not, we restart\n      // the selection as a group.\n      let selection = (0, _array.isArray)(oldSelection) ? new Set(oldSelection) : new Set();\n      if (range) {\n        // Use a set to avoid item duplication\n        let {\n          _lastSelectedIndex\n        } = tree;\n        let isFirstIndexDefined = typeof _lastSelectedIndex === 'number';\n        let minIndex = isFirstIndexDefined ? Math.min(_lastSelectedIndex, rowIndex) : rowIndex;\n        let maxIndex = isFirstIndexDefined ? Math.max(_lastSelectedIndex, rowIndex) : rowIndex;\n        for (let i = minIndex; i <= maxIndex; i++) {\n          selection.add(tree.objectAt(i));\n        }\n      } else if (toggle) {\n        if (isGroupSelected) {\n          let meta = this;\n          let currentValue = rowValue;\n\n          // If the parent is selected all of its children are selected. Since\n          // the current row is going to be removed from the selection, add all\n          // the sibling rows at each level of its grouping to be explicitly\n          // selected so their state remains stable.\n          while ((0, _object.get)(meta, '_parentMeta.isSelected')) {\n            meta = (0, _object.get)(meta, '_parentMeta');\n\n            // Iterate from the parent meta to the \"next\" tree node. Since this\n            // is a group it will have at least one child, so there should be at\n            // least one next row to iterate over.\n            let expectedChildDepth = (0, _object.get)(meta, 'depth') + 1;\n            let childIndex = (0, _object.get)(meta, 'index'); // will be incremented by 1 before use\n            let child;\n            while (child = tree.objectAt(++childIndex)) {\n              // The currentValue is being toggled, don't add it to the selection\n              if (child === currentValue) {\n                continue;\n              }\n\n              // If the depth of the row is lower than the expectedChildDepth a\n              // non-child meta has been found (a sibling or something higher.\n              // That means iterating children is complete, so break.\n              //\n              // If the depth is higher than expected then children of a child\n              // group are being iterated. Skip over them, but don't break since\n              // there may be a leaf child after a group child.\n              let childMeta = rowMetaCache.get(child);\n              let childDepth = (0, _object.get)(childMeta, 'depth');\n              if (childDepth < expectedChildDepth) {\n                break;\n              }\n              if (childDepth > expectedChildDepth) {\n                continue;\n              }\n\n              // Else, this is a child node which must be explictly selected.\n              // Add it to the list.\n              selection.add(child);\n            }\n            selection.delete(currentValue);\n            currentValue = (0, _object.get)(meta, '_rowValue');\n          }\n          selection.delete(currentValue);\n        } else {\n          selection.add(rowValue);\n        }\n      } else {\n        selection.clear();\n        selection.add(rowValue);\n      }\n      let rowMetas = mapSelectionToMeta(this.get('_tree'), selection, rowMetaCache);\n      if (selectingChildrenSelectsParent) {\n        let groupingCounts = new Map();\n        for (let rowMeta of rowMetas) {\n          let parentRow = (0, _object.get)(rowMeta, '_parentMeta._rowValue');\n          if (parentRow) {\n            let count = groupingCounts.has(parentRow) ? groupingCounts.get(parentRow) : 0;\n            groupingCounts.set(parentRow, count + 1);\n          }\n        }\n        reduceSelectedRows(selection, groupingCounts, rowMetaCache);\n      }\n      for (let rowMeta of rowMetas) {\n        let rowValue = (0, _object.get)(rowMeta, '_rowValue');\n        let parentMeta = (0, _object.get)(rowMeta, '_parentMeta');\n        while (parentMeta) {\n          if (selection.has((0, _object.get)(parentMeta, '_rowValue'))) {\n            selection.delete(rowValue);\n            break;\n          }\n          parentMeta = (0, _object.get)(parentMeta, '_parentMeta');\n        }\n      }\n      selection = (0, _array.A)(Array.from(selection));\n      (_tree$onSelect2 = tree.onSelect) === null || _tree$onSelect2 === void 0 ? void 0 : _tree$onSelect2.call(tree, selection, {\n        abort\n      });\n\n      // if the action handler calls `abort`, do not update the starting point\n      // for a subsequent multi-select\n      if (!didAbort) {\n        tree._lastSelectedIndex = rowIndex;\n      }\n    },\n    destroy() {\n      this._super();\n      this._cellMetaCache.clear();\n    }\n  });\n  function reduceSelectedRows(selection, groupingCounts, rowMetaCache) {\n    let reducedGroupingCounts = new Map();\n    for (let [group, count] of groupingCounts.entries()) {\n      if ((0, _object.get)(group, 'children.length') === count) {\n        selection.add(group);\n        let parentRow = rowMetaCache.get(group).get('_parentMeta._rowValue');\n        if (parentRow) {\n          let currentCount = reducedGroupingCounts.get(parentRow) || groupingCounts.get(parentRow) || 0;\n          reducedGroupingCounts.set(parentRow, currentCount + 1);\n        }\n      }\n    }\n    if (reducedGroupingCounts.size > 0) {\n      reduceSelectedRows(selection, reducedGroupingCounts, rowMetaCache);\n    }\n  }\n  function setupRowMeta(tree, row, parentRow, node) {\n    let rowMetaCache = (0, _object.get)(tree, 'rowMetaCache');\n    let rowMeta = (0, _metaCache.getOrCreate)(row, rowMetaCache, TableRowMeta);\n    let parentRowMeta = parentRow ? rowMetaCache.get(parentRow) : null;\n    (0, _object.set)(rowMeta, '_tree', tree);\n    (0, _object.set)(rowMeta, '_rowValue', row);\n    (0, _object.set)(rowMeta, '_parentMeta', parentRowMeta);\n    if (node) {\n      (0, _object.set)(node, 'rowMeta', rowMeta);\n    }\n  }\n\n  /**\n   * Traverses the tree to set up row meta for every row in the tree.\n   * Usually row metas are lazily created as needed, but it's possible to end up in a state\n   * where a table's `selection` contains rows that do not have a rowMeta (for instance, if they\n   * have not yet been rendered due to occlusion rendering). In this state, there may not be a\n   * rowMeta for every row in the `selection`, so we need to explicitly set them all up at that\n   * time.\n   * This has adverse performance impact, so we lazily call this function only when we find that\n   * the `selection` has some rows with no corresponding rowMeta.\n   *\n   * @param {CollapseTree} tree The collapse tree for this section (body|footer) of the table\n   * @param {object} parentRow The parent row. Only present when called recursively\n   */\n  function setupAllRowMeta(tree, rows, parentRow = null) {\n    for (let row of rows) {\n      setupRowMeta(tree, row, parentRow);\n      if (row.children && row.children.length) {\n        setupAllRowMeta(tree, row.children, row);\n      }\n    }\n  }\n\n  /**\n   * Maps the selection to an array of rowMetas.\n   *\n   * If any row in the selection does not have a rowMeta, calls `setupAllRowMeta`\n   * to materialize all rowMetas, then tries again to get the rowMeta for that\n   * row. This happens in rare cases where, due to occlusion rendering, a row may\n   * be part of the selection but not in view (and thus have no rowMeta; the\n   * rowMeta is lazily created when the row is rendered).\n   *\n   * If after calling `setupAllRowMeta` the row still does not have a\n   * corresponding rowMeta, it is likely an invalid selection, which can happen when a user\n   * sets the table's selection programmatically and includes a row that is not\n   * actually part of the table. If this happens we `warn` because of the adverse\n   * performance impact (the forced call to `setupAllRowMeta`) that is caused by\n   * spurious rows in the selection.\n   * @param {CollapseTree} tree The collapse tree for this section (body|footer) of the table\n   * @param {Set|Array} selection The selected rows\n   * @return {rowMeta[]} rowMeta for each of the rows in the selection\n   */\n  function mapSelectionToMeta(tree, selection) {\n    let rowMetaCache = tree.get('rowMetaCache');\n    let rowMetas = [];\n    let didSetupAllRowMeta = false;\n    for (let item of Array.from(selection)) {\n      let rowMeta = rowMetaCache.get(item);\n      if (!rowMeta && !didSetupAllRowMeta) {\n        setupAllRowMeta(tree, tree.get('rows'));\n        didSetupAllRowMeta = true;\n        rowMeta = rowMetaCache.get(item);\n      }\n      if (!rowMeta && didSetupAllRowMeta) {\n        (true && (0, _debug.warn)(\"[ember-table] The selection included a row that was not found in the table's rows. This should be avoided as it causes performance issues.\", false, {\n          id: 'ember-table.selection-invalid'\n        }));\n      } else {\n        rowMetas.push(rowMeta);\n      }\n    }\n    return rowMetas;\n  }\n\n  /**\n   Given a list of ordered values and a target value, finds the index of\n   the closest value which does not exceed the target value\n  \n   @param {Array<number>} values - the list of values\n   @param {number} target - the index to find the closest value to\n   @return {number} - the index of the value closest to the target\n   */\n  function closestLessThan(values, target) {\n    let low = 0;\n    let high = values.length - 1;\n    while (low <= high) {\n      let mid = Math.floor((high + low) / 2);\n      if (target < values[mid]) {\n        high = mid - 1;\n      } else if (target > values[mid]) {\n        low = mid + 1;\n      } else {\n        return mid;\n      }\n    }\n\n    // low === high + 1, we always want the lower value\n    return high;\n  }\n\n  /**\n   Single node of a CollapseTree\n   */\n  const CollapseTreeNode = _object.default.extend({\n    _childNodes: null,\n    init() {\n      this._super(...arguments);\n      let value = (0, _object.get)(this, 'value');\n      let parentValue = (0, _object.get)(this, 'parent.value');\n      let parent = (0, _object.get)(this, 'parent');\n      let tree = (0, _object.get)(this, 'tree');\n      if (!parent) {\n        (0, _object.set)(this, 'isRoot', true);\n      } else {\n        setupRowMeta(tree, value, parentValue, this);\n      }\n      (true && !((0, _array.isArray)((0, _object.get)(value, 'children'))) && (0, _debug.assert)('value must have an array of children', (0, _array.isArray)((0, _object.get)(value, 'children'))));\n      if (parent) {\n        // Changes to the value directly should properly update all computeds on this\n        // node, but we need to manually propagate changes upwards to notify any other\n        // watchers\n        (0, _observer.addObserver)(this, 'length', () => {\n          (0, _ember.notifyPropertyChange)(parent, 'length');\n        });\n      }\n    },\n    destroy() {\n      this.cleanChildNodes();\n      this._super(...arguments);\n    },\n    /**\n     Fully destroys the child nodes in the event that they change or that this\n     node is destroyed. If children are not destroyed, they will leak memory due\n     to dangling references in Ember Meta.\n     */\n    cleanChildNodes() {\n      if (this._childNodes) {\n        for (let child of this._childNodes) {\n          if (child instanceof CollapseTreeNode) {\n            child.destroy();\n          }\n        }\n        this._childNodes = null;\n      }\n    },\n    /**\n     Whether or not the node is leaf of the CollapseTree. A node is a leaf if\n     the wrapped value's children have no children. If so, there is no need to\n     create another level of nodes in the tree - true leaves of the passed in\n     value tree don't require any custom logic, so we can index directly into\n     the array of children in `objectAt`.\n      @type boolean\n     */\n    isLeaf: (0, _object.computed)('value.children.@each.children', 'isRoot', 'tree.enableTree', function () {\n      if ((0, _object.get)(this, 'isRoot') && !(0, _object.get)(this, 'tree.enableTree')) {\n        return true;\n      }\n      return !(0, _object.get)(this, 'value.children').some(child => (0, _array.isArray)((0, _object.get)(child, 'children')));\n    }),\n    sortedChildren: (0, _object.computed)('value.children.[]', 'tree.{sorts.[],sortFunction,compareFunction,sortEmptyLast}', function () {\n      let valueChildren = (0, _object.get)(this, 'value.children');\n      let sorts = (0, _object.get)(this, 'tree.sorts');\n      let sortFunction = (0, _object.get)(this, 'tree.sortFunction');\n      let compareFunction = (0, _object.get)(this, 'tree.compareFunction');\n      let sortEmptyLast = (0, _object.get)(this, 'tree.sortEmptyLast');\n      if (sortFunction && compareFunction && sorts && (0, _object.get)(sorts, 'length') > 0) {\n        valueChildren = (0, _sort.mergeSort)(valueChildren, (itemA, itemB) => {\n          return sortFunction(itemA, itemB, sorts, compareFunction, sortEmptyLast);\n        });\n      }\n      return valueChildren;\n    }),\n    /**\n     The children of this node, if they exist. Children can be other nodes, or\n     spans (arrays) of leaf value-nodes. For instance:\n      ```\n     A\n     └── B\n     ├── C\n     └── D\n     └── E\n     ```\n      In this example, A would have the following children:\n      ```\n     children = [\n     [B, C],\n     Node(D)\n     ];\n     ```\n      This allows us to do a binary search on the list of children without\n     creating a node for each span, arrays simply represent x-children in\n     a segment before a given node.\n      @type Array<Node|Array<object>>\n     */\n    childNodes: (0, _object.computed)('sortedChildren.[]', 'isLeaf', function () {\n      this.cleanChildNodes();\n      if ((0, _object.get)(this, 'isLeaf')) {\n        return null;\n      }\n      let sortedChildren = (0, _object.get)(this, 'sortedChildren');\n      let tree = (0, _object.get)(this, 'tree');\n      let children = [];\n      let sliceStart = false;\n      sortedChildren.forEach((child, index) => {\n        let grandchildren = (0, _object.get)(child, 'children');\n        if ((0, _array.isArray)(grandchildren)) {\n          if (sliceStart !== false) {\n            children.push(sortedChildren.slice(sliceStart, index));\n            sliceStart = false;\n          }\n          children.push(CollapseTreeNode.create({\n            value: child,\n            parent: this,\n            tree\n          }));\n        } else if (sliceStart === false) {\n          sliceStart = index;\n        }\n      });\n      if (sliceStart !== false) {\n        children.push(sortedChildren.slice(sliceStart));\n      }\n      this._childNodes = children;\n      return children;\n    }),\n    /**\n     The length of the node. Branches in three directions:\n      1. If the node is collapsed, then the length of the node is 1, the\n     node itself. This means that the parent node will only index into\n     this child if it is trying to get exactly the child node,\n     effectively hiding its children.\n     2. If the node is a leaf, then the length is the node itself plus the\n     length of its value-children.\n     3. Otherwise, the length is the sum of the lengths of its children.\n     */\n    length: (0, _object.computed)('childNodes.[]', 'sortedChildren.[]', 'isLeaf', 'rowMeta.isCollapsed', 'tree.enableTree', function () {\n      if ((0, _object.get)(this, 'rowMeta.isCollapsed') === true) {\n        return 1;\n      } else if ((0, _object.get)(this, 'isLeaf')) {\n        return 1 + (0, _object.get)(this, 'sortedChildren.length');\n      } else {\n        return 1 + (0, _object.get)(this, 'childNodes').reduce((sum, child) => sum + (0, _object.get)(child, 'length'), 0);\n      }\n    }),\n    /**\n     Calculates a list of the summation of offsets of children to run a binary\n     search against. Given:\n      ```\n     A\n     ├── B\n     │   ├── C\n     │   └── D\n     ├── E(c)\n     │   ├── F\n     │   └── G\n     └── H\n     │   ├── I\n     │   └── J\n     │       └── K\n     └── L\n     └── M\n     ```\n      The offsetList for A would be: `[0, 3, 6, 10, 11]`. Each item in this\n     list is the offset of the corresponding child, or the summation of the\n     lengths of all children preceding it. It is effectively the starting\n     index of that child.\n      So, if I'm trying to find index 9 in A, which is item K (not counting A\n     itself), then I'm going to want to traverse down H, which is the 3rd child.\n     I run a binary search against these offsets, which are ordered, and find\n     the closest starting index which is strictly less than 9, which is the 3rd\n     index. I know I can then recurse down that node and I should eventually\n     find the item I'm after.\n     */\n    offsetList: (0, _object.computed)('length', 'isLeaf', function () {\n      if ((0, _object.get)(this, 'isLeaf')) {\n        return null;\n      }\n      let offset = 0;\n      let offsetList = [];\n      for (let child of (0, _object.get)(this, 'childNodes')) {\n        offsetList.push(offset);\n        offset += (0, _object.get)(child, 'length');\n      }\n      return offsetList;\n    }),\n    /**\n     Finds the object at the given index, where an index n is defined as the n-th\n     item visited during a depth first traversal of the tree. To do this, we either\n      1. Return the current node at index 0\n     2. If the node is a leaf, return the value child at the corresponding index\n     3. Otherwise, find the correct child to walk down to and call `objectAt` on it\n     with a normalized index\n      `objectAt` also tracks the depth to pass back as meta information, something\n     that is useful for displaying the tree as a list. `index` and `depth` are\n     normalized as we traverse the tree, every time you \"pass\" a node you subtract\n     it from the index for the next `objectAt` call, and you add 1 to depth for\n     every `objectAt` call.\n      @param {number} index - the index to find\n     @param {Array<object>} parents - the parents of the current node in the traversal\n     @return {{ value: object, parents: Array<object> }}\n     */\n    objectAt(index) {\n      (true && !(index >= 0 && index < (0, _object.get)(this, 'length')) && (0, _debug.assert)('index must be gte than 0 and less than the length of the node', index >= 0 && index < (0, _object.get)(this, 'length'))); // The first index in a node is the node itself, since nodes are addressable\n      if (index === 0) {\n        return (0, _object.get)(this, 'value');\n      }\n\n      // Passed this node, remove it from the index and go one level deeper\n      let normalizedIndex = index - 1;\n      let tree = (0, _object.get)(this, 'tree');\n      if ((0, _object.get)(this, 'isLeaf')) {\n        let value = (0, _array2.objectAt)((0, _object.get)(this, 'sortedChildren'), normalizedIndex);\n        setupRowMeta(tree, value, (0, _object.get)(this, 'value'));\n        return value;\n      }\n      let childNodes = (0, _object.get)(this, 'childNodes');\n      let offsetList = (0, _object.get)(this, 'offsetList');\n      let offsetIndex = closestLessThan(offsetList, normalizedIndex);\n      normalizedIndex = normalizedIndex - offsetList[offsetIndex];\n      let child = childNodes[offsetIndex];\n      if (Array.isArray(child)) {\n        let value = child[normalizedIndex];\n        setupRowMeta(tree, value, (0, _object.get)(this, 'value'));\n        return value;\n      }\n      return child.objectAt(normalizedIndex);\n    }\n  });\n\n  /**\n   The goal of the collapse tree is provide a data structure that:\n  \n   1. Given an index n, can find the n-th node visited in a depth-first-walk\n   of the tree\n   2. Can \"hide\" or \"collapse\" nodes, so that their children are not walked\n  \n   So given a tree like this, where the (c) annotation means \"isCollapsed\":\n  \n   ```\n   A\n   ├── B\n   │   ├── C\n   │   └── D\n   ├── E(c)\n   │   ├── F\n   │   └── G\n   └── H\n   │   ├── I\n   │   └── J\n   │       └── K\n   └── L\n   ```\n  \n   `objectAt(0) === A`, `objectAt(2) === C`, `objectAt(4) === E`, and\n   `objectAt(5) === H`\n  \n   We also want to wrap this structure around a pre-existing tree that is a much\n   simpler POJO with the shape:\n  \n   ```json\n   {\n      isCollapsed: false,\n      children: [{\n        isCollapsed: true,\n        children: []\n      }]\n    }\n   ```\n  \n   This allows us to provide a simple API to users while being able to index into\n   their tree quickly and turn it into a list/table representation, without exposing\n   any internal implementation details.\n  \n   To do this, each node in the tree has a `length` equal to the lengths of its\n   children, and we do a binary search of each layer of the tree to find the closest\n   node to the index. We traverse downward until we have the correct node, getting\n   there in O(log(n)) time at worst (where n is the average number of nodes in a layer).\n  \n   Whenever a level of the tree changes (e.g. a node is added or removed) we must\n   rebuild the subtree for that level. In order to keep tree construction and\n   allocation costs low, we also do not create nodes for leaf children, since there is\n   no need - they are length 1 and have no children, so no custom. Our tree saves an\n   order of magnitude of space and allocation costs this way.\n   */\n  var _default = _exports.default = _object.default.extend(_array.default, {\n    init() {\n      this._super(...arguments);\n\n      // Whenever the root node's length changes we need to propagate the change to\n      // users of the tree, and since the tree is meant to work like an array we should\n      // trigger a change on the `[]` key as well.\n      (0, _observer.addObserver)(this, 'root.length', () => (0, _ember.notifyPropertyChange)(this, '[]'));\n    },\n    destroy() {\n      if (this._root) {\n        this._root.destroy();\n      }\n      this._super(...arguments);\n    },\n    /*\n      The root node of the tree. Either wraps a true root, or a fake one created\n      if the root is an array.\n    */\n    root: (0, _object.computed)('rows', function () {\n      if (this._root) {\n        this._root.destroy();\n      }\n      let rows = (0, _object.get)(this, 'rows');\n      this._root = CollapseTreeNode.create({\n        value: {\n          children: rows\n        },\n        tree: this\n      });\n      return this._root;\n    }),\n    /**\n      @param {number} index - the index to find\n     @return {{ value: object, parents: Array<object> }}\n     */\n    objectAt(index) {\n      if (index >= (0, _object.get)(this, 'length') || index < 0) {\n        return undefined;\n      }\n\n      // We add a \"fake\" top level node to account for the root node\n      let normalizedIndex = index + 1;\n      let result = (0, _object.get)(this, 'root').objectAt(normalizedIndex);\n      let meta = this.get('rowMetaCache').get(result);\n\n      // Set the perceived index on the meta. It should be safe to do this here, since\n      // the row will always be retrieved via `objectAt` before being used.\n      (0, _object.set)(meta, 'index', index);\n      return result;\n    },\n    forEach(fn) {\n      let length = (0, _object.get)(this, 'length');\n      for (let i = 0; i < length; i++) {\n        fn(this.objectAt(i), i);\n      }\n    },\n    /**\n     Normalized length of the tree\n      @type {number}\n     */\n    length: (0, _object.computed)('root.length', function () {\n      // Remove the root level node from the length count\n      return (0, _object.get)(this, 'root.length') - 1;\n    })\n  });\n});","define(\"ember-table/-private/column-tree\", [\"exports\", \"@ember/object\", \"ember-table/-private/utils/observer\", \"@ember/array\", \"@ember/object/computed\", \"ember-raf-scheduler\", \"ember-table/-private/utils/array\", \"ember-table/-private/utils/sort\", \"@ember/utils\", \"ember-table/-private/utils/element\", \"ember-table/-private/utils/reorder-indicators\", \"ember-table/-private/utils/ember\", \"@ember/debug\"], function (_exports, _object, _observer, _array, _computed, _emberRafScheduler, _array2, _sort, _utils, _element, _reorderIndicators, _ember, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.WIDTH_CONSTRAINT = _exports.RESIZE_MODE = _exports.FILL_MODE = void 0;\n  /* eslint-disable getter-return */\n\n  const SCROLL_THRESHOLD = 50;\n  const DEFAULT_COLUMN_WIDTH = 100;\n  const DEFAULT_MIN_WIDTH = 50;\n  const DEFAULT_MAX_WIDTH = Infinity;\n  const LOOP_COUNT_GUARD = 500;\n  const RESIZE_MODE = _exports.RESIZE_MODE = {\n    STANDARD: 'standard',\n    FLUID: 'fluid'\n  };\n  const FILL_MODE = _exports.FILL_MODE = {\n    EQUAL_COLUMN: 'equal-column',\n    FIRST_COLUMN: 'first-column',\n    LAST_COLUMN: 'last-column',\n    NTH_COLUMN: 'nth-column'\n  };\n  const WIDTH_CONSTRAINT = _exports.WIDTH_CONSTRAINT = {\n    NONE: 'none',\n    EQ_CONTAINER: 'eq-container',\n    EQ_CONTAINER_SLACK: 'eq-container-slack',\n    GTE_CONTAINER: 'gte-container',\n    GTE_CONTAINER_SLACK: 'gte-container-slack',\n    LTE_CONTAINER: 'lte-container'\n  };\n\n  /**\n   * Divides x into y pieces where all y pieces are rounded\n   * and sum to x. Assumes x is already rounded.\n   * Returns a list of the pieces.\n   *\n   * For example:\n   * 10 / 3 => [4, 3, 3]\n   * -11 / 2 => [-6, -5]\n   */\n  function divideRounded(x, n) {\n    let neg = x < 0 === n < 0 ? 1 : -1;\n    n = Math.abs(n);\n    x = Math.abs(x);\n    let z = Math.floor(x / n);\n    let err = x - n * z;\n    let result = Array(n);\n    result.fill(neg * (z + 1), 0, err);\n    result.fill(neg * z, err);\n    return result;\n  }\n  const TableColumnMeta = _object.default.extend({\n    // If no width is set on the column itself, we cache a temporary width on the\n    // meta object. This is set to the default width.\n    _width: DEFAULT_COLUMN_WIDTH,\n    isLeaf: (0, _computed.readOnly)('_node.isLeaf'),\n    isFixed: (0, _computed.readOnly)('_node.isFixed'),\n    isSortable: (0, _computed.readOnly)('_node.isSortable'),\n    isResizable: (0, _computed.readOnly)('_node.isResizable'),\n    isReorderable: (0, _computed.readOnly)('_node.isReorderable'),\n    isSlack: (0, _computed.readOnly)('_node.isSlack'),\n    width: (0, _computed.readOnly)('_node.width'),\n    offsetLeft: (0, _computed.readOnly)('_node.offsetLeft'),\n    offsetRight: (0, _computed.readOnly)('_node.offsetRight'),\n    rowSpan: (0, _object.computed)('isLeaf', '_node.{depth,tree.root.maxChildDepth}', function () {\n      if (!this.get('isLeaf')) {\n        return 1;\n      }\n      let maxDepth = this.get('_node.tree.root.maxChildDepth');\n      let depth = this.get('_node.depth');\n      return maxDepth - (depth - 1);\n    }),\n    columnSpan: (0, _object.computed)('isLeaf', '_node.leaves.length', function () {\n      if (this.get('isLeaf')) {\n        return 1;\n      }\n      return this.get('_node.leaves.length');\n    }),\n    index: (0, _object.computed)('isLeaf', '_node.offsetIndex', function () {\n      if (this.get('isLeaf')) {\n        return this.get('_node.offsetIndex');\n      }\n    }),\n    isLastRendered: (0, _computed.readOnly)('_node.isLastRendered'),\n    sortIndex: (0, _object.computed)('_node.{tree.sorts.[],column.valuePath}', function () {\n      let valuePath = this.get('_node.column.valuePath');\n      let sorts = this.get('_node.tree.sorts');\n      let sortIndex = 0;\n      for (let i = 0; i < (0, _object.get)(sorts, 'length'); i++) {\n        let sorting = (0, _array2.objectAt)(sorts, i);\n        if ((0, _object.get)(sorting, 'valuePath') === valuePath) {\n          sortIndex = i + 1;\n          break;\n        }\n      }\n      return sortIndex;\n    }),\n    isSorted: (0, _computed.gt)('sortIndex', 0),\n    isMultiSorted: (0, _computed.gt)('_node.tree.sorts.length', 1),\n    isSortedAsc: (0, _object.computed)('_node.tree.sorts.[]', 'sortIndex', function () {\n      let sortIndex = this.get('sortIndex');\n      let sorts = this.get('_node.tree.sorts');\n      return (0, _object.get)((0, _array2.objectAt)(sorts, sortIndex - 1), 'isAscending');\n    })\n  });\n\n  /**\n    Single node of a ColumnTree\n  */\n  const ColumnTreeNode = _object.default.extend({\n    _subcolumnNodes: null,\n    isSlack: false,\n    init() {\n      this._super(...arguments);\n      let tree = (0, _object.get)(this, 'tree');\n      let parent = (0, _object.get)(this, 'parent');\n      let column = (0, _object.get)(this, 'column');\n      if (!parent) {\n        this.isRoot = true;\n      } else {\n        let columnMetaCache = (0, _object.get)(tree, 'columnMetaCache');\n        let meta = columnMetaCache.getOrCreate(column, TableColumnMeta);\n        (0, _object.set)(meta, '_node', this);\n        meta.registerElement = (...args) => this.registerElement(...args);\n        meta.startResize = (...args) => tree.startResize(this, ...args);\n        meta.updateResize = (...args) => tree.updateResize(this, ...args);\n        meta.endResize = (...args) => tree.endResize(this, ...args);\n        meta.startReorder = (...args) => tree.startReorder(this, ...args);\n        meta.updateReorder = (...args) => tree.updateReorder(this, ...args);\n        meta.endReorder = (...args) => tree.endReorder(this, ...args);\n\n        // Changes to the value directly should properly update all computeds on this\n        // node, but we need to manually propagate changes upwards to notify any other\n        // watchers\n        this._notifyMaxChildDepth = () => (0, _ember.notifyPropertyChange)(parent, 'maxChildDepth');\n        this._notifyLeaves = () => (0, _ember.notifyPropertyChange)(parent, 'leaves');\n        (0, _observer.addObserver)(this, 'maxChildDepth', this._notifyMaxChildDepth);\n        (0, _observer.addObserver)(this, 'leaves.[]', this._notifyLeaves);\n      }\n    },\n    destroy() {\n      this.cleanSubcolumnNodes();\n      this._super(...arguments);\n    },\n    /**\n      Fully destroys the child nodes in the event that they change or that this\n      node is destroyed. If children are not destroyed, they will leak memory due\n      to dangling references in Ember Meta.\n    */\n    cleanSubcolumnNodes() {\n      if (this._subcolumnNodes !== null) {\n        this._subcolumnNodes.forEach(n => n.destroy());\n        this._subcolumnNodes = null;\n      }\n    },\n    subcolumnNodes: (0, _object.computed)('column.subcolumns.[]', 'tree.widthConstraint', function () {\n      this.cleanSubcolumnNodes();\n      if ((0, _object.get)(this, 'isLeaf')) {\n        return;\n      }\n      let tree = (0, _object.get)(this, 'tree');\n      let parent = this;\n      this._subcolumnNodes = (0, _array.A)((0, _object.get)(this, 'column.subcolumns').map(column => ColumnTreeNode.create({\n        column,\n        tree,\n        parent\n      })));\n      let isRoot = (0, _object.get)(this, 'isRoot');\n      let isSlackModeEnabled = (0, _object.get)(tree, 'isSlackModeEnabled');\n      if (isRoot && isSlackModeEnabled) {\n        let slackColumnNode = ColumnTreeNode.create({\n          column: {\n            isResizable: false,\n            isReorderable: false,\n            minWidth: 0,\n            width: 0\n          },\n          tree,\n          parent,\n          isSlack: true\n        });\n        this._subcolumnNodes.push(slackColumnNode);\n      }\n      return this._subcolumnNodes;\n    }),\n    isLeaf: (0, _object.computed)('column.subcolumns.[]', 'isRoot', function () {\n      let subcolumns = (0, _object.get)(this, 'column.subcolumns');\n      if ((0, _object.get)(this, 'isRoot')) {\n        return false;\n      }\n      return !subcolumns || (0, _object.get)(subcolumns, 'length') === 0;\n    }),\n    isSortable: (0, _object.computed)('column.isSortable', 'tree.enableSort', function () {\n      let enableSort = (0, _object.get)(this, 'tree.enableSort');\n      let valuePath = (0, _object.get)(this, 'column.valuePath');\n      let isSortable = (0, _object.get)(this, 'column.isSortable');\n      let isLeaf = (0, _object.get)(this, 'isLeaf');\n      return isLeaf === true && enableSort !== false && isSortable !== false && typeof valuePath === 'string';\n    }),\n    isReorderable: (0, _object.computed)('column.isReorderable', 'tree.enableReorder', function () {\n      let enableReorder = (0, _object.get)(this, 'tree.enableReorder');\n      let isReorderable = (0, _object.get)(this, 'column.isReorderable');\n      return enableReorder !== false && isReorderable !== false;\n    }),\n    isResizable: (0, _object.computed)('column.isResizable', 'tree.enableResize', function () {\n      let isLeaf = (0, _object.get)(this, 'isLeaf');\n      if (isLeaf) {\n        let enableResize = (0, _object.get)(this, 'tree.enableResize');\n        let isResizable = (0, _object.get)(this, 'column.isResizable');\n        return enableResize !== false && isResizable !== false;\n      } else {\n        let subcolumns = (0, _object.get)(this, 'subcolumnNodes');\n        return subcolumns.some(s => (0, _object.get)(s, 'isResizable'));\n      }\n    }),\n    isFixed: (0, _object.computed)('parent.{isFixed,isRoot}', 'column.isFixed', function () {\n      if ((0, _object.get)(this, 'parent.isRoot')) {\n        return (0, _object.get)(this, 'column.isFixed');\n      }\n      return (0, _object.get)(this, 'parent.isFixed');\n    }),\n    depth: (0, _object.computed)('parent.depth', function () {\n      if ((0, _object.get)(this, 'parent')) {\n        return (0, _object.get)(this, 'parent.depth') + 1;\n      }\n      return 0;\n    }),\n    maxChildDepth: (0, _object.computed)('isLeaf', 'subcolumns.@each.depth', function () {\n      if ((0, _object.get)(this, 'isLeaf')) {\n        return (0, _object.get)(this, 'depth');\n      }\n      return Math.max(...(0, _object.get)(this, 'subcolumnNodes').map(s => (0, _object.get)(s, 'maxChildDepth')));\n    }),\n    leaves: (0, _object.computed)('isLeaf', 'subcolumnNodes.{[],@each.leaves}', function () {\n      if ((0, _object.get)(this, 'isLeaf')) {\n        return [this];\n      }\n      return (0, _object.get)(this, 'subcolumnNodes').reduce((leaves, subcolumn) => {\n        leaves.push(...(0, _object.get)(subcolumn, 'leaves'));\n        return leaves;\n      }, (0, _array.A)());\n    }),\n    minWidth: (0, _object.computed)('column.minWidth', function () {\n      if ((0, _object.get)(this, 'isLeaf')) {\n        let columnMinWidth = (0, _object.get)(this, 'column.minWidth');\n        return typeof columnMinWidth === 'number' ? columnMinWidth : DEFAULT_MIN_WIDTH;\n      }\n      return (0, _object.get)(this, 'subcolumnNodes').reduce((sum, subcolumn) => {\n        let subcolumnMinWidth = (0, _object.get)(subcolumn, 'minWidth');\n        return sum + subcolumnMinWidth;\n      }, 0);\n    }),\n    maxWidth: (0, _object.computed)('column.maxWidth', function () {\n      if ((0, _object.get)(this, 'isLeaf')) {\n        let columnMaxWidth = (0, _object.get)(this, 'column.maxWidth');\n        return typeof columnMaxWidth === 'number' ? columnMaxWidth : DEFAULT_MAX_WIDTH;\n      }\n      return (0, _object.get)(this, 'subcolumnNodes').reduce((sum, subcolumn) => {\n        let subcolumnMaxWidth = (0, _object.get)(subcolumn, 'maxWidth');\n        return sum + subcolumnMaxWidth;\n      }, 0);\n    }),\n    width: (0, _object.computed)('isLeaf', 'subcolumnNodes.@each.width', 'column.width', {\n      get() {\n        if ((0, _object.get)(this, 'isLeaf')) {\n          let column = (0, _object.get)(this, 'column');\n          let columnWidth = (0, _object.get)(column, 'width');\n          if (typeof columnWidth === 'number') {\n            return columnWidth;\n          } else {\n            let meta = (0, _object.get)(this, 'tree.columnMetaCache').get(column);\n            return (0, _object.get)(meta, '_width');\n          }\n        }\n        return (0, _object.get)(this, 'subcolumnNodes').reduce((sum, subcolumn) => {\n          let subcolumnWidth = (0, _object.get)(subcolumn, 'width');\n          return sum + subcolumnWidth;\n        }, 0);\n      },\n      set(key, newWidth) {\n        let oldWidth = (0, _object.get)(this, 'width');\n        let isResizable = (0, _object.get)(this, 'isResizable');\n        let isSlack = (0, _object.get)(this, 'isSlack');\n        if (!isResizable && !isSlack) {\n          return oldWidth;\n        }\n        let delta = newWidth - oldWidth;\n        let minWidth = (0, _object.get)(this, 'minWidth');\n        let maxWidth = (0, _object.get)(this, 'maxWidth');\n        delta = Math.max(Math.min(oldWidth + delta, maxWidth), minWidth) - oldWidth;\n        if (delta === 0) {\n          return oldWidth;\n        }\n        if ((0, _object.get)(this, 'isLeaf')) {\n          let column = (0, _object.get)(this, 'column');\n          let columnWidth = (0, _object.get)(column, 'width');\n          let width = oldWidth + delta;\n          if (typeof columnWidth === 'number') {\n            (0, _object.set)(column, 'width', width);\n          } else {\n            let meta = (0, _object.get)(this, 'tree.columnMetaCache').get(column);\n            (0, _object.set)(meta, '_width', width);\n          }\n          return width;\n        } else {\n          let subcolumns = (0, _object.get)(this, 'subcolumnNodes');\n\n          // Delta can only be rendered at a pixel level of precision in tables in\n          // some browsers, so we round and distribute the remainder as well. We also\n          // don't know when we may hit a constraint (e.g. minWidth) so we have to do\n          // this repeatedly. We take the largest chunk we can and try to fit it into\n          // each piece in a loop.\n\n          // We distribute chunks to the columns starting from the column with the\n          // smallest width to the column with the largest width.\n          let sortedSubcolumns = subcolumns.sortBy('width').filter(n => (0, _object.get)(n, 'isResizable')).reverse();\n          let loopCount = 0;\n          let prevDelta = 0;\n          delta = delta > 0 ? Math.floor(delta) : Math.ceil(delta);\n          while (delta !== 0) {\n            let deltaChunks = divideRounded(delta, sortedSubcolumns.length);\n            for (let i = 0; i < deltaChunks.length; i++) {\n              let subcolumn = sortedSubcolumns[i];\n              let deltaChunk = deltaChunks[i];\n              let oldWidth = (0, _object.get)(subcolumn, 'width');\n              let targetWidth = oldWidth + deltaChunk;\n              (0, _object.set)(subcolumn, 'width', targetWidth);\n              let newWidth = (0, _object.get)(subcolumn, 'width');\n\n              // subtract the amount that changed, if any\n              delta -= newWidth - oldWidth;\n              if (delta === 0) {\n                break;\n              }\n            }\n            delta = delta > 0 ? Math.floor(delta) : Math.ceil(delta);\n\n            // If we weren't able to change the delta at all, then we hit a hard\n            // barrier. This can happen when a table has too many columns to size\n            // down, for instance.\n            if (prevDelta === delta) {\n              break;\n            }\n            prevDelta = delta;\n            loopCount++;\n            if (loopCount > LOOP_COUNT_GUARD) {\n              throw new Error('loop count exceeded guard while distributing width');\n            }\n          }\n          return (0, _object.get)(this, 'width');\n        }\n      }\n    }),\n    contentWidth: (0, _object.computed)('subcolumnNodes.@each.{isSlack,width}', function () {\n      return this.get('subcolumnNodes').reduce((sum, column) => {\n        return column.get('isSlack') ? sum : sum + column.get('width');\n      }, 0);\n    }),\n    offsetIndex: (0, _object.computed)('parent.{offsetIndex,subcolumnNodes.[]}', function () {\n      let parent = (0, _object.get)(this, 'parent');\n      if (!parent) {\n        return 0;\n      }\n      let subcolumns = (0, _object.get)(parent, 'subcolumnNodes');\n      let offsetIndex = (0, _object.get)(parent, 'offsetIndex');\n      for (let column of subcolumns) {\n        if (column === this) {\n          break;\n        }\n        offsetIndex += 1;\n      }\n      return offsetIndex;\n    }),\n    offsetLeft: (0, _object.computed)('parent.{offsetLeft,width}', function () {\n      let parent = (0, _object.get)(this, 'parent');\n      if (!parent) {\n        return 0;\n      }\n      let subcolumns = (0, _object.get)(parent, 'subcolumnNodes');\n      let offsetLeft = (0, _object.get)(parent, 'offsetLeft');\n      for (let column of subcolumns) {\n        if (column === this) {\n          break;\n        }\n        offsetLeft += (0, _object.get)(column, 'width');\n      }\n      return offsetLeft;\n    }),\n    offsetRight: (0, _object.computed)('parent.{offsetRight,width}', function () {\n      let parent = (0, _object.get)(this, 'parent');\n      if (!parent) {\n        return 0;\n      }\n      let subcolumns = (0, _object.get)(parent, 'subcolumnNodes').slice().reverse();\n      let offsetRight = (0, _object.get)(parent, 'offsetRight');\n      for (let column of subcolumns) {\n        if (column === this) {\n          break;\n        }\n        offsetRight += (0, _object.get)(column, 'width');\n      }\n      return offsetRight;\n    }),\n    /**\n     * Value is `true` if any of the following are true:\n     *\n     * 1) this is the slack leaf and has non-zero width\n     * 2) this is the rightmost leaf and there is no slack leaf\n     * 3) this is the rightmost leaf and the slack leaf has zero width\n     *\n     * Use this to style the rightmost column.\n     */\n    isLastRendered: (0, _object.computed)('tree.root.leaves.length', 'tree.root.leaves.lastObject.{isSlack,width}', 'offsetIndex', 'isLeaf', 'isSlack', 'width', function () {\n      let isLeaf = (0, _object.get)(this, 'isLeaf');\n      if (!isLeaf) {\n        return false;\n      }\n      let tree = (0, _object.get)(this, 'tree');\n      let leaves = (0, _object.get)(tree, 'root.leaves');\n      let lastLeaf = (0, _object.get)(leaves, 'lastObject');\n\n      // calculate index from the right\n      let offsetIndex = (0, _object.get)(this, 'offsetIndex');\n      let rightOffsetIndex = leaves.length - offsetIndex - 1;\n      if (rightOffsetIndex === 0) {\n        let isSlack = (0, _object.get)(this, 'isSlack');\n        let width = (0, _object.get)(this, 'width');\n        return !isSlack || width > 0;\n      } else if (rightOffsetIndex === 1 && (0, _object.get)(lastLeaf, 'isSlack')) {\n        return (0, _object.get)(lastLeaf, 'width') === 0;\n      }\n      return false;\n    }),\n    registerElement(element) {\n      this.element = element;\n    }\n  });\n  var _default = _exports.default = _object.default.extend({\n    init() {\n      this._super(...arguments);\n      this.token = new _emberRafScheduler.Token();\n      this._root = null;\n      this._sortColumnsByFixed = this.sortColumnsByFixed.bind(this);\n      this._ensureWidthConstraint = this.ensureWidthConstraint.bind(this);\n      (0, _observer.addObserver)(this, 'columns.@each.isFixed', this._sortColumnsByFixed);\n      (0, _observer.addObserver)(this, 'widthConstraint', this._ensureWidthConstraint);\n    },\n    destroy() {\n      this.token.cancel();\n      if (this._root) {\n        this._root.destroy();\n      }\n      (0, _observer.removeObserver)(this, 'columns.@each.isFixed', this._sortColumnsByFixed);\n      (0, _observer.removeObserver)(this, 'widthConstraint', this._ensureWidthConstraint);\n      this._super(...arguments);\n    },\n    root: (0, _object.computed)('columns', function () {\n      if (this._root) {\n        this._root.destroy();\n      }\n      let columns = (0, _object.get)(this, 'columns');\n      this._root = ColumnTreeNode.create({\n        column: {\n          subcolumns: columns\n        },\n        tree: this\n      });\n      return this._root;\n    }),\n    rows: (0, _object.computed)('root.{maxChildDepth,leaves.[]}', function () {\n      let rows = (0, _array.A)();\n      let root = (0, _object.get)(this, 'root');\n      let maxDepth = (0, _object.get)(root, 'maxChildDepth');\n      let previousLevel = [root];\n      for (let i = 0; i < maxDepth; i++) {\n        let currentLevel = previousLevel.reduce((children, node) => {\n          if (!(0, _object.get)(node, 'isLeaf')) {\n            children.push(...(0, _object.get)(node, 'subcolumnNodes'));\n          }\n          return children;\n        }, []);\n        let columns = currentLevel.map(node => (0, _object.get)(node, 'column'));\n        rows.pushObject((0, _array.A)(columns));\n        previousLevel = currentLevel;\n      }\n      return rows;\n    }),\n    leaves: (0, _object.computed)('root.leaves.[]', function () {\n      return (0, _array.A)((0, _object.get)(this, 'root.leaves').map(n => n.column));\n    }),\n    leftFixedNodes: (0, _object.computed)('root.subcolumnNodes.@each.isFixed', function () {\n      return (0, _object.get)(this, 'root.subcolumnNodes').filterBy('isFixed', 'left');\n    }),\n    rightFixedNodes: (0, _object.computed)('root.subcolumnNodes.@each.isFixed', function () {\n      return (0, _object.get)(this, 'root.subcolumnNodes').filterBy('isFixed', 'right');\n    }),\n    unfixedNodes: (0, _object.computed)('root.subcolumnNodes.@each.isFixed', function () {\n      return (0, _object.get)(this, 'root.subcolumnNodes').filter(s => !(0, _object.get)(s, 'isFixed'));\n    }),\n    scrollBounds: (0, _object.computed)('leftFixedNodes.@each.width', 'rightFixedNodes.@each.width', function () {\n      let {\n        left: containerLeft,\n        right: containerRight\n      } = (0, _element.getInnerClientRect)(this.container);\n      containerLeft += (0, _object.get)(this, 'leftFixedNodes').reduce((sum, n) => sum + (0, _object.get)(n, 'width'), 0);\n      containerRight -= (0, _object.get)(this, 'rightFixedNodes').reduce((sum, n) => sum + (0, _object.get)(n, 'width'), 0);\n      return {\n        containerLeft,\n        containerRight\n      };\n    }),\n    isSlackModeEnabled: (0, _object.computed)('widthConstraint', function () {\n      let widthConstraint = (0, _object.get)(this, 'widthConstraint');\n      return widthConstraint === WIDTH_CONSTRAINT.EQ_CONTAINER_SLACK || widthConstraint === WIDTH_CONSTRAINT.GTE_CONTAINER_SLACK;\n    }),\n    sortColumnsByFixed() {\n      // disable observer\n      if (this._isSorting) {\n        return;\n      }\n      this._isSorting = true;\n      let columns = (0, _object.get)(this, 'columns');\n      let sorted = (0, _sort.mergeSort)(columns, (a, b) => {\n        let aIsFixed = (0, _object.get)(a, 'isFixed');\n        let bIsFixed = (0, _object.get)(b, 'isFixed');\n        let aValue = aIsFixed === 'left' ? -1 : aIsFixed === 'right' ? 1 : 0;\n        let bValue = bIsFixed === 'left' ? -1 : bIsFixed === 'right' ? 1 : 0;\n        return aValue - bValue;\n      });\n      let alreadySorted = true;\n      for (let i = 0; i < columns.length; i++) {\n        if (sorted[i] !== columns[i]) {\n          alreadySorted = false;\n          break;\n        }\n      }\n      if (!alreadySorted) {\n        (0, _array2.splice)(columns, 0, sorted.length, ...sorted);\n      }\n      this._isSorting = false;\n    },\n    /**\n      Performs initial sizing of the table columns according to tree's\n      `initialFillMode` property, then attempts to satisfy width constraint.\n       In `eq-container-slack` and `gte-container-slack` width contraint modes,\n      this allows a default layout to be applied before slack is allocated.\n    */\n    performInitialLayout() {\n      if (!this.container) {\n        return;\n      }\n      let leaves = (0, _object.get)(this, 'root.leaves');\n\n      // ensures that min and max widths are respected _before_ `applyFillMode()`\n      // decides if the width constraint has been violated\n      leaves.forEach(leaf => {\n        let width = (0, _object.get)(leaf, 'width');\n        let minWidth = (0, _object.get)(leaf, 'minWidth');\n        let maxWidth = (0, _object.get)(leaf, 'maxWidth');\n        let newWidth = Math.min(Math.max(width, minWidth), maxWidth);\n        (0, _object.set)(leaf, 'width', newWidth);\n      });\n      let isSlackModeEnabled = (0, _object.get)(this, 'isSlackModeEnabled');\n      let initialFillMode = (0, _object.get)(this, 'initialFillMode');\n      if (isSlackModeEnabled && initialFillMode) {\n        this.applyFillMode(initialFillMode);\n      }\n      this.ensureWidthConstraint();\n    },\n    /**\n      Allocates excess whitespace to slack column (if present), then applies\n      tree's `fillMode` in attempt to satisfy its `widthConstraint`.\n     */\n    ensureWidthConstraint() {\n      if (!this.container) {\n        return;\n      }\n      let isSlackModeEnabled = (0, _object.get)(this, 'isSlackModeEnabled');\n      if (isSlackModeEnabled) {\n        this.updateSlackColumn();\n      }\n      this.applyFillMode();\n    },\n    /**\n      Resizes the slack column to fill excess whitespace in the container. If\n      table columns exceed the width of the container, the slack column is set to\n      a width of zero.\n       The slack column is only present when the `widthConstraint` property is set\n      to `eq-container-slack` or `gte-container-slack`.\n    */\n    updateSlackColumn() {\n      let slackColumn = (0, _object.get)(this, 'root.subcolumnNodes').findBy('isSlack');\n      if (slackColumn) {\n        let containerWidth = this.getContainerWidth();\n        let contentWidth = (0, _object.get)(this, 'root.contentWidth');\n        let width = Math.max(containerWidth - contentWidth, 0);\n        slackColumn.set('width', width);\n      }\n    },\n    /**\n      Attempts to satisfy tree's width constraint by resizing columns according\n      to the specifid `fillMode`. If no `fillMode` is specified, the tree's\n      own `fillMode` property will be used.\n       @param {String} fillMode\n     */\n    applyFillMode(fillMode) {\n      fillMode = fillMode || (0, _object.get)(this, 'fillMode');\n      let widthConstraint = (0, _object.get)(this, 'widthConstraint');\n      let containerWidth = this.getContainerWidth();\n      let contentWidth = (0, _object.get)(this, 'root.contentWidth');\n      let delta = containerWidth - contentWidth;\n      if (widthConstraint === WIDTH_CONSTRAINT.EQ_CONTAINER && delta !== 0 || widthConstraint === WIDTH_CONSTRAINT.EQ_CONTAINER_SLACK && delta !== 0 || widthConstraint === WIDTH_CONSTRAINT.LTE_CONTAINER && delta < 0 || widthConstraint === WIDTH_CONSTRAINT.GTE_CONTAINER && delta > 0 || widthConstraint === WIDTH_CONSTRAINT.GTE_CONTAINER_SLACK && delta > 0) {\n        if (fillMode === FILL_MODE.EQUAL_COLUMN) {\n          (0, _object.set)(this, 'root.width', containerWidth);\n        } else if (fillMode === FILL_MODE.FIRST_COLUMN) {\n          this.resizeColumn(0, delta);\n        } else if (fillMode === FILL_MODE.LAST_COLUMN) {\n          let isSlackModeEnabled = (0, _object.get)(this, 'isSlackModeEnabled');\n          let columns = (0, _object.get)(this, 'root.subcolumnNodes');\n          let lastColumnIndex = isSlackModeEnabled ? columns.length - 2 : columns.length - 1;\n          this.resizeColumn(lastColumnIndex, delta);\n        } else if (fillMode === FILL_MODE.NTH_COLUMN) {\n          let fillColumnIndex = (0, _object.get)(this, 'fillColumnIndex');\n          (true && !(!(0, _utils.isEmpty)(fillColumnIndex)) && (0, _debug.assert)(\"fillMode 'nth-column' must have a fillColumnIndex defined\", !(0, _utils.isEmpty)(fillColumnIndex)));\n          this.resizeColumn(fillColumnIndex, delta);\n        }\n      }\n    },\n    resizeColumn(index, delta) {\n      let columns = (0, _object.get)(this, 'root.subcolumnNodes');\n      let fillColumn = columns[index];\n      (true && !(fillColumn) && (0, _debug.assert)(`Invalid column index, ${index}, for a table with ${columns.length} columns`, fillColumn));\n      let oldWidth = (0, _object.get)(fillColumn, 'width');\n      (0, _object.set)(fillColumn, 'width', oldWidth + delta);\n    },\n    getContainerWidth() {\n      let containerWidthAdjustment = (0, _object.get)(this, 'containerWidthAdjustment') || 0;\n      return (0, _element.getInnerClientRect)(this.container).width * this.scale + containerWidthAdjustment;\n    },\n    getReorderBounds(node) {\n      let parent = (0, _object.get)(node, 'parent');\n      let {\n        scale\n      } = this;\n      let {\n        scrollLeft\n      } = this.container;\n      let {\n        left: containerLeft\n      } = (0, _element.getInnerClientRect)(this.container);\n      let leftBound, rightBound, nodes;\n      if ((0, _object.get)(parent, 'isRoot')) {\n        let isFixed = (0, _object.get)(node, 'isFixed');\n        if (isFixed === 'left') {\n          nodes = (0, _object.get)(this, 'leftFixedNodes');\n        } else if (isFixed === 'right') {\n          nodes = (0, _object.get)(this, 'rightFixedNodes');\n        } else {\n          nodes = (0, _object.get)(this, 'unfixedNodes');\n        }\n      } else {\n        nodes = (0, _object.get)(node, 'parent.subcolumnNodes');\n      }\n      if (true /* DEBUG */) {\n        let firstReorderableFound = false;\n        let lastReorderableFound = false;\n        for (let node of nodes) {\n          if (lastReorderableFound && (0, _object.get)(node, 'isReorderable')) {\n            (true && !(false) && (0, _debug.assert)('Non-reorderable columns may only be contiguous segments at the beginning or end of their section (i.e. node middle columns in a list).', false));\n          } else if (!firstReorderableFound && (0, _object.get)(node, 'isReorderable')) {\n            firstReorderableFound = true;\n          } else if (firstReorderableFound && !lastReorderableFound && !(0, _object.get)(node, 'isReorderable')) {\n            lastReorderableFound = true;\n          }\n        }\n      }\n      let reorderableNodes = nodes.filter(n => (0, _object.get)(n, 'isReorderable'));\n      let left = (0, _element.getOuterClientRect)(reorderableNodes[0].element).left;\n      let right = (0, _element.getOuterClientRect)(reorderableNodes[reorderableNodes.length - 1].element).right;\n      leftBound = (left - containerLeft) * scale + scrollLeft;\n      rightBound = (right - containerLeft) * scale + scrollLeft;\n      return {\n        leftBound,\n        rightBound\n      };\n    },\n    registerContainer(container) {\n      this.container = container;\n      this.scale = (0, _element.getScale)(container);\n      (0, _object.get)(this, 'root').registerElement(container);\n      _emberRafScheduler.scheduler.schedule('sync', this.ensureWidthConstraint.bind(this), this.token);\n    },\n    getClosestColumn(column, left, isFixed) {\n      // If the column is fixed, adjust finder method and offset by the scroll\n      // position since the column will appear stationary\n      if (isFixed === 'left') {\n        left -= this.container.scrollLeft;\n      } else if (isFixed === 'right') {\n        left += this.container.scrollWidth;\n        left -= this.container.scrollLeft;\n        left -= (0, _element.getInnerClientRect)(this.container).width * this.scale;\n      }\n      let subcolumns = (0, _object.get)(column.parent, 'subcolumnNodes');\n      for (let column of subcolumns) {\n        let offset = (0, _object.get)(column, 'offsetLeft');\n        if (left < offset + (0, _object.get)(column, 'width')) {\n          return column;\n        }\n      }\n      return subcolumns[subcolumns.length - 1];\n    },\n    getClosestColumnOffset(column, left, isFixed) {\n      let closestColumn = this.getClosestColumn(column, left, isFixed);\n      let offsetLeft = (0, _object.get)(closestColumn, 'offsetLeft');\n\n      // If the column is fixed, readjust the offset so that it's correct within\n      // the container\n      if (isFixed === 'left') {\n        offsetLeft += this.container.scrollLeft;\n      } else if (isFixed === 'right') {\n        offsetLeft -= this.container.scrollWidth;\n        offsetLeft += this.container.scrollLeft;\n        offsetLeft += (0, _element.getInnerClientRect)(this.container).width * this.scale;\n      }\n      return offsetLeft;\n    },\n    insertAfterColumn(parent, after, insert) {\n      if (insert === after) {\n        return;\n      }\n      let subcolumns = (0, _object.get)(parent, 'column.subcolumns');\n      let afterColumn = (0, _object.get)(after, 'column');\n      let insertColumn = (0, _object.get)(insert, 'column');\n      let afterIndex = subcolumns.indexOf(afterColumn);\n      let insertIndex = subcolumns.indexOf(insertColumn);\n      (0, _array2.move)(subcolumns, insertIndex, afterIndex);\n      (0, _ember.notifyPropertyChange)(subcolumns, '[]');\n    },\n    startReorder(node, clientX) {\n      this.clientX = clientX;\n      let bounds = this.getReorderBounds(node);\n      this._reorderMainIndicator = new _reorderIndicators.MainIndicator(this.container, node.element, bounds);\n      this._reorderDropIndicator = new _reorderIndicators.DropIndicator(this.container, node.element, bounds);\n      this.container.classList.add('is-reordering');\n    },\n    updateReorder(node, clientX) {\n      this.clientX = clientX;\n      this._updateReorder(node);\n      if (!(0, _object.get)(node, 'isFixed')) {\n        this.updateScroll(node, true, true, this._updateReorder.bind(this));\n      }\n    },\n    _updateReorder(node) {\n      let {\n        scrollLeft\n      } = this.container;\n      let realContainerLeft = (0, _element.getInnerClientRect)(this.container).left * this.scale;\n      let offset = this.clientX * this.scale - realContainerLeft + scrollLeft;\n      let width = (0, _object.get)(node, 'width');\n      let newLeft = offset - width / 2;\n      this._reorderMainIndicator.left = newLeft;\n      this._reorderDropIndicator.left = this.getClosestColumnOffset(node, offset, (0, _object.get)(node, 'isFixed'));\n      this._reorderDropIndicator.width = (0, _object.get)(this.getClosestColumn(node, this._reorderDropIndicator.left, (0, _object.get)(node, 'isFixed')), 'width');\n    },\n    endReorder(node) {\n      var _this$onReorder;\n      let {\n        scrollLeft\n      } = this.container;\n      let realContainerLeft = (0, _element.getInnerClientRect)(this.container).left * this.scale;\n      let offset = this.clientX * this.scale - realContainerLeft + scrollLeft;\n      let {\n        leftBound,\n        rightBound\n      } = this.getReorderBounds(node);\n      offset = Math.max(leftBound, offset);\n      offset = Math.min(rightBound - 1, offset);\n      let closestColumn = this.getClosestColumn(node, offset, (0, _object.get)(node, 'isFixed'));\n      this.insertAfterColumn(node.parent, closestColumn, node);\n      this._reorderMainIndicator.destroy();\n      this._reorderDropIndicator.destroy();\n      this._reorderMainIndicator = null;\n      this._reorderDropIndicator = null;\n      if (this._nextUpdateScroll) {\n        this._nextUpdateScroll.cancel();\n        this._nextUpdateScroll = null;\n      }\n      this.container.classList.remove('is-reordering');\n      (_this$onReorder = this.onReorder) === null || _this$onReorder === void 0 ? void 0 : _this$onReorder.call(this, (0, _object.get)(node, 'column'), (0, _object.get)(closestColumn, 'column'));\n    },\n    startResize(node, clientX) {\n      this.clientX = clientX;\n    },\n    updateResize(node, clientX) {\n      let delta = Math.floor((0, _object.get)(node, 'isFixed') === 'right' ? (this.clientX - clientX) * this.scale : (clientX - this.clientX) * this.scale);\n      this.clientX = clientX;\n      if (Math.abs(delta) < 1) {\n        return;\n      }\n\n      // Add the class after at least one update has occured\n      this.container.classList.add('is-resizing');\n      this._updateResize(node, delta);\n    },\n    _updateResize(node, delta) {\n      let resizeMode = (0, _object.get)(this, 'resizeMode');\n      let oldWidth = (0, _object.get)(node, 'width');\n      let minWidth = (0, _object.get)(node, 'minWidth');\n      delta = Math.max(oldWidth + delta, minWidth) - oldWidth;\n      if (resizeMode === RESIZE_MODE.FLUID) {\n        let parent = (0, _object.get)(node, 'parent');\n        let child = node;\n        let sibling;\n        while (parent && !sibling) {\n          let siblings = (0, _object.get)(parent, 'subcolumnNodes');\n          sibling = siblings[siblings.indexOf(child) + 1];\n          child = parent;\n          parent = (0, _object.get)(child, 'parent');\n        }\n        if (sibling) {\n          let siblingOldWidth = (0, _object.get)(sibling, 'width');\n          let siblingMinWidth = (0, _object.get)(sibling, 'minWidth');\n          delta = -(Math.max(siblingOldWidth - delta, siblingMinWidth) - siblingOldWidth);\n          (0, _object.set)(sibling, 'width', siblingOldWidth - delta);\n        } else {\n          delta = 0;\n        }\n      }\n      let newWidth = oldWidth + delta;\n      (0, _object.set)(node, 'width', newWidth);\n      this.ensureWidthConstraint.call(this);\n    },\n    endResize(node) {\n      var _this$onResize;\n      if (this._nextUpdateScroll) {\n        this._nextUpdateScroll.cancel();\n        this._nextUpdateScroll = null;\n      }\n      this.container.classList.remove('is-resizing');\n      (_this$onResize = this.onResize) === null || _this$onResize === void 0 ? void 0 : _this$onResize.call(this, (0, _object.get)(node, 'column'));\n    },\n    updateScroll(node, stopAtLeft, stopAtRight, callback) {\n      if (this._nextUpdateScroll) {\n        return;\n      }\n      this._nextUpdateScroll = _emberRafScheduler.scheduler.schedule('sync', () => {\n        this._nextUpdateScroll = null;\n        let container = this.container;\n        let clientX = this.clientX;\n        let {\n          scrollLeft,\n          scrollWidth\n        } = this.container;\n        let {\n          containerLeft,\n          containerRight\n        } = (0, _object.get)(this, 'scrollBounds');\n        let containerWidth = (0, _element.getOuterClientRect)(this.container).width * this.scale;\n        let distanceToLeft = Math.max(clientX - containerLeft, 2);\n        let distanceToRight = Math.max(containerRight - clientX, 2);\n        let canScrollLeft = !stopAtLeft || scrollLeft !== 0;\n        let canScrollRight = !stopAtRight || scrollLeft < scrollWidth - containerWidth;\n        if (distanceToLeft <= SCROLL_THRESHOLD && canScrollLeft || distanceToRight <= SCROLL_THRESHOLD && canScrollRight) {\n          let delta;\n          if (distanceToLeft <= SCROLL_THRESHOLD) {\n            delta = -SCROLL_THRESHOLD / distanceToLeft;\n          } else {\n            delta = SCROLL_THRESHOLD / distanceToRight;\n          }\n          delta = Math.round(delta);\n          container.scrollLeft += delta;\n          this.updateScroll(node, stopAtLeft, stopAtRight, callback);\n          callback(node, delta);\n        }\n      }, this.token);\n    }\n  });\n});","define(\"ember-table/-private/meta-cache\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.getOrCreate = getOrCreate;\n  function getOrCreate(obj, cache, Class) {\n    if (cache.has(obj) === false) {\n      cache.set(obj, Class.create ? Class.create() : new Class());\n    }\n    return cache.get(obj);\n  }\n\n  /**\n   * Substitute for `Map` that allows non-identical object keys to share\n   * identical values by specifying a key path for the associating keys.\n   *\n   * If no key path is specified, it behaves like a `Map`.\n   *\n   * @class MetaCache\n   * @constructor\n   * @param {Object} options\n   */\n  class MetaCache {\n    constructor({\n      keyPath\n    } = {}) {\n      this.keyPath = keyPath;\n\n      // in order to prevent memory leaks, we need to be able to clean the cache\n      // manually when the table is destroyed or updated; this is why we use a\n      // Map instead of WeakMap\n      this._map = new Map();\n    }\n    get(obj) {\n      let key = this._keyFor(obj);\n      let entry = this._map.get(key);\n      return entry ? entry[1] : entry;\n    }\n    getOrCreate(obj, Class) {\n      return getOrCreate(obj, this, Class);\n    }\n    set(obj, meta) {\n      let key = this._keyFor(obj);\n      this._map.set(key, [obj, meta]);\n    }\n    has(obj) {\n      let key = this._keyFor(obj);\n      return this._map.has(key);\n    }\n    delete(obj) {\n      let key = this._keyFor(obj);\n      this._map.delete(key);\n    }\n    entries() {\n      return this._map.values();\n    }\n    _keyFor(obj) {\n      // falls back to `obj` as key if a legitimate key cannot be produced\n      if (!obj || !this.keyPath) {\n        return obj;\n      }\n      let key = (0, _object.get)(obj, this.keyPath);\n      return key ? key : obj;\n    }\n  }\n  _exports.default = MetaCache;\n});","define(\"ember-table/-private/sticky/table-sticky-polyfill\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.setupTableStickyPolyfill = setupTableStickyPolyfill;\n  _exports.teardownTableStickyPolyfill = teardownTableStickyPolyfill;\n  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n  function _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n  function _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n  /* global ResizeSensor */\n  /* eslint-disable ember/no-observers */\n\n  const TABLE_POLYFILL_MAP = new WeakMap();\n  class TableStickyPolyfill {\n    constructor(element) {\n      _defineProperty(this, \"setupRowMutationObservers\", () => {\n        let rows = Array.from(this.element.children);\n        this.rowMutationObservers = rows.map(row => {\n          let observer = new MutationObserver(this.repositionStickyElements);\n          observer.observe(row, {\n            childList: true\n          });\n          return observer;\n        });\n      });\n      _defineProperty(this, \"teardownRowMutationObservers\", () => {\n        this.rowMutationObservers.forEach(observer => observer.disconnect());\n      });\n      _defineProperty(this, \"setupResizeSensors\", () => {\n        let rows = Array.from(this.element.children);\n        let firstCells = rows.map(r => r.firstElementChild);\n        this.resizeSensors = firstCells.map(cell => {\n          let sensor = new ResizeSensor(cell, this.repositionStickyElements);\n          return [cell, sensor];\n        });\n      });\n      _defineProperty(this, \"teardownResizeSensors\", () => {\n        this.resizeSensors.forEach(([cell, sensor]) => sensor.detach(cell));\n      });\n      /**\n         Repositions all the `td`|`th` inside each `tr` of the `tfoot`|`thead`.\n         The `td` and `th` cells must be sticky due to existing Chrome and Edge bugs\n         that don't apply the sticky to the footer/header:\n           * Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=702927\n           * Edge bug: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/16765952/\n           * More details at: https://caniuse.com/#search=fixed\n          Calculates the table's scale and scrollable height and, working top-down for header or bottom-up for footer,\n         sets the cells for each row to be `position:sticky` with a calculated `top` or `bottom` offset so that they\n         appear correctly fixed in the table.\n         The calculation takes into account the height of each row as it goes, adjusting the next row's top|bottom offset\n         accordingly.\n          For example, assuming the following table with 2 thead and 2 tfoot rows:\n           * There will be 2 TableStickyPolyfills created, one for the thead, one for the tfoot\n           * For the thead TableStickyPolifyill, its `repositionStickyElements` will\n             start at row 0, setting each of its `th` cells' `top` value to `0px`, then\n             add row 0's height (25px) to its current offset and move on to row 1,\n             where it will set each of that row's `th` cells' `top` to the current\n             offset of `25px`.\n           * For the tfoot TableStickyPolyfill, its `repositionStickyElements` will\n             start at the bottom-most row, row 1, and set each of its `td` cells'\n             `bottom` value to `0px`, then add row 1's height (20px) to its current\n             offset and move on to the next row, row 0, where it will set each of that\n             row's `td` cells' `bottom` to the current offset of `20px`.\n        +--------------------------------------------+\n       |+------------------------------------------+|\n       ||thead                                     ||\n       ||+----------------------------------------+||\n       |||row 0 (height: 25px)  top: 0px          |||\n       ||+----------------------------------------+||\n       ||+----------------------------------------+||\n       |||row 1                 top: 25px         |||\n       ||+----------------------------------------+||\n       |+------------------------------------------+|\n       |                                            |\n       |           ....   tbody  ....               |\n       |                                            |\n       |+------------------------------------------+|\n       ||tfoot                                     ||\n       ||+----------------------------------------+||\n       |||row 0                     bottom: 20px  |||\n       ||+----------------------------------------+||\n       ||+----------------------------------------+||\n       |||row 1  (height: 20px)     bottom: 0px   |||\n       ||+----------------------------------------+||\n       |+------------------------------------------+|\n       +--------------------------------------------+\n        If a table has enough header|footer rows, they cumulatively add up to greater than the\n       table's height. In this case, the standard calculation of `stick`ing each\n       row to its calculated offset from the top|bottom will cause the\n       header|footer rows to stick over *all* of the scrollable body rows,\n       preventing them (as well as possibly some header|footer rows) from being\n       seen.\n        To account for this potential situation, the repositioning sets a maximum percentage height\n       for the header|footer of 50%. If the rows take up greater than that percentage of the table's\n       height, all of the overflowing rows are positioned using a negative offset so that they\n       will be visible when scrolling to the top|bottom of the table for thead|tfoot overflow rows, respectively.\n        For example, the following table has footer rows totaling 75px, but the table's height\n       is only 120px. The footer rows take up more than 50% of the table, so the bottom-most\n       footer row (2) is positioned at (tableHeight - footerHeight = 75 - 120) -45px, the next\n       footer row (1) is positioned at (-45 + 30) -15px, and the top-most footer row (0)\n       is at (-15 + 20) 5px.\n        The effect is that the top row (0) will be fully visible, row 1 will be partially visible,\n       and row 2 will be hidden until the table is scrolled all the way to the bottom.\n       +-----------------------------------+          ------------^---\n      |table                              |                      |Table height: 120px\n      |                                   |                      |\n      |                                   |                      |\n      |                                   |                      |\n      |                                   |                      |\n      |                                   |                      |\n      |+--------------------------------+ | ^---                 |\n      ||tfoot                           | | |                    |\n      ||+------------------------------+| | |tfoot height        |\n      |||row 0 (20px)     bottom:   5px|| | |20+25+30 = 75px     |\n      |||                              || | |                    |\n      |||                              || | |                    |\n      ||+------------------------------+| | |                    |\n      ||+------------------------------+| | |                    |\n      |||row 1 (25px)     bottom: -15px|| | |                    |\n      |||                              || | |                    |\n      +-----------------------------------+ |        ------------v---\n       |+                              +|   |\n       |+------------------------------+|   |\n       ||row 2 (30px)     bottom: -45px||   |\n       ||                              ||   |\n       |+------------------------------+|   |\n       |                                |   |\n       +--------------------------------+   v---\n       */\n      _defineProperty(this, \"repositionStickyElements\", () => {\n        let table = this.element.parentNode;\n        let scale = table.offsetHeight / table.getBoundingClientRect().height;\n        let containerHeight = table.parentNode.offsetHeight;\n\n        // exclude ResizeSensor divs\n        let rows = Array.from(this.element.querySelectorAll('tr'));\n        let offset = 0;\n        let heights = rows.map(r => r.getBoundingClientRect().height * scale);\n        let totalHeight = heights.reduce((sum, h) => sum += h, 0);\n        let maxHeight = containerHeight * this.maxStickyProportion;\n        if (totalHeight > maxHeight) {\n          offset = maxHeight - totalHeight;\n        }\n        for (let i = 0; i < rows.length; i++) {\n          // Work top-down (index order) for 'top', bottom-up (reverse index\n          // order) for 'bottom' rows\n          let index = this.side === 'top' ? i : rows.length - 1 - i;\n          let row = rows[index];\n          let height = heights[index];\n          for (let child of row.children) {\n            child.style.position = '-webkit-sticky';\n            child.style.position = 'sticky';\n            child.style[this.side] = `${offset}px`;\n          }\n          offset += height;\n        }\n      });\n      this.element = element;\n      this.maxStickyProportion = 0.5;\n      this.element.style.position = 'static';\n      this.side = element.tagName === 'THEAD' ? 'top' : 'bottom';\n      this.setupRaf = requestAnimationFrame(this.repositionStickyElements);\n      this.setupResizeSensors();\n      this.setupRowMutationObservers();\n      this.mutationObserver = new MutationObserver(() => {\n        this.teardownResizeSensors();\n        this.teardownRowMutationObservers();\n        this.setupResizeSensors();\n        this.setupRowMutationObservers();\n        this.repositionStickyElements();\n      });\n      this.mutationObserver.observe(this.element, {\n        childList: true\n      });\n    }\n    destroy() {\n      this.element.style.position = 'sticky';\n      cancelAnimationFrame(this.setupRaf);\n      this.teardownResizeSensors();\n      this.teardownRowMutationObservers();\n      this.mutationObserver.disconnect();\n    }\n  }\n  function setupTableStickyPolyfill(element) {\n    TABLE_POLYFILL_MAP.set(element, new TableStickyPolyfill(element));\n  }\n  function teardownTableStickyPolyfill(element) {\n    TABLE_POLYFILL_MAP.get(element).destroy();\n    TABLE_POLYFILL_MAP.delete(element);\n  }\n});","define(\"ember-table/-private/utils/array\", [\"exports\", \"@ember/array\", \"@ember/debug\"], function (_exports, _array, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.move = move;\n  _exports.objectAt = objectAt;\n  _exports.splice = splice;\n  /**\n    Genericizes `objectAt` so it can be run against a normal array or an Ember array\n  \n    @param {object|Array} arr\n    @param {number} index\n    @return {any}\n  */\n  function objectAt(arr, index) {\n    (true && !((0, _array.isArray)(arr) || typeof arr.objectAt === 'function') && (0, _debug.assert)('arr must be an instance of a Javascript Array or implement `objectAt`', (0, _array.isArray)(arr) || typeof arr.objectAt === 'function'));\n    if (typeof arr.objectAt === 'function') {\n      return arr.objectAt(index);\n    }\n    return arr[index];\n  }\n  function splice(items, start, count, ...add) {\n    if (typeof items.replace === 'function' && typeof items.objectAt === 'function') {\n      return items.replace(start, count, add);\n    }\n    return items.splice(start, count, ...add);\n  }\n\n  /**\n   * Cycle shift an internal [start..end] to [start + 1...end, start].\n   */\n  function move(items, start, end) {\n    let sourceItem = objectAt(items, start);\n    splice(items, start, 1);\n    splice(items, end, 0, sourceItem);\n  }\n});","define(\"ember-table/-private/utils/default-to\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = defaultTo;\n  let VALUES = new WeakMap();\n  function valuesFor(obj) {\n    if (!VALUES.has(obj)) {\n      VALUES.set(obj, Object.create(null));\n    }\n    return VALUES.get(obj);\n  }\n  function defaultTo(defaultValue) {\n    return (0, _object.computed)({\n      get(key) {\n        let values = valuesFor(this);\n        if (!(key in values)) {\n          values[key] = typeof defaultValue === 'function' ? defaultValue() : defaultValue;\n        }\n        return values[key];\n      },\n      set(key, value) {\n        let values = valuesFor(this);\n        if (value === undefined) {\n          values[key] = typeof defaultValue === 'function' ? defaultValue() : defaultValue;\n        } else {\n          values[key] = value;\n        }\n        return values[key];\n      }\n    });\n  }\n});","define(\"ember-table/-private/utils/element\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.closest = closest;\n  _exports.getInnerClientRect = getInnerClientRect;\n  _exports.getOuterClientRect = getOuterClientRect;\n  _exports.getScale = getScale;\n  const VENDOR_MATCH_FNS = ['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'];\n  let ELEMENT_MATCH_FN;\n  function setElementMatchFn(el) {\n    VENDOR_MATCH_FNS.forEach(fn => {\n      if (ELEMENT_MATCH_FN === undefined && typeof el[fn] === 'function') {\n        ELEMENT_MATCH_FN = fn;\n      }\n    });\n  }\n  function closest(el, selector) {\n    if (ELEMENT_MATCH_FN === undefined) {\n      setElementMatchFn(el);\n    }\n    while (el) {\n      // TODO add explicit test\n      if (el[ELEMENT_MATCH_FN](selector)) {\n        return el;\n      }\n      el = el.parentElement;\n    }\n    return null;\n  }\n  function getScale(element) {\n    let rect = element.getBoundingClientRect();\n    if (element.offsetHeight === rect.height || rect.height === 0) {\n      return 1;\n    } else {\n      return element.offsetHeight / rect.height;\n    }\n  }\n  function getInnerClientRect(element) {\n    let scale = getScale(element);\n    let outerClientRect = element.getBoundingClientRect();\n    let computedStyle = window.getComputedStyle(element);\n    let borderTopWidth = parseFloat(computedStyle.getPropertyValue('border-top-width')) / scale;\n    let borderBottomWidth = parseFloat(computedStyle.getPropertyValue('border-bottom-width')) / scale;\n    let borderLeftWidth = parseFloat(computedStyle.getPropertyValue('border-left-width')) / scale;\n    let borderRightWidth = parseFloat(computedStyle.getPropertyValue('border-right-width')) / scale;\n    return {\n      top: outerClientRect.top + borderTopWidth,\n      bottom: outerClientRect.bottom - borderBottomWidth,\n      left: outerClientRect.left + borderLeftWidth,\n      right: outerClientRect.right - borderRightWidth,\n      height: outerClientRect.height - borderTopWidth - borderBottomWidth,\n      width: outerClientRect.width - borderLeftWidth - borderRightWidth\n    };\n  }\n  function getOuterClientRect(element) {\n    return element.getBoundingClientRect();\n  }\n});","define(\"ember-table/-private/utils/ember\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.notifyPropertyChange = void 0;\n  const notifyPropertyChange = _exports.notifyPropertyChange = _object.notifyPropertyChange;\n});","define(\"ember-table/-private/utils/observer\", [\"exports\", \"@ember/debug\", \"@ember/object\", \"@ember/object/observers\"], function (_exports, _debug, _object, _observers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.removeObserver = _exports.observer = _exports.addObserver = void 0;\n  // eslint-disable-next-line no-restricted-imports\n\n  // eslint-disable-next-line no-restricted-imports\n\n  const USE_ASYNC_OBSERVERS = true;\n  function asyncObserver(...args) {\n    let fn = args.pop();\n    let dependentKeys = args;\n    let sync = false;\n    return (0, _object.observer)({\n      dependentKeys,\n      fn,\n      sync\n    });\n  }\n  function asyncAddObserver(...args) {\n    let obj, path, target, method;\n    let sync = false;\n    obj = args[0];\n    path = args[1];\n    (true && !(args.length === 3 || args.length === 4) && (0, _debug.assert)(`Expected 3 or 4 args for addObserver, got ${args.length}`, args.length === 3 || args.length === 4));\n    if (args.length === 3) {\n      target = null;\n      method = args[2];\n    } else if (args.length === 4) {\n      target = args[2];\n      method = args[3];\n    }\n    return (0, _observers.addObserver)(obj, path, target, method, sync);\n  }\n  function asyncRemoveObserver(...args) {\n    let obj, path, target, method;\n    let sync = false;\n    obj = args[0];\n    path = args[1];\n    (true && !(args.length === 3 || args.length === 4) && (0, _debug.assert)(`Expected 3 or 4 args for addObserver, got ${args.length}`, args.length === 3 || args.length === 4));\n    if (args.length === 3) {\n      target = null;\n      method = args[2];\n    } else {\n      target = args[2];\n      method = args[3];\n    }\n    return (0, _observers.removeObserver)(obj, path, target, method, sync);\n  }\n  const observer = _exports.observer = USE_ASYNC_OBSERVERS ? asyncObserver : _object.observer;\n  const addObserver = _exports.addObserver = USE_ASYNC_OBSERVERS ? asyncAddObserver : _observers.addObserver;\n  const removeObserver = _exports.removeObserver = _observers.removeObserver ? asyncRemoveObserver : _observers.removeObserver;\n});","define(\"ember-table/-private/utils/reorder-indicators\", [\"exports\", \"ember-table/-private/utils/element\"], function (_exports, _element) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.MainIndicator = _exports.DropIndicator = void 0;\n  function createElement(mainClass, dimensions) {\n    let element = document.createElement('div');\n    element.classList.add(mainClass);\n    for (let key in dimensions) {\n      element.style[key] = `${dimensions[key]}px`;\n    }\n    return element;\n  }\n  class ReorderIndicator {\n    constructor(container, element, bounds, mainClass, child) {\n      this.container = container;\n      this.element = element;\n      this.bounds = bounds;\n      this.child = child;\n      this.scale = (0, _element.getScale)(container);\n      let scrollTop = this.container.scrollTop;\n      let scrollLeft = this.container.scrollLeft;\n      let {\n        top: containerTop,\n        left: containerLeft\n      } = (0, _element.getInnerClientRect)(this.container);\n      let {\n        top: elementTop,\n        left: elementLeft,\n        width: elementWidth\n      } = (0, _element.getOuterClientRect)(this.element);\n      let top = (elementTop - containerTop) * this.scale + scrollTop;\n      let left = (elementLeft - containerLeft) * this.scale + scrollLeft;\n      let width = elementWidth * this.scale;\n      this.originLeft = left;\n      this.indicatorElement = createElement(mainClass, {\n        top,\n        left,\n        width\n      });\n      if (child) {\n        this.indicatorElement.appendChild(child);\n      }\n      this.container.appendChild(this.indicatorElement);\n      this._left = left;\n    }\n    destroy() {\n      this.container.removeChild(this.indicatorElement);\n    }\n    set width(newWidth) {\n      this.indicatorElement.style.width = `${newWidth}px`;\n    }\n    get left() {\n      return this._left;\n    }\n    set left(newLeft) {\n      let {\n        leftBound,\n        rightBound\n      } = this.bounds;\n      let width = this.indicatorElement.offsetWidth;\n      if (newLeft < leftBound) {\n        newLeft = leftBound;\n      } else if (newLeft + width > rightBound) {\n        newLeft = rightBound - width;\n      }\n      if (newLeft < this.originLeft) {\n        this.indicatorElement.classList.remove('et-reorder-direction-right');\n        this.indicatorElement.classList.add('et-reorder-direction-left');\n      } else {\n        this.indicatorElement.classList.remove('et-reorder-direction-left');\n        this.indicatorElement.classList.add('et-reorder-direction-right');\n      }\n      this.indicatorElement.style.left = `${newLeft}px`;\n      this._left = newLeft;\n    }\n  }\n  class MainIndicator extends ReorderIndicator {\n    constructor(container, element, bounds) {\n      // let width = getOuterClientRect(element).width * getScale(element);\n      let child = element.cloneNode(true);\n      super(container, element, bounds, 'et-reorder-main-indicator', child);\n    }\n  }\n  _exports.MainIndicator = MainIndicator;\n  class DropIndicator extends ReorderIndicator {\n    constructor(container, element, bounds) {\n      super(container, element, bounds, 'et-reorder-drop-indicator');\n    }\n  }\n  _exports.DropIndicator = DropIndicator;\n});","define(\"ember-table/-private/utils/sort\", [\"exports\", \"@ember/utils\", \"@ember/object\"], function (_exports, _utils, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.compareValues = compareValues;\n  _exports.mergeSort = mergeSort;\n  _exports.sortMultiple = sortMultiple;\n  function merge(left, right, comparator) {\n    let mergedArray = [];\n    let leftIndex = 0;\n    let rightIndex = 0;\n    while (leftIndex < left.length && rightIndex < right.length) {\n      let comparison = comparator(left[leftIndex], right[rightIndex]);\n      if (comparison <= 0) {\n        mergedArray.push(left[leftIndex]);\n        leftIndex++;\n      } else {\n        mergedArray.push(right[rightIndex]);\n        rightIndex++;\n      }\n    }\n    if (leftIndex < left.length) {\n      mergedArray.splice(mergedArray.length, 0, ...left.slice(leftIndex));\n    }\n    if (rightIndex < right.length) {\n      mergedArray.splice(mergedArray.length, 0, ...right.slice(rightIndex));\n    }\n    return mergedArray;\n  }\n\n  /**\n   * An implementation of the standard merge sort algorithm.\n   *\n   * This is necessary because we need a stable sorting algorithm that accepts\n   * a general comparator. The built in sort function and Ember's sort functions\n   * are not stable, and `_.sortBy` doesn't take a general comparator. Ideally\n   * lodash would add a `_.sort` function whose API would mimic this function's.\n   *\n   * @param {Array} array The array to be sorted\n   * @param {Comparator} comparator The comparator function to compare elements with.\n   * @returns {Array} A sorted array\n   */\n  function mergeSort(array, comparator = _utils.compare) {\n    if (array.length <= 1) {\n      return array;\n    }\n    let middleIndex = Math.floor(array.length / 2);\n    let leftArray = mergeSort(array.slice(0, middleIndex), comparator);\n    let rightArray = mergeSort(array.slice(middleIndex), comparator);\n    return merge(leftArray, rightArray, comparator);\n  }\n  function sortMultiple(itemA, itemB, sorts, compare, sortEmptyLast) {\n    let compareValue;\n    for (let {\n      valuePath,\n      isAscending\n    } of sorts) {\n      let valueA = (0, _object.get)(itemA, valuePath);\n      let valueB = (0, _object.get)(itemB, valuePath);\n\n      // The option only influences the outcome of an ascending sort.\n      if (sortEmptyLast) {\n        sortEmptyLast = isAscending;\n      }\n      compareValue = isAscending ? compare(valueA, valueB, sortEmptyLast) : -compare(valueA, valueB, sortEmptyLast);\n      if (compareValue !== 0) {\n        break;\n      }\n    }\n    return compareValue;\n  }\n  function isExactlyNaN(value) {\n    return typeof value === 'number' && isNaN(value);\n  }\n  function isEmptyString(value) {\n    return typeof value === 'string' && value === '';\n  }\n  function isEmpty(value) {\n    return (0, _utils.isNone)(value) || isExactlyNaN(value) || isEmptyString(value);\n  }\n  function orderEmptyValues(itemA, itemB, sortEmptyLast) {\n    let aIsEmpty = isEmpty(itemA);\n    let bIsEmpty = isEmpty(itemB);\n    let less = -1;\n    let more = 1;\n    if (sortEmptyLast) {\n      less = 1;\n      more = -1;\n    }\n    if (aIsEmpty && !bIsEmpty) {\n      return less;\n    } else if (bIsEmpty && !aIsEmpty) {\n      return more;\n    } else if ((0, _utils.isNone)(itemA) && isExactlyNaN(itemB)) {\n      return less;\n    } else if (isExactlyNaN(itemA) && (0, _utils.isNone)(itemB)) {\n      return more;\n    } else {\n      return 0;\n    }\n  }\n  function compareValues(itemA, itemB, sortEmptyLast) {\n    if (isEmpty(itemA) || isEmpty(itemB)) {\n      return orderEmptyValues(itemA, itemB, sortEmptyLast);\n    }\n    return (0, _utils.compare)(itemA, itemB);\n  }\n});","define(\"ember-table/components/-private/base-table-cell\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"ember-table/-private/utils/observer\", \"@ember/runloop\", \"@ember/object\"], function (_exports, _component, _computed, _observer, _runloop, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _component.default.extend({\n    // Provided by subclasses\n    columnMeta: null,\n    columnValue: null,\n    attributeBindings: ['slackAttribute:data-test-ember-table-slack'],\n    classNameBindings: ['isFirstColumn', 'isLastColumn', 'isFixedLeft', 'isFixedRight', 'textAlign', 'isSlack'],\n    isFirstColumn: (0, _computed.equal)('columnMeta.index', 0),\n    isLastColumn: (0, _computed.readOnly)('columnMeta.isLastRendered'),\n    isFixedLeft: (0, _computed.equal)('columnMeta.isFixed', 'left'),\n    isFixedRight: (0, _computed.equal)('columnMeta.isFixed', 'right'),\n    isSlack: (0, _computed.readOnly)('columnMeta.isSlack'),\n    // prevents `data-test-ember-table-slack=\"false\"` on non-slack cells in Ember 2.4\n    slackAttribute: (0, _object.computed)('isSlack', function () {\n      return this.get('isSlack') ? true : null;\n    }),\n    /**\n     Indicates the text alignment of this cell\n    */\n    textAlign: (0, _object.computed)('columnValue.textAlign', function () {\n      let textAlign = this.get('columnValue.textAlign');\n      if (['left', 'center', 'right'].includes(textAlign)) {\n        return `ember-table__text-align-${textAlign}`;\n      }\n      return null;\n    }),\n    // eslint-disable-next-line\n    scheduleUpdateStyles: (0, _observer.observer)('columnMeta.{width,offsetLeft,offsetRight}', 'isFixedLeft', 'isFixedRight', function () {\n      (0, _runloop.scheduleOnce)('actions', this, 'updateStyles');\n    }),\n    updateStyles() {\n      if (typeof FastBoot === 'undefined' && this.element) {\n        let width = `${this.get('columnMeta.width')}px`;\n        this.element.style.width = width;\n        this.element.style.minWidth = width;\n        this.element.style.maxWidth = width;\n        this.element.style.left = this.get('isFixedLeft') ? `${Math.round(this.get('columnMeta.offsetLeft'))}px` : null;\n        this.element.style.right = this.get('isFixedRight') ? `${Math.round(this.get('columnMeta.offsetRight'))}px` : null;\n        if (this.get('isSlack')) {\n          this.element.style.paddingLeft = 0;\n          this.element.style.paddingRight = 0;\n          this.element.style.display = width === '0px' ? 'none' : 'table-cell';\n        }\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.updateStyles();\n    }\n  });\n});","define(\"ember-table/components/-private/row-wrapper\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/object/computed\", \"@ember/array\", \"ember-table/-private/utils/ember\", \"ember-table/-private/utils/array\", \"ember-table/-private/utils/observer\", \"@ember/template-factory\"], function (_exports, _component, _object, _computed, _array, _ember, _array2, _observer, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const CellWrapper = _object.default.extend({\n    /* eslint-disable-next-line ember/no-observers, ember-best-practices/no-observers */\n    columnValueValuePathDidChange: (0, _observer.observer)('columnValue.valuePath', function () {\n      let columnValuePath = (0, _object.get)(this, 'columnValue.valuePath');\n      let cellValue = columnValuePath ? (0, _computed.alias)(`rowValue.${columnValuePath}`) : null;\n      (0, _object.defineProperty)(this, 'cellValue', cellValue);\n      (0, _ember.notifyPropertyChange)(this, 'cellValue');\n    }),\n    cellMeta: (0, _object.computed)('rowMeta', 'columnValue', function () {\n      let rowMeta = (0, _object.get)(this, 'rowMeta');\n      let columnValue = (0, _object.get)(this, 'columnValue');\n      if (!rowMeta._cellMetaCache.has(columnValue)) {\n        rowMeta._cellMetaCache.set(columnValue, _object.default.create());\n      }\n      return rowMeta._cellMetaCache.get(columnValue);\n    })\n  });\n  const layout = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield this.api}}\n  */\n  {\n    \"id\": \"B4TDzzsE\",\n    \"block\": \"[[[18,1,[[30,0,[\\\"api\\\"]]]]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"/Users/yibaebielliot/Documents/Software Development/Appknox/Repos/irene/ember-table/components/-private/row-wrapper.js\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = _component.default.extend({\n    layout,\n    tagName: '',\n    canSelect: undefined,\n    checkboxSelectionMode: undefined,\n    columnMetaCache: undefined,\n    columns: undefined,\n    rowMetaCache: undefined,\n    rowSelectionMode: undefined,\n    rowToggleMode: undefined,\n    rowValue: undefined,\n    rowsCount: undefined,\n    init() {\n      this._super(...arguments);\n      this._cells = (0, _array.A)([]);\n    },\n    destroy() {\n      this._cells.forEach(cell => cell.destroy());\n      this._super(...arguments);\n    },\n    api: (0, _object.computed)('rowValue', 'rowMeta', 'cells', 'canSelect', 'rowSelectionMode', 'rowToggleMode', 'rowsCount', function () {\n      let rowValue = this.get('rowValue');\n      let rowMeta = this.get('rowMeta');\n      let cells = this.get('cells');\n      let canSelect = this.get('canSelect');\n      let rowSelectionMode = canSelect ? this.get('rowSelectionMode') : 'none';\n      let rowToggleMode = this.get('rowToggleMode');\n      let rowsCount = this.get('rowsCount');\n      return {\n        rowValue,\n        rowMeta,\n        cells,\n        rowSelectionMode,\n        rowToggleMode,\n        rowsCount\n      };\n    }),\n    rowMeta: (0, _object.computed)('rowValue', function () {\n      let rowValue = this.get('rowValue');\n      let rowMetaCache = this.get('rowMetaCache');\n      return rowMetaCache.get(rowValue);\n    }),\n    cells: (0, _object.computed)('rowValue', 'rowMeta', 'columns.[]', 'canSelect', 'checkboxSelectionMode', 'rowSelectionMode', function () {\n      let columns = this.get('columns');\n      let numColumns = (0, _object.get)(columns, 'length');\n      let rowValue = this.get('rowValue');\n      let rowMeta = this.get('rowMeta');\n      let rowsCount = this.get('rowsCount');\n      let canSelect = this.get('canSelect');\n      let checkboxSelectionMode = canSelect ? this.get('checkboxSelectionMode') : 'none';\n      let rowSelectionMode = canSelect ? this.get('rowSelectionMode') : 'none';\n      let {\n        _cells\n      } = this;\n      if (numColumns !== _cells.length) {\n        while (_cells.length < numColumns) {\n          _cells.pushObject(CellWrapper.create());\n        }\n        while (_cells.length > numColumns) {\n          _cells.popObject().destroy();\n        }\n      }\n      _cells.forEach((cell, i) => {\n        let columnValue = (0, _array2.objectAt)(columns, i);\n        let columnMeta = this.get('columnMetaCache').get(columnValue);\n\n        // eslint-disable-next-line ember/no-side-effects, ember-best-practices/no-side-effect-cp\n        (0, _object.setProperties)(cell, {\n          checkboxSelectionMode,\n          columnMeta,\n          columnValue,\n          rowMeta,\n          rowSelectionMode,\n          rowValue,\n          rowsCount\n        });\n      });\n      return _cells;\n    })\n  });\n});","define(\"ember-table/components/-private/scroll-indicators/component\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/object/computed\", \"@ember/runloop\", \"@ember/string\", \"@ember/template\", \"@ember/utils\", \"ember-table/-private/utils/observer\", \"ember-table/components/-private/scroll-indicators/template\"], function (_exports, _component, _object, _computed, _runloop, _string, _template, _utils, _observer, _template2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global ResizeSensor */\n\n  /**\n     Computed property macro that builds the CSS styles (position, height)\n     for each horizontal scroll indicator element.\n  \n     @param {string} side - which side we are computing styles for: `left` or `right`\n   */\n  const horizontalIndicatorStyle = side => {\n    return (0, _object.computed)(`columnTree.${side}FixedNodes.@each.width`, 'overflowHeight', 'scrollbarWidth', 'tableHeight', function () {\n      let style = [];\n\n      // left/right position\n      let offset = 0;\n      let fixedNodes = this.get(`columnTree.${side}FixedNodes`);\n      if (!(0, _utils.isEmpty)(fixedNodes)) {\n        let fixedWidth = fixedNodes.reduce((acc, node) => acc + node.get('width'), 0);\n        offset += fixedWidth;\n      }\n      if (side === 'right') {\n        let scrollbarWidth = this.get('scrollbarWidth') || 0;\n        offset += scrollbarWidth;\n      }\n      style.push(`${side}:${offset}px;`);\n\n      // height\n      let overflowHeight = this.get('overflowHeight');\n      if (!(0, _utils.isNone)(overflowHeight)) {\n        let tableHeight = this.get('tableHeight');\n        let height = (0, _utils.isNone)(tableHeight) ? overflowHeight : Math.min(overflowHeight, tableHeight);\n        style.push(`height:${height}px;`);\n      }\n      return (0, _template.htmlSafe)(style.join(''));\n    });\n  };\n\n  /**\n     Computed property macro that builds the CSS styles (position, width)\n     for each vertical scroll indicator element.\n  \n     @param {string} location - which location we are computing styles for: `top` or `bottom`\n   */\n  const verticalIndicatorStyle = location => {\n    return (0, _object.computed)(`columnTree.${location}FixedNodes.@each.width`, 'overflowHeight', 'overflowWidth', 'tableWidth', 'headerHeight', 'scrollbarHeight', 'visibleFooterHeight', 'footerRatio', function () {\n      let style = [];\n      let offset = 0;\n\n      // top/bottom offset\n      if (location === 'top') {\n        let headerHeight = this.get('headerHeight') || 0;\n        offset += headerHeight;\n      }\n      if (location === 'bottom') {\n        let visibleFooterHeight = this.get('visibleFooterHeight') || 0;\n        let scrollbarHeight = this.get('scrollbarHeight') || 0;\n        let footerRatio = this.get('footerRatio');\n\n        // when footer occupies > 50% of the overflow height, we are now\n        // scrolling the footer rows, so indicator should jump to table bottom\n        if (footerRatio <= 0.5) {\n          offset += visibleFooterHeight;\n        }\n        offset += scrollbarHeight;\n      }\n      style.push(`${location}:${offset}px;`);\n\n      // width\n      let tableWidth = this.get('tableWidth');\n      if (!(0, _utils.isNone)(tableWidth)) {\n        let overflowWidth = this.get('overflowWidth');\n        let width = Math.min(tableWidth, overflowWidth);\n        style.push(`width:${width}px;`);\n      }\n      return (0, _template.htmlSafe)(style.join(''));\n    });\n  };\n\n  /**\n     Computed property macro that builds a boolean to determine whether or not\n     to show a scroll indicator in the given position.\n  \n     @param {string} location - `left`, `right`, `top`, or `bottom`\n   */\n  const showIndicator = location => {\n    let scrollProp = `scroll${(0, _string.capitalize)(location)}`;\n    return (0, _object.computed)('enabledIndicators', scrollProp, function () {\n      return this.get('enabledIndicators').includes(location) && this.get(scrollProp) > 0;\n    });\n  };\n  var _default = _exports.default = _component.default.extend({\n    layout: _template2.default,\n    tagName: '',\n    /**\n      The API object passed in by the table\n       @argument api\n      @required\n      @type object\n    */\n    api: null,\n    scrollLeft: null,\n    scrollRight: null,\n    scrollTop: null,\n    scrollBottom: null,\n    scrollbarWidth: null,\n    scrollbarHeight: null,\n    overflowHeight: null,\n    overflowWidth: null,\n    tableHeight: null,\n    tableWidth: null,\n    headerHeight: null,\n    visibleFooterHeight: null,\n    footerRatio: null,\n    columnTree: (0, _computed.readOnly)('api.columnTree'),\n    containerWidthAdjustment: (0, _computed.readOnly)('api.columnTree.containerWidthAdjustment'),\n    scrollIndicators: (0, _computed.readOnly)('api.scrollIndicators'),\n    tableScrollId: (0, _computed.readOnly)('api.tableId'),\n    showLeft: showIndicator('left'),\n    showRight: showIndicator('right'),\n    showTop: showIndicator('top'),\n    showBottom: showIndicator('bottom'),\n    leftStyle: horizontalIndicatorStyle('left'),\n    rightStyle: horizontalIndicatorStyle('right'),\n    topStyle: verticalIndicatorStyle('top'),\n    bottomStyle: verticalIndicatorStyle('bottom'),\n    enabledIndicators: (0, _object.computed)('scrollIndicators', function () {\n      switch (this.get('scrollIndicators')) {\n        case true:\n        case 'all':\n          return ['left', 'right', 'top', 'bottom'];\n        case 'horizontal':\n          return ['left', 'right'];\n        case 'vertical':\n          return ['top', 'bottom'];\n        case false:\n        case 'none':\n        default:\n          return [];\n      }\n    }),\n    init() {\n      this._super(...arguments);\n\n      // common callback for event listeners; the `bind` appears redundant, but is\n      // required by the test suite\n      this._updateIndicators = (0, _runloop.bind)(this, () => {\n        (0, _runloop.scheduleOnce)('actions', this, this.updateIndicators);\n      });\n    },\n    _addListeners() {\n      this._isListening = true;\n\n      // cache static elements for performance\n      this._scrollElement = document.getElementById(this.get('tableScrollId'));\n      this._tableElement = this._scrollElement.querySelector('table');\n      this._headerElement = this._tableElement.querySelector('thead');\n      this._scrollElement.addEventListener('scroll', this._updateIndicators);\n      this._tableResizeSensor = new ResizeSensor(this._tableElement, this._updateIndicators);\n      this._addFooterListeners();\n    },\n    _removeListeners() {\n      this._isListening = false;\n      this._scrollElement.removeEventListener('scroll', this._updateIndicators);\n      this._tableResizeSensor.detach();\n      this._removeFooterListeners();\n    },\n    // footer can appear/disappear dynamically, so this listener needs to be\n    // added/removed occasionally\n    _addFooterListeners() {\n      let footerElement = this._tableElement.querySelector('tfoot');\n      if (!footerElement) {\n        return;\n      }\n      if (!this._footerResizeSensor) {\n        // triggers when entire footer changes size\n        this._footerResizeSensor = new ResizeSensor(footerElement, this._updateIndicators);\n      }\n      if (!this._footerMutationObserver) {\n        // triggers when individual footer cells are updated by sticky polyfill\n        this._footerMutationObserver = new MutationObserver(this._updateIndicators);\n        this._footerMutationObserver.observe(footerElement, {\n          subtree: true,\n          attributes: true,\n          attributesFilter: ['style'],\n          childList: true\n        });\n      }\n    },\n    _removeFooterListeners() {\n      if (this._footerResizeSensor) {\n        this._footerResizeSensor.detach();\n        this._footerResizeSensor = null;\n      }\n      if (this._footerMutationObserver) {\n        this._footerMutationObserver.disconnect();\n        this._footerMutationObserver = null;\n      }\n    },\n    /**\n      Recomputes table geometry and triggers update of scroll indicator positions\n      and dimensions.\n    */\n    updateIndicators() {\n      let el = this._scrollElement;\n      let table = this._tableElement;\n      let header = this._headerElement;\n      let scrollLeft = el.scrollLeft;\n      let scrollRight = el.scrollWidth - el.clientWidth - scrollLeft;\n      let scrollTop = el.scrollTop;\n      let scrollBottom = el.scrollHeight - el.clientHeight - scrollTop;\n      let scrollbarWidth = el.offsetWidth - el.clientWidth;\n      let scrollbarHeight = el.offsetHeight - el.clientHeight;\n      let overflowHeight = el.clientHeight;\n      let overflowWidth = el.clientWidth;\n      let tableWidth = table ? table.offsetWidth : null;\n      let tableHeight = table ? table.offsetHeight : null;\n      let headerHeight = header ? header.offsetHeight : null;\n\n      // part of the footer can be obscured until the table is scrolled to the\n      // bottom; see `addon/-private/sticky/table-sticky-polyfill.js`\n      let visibleFooterHeight = 0;\n      let footerCell = table.querySelector('tfoot td');\n      if (footerCell) {\n        this._addFooterListeners();\n        let footerCellY = footerCell.getBoundingClientRect().y;\n        let overflowRect = el.getBoundingClientRect();\n        let scale = el.offsetHeight / overflowRect.height;\n        visibleFooterHeight = Math.min(el.clientHeight - scale * (footerCellY - overflowRect.y), el.clientHeight);\n\n        // can be negative if sticky footers don't work in browser (e.g. Safari)\n        visibleFooterHeight = Math.max(visibleFooterHeight, 0);\n      } else {\n        this._removeFooterListeners();\n      }\n      let footerRatio;\n      if (overflowHeight > 0) {\n        footerRatio = visibleFooterHeight / el.offsetHeight;\n      }\n      this.setProperties({\n        scrollLeft,\n        scrollRight,\n        scrollTop,\n        scrollBottom,\n        scrollbarHeight,\n        scrollbarWidth,\n        overflowHeight,\n        overflowWidth,\n        tableHeight,\n        tableWidth,\n        headerHeight,\n        visibleFooterHeight,\n        footerRatio\n      });\n    },\n    _updateListeners() {\n      let hasIndicators = !(0, _utils.isEmpty)(this.get('enabledIndicators'));\n      if (hasIndicators && !this._isListening) {\n        this._addListeners();\n        this._updateIndicators();\n      } else if (!hasIndicators && this._isListening) {\n        this._removeListeners();\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this._updateListeners();\n      (0, _observer.addObserver)(this, 'enabledIndicators', this._updateListeners);\n    },\n    willDestroy() {\n      if (this._isListening) {\n        this._removeListeners();\n      }\n    }\n  });\n});","define(\"ember-table/components/-private/scroll-indicators/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.showLeft}}\n    <div\n      data-test-ember-table-scroll-indicator=\"left\"\n      class=\"scroll-indicator scroll-indicator__left\"\n      style={{this.leftStyle}}\n    ></div>\n  {{/if}}\n  {{#if this.showRight}}\n    <div\n      data-test-ember-table-scroll-indicator=\"right\"\n      class=\"scroll-indicator scroll-indicator__right\"\n      style={{this.rightStyle}}\n    ></div>\n  {{/if}}\n  {{#if this.showTop}}\n    <div\n      data-test-ember-table-scroll-indicator=\"top\"\n      class=\"scroll-indicator scroll-indicator__top\"\n      style={{this.topStyle}}\n    ></div>\n  {{/if}}\n  {{#if this.showBottom}}\n    <div\n      data-test-ember-table-scroll-indicator=\"bottom\"\n      class=\"scroll-indicator scroll-indicator__bottom\"\n      style={{this.bottomStyle}}\n    ></div>\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"vSsKu6jA\",\n    \"block\": \"[[[41,[30,0,[\\\"showLeft\\\"]],[[[1,\\\"  \\\"],[10,0],[14,\\\"data-test-ember-table-scroll-indicator\\\",\\\"left\\\"],[14,0,\\\"scroll-indicator scroll-indicator__left\\\"],[15,5,[30,0,[\\\"leftStyle\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showRight\\\"]],[[[1,\\\"  \\\"],[10,0],[14,\\\"data-test-ember-table-scroll-indicator\\\",\\\"right\\\"],[14,0,\\\"scroll-indicator scroll-indicator__right\\\"],[15,5,[30,0,[\\\"rightStyle\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showTop\\\"]],[[[1,\\\"  \\\"],[10,0],[14,\\\"data-test-ember-table-scroll-indicator\\\",\\\"top\\\"],[14,0,\\\"scroll-indicator scroll-indicator__top\\\"],[15,5,[30,0,[\\\"topStyle\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showBottom\\\"]],[[[1,\\\"  \\\"],[10,0],[14,\\\"data-test-ember-table-scroll-indicator\\\",\\\"bottom\\\"],[14,0,\\\"scroll-indicator scroll-indicator__bottom\\\"],[15,5,[30,0,[\\\"bottomStyle\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\"]]\",\n    \"moduleName\": \"ember-table/components/-private/scroll-indicators/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-table/components/ember-table-loading-more/component\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/runloop\"], function (_exports, _component, _computed, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global ResizeSensor */\n  /**\n    Renders a custom loading indicator beneath the table body. Can be used to\n    implement an infinite scroll pattern. Provides optional centering to keep the\n    user-provided block centered horizontally in the scroll viewport.\n  \n    ```hbs\n    <EmberTable as |t|>\n      <t.head @columns={{this.columns}} />\n      <t.body @rows={{this.rows}} />\n  \n      <t.loadingMore\n        @isLoading={{this.isLoadingMore}}\n        @canLoadMore={{this.canLoadMore}}\n        @center={{true}}>\n  \n        {{!-- custom spinner --}}\n        <img class=\"spinner\" src=\"spinner.gif\"/>\n      </t.loadingMore>\n    </EmberTable>\n    ```\n  \n    @class <EmberTableLoadingMore />\n    @public\n  */\n  var _default = _exports.default = _component.default.extend({\n    classNames: ['ember-table-loading-more'],\n    attributeBindings: ['dataTestEmberTableLoadingMore:data-test-ember-table-loading-more'],\n    dataTestEmberTableLoadingMore: true,\n    unwrappedApi: (0, _computed.or)('api.api', 'api'),\n    scrollElement: (0, _computed.readOnly)('unwrappedApi.columnTree.container'),\n    /**\n     * Boolean flag specifying if additional rows are being loaded. If true,\n     * indicator block will be visible below the table body.\n     *\n     * @argument isLoading\n     * @type boolean\n     */\n    isLoading: false,\n    /**\n     * Boolean flag specifying if there are more rows yet to load. If false, the\n     * indicator block will be removed from the DOM.\n     *\n     * @argument canLoadMore\n     * @type boolean\n     */\n    canLoadMore: true,\n    /**\n     * Boolean flag specifying if the indicator block should be centered\n     * horizontally in the scroll viewport.\n     *\n     * @argument center\n     * @type boolean\n     */\n    center: true,\n    init() {\n      this._super(...arguments);\n      this._updateTransform = () => (0, _runloop.scheduleOnce)('afterRender', this, 'updateTransform');\n    },\n    didReceiveAttrs() {\n      this._super(...arguments);\n\n      // ignore the first run of `didReceiveAttrs` before element exists\n      if (!this.element) {\n        return;\n      }\n\n      // no observers here, no sir.\n      let canLoadMore = this.get('canLoadMore');\n      if (canLoadMore !== this._canLoadMore) {\n        (0, _runloop.scheduleOnce)('afterRender', this, 'canLoadMoreChanged');\n        this._canLoadMore = canLoadMore;\n      }\n      let isLoading = this.get('isLoading');\n      if (isLoading !== this._isLoading) {\n        (0, _runloop.scheduleOnce)('afterRender', this, 'isLoadingChanged');\n        this._isLoading = isLoading;\n      }\n      let center = this.get('center');\n      if (center !== this._center) {\n        (0, _runloop.scheduleOnce)('afterRender', this, 'centerChanged');\n        this._center = center;\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.canLoadMoreChanged();\n      this.isLoadingChanged();\n      this.centerChanged();\n    },\n    willDestroyElement() {\n      if (this.get('center')) {\n        this.removeListeners();\n      }\n      this._super(...arguments);\n    },\n    canLoadMoreChanged() {\n      if (this.get('canLoadMore')) {\n        this.setIncludedInLayout(true);\n      } else {\n        // Delay removal to minimize impact on scroll position. Usually any new\n        // rows have been rendered by now, but sometimes they are not, and\n        // removing this element from the DOM will cause a small scrollback.\n        (0, _runloop.next)(() => (0, _runloop.schedule)('afterRender', this, 'setIncludedInLayout', false));\n      }\n    },\n    isLoadingChanged() {\n      this.setVisible(this.get('isLoading'));\n    },\n    centerChanged() {\n      this.updateTransform();\n      if (this.get('center')) {\n        this.addListeners();\n      } else {\n        this.removeListeners();\n      }\n    },\n    addListeners() {\n      let scrollElement = this.get('scrollElement');\n      scrollElement.addEventListener('scroll', this._updateTransform);\n      this._scrollElementResizeSensor = new ResizeSensor(scrollElement, this._updateTransform);\n    },\n    removeListeners() {\n      this.get('scrollElement').removeEventListener('scroll', this._updateTransform);\n      if (this._scrollElementResizeSensor) {\n        this._scrollElementResizeSensor.detach();\n      }\n    },\n    updateTransform() {\n      let scrollElement = this.get('scrollElement');\n\n      // this method can be triggered by the resize sensor before the element\n      // (and `scrollElement`) exists\n      if (!scrollElement) {\n        return;\n      }\n      let translateX = 0;\n      if (this.get('center')) {\n        // keep indicator centered in viewport, even if user scrolls left or right\n        translateX = Math.round(scrollElement.scrollLeft + (scrollElement.clientWidth - this.element.clientWidth) / 2);\n      }\n      this.setTranslateX(translateX);\n    },\n    setIncludedInLayout(value) {\n      this.element.style.display = value ? '' : 'none';\n    },\n    setVisible(value) {\n      this.element.style.visibility = value ? '' : 'hidden';\n    },\n    setTranslateX(value) {\n      this.element.style.transform = value === 0 ? '' : `translateX(${value}px)`;\n    }\n  });\n});","define(\"ember-table/components/ember-table-simple-checkbox\", [\"exports\", \"@ember/component\", \"ember-table/-private/utils/default-to\"], function (_exports, _component, _defaultTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _component.default.extend({\n    tagName: 'input',\n    attributeBindings: ['ariaLabel:aria-label', 'checked', 'disabled', 'indeterminate', 'type', 'value', 'dataTestSelectRow:data-test-select-row', 'dataTestCollapseRow:data-test-collapse-row'],\n    ariaLabel: undefined,\n    checked: (0, _defaultTo.default)(false),\n    disabled: (0, _defaultTo.default)(false),\n    indeterminate: (0, _defaultTo.default)(false),\n    onChange: null,\n    onClick: null,\n    type: 'checkbox',\n    value: null,\n    click(event) {\n      var _this$onClick;\n      (_this$onClick = this.onClick) === null || _this$onClick === void 0 ? void 0 : _this$onClick.call(this, event);\n    },\n    change(event) {\n      var _this$onChange;\n      let checked = this.element.checked;\n      let indeterminate = this.element.indeterminate;\n      let value = this.get('value');\n\n      // Checked and indeterminate state have been changed, but that's not DDAU!\n      // Reset the change, send the action and wait for it to be changed manually\n      this.element.checked = this.get('checked');\n      this.element.indeterminate = this.get('indeterminate');\n      (_this$onChange = this.onChange) === null || _this$onChange === void 0 ? void 0 : _this$onChange.call(this, checked, {\n        value,\n        indeterminate\n      }, event);\n    }\n  });\n});","define(\"ember-table/components/ember-table/component\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template\", \"ember-table/-private/sticky/table-sticky-polyfill\", \"ember-table/components/ember-table/template\"], function (_exports, _component, _object, _template, _tableStickyPolyfill, _template2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    The primary Ember Table component. This component represents the root of the\n    table, and manages high level state of all of its subcomponents. It does not\n    have any arguments or actions itself - instead, all of those concerns are\n    delegated to its children, who communicate to each other via the API.\n  \n    ```hbs\n    <EmberTable as |t|>\n      <t.head @columns={{this.columns}} />\n      <t.body @rows={{this.rows}} />\n      <t.foot @rows={{this.footerRows}} />\n    </EmberTable>\n    ```\n  \n    @yield {object} table - the API object yielded by the table\n    @yield {Component} table.head - The table header component\n    @yield {Component} table.body - The table body component\n    @yield {Component} table.foot - The table footer component\n    @class <EmberTable />\n    @public\n  */\n  var _default = _exports.default = _component.default.extend({\n    layout: _template2.default,\n    classNames: ['ember-table'],\n    attributeBindings: ['dataTestEmberTable:data-test-ember-table'],\n    dataTestEmberTable: true,\n    didInsertElement() {\n      this._super(...arguments);\n      let thead = this.element.querySelector('thead');\n      let tfoot = this.element.querySelector('tfoot');\n      if (thead) {\n        (0, _tableStickyPolyfill.setupTableStickyPolyfill)(thead);\n      }\n      if (tfoot) {\n        (0, _tableStickyPolyfill.setupTableStickyPolyfill)(tfoot);\n      }\n    },\n    willDestroyElement() {\n      let thead = this.element.querySelector('thead');\n      let tfoot = this.element.querySelector('tfoot');\n      if (thead) {\n        (0, _tableStickyPolyfill.teardownTableStickyPolyfill)(this.element.querySelector('thead'));\n      }\n      if (tfoot) {\n        (0, _tableStickyPolyfill.teardownTableStickyPolyfill)(this.element.querySelector('tfoot'));\n      }\n      this._super(...arguments);\n    },\n    tableStyle: (0, _object.computed)('tableWidth', function () {\n      return (0, _template.htmlSafe)(`width: ${this.get('tableWidth')}px;`);\n    }),\n    api: (0, _object.computed)(function () {\n      return {\n        columns: null,\n        registerColumnTree: this.registerColumnTree.bind(this),\n        tableId: `${this.elementId}-overflow`\n      };\n    }),\n    registerColumnTree(columnTree) {\n      this.set('api.columnTree', columnTree);\n    }\n  });\n});","define(\"ember-table/components/ember-table/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    data-test-ember-table-overflow\n    class=\"ember-table-overflow\"\n    id=\"{{this.elementId}}-overflow\"\n  >\n    <table>\n      {{yield (hash\n        api=this.api\n        head=(component \"ember-thead\" api=this.api)\n        body=(component \"ember-tbody\" api=this.api)\n        foot=(component \"ember-tfoot\" api=this.api)\n        loadingMore=(component \"ember-table-loading-more\" api=this.api)\n      )}}\n    </table>\n  </div>\n  <EmberTablePrivate::ScrollIndicators @api={{this.api}} />\n  \n  */\n  {\n    \"id\": \"xXnR/r4h\",\n    \"block\": \"[[[10,0],[14,\\\"data-test-ember-table-overflow\\\",\\\"\\\"],[14,0,\\\"ember-table-overflow\\\"],[15,1,[29,[[30,0,[\\\"elementId\\\"]],\\\"-overflow\\\"]]],[12],[1,\\\"\\\\n  \\\"],[10,\\\"table\\\"],[12],[1,\\\"\\\\n    \\\"],[18,1,[[28,[37,1],null,[[\\\"api\\\",\\\"head\\\",\\\"body\\\",\\\"foot\\\",\\\"loadingMore\\\"],[[30,0,[\\\"api\\\"]],[50,\\\"ember-thead\\\",0,null,[[\\\"api\\\"],[[30,0,[\\\"api\\\"]]]]],[50,\\\"ember-tbody\\\",0,null,[[\\\"api\\\"],[[30,0,[\\\"api\\\"]]]]],[50,\\\"ember-tfoot\\\",0,null,[[\\\"api\\\"],[[30,0,[\\\"api\\\"]]]]],[50,\\\"ember-table-loading-more\\\",0,null,[[\\\"api\\\"],[[30,0,[\\\"api\\\"]]]]]]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[8,[39,3],null,[[\\\"@api\\\"],[[30,0,[\\\"api\\\"]]]],null],[1,\\\"\\\\n\\\"]],[\\\"&default\\\"],false,[\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ember-table-private/scroll-indicators\\\"]]\",\n    \"moduleName\": \"ember-table/components/ember-table/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-table/components/ember-tbody/component\", [\"exports\", \"@ember/component\", \"@ember/runloop\", \"@ember/object\", \"ember-table/-private/utils/observer\", \"@ember/object/computed\", \"ember-table/-private/collapse-tree\", \"ember-table/-private/utils/default-to\", \"ember-table/components/ember-tbody/template\", \"@ember/debug\"], function (_exports, _component, _runloop, _object, _observer, _computed, _collapseTree, _defaultTo, _template, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.setSetupRowCountForTest = setSetupRowCountForTest;\n  let setupRowCountForTest = false;\n  function setSetupRowCountForTest(bool) {\n    setupRowCountForTest = bool;\n  }\n\n  /**\n    The table body component. This component manages the main bulk of the rows of\n    the table, provided occlusion for them and managing their behavior. It yields\n    a template for each row, and an API that contains a row component, the row\n    value, and the meta object for the row.\n  \n    ```hbs\n    <EmberTable as |t|>\n      <t.head @columns={{this.columns}} />\n  \n      <t.body @rows={{this.rows}} as |b|>\n        <b.row>\n      </t.body>\n    </EmberTable>\n    ```\n  \n    @yield {object} body - the API object yielded by the table body\n    @yield {Component} body.row - The table row component\n  \n    @yield {object} body.rowValue - The value for the currently yielded row\n    @yield {object} body.rowMeta - The meta for the currently yielded row\n    @class <EmberTbody />\n    @public\n  */\n  var _default = _exports.default = _component.default.extend({\n    layout: _template.default,\n    tagName: 'tbody',\n    /**\n      The API object passed in by the table\n       @argument api\n      @required\n      @type object\n    */\n    api: null,\n    unwrappedApi: (0, _computed.or)('api.api', 'api'),\n    columns: (0, _computed.readOnly)('unwrappedApi.columnTree.leaves'),\n    columnMetaCache: (0, _computed.readOnly)('unwrappedApi.columnTree.columnMetaCache'),\n    /**\n      Sets which row selection behavior to follow. Possible values are 'none'\n      (clicking on a row does nothing), 'single' (clicking on a row selects it and\n      deselects other rows), and 'multiple' (multiple rows can be selected through\n      ctrl/cmd-click or shift-click).\n       @argument checkboxSelectionMode\n      @type string? ('multiple')\n    */\n    checkboxSelectionMode: (0, _defaultTo.default)(_collapseTree.SELECT_MODE.MULTIPLE),\n    /**\n      Sets which checkbox selection behavior to follow. Possible values are 'none'\n      (clicking on a row does nothing), 'single' (clicking on a row selects it and\n      deselects other rows), and 'multiple' (multiple rows can be selected through\n      ctrl/cmd-click or shift-click).\n       @argument rowSelectionMode\n      @type string? ('multiple')\n    */\n    rowSelectionMode: (0, _defaultTo.default)(_collapseTree.SELECT_MODE.MULTIPLE),\n    /**\n      When true, this option enables the toggling of rows without using the ctrlKey or metaKey.\n       @argument rowToggleMode\n      @type boolean\n    */\n    rowToggleMode: (0, _defaultTo.default)(false),\n    /**\n      When true, this option causes selecting all of a node's children to also\n      select the node itself.\n       @argument selectingChildrenSelectsParent\n      @type boolean\n    */\n    selectingChildrenSelectsParent: (0, _defaultTo.default)(true),\n    /**\n      The currently selected rows. Can either be an array or an individual row.\n       @argument selection\n      @type array|object|null\n    */\n    selection: null,\n    /**\n      A function that will override how selection is compared to row value.\n       @argument selectionMatchFunction\n      @type function?\n    */\n    selectionMatchFunction: null,\n    /**\n      An action that is called when the row selection of the table changes.\n      Will be called with either an array or individual row, depending on the\n      checkboxSelectionMode.\n       @argument onSelect\n      @type Action?\n      @param {object} selection - The new selection\n    */\n    onSelect: null,\n    /**\n      Estimated height for each row. This number is used to decide how many rows\n      will be rendered at initial rendering.\n       @argument estimateRowHeight\n      @type number? (30)\n    */\n    estimateRowHeight: (0, _defaultTo.default)(30),\n    /**\n      A flag that controls if all rows have same static height or not. By default\n      it is set to false and row height is dependent on its internal content. If\n      it is set to true, all rows have the same height equivalent to\n      estimateRowHeight.\n       @argument staticHeight\n      @type boolean? (false)\n    */\n    staticHeight: (0, _defaultTo.default)(false),\n    /**\n      The number of extra rows to render on either side of the table's viewport\n       @argument bufferSize\n      @type number? (1)\n    */\n    bufferSize: (0, _defaultTo.default)(1),\n    /**\n      A flag that tells the table to render all of its rows at once.\n       @argument renderAll\n      @type boolean? (false)\n    */\n    renderAll: (0, _defaultTo.default)(false),\n    /**\n      An action that is triggered when the table reaches the first row.\n       @argument firstReached\n      @type Action?\n    */\n    firstReached: null,\n    /**\n      An action that is triggered when the table reaches the last row.\n       @argument lastReached\n      @type Action?\n    */\n    lastReached: null,\n    /**\n      An action that is triggered when the first visible row of the table changes.\n       @argument firstVisibleChanged\n      @type Action?\n    */\n    firstVisibleChanged: null,\n    /**\n      An action that is triggered when the last visible row of the table changes.\n       @argument lastVisibleChanged\n      @type Action?\n    */\n    lastVisibleChanged: null,\n    /**\n      Boolean flag that enables tree behavior if items have a `children` property\n       @argument enableTree\n      @type boolean? (true)\n    */\n    enableTree: (0, _defaultTo.default)(true),\n    /**\n      Boolean flag that enables collapsing tree nodes\n       @argument enableCollapse\n      @type boolean? (true)\n    */\n    enableCollapse: (0, _defaultTo.default)(true),\n    /**\n      The row items that the table should display\n       @argument rows\n      @type array? ([])\n    */\n    rows: (0, _defaultTo.default)(() => []),\n    /**\n      This key is the property used by the collection to determine whether an\n      array mutation is an append, prepend, or complete replacement. It is also\n      the key that is passed to the actions, and can be used to restore scroll\n      position with `idForFirstItem`. This is passed through to the\n      vertical-collection.\n       @argument key\n      @type string? ('@identity')\n    */\n    key: (0, _defaultTo.default)('@identity'),\n    /**\n      The property is passed through to the vertical-collection. If set, upon initialization\n      the scroll position will be set such that the item\n      with the provided id is at the top left on screen.\n      If the item with id cannot be found, scrollTop is set to 0.\n       @argument idForFirstItem\n      @type string?\n    */\n    idForFirstItem: null,\n    /**\n      A selector string that will select the element from\n      which to calculate the viewable height.\n       @argument containerSelector\n      @type string? (<tableId>)\n    */\n    containerSelector: (0, _defaultTo.default)(''),\n    /**\n      Whether or not the table can select, is true if an `onSelect` action was\n      passed to the table.\n    */\n    canSelect: (0, _computed.bool)('onSelect'),\n    dataTestRowCount: null,\n    attributeBindings: ['dataTestRowCount:data-test-row-count'],\n    init() {\n      var _this$onSelect;\n      this._super(...arguments);\n\n      /**\n        The map that contains row meta information for this table.\n      */\n      this.rowMetaCache = new Map();\n\n      /**\n        A data structure that the table uses wrapping the `rows` object. It flattens\n        the tree structure of the nodes and allows us to treat it as a flat list of\n        items. This is much more convenient for most table operations in general.\n      */\n      this.collapseTree = _collapseTree.default.create({\n        onSelect: (_this$onSelect = this.onSelect) === null || _this$onSelect === void 0 ? void 0 : _this$onSelect.bind(this)\n      });\n      this._updateCollapseTree();\n\n      /*\n       * Ember test selectors will remove data-test-row-count from the bindings,\n       * so if it is missing there is no need to all the count.\n       *\n       * Even when ember-table is testing a production build, the you may want to\n       * run tests which make assertions about row count. To implement that capability\n       * reference a boolean variable controlled by the test helpers.\n       */\n      if (setupRowCountForTest) {\n        this._isObservingDebugRowCount = true;\n        let scheduleUpdate = this._scheduleUpdate = () => {\n          (0, _runloop.scheduleOnce)('actions', this, this._updateDataTestRowCount);\n        };\n        this.collapseTree.addObserver('rows', scheduleUpdate);\n        this.collapseTree.addObserver('[]', scheduleUpdate);\n      }\n      (true && !(!!this.get('unwrappedApi.columnTree')) && (0, _debug.assert)('You must create an <EmberThead /> with columns before creating an <EmberTbody />', !!this.get('unwrappedApi.columnTree')));\n    },\n    _updateDataTestRowCount() {\n      this.set('dataTestRowCount', this.get('collapseTree.length'));\n    },\n    // eslint-disable-next-line\n    _updateCollapseTree: (0, _observer.observer)('unwrappedApi.{sorts,sortFunction,compareFunction,sortEmptyLast}', 'enableCollapse', 'enableTree', 'selection', 'selectionMatchFunction', 'selectingChildrenSelectsParent', 'onSelect', function () {\n      this.collapseTree.set('sorts', this.get('unwrappedApi.sorts'));\n      this.collapseTree.set('sortFunction', this.get('unwrappedApi.sortFunction'));\n      this.collapseTree.set('compareFunction', this.get('unwrappedApi.compareFunction'));\n      this.collapseTree.set('sortEmptyLast', this.get('unwrappedApi.sortEmptyLast'));\n      this.collapseTree.set('enableCollapse', this.get('enableCollapse'));\n      this.collapseTree.set('enableTree', this.get('enableTree'));\n      this.collapseTree.set('selection', this.get('selection'));\n      this.collapseTree.set('selectionMatchFunction', this.get('selectionMatchFunction'));\n      this.collapseTree.set('selectingChildrenSelectsParent', this.get('selectingChildrenSelectsParent'));\n    }),\n    willDestroy() {\n      for (let [row, meta] of this.rowMetaCache.entries()) {\n        meta.destroy();\n        this.rowMetaCache.delete(row);\n      }\n      if (this._isObservingDebugRowCount) {\n        this.collapseTree.removeObserver('rows', this._scheduleUpdate);\n        this.collapseTree.removeObserver('[]', this._scheduleUpdate);\n      }\n      this.collapseTree.destroy();\n    },\n    /**\n      Computed property which updates the CollapseTree and erases caches. This is\n      a computed for 1.12 compatibility, otherwise it would make sense to use\n      lifecycle hooks instead.\n    */\n    wrappedRows: (0, _object.computed)('rows', function () {\n      let rows = this.get('rows');\n      this.collapseTree.set('rowMetaCache', this.rowMetaCache);\n      this.collapseTree.set('rows', rows);\n      return this.collapseTree;\n    }),\n    /**\n      Computed property which calculates container selector for vertical collection.\n      It can be a custom selector provided directly to <EmberTbody />.\n      If not, it will be equal to parent <EmberTable /> `id`.\n    */\n    _containerSelector: (0, _object.computed)('containerSelector', 'unwrappedApi.tableId', function () {\n      return this.get('containerSelector') || `#${this.get('unwrappedApi.tableId')}`;\n    })\n  });\n});","define(\"ember-table/components/ember-tbody/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#vertical-collection\n    items=this.wrappedRows\n    containerSelector=this._containerSelector\n  \n    estimateHeight=this.estimateRowHeight\n    key=this.key\n    staticHeight=this.staticHeight\n    bufferSize=this.bufferSize\n    renderAll=this.renderAll\n  \n    firstReached=this.firstReached\n    lastReached=this.lastReached\n    firstVisibleChanged=this.firstVisibleChanged\n    lastVisibleChanged=this.lastVisibleChanged\n    idForFirstItem=this.idForFirstItem\n  \n    as |rowValue|\n  }}\n    <EmberTablePrivate::RowWrapper\n      @rowValue={{rowValue}}\n      @columns={{this.columns}}\n      @columnMetaCache={{this.columnMetaCache}}\n      @rowMetaCache={{this.rowMetaCache}}\n      @canSelect={{this.canSelect}}\n      @checkboxSelectionMode={{this.checkboxSelectionMode}}\n      @rowSelectionMode={{this.rowSelectionMode}}\n      @rowToggleMode={{this.rowToggleMode}}\n      @rowsCount={{this.wrappedRows.length}} as |api|\n    >\n      {{#if (has-block)}}\n        {{yield (hash\n          rowValue=api.rowValue\n          rowMeta=api.rowMeta\n          cells=api.cells\n          rowSelectionMode=api.rowSelectionMode\n          rowToggleMode=api.rowToggleMode\n          rowsCount=api.rowsCount\n  \n          row=(component \"ember-tr\" api=api)\n        )}}\n      {{else}}\n        <EmberTr @api={{api}} />\n      {{/if}}\n    </EmberTablePrivate::RowWrapper>\n  \n  {{else}}\n    {{yield to='inverse'}}\n  {{/vertical-collection}}\n  \n  */\n  {\n    \"id\": \"xaecTcZC\",\n    \"block\": \"[[[6,[39,0],null,[[\\\"items\\\",\\\"containerSelector\\\",\\\"estimateHeight\\\",\\\"key\\\",\\\"staticHeight\\\",\\\"bufferSize\\\",\\\"renderAll\\\",\\\"firstReached\\\",\\\"lastReached\\\",\\\"firstVisibleChanged\\\",\\\"lastVisibleChanged\\\",\\\"idForFirstItem\\\"],[[30,0,[\\\"wrappedRows\\\"]],[30,0,[\\\"_containerSelector\\\"]],[30,0,[\\\"estimateRowHeight\\\"]],[30,0,[\\\"key\\\"]],[30,0,[\\\"staticHeight\\\"]],[30,0,[\\\"bufferSize\\\"]],[30,0,[\\\"renderAll\\\"]],[30,0,[\\\"firstReached\\\"]],[30,0,[\\\"lastReached\\\"]],[30,0,[\\\"firstVisibleChanged\\\"]],[30,0,[\\\"lastVisibleChanged\\\"]],[30,0,[\\\"idForFirstItem\\\"]]]],[[\\\"default\\\",\\\"else\\\"],[[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@rowValue\\\",\\\"@columns\\\",\\\"@columnMetaCache\\\",\\\"@rowMetaCache\\\",\\\"@canSelect\\\",\\\"@checkboxSelectionMode\\\",\\\"@rowSelectionMode\\\",\\\"@rowToggleMode\\\",\\\"@rowsCount\\\"],[[30,1],[30,0,[\\\"columns\\\"]],[30,0,[\\\"columnMetaCache\\\"]],[30,0,[\\\"rowMetaCache\\\"]],[30,0,[\\\"canSelect\\\"]],[30,0,[\\\"checkboxSelectionMode\\\"]],[30,0,[\\\"rowSelectionMode\\\"]],[30,0,[\\\"rowToggleMode\\\"]],[30,0,[\\\"wrappedRows\\\",\\\"length\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[48,[30,3]],[[[1,\\\"      \\\"],[18,3,[[28,[37,5],null,[[\\\"rowValue\\\",\\\"rowMeta\\\",\\\"cells\\\",\\\"rowSelectionMode\\\",\\\"rowToggleMode\\\",\\\"rowsCount\\\",\\\"row\\\"],[[30,2,[\\\"rowValue\\\"]],[30,2,[\\\"rowMeta\\\"]],[30,2,[\\\"cells\\\"]],[30,2,[\\\"rowSelectionMode\\\"]],[30,2,[\\\"rowToggleMode\\\"]],[30,2,[\\\"rowsCount\\\"]],[50,\\\"ember-tr\\\",0,null,[[\\\"api\\\"],[[30,2]]]]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@api\\\"],[[30,2]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"]],[1]],[[[1,\\\"  \\\"],[18,4,null],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"rowValue\\\",\\\"api\\\",\\\"&default\\\",\\\"&else\\\"],false,[\\\"vertical-collection\\\",\\\"ember-table-private/row-wrapper\\\",\\\"if\\\",\\\"has-block\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ember-tr\\\"]]\",\n    \"moduleName\": \"ember-table/components/ember-tbody/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-table/components/ember-td/component\", [\"exports\", \"ember-table/components/-private/base-table-cell\", \"@ember/object\", \"@ember/object/computed\", \"ember-table/components/ember-td/template\", \"ember-table/-private/collapse-tree\"], function (_exports, _baseTableCell, _object, _computed, _template, _collapseTree) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.setSimpleCheckboxForTest = setSimpleCheckboxForTest;\n  let setupSimpleCheckboxForTest = false;\n  function setSimpleCheckboxForTest(bool) {\n    setupSimpleCheckboxForTest = bool;\n  }\n\n  /**\n   The table cell component. This component manages cell level concerns, yields\n   the cell value, column value, row value, and all of their associated meta\n   objects.\n  \n   ```hbs\n   <EmberTable as |t|>\n   <t.head @columns={{this.columns}} />\n  \n   <t.body @rows={{this.rows}} as |b|>\n   <b.row as |r|>\n   <r.cell as |cellValue columnValue rowValue cellMeta columnMeta rowMeta|>\n  \n   </r.cell>\n   </b.row>\n   </t.body>\n   </EmberTable>\n   ```\n  \n   @yield {any} cellValue - The value of the cell\n   @yield {object} columnValue - The column definition\n   @yield {object} rowValue - The row definition\n  \n   @yield {object} cellMeta - The meta object associated with the cell\n   @yield {object} columnMeta - The meta object associated with the column\n   @yield {object} rowMeta - The meta object associated with the row\n   @class <EmberTd />\n   @public\n   */\n  var _default = _exports.default = _baseTableCell.default.extend({\n    layout: _template.default,\n    tagName: 'td',\n    init() {\n      this._super(...arguments);\n      if (setupSimpleCheckboxForTest) {\n        this.set('isTesting', true);\n      }\n    },\n    /**\n     The API object passed in by the table row\n     @argument api\n     @required\n     @type object\n    */\n    api: null,\n    /**\n     Action sent when the user clicks this element\n     @argument onClick\n     @type Action?\n    */\n    onClick: null,\n    /**\n     Action sent when the user double clicks this element\n     @argument onDoubleClick\n     @type Action?\n    */\n    onDoubleClick: null,\n    // only watch `api` due to a bug in Ember\n    unwrappedApi: (0, _object.computed)('api', function () {\n      return this.get('api.api') || this.get('api');\n    }),\n    cellValue: (0, _computed.alias)('unwrappedApi.cellValue'),\n    cellMeta: (0, _computed.readOnly)('unwrappedApi.cellMeta'),\n    columnValue: (0, _computed.readOnly)('unwrappedApi.columnValue'),\n    columnMeta: (0, _computed.readOnly)('unwrappedApi.columnMeta'),\n    rowValue: (0, _computed.readOnly)('unwrappedApi.rowValue'),\n    rowMeta: (0, _computed.readOnly)('unwrappedApi.rowMeta'),\n    rowsCount: (0, _computed.readOnly)('unwrappedApi.rowsCount'),\n    rowSelectionMode: (0, _computed.readOnly)('unwrappedApi.rowSelectionMode'),\n    checkboxSelectionMode: (0, _computed.readOnly)('unwrappedApi.checkboxSelectionMode'),\n    canCollapse: (0, _computed.readOnly)('rowMeta.canCollapse'),\n    depthClass: (0, _object.computed)('rowMeta.depth', function () {\n      return `depth-${this.get('rowMeta.depth')}`;\n    }),\n    canSelect: (0, _object.computed)('shouldShowCheckbox', 'rowSelectionMode', function () {\n      let rowSelectionMode = this.get('rowSelectionMode');\n      let shouldShowCheckbox = this.get('shouldShowCheckbox');\n      return shouldShowCheckbox || rowSelectionMode === _collapseTree.SELECT_MODE.MULTIPLE || rowSelectionMode === _collapseTree.SELECT_MODE.SINGLE;\n    }),\n    shouldShowCheckbox: (0, _object.computed)('checkboxSelectionMode', function () {\n      let checkboxSelectionMode = this.get('checkboxSelectionMode');\n      return checkboxSelectionMode === _collapseTree.SELECT_MODE.MULTIPLE || checkboxSelectionMode === _collapseTree.SELECT_MODE.SINGLE;\n    }),\n    actions: {\n      onSelectionToggled(event) {\n        let rowMeta = this.get('rowMeta');\n        let checkboxSelectionMode = this.get('checkboxSelectionMode') || this.get('rowSelectionMode');\n        if (rowMeta && checkboxSelectionMode === _collapseTree.SELECT_MODE.MULTIPLE) {\n          let toggle = true;\n          let range = event.shiftKey;\n          rowMeta.select({\n            toggle,\n            range\n          });\n        } else if (rowMeta && checkboxSelectionMode === _collapseTree.SELECT_MODE.SINGLE) {\n          rowMeta.select();\n        }\n        this.sendFullAction('onSelect');\n      },\n      onCollapseToggled() {\n        let rowMeta = this.get('rowMeta');\n        rowMeta.toggleCollapse();\n        this.sendFullAction('onCollapse');\n      }\n    },\n    click(event) {\n      this.sendFullAction('onClick', {\n        event\n      });\n    },\n    doubleClick(event) {\n      this.sendFullAction('onDoubleClick', {\n        event\n      });\n    },\n    sendFullAction(action, values = {}) {\n      // If the action doesn't exist, it's not being used. Do nothing\n      if (!this.get(action)) {\n        return;\n      }\n      let cellValue = this.get('cellValue');\n      let cellMeta = this.get('cellMeta');\n      let columnValue = this.get('columnValue');\n      let columnMeta = this.get('columnMeta');\n      let rowValue = this.get('rowValue');\n      let rowMeta = this.get('rowMeta');\n      Object.assign(values, {\n        cellValue,\n        cellMeta,\n        columnValue,\n        columnMeta,\n        rowValue,\n        rowMeta\n      });\n      let closureAction = this[action];\n      closureAction === null || closureAction === void 0 ? void 0 : closureAction(values);\n    }\n  });\n});","define(\"ember-table/components/ember-td/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isFirstColumn}}\n    <div class=\"et-cell-container\">\n      {{#if this.canSelect}}\n        <span\n          class=\"et-toggle-select {{unless this.shouldShowCheckbox 'et-speech-only'}}\"\n          data-test-select-row-container\n        >\n          <EmberTableSimpleCheckbox\n            @checked={{this.rowMeta.isGroupSelected}}\n            @onClick={{action \"onSelectionToggled\"}}\n            @ariaLabel=\"Select row\"\n            @dataTestSelectRow={{this.isTesting}}\n          />\n          <span></span>\n        </span>\n      {{/if}}\n  \n      {{#if this.canCollapse}}\n        <span class=\"et-toggle-collapse et-depth-indent {{this.depthClass}}\">\n          <EmberTableSimpleCheckbox\n            @checked={{this.rowMeta.isCollapsed}}\n            @onChange={{action \"onCollapseToggled\"}}\n            @ariaLabel=\"Collapse row\"\n            @dataTestCollapseRow={{this.isTesting}}\n          />\n          <span></span>\n        </span>\n      {{else}}\n        <div class=\"et-depth-indent et-depth-placeholder {{this.depthClass}}\"></div>\n      {{/if}}\n  \n      <div class=\"et-cell-content\">\n        {{#if (has-block)}}\n          {{yield this.cellValue this.columnValue this.rowValue this.cellMeta this.columnMeta this.rowMeta this.rowsCount}}\n        {{else}}\n          {{this.cellValue}}\n        {{/if}}\n      </div>\n    </div>\n  {{else}}\n    {{#if (has-block)}}\n      {{yield this.cellValue this.columnValue this.rowValue this.cellMeta this.columnMeta this.rowMeta this.rowsCount}}\n    {{else}}\n      {{this.cellValue}}\n    {{/if}}\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"bsX/+gDh\",\n    \"block\": \"[[[41,[30,0,[\\\"isFirstColumn\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"et-cell-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canSelect\\\"]],[[[1,\\\"      \\\"],[10,1],[15,0,[29,[\\\"et-toggle-select \\\",[52,[51,[30,0,[\\\"shouldShowCheckbox\\\"]]],\\\"et-speech-only\\\"]]]],[14,\\\"data-test-select-row-container\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@checked\\\",\\\"@onClick\\\",\\\"@ariaLabel\\\",\\\"@dataTestSelectRow\\\"],[[30,0,[\\\"rowMeta\\\",\\\"isGroupSelected\\\"]],[28,[37,3],[[30,0],\\\"onSelectionToggled\\\"],null],\\\"Select row\\\",[30,0,[\\\"isTesting\\\"]]]],null],[1,\\\"\\\\n        \\\"],[10,1],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canCollapse\\\"]],[[[1,\\\"      \\\"],[10,1],[15,0,[29,[\\\"et-toggle-collapse et-depth-indent \\\",[30,0,[\\\"depthClass\\\"]]]]],[12],[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@checked\\\",\\\"@onChange\\\",\\\"@ariaLabel\\\",\\\"@dataTestCollapseRow\\\"],[[30,0,[\\\"rowMeta\\\",\\\"isCollapsed\\\"]],[28,[37,3],[[30,0],\\\"onCollapseToggled\\\"],null],\\\"Collapse row\\\",[30,0,[\\\"isTesting\\\"]]]],null],[1,\\\"\\\\n        \\\"],[10,1],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[15,0,[29,[\\\"et-depth-indent et-depth-placeholder \\\",[30,0,[\\\"depthClass\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"et-cell-content\\\"],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,1]],[[[1,\\\"        \\\"],[18,1,[[30,0,[\\\"cellValue\\\"]],[30,0,[\\\"columnValue\\\"]],[30,0,[\\\"rowValue\\\"]],[30,0,[\\\"cellMeta\\\"]],[30,0,[\\\"columnMeta\\\"]],[30,0,[\\\"rowMeta\\\"]],[30,0,[\\\"rowsCount\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[30,0,[\\\"cellValue\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[48,[30,1]],[[[1,\\\"    \\\"],[18,1,[[30,0,[\\\"cellValue\\\"]],[30,0,[\\\"columnValue\\\"]],[30,0,[\\\"rowValue\\\"]],[30,0,[\\\"cellMeta\\\"]],[30,0,[\\\"columnMeta\\\"]],[30,0,[\\\"rowMeta\\\"]],[30,0,[\\\"rowsCount\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[30,0,[\\\"cellValue\\\"]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"unless\\\",\\\"ember-table-simple-checkbox\\\",\\\"action\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-table/components/ember-td/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-table/components/ember-tfoot/component\", [\"exports\", \"ember-table/components/ember-tbody/component\", \"@ember/array\", \"@ember/object\", \"ember-table/components/ember-tfoot/template\"], function (_exports, _component, _array, _object, _template) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    The table footer component. This component manages any footer rows which may\n    be attached to the table, and has the same API as EmberTBody. It does not\n    provide occlusion, because the number of footer rows is expected to be\n    relatively small.\n  \n    ```hbs\n    <EmberTable as |t|>\n      <t.head @columns={{this.columns}} />\n      <t.body @rows={{this.rows}} />\n  \n      <t.foot @rows={{this.footerRows}} as |f|>\n        <f.row />\n      </t.foot>\n    </EmberTable>\n    ```\n  \n    @yield {object} foot - the API object yielded by the table footer\n    @yield {Component} foot.row - The table row component\n    @yield {object} foot.rowValue - The value for the currently yielded row\n    @yield {object} foot.rowMeta - The meta for the currently yielded row\n    @class <EmberTfoot />\n    @public\n  */\n  var _default = _exports.default = _component.default.extend({\n    layout: _template.default,\n    tagName: 'tfoot',\n    wrappedRowArray: (0, _object.computed)('wrappedRows.[]', function () {\n      let wrappedRows = this.get('wrappedRows');\n      let wrappedRowsLength = wrappedRows.get('length');\n      let arr = [];\n      for (let i = 0; i < wrappedRowsLength; i++) {\n        arr.push(wrappedRows.objectAt(i));\n      }\n      return (0, _array.A)(arr);\n    })\n  });\n});","define(\"ember-table/components/ember-tfoot/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.wrappedRowArray as |rowValue|}}\n    <EmberTablePrivate::RowWrapper\n      @rowValue={{rowValue}}\n      @columns={{this.columns}}\n      @columnMetaCache={{this.columnMetaCache}}\n      @rowMetaCache={{this.rowMetaCache}}\n      @canSelect={{this.canSelect}}\n      @rowSelectionMode={{this.rowSelectionMode}}\n      @checkboxSelectionMode={{this.checkboxSelectionMode}}\n      @rowsCount={{this.wrappedRowArray.length}} as |api|\n    >\n      {{#if (has-block)}}\n        {{yield (hash\n          rowValue=api.rowValue\n          rowMeta=api.rowMeta\n          cells=api.cells\n          rowSelectionMode=api.rowSelectionMode\n          rowsCount=api.rowsCount\n  \n          row=(component \"ember-tr\" api=api)\n        )}}\n      {{else}}\n        <EmberTr @api={{api}} />\n      {{/if}}\n    </EmberTablePrivate::RowWrapper>\n  {{/each}}\n  \n  */\n  {\n    \"id\": \"/IEu90BH\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"wrappedRowArray\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@rowValue\\\",\\\"@columns\\\",\\\"@columnMetaCache\\\",\\\"@rowMetaCache\\\",\\\"@canSelect\\\",\\\"@rowSelectionMode\\\",\\\"@checkboxSelectionMode\\\",\\\"@rowsCount\\\"],[[30,1],[30,0,[\\\"columns\\\"]],[30,0,[\\\"columnMetaCache\\\"]],[30,0,[\\\"rowMetaCache\\\"]],[30,0,[\\\"canSelect\\\"]],[30,0,[\\\"rowSelectionMode\\\"]],[30,0,[\\\"checkboxSelectionMode\\\"]],[30,0,[\\\"wrappedRowArray\\\",\\\"length\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[48,[30,3]],[[[1,\\\"      \\\"],[18,3,[[28,[37,6],null,[[\\\"rowValue\\\",\\\"rowMeta\\\",\\\"cells\\\",\\\"rowSelectionMode\\\",\\\"rowsCount\\\",\\\"row\\\"],[[30,2,[\\\"rowValue\\\"]],[30,2,[\\\"rowMeta\\\"]],[30,2,[\\\"cells\\\"]],[30,2,[\\\"rowSelectionMode\\\"]],[30,2,[\\\"rowsCount\\\"]],[50,\\\"ember-tr\\\",0,null,[[\\\"api\\\"],[[30,2]]]]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@api\\\"],[[30,2]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]],null]],[\\\"rowValue\\\",\\\"api\\\",\\\"&default\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"ember-table-private/row-wrapper\\\",\\\"if\\\",\\\"has-block\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ember-tr\\\"]]\",\n    \"moduleName\": \"ember-table/components/ember-tfoot/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-table/components/ember-th/component\", [\"exports\", \"ember-table/components/-private/base-table-cell\", \"@ember/runloop\", \"@ember/object/computed\", \"ember-table/-private/utils/element\", \"ember-table/components/ember-th/template\", \"@ember/object\"], function (_exports, _baseTableCell, _runloop, _computed, _element, _template, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global Hammer */\n\n  const COLUMN_INACTIVE = 0;\n  const COLUMN_RESIZING = 1;\n  const COLUMN_REORDERING = 2;\n\n  /**\n    The table header cell component. This component manages header cell level\n    concerns, and yields the column value and column meta data objects.\n  \n    ```hbs\n    <EmberTable as |t|>\n      <t.head @columns={{this.columns}} as |h|>\n        <h.row as |r|>\n          <r.cell as |columnValue columnMeta|>\n  \n          </r.cell>\n        </h.row>\n      </t.head>\n  \n      <t.body @rows={{this.rows}} />\n    </EmberTable>\n    ```\n    @yield {object} columnValue - The column definition\n    @yield {object} columnMeta - The meta object associated with this column\n    @class <EmberTh />\n    @public\n  */\n  var _default = _exports.default = _baseTableCell.default.extend({\n    layout: _template.default,\n    tagName: 'th',\n    attributeBindings: ['columnSpan:colspan', 'rowSpan:rowspan'],\n    classNameBindings: ['isSortable', 'isResizable', 'isReorderable'],\n    /**\n      The API object passed in by the table row\n      @argument api\n      @required\n      @type object\n    */\n    api: null,\n    /**\n      Action sent when the user clicks right this element\n      @argument onContextMenu\n      @type Action?\n    */\n    onContextMenu: null,\n    columnValue: (0, _computed.readOnly)('api.columnValue'),\n    columnMeta: (0, _computed.readOnly)('api.columnMeta'),\n    rowMeta: (0, _computed.readOnly)('api.rowMeta'),\n    /**\n      Any sorts applied to the table.\n    */\n    sorts: (0, _computed.readOnly)('api.sorts'),\n    /**\n      Whether or not the column is sortable. Is true IFF the column is a leaf node\n      onUpdateSorts is set on the thead.\n    */\n    isSortable: (0, _computed.readOnly)('columnMeta.isSortable'),\n    /**\n      Indicates if this column can be resized.\n    */\n    isResizable: (0, _computed.readOnly)('columnMeta.isResizable'),\n    /**\n     Indicates if this column can be reordered.\n    */\n    isReorderable: (0, _computed.readOnly)('columnMeta.isReorderable'),\n    columnSpan: (0, _computed.readOnly)('columnMeta.columnSpan'),\n    rowSpan: (0, _computed.readOnly)('columnMeta.rowSpan'),\n    /**\n      A variable used for column resizing & ordering. When user press mouse at a point that's close\n      to column boundary (using some threshold), this variable set whether it's the left or right\n      column.\n    */\n    _columnState: COLUMN_INACTIVE,\n    /**\n      An object that listens to touch/ press/ drag events.\n    */\n    _hammer: null,\n    didInsertElement() {\n      this._super(...arguments);\n      this.get('columnMeta').registerElement(this.element);\n      let hammer = new Hammer(this.element);\n      hammer.add(new Hammer.Press({\n        time: 0\n      }));\n      hammer.on('press', this.pressHandler.bind(this));\n      hammer.on('panstart', this.panStartHandler.bind(this));\n      hammer.on('panmove', this.panMoveHandler.bind(this));\n      hammer.on('panend', this.panEndHandler.bind(this));\n      this._hammer = hammer;\n    },\n    willDestroyElement() {\n      let hammer = this._hammer;\n      hammer.off('press');\n      hammer.off('panstart');\n      hammer.off('panmove');\n      hammer.off('panend');\n      hammer.destroy();\n      this._super(...arguments);\n    },\n    actions: {\n      sendDropdownAction(...args) {\n        var _this$onDropdownActio;\n        (_this$onDropdownActio = this.onDropdownAction) === null || _this$onDropdownActio === void 0 ? void 0 : _this$onDropdownActio.call(this, ...args);\n      }\n    },\n    click(event) {\n      let isSortable = this.get('isSortable');\n      let inputParent = (0, _element.closest)(event.target, 'button:not(.et-sort-toggle), input, label, a, select');\n      if (this._columnState === COLUMN_INACTIVE && !inputParent && isSortable) {\n        let toggle = event.ctrlKey || event.metaKey;\n        this.updateSort({\n          toggle\n        });\n      }\n    },\n    contextMenu(event) {\n      var _this$onContextMenu;\n      (_this$onContextMenu = this.onContextMenu) === null || _this$onContextMenu === void 0 ? void 0 : _this$onContextMenu.call(this, event);\n      return false;\n    },\n    keyUp(event) {\n      let isSortable = this.get('isSortable');\n      let inputParent = (0, _element.closest)(event.target, 'button:not(.et-sort-toggle), input, label, a, select');\n      if (this._columnState === COLUMN_INACTIVE && !inputParent && event.key === 'Enter' && isSortable) {\n        this.updateSort({\n          toggle: false\n        });\n      }\n    },\n    updateSort({\n      toggle\n    }) {\n      let valuePath = this.get('columnValue.valuePath');\n      let sorts = this.get('sorts');\n      let existingSorting = sorts.find(s => (0, _object.get)(s, 'valuePath') === valuePath);\n      let newSortings = toggle ? sorts.filter(s => (0, _object.get)(s, 'valuePath') !== valuePath) : [];\n      if (!existingSorting) {\n        newSortings.push({\n          valuePath,\n          isAscending: false\n        });\n      } else if (existingSorting.isAscending === false) {\n        newSortings.push({\n          valuePath,\n          isAscending: true\n        });\n      }\n      this.get('api').sendUpdateSort(newSortings);\n    },\n    pressHandler(event) {\n      let [{\n        clientX,\n        target\n      }] = event.pointers;\n      this._originalClientX = clientX;\n      this._originalTargetWasResize = target.classList.contains('et-header-resize-area');\n    },\n    panStartHandler(event) {\n      let isResizable = this.get('isResizable');\n      let isReorderable = this.get('isReorderable');\n      let [{\n        clientX\n      }] = event.pointers;\n      if (isResizable && this._originalTargetWasResize) {\n        this._columnState = COLUMN_RESIZING;\n        this.get('columnMeta').startResize(this._originalClientX);\n      } else if (isReorderable) {\n        this._columnState = COLUMN_REORDERING;\n        this.get('columnMeta').startReorder(clientX);\n      }\n    },\n    panMoveHandler(event) {\n      let [{\n        clientX\n      }] = event.pointers;\n      if (this._columnState === COLUMN_RESIZING) {\n        this.get('columnMeta').updateResize(clientX);\n        this._prevClientX = clientX;\n      } else if (this._columnState === COLUMN_REORDERING) {\n        this.get('columnMeta').updateReorder(clientX);\n        this._columnState = COLUMN_REORDERING;\n      }\n    },\n    panEndHandler() {\n      if (this._columnState === COLUMN_RESIZING) {\n        this.get('columnMeta').endResize();\n      } else if (this._columnState === COLUMN_REORDERING) {\n        this.get('columnMeta').endReorder();\n      }\n      (0, _runloop.next)(() => this._columnState = COLUMN_INACTIVE);\n    }\n  });\n});","define(\"ember-table/components/ember-th/resize-handle/component\", [\"exports\", \"@ember/component\", \"ember-table/components/ember-th/resize-handle/template\", \"@ember/object/computed\"], function (_exports, _component, _template, _computed) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    The table header cell resize handle component. This component renders an area to grab to resize a column.\n  \n    ```hbs\n    <EmberTable as |t|>\n      <t.head @columns={{this.columns}} as |h|>\n        <h.row as |r|>\n          <r.cell as |columnValue columnMeta|>\n            {{columnValue.name}}\n  \n            <EmberTh::ResizeHandle @columnMeta={{columnMeta}} />\n          </r.cell>\n        </h.row>\n      </t.head>\n  \n      <t.body @rows={{this.rows}} />\n    </EmberTable>\n    ```\n    @class <EmberTh::ResizeHandle />\n    @public\n  */\n  var _default = _exports.default = _component.default.extend({\n    layout: _template.default,\n    tagName: '',\n    /**\n      The API object passed in by the table header cell\n      @argument columnMeta\n      @required\n      @type object\n    */\n    columnMeta: null,\n    isResizable: (0, _computed.readOnly)('columnMeta.isResizable')\n  });\n});","define(\"ember-table/components/ember-th/resize-handle/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n      {{#if this.isResizable}}\n      <div data-test-resize-handle class=\"et-header-resize-area\">\n      </div>\n    {{/if}}\n  */\n  {\n    \"id\": \"IX/1Z8ol\",\n    \"block\": \"[[[41,[30,0,[\\\"isResizable\\\"]],[[[1,\\\"    \\\"],[10,0],[14,\\\"data-test-resize-handle\\\",\\\"\\\"],[14,0,\\\"et-header-resize-area\\\"],[12],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\"]]\",\n    \"moduleName\": \"ember-table/components/ember-th/resize-handle/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-table/components/ember-th/sort-indicator/component\", [\"exports\", \"@ember/component\", \"ember-table/components/ember-th/sort-indicator/template\", \"@ember/object/computed\"], function (_exports, _component, _template, _computed) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    The table header cell sort indicator component. This component renders the state of the sort on the column (ascending/descending/none).\n  \n    ```hbs\n    <EmberTable as |t|>\n      <t.head @columns={{this.columns}} as |h|>\n        <h.row as |r|>\n          <r.cell as |columnValue columnMeta|>\n            {{columnValue.name}}\n  \n            <EmberTh::SortIndicator @columnMeta={{columnMeta}} />\n          </r.cell>\n        </h.row>\n      </t.head>\n  \n      <t.body @rows={{this.rows}} />\n    </EmberTable>\n    ```\n    @yield {object} columnMeta - The meta object associated with this column\n    @class <EmberTh::SortIndicator />\n  */\n  var _default = _exports.default = _component.default.extend({\n    layout: _template.default,\n    tagName: '',\n    /**\n      The API object passed in by the table header cell\n      @argument columnMeta\n      @required\n      @type object\n    */\n    columnMeta: null,\n    isSortable: (0, _computed.readOnly)('columnMeta.isSortable'),\n    isSorted: (0, _computed.readOnly)('columnMeta.isSorted'),\n    isSortedAsc: (0, _computed.readOnly)('columnMeta.isSortedAsc'),\n    isMultiSorted: (0, _computed.readOnly)('columnMeta.isMultiSorted'),\n    sortIndex: (0, _computed.readOnly)('columnMeta.sortIndex')\n  });\n});","define(\"ember-table/components/ember-th/sort-indicator/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isSorted}}\n    <span data-test-sort-indicator class=\"et-sort-indicator {{if this.isSortedAsc 'is-ascending' 'is-descending'}}\">\n      {{#if (has-block)}}\n        {{yield this.columnMeta}}\n      {{else}}\n        {{#if this.isMultiSorted}}\n          {{this.sortIndex}}\n        {{/if}}\n      {{/if}}\n    </span>\n  {{/if}}\n  \n  {{#if this.isSortable}}\n    <button data-test-sort-toggle class=\"et-sort-toggle et-speech-only\">Toggle Sort</button>\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"eh/dwBqK\",\n    \"block\": \"[[[41,[30,0,[\\\"isSorted\\\"]],[[[1,\\\"  \\\"],[10,1],[14,\\\"data-test-sort-indicator\\\",\\\"\\\"],[15,0,[29,[\\\"et-sort-indicator \\\",[52,[30,0,[\\\"isSortedAsc\\\"]],\\\"is-ascending\\\",\\\"is-descending\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,1]],[[[1,\\\"      \\\"],[18,1,[[30,0,[\\\"columnMeta\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isMultiSorted\\\"]],[[[1,\\\"        \\\"],[1,[30,0,[\\\"sortIndex\\\"]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSortable\\\"]],[[[1,\\\"  \\\"],[10,\\\"button\\\"],[14,\\\"data-test-sort-toggle\\\",\\\"\\\"],[14,0,\\\"et-sort-toggle et-speech-only\\\"],[12],[1,\\\"Toggle Sort\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-table/components/ember-th/sort-indicator/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-table/components/ember-th/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (has-block)}}\n    {{yield this.columnValue this.columnMeta this.rowMeta}}\n  {{else}}\n    {{this.columnValue.name}}\n  \n    <EmberTh::SortIndicator @columnMeta={{this.columnMeta}} />\n  \n    <EmberTh::ResizeHandle @columnMeta={{this.columnMeta}} />\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"1BVFpXqk\",\n    \"block\": \"[[[41,[48,[30,1]],[[[1,\\\"  \\\"],[18,1,[[30,0,[\\\"columnValue\\\"]],[30,0,[\\\"columnMeta\\\"]],[30,0,[\\\"rowMeta\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[1,[30,0,[\\\"columnValue\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,3],null,[[\\\"@columnMeta\\\"],[[30,0,[\\\"columnMeta\\\"]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],null,[[\\\"@columnMeta\\\"],[[30,0,[\\\"columnMeta\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"has-block\\\",\\\"yield\\\",\\\"ember-th/sort-indicator\\\",\\\"ember-th/resize-handle\\\"]]\",\n    \"moduleName\": \"ember-table/components/ember-th/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-table/components/ember-thead/component\", [\"exports\", \"@ember/component\", \"@ember/runloop\", \"@ember/array\", \"@ember/debug\", \"ember-table/-private/utils/default-to\", \"ember-table/-private/utils/observer\", \"@ember/object\", \"@ember/object/computed\", \"@ember/utils\", \"ember-table/-private/utils/element\", \"ember-table/-private/meta-cache\", \"ember-table/-private/utils/sort\", \"ember-table/-private/column-tree\", \"ember-table/components/ember-thead/template\"], function (_exports, _component, _runloop, _array, _debug, _defaultTo, _observer, _object, _computed, _utils, _element, _metaCache, _sort, _columnTree, _template) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.setupTHeadForTest = setupTHeadForTest;\n  /* global ResizeSensor */\n\n  let isTestingThead = false;\n  function setupTHeadForTest(bool) {\n    isTestingThead = bool;\n  }\n\n  /**\n    The table header component. This component manages and receives the column\n    definitions for the table, and yields for each row of headers that exists\n    (in the case of subcolumns).\n  \n    ```hbs\n    <EmberTable as |t|>\n      <t.head @columns={{this.columns}} as |h|>\n  \n      </t.head>\n  \n      <t.body @rows={{this.rows}} />\n    </EmberTable>\n    ```\n  \n    @yield {object} head - the API object yielded by the table header\n    @yield {Component} head.row - The table row component\n    @class <EmberThead />\n    @public\n  */\n  var _default = _exports.default = _component.default.extend({\n    layout: _template.default,\n    tagName: 'thead',\n    /**\n      The API object passed in by the table\n       @argument api\n      @required\n      @type object\n    */\n    api: null,\n    unwrappedApi: (0, _computed.or)('api.api', 'api'),\n    /**\n      The column definitions for the table\n       @argument columns\n      @required\n      @type array? ([])\n    */\n    columns: (0, _defaultTo.default)(() => []),\n    /**\n      Specifies the name of the property on the column objects that should be\n      used as the key for caching column metadata. For example, if columns have\n      a unique `id` property, the value could be set to `id`. If unspecified,\n      the column object itself is used as a key.\n       @argument columnKeyPath\n      @type string?\n    */\n    columnKeyPath: null,\n    /**\n      An ordered array of the sorts applied to the table\n      @argument sorts\n      @type array? ([])\n    */\n    sorts: (0, _defaultTo.default)(() => []),\n    /**\n      An optional sort. If not specified, defaults to `<sortMultiple>`, which\n      sorts by each `sort` in `sorts`, in order.\n      @argument sortFunction\n      @type function? (<sortMultiple>)\n    */\n    sortFunction: (0, _defaultTo.default)(() => _sort.sortMultiple),\n    /**\n      An ordered array of the sorts applied to the table\n      @argument compareFunction\n      @type function? (<compareValues>)\n    */\n    compareFunction: (0, _defaultTo.default)(() => _sort.compareValues),\n    /**\n      Flag that allows to sort empty values after non empty ones\n      @argument sortEmptyLast\n      @type boolean? (false)\n    */\n    sortEmptyLast: (0, _defaultTo.default)(false),\n    /**\n      Flag that toggles reordering in the table\n      @argument enableReorder\n      @type boolean? (true)\n    */\n    enableReorder: (0, _defaultTo.default)(true),\n    /**\n      Flag that toggles resizing in the table\n      @argument enableResize\n      @type boolean? (true)\n    */\n    enableResize: (0, _defaultTo.default)(true),\n    /**\n      Enables shadows at the edges of the table to show that the user can scroll\n      to view more content. Possible string values are `all`, `horizontal`,\n      `vertical`, and `none`. The boolean values `true` and `false` are aliased to `all` and `none`, respectively.\n      @argument scrollIndicators\n      @type boolean|string? (false)\n    */\n    scrollIndicators: (0, _defaultTo.default)(false),\n    /**\n      Sets which column resizing behavior to use. Possible values are `standard`\n      (resizing a column pushes or pulls all other columns) and `fluid` (resizing a\n      column subtracts width from neighboring columns).\n      @argument resizeMode\n      @type string? ('standard')\n    */\n    resizeMode: (0, _defaultTo.default)(_columnTree.RESIZE_MODE.STANDARD),\n    /**\n      A configuration that controls how columns shrink (or extend) when total column width does not\n      match table width. Behavior of column modification is as follows:\n       * \"equal-column\": extra space is distributed equally among all columns\n      * \"first-column\": extra space is added into the first column.\n      * \"last-column\": extra space is added into the last column.\n      * \"nth-column\": extra space is added into the column defined by `fillColumnIndex`.\n       @argument fillMode\n      @type string? ('equal-column')\n    */\n    fillMode: (0, _defaultTo.default)(_columnTree.FILL_MODE.EQUAL_COLUMN),\n    /**\n      Specifies how columns should be sized when the table is initialized. This only affects\n      `eq-container-slack` and `gte-container-slack` width constraint modes. Permitted values are\n      the same as `fillMode`.\n       @argument initialFillMode\n      @type string? ('none')\n    */\n    initialFillMode: (0, _defaultTo.default)(_columnTree.FILL_MODE.NONE),\n    /**\n      A configuration that controls which column shrinks (or extends) when `fillMode` is\n      'nth-column'. This is zero indexed.\n       @argument fillColumnIndex\n      @type number?\n    */\n    fillColumnIndex: null,\n    /**\n      Sets a constraint on the table's size, such that it must be greater than, less\n      than, or equal to the size of the containing element.\n      Valid values:\n        * 'none'\n        * 'eq-container'\n        * 'gte-container'\n        * 'lte-container'\n       @argument widthConstraint\n      @type string? ('none')\n    */\n    widthConstraint: (0, _defaultTo.default)(_columnTree.WIDTH_CONSTRAINT.NONE),\n    /**\n      A numeric adjustment to be applied to the constraint on the table's size.\n       @argument containerWidthAdjustment\n      @type number?\n    */\n    containerWidthAdjustment: null,\n    /**\n      An action that is sent when sorts is updated\n      @argument onUpdateSorts\n      @type Action?\n    */\n    onUpdateSorts: null,\n    /**\n      An action that is sent when columns are reordered\n      @argument onReorder\n      @type Action?\n    */\n    onReorder: null,\n    /**\n      An action that is sent when columns are resized\n      @argument onResize\n      @type Action?\n    */\n    onResize: null,\n    attributeBindings: ['wrappedRowsCount:data-test-row-count'],\n    wrappedRowsCount: (0, _computed.and)('isTesting', 'wrappedRows.length'),\n    init() {\n      var _this$onReorder, _this$onResize;\n      this._super(...arguments);\n      if (isTestingThead) {\n        this.set('isTesting', true);\n      }\n\n      /**\n       * A sensor object that sends events to this table component when table size changes. When table\n       * is resized, table width & height are updated and other computed properties depending on them\n       * also get updated.\n       */\n      this._tableResizeSensor = null;\n\n      /**\n        The map that contains column meta information for this table. Is meant to be\n        unique to this table, which is why it is created here.\n      */\n      let columnKeyPath = this.get('columnKeyPath');\n      this.columnMetaCache = new _metaCache.default({\n        keyPath: columnKeyPath\n      });\n      this.columnTree = _columnTree.default.create({\n        onReorder: (_this$onReorder = this.onReorder) === null || _this$onReorder === void 0 ? void 0 : _this$onReorder.bind(this),\n        onResize: (_this$onResize = this.onResize) === null || _this$onResize === void 0 ? void 0 : _this$onResize.bind(this),\n        columnMetaCache: this.columnMetaCache,\n        containerWidthAdjustment: this.containerWidthAdjustment\n      });\n\n      /**\n        The map that contains row meta information for this table header.\n      */\n      this.rowMetaCache = new Map();\n      this._updateApi();\n      this._validateUniqueColumnKeys();\n      this._updateColumnTree();\n      (0, _runloop.scheduleOnce)('actions', this.columnTree, 'performInitialLayout');\n      (0, _observer.addObserver)(this, 'scrollIndicators', this._updateApi);\n      (0, _observer.addObserver)(this, 'reorderFunction', this._updateApi);\n      (0, _observer.addObserver)(this, 'sorts', this._updateApi);\n      (0, _observer.addObserver)(this, 'sortFunction', this._updateApi);\n      (0, _observer.addObserver)(this, 'sorts', this._updateColumnTree);\n      (0, _observer.addObserver)(this, 'columns.[]', this._onColumnsChange);\n      (0, _observer.addObserver)(this, 'columnKeyPath', this._updateColumnMetaCache);\n      (0, _observer.addObserver)(this, 'fillMode', this._updateColumnTree);\n      (0, _observer.addObserver)(this, 'initialFillMode', this._updateColumnTree);\n      (0, _observer.addObserver)(this, 'fillColumnIndex', this._updateColumnTree);\n      (0, _observer.addObserver)(this, 'resizeMode', this._updateColumnTree);\n      (0, _observer.addObserver)(this, 'widthConstraint', this._updateColumnTree);\n      (0, _observer.addObserver)(this, 'enableSort', this._updateColumnTree);\n      (0, _observer.addObserver)(this, 'enableResize', this._updateColumnTree);\n      (0, _observer.addObserver)(this, 'enableReorder', this._updateColumnTree);\n    },\n    _updateApi() {\n      this.set('unwrappedApi.columnTree', this.columnTree);\n      this.set('unwrappedApi.compareFunction', this.get('compareFunction'));\n      this.set('unwrappedApi.scrollIndicators', this.get('scrollIndicators'));\n      this.set('unwrappedApi.sorts', this.get('sorts'));\n      this.set('unwrappedApi.sortEmptyLast', this.get('sortEmptyLast'));\n      this.set('unwrappedApi.sortFunction', this.get('sortFunction'));\n    },\n    _updateColumnTree() {\n      this.columnTree.set('sorts', this.get('sorts'));\n      this.columnTree.set('columns', this.get('columns'));\n      this.columnTree.set('fillMode', this.get('fillMode'));\n      this.columnTree.set('initialFillMode', this.get('initialFillMode'));\n      this.columnTree.set('fillColumnIndex', this.get('fillColumnIndex'));\n      this.columnTree.set('resizeMode', this.get('resizeMode'));\n      this.columnTree.set('widthConstraint', this.get('widthConstraint'));\n      this.columnTree.set('enableSort', this.get('enableSort'));\n      this.columnTree.set('enableResize', this.get('enableResize'));\n      this.columnTree.set('enableReorder', this.get('enableReorder'));\n    },\n    _updateColumnMetaCache() {\n      this._validateUniqueColumnKeys();\n      this.columnMetaCache.keyPath = this.get('columnKeyPath');\n    },\n    _onColumnsChange() {\n      if (this.get('columns.length') === 0) {\n        return;\n      }\n      this._validateUniqueColumnKeys();\n      this._updateColumnTree();\n      (0, _runloop.scheduleOnce)('actions', this, this.fillupHandler);\n    },\n    _validateUniqueColumnKeys() {\n      let columns = this.get('columns');\n      let columnKeyPath = this.get('columnKeyPath');\n      if (columns && columnKeyPath) {\n        // traverse tree to collect column keys\n        let keys = [];\n        let queue = [...columns];\n        while (queue.length > 0) {\n          let column = queue.shift();\n          keys.push((0, _object.get)(column, columnKeyPath));\n          if (column.subcolumns) {\n            queue.push(...column.subcolumns);\n          }\n        }\n        let presentKeys = (0, _array.A)(keys.filter(_utils.isPresent));\n\n        // If a column has a falsey key, its meta data cannot be mapped to a\n        // replacement column in the future. This is not necessarily a problem,\n        // but it's reasonable to assume the consumer will want to avoid this\n        // scenario if they have bothered to set `columnKeyPath` at all.\n        (true && !(presentKeys.length === keys.length) && (0, _debug.assert)('if columnKeyPath is specified, every column must have a key', presentKeys.length === keys.length)); // Duplicate non-blank keys are the real problem; the meta cache will map\n        // two columns to the same meta object and havoc will ensue.\n        (true && !(presentKeys.uniq().length === presentKeys.length) && (0, _debug.assert)('if columnKeyPath is specified, no two columns can share the same key', presentKeys.uniq().length === presentKeys.length));\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this._container = (0, _element.closest)(this.element, '.ember-table-overflow');\n      this.columnTree.registerContainer(this._container);\n      this._tableResizeSensor = new ResizeSensor(this._container, (0, _runloop.bind)(this, this.fillupHandler));\n    },\n    willDestroyElement() {\n      this._tableResizeSensor.detach(this._container);\n      this.columnTree.destroy();\n\n      // Clean the column meta cache\n      for (let [column, meta] of this.columnMetaCache.entries()) {\n        meta.destroy();\n        this.columnMetaCache.delete(column);\n      }\n\n      // Clean the row meta cache\n      for (let [row, meta] of this.rowMetaCache.entries()) {\n        meta.destroy();\n        this.rowMetaCache.delete(row);\n      }\n      this._super(...arguments);\n    },\n    enableSort: (0, _computed.notEmpty)('onUpdateSorts'),\n    wrappedRows: (0, _object.computed)('columnTree.rows.[]', 'sorts.[]', 'headerActions.[]', 'fillMode', 'fillColumnIndex', function () {\n      let rows = this.get('columnTree.rows');\n      let sorts = this.get('sorts');\n      let columnMetaCache = this.get('columnMetaCache');\n      let rowMetaCache = this.get('rowMetaCache');\n      return (0, _array.A)(rows.map((row, i) => {\n        let rowMeta = rowMetaCache.get(row);\n        if (!rowMeta) {\n          rowMeta = _object.default.create();\n          rowMetaCache.set(row, rowMeta);\n        }\n        rowMeta.set('index', i);\n        let cells = (0, _array.A)(row.map(columnValue => {\n          let columnMeta = columnMetaCache.get(columnValue);\n          return {\n            columnValue,\n            columnMeta,\n            rowMeta,\n            sorts,\n            sendUpdateSort: this.sendUpdateSort.bind(this)\n          };\n        }));\n        return {\n          cells,\n          rowMeta,\n          rowsCount: rows.length,\n          isHeader: true\n        };\n      }));\n    }),\n    sendUpdateSort(newSorts) {\n      var _this$onUpdateSorts;\n      (_this$onUpdateSorts = this.onUpdateSorts) === null || _this$onUpdateSorts === void 0 ? void 0 : _this$onUpdateSorts.call(this, newSorts);\n    },\n    fillupHandler() {\n      if (this.isDestroying) {\n        return;\n      }\n      this.get('columnTree').ensureWidthConstraint();\n    }\n  });\n});","define(\"ember-table/components/ember-thead/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.wrappedRows as |api|}}\n    {{#if (has-block)}}\n      {{yield (hash\n        cells=api.cells\n        isHeader=api.isHeader\n        rowsCount=api.rowsCount\n  \n        row=(component \"ember-tr\" api=api)\n      )}}\n    {{else}}\n      <EmberTr @api={{api}} />\n    {{/if}}\n  {{/each}}\n  \n  */\n  {\n    \"id\": \"Vxj6Y/Zb\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"wrappedRows\\\"]]],null]],null],null,[[[41,[48,[30,2]],[[[1,\\\"    \\\"],[18,2,[[28,[37,5],null,[[\\\"cells\\\",\\\"isHeader\\\",\\\"rowsCount\\\",\\\"row\\\"],[[30,1,[\\\"cells\\\"]],[30,1,[\\\"isHeader\\\"]],[30,1,[\\\"rowsCount\\\"]],[50,\\\"ember-tr\\\",0,null,[[\\\"api\\\"],[[30,1]]]]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@api\\\"],[[30,1]]],null],[1,\\\"\\\\n\\\"]],[]]]],[1]],null]],[\\\"api\\\",\\\"&default\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"has-block\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ember-tr\\\"]]\",\n    \"moduleName\": \"ember-table/components/ember-thead/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-table/components/ember-tr/component\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/object/computed\", \"ember-table/-private/utils/element\", \"ember-table/components/ember-tr/template\", \"ember-table/-private/collapse-tree\"], function (_exports, _component, _object, _computed, _element, _template, _collapseTree) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    The table row component. This component manages row level concerns, and yields\n    an API object that contains the cell component, the cell/column/row values,\n    and the cell/column/row meta objects. It is used in both the header and the\n    body, mirroring the structure of native HTML tables.\n  \n    ```hbs\n    <EmberTable as |t|>\n      <t.head @columns={{this.columns}} as |h|>\n        <h.row as |r|>\n          <r.cell>\n        </h.row>\n      </t.head>\n  \n      <t.body @rows={{this.rows}} as |b|>\n        <b.row as |r|>\n          <r.cell>\n        </b.row>\n      </t.body>\n    </EmberTable>\n    ```\n  \n    @yield {object} row - the API object yielded by the table row\n    @yield {Component} row.cell - The table cell contextual component\n  \n    @yield {any} row.cellValue - The value for the currently yielded cell\n    @yield {object} row.cellMeta - The meta for the currently yielded cell\n  \n    @yield {object} row.columnValue - The value for the currently yielded column\n    @yield {object} row.columnMeta - The meta for the currently yielded column\n  \n    @yield {object} row.rowValue - The value for the currently yielded row\n    @yield {object} row.rowMeta - The meta for the currently yielded row\n  \n    @class <EmberTr />\n    @public\n  */\n  var _default = _exports.default = _component.default.extend({\n    layout: _template.default,\n    tagName: 'tr',\n    classNames: ['et-tr'],\n    classNameBindings: ['isSelected', 'isGroupSelected', 'isSelectable'],\n    /**\n      The API object passed in by the table body, header, or footer\n      @argument api\n      @required\n      @type object\n    */\n    api: null,\n    /**\n      Action sent when the user clicks this element\n      @argument onClick\n      @type Action?\n    */\n    onClick: null,\n    /**\n      Action sent when the user double clicks this element\n      @argument onDoubleClick\n      @type Action?\n    */\n    onDoubleClick: null,\n    rowValue: (0, _computed.readOnly)('api.rowValue'),\n    rowMeta: (0, _computed.readOnly)('api.rowMeta'),\n    cells: (0, _computed.readOnly)('api.cells'),\n    rowSelectionMode: (0, _computed.readOnly)('api.rowSelectionMode'),\n    rowToggleMode: (0, _computed.readOnly)('api.rowToggleMode'),\n    isHeader: (0, _computed.readOnly)('api.isHeader'),\n    isSelected: (0, _computed.readOnly)('rowMeta.isSelected'),\n    isGroupSelected: (0, _computed.readOnly)('rowMeta.isGroupSelected'),\n    isSelectable: (0, _object.computed)('rowSelectionMode', function () {\n      let rowSelectionMode = this.get('rowSelectionMode');\n      return rowSelectionMode === _collapseTree.SELECT_MODE.MULTIPLE || rowSelectionMode === _collapseTree.SELECT_MODE.SINGLE;\n    }),\n    click(event) {\n      let rowSelectionMode = this.get('rowSelectionMode');\n      let inputParent = (0, _element.closest)(event.target, 'input, button, label, a, select');\n      if (!inputParent) {\n        let rowMeta = this.get('rowMeta');\n        if (rowMeta && rowSelectionMode === _collapseTree.SELECT_MODE.MULTIPLE) {\n          let toggle = event.ctrlKey || event.metaKey || this.get('rowToggleMode');\n          let range = event.shiftKey;\n          rowMeta.select({\n            toggle,\n            range\n          });\n        } else if (rowMeta && rowSelectionMode === _collapseTree.SELECT_MODE.SINGLE) {\n          rowMeta.select({\n            single: true\n          });\n        }\n      }\n      this.sendEventAction('onClick', event);\n    },\n    doubleClick(event) {\n      this.sendEventAction('onDoubleClick', event);\n    },\n    sendEventAction(action, event) {\n      let rowValue = this.get('rowValue');\n      let rowMeta = this.get('rowMeta');\n      let closureAction = this[action];\n      closureAction === null || closureAction === void 0 ? void 0 : closureAction({\n        event,\n        rowValue,\n        rowMeta\n      });\n    }\n  });\n});","define(\"ember-table/components/ember-tr/template\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.cells as |api|}}\n    {{#if (has-block)}}\n      {{#if this.isHeader}}\n        {{yield (hash\n          columnValue=api.columnValue\n          columnMeta=api.columnMeta\n  \n          sorts=api.sorts\n          sendUpdateSort=api.sendUpdateSort\n  \n          rowMeta=api.rowMeta\n          rowsCount=api.rowsCount\n  \n          cell=(component \"ember-th\" api=api)\n        )}}\n      {{else}}\n        {{yield (hash\n          api=api\n  \n          cellValue=api.cellValue\n          cellMeta=api.cellMeta\n  \n          columnValue=api.columnValue\n          columnMeta=api.columnMeta\n  \n          rowValue=api.rowValue\n          rowMeta=api.rowMeta\n  \n          rowsCount=api.rowsCount\n  \n          cell=(component \"ember-td\" api=api)\n        )}}\n      {{/if}}\n    {{else if this.isHeader}}\n      <EmberTh @api={{api}} />\n    {{else}}\n      <EmberTd @api={{api}} />\n    {{/if}}\n  {{/each}}\n  \n  */\n  {\n    \"id\": \"C7IvXL/k\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"cells\\\"]]],null]],null],null,[[[41,[48,[30,2]],[[[41,[30,0,[\\\"isHeader\\\"]],[[[1,\\\"      \\\"],[18,2,[[28,[37,5],null,[[\\\"columnValue\\\",\\\"columnMeta\\\",\\\"sorts\\\",\\\"sendUpdateSort\\\",\\\"rowMeta\\\",\\\"rowsCount\\\",\\\"cell\\\"],[[30,1,[\\\"columnValue\\\"]],[30,1,[\\\"columnMeta\\\"]],[30,1,[\\\"sorts\\\"]],[30,1,[\\\"sendUpdateSort\\\"]],[30,1,[\\\"rowMeta\\\"]],[30,1,[\\\"rowsCount\\\"]],[50,\\\"ember-th\\\",0,null,[[\\\"api\\\"],[[30,1]]]]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[18,2,[[28,[37,5],null,[[\\\"api\\\",\\\"cellValue\\\",\\\"cellMeta\\\",\\\"columnValue\\\",\\\"columnMeta\\\",\\\"rowValue\\\",\\\"rowMeta\\\",\\\"rowsCount\\\",\\\"cell\\\"],[[30,1],[30,1,[\\\"cellValue\\\"]],[30,1,[\\\"cellMeta\\\"]],[30,1,[\\\"columnValue\\\"]],[30,1,[\\\"columnMeta\\\"]],[30,1,[\\\"rowValue\\\"]],[30,1,[\\\"rowMeta\\\"]],[30,1,[\\\"rowsCount\\\"]],[50,\\\"ember-td\\\",0,null,[[\\\"api\\\"],[[30,1]]]]]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,0,[\\\"isHeader\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@api\\\"],[[30,1]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,8],null,[[\\\"@api\\\"],[[30,1]]],null],[1,\\\"\\\\n  \\\"]],[]]]],[]]]],[1]],null]],[\\\"api\\\",\\\"&default\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"has-block\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ember-th\\\",\\\"ember-td\\\"]]\",\n    \"moduleName\": \"ember-table/components/ember-tr/template.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-test-waiters/index\", [\"exports\", \"@ember/debug\", \"@ember/test-waiters\"], function (_exports, _debug, _testWaiters) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.keys(_testWaiters).forEach(function (key) {\n    if (key === \"default\" || key === \"__esModule\") return;\n    if (key in _exports && _exports[key] === _testWaiters[key]) return;\n    Object.defineProperty(_exports, key, {\n      enumerable: true,\n      get: function () {\n        return _testWaiters[key];\n      }\n    });\n  });\n  (true && !(false) && (0, _debug.deprecate)('Importing from ember-test-waiters is deprecated. Please import from @ember/test-waiters', false, {\n    id: 'ember-test-waiters-legacy-module-name',\n    until: '3.0.0',\n    for: 'ember-test-waiters',\n    since: {\n      enabled: '2.2.0'\n    }\n  }));\n});","define(\"ember-text-measurer/services/text-measurer\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _service.default.extend({\n    init() {\n      this._super(...arguments);\n      this.canvas = document.createElement('canvas');\n      this.ctx = this.canvas.getContext('2d');\n    },\n    width(string, font = null) {\n      if (font) {\n        this.ctx.font = font;\n      }\n      return this.ctx.measureText(string).width;\n    },\n    lines(string, maxWidth, font = null) {\n      if (font) {\n        this.ctx.font = font;\n      }\n      let paragraphs = string.split(/\\n/);\n      let lines = paragraphs.length;\n      for (let i = 0; i < paragraphs.length; i++) {\n        let paragraph = paragraphs[i];\n        if (paragraph !== '') {\n          let words = paragraph.split(' ');\n          let widthSoFar = 0;\n          let j = 0;\n          for (; j < words.length - 1; j++) {\n            let wordWidth = this.ctx.measureText(words[j] + ' ').width;\n            widthSoFar = widthSoFar + wordWidth;\n            if (widthSoFar > maxWidth) {\n              lines++;\n              widthSoFar = wordWidth;\n            }\n          }\n          let wordWidth = this.ctx.measureText(words[j]).width;\n          widthSoFar = widthSoFar + wordWidth;\n          if (widthSoFar > maxWidth) {\n            lines++;\n            widthSoFar = wordWidth;\n          }\n        }\n      }\n      return lines;\n    },\n    fitTextSize(string, maxWidth, font = null) {\n      let width = this.width(string, font);\n      let fontSize = this.ctx.font.match(/\\d+/)[0];\n      return Math.floor(parseFloat(fontSize) * maxWidth / width);\n    }\n  });\n});","define(\"ember-tracked-storage-polyfill/index\", [\"exports\", \"@glimmer/tracking\", \"@ember/debug\"], function (_exports, _tracking, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.createStorage = createStorage;\n  _exports.getValue = getValue;\n  _exports.setValue = setValue;\n  var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {\n    var c = arguments.length,\n      r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n      d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n  };\n  class TrackedStorageImpl {\n    constructor(initialValue, isEqual) {\n      this._value = this._lastValue = initialValue;\n      this._isEqual = isEqual;\n    }\n  }\n  __decorate([_tracking.tracked], TrackedStorageImpl.prototype, \"_value\", void 0);\n  function tripleEq(a, b) {\n    return a === b;\n  }\n  function createStorage(initialValue, isEqual = tripleEq) {\n    (true && !(typeof isEqual === 'function') && (0, _debug.assert)('the second parameter to `createStorage` must be an equality function or undefined', typeof isEqual === 'function'));\n    return new TrackedStorageImpl(initialValue, isEqual);\n  }\n  function getValue(storage) {\n    (true && !(storage instanceof TrackedStorageImpl) && (0, _debug.assert)('getValue must be passed a tracked store created with `createStorage`.', storage instanceof TrackedStorageImpl));\n    return storage._value;\n  }\n  function setValue(storage, value) {\n    (true && !(storage instanceof TrackedStorageImpl) && (0, _debug.assert)('setValue must be passed a tracked store created with `createStorage`.', storage instanceof TrackedStorageImpl));\n    const {\n      _isEqual: isEqual,\n      _lastValue: lastValue\n    } = storage;\n    if (!isEqual(value, lastValue)) {\n      storage._value = storage._lastValue = value;\n    }\n  }\n});","define(\"ember-truth-helpers/helpers/and\", [\"exports\", \"@ember/component/helper\", \"ember-truth-helpers/utils/truth-convert\"], function (_exports, _helper, _truthConvert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.and = and;\n  _exports.default = void 0;\n  function and(params) {\n    for (let i = 0, len = params.length; i < len; i++) {\n      if ((0, _truthConvert.default)(params[i]) === false) {\n        return params[i];\n      }\n    }\n    return params[params.length - 1];\n  }\n  var _default = _exports.default = (0, _helper.helper)(and);\n});","define(\"ember-truth-helpers/helpers/eq\", [\"exports\", \"ember-truth-helpers/helpers/equal\"], function (_exports, _equal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _equal.default;\n    }\n  });\n  Object.defineProperty(_exports, \"equal\", {\n    enumerable: true,\n    get: function () {\n      return _equal.equal;\n    }\n  });\n});","define(\"ember-truth-helpers/helpers/equal\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.equal = equal;\n  function equal(params) {\n    return params[0] === params[1];\n  }\n  var _default = _exports.default = (0, _helper.helper)(equal);\n});","define(\"ember-truth-helpers/helpers/gt\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.gt = gt;\n  function gt([left, right], hash) {\n    if (hash.forceNumber) {\n      if (typeof left !== 'number') {\n        left = Number(left);\n      }\n      if (typeof right !== 'number') {\n        right = Number(right);\n      }\n    }\n    return left > right;\n  }\n  var _default = _exports.default = (0, _helper.helper)(gt);\n});","define(\"ember-truth-helpers/helpers/gte\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.gte = gte;\n  function gte([left, right], hash) {\n    if (hash.forceNumber) {\n      if (typeof left !== 'number') {\n        left = Number(left);\n      }\n      if (typeof right !== 'number') {\n        right = Number(right);\n      }\n    }\n    return left >= right;\n  }\n  var _default = _exports.default = (0, _helper.helper)(gte);\n});","define(\"ember-truth-helpers/helpers/is-array\", [\"exports\", \"@ember/component/helper\", \"@ember/array\"], function (_exports, _helper, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isArray = isArray;\n  function isArray(params) {\n    for (let i = 0, len = params.length; i < len; i++) {\n      if ((0, _array.isArray)(params[i]) === false) {\n        return false;\n      }\n    }\n    return true;\n  }\n  var _default = _exports.default = (0, _helper.helper)(isArray);\n});","define(\"ember-truth-helpers/helpers/is-empty\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\"], function (_exports, _helper, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _helper.helper)(function ([obj]) {\n    return (0, _utils.isEmpty)(obj);\n  });\n});","define(\"ember-truth-helpers/helpers/is-equal\", [\"exports\", \"@ember/component/helper\", \"@ember/utils\"], function (_exports, _helper, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isEqual = isEqual;\n  function isEqual([a, b]) {\n    return (0, _utils.isEqual)(a, b);\n  }\n  var _default = _exports.default = (0, _helper.helper)(isEqual);\n});","define(\"ember-truth-helpers/helpers/lt\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.lt = lt;\n  function lt([left, right], hash) {\n    if (hash.forceNumber) {\n      if (typeof left !== 'number') {\n        left = Number(left);\n      }\n      if (typeof right !== 'number') {\n        right = Number(right);\n      }\n    }\n    return left < right;\n  }\n  var _default = _exports.default = (0, _helper.helper)(lt);\n});","define(\"ember-truth-helpers/helpers/lte\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.lte = lte;\n  function lte([left, right], hash) {\n    if (hash.forceNumber) {\n      if (typeof left !== 'number') {\n        left = Number(left);\n      }\n      if (typeof right !== 'number') {\n        right = Number(right);\n      }\n    }\n    return left <= right;\n  }\n  var _default = _exports.default = (0, _helper.helper)(lte);\n});","define(\"ember-truth-helpers/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-equal\"], function (_exports, _notEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _notEqual.default;\n    }\n  });\n  Object.defineProperty(_exports, \"notEqualHelper\", {\n    enumerable: true,\n    get: function () {\n      return _notEqual.notEqualHelper;\n    }\n  });\n});","define(\"ember-truth-helpers/helpers/not-equal\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.notEqualHelper = notEqualHelper;\n  function notEqualHelper(params) {\n    return params[0] !== params[1];\n  }\n  var _default = _exports.default = (0, _helper.helper)(notEqualHelper);\n});","define(\"ember-truth-helpers/helpers/not\", [\"exports\", \"@ember/component/helper\", \"ember-truth-helpers/utils/truth-convert\"], function (_exports, _helper, _truthConvert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.not = not;\n  function not(params) {\n    for (let i = 0, len = params.length; i < len; i++) {\n      if ((0, _truthConvert.default)(params[i]) === true) {\n        return false;\n      }\n    }\n    return true;\n  }\n  var _default = _exports.default = (0, _helper.helper)(not);\n});","define(\"ember-truth-helpers/helpers/or\", [\"exports\", \"@ember/component/helper\", \"ember-truth-helpers/utils/truth-convert\"], function (_exports, _helper, _truthConvert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.or = or;\n  function or(params) {\n    for (let i = 0, len = params.length; i < len; i++) {\n      if ((0, _truthConvert.default)(params[i]) === true) {\n        return params[i];\n      }\n    }\n    return params[params.length - 1];\n  }\n  var _default = _exports.default = (0, _helper.helper)(or);\n});","define(\"ember-truth-helpers/helpers/xor\", [\"exports\", \"@ember/component/helper\", \"ember-truth-helpers/utils/truth-convert\"], function (_exports, _helper, _truthConvert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.xor = xor;\n  function xor(params) {\n    return (0, _truthConvert.default)(params[0]) !== (0, _truthConvert.default)(params[1]);\n  }\n  var _default = _exports.default = (0, _helper.helper)(xor);\n});","define(\"ember-truth-helpers/utils/truth-convert\", [\"exports\", \"@ember/array\", \"@ember/object\"], function (_exports, _array, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = truthConvert;\n  function truthConvert(result) {\n    const truthy = result && (0, _object.get)(result, 'isTruthy');\n    if (typeof truthy === 'boolean') {\n      return truthy;\n    }\n    if ((0, _array.isArray)(result)) {\n      return (0, _object.get)(result, 'length') !== 0;\n    } else {\n      return !!result;\n    }\n  }\n});","define(\"ember-validators/collection\", [\"exports\", \"@ember/debug\", \"@ember/array\", \"@ember/utils\", \"ember-validators/utils/validation-error\"], function (_exports, _debug, _array, _utils, _validationError) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateCollection;\n  /**\n   *  @class Collection\n   *  @module Validators\n   */\n  /**\n   * @method validate\n   * @param {Any} value\n   * @param {Object} options\n   * @param {Boolean} options.collection\n   * @param {Object} model\n   * @param {String} attribute\n   */\n  function validateCollection(value, options, model, attribute) {\n    let collection = options.collection;\n    (true && !((0, _utils.isPresent)(collection)) && (0, _debug.assert)(`[validator:collection] [${attribute}] option 'collection' is required`, (0, _utils.isPresent)(collection)));\n    if (collection === true && !(0, _array.isArray)(value)) {\n      return (0, _validationError.default)('collection', value, options);\n    }\n    if (collection === false && (0, _array.isArray)(value)) {\n      return (0, _validationError.default)('singular', value, options);\n    }\n    return true;\n  }\n});","define(\"ember-validators/confirmation\", [\"exports\", \"@ember/object\", \"@ember/debug\", \"@ember/utils\", \"ember-validators/utils/validation-error\"], function (_exports, _object, _debug, _utils, _validationError) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateConfirmation;\n  /**\n   *  @class Confirmation\n   *  @module Validators\n   */\n  /**\n   * @method validate\n   * @param {Any} value\n   * @param {Object} options\n   * @param {String} options.on The attribute to confirm against\n   * @param {String} options.allowBlank If true, skips validation if the value is empty\n   * @param {Object} model\n   * @param {String} attribute\n   */\n  function validateConfirmation(value, options, model, attribute) {\n    let on = options.on;\n    let allowBlank = options.allowBlank;\n    (true && !((0, _utils.isPresent)(on)) && (0, _debug.assert)(`[validator:confirmation] [${attribute}] option 'on' is required`, (0, _utils.isPresent)(on)));\n    if (allowBlank && (0, _utils.isEmpty)(value)) {\n      return true;\n    }\n    if (!(0, _utils.isEqual)(value, (0, _object.get)(model, on))) {\n      return (0, _validationError.default)('confirmation', value, options);\n    }\n    return true;\n  }\n});","define(\"ember-validators/date\", [\"exports\", \"ember-validators/utils/validation-error\"], function (_exports, _validationError) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateDate;\n  _exports.parseDate = parseDate;\n  /**\n   * @class Date\n   * @module Validators\n   */\n  /**\n   * @method validate\n   * @param {String|Date} value\n   * @param {Object} options\n   * @param {Boolean} options.allowBlank If true, skips validation if the value is empty\n   * @param {String|Date} options.before The specified date must be before this date\n   * @param {String|Date} options.onOrBefore The specified date must be on or before this date\n   * @param {String|Date} options.after The specified date must be after this date\n   * @param {String|Date} options.onOrAfter The specified date must be on or after this date\n   * @param {String} options.format Input value date format - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat\n   *  - { dateStyle: 'long' } or { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }\n   *  If you need to obtain precision (just compare years), use { year: 'numeric' }\n   * @param {String} options.errorFormat Error output date format. Defaults to options.format or { dateStyle: 'long' }\n   */\n  function validateDate(value, options) {\n    let {\n      locale = 'en-us',\n      format,\n      allowBlank\n    } = options;\n    let {\n      before,\n      onOrBefore,\n      after,\n      onOrAfter\n    } = options;\n    let errorFormat = options.errorFormat || format || {\n      dateStyle: 'long'\n    };\n    if (allowBlank && value === null || value === undefined || value === '') {\n      return true;\n    }\n    let date;\n    if (!value) {\n      if (format) {\n        date = new Intl.DateTimeFormat(locale, format).format(new Date());\n      }\n      date = new Date();\n    } else if (!isValidDate(new Date(value))) {\n      return (0, _validationError.default)('date', value, options);\n    } else {\n      date = parseAsDate(value, format, locale);\n    }\n    if (before) {\n      const beforeCompare = parseAsDate(before, format, locale);\n      if (!isBefore(date, beforeCompare)) {\n        return (0, _validationError.default)('before', value, Object.assign({}, options, {\n          before: parseDateError(beforeCompare, errorFormat, locale)\n        }));\n      }\n    }\n    if (onOrBefore) {\n      const onOrBeforeCompare = parseAsDate(onOrBefore, format, locale);\n      if (!isSameOrBefore(date, onOrBeforeCompare)) {\n        return (0, _validationError.default)('onOrBefore', value, Object.assign({}, options, {\n          onOrBefore: parseDateError(onOrBeforeCompare, errorFormat, locale)\n        }));\n      }\n    }\n    if (after) {\n      const afterCompare = parseAsDate(after, format, locale);\n      if (!isAfter(date, afterCompare)) {\n        return (0, _validationError.default)('after', value, Object.assign({}, options, {\n          after: parseDateError(afterCompare, errorFormat, locale)\n        }));\n      }\n    }\n    if (onOrAfter) {\n      const onOrAfterCompare = parseAsDate(onOrAfter, format, locale);\n      if (!isSameOrAfter(date, onOrAfterCompare)) {\n        return (0, _validationError.default)('onOrAfter', value, Object.assign({}, options, {\n          onOrAfter: parseDateError(onOrAfterCompare, errorFormat, locale)\n        }));\n      }\n    }\n    return true;\n  }\n\n  /**\n   * This is a forcing function.  If `format` provided, date and comparison date will be in String format.  Otherwise, instances of Date.\n   * I don't think there is a need to force iso8601 strings.\n   * @function parseDate\n   * @param {Date|String} date\n   * @param {Object} format - { dateStyle: 'long' } or { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }\n   * If you need to obtain precision (just compare years), use { year: 'numeric' }.\n   * @param {String} locale\n   * @returns {Date|String}\n   */\n  function parseDate(date, format, locale) {\n    if (format) {\n      // new Date(\"2015\") will give the last day in 2014.  This is problematic\n      let yearOnly = isYearFormat(format);\n      if (!(date instanceof Date)) {\n        // format date into string\n        // we have already checked this a valid date\n        let d = yearOnly ? new Date(date, 0) : new Date(date);\n        return new Intl.DateTimeFormat(locale, format).format(d);\n      }\n\n      // format date into string\n      let d = yearOnly ? new Date(date.getFullYear(), 0) : date;\n      return new Intl.DateTimeFormat(locale, format).format(d);\n    } else {\n      // Date constructor accepts a variety of formats including properly represented strings and Date instances.\n      // However, a variety of formats return an \"Invalid Date\" literal including DD/MM/YYYY\n      return new Date(date);\n    }\n  }\n  function parseDateError(date, format, locale) {\n    return parseDate(date, format, locale);\n  }\n  function parseAsDate(date, format, locale) {\n    if (format && isYearFormat(format)) {\n      return new Date(parseDate(date, format, locale), 0);\n    }\n    return new Date(parseDate(date, format, locale));\n  }\n  function isValidDate(d) {\n    return d instanceof Date && !isNaN(d);\n  }\n  function isSame(date, comp) {\n    return date.getTime() === comp.getTime();\n  }\n  function isBefore(date, comp) {\n    return date < comp;\n  }\n  function isAfter(date, comp) {\n    return date > comp;\n  }\n  function isSameOrAfter(date, comp) {\n    return isSame(date, comp) || isAfter(date, comp);\n  }\n  function isSameOrBefore(date, comp) {\n    return isSame(date, comp) || isBefore(date, comp);\n  }\n  function isYearFormat(format) {\n    return Object.keys(format).length === 1 && format.year;\n  }\n});","define(\"ember-validators/ds-error\", [\"exports\", \"ember-validators/utils/validation-error\", \"@ember/object\"], function (_exports, _validationError, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateDsError;\n  _exports.getPathAndKey = getPathAndKey;\n  /**\n   *  @class DS Error\n   *  @module Validators\n   */\n  /**\n   * @method validate\n   * @param {Any} value\n   * @param {Object} options\n   * @param {Object} model\n   * @param {String} attribute\n   */\n  function validateDsError(value, options, model, attribute) {\n    let {\n      path,\n      key\n    } = getPathAndKey(attribute);\n    let errors = (0, _object.get)(model, path);\n    if (errors && errors.has && errors.has(key)) {\n      let errorsFor = errors.errorsFor(key);\n      return (0, _validationError.default)('ds', null, options, errorsFor.length ? errorsFor[errorsFor.length - 1].message : []);\n    }\n    return true;\n  }\n  function getPathAndKey(attribute) {\n    let path = attribute.split('.');\n    let key = path.pop();\n    path.push('errors');\n    return {\n      path: path.join('.'),\n      key\n    };\n  }\n});","define(\"ember-validators/exclusion\", [\"exports\", \"@ember/utils\", \"@ember/debug\", \"ember-validators/utils/validation-error\"], function (_exports, _utils, _debug, _validationError) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateExclusion;\n  /**\n   *  @class Exclusion\n   *  @module Validators\n   */\n  /**\n   * @method validate\n   * @param {Any} value\n   * @param {Object} options\n   * @param {Boolean} options.allowBlank If true, skips validation if the value is empty\n   * @param {Array} options.in The list of values this attribute should not be\n   * @param {Array} options.range The range in which the attribute's value should not reside in\n   * @param {Object} model\n   * @param {String} attribute\n   */\n  function validateExclusion(value, options, model, attribute) {\n    let array = options.in;\n    let {\n      range,\n      allowBlank\n    } = options;\n    (true && !(!(0, _utils.isEmpty)(Object.keys(options))) && (0, _debug.assert)(`[validator:exclusion] [${attribute}] no options were passed in`, !(0, _utils.isEmpty)(Object.keys(options))));\n    if (allowBlank && (0, _utils.isEmpty)(value)) {\n      return true;\n    }\n    if (array && array.indexOf(value) !== -1) {\n      return (0, _validationError.default)('exclusion', value, options);\n    }\n    if (range && range.length === 2) {\n      let [min, max] = range;\n      let equalType = (0, _utils.typeOf)(value) === (0, _utils.typeOf)(min) && (0, _utils.typeOf)(value) === (0, _utils.typeOf)(max);\n      if (equalType && min <= value && value <= max) {\n        return (0, _validationError.default)('exclusion', value, options);\n      }\n    }\n    return true;\n  }\n});","define(\"ember-validators/format\", [\"exports\", \"@ember/utils\", \"@ember/debug\", \"ember\", \"ember-validators/utils/validation-error\"], function (_exports, _utils, _debug, _ember, _validationError) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateFormat;\n  _exports.regularExpressions = void 0;\n  const {\n    canInvoke\n  } = _ember.default;\n\n  /**\n   *  @class Format\n   *  @module Validators\n   */\n\n  /**\n   * @method validate\n   * @param {Any} value\n   * @param {Object} options\n   * @param {Boolean} options.allowBlank If true, skips validation if the value is empty\n   * @param {String} options.type Can be the one of the following options [`email`, `phone`, `url`]\n   * @param {String} options.inverse If true, pass if the value doesn't match the given regex / type\n   * @param {Regex} options.regex The regular expression to test against\n   * @param {Boolean} options.allowNonTld If true, the predefined regular expression `email` allows non top-level domains\n   * @param {Number} options.minTldLength The min length of the top-level domain on the predefined `email` regular expression\n   * @param {Object} model\n   * @param {String} attribute\n   */\n  const regularExpressions = _exports.regularExpressions = {\n    // eslint-disable-next-line no-useless-escape\n    email: /^[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,\n    // eslint-disable-next-line no-useless-escape\n    phone: /^([\\+]?1\\s*[-\\/\\.]?\\s*)?(\\((\\d{3})\\)|(\\d{3}))\\s*[-\\/\\.]?\\s*(\\d{3})\\s*[-\\/\\.]?\\s*(\\d{4})\\s*(([xX]|[eE][xX][tT]?[\\.]?|extension)\\s*([#*\\d]+))*$/,\n    // eslint-disable-next-line no-useless-escape\n    url: /(?:([A-Za-z]+):)?(\\/{0,3})[a-zA-Z0-9][a-zA-Z-0-9]*(\\.[\\w-]+)+([\\w.,@?^=%&amp;:\\/~+#-{}]*[\\w@?^=%&amp;\\/~+#-{}])??/\n  };\n  function validateFormat(value, options, model, attribute) {\n    let {\n      regex,\n      type,\n      inverse = false,\n      allowBlank\n    } = options;\n    (true && !(!(0, _utils.isEmpty)(Object.keys(options))) && (0, _debug.assert)(`[validator:format] [${attribute}] no options were passed in`, !(0, _utils.isEmpty)(Object.keys(options))));\n    let regexTest = regex;\n    if (allowBlank && (0, _utils.isEmpty)(value)) {\n      return true;\n    }\n    if (type && !regex && regularExpressions[type]) {\n      regexTest = regularExpressions[type];\n    }\n    if (type === 'email') {\n      if (regexTest === regularExpressions.email) {\n        regexTest = formatEmailRegex(options);\n      }\n      Object.assign({}, options, {\n        regex: regexTest\n      });\n    }\n    if (!canInvoke(value, 'match') || regexTest && (0, _utils.isEmpty)(value.match(regexTest)) !== inverse) {\n      return (0, _validationError.default)(type || 'invalid', value, Object.assign({}, options, {\n        regex: regexTest\n      }));\n    }\n    return true;\n  }\n  function formatEmailRegex(options) {\n    let {\n      source\n    } = regularExpressions.email;\n    let {\n      allowNonTld,\n      minTldLength\n    } = options;\n    if (!(0, _utils.isNone)(minTldLength) && typeof minTldLength === 'number') {\n      source = source.replace('[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$', `[a-z0-9]{${minTldLength},}(?:[a-z0-9-]*[a-z0-9])?$`);\n    }\n    if (allowNonTld) {\n      source = source.replace('@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)', '@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.?)');\n    }\n    return new RegExp(source, 'i');\n  }\n});","define(\"ember-validators/inclusion\", [\"exports\", \"@ember/debug\", \"@ember/utils\", \"ember-validators/utils/validation-error\"], function (_exports, _debug, _utils, _validationError) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateInclusion;\n  /**\n   *  @class Inclusion\n   *  @module Validators\n   */\n  /**\n   * @method validate\n   * @param {Any} value\n   * @param {Object} options\n   * @param {Boolean} options.allowBlank If true, skips validation if the value is empty\n   * @param {Array} options.in The list of values this attribute could be\n   * @param {Array} options.range The range in which the attribute's value should reside in\n   * @param {Object} model\n   * @param {String} attribute\n   */\n  function validateInclusion(value, options, model, attribute) {\n    let array = options.in;\n    let {\n      range,\n      allowBlank\n    } = options;\n    (true && !(!(0, _utils.isEmpty)(Object.keys(options))) && (0, _debug.assert)(`[validator:inclusion] [${attribute}] no options were passed in`, !(0, _utils.isEmpty)(Object.keys(options))));\n    if (allowBlank && (0, _utils.isEmpty)(value)) {\n      return true;\n    }\n    if (array && array.indexOf(value) === -1) {\n      return (0, _validationError.default)('inclusion', value, options);\n    }\n    if (range && range.length === 2) {\n      let [min, max] = range;\n      let equalType = (0, _utils.typeOf)(value) === (0, _utils.typeOf)(min) && (0, _utils.typeOf)(value) === (0, _utils.typeOf)(max);\n      let isInvalidNumber = (0, _utils.typeOf)(value) === 'number' && isNaN(value);\n      if (!equalType || isInvalidNumber || min > value || value > max) {\n        return (0, _validationError.default)('inclusion', value, options);\n      }\n    }\n    return true;\n  }\n});","define(\"ember-validators/index\", [\"exports\", \"@ember/debug\", \"@ember/utils\", \"@embroider/macros/es-compat2\"], function (_exports, _debug, _utils, _esCompat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.validate = validate;\n  function validate(type, ...args) {\n    let validator;\n    if (type === 'collection') {\n      validator = import_collection();\n    } else if (type === 'confirmation') {\n      validator = import_confirmation();\n    } else if (type === 'date') {\n      validator = import_date();\n    } else if (type === 'ds-error') {\n      validator = import_ds_error();\n    } else if (type === 'exclusion') {\n      validator = import_exclusion();\n    } else if (type === 'format') {\n      validator = import_format();\n    } else if (type === 'inclusion') {\n      validator = import_inclusion();\n    } else if (type === 'length') {\n      validator = import_length();\n    } else if (type === 'messages') {\n      validator = import_messages();\n    } else if (type === 'number') {\n      validator = import_number();\n    } else if (type === 'presence') {\n      validator = import_presence();\n    }\n    (true && !((0, _utils.isPresent)(validator)) && (0, _debug.assert)(`Validator not found of type: ${type}.`, (0, _utils.isPresent)(validator)));\n    return validator.default(...args);\n  }\n  function import_collection() {\n    return (0, _esCompat.default)(require(\"ember-validators/collection\"));\n  }\n  function import_confirmation() {\n    return (0, _esCompat.default)(require(\"ember-validators/confirmation\"));\n  }\n  function import_date() {\n    return (0, _esCompat.default)(require(\"ember-validators/date\"));\n  }\n  function import_ds_error() {\n    return (0, _esCompat.default)(require(\"ember-validators/ds-error\"));\n  }\n  function import_exclusion() {\n    return (0, _esCompat.default)(require(\"ember-validators/exclusion\"));\n  }\n  function import_format() {\n    return (0, _esCompat.default)(require(\"ember-validators/format\"));\n  }\n  function import_inclusion() {\n    return (0, _esCompat.default)(require(\"ember-validators/inclusion\"));\n  }\n  function import_length() {\n    return (0, _esCompat.default)(require(\"ember-validators/length\"));\n  }\n  function import_messages() {\n    return (0, _esCompat.default)(require(\"ember-validators/messages\"));\n  }\n  function import_number() {\n    return (0, _esCompat.default)(require(\"ember-validators/number\"));\n  }\n  function import_presence() {\n    return (0, _esCompat.default)(require(\"ember-validators/presence\"));\n  }\n});","define(\"ember-validators/length\", [\"exports\", \"@ember/utils\", \"ember-validators/utils/validation-error\"], function (_exports, _utils, _validationError) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateLength;\n  /**\n   *  @class Length\n   *  @module Validators\n   */\n  /**\n   * @method validate\n   * @param {Any} value\n   * @param {Object} options\n   * @param {Boolean} options.allowNone If true, skips validation if the value is null or undefined. __Default: true__\n   * @param {Boolean} options.allowBlank If true, skips validation if the value is empty\n   * @param {Boolean} options.useBetweenMessage If true, uses the between error message when `max` and `min` are both set\n   * @param {Number} options.is The exact length the value can be\n   * @param {Number} options.min The minimum length the value can be\n   * @param {Number} options.max The maximum length the value can be\n   * @param {Object} model\n   * @param {String} attribute\n   */\n  function validateLength(value, options) {\n    let {\n      allowNone = true,\n      allowBlank,\n      useBetweenMessage,\n      is,\n      min,\n      max\n    } = options;\n    if ((0, _utils.isNone)(value)) {\n      return allowNone ? true : (0, _validationError.default)('invalid', value, options);\n    }\n    if (allowBlank && (0, _utils.isEmpty)(value)) {\n      return true;\n    }\n    let length = value.length;\n    if (!(0, _utils.isNone)(is) && is !== length) {\n      return (0, _validationError.default)('wrongLength', value, options);\n    }\n    if (useBetweenMessage && !(0, _utils.isNone)(min) && !(0, _utils.isNone)(max) && (length < min || length > max)) {\n      return (0, _validationError.default)('between', value, options);\n    }\n    if (!(0, _utils.isNone)(min) && min > length) {\n      return (0, _validationError.default)('tooShort', value, options);\n    }\n    if (!(0, _utils.isNone)(max) && max < length) {\n      return (0, _validationError.default)('tooLong', value, options);\n    }\n    return true;\n  }\n});","define(\"ember-validators/messages\", [\"exports\", \"@ember/object\", \"@ember/utils\"], function (_exports, _object, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   *  @class Messages\n   *  @module Validators\n   */\n  var _default = _exports.default = {\n    /**\n     * Regex for matching error message placeholders\n     * @private\n     * @property _regex\n     * @type {RegExp}\n     */\n    _regex: /\\{(\\w+)\\}/g,\n    /**\n     * Default attribute description if one isnt passed into a validator's options\n     * @property defaultDescription\n     * @type {String}\n     */\n    defaultDescription: 'This field',\n    /**\n     * Get a description for a specific attribute. This is a hook\n     * for i18n solutions to retrieve attribute descriptions from a translation\n     * @method getDescriptionFor\n     * @param  {String} attribute\n     * @param  {Object} options\n     * @return {String}\n     */\n    getDescriptionFor(attribute, context = {}) {\n      return context.description || this.defaultDescription;\n    },\n    /**\n     * Get a message with a given type\n     * @method getMessageFor\n     * @param  {String} type\n     * @param  {Object} context\n     * @return {String}\n     */\n    getMessageFor(type, context = {}) {\n      return this.formatMessage((0, _object.get)(this, type), context);\n    },\n    /**\n     * Regex replace all placeholders with their given context\n     * @method formatMessage\n     * @param  {String} message\n     * @param  {Object} context\n     * @return {String}\n     */\n    formatMessage(message, context = {}) {\n      let m = message;\n      if ((0, _utils.isNone)(m) || typeof m !== 'string') {\n        m = this.invalid;\n      }\n      return m.replace(this._regex, (s, attr) => (0, _object.get)(context, attr));\n    },\n    /**\n     * Default validation error message strings\n     */\n    accepted: '{description} must be accepted',\n    after: '{description} must be after {after}',\n    before: '{description} must be before {before}',\n    blank: \"{description} can't be blank\",\n    collection: '{description} must be a collection',\n    confirmation: \"{description} doesn't match {on}\",\n    date: '{description} must be a valid date',\n    email: '{description} must be a valid email address',\n    empty: \"{description} can't be empty\",\n    equalTo: '{description} must be equal to {is}',\n    even: '{description} must be even',\n    exclusion: '{description} is reserved',\n    greaterThan: '{description} must be greater than {gt}',\n    greaterThanOrEqualTo: '{description} must be greater than or equal to {gte}',\n    inclusion: '{description} is not included in the list',\n    invalid: '{description} is invalid',\n    lessThan: '{description} must be less than {lt}',\n    lessThanOrEqualTo: '{description} must be less than or equal to {lte}',\n    notAnInteger: '{description} must be an integer',\n    notANumber: '{description} must be a number',\n    odd: '{description} must be odd',\n    onOrAfter: '{description} must be on or after {onOrAfter}',\n    onOrBefore: '{description} must be on or before {onOrBefore}',\n    otherThan: '{description} must be other than {value}',\n    phone: '{description} must be a valid phone number',\n    positive: '{description} must be positive',\n    multipleOf: '{description} must be a multiple of {multipleOf}',\n    present: '{description} must be blank',\n    singular: \"{description} can't be a collection\",\n    tooLong: '{description} is too long (maximum is {max} characters)',\n    tooShort: '{description} is too short (minimum is {min} characters)',\n    between: '{description} must be between {min} and {max} characters',\n    url: '{description} must be a valid url',\n    wrongLength: '{description} is the wrong length (should be {is} characters)'\n  };\n});","define(\"ember-validators/number\", [\"exports\", \"@ember/utils\", \"ember-validators/utils/validation-error\"], function (_exports, _utils, _validationError) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validateNumber;\n  /**\n   *  @class Number\n   *  @module Validators\n   */\n  /**\n   * @method validate\n   * @param {Any} value\n   * @param {Object} options\n   * @param {Boolean} options.allowBlank If true, skips validation if the value is empty\n   * @param {Boolean} options.allowNone If true, skips validation if the value is null or undefined. __Default: true__\n   * @param {Boolean} options.allowString If true, validator will accept string representation of a number\n   * @param {Boolean} options.integer Number must be an integer\n   * @param {Boolean} options.positive Number must be greater than or equal to 0\n   * @param {Boolean} options.odd Number must be odd\n   * @param {Boolean} options.even Number must be even\n   * @param {Number} options.is Number must be equal to this value\n   * @param {Number} options.lt Number must be less than this value\n   * @param {Number} options.lte Number must be less than or equal to this value\n   * @param {Number} options.gt Number must be greater than this value\n   * @param {Number} options.gte Number must be greater than or equal to this value\n   * @param {Number} options.multipleOf Number must be a multiple of this value\n   * @param {Object} model\n   * @param {String} attribute\n   */\n  function validateNumber(value, options) {\n    let numValue = Number(value);\n    let optionKeys = Object.keys(options);\n    let {\n      allowBlank,\n      allowNone = true,\n      allowString,\n      integer\n    } = options;\n    if (allowNone && (0, _utils.isNone)(value)) {\n      return true;\n    }\n    if (allowBlank && (0, _utils.isEmpty)(value)) {\n      return true;\n    }\n    if ((0, _utils.isEmpty)(value)) {\n      return (0, _validationError.default)('notANumber', value, options);\n    }\n    if (typeof value === 'string' && !allowString) {\n      return (0, _validationError.default)('notANumber', value, options);\n    }\n    if (!isNumber(numValue)) {\n      return (0, _validationError.default)('notANumber', value, options);\n    }\n    if (integer && !isInteger(numValue)) {\n      return (0, _validationError.default)('notAnInteger', value, options);\n    }\n    for (let i = 0; i < optionKeys.length; i++) {\n      let type = optionKeys[i];\n      let returnValue = _validateType(type, options, numValue);\n      if (typeof returnValue !== 'boolean') {\n        return returnValue;\n      }\n    }\n    return true;\n  }\n  function _validateType(type, options, value) {\n    let expected = options[type];\n    let actual = value;\n    if (type === 'is' && actual !== expected) {\n      return (0, _validationError.default)('equalTo', value, options);\n    } else if (type === 'lt' && actual >= expected) {\n      return (0, _validationError.default)('lessThan', value, options);\n    } else if (type === 'lte' && actual > expected) {\n      return (0, _validationError.default)('lessThanOrEqualTo', value, options);\n    } else if (type === 'gt' && actual <= expected) {\n      return (0, _validationError.default)('greaterThan', value, options);\n    } else if (type === 'gte' && actual < expected) {\n      return (0, _validationError.default)('greaterThanOrEqualTo', value, options);\n    } else if (type === 'positive' && actual < 0) {\n      return (0, _validationError.default)('positive', value, options);\n    } else if (type === 'odd' && (!isInteger(actual) || actual % 2 === 0)) {\n      return (0, _validationError.default)('odd', value, options);\n    } else if (type === 'even' && (!isInteger(actual) || actual % 2 !== 0)) {\n      return (0, _validationError.default)('even', value, options);\n    } else if (type === 'multipleOf' && !isInteger(actual / expected)) {\n      return (0, _validationError.default)('multipleOf', value, options);\n    }\n    return true;\n  }\n\n  /*\n    Use polyfills instead of Number.isNaN or Number.isInteger to support IE & Safari\n   */\n\n  function isNumber(value) {\n    return typeof value === 'number' && !isNaN(value);\n  }\n  function isInteger(value) {\n    return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;\n  }\n});","define(\"ember-validators/presence\", [\"exports\", \"@ember/debug\", \"@ember/utils\", \"ember-validators/utils/validation-error\", \"ember-validators/utils/unwrap-proxy\"], function (_exports, _debug, _utils, _validationError, _unwrapProxy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validatePresence;\n  /**\n   *  @class Presence\n   *  @module Validators\n   */\n  /**\n   * @method validate\n   * @param {Any} value\n   * @param {Object} options\n   * @param {Boolean} options.presence If true validates that the given value is not empty,\n   *                                   if false, validates that the given value is empty.\n   * @param {Boolean} options.ignoreBlank If true, treats an empty or whitespace string as not present\n   * @param {Object} model\n   * @param {String} attribute\n   */\n  function validatePresence(value, options, model, attribute) {\n    let {\n      presence,\n      ignoreBlank\n    } = options;\n    let v = (0, _unwrapProxy.default)(value);\n    let _isPresent = ignoreBlank ? (0, _utils.isPresent)(v) : !(0, _utils.isEmpty)(v);\n    (true && !((0, _utils.isPresent)(presence)) && (0, _debug.assert)(`[validator:presence] [${attribute}] option 'presence' is required`, (0, _utils.isPresent)(presence)));\n    if (presence === true && !_isPresent) {\n      return (0, _validationError.default)('blank', value, options);\n    }\n    if (presence === false && _isPresent) {\n      return (0, _validationError.default)('present', value, options);\n    }\n    return true;\n  }\n});","define(\"ember-validators/utils/is-promise\", [\"exports\", \"ember\"], function (_exports, _ember) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isPromise;\n  const {\n    canInvoke\n  } = _ember.default;\n  function isPromise(p) {\n    return !!(p && canInvoke(p, 'then'));\n  }\n});","define(\"ember-validators/utils/unwrap-proxy\", [\"exports\", \"@ember/array/proxy\", \"@ember/object/proxy\"], function (_exports, _proxy, _proxy2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = unwrapProxy;\n  _exports.isProxy = isProxy;\n  function unwrapProxy(o) {\n    return isProxy(o) ? unwrapProxy(o.content) : o;\n  }\n  function isProxy(o) {\n    return !!(o && (o instanceof _proxy2.default || o instanceof _proxy.default));\n  }\n});","define(\"ember-validators/utils/validation-error\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = validationError;\n  function validationError(type, value, context, message) {\n    return {\n      type,\n      value,\n      context,\n      message\n    };\n  }\n});","define(\"ember-websockets/helpers\", [\"exports\", \"urijs\"], function (_exports, _urijs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.cleanURL = cleanURL;\n  _exports.normalizeURL = normalizeURL;\n  0; //eaimeta@70e063a35619d71f0,\"urijs\"eaimeta@70e063a35619d71f\n  /*\n   * The native websocket object will transform urls without a pathname to have just a /.\n   * As an example: ws://localhost:8080 would actually be ws://localhost:8080/ but ws://example.com/foo would not\n   * change. This function does this transformation to stay inline with the native websocket implementation.\n   */\n  function normalizeURL(url) {\n    const parsedUrl = new _urijs.default(url);\n    const path = parsedUrl.path();\n    const query = parsedUrl.query();\n    if (path === '/') {\n      if (query === '' && url.slice(-1) !== '/') {\n        return url + '/';\n      }\n      if (query !== '' && url.indexOf('/?') === -1) {\n        return url.replace('?', '/?');\n      }\n    }\n    return url;\n  }\n\n  /*\n   * Since the url will be used as a key will need to make sure that it does not\n   * contain '.' as it will throw ember off\n   */\n  function cleanURL(url) {\n    return url.replace(/\\./g, '');\n  }\n});","define(\"ember-websockets/helpers/socketio-proxy\", [\"exports\", \"@ember/debug\", \"@ember/object/proxy\", \"@ember/runloop\"], function (_exports, _debug, _proxy, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/object/proxy\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _proxy.default.extend({\n    /*\n     * {\n     *    url: 'String'\n     *    type: 'String'\n     *    callback: The function to envoke\n     *    context: The context of the function\n     *    ref: The actual callback function with is given to socketio\n     * }\n     */\n    listeners: null,\n    init() {\n      this._super(...arguments);\n      this.listeners = [];\n    },\n    /*\n     * This method simply passes the arguments to the socketio on method except it binds the callback function to\n     * the run loop.\n     */\n    on(type, callback, context) {\n      (true && !(typeof callback === 'function') && (0, _debug.assert)('The second argument must be a function.', typeof callback === 'function'));\n      const boundCallback = (0, _runloop.bind)(context, callback);\n      this.listeners.push({\n        url: this.socket.io.uri,\n        type,\n        callback,\n        context,\n        ref: boundCallback\n      });\n      this.socket.on(type, boundCallback);\n    },\n    off(type, callback) {\n      (true && !(typeof callback === 'function') && (0, _debug.assert)('The second argument must be a function.', typeof callback === 'function'));\n      const listeners = this.listeners.filter(listener => listener.callback === callback && listener.url === this.socket.io.uri && listener.type === type);\n      if (listeners) {\n        listeners.forEach(item => this.socket.off(type, item.ref));\n      }\n      this.listeners = this.listeners.filter(l => listeners.indexOf(l) === -1);\n    },\n    /*\n     * This method passes the argument to the socketio emit method.\n     */\n    emit() {\n      this.socket.emit.apply(this.socket, arguments);\n    },\n    close() {\n      this.listeners = this.listeners.filter(listener => listener.url === this.socket.io.uri);\n      this.socket.close.apply(this.socket, arguments);\n    },\n    send() {\n      this.socket.send.apply(this.socket, arguments);\n    },\n    connect() {\n      this.socket.connect.apply(this.socket, arguments);\n    }\n  });\n});","define(\"ember-websockets/helpers/websocket-proxy\", [\"exports\", \"@ember/runloop\", \"@ember/debug\", \"@ember/object/proxy\"], function (_exports, _runloop, _debug, _proxy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/runloop\",0,\"@ember/debug\",0,\"@ember/object/proxy\"eaimeta@70e063a35619d71f\n  const events = ['close', 'error', 'message', 'open'];\n  const {\n    filter,\n    indexOf,\n    forEach\n  } = Array.prototype;\n  var _default = _exports.default = _proxy.default.extend({\n    /*\n     * {\n     *    url: 'String'\n     *    type: 'String' (such as 'open', 'message', 'close', and 'error')\n     *    callback: The function to envoke\n     *    context: The context of the function\n     * }\n     */\n    listeners: null,\n    init() {\n      this._super(...arguments);\n      this.listeners = [];\n      this.setupInternalListeners();\n    },\n    /*\n     * Adds a callback function into the listeners array which will\n     * be invoked later whenever a given `type` event happens.\n     *\n     * type: must be either 'open', 'message', 'close', 'error'\n     */\n    on(type, callback, context) {\n      (true && !(indexOf.call(events, type) !== -1) && (0, _debug.assert)(`${type} is not a recognized event name. Please use on of the following: ${events.join(', ')}`, indexOf.call(events, type) !== -1));\n      (true && !(typeof callback === 'function') && (0, _debug.assert)('The second argument must be a function.', typeof callback === 'function'));\n      this.listeners.push({\n        url: this.socket.url,\n        type,\n        callback,\n        context\n      });\n    },\n    /*\n     * Removes a callback function from the listeners array. This callback\n     * will not longer be invoked when the given `type` event happens.\n     */\n    off(type, callback) {\n      this.listeners = filter.call(this.listeners, listeners => !(listeners.callback === callback && listeners.type === type));\n    },\n    /*\n     * Message is the message which will be passed into the native websockets send method\n     * and shouldStringify is a boolean which determines if we should call JSON.stringify on\n     * the message.\n     */\n    send(message, shouldStringify = false) {\n      if (shouldStringify && JSON && JSON.stringify) {\n        message = JSON.stringify(message);\n      }\n      (true && !(this.readyState() === WebSocket.OPEN) && (0, _debug.assert)('Cannot send message to the websocket while it is not open.', this.readyState() === WebSocket.OPEN));\n      this.socket.send(message);\n    },\n    close() {\n      this.socket.close();\n    },\n    reconnect() {\n      this.set('socket', new WebSocket(this.socket.url, this.protocols));\n      this.setupInternalListeners();\n    },\n    setupInternalListeners() {\n      forEach.call(events, eventName => {\n        this.socket[`on${eventName}`] = event => {\n          (0, _runloop.run)(() => {\n            var activeListeners = filter.call(this.listeners, listener => {\n              return listener.url === event.currentTarget.url && listener.type === eventName;\n            });\n\n            // TODO: filter active listeners for contexts that are not destroyed\n            forEach.call(activeListeners, item => {\n              if (item.context) {\n                item.callback.call(item.context, event);\n              } else {\n                item.callback(event);\n              }\n            });\n          });\n        };\n      });\n    },\n    /*\n     * A helper method to get access to the readyState of the websocket.\n     */\n    readyState() {\n      return this.socket.readyState;\n    }\n  });\n});","define(\"ember-websockets/services/socket-io\", [\"exports\", \"ember-websockets/services/websockets\", \"ember-websockets/helpers/socketio-proxy\"], function (_exports, _websockets, _socketioProxy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-websockets/services/websockets\",0,\"ember-websockets/helpers/socketio-proxy\"eaimeta@70e063a35619d71f\n  class SocketIOService extends _websockets.default {\n    isWebSocketOpen(socket) {\n      return socket.io.readyState !== 'closed';\n    }\n    createSocket(url, options = {}) {\n      const newSocketIO = io(url, options);\n      newSocketIO.connect();\n      return newSocketIO;\n    }\n    createProxy(socket) {\n      return _socketioProxy.default.create({\n        content: this,\n        socket\n      });\n    }\n  }\n  _exports.default = SocketIOService;\n});","define(\"ember-websockets/services/websockets\", [\"exports\", \"@ember/service\", \"@ember/object\", \"ember-websockets/helpers/websocket-proxy\", \"ember-websockets/helpers\"], function (_exports, _service, _object, _websocketProxy, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"ember-websockets/helpers/websocket-proxy\",0,\"ember-websockets/helpers\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  let WebSocketService = _exports.default = (_dec = (0, _object.computed)(), (_class = class WebSocketService extends _service.default {\n    /*\n      A hash of open websocket connections. This\n      allows multiple components to share the same connection.\n       {\n        'websocket-url': WebSocket Proxy object\n      }\n    */\n    get sockets() {\n      return {};\n    }\n\n    /*\n      socketFor returns a websocket proxy object. On this object there is a property `socket`\n      which contains the actual websocket object. This websocket object is cached based off of the url meaning\n      multiple requests for the same socket will return the same object.\n    */\n    socketFor(url, protocols = []) {\n      /*\n        Websockets allows either a string or array of strings to be passed as the second argument.\n        Normalize both cases into an array of strings so we can just deal with arrays.\n      */\n      if (typeof protocols === 'string') {\n        protocols = [protocols];\n      }\n\n      /*\n        Normalize the url as native websockets add a / to the end of the url:\n        http://example.com:8000 becomes: http://example.com:8000/\n         Since the url will be used as a key will need to make sure that it does not\n        contain '.' as it will throw ember off\n      */\n      const normalizedUrl = (0, _helpers.normalizeURL)(url);\n      const cleanedUrl = (0, _helpers.cleanURL)(normalizedUrl);\n\n      /*\n       */\n      const existingProxy = (0, _object.get)(this, `sockets.${cleanedUrl}`);\n      if (existingProxy && this.isWebSocketOpen(existingProxy.socket)) {\n        return existingProxy;\n      }\n\n      /*\n        we can get to this place if the websocket has been closed and we are trying to reopen\n        or we are creating a proxy for the first time\n      */\n      const newWebSocket = this.createSocket(normalizedUrl, protocols);\n      if (existingProxy) {\n        /*\n          If there is an existing socket in place we simply update the websocket object and not\n          the whole proxy as we dont want to destroy the previous listeners.\n        */\n        (0, _object.set)(existingProxy, 'socket', newWebSocket);\n        return existingProxy;\n      }\n      const newProxy = this.createProxy(newWebSocket, protocols);\n      (0, _object.set)(this, `sockets.${cleanedUrl}`, newProxy);\n      return newProxy;\n    }\n    closeSocketFor(url) {\n      const cleanedUrl = (0, _helpers.cleanURL)((0, _helpers.normalizeURL)(url));\n      const existingSocket = (0, _object.get)(this, `sockets.${cleanedUrl}`);\n      if (existingSocket) {\n        existingSocket.socket.close();\n      }\n      delete this.sockets[cleanedUrl];\n    }\n    isWebSocketOpen(websocket) {\n      return websocket.readyState !== WebSocket.CLOSED;\n    }\n    createSocket(url, options) {\n      return new WebSocket(url, options);\n    }\n    createProxy(socket, protocols) {\n      return _websocketProxy.default.create({\n        content: this,\n        protocols,\n        socket\n      });\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"sockets\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"sockets\"), _class.prototype)), _class));\n});","define(\"ember-window-mock/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports._setCurrentHandler = void 0;\n  let exportedWindow;\n  let _setCurrentHandler = _exports._setCurrentHandler = void 0;\n  if (true /* DEBUG */) {\n    // this Proxy handler will be used to preserve the unaltered behavior of the window global by default\n    const doNothingHandler = {\n      get(target, prop) {\n        const value = Reflect.get(target, prop);\n\n        // make sure the function receives the original window as the this context! (e.g. alert will throw an invalid invocation error)\n        if (typeof value === 'function') {\n          return new Proxy(value, {\n            apply(t, _thisArg, argumentsList) {\n              return Reflect.apply(value, target, argumentsList);\n            }\n          });\n        }\n        return value;\n      },\n      set: Reflect.set,\n      has: Reflect.has,\n      deleteProperty: Reflect.deleteProperty\n    };\n    let currentHandler = doNothingHandler;\n\n    // private function to replace the default handler in tests\n    _exports._setCurrentHandler = _setCurrentHandler = (handler = doNothingHandler) => currentHandler = handler;\n    const proxyHandler = {\n      get() {\n        return currentHandler.get(...arguments);\n      },\n      set() {\n        return currentHandler.set(...arguments);\n      },\n      has() {\n        return currentHandler.has(...arguments);\n      },\n      deleteProperty() {\n        return currentHandler.deleteProperty(...arguments);\n      }\n    };\n    exportedWindow = new Proxy(window, proxyHandler);\n  } else {\n    exportedWindow = window;\n  }\n  var _default = _exports.default = exportedWindow;\n});","define(\"ember-wormhole/components/ember-wormhole\", [\"exports\", \"@ember/object/computed\", \"@ember/component\", \"@ember/object\", \"@ember/runloop\", \"ember-wormhole/templates/components/ember-wormhole\", \"ember-wormhole/utils/dom\"], function (_exports, _computed, _component, _object, _runloop, _emberWormhole, _dom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _component.default.extend({\n    layout: _emberWormhole.default,\n    /*\n     * Attrs\n     */\n    to: (0, _computed.alias)('destinationElementId'),\n    destinationElementId: null,\n    destinationElement: null,\n    _destination: (0, _object.computed)('destinationElement', 'destinationElementId', 'renderInPlace', function () {\n      let renderInPlace = this.get('renderInPlace');\n      if (renderInPlace) {\n        return this._element;\n      }\n      let destinationElement = this.get('destinationElement');\n      if (destinationElement) {\n        return destinationElement;\n      }\n      let destinationElementId = this.get('destinationElementId');\n      if (destinationElementId) {\n        return (0, _dom.findElementById)(this._dom, destinationElementId);\n      }\n      // no element found\n      return null;\n    }),\n    renderInPlace: false,\n    /*\n     * Lifecycle\n     */\n    init() {\n      this._super(...arguments);\n      this._dom = (0, _dom.getDOM)(this);\n\n      // Create text nodes used for the head, tail\n      this._wormholeHeadNode = this._dom.createTextNode('');\n      this._wormholeTailNode = this._dom.createTextNode('');\n\n      /*\n       * didInsertElement does not fire in Fastboot, so we schedule this in\n       * init to be run after render. Importantly, we want to run\n       * appendToDestination after the child nodes have rendered.\n       */\n      (0, _runloop.schedule)('afterRender', () => {\n        if (this.isDestroyed) {\n          return;\n        }\n        this._element = this._wormholeHeadNode.parentNode;\n        if (!this._element) {\n          throw new Error('The head node of a wormhole must be attached to the DOM');\n        }\n        this._appendToDestination();\n      });\n    },\n    willDestroyElement: function () {\n      // not called in fastboot\n      this._super(...arguments);\n      let {\n        _wormholeHeadNode,\n        _wormholeTailNode\n      } = this;\n      (0, _runloop.schedule)('render', () => {\n        this._removeRange(_wormholeHeadNode, _wormholeTailNode);\n      });\n    },\n    _destinationDidChange: (0, _object.observer)('_destination', function () {\n      var destinationElement = this.get('_destination');\n      if (destinationElement !== this._wormholeHeadNode.parentNode) {\n        (0, _runloop.schedule)('render', this, '_appendToDestination');\n      }\n    }),\n    _appendToDestination() {\n      var destinationElement = this.get('_destination');\n      if (!destinationElement) {\n        var destinationElementId = this.get('destinationElementId');\n        if (destinationElementId) {\n          throw new Error(`ember-wormhole failed to render into '#${destinationElementId}' because the element is not in the DOM`);\n        }\n        throw new Error('ember-wormhole failed to render content because the destinationElementId was set to an undefined or falsy value.');\n      }\n      let startingActiveElement = (0, _dom.getActiveElement)();\n      this._appendRange(destinationElement, this._wormholeHeadNode, this._wormholeTailNode);\n      let resultingActiveElement = (0, _dom.getActiveElement)();\n      if (startingActiveElement && resultingActiveElement !== startingActiveElement) {\n        startingActiveElement.focus();\n      }\n    },\n    _appendRange(destinationElement, firstNode, lastNode) {\n      while (firstNode) {\n        destinationElement.insertBefore(firstNode, null);\n        firstNode = firstNode !== lastNode ? lastNode.parentNode.firstChild : null;\n      }\n    },\n    _removeRange(firstNode, lastNode) {\n      var node = lastNode;\n      do {\n        var next = node.previousSibling;\n        if (node.parentNode) {\n          node.parentNode.removeChild(node);\n          if (node === firstNode) {\n            break;\n          }\n        }\n        node = next;\n      } while (node);\n    }\n  });\n});","define(\"ember-wormhole/templates/components/ember-wormhole\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"AZTawDXE\",\n    \"block\": \"[[[1,[28,[35,0],[[30,0,[\\\"_wormholeHeadNode\\\"]]],null]],[18,1,null],[1,[28,[35,0],[[30,0,[\\\"_wormholeTailNode\\\"]]],null]]],[\\\"&default\\\"],false,[\\\"unbound\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"ember-wormhole/templates/components/ember-wormhole.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"ember-wormhole/utils/dom\", [\"exports\", \"@ember/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.findElementById = findElementById;\n  _exports.getActiveElement = getActiveElement;\n  _exports.getDOM = getDOM;\n  /*\n   * Implement some helpers methods for interacting with the DOM,\n   * be it Fastboot's SimpleDOM or the browser's version.\n   */\n\n  function getActiveElement() {\n    if (typeof document === 'undefined') {\n      return null;\n    } else {\n      return document.activeElement;\n    }\n  }\n  function childNodesOfElement(element) {\n    let children = [];\n    let child = element.firstChild;\n    while (child) {\n      children.push(child);\n      child = child.nextSibling;\n    }\n    return children;\n  }\n  function findElementById(doc, id) {\n    if (doc.getElementById) {\n      return doc.getElementById(id);\n    }\n    let nodes = childNodesOfElement(doc);\n    let node;\n    while (nodes.length) {\n      node = nodes.shift();\n      if (node.getAttribute && node.getAttribute('id') === id) {\n        return node;\n      }\n      nodes = childNodesOfElement(node).concat(nodes);\n    }\n  }\n\n  // Private Ember API usage. Get the dom implementation used by the current\n  // renderer, be it native browser DOM or Fastboot SimpleDOM\n  function getDOM(context) {\n    let {\n      renderer\n    } = context;\n    if (!renderer._dom) {\n      // pre glimmer2\n      let container = _application.getOwner ? (0, _application.getOwner)(context) : context.container;\n      let documentService = container.lookup('service:-document');\n      if (documentService) {\n        return documentService;\n      }\n      renderer = container.lookup('renderer:-dom');\n    }\n    if (renderer._dom && renderer._dom.document) {\n      // pre Ember 2.6\n      return renderer._dom.document;\n    } else {\n      throw new Error('ember-wormhole could not get DOM');\n    }\n  }\n});","/* global require */\nrequire('ember-css-modules/extensions');\n","\n"],"names":["define","require","globalObj","globalThis","self","window","global","Error","registry","Object","create","seen","missingModule","name","referrerName","internalRequire","_name","mod","exports","undefined","deps","callback","reified","Array","length","i","apply","has","registryHas","moduleName","Boolean","_eak_seen","entries","bootstrap","Ember","get","require","default","defaultHandler","handler","onEmberGlobalAccess","_get","message","deprecate","id","until","url","for","since","enabled","defineEmber","key","Object","defineProperty","context","exports","enumerable","configurable","module","hasDom","_exports","hasDOM","self","Object","Window","constructor","document","location","history","navigator","userAgent","window","location$1","history$1","isChrome","chrome","opera","isFirefox","InstallTrigger","isIE","MSInputMethodContext","documentMode","DEPRECATION_MESSAGE","DEPRECATION_ID","DEPRECATION_URL","DEPRECATED_LOGGER","LOGGER","log","deprecate","id","until","url","for","since","enabled","console","arguments","warn","error","info","debug","assert","_default","_exports","default","leakTracking","containers","gc","GetWeakSetValues","Function","WeakSet","hasContainers","length","reset","values","i","delete","e","deprecatedStoreInjections","_exports","window","undefined","Container","constructor","registry","options","owner","cache","dictionary","factoryManagerCache","isDestroyed","isDestroying","validationCache","add","lookup","fullName","Error","isValidFullName","assert","normalize","destroy","destroyDestroyables","finalizeDestroy","resetCache","resetMember","ownerInjection","injection","setOwner","factoryFor","normalizedName","_leakTracking","wrapManagerInDeprecationProxy","manager","HAS_NATIVE_PROXY","validator","set","_obj","prop","m","proxiedManager","class","create","props","Proxy","isSingleton","container","getOption","isInstantiatable","singleton","cached","instantiateFactory","factory","resolve","_onLookup","FactoryManager","isSingletonClass","instantiate","isSingletonInstance","isFactoryClass","fullname","isFactoryInstance","factoryManager","instance","processInjections","injections","result","validateInjections","hash","property","specifier","isDynamic","buildInjections","typeInjections","injectionsHash","injectionsFor","type","split","getTypeInjections","getInjections","store","keys","Object","key","value","member","INIT_FACTORY","symbol","getFactoryFor","obj","setFactoryFor","madeToString","toString","makeToString","assign","lazyInjections","_lazyInjections","normalizeInjectionsHash","VALID_FULL_NAME_REGEXP","Registry","fallback","resolver","registrations","_typeInjections","_injections","_localLookupCache","_normalizeCache","_resolveCache","_failSet","Set","_options","_typeOptions","register","unregister","arguments","describe","lookupDescription","normalizeFullName","_a","name","has","optionsForType","getOptionsForType","getOptions","optionName","typeInjection","fullNameType","push","injectionName","normalizedInjectionName","indexOf","knownForType","localKnown","registeredNames","index","itemType","fallbackKnown","resolverKnown","test","fallbackInjections","concat","proto","prototype","hasOwnProperty","call","_normalizedName","resolved","privateNames","privateSuffix","Math","random","Date","now","replace","privatize","rawName","intern","checkGlobal","value","Object","undefined","checkElementIdShadowing","nodeType","global$1","_exports","global","self","window","mainContext","Function","context","Ember","imports","exports","lookup","getLookup","setLookup","ENV","ENABLE_OPTIONAL_FEATURES","EXTEND_PROTOTYPES","Array","String","LOG_STACKTRACE_ON_DEPRECATION","LOG_VERSION","RAISE_ON_DEPRECATION","STRUCTURED_PROFILE","_APPLICATION_TEMPLATE_WRAPPER","_TEMPLATE_ONLY_GLIMMER_COMPONENTS","_DEBUG_RENDER_TREE","_JQUERY_INTEGRATION","_DEFAULT_ASYNC_OBSERVERS","_RERENDER_LOOP_LIMIT","_DISABLE_PROPERTY_FALLBACK_DEPRECATION","EMBER_LOAD_HOOKS","FEATURES","EmberENV","flag","prototype","hasOwnProperty","call","defaultValue","FUNCTION_PROTOTYPE_EXTENSIONS","isEnabled","hookName","hooks","isArray","filter","hook","feature","getENV","onerror","onErrorTarget","_exports","getOnerror","setOnerror","handler","dispatchOverride","getDispatchOverride","setDispatchOverride","_default","_exports","default","EmberObject","extend","resolver","canCatalogEntriesByType","type","catalogEntriesByType","namespaces","emberA","Namespace","NAMESPACES","types","typeSuffixRegex","RegExp","classify","forEach","namespace","key","Object","prototype","hasOwnProperty","call","test","klass","typeOf","push","dasherize","replace","iterate","arr","fn","HAS_NATIVE_SYMBOL","Symbol","iterator","item","forEach","RecordsWatcher","getCacheForItem","record","recordCache","recordCaches","get","hasBeenAdded","createCache","added","push","wrapRecord","updated","set","constructor","records","recordsAdded","recordsUpdated","recordsRemoved","release","Map","removed","recordArrayCache","seen","Set","consumeTag","tagFor","getValue","add","untrack","cache","has","delete","length","revalidate","TypeWatcher","onChange","hasBeenAccessed","_default","_exports","default","EmberObject","extend","init","_super","arguments","containerDebugAdapter","getOwner","lookup","releaseMethods","emberA","recordsWatchers","typeWatchers","flushWatchers","attributeLimit","acceptsModelName","getFilters","watchModelTypes","typesAdded","typesUpdated","modelTypes","getModelTypes","typesToSend","map","type","klass","wrapped","wrapModelType","name","observeModelType","removeObject","pushObject","_nameToClass","owner","Factory","factoryFor","class","watchRecords","modelName","getRecords","recordsWatcher","updateFlushWatchers","size","watcher","_backburner","on","off","willDestroy","detect","columnsForType","typeWatcher","typeToSend","count","columns","object","types","canCatalogEntriesByType","catalogEntriesByType","_getObjectsOnNamespaces","filter","namespaces","Namespace","NAMESPACES","namespace","key","Object","prototype","hasOwnProperty","call","dasherize","recordToSend","columnValues","getRecordColumnValues","searchKeywords","getRecordKeywords","filterValues","getRecordFilterValues","color","getRecordColor","RootTemplate","_exports","templateFactory","isTemplateFactory","template","SafeString","constructor","string","toString","toHTML","escape","possible","badChars","escapeChar","chr","escapeExpression","undefined","String","test","replace","htmlSafe","str","isHTMLSafe$1","referenceForParts","rootRef","parts","isAttrs","shift","length","childRefFor","childRefFromParts","parseAttributeBinding","microsyntax","colonIndex","indexOf","assert","prop","substring","attribute","installAttributeBinding","component","parsed","operations","isSimple","elementId","get","createPrimitiveRef","setAttribute","isPath","reference","split","EMBER_COMPONENT_IS_VISIBLE","createStyleBindingRef","DISPLAY_NONE","SAFE_DISPLAY_NONE","installIsVisibleBinding","inner","isVisibleRef","createComputeRef","value","valueForRef","isVisible","deprecate","logTrackingStack","id","until","url","for","since","enabled","style","UNDEFINED_REFERENCE","createClassNameBindingRef","truthy","falsy","isStatic","ref","createSimpleClassNameBindingRef","createColonClassNameBindingRef","path","dasherizedPath","dasherize","NOOP","ComponentStateBucket","args","argsTag","finalizer","hasWrappedElement","isInteractive","classRef","argsRevision","valueForTag","createConstRef","registerDestructor","willDestroy","destroy","beginUntrackFrame","trigger","endUntrackFrame","element","getViewElement","clearElementView","clearViewElement","renderer","unregister","finalize","internalHelper","helper","setInternalHelperManager","ACTIONS","_WeakSet","INVOKE","symbol","action$1","named","positional","context","action$$1","restArgs","debugKey","debugLabel","target","processArgs","makeArgsProcessor","fn$$1","isInvokableRef","makeClosureAction","invokeRef","makeDynamicClosureAction","add","createUnboundRef","NOOP$1","valuePathRef","actionArgsRef","mergeArgs","map","concat","readValue","valuePath","targetRef","actionRef","self","typeofAction","actions","Boolean","payload","label","flaggedInstrument","join","updateRef","processComponentArgs","namedArgs","attrs","Object","create","props","ARGS","name","isAction","has","isUpdatableRef","MutableCell","REF","MUTABLE_CELL","update","val","__rest","s","e","t","p","prototype","hasOwnProperty","call","getOwnPropertySymbols","i","propertyIsEnumerable","enumerableSymbol","HAS_BLOCK","DIRTY_TAG","IS_DISPATCHING_ATTRS","BOUNDS","EMBER_VIEW_REF","aliasIdToElementId","applyAttributeBindings","attributeBindings","seen","binding","push","guidFor","EMPTY_POSITIONAL_ARGS","debugFreeze","CurlyComponentManager","templateFor","layout","layoutName","owner","getOwner","factory","_factory","lookup","unwrapTemplate","asWrappedLayout","getDynamicLayout","bucket","getTagName","state","tagName","getCapabilities","CURLY_CAPABILITIES","prepareArgs","ComponentClass","_a","_b","capture","__ARGS__","rest","__args__","prepared","_polyfills","assign","positionalParams","class","captured","reifyPositional","Array","isArray","count","Math","min","at","EMPTY_ARRAY","dynamicScope","callerSelfRef","hasBlock","parentView","view","capturedArgs","beginTrackFrame","endTrackFrame","_target","setOwner","_instrumentStart","initialRenderInstrumentDetails","addChildView","_transitionTo","processComponentInitializationAssertions","consumeTag","getDebugName","definition","fullName","normalizedName","getSelf","didCreateElement","setViewElement","setElementView","classNames","classNameBindings","forEach","didRenderLayout","bounds","didCreate","rerenderInstrumentDetails","validateTag","setProperties","didUpdateLayout","didUpdate","getDestroyable","instrumentDetails","initialRender","dynamicLayout","dynamicTag","createArgs","attributeHook","elementHook","createCaller","updateHook","createInstance","wrapped","hasSubOwner","CURLY_COMPONENT_MANAGER","isCurlyManager","manager","Component","CoreView","extend","ChildViewsSupport","ViewStateSupport","ClassNamesSupport","TargetActionSupport","ActionSupport","ViewMixin","isComponent","init","_super","arguments","createTag","_isInteractive","eventNames","eventDispatcher","events","_finalEvents","key","methodName","mouseEnter","mouseLeave","mouseMove","rerender","dirtyTag","PROPERTY_DID_CHANGE","getAttr","readDOMAttr","_element","isSVG","namespaceURI","type","normalized","normalizeProperty","getAttribute","didReceiveAttrs","didRender","willRender","didUpdateAttrs","willUpdate","reopenClass","isComponentFactory","setInternalComponentManager","defineProperty","configurable","enumerable","writable","reopen","_wasReopened","CoreObject","Checkbox","disabled","indeterminate","didInsertElement","change","set","checked","UNSET","FrameworkObject","inputTypes","hasDOM","canSetTypeOfInput","inputTypeTestElement","document","createElement","TextField","TextSupport","computed","_key","size","pattern","max","TextArea","rows","cols","layout$1","UNDEFINED","freeze","EMPTY_QUERY_PARAMS","LinkComponent","route","model","models","query","title","rel","tabindex","activeClass","loadingClass","disabledClass","preventDefault","eventName","assertLinkToOrigin","on","_invoke","_routing","inject","_currentRoute","alias","_currentRouterState","_targetRouterState","_isEngine","getEngineParent","_engineMountPoint","mountPoint","_route","computeLinkToComponentRoute","_namespaceRoute","_models","computeLinkToComponentModels","_query","computeLinkToComponentQuery","_isDisabled","active","computeLinkToComponentActiveClass","_active","computeLinkToComponentActive","_isActive","willBeActive","computeLinkToComponentWillBeActive","current","routerState","loading","currentWhen","routing","some","isActiveForRoute","transitioningIn","computeLinkToComponentTransitioningIn","transitioningOut","computeLinkToComponentTransitioningOut","event","isSimpleClick","bubbles","isSelf","stopPropagation","warn","routeName","queryParams","shouldReplace","_generateTransition","qualifiedRouteName","transition","transitionTo","href","computeLinkToComponentHref","loadingHref","generateURL","message","computeLinkToComponentLoading","_modelsAreLoaded","loaded","computeLinkToComponentModelsAreLoaded","disabledWhen","params","lastModel","isQueryParams","values","pop","slice","runInDebug","equivalentNamedArgs","hasQueryParams","InputTemplate","InternalModifier","install","remove","index","destructor","modifier","InternalModifierState","instance","InternalModifierManager","ModifierClass","_definition","HTMLElement","getTag","false","NOOP$2","ObjectEntries","entries","obj","keys","ObjectValues","InternalComponent","caller","validateArguments","isSupportedArgument","onUnsupportedArgument","listenerFor","listener","_name","OPAQUE_CONSTRUCTOR_MAP","WeakMap","opaquify","_opaque","opaque","INTERNAL_COMPONENT_MANAGER","setComponentTemplate","deopaquify","CAPABILITIES","InternalManager","_env","_dynamicScope","isConstRef","untrack","bind","handleDeprecatedArguments","angle","superOnUnsupportedArgument","modernized","handleDeprecatedAttributeArguments","bindings","curly","toLowerCase","descriptorFor","property","getOwnPropertyDescriptor","getPrototypeOf","argument","superIsSupportedArgument","superDescriptor","superGetter","handleDeprecatedEventArguments","EVENTS","EMPTY_EVENTS","getEventsMap","extraEvents","DeprecatedEventHandlersModifier","listeners","Map","addEventListener","removeEventListener","setInternalModifierManager","jQueryEventShim","JQUERY_INTEGRATION","superListenerFor","jQuery","jQueryDisabled","Event","__decorate","decorators","desc","c","r","d","Reflect","decorate","UNINITIALIZED","elementForEvent","HTMLInputElement","HTMLTextAreaElement","valueForEvent","devirtualize","callback","valueFrom","LocalValue","UpstreamValue","ForkedValue","tracked","lastUpstreamValue","upstream","upstreamValue","local","AbstractInput","shouldModernize","_value","valueDidChange","input","keyUp","isVirtualEventListener","_listener","virtualEvents","action","handleDeprecatedFeatures","SEND_ACTION","isView","send","actionName","deprecatedListener","focusin","focusout","keypress","keyup","keydown","superIsVirtualEventListener","__decorate$1","isValidInputType","INPUT_TYPES","INPUT_ELEMENT","isValid","Input","_checked","isCheckbox","checkedDidChange","supportedArguments","Input$1","TextareaTemplate","__decorate$2","Textarea","Textarea$1","RECOMPUTE_TAG","Helper","recompute","IS_CLASSIC_HELPER","isHelperFactory","isClassicHelper","ClassicHelperManager","capabilities","helperCapabilities","hasValue","hasDestroyable","ownerInjection","createHelper","getValue","ret","deprecateMutationsInTrackingTransaction","compute","setHelperManager","CLASSIC_HELPER_MANAGER","getInternalHelperManager","Wrapper","SimpleClassicHelperManager","SIMPLE_CLASSIC_HELPER_MANAGER","helperFn","instrumentationPayload","def","object","outlet","CAPABILITIES$1","OutletComponentManager","_owner","_args","env","parentStateRef","currentStateRef","controller","debugRenderTree","parentState","parentOwner","render","currentOwner","engine","routable","engineBucket","getDebugCustomRenderTree","nodes","EMPTY_ARGS","moduleName","OUTLET_MANAGER","OutletComponentDefinition","handle","capabilityFlagsFrom","compilable","asLayout","resolvedName","createRootOutlet","outletView","ENV","_APPLICATION_TEMPLATE_WRAPPER","WRAPPED_CAPABILITIES","WrappedOutletComponentManager","WRAPPED_OUTLET_MANAGER","RootComponentManager","_state","CONSTANT_TAG","ROOT_CAPABILITIES","RootComponentDefinition","getFactoryFor","EachInWrapper","eachIn","iterable","tagForObject","isProxy","_contentFor","toIterator","toEachInIterator","toEachIterator","isIndexable","isEmberArray","ObjectIterator","fromIndexable","HAS_NATIVE_SYMBOL","isNativeIterable","MapLikeNativeIterator","from","hasForEach","fromForEachable","isObject","ArrayIterator","EmberArrayIterator","ArrayLikeNativeIterator","BoundedIterator","position","isEmpty","memoFor","next","valueFor","memo","array$$1","array","item","objectAt","isTracking","tagFor","isMapLike","NativeIterator","result","iterator","Symbol","done","_result","toBool","predicate","tagForProperty","isHTMLSafe","setGlobalContext","scheduleRevalidate","_backburner","ensureInstance","getProp","_getProp","setProp","_setProp","getPath","setPath","scheduleDestroy","destroyable","schedule","scheduleDestroyed","finalizeDestructor","warnIfStyleNotTrusted","constructStyleDeprecationMessage","msg","options","override","VM_ASSERTION_OVERRIDES","filter","o","VM_DEPRECATION_OVERRIDES","Error","setTrackingTransactionEnv","debugMessage","keyName","dirtyString","_DISABLE_PROPERTY_FALLBACK_DEPRECATION","EmberEnvironmentDelegate","enableDebugTooling","_DEBUG_RENDER_TREE","onTransactionCommit","disallowDynamicResolution","nameOrValueRef","typeRef","locRef","loc","originalRef","original","loc$$1","nameOrValue","helper$1","inElementNullCheckHelper","normalizeClassHelper","classNameParts","className","resolve","fullNameRef","hasRegistration","factoryFor","trackArray","mut","createInvokableRef","QueryParams","reifyNamed","readonly","createReadOnlyRef","unbound","MODIFIERS","POINTER_EVENT_TYPE_REGEX","isAllowedEvent","allowedKeys","ActionHelper","registeredActions","ActionManager","registerAction","actionState","actionId","unregisterAction","ActionState","actionArgs","positionalArgs","tag","createUpdatableTag","getEventName","on$$1","getActionArgs","getTarget","implicitTarget","handler","bubblesVal","preventDefaultVal","allowedKeysVal","shouldBubble","apply","ActionModifierManager","uuid","actionNameRef","actionPath","actionPathParts","actionLabel","ACTION_MODIFIER_MANAGER","actionModifier","CAPABILITIES$2","MountManager","templateFactory$$1","buildChildEngineInstance","boot","applicationFactory","controllerFactory","generateControllerFactory","modelRef","associateDestroyableChild","templateModuleName","MOUNT_MANAGER","MountDefinition","mountHelper","nameRef","extra","k","createCapturedArgs","EMPTY_POSITIONAL","lastName","lastDef","curry","outletHelper","scope","outletRef","outlets","lastState","outletState","stateFor","validate","dict","createDebugAliasRef","instrumentationPayload$1","componentFor","layoutFor","templateFullName","lookupComponentPair","getComponentTemplate","lookupPartial","parseUnderscoredName","PARTIALS","templateName","underscored","EmberError","nameParts","lastPart","BUILTIN_KEYWORD_HELPERS","hash","BUILTIN_HELPERS","fn","get$1","BUILTIN_KEYWORD_MODIFIERS","BUILTIN_MODIFIERS","CLASSIC_HELPER_MANAGER_ASSOCIATED","ResolverImpl","componentDefinitionCache","PartialDefinitionImpl","lookupHelper","helper$$1","lookupBuiltInHelper","lookupModifier","builtin","lookupBuiltInModifier","lookupComponent","pair","cachedComponentDefinition","_TEMPLATE_ONLY_GLIMMER_COMPONENTS","templateOnlyComponent","TEMPLATE_ONLY_COMPONENT_MANAGER","privatize","getInternalComponentManager","DynamicScope","child","errorLoopTransaction","didError","console","RootState","root","runtime","parentElement","builder","getViewId","destroyed","renderMain","nextSibling","sync","alwaysRevalidate","isFor","possibleRoot","inTransaction","renderers","_resetRenderers","register","deregister","splice","loopBegin","_scheduleRevalidate","K","renderSettledDeferred","renderSettled","RSVP","defer","_getCurrentRunLoop","promise","resolveRenderPromise","loops","loopEnd","_isValid","_RERENDER_LOOP_LIMIT","Renderer","rootTemplate","viewRegistry","clientBuilder","_inRenderTransaction","_lastRevision","_destroyed","_rootTemplate","_viewRegistry","_roots","_removedRoots","_builder","resolver","_runtimeResolver","sharedArtifacts","artifacts","_context","programCompilationContext","runtimeEnvironmentDelegate","_runtime","runtimeContext","appendOperations","DOMTreeConstruction","NodeDOMTreeConstruction","updateOperations","DOMChanges","appendOutletView","_appendDefinition","appendTo","rootState","_renderRoot","cleanupRootFor","roots","_clearAllRoots","getElement","getBounds","firstNode","lastNode","getAppendOperations","_renderRootsTransaction","_renderRoots","removedRoots","initialRootsLength","CURRENT_TAG","rootIndex","completedWithoutError","scheduleOnce","_revalidate","TEMPLATES","setTemplates","templates","getTemplates","getTemplate","hasTemplate","setTemplate","LinkToTemplate","__decorate$3","EMPTY_ARRAY$1","EMPTY_QUERY_PARAMS$1","isMissing","isPresent","LinkTo","currentRouteCache","createCache","currentRouteName","isEngine","engineMountPoint","classes","isActive","classFor","isLoading","isDisabled","click","currentTarget","HTMLAnchorElement","namespaceRoute","currentRoute","isActiveForState","currentState","targetState","shouldPreventDefault","shouldStopPropagation","superModelsDescriptor","superModelsGetter","superQueryDescriptor","superQueryGetter","qp","superValidateArguments","LinkTo$1","loc$1","OutletTemplate","TOP_LEVEL_NAME","TOP_LEVEL_OUTLET","OutletView","_environment","outletStateTag","main","into","injections","selector","querySelector","setOutletState","setupApplicationRegistry","registry","injection","bootOptions","_renderMode","serializeBuilder","rehydrationBuilder","setupEngineRegistry","optionsForType","instantiate","setComponentManager$1","stringOrFunction","COMPONENT_MANAGER_STRING_LOOKUP","setComponentManager","componentCapabilities$1","componentCapabilities","modifierCapabilities$1","modifierCapabilities","version","objectPrototype","Object","prototype","counters","_exports","peekCalls","peekPrototypeWalks","setCalls","deleteCalls","metaCalls","metaInstantiated","matchingListenersCalls","observerEventsCalls","addToListenersCalls","removeFromListenersCalls","removeAllListenersCalls","listenersInherited","listenersFlattened","parentListenersUsed","flattenedListenersCalls","reopensAfterFlatten","readableLazyChainsCalls","writableLazyChainsCalls","UNDEFINED","symbol","currentListenerVersion","Meta","constructor","obj","_listenersVersion","_inheritedEnd","_flattenedVersion","_parent","undefined","_descriptors","_mixins","_lazyChains","_values","_revisions","_isInit","source","proto","_listeners","parent","getPrototypeOf","meta","setSourceDestroying","deprecate","id","until","for","since","enabled","setSourceDestroyed","isSourceDestroying","isDestroying","isSourceDestroyed","isDestroyed","setInitializing","unsetInitializing","isInitializing","isPrototypeMeta","_getOrCreateOwnMap","key","create","_getOrCreateOwnSet","Set","_findInheritedMap","subkey","pointer","map","value","get","_hasInInheritedSet","set","has","valueFor","values","setValueFor","revisionFor","revisions","setRevisionFor","revision","writableLazyChainsFor","lazyChains","chains","readableLazyChainsFor","addMixin","mixin","assert","toString","add","hasMixin","forEachMixins","fn","seen","forEach","writeDescriptors","Map","peekDescriptors","possibleDesc","removeDescriptors","forEachDescriptors","addToListeners","eventName","target","method","once","sync","pushListener","removeFromListeners","event","kind","listeners","writableListeners","i","indexOfListener","splice","push","listener","split","flattenedListeners","parentListeners","length","index","unshift","matchingListeners","result","observerEvents","indexOf","metaStore","WeakMap","setMeta","peekMeta","maybeMeta","newMeta","_counters","addListener","obj","eventName","target","method","once","sync","Boolean","assert","meta","addToListeners","removeListener","targetOrFunction","functionOrName","m","removeFromListeners","sendEvent","params","actions","_meta","undefined","meta$$1","peekMeta","matchingListeners","length","i","type","apply","hasListeners","matched","on","args","func","pop","events","every","p","setListeners","AFTER_OBSERVERS","changeEvent","keyName","SYNC_DEFAULT","ENV","_DEFAULT_ASYNC_OBSERVERS","SYNC_OBSERVERS","_exports","Map","ASYNC_OBSERVERS","addObserver","path","isPrototypeMeta","isInitializing","activateObserver","removeObserver","deactivateObserver","getOrCreateActiveObserversFor","observerMap","has","set","registerDestructor","destroyObservers","get","activeObservers","count","substring","lastIndexOf","tag","getChainTagsForKey","tagMetaFor","lastRevision","valueForTag","suspended","DEACTIVATE_SUSPENDED","SCHEDULED_DEACTIVATE","push","observer","delete","size","suspendedObserverDeactivation","resumeObserverDeactivation","revalidateObservers","forEach","lastKnownRevision","flushAsyncObservers","shouldSchedule","currentRevision","CURRENT_TAG","validateTag","sendObserver","schedule","flushSyncObservers","setObserverSuspended","property","SELF_TAG","symbol","tagForProperty","propertyKey","addMandatorySetter","customTagFor","getCustomTagFor","tagFor","setupMandatorySetter","tagForObject","isObject","isDestroyed","toString","CONSTANT_TAG","markObjectAsDirty","dirtyTagFor","PROPERTY_DID_CHANGE","enumerableSymbol","deferred","notifyPropertyChange","value","arguments","beginPropertyChanges","endPropertyChanges","changeProperties","callback","arrayContentWillChange","array","startIdx","removeAmt","addAmt","arrayContentDidChange","notify","addedAmount","removedAmount","delta","previousLength","normalStartIdx","revisionFor","previousLastIndex","lastAffectedIndex","EMPTY_ARRAY","Object","freeze","objectAt","index","Array","isArray","replace","start","deleteCount","items","replaceInNativeArray","CHUNK_SIZE","splice","chunk","slice","arrayObserversHelper","opts","operation","willChange","didChange","hasObservers","hasArrayObservers","addArrayObserver","suppress","deprecate","getDebugName","id","url","until","for","since","enabled","removeArrayObserver","CHAIN_PASS_THROUGH","_WeakSet","finishLazyChains","key","lazyTags","readableLazyChainsFor","deps","updateTag","getChainTagsForKeys","keys","tagMeta","tags","getChainTags","combine","chainTags","current","currentTagMeta","currentMeta","pathLength","segmentEnd","segment","descriptor","lastSegmentEnd","indexOf","arrLength","item","peekDescriptors","altKey","propertyTag","unknownProperty","instanceMeta","source","valueFor","lazyChains","writableLazyChainsFor","rest","substr","placeholderTag","createUpdatableTag","isElementDescriptor","maybeTarget","maybeKey","maybeDesc","nativeDescDecorator","propertyDesc","decorator","setClassicDecorator","ComputedDescriptor","constructor","enumerable","configurable","_dependentKeys","setup","_obj","_propertyDesc","writeDescriptors","teardown","removeDescriptors","COMPUTED_GETTERS","DESCRIPTOR_GETTER_FUNCTION","name","getter","add","DESCRIPTOR_SETTER_FUNCTION","CPSETTER_FUNCTION","COMPUTED_SETTERS","makeComputedDecorator","desc","DecoratorClass","COMPUTED_DECORATOR","maybeMeta","isClassicDecorator","computedDesc","setPrototypeOf","prototype","DECORATOR_DESCRIPTOR_MAP","WeakMap","descriptorForProperty","descriptorForDecorator","dec","END_WITH_EACH_REGEX","expandProperties","pattern","match","dive","prefix","end","newStart","arrayLength","tempArr","split","after","defineProperty","data","previousDesc","wasDescriptor","defineDecorator","defineValue","writable","setWithMandatorySetter","firstDotIndexCache","Cache","isPath","PROXY_CONTENT","getPossibleMandatoryProxyValue","HAS_NATIVE_PROXY","content","Reflect","isNaN","_getPath","_getProp","isObject$$1","isFunction","isObjectLike","deprecateMutationsInTrackingTransaction","isTracking","consumeTag","isEmberArray","root","forSet","parts","part","getWithDefault","defaultValue","unkonwnProperty","fakeProxy","setProxy","track","a","tolerant","_setPath","_setProp","lookupDescriptor","currentValue","setUnknownProperty","trim","newRoot","EmberError","join","trySet","DEEP_EACH_REGEX","noop","ComputedProperty","_volatile","_readOnly","_hasConfig","_getter","_setter","maybeConfig","config","objectConfig","_property","initializer","set$$1","setterWrapper","_key","ret","call","passedArgs","addArg","warn","test","revision","untrack","ALLOW_CYCLES","setValueFor","setRevisionFor","_throwReadOnlyError","clobberSet","volatileSet","isComponent","_set","inspect","cachedValue","hadCachedValue","AutoComputedProperty","ComputedDecoratorImpl","Function","readOnly","volatile","prop","computed","autoComputed","isComputed","getCachedValueFor","alias","AliasedProperty","AliasDecoratorImpl","oneWay","_keyName","AliasedProperty_readOnlySet","AliasedProperty_oneWaySet","deprecateProperty","object","deprecatedKey","newKey","options","_deprecate","EACH_PROXIES","eachProxyArrayWillChange","idx","removedCnt","addedCnt","eachProxy","arrayWillChange","eachProxyArrayDidChange","arrayDidChange","isNone","isEmpty","none","objectType","isBlank","isPresent","Libraries","_registry","_coreLibIndex","_getLibraryByName","libs","register","version","isCoreLibrary","registerCoreLibrary","deRegister","lib","logVersions","nameLengths","map","maxNameLength","Math","max","debug","spaces","LIBRARIES","libraries","VERSION","getProperties","propertyNames","setProperties","properties","props","propertyName","hasOwnProperty","searchDisabled","flags","_unprocessedNamespaces","unprocessedNamespaces","v","unprocessedMixins","NAMESPACES","NAMESPACES_BY_ID","create","addNamespace","namespace","removeNamespace","getName","context","lookup","findNamespaces","isUppercase","charCodeAt","tryIsNamespace","setName","findNamespace","processAllNamespaces","processNamespace","_processNamespace","Set","namespaces","isSearchDisabled","setSearchDisabled","flag","setUnprocessedMixins","paths","seen","isNamespace","code","e","a_concat","concat","extractAccessors","getOwnPropertyDescriptor","concatenatedMixinProperties","concatProp","values","base","concats","giveDecoratorSuper","descs","originalGetter","superDesc","superProperty","superGetter","wrap","originalSetter","superSetter","dependentKeys","newProperty","giveMethodSuper","superMethod","applyConcatenatedProperties","baseValue","makeArray","applyMergedProperties","JSON","stringify","newBase","assign","hasFunction","propValue","_super","ROOT","mergeMixins","mixins","keysWithSuper","currentMixin","MIXINS","hasMixin","addMixin","mergeProps","_without","mergings","propKeys","prev","updateObserversAndListeners","followMethodAlias","ALIAS_METHOD","methodName","possibleDesc","fn","observerListenerMetaFor","observers","listeners","updateObserver","updateListener","applyMixin","_hideKeys","isAlias","followed","mixin","Mixin","buildMixinsArray","ownerConstructor","INIT_FACTORY","guidFor","_disableDebugSeal","seal","M","forEachMixins","reopen","applyPartial","detect","_detect","without","_keys","x","curMixin","targetMixin","some","AliasImpl","ALIASES","aliasMethod","funcOrDef","setObservers","DEBUG_INJECTION_FUNCTIONS","inject","calledAsDecorator","getInjection","owner","getOwner","container","tracked","_desc","isClassicDecorator$$1","fieldDesc","descriptorForField","setter","trackedData","newValue","newDesc","isTracked","TrackedDescriptor","_get","onEmberGlobalAccess","onComputedDotAccess","onRunloopDotAccess","once","callback","called","args","onDotAccess","dotKey","importKey","module","message","_exports","LEGACY_OWNER","_exports","enumerableSymbol","getOwner","object","owner","glimmerGetOwner","undefined","deprecate","id","until","for","since","enabled","setOwner","glimmerSetOwner","ControllerMixin","reopen","concatenatedProperties","init","_super","arguments","owner","getOwner","namespace","lookup","target","queryParams","_qpDelegate","_qpChanged","controller","_prop","dotIndex","indexOf","prop","slice","delegate","value","get","transitionToRoute","args","deprecateTransitionMethods","method","transitionTo","apply","prefixRouteNameArg","replaceRoute","replaceWith","_default","_exports","default","_default","_exports","default","create","options","implementation","Boolean","assert","implementationClass","implementations","arguments","AutoLocation","EmberObject","constructor","arguments","implementation","detect","rootURL","charAt","length","assert","detectImplementation","location","history","userAgent","documentMode","global","set","concrete","getOwner","lookup","undefined","willDestroy","concreteImplementation","destroy","_exports","default","reopen","initState","delegateToConcreteImplementation","getURL","setURL","replaceURL","onUpdateURL","formatURL","window","cancelRouterSetup","methodName","args","_a","Boolean","call","options","currentPath","getFullPath","supportsHistory","historyPath","getHistoryPath","substr","replaceState","path","replacePath","supportsHashChange","hashPath","getHashPath","getPath","hash","getHash","query","getQuery","rootURLIndex","indexOf","routeHash","hashParts","split","shift","join","routePath","HashLocation","EmberObject","constructor","arguments","implementation","init","set","_location","window","location","_hashchangeHandler","undefined","getHash","getURL","originalPath","substr","outPath","setURL","path","hash","replaceURL","replace","onUpdateURL","callback","_removeEventListener","bind","lastSetURL","addEventListener","formatURL","url","willDestroy","removeEventListener","_exports","default","popstateFired","_uuid","replace","c","r","v","Math","random","toString","HistoryLocation","EmberObject","constructor","arguments","implementation","rootURL","getHash","location","init","_super","base","document","querySelector","baseURL","hasAttribute","getAttribute","set","window","_popstateHandler","undefined","initState","history","state","path","formatURL","getURL","_previousURL","replaceState","pathname","url","RegExp","search","setURL","pushState","replaceURL","uuid","onUpdateURL","callback","_removeEventListener","addEventListener","willDestroy","removeEventListener","_exports","default","NoneLocation","EmberObject","constructor","arguments","implementation","detect","rootURL","charAt","length","assert","getURL","path","replace","RegExp","setURL","set","onUpdateURL","callback","updateCallback","handleURL","url","formatURL","_exports","default","reopen","getPath","location","pathname","getQuery","search","getHash","hash","undefined","substr","getFullPath","getOrigin","origin","protocol","hostname","port","supportsHashChange","documentMode","global","Boolean","supportsHistory","userAgent","history","indexOf","replacePath","path","replace","ROUTER","symbol","cleanURL","url","rootURL","substr","length","RouterService","Service","_router","router","undefined","owner","getOwner","lookup","willDestroy","arguments","transitionTo","args","resemblesURL","_doURLTransition","routeName","models","queryParams","extractRouteArgs","transition","_doTransition","replaceWith","method","urlFor","setupRouter","generate","isActive","routerMicrolib","_routerMicrolib","consumeTag","tagFor","isActiveIntent","hasQueryParams","Object","keys","assign","_prepareQueryParams","shallowEqual","state","recognize","indexOf","assert","internalURL","recognizeAndLoad","_exports","default","reopen","Evented","currentRouteName","readOnly","currentURL","location","currentRoute","ROUTER","symbol","RoutingService","Service","router","undefined","owner","getOwner","lookup","setupRouter","hasRoute","routeName","transitionTo","models","queryParams","shouldReplace","transition","_doTransition","method","normalizeQueryParams","_prepareQueryParams","_generateURL","visibleQueryParams","assign","generate","generateURL","_initialTransitionStarted","_e","isActiveForRoute","contexts","routerState","handlers","_routerMicrolib","recognizer","handlersFor","leafName","length","handler","maximumContexts","numberOfContextsAcceptedByHandler","isActiveIntent","_exports","default","reopen","targetState","readOnly","currentState","currentRouteName","currentPath","handlerName","handlerInfos","req","i","names","BucketCache","constructor","cache","Map","has","bucketKey","stash","key","value","bucket","get","undefined","set","lookup","prop","defaultValue","_exports","default","controllerFor","container","controllerName","lookupOptions","lookup","uuid","isCallback","value","isOptions","DSLImpl","constructor","name","options","explicitIndex","parent","enableLoadingSubstates","Boolean","matches","route","_options","_callback","callback","dummyErrorRoute","arguments","length","assert","overrideNameAssertion","indexOf","createRoute","resetNamespace","path","fullName","getFullName","dsl","call","generate","push","url","serialize","parts","split","engineInfo","localFullName","slice","routeInfo","assign","serializeMethod","addRouteForEngine","Error","dslMatches","match","i","to","mount","_name","engineRouteMap","resolveRouteMap","as","instanceId","mountPoint","shouldResetEngineInfo","oldEngineInfo","optionsForChild","childDSL","class","substateName","_exports","default","canNest","generateControllerFactory","owner","controllerName","Factory","factoryFor","class","extend","toString","fullName","register","generateController","instance","lookup","get","info","QueryParams","constructor","values","isQueryParams","_exports","default","ROUTE_CONNECTIONS","_exports","WeakMap","RENDER","symbol","defaultSerialize","model","params","length","object","name","get","test","isProxy","getProperties","hasDefaultSerialize","route","serialize","Route","EmberObject","constructor","owner","arguments","context","router","lookup","bucketCache","P","assert","_router","_bucketCache","_topLevelViewTemplate","_environment","_setRouteName","routeName","fullRouteName","getEngineRouteName","getOwner","_stashNames","routeInfo","dynamicParent","_names","names","qps","namePaths","Array","a","i","qp","scope","parts","_activeQPChanged","value","scopedPropertyName","_updatingQPChanged","urlKey","paramsFor","undefined","transition","_routerMicrolib","activeTransition","state","STATE_SYMBOL","fullName","assign","queryParams","getQueryParamsFor","Object","keys","reduce","key","serializeQueryParamKey","controllerPropertyName","serializeQueryParam","_urlKey","defaultValueType","_serializeQueryParam","deserializeQueryParam","_deserializeQueryParam","_optionsForQueryParam","prop","resetController","_controller","_isExiting","_transition","exit","deactivate","trigger","teardownViews","_internalReset","isExiting","controller","enter","set","activate","transitionTo","args","deprecateTransitionMethods","prefixRouteNameArg","intermediateTransitionTo","preparedArgs","refresh","replaceWith","setup","controllerName","definedController","controllerFor","generateController","propNames","addQueryParamsObservers","states","_qpDelegate","allowOverrides","stashParamNames","routeInfos","cache","PARAMS_SYMBOL","allParams","propertyNames","forEach","aQp","map","values","cacheKey","calculateCacheKey","undecoratedDefaultValue","qpValues","setProperties","setupController","options","shouldRender","renderTemplate","prototype","deprecate","id","until","url","for","since","enabled","flushAsyncObservers","_qpChanged","stash","beforeModel","afterModel","redirect","contextDidChange","currentModel","sawParams","match","_polyfills","resolveIndex","findModel","deserialize","_params","_paramsFor","find","_skipAssert","modelFor","_name","routable","modelLookupName","hasOwnProperty","call","resolvedModels","renderOptions","buildRenderOptions","push","once","_model","render","disconnectOutlet","outletName","parentView","outlet","replace","_disconnectOutlet","currentRouteInfos","parent","parentRoute","connections","connection","into","template","willDestroy","buildRouteInfoMetadata","reopenClass","isRouteFactory","routeInfoFor","offset","current","nameOrOptions","isDefaultRender","templateName","isEmpty","LOG_VIEW_LOOKUPS","info","getFullQueryParams","fullQueryParamsState","haveAllRouteInfosResolved","every","_deserializeQueryParams","fullQueryParams","qpValueWasPassedIn","copyDefaultValue","defaultValue","isArray","emberA","slice","mergeEachQueryParams","controllerQP","routeQP","keysAlreadyMergedOrSkippable","type","as","cqpName","newControllerParameterConfiguration","rqpName","newRouteParameterConfiguration","descriptorForProperty","desc","lookupDescriptor","defineProperty","dependentKeyCompat","addObserver","engine","prefix","mountPoint","reopen","ActionHandler","Evented","mergedProperties","store","computed","modelClass","factoryFor","Boolean","class","deprecatedStoreInjections","has","configurable","enumerable","_qp","combinedQueryParameterConfiguration","queryParameterConfiguraton","hasRouterDefinedQueryParams","controllerDefinedQueryParameterConfiguration","normalizedControllerQueryParameterConfiguration","normalizeControllerQueryParams","propName","typeOf","defaultValueSerialized","serializedDefaultValue","serializedValue","inactive","active","send","isDestroying","isDestroyed","isTesting","shift","action","actions","apply","queryParamsDidChange","changed","_totalPresent","removed","qpMap","totalChanged","concat","currentState","finalizeQueryParamChange","finalParams","qpMeta","_queryParamsFor","changes","_qpUpdates","qpUpdated","replaceUrl","presentKey","svalue","thisQueryParamChanged","queryParamsOnly","replaceConfigValue","thisQueryParamHasDefaultValue","_keepDefaultQueryParamValues","visible","method","routeQpMeta","finalizedController","clear","ROUTER_EVENT_DEPRECATIONS","ROUTER_EVENTS","on","_super","hasDidTransition","hasWillTransition","_default","default","defaultDidTransition","infos","updatePaths","_cancelSlowTransitionTimer","notifyPropertyChange","set","targetState","once","trigger","namespace","LOG_TRANSITIONS","console","log","EmberRouter","_routePath","defaultWillTransition","oldInfos","newInfos","transition","freezeRouteInfo","from","Object","isFrozen","freeze","to","K","slice","Array","prototype","EmberObject","constructor","owner","arguments","_didSetupRouter","_initialTransitionStarted","currentURL","currentRouteName","currentPath","currentRoute","_qpCache","create","_qpUpdates","Set","_queuedQPChanges","_toplevelView","_handledErrors","_engineInstances","_engineInfoByRoute","currentState","_resetQueuedQueryParameterChanges","lookup","bucketCache","P","undefined","assert","_bucketCache","routerService","_routerService","_initRouterJs","location","get","router","getOwner","seen","PrivateRouter","Router","getRoute","name","routeName","routeOwner","engineInfo","engineInstance","_getEngineInstance","localFullName","fullRouteName","route","DefaultRoute","factoryFor","class","register","extend","LOG_ACTIVE_GENERATION","info","fullName","_setRouteName","hasDefaultSerialize","Error","getSerializer","serializeMethod","defaultSerialize","updateURL","path","setURL","didTransition","ROUTER_EVENTS","deprecate","id","until","url","for","since","enabled","willTransition","triggerEvent","routeInfos","ignoreFailure","args","bind","routeWillChange","isIntermediate","routeDidChange","transitionDidError","error","wasAborted","isAborted","logAbort","_isErrorHandled","rollback","abort","replaceURL","doReplaceURL","routerMicrolib","_routerMicrolib","dslCallbacks","dsl","_buildDSL","resetNamespace","overrideNameAssertion","i","length","call","LOG_TRANSITIONS_INTERNAL","map","generate","enableLoadingSubstates","_hasModuleBasedResolver","options","resolveRouteMap","addRouteForEngine","DSL","resolver","Boolean","startRouting","setupRouter","initialURL","getURL","initialTransition","handleURL","_setupLocation","onUpdateURL","_setOutlets","isDestroying","isDestroyed","currentRouteInfos","defaultParentState","liveRoutes","connections","ROUTE_CONNECTIONS","ownState","representEmptyRoute","j","appended","appendLiveRoute","outlet","render","OutletView","setOutletState","instance","didCreateRootView","_url","split","_doURLTransition","routerJsMethod","didBeginTransition","transitionTo","resemblesURL","models","queryParams","extractRouteArgs","_doTransition","intermediateTransitionTo","replaceWith","method","formatURL","isActive","isActiveIntent","send","hasRoute","reset","willDestroy","destroy","instances","run","_activeQPChanged","queryParameterName","newValue","_fireQueryParamTransition","_updatingQPChanged","add","rootURL","resolvedLocation","implementation","EmberLocation","detect","initState","_serializeQueryParams","forEachQueryParam","key","value","qp","urlKey","serializeQueryParam","type","_serializeQueryParam","typeOf","JSON","stringify","_deserializeQueryParams","prop","deserializeQueryParam","_deserializeQueryParam","defaultType","Number","valueOf","emberA","parse","_pruneDefaultQueryParamValues","qps","_queryParamsFor","serializedDefaultValue","_targetRouteName","_queryParams","_keepDefaultQueryParamValues","targetRouteName","getActiveTargetName","_processActiveTransitionQueryParams","assign","_prepareQueryParams","activeTransition","unchangedQPs","qpUpdates","params","getFullQueryParams","STATE_SYMBOL","has","_fullyScopeQueryParams","_fromRouterService","state","calculatePostTransitionState","_hydrateUnsuppliedQueryParams","_getQPMeta","routeInfo","routeInfoLength","leafRouteName","cached","shouldCache","qpsByUrlKey","qpMeta","qpOther","controllerName","scopedPropertyName","push","finalQPMeta","contexts","len","presentProp","qpLen","appCache","cacheKey","calculateCacheKey","parts","defaultValue","_scheduleLoadingEvent","originRoute","_slowTransitionTimer","scheduleOnce","_handleSlowTransition","RouterState","cancel","_markErrorAsHandled","_clearHandledError","delete","instanceId","mountPoint","engineInstances","hasRegistration","buildChildEngineInstance","routable","boot","forEachRouteAbove","callback","defaultActionHandlers","willResolveModel","_routeInfos","routeInfoWithError","errorRouteName","findRouteStateName","errorSubstateName","findRouteSubstateName","logError","targetName","loading","routeInfoWithSlowLoading","loadingRouteName","loadingSubstateName","pivotHandler","_error","initialMessage","errorArgs","errorThrown","message","stack","_router","substateName","substateNameFull","routeHasBeenDefined","stateName","stateNameFull","localName","routerHasRoute","ownerHasRoute","EmberError","eventWasHandled","handler","actionHandler","actions","apply","defaultHandler","emberRouter","applyIntent","isResolved","serialize","context","appController","APP_CTRL_ROUTER_PROPS","defineProperty","reopenClass","intersectionMatches","a1","a2","nameParts","oldNameParts","shift","join","routerState","promise","catch","qpCache","hasOwnProperty","findLiveRoute","test","outlets","outletName","renderOptions","wasUsed","target","into","alreadyAppended","main","reopen","Evented","computed","ROUTER_EVENT_DEPRECATIONS","_default","_exports","default","RouterState","constructor","emberRouter","router","routerJsState","isActiveIntent","routeName","models","queryParams","state","undefined","Object","keys","length","visibleQueryParams","assign","_prepareQueryParams","shallowEqual","_exports","default","ALL_PERIODS_REGEX","extractRouteArgs","args","slice","possibleQueryParams","length","queryParams","Object","prototype","hasOwnProperty","call","pop","routeName","shift","models","getActiveTargetName","router","routeInfos","activeTransition","STATE_SYMBOL","state","name","stashParamNames","targetRouteName","recogHandlers","_routerMicrolib","recognizer","handlersFor","dynamicParent","i","routeInfo","names","route","_stashNames","_calculateCacheValuePrefix","prefix","part","prefixParts","split","currPrefix","currPart","join","indexOf","calculateCacheKey","parts","values","suffixes","cacheValuePrefix","value","partRemovedPrefix","substr","get","replace","normalizeControllerQueryParams","qpMap","accumulateQueryParamDescriptors","_desc","accum","desc","tmp","as","key","singleDesc","scope","assign","resemblesURL","str","prefixRouteNameArg","owner","getOwner","mountPoint","routable","EmberError","shallowEqual","a","b","k","aCount","bCount","deprecateTransitionMethods","frameworkClass","methodName","deprecate","id","for","since","enabled","until","url","TYPE_ORDER","undefined","null","boolean","number","string","array","object","instance","function","class","date","spaceship","a","b","diff","compare","v","w","type1","typeOf","type2","Comparable","detect","constructor","res","localeCompare","vLen","length","wLen","len","Math","min","i","r","getTime","_copy","obj","deep","seen","copies","ret","loc","indexOf","push","Array","isArray","slice","length","Copyable","detect","copy","Date","getTime","EmberObject","assert","key","Object","prototype","hasOwnProperty","call","substring","deprecate","id","until","url","for","since","enabled","FUNCTION_PROTOTYPE_EXTENSIONS","ENV","EXTEND_PROTOTYPES","Function","Object","defineProperties","prototype","property","configurable","enumerable","writable","value","deprecate","id","until","url","for","since","enabled","computed","arguments","observes","observer","on","RSVP","configure","callback","promise","_backburner","schedule","cb","_rsvpErrorQueue","on","onerrorDefault","reason","error","errorFor","overrideDispatch","getDispatchOverride","errorThrown","unwrapErrorThrown","name","assert","message","Error","Object","defineProperty","value","enumerable","_default","_exports","default","isEqual","a","b","Date","getTime","contentFor","proxy","content","get","updateTag","tagForObject","customTagForProxy","key","addMandatorySetter","meta","tagMetaFor","tag","tagFor","_propertyKey","setupMandatorySetter","tags","isObject","push","tagForProperty","combine","_default","_exports","default","Mixin","create","init","_super","arguments","setProxy","setCustomTagFor","willDestroy","set","isTruthy","computed","Boolean","unknownProperty","setUnknownProperty","value","m","isInitializing","isPrototypeMeta","defineProperty","assert","ActionHandler","Mixin","create","mergedProperties","send","actionName","args","isDestroying","isDestroyed","assert","actions","shouldBubble","apply","target","get","arguments","_default","_exports","default","EMPTY_ARRAY","Object","freeze","identityFunction","item","uniqBy","array","key","isArray","assert","ret","A","seen","Set","getter","get","forEach","val","has","add","push","iter","value","valueProvided","arguments","length","Boolean","findIndex","predicate","startAt","len","index","objectAt","find","callback","target","bind","undefined","any","every","cb","indexOf","withNaNCheck","removeAt","replace","insertAt","_obj","obj","HAS_NATIVE_PROXY","possibleProxyContent","PROXY_CONTENT","setInterval","Array","ArrayMixin","detect","type","typeOf","nonEnumerableComputed","property","computed","enumerable","mapBy","map","next","Mixin","create","Enumerable","init","_super","setEmberArray","objectsAt","indexes","idx","set","firstObject","readOnly","lastObject","slice","beginIndex","endIndex","object","lastIndexOf","addArrayObserver","opts","removeArrayObserver","hasArrayObservers","descriptor","configurable","hasListeners","arrayContentWillChange","startIdx","removeAmt","addAmt","arrayContentDidChange","call","getEach","setEach","x","i","filter","reject","apply","filterBy","rejectBy","findBy","isEvery","isAny","reduce","initialValue","invoke","methodName","args","toArray","compact","includes","sortBy","sortKeys","sort","a","b","propA","propB","compareValue","compare","uniq","without","MutableArray","_exports","MutableEnumerable","clear","start","pushObject","pushObjects","objects","popObject","shiftObject","unshiftObject","unshiftObjects","reverseObjects","reverse","setObjects","removeObject","loc","curObject","removeObjects","beginPropertyChanges","endPropertyChanges","addObject","included","addObjects","NativeArray","Observable","deleteCount","items","replaceInNativeArray","ignore","keys","prototype","ENV","EXTEND_PROTOTYPES","arr","_default","default","_default","_exports","default","Mixin","create","compare","containerProxyMixin","__container__","ownerInjection","lookup","fullName","options","destroy","container","join","schedule","_super","factoryFor","_default","_exports","default","Mixin","create","_default","_exports","default","Mixin","create","copy","_default","_exports","default","Mixin","create","_default","_exports","default","Mixin","create","on","name","target","method","addListener","one","trigger","args","sendEvent","off","removeListener","has","hasListeners","_default","_exports","default","Mixin","create","Enumerable","_default","_exports","default","Mixin","create","get","keyName","getProperties","args","concat","set","value","setProperties","hash","beginPropertyChanges","endPropertyChanges","notifyPropertyChange","addObserver","key","target","method","sync","removeObserver","hasObserverFor","hasListeners","getWithDefault","defaultValue","incrementProperty","increment","isNaN","parseFloat","isFinite","assert","decrementProperty","decrement","toggleProperty","cacheFor","meta","peekMeta","valueFor","tap","proxy","promise","setProperties","isFulfilled","isRejected","then","value","isDestroyed","isDestroying","content","reason","_default","_exports","default","Mixin","create","isPending","computed","get","readOnly","isSettled","EmberError","set","key","promiseAlias","catch","finally","name","arguments","_default","_exports","default","Mixin","create","__registry__","resolveRegistration","fullName","options","isValidFullName","assert","resolve","register","registryAlias","unregister","hasRegistration","registeredOption","registerOptions","registeredOptions","registerOptionsForType","registeredOptionsForType","inject","name","arguments","Mixin","_disableDebugSeal","TargetActionSupport","create","target","action","actionContext","actionContextObject","computed","get","value","undefined","context","lookup","triggerAction","opts","getTarget","ret","send","concat","assert","instance","_target","Object","defineProperty","configurable","enumerable","writable","reopen","args","deprecate","id","for","since","enabled","until","url","_wasReopened","prototype","call","seal","_default","_exports","default","ARRAY_OBSERVER_MAPPING","willChange","didChange","customTagForArrayProxy","proxy","key","_revalidate","_arrTag","_lengthTag","tagFor","ArrayProxy","EmberObject","init","arguments","_objectsDirtyIndex","_objects","_lengthDirty","_length","_arrangedContent","_arrangedContentIsUpdating","_arrangedContentTag","_arrangedContentRevision","setCustomTagFor","PROPERTY_DID_CHANGE","willDestroy","_removeArrangedContentArrayObserver","objectAtContent","idx","objectAt","get","replace","amt","objects","assert","replaceContent","arrangedContent","length","i","consumeTag","value","removedCount","added","Array","content","_invalidate","_updateArrangedContentArray","oldLength","newLength","arrayContentWillChange","arrayContentDidChange","_addArrangedContentArrayObserver","isDestroyed","isArray","addArrayObserver","removeArrayObserver","_arrangedContentArrayWillChange","_arrangedContentArrayDidChange","removedCnt","addedCnt","dirtyIndex","validateTag","arrangedContentTag","valueForTag","isObject","combine","tagForProperty","_exports","default","reopen","MutableArray","alias","startIdx","removeAmt","addAmt","reopen","Mixin","prototype","wasApplied","WeakSet","prototypeMixinMap","WeakMap","initCalled","undefined","destroyCalled","Set","ensureDestroyCalled","instance","has","destroy","initialize","obj","properties","m","meta","assert","injectedProperties","factory","getFactoryFor","injection","injections","push","concatenatedProperties","mergedProperties","hasConcatenatedProps","length","hasMergedProps","keyNames","Object","keys","i","keyName","value","isClassicDecorator","toString","indexOf","ActionHandler","detect","possibleDesc","descriptorForProperty","isDescriptor","baseValue","makeArray","concat","assign","isInjectedProperty","DEBUG_INJECTION_FUNCTIONS","_getter","get","implicitInjectionDeprecation","inspect","TrackedDescriptor","descValue","_setter","set","setUnknownProperty","desc","lookupDescriptor","defineProperty","defineSelfDestructingImplicitInjectionGetter","add","init","unsetInitializing","observerEvents","activateObserver","event","sync","sendEvent","message","configurable","enumerable","CoreObject","constructor","owner","OWNER","proto","self","HAS_NATIVE_PROXY","unknownProperty","messageFor","property","String","Proxy","target","receiver","PROXY_CONTENT","isInternalSymbol","Reflect","call","registerDestructor","willDestroy","setInitializing","LEGACY_OWNER","args","applyMixin","isDestroyed","isDestroying","delete","hasToStringExtension","toStringExtension","extension","guidFor","extend","Class","apply","PrototypeMixin","arguments","create","props","extra","getOwner","setFactoryFor","flattenProps","willReopen","p","reopenClass","superclass","detectInstance","metaForProperty","key","_meta","eachComputedProperty","callback","binding","empty","forEachDescriptors","name","descriptor","prototypeMixin","ownerConstructor","c","getPrototypeOf","Function","parent","isClass","isMethod","initProperties","j","k","_onLookup","injectedPropertyAssertion","debugContainerKey","type","split","_lazyInjections","namespace","source","specifier","HAS_NATIVE_SYMBOL","instanceOwner","instanceFactory","INIT_FACTORY","msg","deprecate","id","until","url","for","since","enabled","_default","_exports","default","Namespace","EmberObject","init","addNamespace","toString","name","get","findNamespaces","getName","undefined","guidFor","setName","nameClasses","processNamespace","destroy","removeNamespace","_exports","default","prototype","isNamespace","NAMESPACES","NAMESPACES_BY_ID","processAll","processAllNamespaces","byName","findNamespace","EmberObject","CoreObject","_debugContainerKey","factory","getFactoryFor","undefined","fullName","_exports","default","Observable","apply","prototype","FrameworkObject","INIT_WAS_CALLED","symbol","ASSERT_INIT_WAS_CALLED","DebugFrameworkObject","init","arguments","assert","addListener","ObjectProxy","FrameworkObject","_exports","default","PrototypeMixin","reopen","_ProxyMixin","TYPE_MAP","toString","Object","prototype","typeOf","item","undefined","ret","call","CoreObject","detect","Error","Date","intern","str","obj","key","isObject","value","_uuid","uuid","GUID_PREFIX","OBJECT_GUIDS","WeakMap","NON_OBJECT_GUIDS","Map","GUID_KEY","_exports","Date","now","generateGuid","prefix","guid","set","guidFor","get","undefined","type","HAS_NATIVE_SYMBOL","Symbol","GENERATED_SYMBOLS","isInternalSymbol","possibleSymbol","indexOf","enumerableSymbol","debugName","id","Math","floor","random","symbol","push","makeDictionary","parent","dict","Object","create","getDebugName","getFunctionName","fn","functionName","name","match","Function","prototype","toString","call","replace","getObjectName","className","constructor","length","getPrimitiveName","String","getDebugName$1","HAS_SUPER_PATTERN","fnToString","checkHasSuper","sourceAvailable","func","test","HAS_SUPER_MAP","ROOT","freeze","hasSuper","ObserverListenerMeta","listeners","observers","OBSERVERS_LISTENERS_MAP","createObserverListenerMetaFor","meta","observerListenerMetaFor","setObservers","setListeners","IS_WRAPPED_FUNCTION_SET","_WeakSet","wrap","superFunc","has","_wrap","superWrapper","orig","_super","ret","apply","arguments","add","objectToString","functionToString","isArray","Array","keys","objectKeys","stringify","JSON","LIST_LIMIT","DEPTH_LIMIT","SAFE_KEY","inspect","inspectValue","depth","seen","valueIsArray","inspectArray","inspectObject","inspectKey","s","i","arr","lookupDescriptor","keyName","current","descriptor","getOwnPropertyDescriptor","getPrototypeOf","canInvoke","methodName","tryInvoke","args","deprecate","until","for","since","enabled","url","method","isArray$1","makeArray","NAMES","setName","getName","objectToString$1","isNone","r","k","HAS_NATIVE_PROXY","Proxy","PROXIES","isProxy","setProxy","object","Cache","limit","store","size","misses","hits","purge","clear","EMBER_ARRAYS","setEmberArray","isEmberArray","setupMandatorySetter","teardownMandatorySetter","setWithMandatorySetter","isElementKey","isPositiveInt","isStringInt","num","parseInt","SEEN_TAGS","MANDATORY_SETTERS","propertyIsEnumerable","tag","desc","configurable","writable","setters","hadOwnProperty","hasOwnProperty","defineProperty","enumerable","false","assert","setter","MUTABLE_CELL","_exports","symbol","dictionary","EmberObject","extend","componentFor","name","owner","options","fullName","factoryFor","layoutFor","templateFullName","lookup","mixinObj","send","actionName","args","isDestroying","isDestroyed","assert","action","actions","shouldBubble","apply","target","get","arguments","inspect","SEND_ACTION","sendAction","contexts","deprecate","id","until","url","for","since","enabled","undefined","validateAction","triggerAction","actionContext","component","MUTABLE_CELL","value","toString","_default","_exports","default","Mixin","create","_default","_exports","default","Mixin","create","childViews","nativeDescDecorator","configurable","enumerable","get","getChildViews","appendChild","view","addChildView","EMPTY_ARRAY","Object","freeze","_default","_exports","default","Mixin","create","concatenatedProperties","init","_super","arguments","descriptorForProperty","undefined","Array","isArray","classNameBindings","assert","classNames","Mixin","_disableDebugSeal","KEY_EVENTS","Enter","Escape","TextSupport","create","value","attributeBindings","placeholder","disabled","maxlength","init","_super","arguments","on","_elementValueDidChange","bubbles","interpretKeyEvents","event","method","key","set","element","change","insertNewline","sendAction","cancel","focusIn","focusOut","keyPress","keyUp","keyDown","eventName","view","action","get","MUTABLE_CELL","undefined","SEND_ACTION","message","deprecate","id","until","url","for","since","enabled","triggerAction","actionContext","stopPropagation","Object","defineProperty","configurable","enumerable","writable","reopen","args","_wasReopened","prototype","call","seal","_default","_exports","default","_default","_exports","default","Mixin","create","_transitionTo","state","priorState","_currentState","currentState","_states","_state","exit","enter","K","mixin","concatenatedProperties","nearestOfType","klass","view","parentView","isOfType","Mixin","detect","constructor","nearestWithProperty","property","rerender","_currentState","element","nativeDescDecorator","configurable","enumerable","get","renderer","getElement","appendTo","selector","target","hasDOM","document","querySelector","assert","matches","node","parentNode","nodeType","appendChild","append","body","elementId","willInsertElement","didInsertElement","willClearRender","destroy","_super","arguments","willDestroyElement","didDestroyElement","parentViewDidChange","tagName","init","descriptorForProperty","undefined","guidFor","render","handleEvent","eventName","evt","JQUERY_INTEGRATION","$","sel","jQueryDisabled","deprecate","id","until","url","for","since","enabled","jQuery","_default","_exports","default","create","ActionManager","registeredActions","ROOT_ELEMENT_CLASS","ROOT_ELEMENT_SELECTOR","EVENT_MAP","mouseenter","mouseleave","_default","_exports","default","EmberObject","extend","events","assign","touchstart","touchmove","touchend","touchcancel","keydown","keyup","keypress","mousedown","mouseup","contextmenu","click","dblclick","focusin","focusout","submit","input","change","dragstart","drag","dragenter","dragleave","dragover","drop","dragend","MOUSE_ENTER_LEAVE_MOVE_EVENTS","mousemove","rootElement","init","_super","_eventHandlers","Object","create","_didSetup","setup","addedEvents","_rootElement","owner","getOwner","environment","lookup","isInteractive","assert","_finalEvents","get","undefined","set","rootElementSelector","JQUERY_INTEGRATION","jQueryDisabled","document","querySelector","classList","contains","tagName","target","parentNode","nodeType","add","jQuery","is","selector","closest","length","find","addClass","TypeError","event","prototype","hasOwnProperty","call","setupHandler","eventName","viewHandler","view","getElementView","result","handleEvent","actionHandler","actionId","getAttribute","actions","ActionManager","registeredActions","attributes","attributeCount","i","attr","item","attrName","name","indexOf","concat","value","index","action","handler","mappedEventType","origEventType","createFakeEvent","eventType","fakeEvent","createEvent","initMouseEvent","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","defineProperty","enumerable","handleMappedEvent","related","hasAttribute","addEventListener","preventDefault","stopPropagation","cancelBubble","on","evt","addJQueryEventDeprecation","currentTarget","handledActions","lastIndexOf","push","destroy","removeEventListener","off","remove","arguments","toString","jQuery","jQueryDisabled","_exports","JQUERY_INTEGRATION","ENV","_JQUERY_INTEGRATION","hasDOM","context","imports","event","addProp","forEach","eventName","fixHooks","props","undefined","addJQueryEventDeprecation","jqEvent","JQUERY_INTEGRATION","HAS_NATIVE_PROXY","boundFunctions","Map","Proxy","get","target","name","EmberENV","_JQUERY_INTEGRATION","global","deprecate","id","until","url","for","since","enabled","originalEvent","has","set","bind","isSimpleClick","event","modifier","shiftKey","metaKey","altKey","ctrlKey","secondaryClick","which","constructStyleDeprecationMessage","affectedStyle","getRootViews","owner","registry","lookup","rootViews","Object","keys","forEach","id","view","parentView","push","getViewId","tagName","elementId","guidFor","ELEMENT_VIEW","WeakMap","VIEW_ELEMENT","getElementView","element","get","getViewElement","setElementView","set","setViewElement","clearElementView","delete","clearViewElement","CHILD_VIEW_IDS","getChildViews","getOwner","collectChildViews","initChildViews","childViews","Set","addChildView","parent","child","undefined","add","views","isDestroying","isDestroyed","getViewBounds","renderer","getBounds","getViewRange","bounds","range","document","createRange","setStartBefore","firstNode","setEndAfter","lastNode","getViewClientRects","getClientRects","getViewBoundingClientRect","getBoundingClientRect","elMatches","_exports","Element","prototype","matches","el","selector","assert","call","contains","a","b","current","parentNode","CoreView","FrameworkObject","extend","Evented","ActionHandler","isView","_states","states","init","_super","arguments","_state","_currentState","preRender","renderer","inject","parentView","instrumentDetails","hash","object","toString","containerKey","_debugContainerKey","view","trigger","name","args","method","apply","has","reopenClass","isViewFactory","_default","_exports","default","states","Object","freeze","preRender","inDOM","hasElement","destroying","_default","_exports","default","_default","appendChild","EmberError","handleEvent","rerender","destroy","_default2","_exports","default","Object","freeze","destroying","assign","_default","appendChild","EmberError","rerender","_default2","_exports","default","Object","freeze","hasElement","assign","_default","rerender","view","renderer","destroy","remove","handleEvent","eventName","event","has","flaggedInstrument","join","trigger","_default2","_exports","default","Object","freeze","inDOM","assign","hasElement","enter","view","renderer","register","elementId","teardownMandatorySetter","Object","defineProperty","configurable","enumerable","get","set","value","EmberError","_default","_exports","default","freeze","preRender","assign","_default","_default2","_exports","default","Object","freeze","deprecate","message","condition","options","_deprecate","id","until","for","since","enabled","deprecateFunc","func","_deprecateFunc","DefaultResolver","GLOBALS_RESOLVER","EmberObject","create","props","init","deprecate","until","id","url","for","since","enabled","_parseNameCache","dictionary","normalize","fullName","type","name","split","length","assert","result","replace","m","charAt","toUpperCase","resolve","parsedName","parseName","resolveMethodName","resolved","resolveOther","root","LOG_RESOLVER","_logLookup","VALIDATED_TYPES","route","component","view","service","validationAttributes","factoryFlag","expectedType","processAllNamespaces","Boolean","getName","_parseName","fullNameWithoutType","namespace","get","lastSlashIndex","lastIndexOf","dirname","slice","parts","namespaceName","capitalize","join","findNamespace","classify","TypeError","lookupDescription","description","makeToString","factory","useRouterNaming","resolveTemplate","templateName","getTemplate","decamelize","resolveView","resolveController","resolveRoute","resolveModel","className","resolveHelper","resolveMain","knownForType","suffix","typeRegexp","RegExp","known","knownKeys","Object","keys","index","test","containerName","translateToContainerFullname","namePrefix","dasherizedName","dasherize","prototype","found","symbol","padding","Array","info","_default","_exports","default","ApplicationInstance","EngineInstance","extend","application","customEvents","rootElement","init","_super","arguments","_watchInstance","register","instantiate","_bootSync","options","_booted","BootOptions","setupRegistry","location","set","router","runInstanceInitializers","isInteractive","setupEventDispatcher","constructor","__registry__","computed","lookup","readOnly","didCreateRootView","view","appendTo","startRouting","setupRouter","handleURL","url","dispatcher","applicationCustomEvents","get","instanceCustomEvents","assign","setup","getURL","visit","bootOptions","__container__","handleTransitionResolve","shouldRender","renderSettled","then","handleTransitionReject","error","name","_routerMicrolib","activeTransition","Error","message","setURL","willDestroy","_unwatchInstance","reopenClass","registry","toEnvironment","document","jQuery","environment","hasDOM","_renderMode","isBrowser","undefined","Boolean","env","_default","_exports","default","librariesRegistered","Application","Engine","extend","rootElement","_document","hasDOM","window","document","eventDispatcher","customEvents","autoboot","_globalsMode","_applicationInstances","init","_super","arguments","$","jQuery","registerLibraries","ENV","LOG_VERSION","libraries","logVersions","_readinessDeferrals","_booted","Set","Boolean","_prepareForGlobalsMode","waitForDOMReady","buildInstance","options","isDestroyed","assert","isDestroying","base","application","ApplicationInstance","create","_watchInstance","instance","add","_unwatchInstance","delete","Router","_buildDeprecatedInstance","__deprecatedInstance__","__container__","readyState","schedule","callback","removeEventListener","run","addEventListener","domReady","_bootSync","deferReadiness","advanceReadiness","once","didBecomeReady","boot","_bootPromise","_","defer","_bootResolver","RSVP","promise","runInitializers","runLoadHooks","error","reject","reset","handleReset","join","ready","startRouting","resolve","willDestroy","_loaded","undefined","size","forEach","i","destroy","clear","visit","url","then","catch","reopenClass","buildRegistry","registry","commonSetupRegistry","setupApplicationRegistry","register","dictionary","Route","EventDispatcher","AutoLocation","HashLocation","HistoryLocation","NoneLocation","P","BucketCache","RouterService","JQUERY_INTEGRATION","jQueryDisabled","registerCoreLibrary","jquery","_default","_exports","default","loadHooks","ENV","EMBER_LOAD_HOOKS","loaded","_loaded","_exports","onLoad","name","callback","object","push","runLoadHooks","window","CustomEvent","event","detail","dispatchEvent","forEach","DEFAULT_FEATURES","_exports","EMBER_LIBRARIES_ISREGISTERED","EMBER_IMPROVED_INSTRUMENTATION","EMBER_NAMED_BLOCKS","EMBER_GLIMMER_HELPER_MANAGER","EMBER_GLIMMER_INVOKE_HELPER","EMBER_MODERNIZED_BUILT_IN_COMPONENTS","EMBER_STRICT_MODE","EMBER_DYNAMIC_HELPERS_AND_MODIFIERS","FEATURES","assign","ENV","isEnabled","feature","value","ENABLE_OPTIONAL_FEATURES","featureValue","deprecate","id","until","for","since","enabled","url","deprecate","id","until","for","since","enabled","url","deprecate","id","until","for","since","enabled","url","Controller","FrameworkObject","extend","ControllerMixin","inject","metalInject","arguments","_default","_exports","default","MODEL","symbol","_default","_exports","default","Mixin","create","ActionHandler","isController","target","store","model","computed","get","set","key","value","noop","assert","_exports","info","warn","debug","deprecate","debugSeal","debugFreeze","runInDebug","setDebugFunction","getDebugFunction","deprecateFunc","arguments","length","type","callback","desc","test","EmberError","message","console","log","args","options","func","apply","obj","Object","seal","isFrozen","freeze","_deprecate","_warn","_warnIfUsingStrippedFeatureFlags","isTesting","window","isFirefox","isChrome","addEventListener","document","documentElement","dataset","emberExtension","downloadURL","captureRenderTree","app","renderer","expect","lookup","debugRenderTree","capture","registerHandler","_exports","missingOptionsDeprecation","missingOptionsIdDeprecation","missingOptionsUntilDeprecation","missingOptionsForDeprecation","missingOptionsSinceDeprecation","deprecate","FOR_MISSING_DEPRECATIONS","Set","SINCE_MISSING_DEPRECATIONS","handler","genericRegisterHandler","formatMessage","_message","options","message","id","url","logDeprecationToConsole","updatedMessage","console","warn","captureErrorForStack","Error","stack","__fail__","fail","e","logDeprecationStackTrace","next","ENV","LOG_STACKTRACE_ON_DEPRECATION","stackStr","error","replace","split","shift","slice","join","raiseOnDeprecation","RAISE_ON_DEPRECATION","test","assert","Boolean","until","for","has","add","since","enabled","invoke","_default","default","HANDLERS","_exports","registerHandler","invoke","type","callback","nextHandler","message","options","test","handlerForType","testing","isTesting","setTesting","value","Boolean","registerHandler","_exports","warn","missingOptionsDeprecation","missingOptionsIdDeprecation","handler","genericRegisterHandler","logWarning","message","console","test","options","arguments","length","assert","Boolean","id","invoke","_default","default","SEND_ACTION","_exports","EMBER_EXTEND_PROTOTYPES","LOGGER","MERGE","ROUTER_EVENTS","COMPONENT_MANAGER_STRING_LOOKUP","JQUERY_INTEGRATION","ALIAS_METHOD","APP_CTRL_ROUTER_PROPS","FUNCTION_PROTOTYPE_EXTENSIONS","MOUSE_ENTER_LEAVE_MOVE_EVENTS","EMBER_COMPONENT_IS_VISIBLE","PARTIALS","GLOBALS_RESOLVER","registerDestructor","destroyable","destructor","_registerDestructor","unregisterDestructor","_unregisterDestructor","props","obj","properties","key","push","Engine","Namespace","extend","RegistryProxyMixin","init","_super","arguments","buildRegistry","_initializersRan","ensureInitializers","runInitializers","buildInstance","options","base","EngineInstance","create","registry","__registry__","constructor","initializer","instanceInitializer","_runInitializer","name","Boolean","assert","initialize","runInstanceInitializers","instance","bucketName","cb","initializersByName","get","initializers","graph","DAG","i","length","add","before","after","topsort","reopenClass","Object","instanceInitializers","buildInitializerMethod","namespace","Registry","resolver","resolverFor","set","register","instantiate","commonSetupRegistry","setupEngineRegistry","Resolver","ResolverClass","DefaultResolver","humanName","superclass","undefined","attrs","canInvoke","optionsForType","singleton","Controller","injection","RoutingService","ContainerDebugAdapter","ComponentLookup","_default","_exports","default","EngineInstance","EmberObject","extend","RegistryProxyMixin","ContainerProxyMixin","base","init","_super","arguments","guidFor","application","registry","__registry__","Registry","fallback","__container__","container","owner","_booted","boot","options","_bootPromise","RSVP","Promise","resolve","_bootSync","getEngineParent","assert","cloneParentDependencies","setupRegistry","runInstanceInitializers","lookup","constructor","unregister","fullName","reset","buildChildEngineInstance","name","Engine","EmberError","engineInstance","buildInstance","setEngineParent","parent","registrations","forEach","key","register","resolveRegistration","env","instantiate","singletons","P","isInteractive","push","inject","reopenClass","injection","_default","_exports","default","ENGINE_PARENT","symbol","getEngineParent","engine","setEngineParent","parent","_default","_exports","default","Error","subscribers","_exports","cache","populateListeners","name","listeners","subscriber","i","length","regex","test","push","object","time","perf","window","performance","fn","now","mozNow","webkitNow","msNow","oNow","bind","Date","isCallback","value","instrument","p1","p2","p3","_payload","callback","binding","arguments","call","payload","finalizer","_instrumentStart","NOOP","withFinalizer","flaggedInstrument","_name","e","exception","payloadFunc","payloadArg","STRUCTURED_PROFILE","ENV","timeName","console","beforeValues","timestamp","listener","before","_instrumentEnd","after","timeEnd","subscribe","pattern","paths","split","path","regexes","join","RegExp","unsubscribe","index","splice","reset","wrapGetterSetter","target","key","desc","get","originalGet","descriptorForProperty","undefined","assert","propertyTag","tagFor","ret","tag","track","call","updateTag","consumeTag","dependentKeyCompat","isElementDescriptor","decorator","_desc","_meta","isClassicDecorator","set","setClassicDecorator","defaultHandler","dotKey","importKey","module","handler","onComputedDotAccess","defineDeprecatedComputedFunc","key","func","Object","defineProperty","computed","get","message","deprecate","id","until","for","since","enabled","alias","and","bool","collect","deprecatingAlias","empty","equal","filterBy","filter","gte","gt","intersect","lte","lt","mapBy","map","match","max","min","none","notEmpty","not","oneWay","or","readOnly","setDiff","sort","sum","union","uniqBy","uniq","reads","BINDINGS_MAP","WeakMap","setupAction","target","actionFn","constructor","undefined","proto","prototype","hasOwnProperty","call","parentActions","actions","assign","bindings","Map","set","fn","bind","action","desc","isElementDescriptor","decorator","meta","isClassicDecorator","assert","setClassicDecorator","value","expandPropertiesToArray","predicateName","properties","expandedProperties","extractProperty","entry","push","i","length","property","indexOf","assert","expandProperties","generateComputedWithPredicate","name","predicate","isElementDescriptor","dependentKeys","computedFunc","computed","lastIdx","value","get","empty","dependentKey","Array","prototype","slice","call","arguments","isEmpty","notEmpty","none","isNone","not","bool","Boolean","match","regexp","test","equal","gt","gte","lt","lte","and","_exports","or","oneWay","alias","readOnly","deprecatingAlias","options","key","deprecate","set","reduceMacro","dependentKey","callback","initialValue","name","test","assert","computed","arr","get","reduce","readOnly","arrayMacro","additionalDependentKeys","propertyName","replace","value","isArray","emberA","call","multiArrayMacro","_dependentKeys","every","dependentKeys","map","key","sum","isElementDescriptor","Array","prototype","slice","arguments","item","max","Math","Infinity","min","undefined","mapBy","propertyKey","filter","filterBy","length","uniq","args","seen","Set","forEach","has","add","push","uniqBy","list","uniqByArray","union","_exports","intersect","arrays","array","results","pop","candidate","i","found","j","setDiff","setAProperty","setBProperty","setA","setB","x","indexOf","collect","res","val","sort","itemsKey","sortDefinition","argumentsValid","customSort","propertySort","comparator","y","sortPropertiesKey","cp","autoComputed","sortProperties","s","itemsKeyIsAtThis","normalizedSortProperties","normalizeSortProperties","items","sortByNormalizedSortProperties","p","prop","direction","split","itemA","itemB","result","compare","merge","_exports","MERGE","deprecatedMerge","undefined","hasPropertyAccessors","assign","target","i","arguments","length","arg","updates","Object","keys","prop","_assign","_default","_exports","default","merge","original","updates","deprecate","id","until","url","for","since","enabled","props","Object","keys","prop","i","length","_default","_exports","default","deprecate","id","until","for","since","enabled","url","currentRunLoop","_getCurrentRunLoop","onBegin","current","onEnd","next","flushAsyncObservers","flush","queueName","_rsvpErrorQueue","_exports","Math","random","Date","now","replace","_queues","_backburner","Backburner","defaultQueue","onErrorTarget","onErrorMethod","run","arguments","join","bind","curried","methodOrTarget","methodOrArg","length","type","assert","args","concat","begin","end","schedule","_hasScheduledTimers","hasTimers","_cancelTimers","cancelTimers","later","once","unshift","scheduleOnce","push","cancel","timer","debounce","throttle","_deprecatedGlobalGetCurrentRunLoop","defaultHandler","dotKey","importKey","module","handler","onRunloopDotAccess","defineDeprecatedRunloopFunc","key","func","Object","defineProperty","get","message","deprecate","id","until","for","since","enabled","enumerable","backburner","hasScheduledTimers","inject","metalInject","arguments","Service","FrameworkObject","extend","reopenClass","isServiceFactory","_default","_exports","default","STRING_DASHERIZE_REGEXP","STRING_DASHERIZE_CACHE","Cache","key","decamelize","replace","STRING_CAMELIZE_REGEXP_1","STRING_CAMELIZE_REGEXP_2","CAMELIZE_CACHE","_match","_separator","chr","toUpperCase","match","toLowerCase","STRING_CLASSIFY_REGEXP_1","STRING_CLASSIFY_REGEXP_2","STRING_CLASSIFY_REGEXP_3","CLASSIFY_CACHE","str","replace1","replace2","initialChar","parts","split","i","length","join","STRING_UNDERSCORE_REGEXP_1","STRING_UNDERSCORE_REGEXP_2","UNDERSCORE_CACHE","STRING_CAPITALIZE_REGEXP","CAPITALIZE_CACHE","STRING_DECAMELIZE_REGEXP","DECAMELIZE_CACHE","_fmt","formats","idx","_s","argIndex","parseInt","r","undefined","String","loc","deprecate","id","until","for","url","since","enabled","Array","isArray","arguments","prototype","slice","call","getString","w","get","dasherize","camelize","classify","underscore","capitalize","deprecateImportFromString","name","message","htmlSafe","internalHtmlSafe","isHTMLSafe","internalIsHtmlSafe","ENV","EXTEND_PROTOTYPES","deprecateEmberStringPrototypeExtension","fn","Object","defineProperties","configurable","enumerable","writeable","value","args","STRINGS","setStrings","strings","getStrings","getString","name","precompileTemplate","_exports","Error","Test","Adapter","registerAsyncHelper","registerHelper","registerWaiter","unregisterHelper","unregisterWaiter","has","Test","require","_exports","testingNotAvailableMessage","Error","DESTROYABLE_META","WeakMap","push","collection","newItem","Array","isArray","iterate","fn","i","length","remove","item","message","collectionIsItem","collectionContainsItem","indexOf","Error","String","index","splice","getDestroyableMeta","destroyable","meta","get","undefined","parents","children","eagerDestructors","destructors","state","source","set","associateDestroyableChild","parent","child","isDestroying","parentMeta","childMeta","registerDestructor","destructor","eager","destructorsKey","unregisterDestructor","destroy","scheduleDestroy","scheduleDestroyed","removeChildFromParent","destroyChildren","_hasDestroyableChildren","isDestroyed","enableDestroyableTracking","assertDestroyablesDestroyed","isTesting","_exports","Map","map","undestroyed","forEach","objectsToString","debugToString","join","error","destroyables","InstructionEncoderImpl","constructor","buffer","size","encode","type","machine","Error","first","arguments","length","push","i","op","patch","position","target","_exports","DEBUG","_exports","CI","scheduleRevalidate","_exports","scheduleDestroy","scheduleDestroyed","toIterator","toBool","getProp","setProp","getPath","setPath","warnIfStyleNotTrusted","assert","deprecate","globalContextWasSet","setGlobalContext","context","Error","assertGlobalContextWasSet","testOverrideGlobalContext","originalGlobalContext","undefined","_default","default","Storage","constructor","array","next","add","element","slot","length","prev","deref","pointer","drop","_exports","Stack","vec","clone","slice","sliceFrom","start","end","copy","from","to","writeRaw","pos","value","getRaw","reset","len","COMPONENT_MANAGERS","WeakMap","MODIFIER_MANAGERS","HELPER_MANAGERS","getPrototypeOf","Object","setManager","map","manager","obj","Error","debugToString","has","set","getManager","pointer","undefined","get","setInternalModifierManager","definition","getInternalModifierManager","isOptional","setInternalHelperManager","getInternalHelperManager","setInternalComponentManager","factory","getInternalComponentManager","hasInternalComponentManager","hasInternalHelperManager","hasInternalModifierManager","FROM_CAPABILITIES","_WeakSet","buildCapabilities","capabilities","add","freeze","capabilityFlagsFrom","dynamicLayout","dynamicTag","prepareArgs","createArgs","attributeHook","elementHook","dynamicScope","createCaller","updateHook","createInstance","wrapped","willDestroy","hasSubOwner","managerHasCapability","_manager","capability","hasCapability","CUSTOM_TAG_FOR","getCustomTagFor","setCustomTagFor","customTagFn","convertToInt","prop","num","Number","isNaN","tagForNamedArg","namedArgs","key","track","valueForRef","tagForPositionalArg","positionalArgs","forEach","parsed","length","argsProxyFor","NamedArgsProxy","constructor","named","_target","ref","ownKeys","keys","isExtensible","getOwnPropertyDescriptor","String","enumerable","configurable","PositionalArgsProxy","positional","target","HAS_NATIVE_PROXY","capturedArgs","type","getNamedTag","_obj","getPositionalTag","namedHandler","positionalHandler","namedTarget","create","positionalTarget","setHandler","forInDebugHandler","namedProxy","Proxy","positionalProxy","_type","name","defineProperty","index","CAPABILITIES","componentCapabilities","managerAPI","options","Boolean","asyncLifeCycleCallbacks","asyncLifecycleCallbacks","destructor","hasAsyncLifeCycleCallbacks","delegate","hasUpdateHook","hasAsyncUpdateHook","hasDestructors","CustomComponentManager","componentManagerDelegates","getDelegateFor","owner","JSON","stringify","vmArgs","args","capture","component","deprecateMutationsInTrackingTransaction","createComponent","CustomComponentState","getDebugName","toString","update","bucket","updateComponent","didCreate","didCreateComponent","didUpdate","didUpdateComponent","didRenderLayout","didUpdateLayout","getSelf","createConstRef","getContext","getDestroyable","registerDestructor","destroyComponent","getCapabilities","_exports","modifierCapabilities","optionalFeatures","disableAutoTracking","useArgsProxy","passFactoryToCreate","CustomModifierManager","element","argsProxy","reifyArgs","instance","factoryOrDefinition","params","assign","setOwner","class","createModifier","tag","createUpdatableTag","state","modifier","debugName","destroyModifier","getTag","install","untrack","installModifier","updateModifier","reifiedNamed","dict","reifiedPositional","helperCapabilities","hasValue","hasScheduledEffect","hasDestroyable","CustomHelperManager","helperManagerDelegates","undefinedDelegate","getDelegateForOwner","getHelper","_a","_b","createHelper","cache","createComputeRef","getValue","associateDestroyableChild","call","UNDEFINED_REFERENCE","setComponentManager","setModifierManager","setHelperManager","TEMPLATES","getPrototypeOf$1","setComponentTemplate","getComponentTemplate","template","NodeDOMTreeConstruction","DOMTreeConstruction","constructor","doc","createHTMLDocument","setupUselessElement","insertHTMLBefore","parent","reference","html","raw","document","createRawHTMLSection","insertBefore","ConcreteBounds","createElement","tag","setAttribute","element","name","value","_exports","TEXT_NODE","NEEDS_EXTRA_CLOSE","WeakMap","currentNode","cursor","nextSibling","lastChild","previousSibling","SerializeBuilder","NewElementBuilder","arguments","serializeBlockDepth","__openBlock","tagName","depth","__appendComment","__closeBlock","__appendHTML","first","openIndex","indexOf","tr","slice","last","__appendText","string","current","nodeType","closeElement","has","delete","openElement","set","constructing","flushElement","pushRemoteElement","cursorId","dom","script","serializeBuilder","env","forInitialRender","NamedBlocksImpl","constructor","blocks","names","Object","keys","get","name","has","with","block","assign","hasAny","EMPTY_BLOCKS","_exports","namedBlocks","out","dict","values","i","length","labelOperand","value","type","evalSymbolsOperand","undefined","isStrictMode","blockOperand","stdlibOperand","nonSmallIntOperand","symbolTableOperand","layoutOperand","isGetLikeTuple","opcode","Array","isArray","makeResolutionTypeVerifier","typeToVerify","isGetFreeComponent","isGetFreeModifier","isGetFreeHelper","isGetFreeComponentOrHelper","isGetFreeOptionalComponentOrHelper","assertResolverInvariants","meta","upvars","Error","owner","resolveComponent","resolver","constants","expr","then","scopeValues","definition","component","lookupComponent","resolvedComponent","resolveHelper","helper","lookupBuiltInHelper","lookupHelper","resolveModifier","modifier","lookupBuiltInModifier","lookupModifier","resolveComponentOrHelper","ifComponent","ifHelper","debugToString","resolveOptionalHelper","ifFallback","moduleName","resolveOptionalComponentOrHelper","ifValue","Compilers","funcs","add","func","push","compile","op","sexp","index","EXPRESSIONS","parts","part","expression","positional","named","handle","Call","CallDynamic","expr$$1","Curry","sym","path","withPath","_path","_handle","freeVar","propertyPath","join","deprecate","id","_name","assert","arg","PushPrimitiveReference","condition","truthy","falsy","SimpleArgs","$v0","PushPrimitive","CompileArgs","atNames","blockNames","PushYieldableBlock","count","CompilePositional","flags","EMPTY_ARRAY","val","EMPTY_STRING_ARRAY","layout","_a","_b","symbols","asPartial","evalSymbols","scope","call","size","hasEval","primitive","p","isSmallInt","encodeImmediate","append","$fp","DynamicScope","YieldBlock","to","PushSymbolTable","PushCompilable","InvokeStaticBlock","InvokeStaticBlockWithStack","callerCount","parameters","calleeCount","Math","min","_block","SwitchCases","bootstrap","callback","clauses","when","match","label","clause","slice","Replayable","args","body","ReplayableIf","ifTrue","ifFalse","ATTRS_BLOCK","InvokeComponent","_elementBlock","_blocks","compilable","capabilities","elementBlock","InvokeStaticComponent","InvokeNonStaticComponent","InvokeDynamicComponent","curried","$sp","symbolTable","bailOut","hasCapability","$s0","blockSymbols","argSymbols","argNames","symbol","indexOf","namedBlocks$$1","bindableBlocks","bindableAtNames","invokePreparedComponent","WrappedComponent","attrsBlockNumber","WithSavedRegister","$s1","hasBlock","populateLayout","InvokeBareComponent","register","StdLib","main","trustingGuardedAppend","cautiousGuardedAppend","trustingNonDynamicAppend","cautiousNonDynamicAppend","trusting-append","cautious-append","trusting-non-dynamic-append","cautious-non-dynamic-append","getAppend","trusting","programCompilationContext","artifacts","CompileTimeCompilationContextImpl","templateCompilationContext","program","encoder","EncoderImpl","heap","stdlib","debugCompiler","STATEMENTS","INFLATE_ATTR_TABLE","INFLATE_TAG_TABLE","inflateTagName","tagName","inflateAttrName","attrName","namespace","tag","evalInfo","params","String","hashToArgs","guid","destination","insertBefore","inverse","key","expressions","hash","map","PLACEHOLDER_HANDLE","CompilableTemplateImpl","statements","meta$$1","compiled","context","maybeCompile","result","compileStatements","syntaxContext","sCompiler","pushOp","encodeOp","commit","compilableBlock","containing","Labels","labels","targets","target","at","patch","address","setbyaddr","isBuilderOpcode","operands","startLabels","stopLabels","valueIndex","upvarIndex","freeName","labelsStack","Stack","InstructionEncoderImpl","errors","malloc","error","encode","finishMalloc","machine","isMachineOp","first","operand","encodeHandle","array","currentLabels","offset","current","pop","StdAppend","nonDynamicAppend","compileStd","mainHandle","build","trustingGuardedNonDynamicAppend","cautiousGuardedNonDynamicAppend","trustingGuardedDynamicAppend","cautiousGuardedDynamicAppend","STDLIB_META","DEFAULT_CAPABILITIES","dynamicLayout","dynamicTag","prepareArgs","createArgs","attributeHook","elementHook","dynamicScope","createCaller","updateHook","createInstance","wrapped","willDestroy","hasSubOwner","MINIMAL_CAPABILITIES","PartialDefinitionImpl","template","getPartial","partial","unwrapTemplate","WrappedBuilder","attrsBlockIndex","syntax","m","clientId","templateCacheCounters","cacheHit","cacheMiss","templateFactory","templateId","parsedBlock","ownerlessTemplate","templateCache","WeakMap","factory","JSON","parse","TemplateImpl","set","__id","__meta","parsedLayout","wrappedLayout","referrer","asLayout","asWrappedLayout","OWNER","_exports","symbol","getOwner","object","setOwner","owner","DEFAULT_TEMPLATE_BLOCK","DEFAULT_TEMPLATE","id","moduleName","block","JSON","stringify","scope","isStrictMode","WELL_KNOWN_EMPTY_ARRAY","Object","freeze","STARTER_CONSTANTS","constants","WELL_KNOWN_EMPTY_ARRAY_POSITION","indexOf","CompileTimeConstantImpl","constructor","values","slice","indexMap","Map","map","value","index","get","undefined","push","set","array","length","handles","Array","i","toPool","_exports","RuntimeConstantsImpl","pool","getValue","handle","getArray","reified","n","ConstantsImpl","arguments","reifiedArrs","defaultTemplate","templateFactory","helperDefinitionCount","modifierDefinitionCount","componentDefinitionCount","helperDefinitionCache","WeakMap","modifierDefinitionCache","componentDefinitionCache","helper","definitionState","_resolvedName","isOptional","managerOrHelper","getInternalHelperManager","getHelper","modifier","resolvedName","manager","getInternalModifierManager","definition","state","component","owner","_a","getInternalComponentManager","capabilities","capabilityFlagsFrom","getCapabilities","templateFactory$$1","getComponentTemplate","compilable","template","managerHasCapability","unwrapTemplate","asWrappedLayout","asLayout","resolvedComponent","resolvedDefinition","names","RuntimeOpImpl","heap","offset","size","rawType","getbyaddr","isMachine","type","op1","op2","op3","PAGE_SIZE","RuntimeHeapImpl","serializedHeap","buffer","table","Int32Array","getaddr","address","sizeof","hydrateHeap","HeapImpl","handleTable","handleState","item","sizeCheck","newHeap","setbyaddr","malloc","finishMalloc","free","compact","compactedSize","j","capture","RuntimeProgramImpl","constants$$1","_opcode","opcode","arr","start","end","ret","artifacts","REFERENCE","_exports","symbol","ReferenceImpl","constructor","type","tag","lastRevision","INITIAL","children","compute","update","createPrimitiveRef","value","ref","CONSTANT_TAG","lastValue","debugLabel","String","UNDEFINED_REFERENCE","undefined","NULL_REFERENCE","TRUE_REFERENCE","FALSE_REFERENCE","createConstRef","createUnboundRef","createComputeRef","createReadOnlyRef","isUpdatableRef","valueForRef","isInvokableRef","createInvokableRef","inner","updateRef","isConstRef","_ref","validateTag","track","valueForTag","consumeTag","childRefFor","_parentRef","path","parentRef","child","Map","get","parent","isDict","getProp","val","setProp","set","childRefFromParts","root","parts","reference","i","length","createDebugAliasRef","NULL_IDENTITY","KEY","_","index","INDEX","IDENTITY","item","keyForPath","Error","uniqueKeyFor","getPath","makeKeyFor","key","WeakMapWithPrimitives","weakMap","_weakMap","WeakMap","primitiveMap","_primitiveMap","isObject","IDENTITIES","identityForNthOccurence","count","identities","identity","keyFor","seen","memo","createIteratorRef","listRef","iterable","Array","isArray","ArrayIterator","maybeIterator","toIterator","EMPTY_ARRAY","IteratorWrapper","createIteratorItemRef","_value","createTag","newValue","dirtyTag","isEmpty","next","nextValue","iterator","pos","current","kind","DynamicScopeImpl","constructor","bucket","assign","get","key","set","reference","child","_exports","PartialScopeImpl","slots","owner","callerScope","evalScope","partialMap","root","self","size","refs","Array","i","UNDEFINED_REFERENCE","init","sized","getSelf","getSymbol","symbol$$1","getBlock","block","getEvalScope","getPartialMap","bind","value","bindSelf","bindSymbol","bindBlock","bindEvalScope","map","bindPartialMap","bindCallerScope","scope","getCallerScope","slice","index","length","RangeError","INNER_VM","symbol","DESTROYABLE_STACK","STACKS","REGISTERS","HEAP","CONSTANTS","ARGS","PC","CursorImpl","element","nextSibling","ConcreteBounds","parentNode","first","last","parentElement","firstNode","lastNode","SingleNodeBounds","node","move","bounds","parent","current","next","insertBefore","clear","removeChild","normalizeStringValue","isEmpty","String","shouldCoerce","isString","undefined","toString","isSafeString","toHTML","isNode","nodeType","isFragment","normalizeProperty","slotName","type","normalized","lower","toLowerCase","preferAttr","tagName","ATTR_OVERRIDES","INPUT","form","autocorrect","list","SELECT","OPTION","TEXTAREA","LABEL","FIELDSET","LEGEND","OBJECT","OUTPUT","BUTTON","propName","tag","toUpperCase","badProtocols","badTags","badTagsForDataURI","badAttributes","badAttributesForDataURI","has","array","item","indexOf","checkURI","attribute","checkDataURI","requiresSanitization","protocolForUrl","URL","parse","nodeURL","url","protocol","_url","error","parsingNode","document","createElement","href","sanitizeAttributeValue","str","dynamicAttribute","attr","namespace","isTrusting","namespaceURI","name","DebugStyleAttributeManager","buildDynamicAttribute","buildDynamicProperty","SafeDynamicAttribute","SimpleDynamicAttribute","SafeDynamicProperty","isUserInputValue","InputValueDynamicAttribute","isOptionSelected","OptionSelectedDynamicAttribute","DefaultDynamicProperty","DynamicAttribute","dom","_env","normalizedValue","normalizeValue","__setAttribute","update","removeAttribute","setAttribute","normalizedName","__setProperty","removeAttributeNS","env","sanitized","input","currentValue","option","selected","warnIfStyleNotTrusted","_a","First","Last","CURSOR_STACK","NewElementBuilder","constructing","operations","Stack","modifierStack","blockStack","pushElement","getAppendOperations","updateOperations","getDOM","forInitialRender","cursor","initialize","resume","reset","stack","pushLiveBlock","pushSimpleBlock","debugBlocks","toArray","hasBlocks","popElement","pop","SimpleLiveBlock","pushUpdatableBlock","UpdatableBlockImpl","pushBlockList","LiveBlockList","isRemote","didAppendBounds","__openBlock","push","popBlock","finalize","__closeBlock","openElement","__openElement","flushElement","modifiers","__flushElement","pushModifiers","didOpenElement","closeElement","willCloseElement","popModifiers","pushRemoteElement","guid","__pushRemoteElement","_guid","lastChild","RemoteLiveBlock","popRemoteElement","didAppendNode","appendText","string","__appendText","text","createTextNode","__appendNode","__appendFragment","fragment","firstChild","ret","__appendComment","__appendHTML","html","insertHTMLBefore","appendDynamicHTML","trustedContent","appendDynamicText","untrustedContent","appendDynamicFragment","appendDynamicNode","appendComment","createComment","setStaticAttribute","setDynamicAttribute","trusting","nesting","registerDestructor","destroy","boundList","head","tail","_element","_node","_bounds","_stack","clientBuilder","AppendOpcodes","evaluateOpcode","fillNulls","add","evaluate","kind","syscall","debugBefore","vm","opcode","params","opName","sp","pc","fetchValue","$pc","isMachine","state","debugAfter","pre","operation","APPEND_OPCODES","createConcatRef","partsRefs","createComputeRef","parts","valueForRef","castToString","join","TYPE","INNER","OWNER","ARGS$1","RESOLVED","CURRIED_VALUES","_WeakSet","isCurriedValue","isCurriedType","CurriedValue","inner","args","resolved","resolveCurriedValue","curriedValue","currentWrapper","positional","named","definition","curriedArgs","curriedNamed","curriedPositional","concat","unshift","curry","spec","createCurryRef","resolver","isStrict","lastValue","curriedDefinition","Error","resolvedDefinition","lookupComponent","isObject","VMArgumentsImpl","PositionalArgumentsImpl","NamedArgumentsImpl","blocks","BlockArgumentsImpl","empty","base","$sp","setup","names","blockNames","positionalCount","atNames","namedCount","namedBase","positionalBase","blocksCount","blocksBase","at","pos","realloc","offset","newBase","copy","capture","EMPTY_POSITIONAL","EMPTY_NAMED","EMPTY_REFERENCES","emptyArray","_references","position","references","prepend","other","additions","_names","EMPTY_STRING_ARRAY","_atNames","toSyntheticName","toAtName","idx","ref","createDebugAliasRef","dict","merge","keys","Object","newNames","toSymbolName","EMPTY_BLOCK_VALUES","internalValues","_symbolNames","internalTag","CONSTANT_TAG","values","table","handle","CapturedBlockArgumentsImpl","symbolNames","createCapturedArgs","reifyNamed$1","reified","reifyPositional$1","reifyArgs","freeze","create","EMPTY_ARGS","op1","op2","_isStrict","capturedArgs","getOwner","runtime","getValue","decodeHandle","loadValue","$v0","helperRef","initialOwner","helperInstanceRef","resolvedDef","helper","resolveHelper","associateDestroyableChild","_hasDestroyableChildren","helperValueRef","associateDestroyable","constants","debugLabel","debugToString","dynamicScope","expr","referenceForSymbol","_name","locals","childRefFor","symbols","pushRootScope","_key","_block","isUndefinedReference","handleOrCompilable","TRUE_REFERENCE","FALSE_REFERENCE","hasBlockParams","parameters","count","out","condition","truthy","falsy","toBool","nameRef","console","log","resolveComponent","resolvedComponent","hasCustomDebugRenderTreeLifecycle","manager","createClassListRef","pushChildScope","popScope","pushDynamicScope","popDynamicScope","createConstRef","primitive","isHandle","decodeImmediate","NULL_REFERENCE","createPrimitiveRef","register","dup","load","fetch","getArray","bindDynamicScope","enter","exit","_table","compile","pushFrame","pushScope","invokingScope","localsCount","call","target","Boolean","isConstRef","goto","updateWith","Assert","comparison","peek","valueRef","throw","AssertFilter","filter","JumpIfNotModifiedOpcode","lastRevision","INITIAL","didModify","alwaysRevalidate","validateTag","consumeTag","valueForTag","BeginTrackFrameOpcode","beginTrackFrame","EndTrackFrameOpcode","endTrackFrame","elements","elementRef","insertBeforeRef","guidRef","$t0","flush","forEach","modifier","scheduleInstallModifier","d","getDestroyable","isInteractive","instance","addModifier","getTag","UpdateModifierOpcode","instanceRef","hostDefinition","curriedOwner","UpdateDynamicModifierOpcode","lastUpdated","scheduleUpdateModifier","CURRENT_TAG","newInstance","destroyable","_value","op3","_namespace","_trusting","UpdateDynamicAttributeOpcode","initialized","updateRef","capabilities","lookup","component","$t1","_blockNames","flags","_state","resolvedValue","managerHasCapability","preparedArgs","prepareArgs","hasDefaultBlock","UpdateComponentOpcode","resolvedName","getDebugName","beginCacheGroup","ComponentElementOperations","attributes","classes","deferred","setDeferredAttr","mergeClasses","allStringClasses","didCreateElement","selfRef","debugRenderTree","moduleName","compilable","getDynamicLayout","nodes","getDebugCustomRenderTree","willDestroy","DebugRenderTreeUpdateOpcode","template","getTagName","unwrapTemplate","defaultTemplate","asWrappedLayout","asLayout","context","symbolTable","invocation","hasEval","callerNames","atName","symbolName","blockName","reverse","didRender","DebugRenderTreeDidRenderOpcode","mgr","didRenderLayout","didCreate","DidUpdateLayoutOpcode","commitCacheGroup","_vm","didUpdateLayout","didUpdate","DynamicTextContent","textNode","nodeValue","toContentType","hasInternalComponentManager","hasInternalHelperManager","toDynamicContentType","rawValue","debugCallback","info","callback","setDebuggerCallback","cb","resetDebuggerCallback","ScopeInspector","evalInfo","slot","path","split","reduce","r","part","_symbols","_evalInfo","inspector","outerScope","outerSymbols","lookupPartial","vmHandle","getPartial","partialSymbols","partialScope","unwrapHandle","relativeStart","elseTarget","listRef","keyRef","keyValue","iteratorRef","createIteratorRef","iterator","enterList","exitList","breaks","registerItem","enterItem","CAPABILITIES","dynamicLayout","dynamicTag","createArgs","attributeHook","elementHook","createCaller","updateHook","createInstance","wrapped","hasSubOwner","TemplateOnlyComponentManager","getCapabilities","TEMPLATE_ONLY_COMPONENT_MANAGER","TemplateOnlyComponentDefinition","TemplateOnlyComponent","setInternalComponentManager","prototype","templateOnlyComponent","SVG_INTEGRATION_POINTS","foreignObject","desc","title","BLACKLIST_TABLE","DOMOperations","setupUselessElement","uselessElement","isElementInSVGNamespace","isHTMLIntegrationPoint","createElementNS","comment","prev","previousSibling","insertAdjacentHTML","HTMLElement","data","moveNodesBefore","source","SVG_NAMESPACE","applySVGInnerHTMLFix","DOMClass","svgNamespace","shouldApplyFix","div","DOMChangesWithSVGInnerHTMLFix","fixSVG","wrappedHtml","clearElement","svg","e","childNodes","applyTextNodeMergingFix","shouldApplyFix$1","DOMChangesWithTextNodeMergingFix","uselessComment","didSetUselessComment","nextPrevious","Text","mergingTextDiv","appendChild","WHITESPACE","doc","isWhitespace","test","DOM","TreeConstruction","setAttributeNS","appliedTreeConstruction","DOMTreeConstruction","DOMChangesImpl","insertAfter","IDOMChanges","helper$1","DOMChanges","GUID","Ref","id","release","label","DebugRenderTreeImpl","WeakMap","roots","Set","begin","internalNode","nodeFor","commit","captureRefs","delete","captured","captureNode","captureTemplate","captureBounds","children","_a$1","TRANSACTION","TransactionImpl","scheduledInstallModifiers","scheduledUpdateModifiers","createdComponents","updatedComponents","modifierTag","track","install","updateTag","EnvironmentImpl","options","delegate","enableDebugTooling","appendOperations","_b","transaction","onTransactionCommit","runtimeContext","artifacts","program","RuntimeProgramImpl","heap","inTransaction","initializeRegistersWithSP","LowLevelVM","externs","registers","currentOpSize","fetchRegister","loadRegister","setPc","$ra","$fp","popFrame","pushSmallFrame","popSmallFrame","getaddr","returnTo","return","nextStatement","operationSize","evaluateOuter","evaluateInner","evaluateMachine","evaluateSyscall","UpdatingVMImpl","frameStack","execute","opcodes","handler","hasErrored","runInTrackingTransaction","_execute","resetTracking","try","frame","ops","UpdatingVMFrame","handleException","UpdatingVM","ResumableVMStateImpl","resumeCallback","builder","BlockOpcode","TryOpcode","arguments","destroyChildren","elementStack","updating","result","pushUpdating","drop","ListItemOpcode","memo","retained","updateReferences","shouldRemove","ListBlockOpcode","iterableRef","opcodeMap","Map","marker","lastIterator","initializeChild","sync","itemMap","currentOpcodeIndex","seenIndex","retainItem","itemOpcode","moveItem","seenUnretained","insertItem","deleteItem","before","currentSibling","exceptionHandler","RenderResultImpl","rerender","EvaluationStackImpl","restore","snapshot","from","to","n","top","start","end","items","_a$2","Stacks","cache","VM","s0","s1","t0","t1","v0","initVM","assertGlobalContextWasSet","evalStack","destructor","isLowLevelRegister","$s0","$s1","initial","treeBuilder","numSymbols","vmState","captureState","guard","tryOpcode","didEnter","createIteratorItemRef","memoRef","listBlock","addr","popUpdating","tryUpdating","done","TemplateIteratorImpl","renderSync","renderMain","layout","renderInvocation","argList","argNames","layoutHandle","renderComponent","stdlib","main","recordToReference","record","acc","SERIALIZATION_FIRST_NODE_STRING","isSerializationFirstNode","RehydratingCursor","startingBlockDepth","candidate","injectedOmittedNode","openBlockDepth","RehydrateBuilder","unmatchedAttributes","blockDepth","currentCursor","isOpenBlock","startingBlockOffset","getBlockDepth","newBlockDepth","newCandidate","closingNode","isCloseBlock","newClosingBlock","disableRehydration","enableRehydration","clearMismatch","closeBlockDepth","getBlockDepthWithOffset","remove","isRehydrating","candidateBounds","markerBounds","newBounds","possibleEmptyMarker","isEmpty$1","_candidate","isMarker","isTextNode","isSeparator","isComment","isElement","isSameNodeType","unmatched","findByName","splice","getMarker","querySelector","cursorId","lastIndexOf","parseInt","rehydrationBuilder","ARGS_CACHES","getArgs","proxy","argsCache","SimpleArgsProxy","computeArgs","createCache","invokeHelper","internalManager","getInternalHelperManager","getDelegateFor","createHelper","hasValue","isDestroying","isDestroyed","hasDestroyable","internalHelper","setInternalHelperManager","buildUntouchableThis","fn","callbackRef","assertCallbackIsFn","invocationArgs","reifyPositional","isInvokableRef","wrapHashProxy","hash","Proxy","deprecate","reifyNamed","HAS_NATIVE_PROXY","sourceRef","pathRef","isDict","getPath","setPath","isEmpty$2","normalizeTextValue","untouchableContext","SUPPORTS_EVENT_OPTIONS","counter","addEventListener","once","event","Event","createEvent","initEvent","dispatchEvent","OnModifierState","createUpdatableTag","shouldUpdate","updateFromArgs","passive","eventName","userProvidedCallbackReference","userProvidedCallback","needsCustomCallback","preventDefault","removeEventListener","adds","removes","OnModifierManager","counters","_owner","on","setInternalModifierManager","EMPTY_ARRAY","_exports","Object","freeze","emptyArray","EMPTY_STRING_ARRAY","EMPTY_NUMBER_ARRAY","isEmptyArray","input","debugAssert$$1","test","msg","Error","deprecate$$1","desc","LOCAL_LOGGER","warn","dict","create","isDict","u","undefined","isObject","StackImpl","constructor","values","current","stack","size","length","push","item","pop","len","nth","from","isEmpty","toArray","Stack","clearElement","parent","firstChild","next","nextSibling","removeChild","SERIALIZATION_FIRST_NODE_STRING","isSerializationFirstNode","node","nodeValue","_a","keys","objKeys","assignFn","obj","i","arguments","assignment","j","key","assign","fillNulls","count","arr","Array","vals","intern","str","HAS_NATIVE_PROXY","Proxy","HAS_NATIVE_SYMBOL","Symbol","unwrap","val","expect","message","unreachable","exhausted","value","tuple","args","enumerableSymbol","Math","floor","random","Date","now","symbol","strip","strings","out","string","dynamic","String","lines","split","match","shift","min","Infinity","line","leading","stripped","slice","join","isHandle","isNonPrimitiveHandle","constants","isSmallInt","encodeNegative","num","decodeNegative","encodePositive","decodePositive","encodeHandle","decodeHandle","encodeImmediate","decodeImmediate","forEach","x","unwrapHandle","handle","error","errors","problem","span","start","end","unwrapTemplate","template","result","extractHandle","isOkHandle","isErrHandle","weakSet","_WeakSet","WeakSet","WeakSetPolyFill","_map","WeakMap","add","set","delete","has","castToSimple","isDocument","isElement","castToBrowser","sugaryCheck","document","ownerDocument","checkNode","checkError","check","nodeType","isMatch","stringCheckNode","isArray","some","c","HTMLElement","SVGElement","Element","toUpperCase","tagName","toLowerCase","isPresent","list","ifPresent","otherwise","toPresentOption","assertPresent","mapPresent","callback","buildUntouchableThis","source","context","assertOnProperty","property","get","_target","debugToString","getFunctionName","fn","functionName","name","Function","prototype","toString","call","replace","getObjectName","className","getPrimitiveName","debugToString$1","beginTestSteps","endTestSteps","verifySteps","logStep","console","LOGGER","assertNever","log","JSON","stringify","indexable","input","symbol","Symbol","key","Math","floor","random","Date","now","symbolFor","for","getGlobal","globalThis","self","window","global","Error","unwrap","val","undefined","beginTrackingTransaction","endTrackingTransaction","runInTrackingTransaction","deprecateMutationsInTrackingTransaction","resetTrackingTransaction","setTrackingTransactionEnv","assertTagNotConsumed","markTagAsConsumed","logTrackingStack","CONSUMED_TAGS","TRANSACTION_STACK","TRANSACTION_ENV","debugMessage","obj","keyName","objName","name","className","constructor","String","dirtyString","_exports","env","_polyfills","assign","_debugLabel","deprecate$$1","WeakMap","debugLabel","parent","length","push","deprecate","pop","stack","fn","didError","value","nthIndex","str","pattern","n","startingPos","i","indexOf","makeTrackingErrorMessage","transaction","message","join","trackingStack","current","unshift","map","label","index","Array","_tag","has","set","tag","subtag","subtags","forEach","get","currentTransaction","id","assert","e","updateStackBegin","start","end","substr","CONSTANT","INITIAL","VOLATILE","NaN","$REVISION","bump","COMPUTE","valueForTag","validateTag","snapshot","TYPE","ALLOW_CYCLES","allowsCycles","MonomorphicTagImpl","type","revision","lastChecked","lastValue","isUpdating","subtagBufferCache","combine","tags","CONSTANT_TAG","isArray","max","subtagValue","updateTag","_subtag","dirtyTag","disableConsumptionAssertion","scheduleRevalidate","DIRTY_TAG","UPDATE_TAG","createTag","createUpdatableTag","isConstTag","VolatileTag","VOLATILE_TAG","CurrentTag","CURRENT_TAG","tag1","tag2","tag3","isObjectLike","u","TRACKED_TAGS","dirtyTagFor","meta","propertyTag","tagMetaFor","Map","tagFor","Tracker","Set","last","add","size","tagsArr","CURRENT_TRACKER","OPEN_TRACK_FRAMES","beginTrackFrame","debuggingContext","endTrackFrame","beginUntrackFrame","endUntrackFrame","resetTracking","isTracking","consumeTag","FN","LAST_VALUE","TAG","SNAPSHOT","DEBUG_LABEL","createCache","debuggingLabel","cache","getValue","assertCache","isConst","assertTag","fnName","track","callback","untrack","trackedData","initializer","values","hasInitializer","getter","call","setter","GLIMMER_VALIDATOR_REGISTRATION","globalObj","isMachineOp","value","isOp","$pc","_exports","$ra","$fp","$sp","$s0","$s1","$t0","$t1","$v0","isLowLevelRegister","register","SavedRegister","TemporaryRegister","is","variant","value","Array","isArray","isFlushElement","_exports","isAttribute","val","isStringLiteral","expr","getStringFromValue","isArgument","isHelper","isGet","EMPTY_ATTRS","indexOfAttribute","attributes","namespaceURI","localName","i","length","attr","adjustAttrName","toLowerCase","getAttribute","index","value","removeAttribute","splice","setAttribute","element","prefix","push","name","specified","ChildNodes","constructor","node","stale","_length","len","child","firstChild","nextSibling","oldLen","item","cloneNode","deep","clone","nodeFrom","nextChild","appendChild","nodeType","SimpleNodeImpl","ownerDocument","nodeName","nodeValue","copyAttrs","attrs","copy","insertBefore","parentNode","newChild","refChild","invalidate","insertBetween","lastChild","previousSibling","removeChild","oldChild","removeBetween","childNodes","_childNodes","undefined","insertFragment","fragment","parseQualifiedName","qualifiedName","indexOf","slice","tagName","children","insertAdjacentHTML","position","html","raw","Error","getAttributeNS","setAttributeNS","removeAttributeNS","doctype","documentElement","head","body","createElement","toUpperCase","createElementNS","namespace","createTextNode","text","createComment","createRawHTMLSection","createDocumentFragment","createHTMLDocument","document","_default","_exports","default","SET_TIMEOUT","setTimeout","NOOP","buildNext","flush","Promise","autorunPromise","resolve","then","MutationObserver","iterations","observer","node","document","createTextNode","observe","characterData","data","buildPlatform","clearNext","fn","ms","clearTimeout","timerId","now","Date","next","NUMBER","TIMERS_OFFSET","isCoercableNumber","suspect","type","test","getOnError","options","onError","onErrorTarget","onErrorMethod","findItem","target","method","collection","index","i","l","length","findTimerItem","getQueueItems","items","queueItemLength","queueItemPositionOffset","queueItems","maybeError","queueItem","args","stack","undefined","push","binarySearch","time","timers","start","end","middle","QUEUE_ITEM_LENGTH","Queue","constructor","name","globalOptions","_queueBeingFlushed","targetQueues","Map","_queue","stackFor","entry","sync","before","after","errorRecordedForStack","clear","invoke","invokeWithOnError","mustYield","hasWork","cancel","queue","targetQueueMap","get","delete","splice","pushUnique","localQueueMap","set","queueIndex","_getDebugInfo","debugEnabled","debugInfo","call","apply","error","DeferredActionQueues","queueNames","queues","queueNameIndex","reduce","queueName","schedule","onceFlag","Error","fromAutorun","numberOfQueues","iteratorDrain","iterator","result","done","value","noop","DISABLE_SCHEDULE","Object","freeze","parseArgs","arguments","argsIndex","methodOrTarget","methodOrArgs","len","Array","parseTimerArgs","wait","last","parseInt","pop","parseDebounceArgs","isImmediate","UUID","beginCount","endCount","beginEventCount","endEventCount","runCount","joinCount","deferCount","scheduleCount","scheduleIterableCount","deferOnceCount","scheduleOnceCount","setTimeoutCount","laterCount","throttleCount","debounceCount","cancelTimersCount","cancelCount","autorunsCreatedCount","autorunsCompletedCount","deferredActionQueuesCreatedCount","nestedDeferredActionQueuesCreated","Backburner","DEBUG","currentInstance","instanceStack","_eventCallbacks","begin","_timerTimeoutId","_timers","_autorun","_autorunStack","defaultQueue","_defaultQueue","_onBegin","onBegin","_onEnd","onEnd","_boundRunExpiredTimers","_runExpiredTimers","bind","_boundAutorunEnd","_end","builder","_buildPlatform","_platform","counters","events","autoruns","created","completed","run","join","defer","scheduleIterable","deferOnce","scheduleOnce","later","throttle","debounce","cancelTimers","loops","total","nested","previousInstance","current","_cancelAutorun","_trigger","on","eventName","callback","TypeError","callbacks","off","callbackFound","_run","_join","_args","_ensureInstance","iterable","_later","argIndex","executeAt","_reinstallTimerTimeout","_clearTimerTimeout","hasTimers","timer","timerType","_cancelLaterTimer","ensureInstance","getDebugInfo","autorun","map","deferredActionQueue","nextInstance","finallyAlreadyCalled","plannedNextQueue","_scheduleAutorun","id","_installTimerTimeout","arg1","arg2","_scheduleExpiredTimers","n","minExpiresAt","Math","max","_default","_exports","default","DAG","_vertices","Vertices","prototype","add","key","value","before","after","Error","vertices","v","val","addEdge","i","length","addEdges","each","callback","walk","topsort","_default","_exports","default","stack","IntStack","path","result","l","vertex","idx","undefined","out","flag","w","check","cb","reset","visit","msg_1","start","search","_a","push","index","pop","pushIncoming","incomming","indices","n","setPrototypeOf","Object","getPrototypeOf","hasReflectConstruct","Reflect","construct","nativeWrapperCache","Map","wrapNativeSuper","Class","has","get","Wrapper","prototype","create","constructor","value","enumerable","writable","configurable","set","classCallCheck","instance","Constructor","TypeError","inheritsLoose","subClass","superClass","taggedTemplateLiteralLoose","strings","raw","slice","_defineProperties","target","props","i","length","descriptor","defineProperty","key","createClass","protoProps","staticProps","undefined","assertThisInitialized","self","ReferenceError","possibleConstructorReturn","call","objectDestructuringEmpty","obj","createSuper","Derived","Super","result","NewTarget","arguments","apply","arrayLikeToArray","arr","len","arr2","Array","unsupportedIterableToArray","o","minLen","n","toString","name","from","test","createForOfIteratorHelperLoose","Symbol","iterator","isArray","done","next","bind","K","_default","_exports","default","EmberObject","extend","asyncStart","asyncEnd","exception","error","_default","_exports","default","Adapter","extend","init","doneCallbacks","asyncStart","QUnit","stop","push","config","current","assert","async","asyncEnd","start","done","pop","exception","error","ok","inspect","DEFAULT_EVENT_OPTIONS","canBubble","cancelable","KEYBOARD_EVENT_TYPES","MOUSE_EVENT_TYPES","focus","el","isContentEditable","isFormControl","type","getAttribute","run","browserIsNotFocused","document","hasFocus","fireEvent","bubbles","element","options","event","indexOf","buildKeyboardEvent","rect","getBoundingClientRect","x","left","y","top","simulatedCoordinates","screenX","screenY","clientX","clientY","buildMouseEvent","assign","buildBasicEvent","dispatchEvent","createEvent","undefined","initEvent","eventOpts","initMouseEvent","window","detail","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","e","initKeyEvent","keyCode","charCode","EmberApplication","reopen","testHelpers","originalMethods","testing","setupForTesting","resolveRegistration","location","helperContainer","injectTestHelpers","window","willDestroy","_super","arguments","removeTestHelpers","name","helpers","helper","protoWrap","TestPromise","prototype","meta","wait","invokeInjectHelpersCallbacks","proto","callback","isAsync","args","apply","then","app","fn","method","lastPromise","run","resolve","getLastPromise","asyncStart","finally","asyncEnd","RSVP","configure","callback","promise","isTesting","_backburner","currentInstance","asyncStart","schedule","asyncEnd","_default","_exports","default","asyncHelper","visit","click","keyEvent","fillIn","wait","andThen","pauseTest","triggerEvent","helper","find","findWithAssert","currentRouteName","currentPath","currentURL","resumeTest","FORM_CONTROL_TAGS","isFormControl","element","tagName","type","indexOf","andThen","app","callback","testHelpers","wait","click","app","selector","context","$el","testHelpers","findWithAssert","el","fireEvent","focus","wait","currentPath","app","routingService","__container__","lookup","get","currentRouteName","app","routingService","__container__","lookup","get","currentURL","app","router","__container__","lookup","get","getURL","fillIn","app","selector","contextOrText","text","$el","el","context","undefined","testHelpers","findWithAssert","focus","isFormControl","value","innerHTML","fireEvent","wait","find","app","selector","context","jQueryDisabled","false","assert","$el","get","$","findWithAssert","app","selector","context","$el","testHelpers","find","length","Error","keyEvent","app","selector","contextOrType","typeOrKeyCode","keyCode","context","type","undefined","testHelpers","triggerEvent","which","resume","resumeTest","assert","undefined","pauseTest","info","RSVP","Promise","resolve","triggerEvent","app","selector","contextOrType","typeOrOptions","possibleOptions","arity","arguments","length","context","type","options","$el","testHelpers","findWithAssert","el","fireEvent","wait","visit","app","url","router","__container__","lookup","shouldHandleURL","boot","then","location","setURL","run","__deprecatedInstance__","_readinessDeferrals","initialURL","testHelpers","wait","wait","app","value","RSVP","Promise","resolve","router","__container__","lookup","watcher","setInterval","routerIsLoading","_routerMicrolib","Boolean","activeTransition","pendingRequests","_hasScheduledTimers","_getCurrentRunLoop","checkWaiters","clearInterval","run","name","onLoad","Application","initializers","initializer","initialize","application","testing","deferReadiness","setupForTesting","setTesting","adapter","getAdapter","setAdapter","self","QUnit","Adapter","create","QUnitAdapter","jQueryDisabled","jQuery","document","off","incrementPendingRequests","decrementPendingRequests","clearPendingRequests","on","$","jQuery","testCheckboxClick","handler","input","document","createElement","attr","css","position","left","top","appendTo","on","trigger","remove","hasDOM","jQueryDisabled","checked","event","special","click","nodeName","type","warn","id","Test","_helpers","helpers","registerHelper","registerAsyncHelper","unregisterHelper","onInjectHelpers","Promise","TestPromise","promise","resolve","registerWaiter","unregisterWaiter","checkWaiters","Object","defineProperty","get","getAdapter","set","setAdapter","_default","_exports","default","adapter","getAdapter","setAdapter","value","exception","setDispatchOverride","adapterDispatch","asyncStart","asyncEnd","error","console","stack","helpers","_exports","registerHelper","name","helperMethod","method","meta","wait","registerAsyncHelper","unregisterHelper","TestPromise","prototype","callbacks","_exports","onInjectHelpers","callback","push","invokeInjectHelpersCallbacks","app","i","length","requests","pendingRequests","length","clearPendingRequests","incrementPendingRequests","_","xhr","push","decrementPendingRequests","setTimeout","i","splice","lastPromise","TestPromise","RSVP","Promise","constructor","arguments","then","_onFulfillment","args","onFulfillment","result","isolate","undefined","_exports","default","promise","resolver","label","fullLabel","resolve","getLastPromise","value","run","run","fn","_getCurrentRunLoop","emberRun","contexts","callbacks","registerWaiter","context","callback","arguments","length","indexOf","push","unregisterWaiter","i","splice","checkWaiters","call","Ember","isIE","deprecate","id","url","until","for","since","enabled","isNamespace","toString","Object","defineProperty","get","getENV","enumerable","getLookup","set","setLookup","EMBER_EXTEND_PROTOTYPES","ENV","EXTEND_PROTOTYPES","getOwner","setOwner","Application","ApplicationInstance","Resolver","Engine","EngineInstance","assign","merge","generateGuid","utils","GUID_KEY","guidFor","inspect","makeArray","canInvoke","tryInvoke","wrap","uuid","Container","Registry","assert","EmberDebug","warn","debug","deprecateFunc","runInDebug","Error","EmberError","Debug","registerDeprecationHandler","registerWarnHandler","isComputed","metal","instrument","instrumentation","subscribe","Instrumentation","unsubscribe","reset","run","computed","_descriptor","nativeDescDecorator","_tracked","tracked","cacheFor","getCachedValueFor","ComputedProperty","_setClassicDecorator","setClassicDecorator","meta","getWithDefault","_getPath","trySet","FEATURES","isEnabled","_Cache","Cache","on","addListener","removeListener","sendEvent","hasListeners","isNone","isEmpty","isBlank","isPresent","notifyPropertyChange","beginPropertyChanges","endPropertyChanges","changeProperties","platform","hasPropertyAccessors","destroy","libraries","getProperties","setProperties","expandProperties","addObserver","removeObserver","aliasMethod","observer","mixin","Mixin","_createCache","createCache","_cacheGetValue","getValue","_cacheIsConst","isConst","_registerDestructor","registerDestructor","_unregisterDestructor","unregisterDestructor","_associateDestroyableChild","associateDestroyableChild","_assertDestroyablesDestroyed","assertDestroyablesDestroyed","_enableDestroyableTracking","enableDestroyableTracking","_isDestroying","isDestroying","_isDestroyed","isDestroyed","getOnerror","setOnerror","isTesting","setTesting","_Backburner","Backburner","LOGGER","Logger","A","String","loc","w","dasherize","decamelize","camelize","classify","underscore","capitalize","EmberObject","_RegistryProxyMixin","RegistryProxyMixin","_ContainerProxyMixin","ContainerProxyMixin","compare","copy","isEqual","inject","false","keys","map","k","join","service","injectService","controller","injectController","Array","EmberArray","Comparable","Enumerable","ArrayProxy","ObjectProxy","ActionHandler","CoreObject","NativeArray","Copyable","MutableEnumerable","MutableArray","Evented","PromiseProxyMixin","Observable","typeOf","isArray","onLoad","runLoadHooks","Controller","ControllerMixin","Service","_ProxyMixin","RSVP","Namespace","_action","action","_dependentKeyCompat","dependentKeyCompat","configurable","_getStrings","_setStrings","isNamespaceSearchDisabled","setNamespaceSearchDisabled","Component","Helper","helper","Checkbox","TextField","TextArea","LinkComponent","views","TextSupport","TargetActionSupport","forEach","name","path","value","availableInLegacyAddon","message","_setComponentManager","setComponentManager","_componentManagerCapabilities","componentCapabilities","_setModifierManager","setModifierManager","_modifierManagerCapabilities","modifierCapabilities","_getComponentTemplate","getComponentTemplate","_setComponentTemplate","setComponentTemplate","_templateOnlyComponent","templateOnlyComponent","_Input","Input","_hash","hash","_array","array","_concat","concat","_get","_on","_fn","fn","_helperManagerCapabilities","helperCapabilities","_setHelperManager","setHelperManager","_invokeHelper","invokeHelper","_captureRenderTree","captureRenderTree","prototype","htmlSafe","deprecateImportFromString","isHTMLSafe","getTemplates","setTemplates","VERSION","JQUERY_INTEGRATION","jQueryDisabled","jQuery","ViewUtils","isSimpleClick","getElementView","getViewElement","getViewBounds","getViewClientRects","getViewBoundingClientRect","getRootViews","getChildViews","isSerializationFirstNode","ComponentLookup","EventDispatcher","Location","routing","AutoLocation","HashLocation","HistoryLocation","NoneLocation","controllerFor","generateControllerFactory","generateController","RouterDSL","Router","Route","DataAdapter","extensionSupport","ContainerDebugAdapter","EmberHandlebars","template","Utils","escapeExpression","EmberHTMLBars","defineEmberTemplateCompilerLazyLoad","key","has","templateCompiler","require","precompile","compile","registerPlugin","writable","defineEmberTestingLazyLoad","testing","Test","Adapter","QUnitAdapter","setupForTesting","undefined","__loader","define","registry","requirejs","entries","_default","_exports","default","jQuery","createObject","Object","create","createMap","map","undefined","Target","path","matcher","delegate","prototype","to","target","callback","willAddRoute","add","length","Error","addChild","Matcher","routes","children","match","generateMatch","contextEntered","startingPath","fullPath","addRoute","routeArray","handler","len","i","substr","route","push","eachRoute","baseRoute","binding","paths","keys","slice","nested","call","addRouteCallback","normalizePath","split","normalizeSegment","join","SEGMENT_RESERVED_CHARS","segment","indexOf","decodeURIComponent","replace","encodeURIComponent","PATH_SEGMENT_ENCODINGS","encodePathSegment","str","escapeRegex","isArray","Array","hasOwnProperty","getParam","params","key","value","eachChar","currentState","state","ch","charCodeAt","put","_","regex","generate","RouteRecognizer","ENCODE_AND_DECODE_PATH_SEGMENTS","EmptyObject","freeze","EmptyArray","parse","segments","types","parts","names","shouldDecodes","part","flags","type","isEqualCharSpec","spec","char","negate","State","states","id","repeat","nextStates","pattern","_regex","handlers","regex$1","RegExp","get","this$1","child","child$1","returned","isMatch","sortSolutions","sort","a","b","ref","astatics","adynamics","astars","ref$1","bstatics","bdynamics","bstars","recognizeChar","l","concat","RecognizeResults","queryParams","splice","findHandler","originalPath","captures","currentCapture","result","isDynamic","j","name","capture","decodeQueryParamPart","error","rootState","options","allSegments","isEmpty","as","handlersFor","hasRoute","generate$1","output","charAt","generateQueryString","pairs","pair","arrayPair","parseQueryString","queryString","keyLength","recognize","results","isSlashDropped","hashStart","queryStart","decodeURI","pathLen","solutions","i$1","VERSION","Normalizer","_default","_exports","default","buildTransitionAborted","error","Error","name","code","isTransitionAborted","maybeError","isAbortable","maybeAbortable","isAborted","throwIfAborted","maybe","slice","Array","prototype","hasOwnProperty","Object","isPromise","p","then","merge","hash","other","prop","call","extractQueryParams","array","len","length","head","queryParams","obj","isQueryParams","coerceQueryParamsToString","key","val","isArray","i","l","log","router","args","sequence","msg","isParam","object","String","Number","forEach","callback","getChangelist","oldObject","newObject","results","all","changed","removed","didChange","oldElement","newElement","undefined","promiseLabel","label","STATE_SYMBOL","_exports","PARAMS_SYMBOL","QUERY_PARAMS_SYMBOL","Transition","constructor","intent","state","previousTransition","from","to","isActive","urlMethod","resolveIndex","queryParamsOnly","isTransition","isCausedByAbortingTransition","isCausedByInitialTransition","isCausedByAbortingReplaceTransition","_visibleQueryParams","isIntermediate","data","resolvedModels","promise","routeInfos","targetName","pivotHandler","debugCreationStack","stack","debugAbortStack","debugPreviousTransition","Promise","reject","params","handlerInfo","isResolved","route","currentSequence","resolve","catch","result","transitionDidError","onFulfilled","onRejected","onRejection","finally","abort","rollback","transition","routeWillChange","routeDidChange","preTransitionState","activeTransition","redirect","newTransition","retry","transitionByIntent","method","send","ignoreFailure","_name","err","handler","trigger","triggerEvent","followRedirects","reason","toString","message","InternalTransition","logAbort","prepareResult","ROUTE_INFOS","WeakMap","toReadOnlyRouteInfo","includeAttributes","map","info","paramNames","context","has","routeInfo","get","attachMetadata","routeInfoWithAttribute","createRouteInfoWithAttributes","set","find","predicate","thisArg","publicInfo","arr","metadata","buildRouteInfoMetadata","parent","child","localName","parts","split","attributes","isExtensible","freeze","_polyfills","assign","InternalRouteInfo","_routePromise","_route","_processRoute","getModel","_transition","serialize","_context","routePromise","runBeforeModelHook","resolvedModel","runAfterModelHook","becomeResolved","resolvedContext","stashResolvedModel","contextsMatch","cached","resolved","ResolvedRouteInfo","shouldSupersede","paramsMatch","fetchRoute","updateRoute","_internalName","beforeModel","afterModel","getRoute","r","UnresolvedRouteInfoByParam","fullParams","deserialize","model","UnresolvedRouteInfoByObject","serializer","getSerializer","test","id","a","b","k","TransitionIntent","handleError","currentState","errorHandlerIndex","wasAborted","TransitionError","resolveOneRouteInfo","proceed","bind","resolvedRouteInfo","wasAlreadyResolved","TransitionState","NamedTransitionIntent","contexts","applyToState","oldState","partitionedArgs","concat","pureArgs","handlers","recognizer","handlersFor","targetRouteName","applyToHandlers","parsedHandlers","checkingIfActive","newState","objects","invalidateIndex","oldHandlerInfo","newHandlerInfo","names","createParamHandlerInfo","getHandlerInfoForDynamicSegment","oldContext","handlerToUse","Math","min","unshift","invalidateChildren","handlerInfos","_targetRouteName","objectToUse","pop","preTransitionHandlerInfo","numNames","missingParams","oldParams","peek","paramName","push","UnrecognizedURLError","create","captureStackTrace","URLTransitionIntent","url","recognize","statesDiffer","_url","checkHandlerAccessibility","inaccessibleByURL","hasRoute","newRouteInfo","oldRouteInfo","Router","logger","_lastQueryParams","currentRouteInfos","_changedQueryParams","RouteRecognizer","reset","routes","add","as","path","queryParamsTransition","changelist","wasTransitioning","fireQueryParamDidChange","finalizeQueryParamChange","toReadOnlyInfos","_updateURL","didTransition","toInfos","getTransitionByIntent","e","generateNewState","readonlyInfos","recognizeAndLoad","routeInfosWithAttributes","queryParamChangelist","routeInfosEqual","setupContexts","routeInfosSameExceptQueryParams","finalizeTransition","notifyExistingHandlers","doTransition","modelsArray","lastArg","charAt","infos","partition","partitionRoutes","exited","_internalReset","exit","unchanged","updatedContext","routeEnteredOrUpdated","entered","enter","_routeEnteredOrUpdated","contextDidChange","setup","oldRouteInfos","newRouteInfos","routeChanged","contextChanged","reverse","routeName","generate","initial","replaceAndNotAborting","isQueryParamsRefreshTransition","replacingReplace","replaceURL","updateURL","resolvedHandlers","newQueryParams","finalQueryParamsArray","finalQueryParams","qp","value","visible","fromInfos","oldRouteInfoLen","oldHandler","willTransition","handleURL","transitionTo","intermediateTransitionTo","refresh","pivotRoute","replaceWith","suppliedParams","routeParams","applyIntent","isActiveIntent","_state","targetRouteInfos","targetHandler","recognizerHandlers","index","testState","routesEqual","activeQPsOnNewHandler","activeQueryParams","otherRouteInfos","paramsEqual","otherParams","keys","otherKeys","_default","default","callbacksFor","object","callbacks","_promiseCallbacks","EventTarget","_exports","mixin","on","off","trigger","undefined","eventName","callback","TypeError","allCallbacks","indexOf","push","index","splice","options","label","i","length","config","instrument","configure","name","value","arguments","queue","scheduleFlush","setTimeout","entry","payload","guid","key","id","childGuid","childId","error","stack","promise","child","_guidKey","_id","detail","_result","_label","timeStamp","Date","now","Error","resolve$$1","Constructor","constructor","noop","resolve$1","withOwnPromise","objectOrFunction","x","type","PENDING","FULFILLED","REJECTED","tryThen","then$$1","fulfillmentHandler","rejectionHandler","call","e","handleForeignThenable","thenable","async","sealed","fulfill","reason","reject","handleOwnThenable","_state","_onError","subscribe","handleMaybeThenable","maybeThenable","isOwnThenable","then","resolve","publishRejection","publish","_subscribers","parent","onFulfillment","onRejection","subscribers","settled","result","invokeCallback","state","hasCallback","succeeded","initializePromise","resolver","resolved","Enumerator","input","abortOnReject","_instanceConstructor","_abortOnReject","_isUsingOwnPromise","Promise","_isUsingOwnResolve","_init","len","_remaining","Array","_enumerate","_eachEntry","_checkFullfillment","_settleMaybeThenable","firstPass","c","_settledAt","_willSettleAt","_setResultAt","setSettledResult","all","entries","isArray","race","reject$1","guidKey","counter","needsResolver","needsNew","after","catch","finally","cast","prototype","makeObject","_","argumentNames","obj","args","arrayResult","wrapThenable","onFulFillment","denodeify","nodeFunc","fn","l","promiseInput","arg","p","err","val","handlePromiseInput","handleValueInput","__proto__","self","apply","all$1","array","AllSettled","allSettled","race$1","PromiseHash","keys","Object","hash","HashSettled","hashSettled","rethrow","defer","deferred","MapEnumerator","mapFn","bool","_mapFn","map","promises","resolve$2","reject$2","EMPTY_OBJECT","FilterEnumerator","filter","filterFn","vertxNext","asap","queue$1","scheduleFlush$1","browserWindow","window","browserGlobal","BrowserMutationObserver","MutationObserver","WebKitMutationObserver","isNode","process","toString","isWorker","Uint8ClampedArray","importScripts","MessageChannel","useNextTick","nextTick","version","versions","node","match","setImmediate","flush","useVertxTimer","useSetTimeout","useMutationObserver","iterations","observer","document","createTextNode","observe","characterData","data","useMessageChannel","channel","port1","onmessage","port2","postMessage","attemptVertex","vertx","Function","require","runOnLoop","runOnContext","cb","hasOwnProperty","rsvp","_default","default","root","factory","exports","module","define","amd","self","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Emitter","obj","mixin","on","addEventListener","event","fn","this","_callbacks","push","once","off","apply","arguments","removeListener","removeAllListeners","removeEventListener","length","cb","callbacks","splice","emit","args","Array","len","slice","listeners","hasListeners","encodePacket","require","decodePacket","SEPARATOR","String","fromCharCode","protocol","encodePayload","packets","callback","encodedPackets","count","forEach","packet","encodedPacket","join","decodePayload","encodedPayload","binaryType","split","decodedPacket","type","window","Function","parser","Transport","opts","query","readyState","socket","msg","desc","err","Error","description","doOpen","doClose","onClose","write","writable","data","onPacket","encode","str","encodeURIComponent","decode","qs","qry","pairs","pair","decodeURIComponent","Decoder","Encoder","PacketType","binary_1","is_binary_1","EVENT","ACK","hasBinary","encodeAsString","BINARY_EVENT","BINARY_ACK","encodeAsBinary","attachments","nsp","id","JSON","stringify","deconstruction","deconstructPacket","pack","buffers","unshift","decodeString","reconstructor","BinaryReconstructor","isBinary","base64","takeBinaryData","Number","charAt","undefined","start","buf","substring","next","payload","parse","e","tryParse","substr","isPayloadValid","finishedReconstruction","CONNECT","DISCONNECT","CONNECT_ERROR","isArray","reconPack","binData","reconstructPacket","re","parts","src","b","indexOf","replace","exec","uri","source","host","authority","ipv6uri","pathNames","path","names","queryKey","$0","$1","$2","Manager","eio","socket_1","on_1","Backoff","nsps","subs","reconnection","reconnectionAttempts","Infinity","reconnectionDelay","reconnectionDelayMax","randomizationFactor","backoff","min","max","jitter","timeout","_readyState","_parser","encoder","decoder","_autoConnect","autoConnect","open","v","_reconnection","_reconnectionAttempts","_a","_reconnectionDelay","setMin","_randomizationFactor","setJitter","_reconnectionDelayMax","setMax","_timeout","_reconnecting","attempts","reconnect","engine","skipReconnect","openSubDestroy","onopen","errorSub","cleanup","maybeReconnectOnOpen","timer","setTimeout","close","clearTimeout","onping","ondata","onerror","onclose","ondecoded","add","Socket","keys","active","_close","options","subDestroy","destroy","reset","reason","delay","duration","onreconnect","attempt","XMLHttpRequest","XHR","JSONP","websocket","polling","xd","xs","jsonp","location","isSSL","port","hostname","secure","xdomain","xscheme","forceJSONP","hasCORS","globalThis","enablesXDR","XDomainRequest","concat","parseqs","yeast","Polling","poll","onPause","pause","total","doPoll","index","onOpen","doWrite","schema","timestampRequests","timestampParam","supportsBinary","sid","b64","PACKET_TYPES","PACKET_TYPES_REVERSE","ERROR_PACKET","prev","alphabet","map","seed","num","encoded","Math","floor","now","Date","decoded","pick","attr","reduce","acc","k","socket_io_parser_1","RESERVED_EVENTS","freeze","connect","connect_error","disconnect","disconnecting","newListener","io","receiveBuffer","sendBuffer","ids","acks","flags","connected","disconnected","auth","onpacket","subEvents","ev","compress","pop","isTransportWritable","transport","discardPacket","_packet","onconnect","onevent","onack","ondisconnect","message","ack","emitEvent","_anyListeners","sent","emitBuffered","listener","withNativeArrayBuffer","ArrayBuffer","toString","withNativeBlob","Blob","withNativeFile","File","isView","buffer","toJSON","url_1","manager_1","lookup","cache","managers","parsed","url","sameNamespace","forceNew","multiplex","manager_2","parseuri","loc","test","ipv6","href","transports","writeBuffer","prevBufferLen","agent","withCredentials","upgrade","rememberUpgrade","rejectUnauthorized","perMessageDeflate","threshold","transportOptions","upgrades","pingInterval","pingTimeout","pingTimeoutTimer","clone","EIO","priorWebsocketSuccess","createTransport","shift","setTransport","onDrain","onError","probe","failed","onTransportOpen","onlyBinaryUpgrades","upgradeLosesBinary","send","upgrading","flush","freezeTransport","error","onTransportClose","onupgrade","to","onHandshake","resetPingTimeout","sendPacket","code","filterUpgrades","cleanupAndClose","waitForUpgrade","pingIntervalTimer","filteredUpgrades","j","empty","hasXHR2","responseType","forceBase64","Request","req","request","method","onData","pollXhr","async","xhr","extraHeaders","setDisableHeaderCheck","setRequestHeader","requestTimeout","hasXDR","onload","onLoad","responseText","onreadystatechange","status","document","requestsCount","requests","onSuccess","fromError","abort","attachEvent","unloadHandler","encodeBlobAsBase64","fileReader","FileReader","content","result","readAsDataURL","base64decoder","decodeBase64Packet","mapBinary","chars","arraybuffer","bytes","Uint8Array","encoded1","encoded2","encoded3","encoded4","bufferLength","rNewline","rEscapedNewline","JSONPPolling","___eio","script","parentNode","removeChild","form","iframe","createElement","insertAt","getElementsByTagName","insertBefore","head","body","appendChild","navigator","userAgent","area","iframeId","className","style","position","top","left","target","setAttribute","complete","initIframe","html","action","submit","WebSocket","usingBrowserWebSocket","defaultBinaryType","isReactNative","product","toLowerCase","WS","check","protocols","headers","ws","addEventListeners","onmessage","Buffer","byteLength","MozWebSocket","packetData","_deconstructPacket","placeholder","_placeholder","newData","_reconstructPacket","ms","factor","pow","rand","random","deviation"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AC39UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA,IAAIA,MAAM,EAAEC,OAAO;AAEnB,CA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EAC3B,SAASI,SAASA,CAAA,EAAG;IACnB,OAAOL,OAAO,CAACI,MAAM;EACvB;EACA,SAASE,SAASA,CAAClB,KAAK,EAAE;IACxBY,OAAO,CAACI,MAAM,GAAGhB,KAAK;EACxB;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMmB,GAAG,GAAAb,QAAA,CAAAa,GAAA,GAAG;IACVC,wBAAwB,EAAE,KAAK;IAE/B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,iBAAiB,EAAE;MACjBC,KAAK,EAAE,IAAI;MACXX,QAAQ,EAAE,IAAI;MACdY,MAAM,EAAE;IACV,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,6BAA6B,EAAE,IAAI;IAEnC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,WAAW,EAAE,IAAI;IACjBC,oBAAoB,EAAE,KAAK;IAC3BC,kBAAkB,EAAE,KAAK;IAEzB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,6BAA6B,EAAE,IAAI;IAEnC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,iCAAiC,EAAE,KAAK;IAExC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,kBAAkB,kBAAO;IAEzB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,mBAAmB,EAAE,IAAI;IAEzB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,wBAAwB,EAAE,KAAK;IAE/B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,oBAAoB,EAAE,IAAI;IAE1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;A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GAAG,IAAI;QACxB;MACF,CAAC,CAAC;MACF,IAAI,CAAClB,OAAO,GAAGA,OAAO;IACxB;IAEAe,UAAUA,CAAA,EAAG;MACX,IAAAP,mBAAQ,EAAC,IAAI,CAACG,KAAK,CAAC;IACtB;EAEF;EACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAvCA,IAAAQ,QAAA,GAAAC,QAAA,CAAAC,OAAA,GA0CeC,eAAW,CAACC,MAAM,CAAC;IAChCC,IAAIA,CAAA,EAAG;MACL,IAAI,CAACC,MAAM,CAAC,GAAGC,SAAS,CAAC;MAEzB,IAAI,CAACC,qBAAqB,GAAG,IAAAC,eAAQ,EAAC,IAAI,CAAC,CAACC,MAAM,CAAC,8BAA8B,CAAC;MAClF,IAAI,CAACC,cAAc,GAAG,IAAAC,UAAM,EAAC,CAAC;MAC9B,IAAI,CAACC,eAAe,GAAG,IAAI/B,GAAG,CAAC,CAAC;MAChC,IAAI,CAACgC,YAAY,GAAG,IAAIhC,GAAG,CAAC,CAAC;MAC7B,IAAI,CAACiC,aAAa,GAAG,IAAI;IAC3B,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,cAAc,EAAE,CAAC;IAEjB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,gBAAgB,EAAE,IAAI;IAEtB;AACF;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,UAAUA,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,GAAG,IAAAC,qBAAc,EAAC5D,SAAS,CAAC;QAEvC,IAAI2D,OAAO,EAAE;UACX,IAAAE,uBAAgB,EAACF,OAAO,CAAC;UACzB,IAAAG,uBAAgB,EAAC9D,SAAS,CAAC;QAC7B;MACF;MAEAA,SAAS,CAAC+D,QAAQ,CAACC,UAAU,CAAChE,SAAS,CAAC;IAC1C;IAEAiE,QAAQA,CAAA,EAAG;MACT,IAAI;QACFnB;MACF,CAAC,GAAG,IAAI;MACRA,SAAS,CAAC,CAAC;MACX,IAAI,CAACA,SAAS,GAAGJ,IAAI;IACvB;EAEF;EAEA,SAASwB,cAAcA,CAACC,MAAM,EAAE;IAC9B,OAAO,IAAAC,kCAAwB,EAACD,MAAM,EAAE,CAAC,CAAC,CAAC;EAC7C;;EAEA;AACA;AACA;EACA,IAAME,OAAO,GAAG,IAAIC,cAAQ,CAAC,CAAC;EAC9B,IAAMC,MAAM,GAAA9G,QAAA,CAAA8G,MAAA,GAAG,IAAAC,aAAM,EAAC,QAAQ,CAAC;EAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAIC,QAAQ,GAAGP,cAAc,CAACtB,IAAI,IAAI;IACpC,IAAI;MACF8B,KAAK;MACLC;IACF,CAAC,GAAG/B,IAAI,CAAC,CAAC;IACV;IACA;IACA;;IAEA,IAAI,CAACgC,OAAO,EAAEC,SAAS,EAAE,GAAGC,QAAQ,CAAC,GAAGH,UAAU;IAClD,IAAII,QAAQ,GAAGF,SAAS,CAACG,UAAU;IACnC,IAAIC,MAAM,GAAG,QAAQ,IAAIP,KAAK,GAAGA,KAAK,CAACO,MAAM,GAAGL,OAAO;IACvD,IAAIM,WAAW,GAAGC,iBAAiB,CAAC,OAAO,IAAIT,KAAK,IAAIA,KAAK,CAACvD,KAAK,EAAE2D,QAAQ,CAAC;IAC9E,IAAIM,KAAK;IAET,IAAI,IAAAC,yBAAc,EAACR,SAAS,CAAC,EAAE;MAC7BO,KAAK,GAAGE,iBAAiB,CAACT,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nBC,WAAW,EAAE,IAAI;IACjBC,YAAY,EAAE,IAAI;IAClB3C,YAAY,EAAE,IAAI;IAClB4C,UAAU,EAAE,IAAI;IAChBC,cAAc,EAAE,IAAI;IACpBC,OAAO,EAAE,IAAI;IACbxL,WAAW,EAAE,IAAI;IACjByL,WAAW,EAAE;EACf,CAAC;EACD,IAAMC,uBAAuB,GAAG,IAAIxF,qBAAqB,CAAC,CAAC;EAC3D,SAASyF,cAAcA,CAACC,OAAO,EAAE;IAC/B,OAAOA,OAAO,KAAKF,uBAAuB;EAC5C;;EAEA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMG,SAAS,GAAA1R,QAAA,CAAA0R,SAAA,GAAGC,eAAQ,CAACC,MAAM,CAACC,wBAAiB,EAAEC,uBAAgB,EAAEC,wBAAiB,EAAEC,6BAAmB,EAAEC,oBAAa,EAAEC,gBAAS,EAAE;IACvIC,WAAW,EAAE,IAAI;IAEjBC,IAAIA,CAAA,EAAG;MACL,IAAI,CAACC,MAAM,CAAC,GAAGC,SAAS,CAAC;MAEzB,IAAI,CAACnH,oBAAoB,CAAC,GAAG,KAAK;MAClC,IAAI,CAACD,SAAS,CAAC,GAAG,IAAAqH,oBAAS,EAAC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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACES,WAAWA,CAAC1J,IAAI,EAAE;MAChB;MACA,IAAI2J,QAAQ,GAAG,IAAApN,qBAAc,EAAC,IAAI,CAAC;MAAC,WAE4CoN,QAAQ,KAAK,IAAI,KAAjG,IAAArR,aAAM,EAAE,kCAAiC,IAAK,iCAAgC,EAAEqR,QAAQ,KAAK,IAAI,CAAC;MAClG,IAAIrN,OAAO,GAAGqN,QAAQ;MACtB,IAAIC,KAAK,GAAGtN,OAAO,CAACuN,YAAY,KAAK;MACrC;;MAEA,IAAI;QACFC,IAAI;QACJC;MACF,CAAC,GAAG,IAAAC,0BAAiB,EAAC1N,OAAO,EAAE0D,IAAI,CAAC;MAEpC,IAAI4J,KAAK,IAAIE,IAAI,KAAK,MAAM,EAAE;QAC5B,OAAOxN,OAAO,CAAC2N,YAAY,CAACF,UAAU,CAAC;MACzC;MAEA,OAAOzN,OAAO,CAACyN,UAAU,CAAC;IAC5B,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEG,eAAeA,CAAA,EAAG,CAAC,CAAC;IAEpB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;IACEC,SAASA,CAAA,EAAG,CAAC,CAAC;IAEd;AACF;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;IACEC,UAAUA,CAAA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMsW,SAAS,GAAG/M,MAAM,CAACgN,MAAM,CAAC;IAC9BjW,QAAQA,CAAA,EAAG;MACT,OAAO,WAAW;IACpB;EAEF,CAAC,CAAC;EACF,IAAMkW,kBAAkB,GAAGjN,MAAM,CAACgN,MAAM,CAAC,CAAC,CAAC,CAAC;EAC5C,IAAME,aAAa,GAAA1W,QAAA,CAAA0W,aAAA,GAAGhF,SAAS,CAACE,MAAM,CAAC;IACrC3F,MAAM,EAAEqK,QAAQ;IAChBxJ,OAAO,EAAE,GAAG;IAEZ;AACF;AACA;AACA;IACE6J,KAAK,EAAEJ,SAAS;IAEhB;AACF;AACA;AACA;IACEK,KAAK,EAAEL,SAAS;IAEhB;AACF;AACA;AACA;IACEM,MAAM,EAAEN,SAAS;IAEjB;AACF;AACA;AACA;IACEO,KAAK,EAAEP,SAAS;IAEhB;AACF;AACA;AACA;AACA;IACE,cAAc,EAAE,IAAI;IAEpB;AACF;AACA;AACA;AACA;AACA;IACEQ,KAAK,EAAE,IAAI;IAEX;AACF;AACA;AACA;AACA;AACA;IACEC,GAAG,EAAE,IAAI;IAET;AACF;AACA;AACA;AACA;AACA;IACEC,QAAQ,EAAE,IAAI;IAEd;AACF;AACA;AACA;AACA;AACA;AACA;IACEzP,MAAM,EAAE,IAAI;IAEZ;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACE0P,WAAW,EAAE,QAAQ;IAErB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,YAAY,EAAE,SAAS;IAEvB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,aAAa,EAAE,UAAU;IAEzB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACElW,OAAO,EAAE,KAAK;IAEd;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEmW,cAAc,EAAE,IAAI;IAEpB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACE7L,iBAAiB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC;IAEjE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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jQ,IAAI,CAAC,GAAGmQ,OAAO;MAC7B;MAEA,OAAOA,OAAO;IAChB,CAAC;EACH,CAAC,MAAM;IACLH,gBAAgB,GAAGhQ,IAAI,IAAIA,IAAI,KAAK,EAAE;EACxC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAGA,MAAMoQ,KAAK,SAAS3B,aAAa,CAAC;IAChC9hB,WAAWA,CAAA,EAAG;MACZ,KAAK,CAAC,GAAGiS,SAAS,CAAC;MACnB,IAAI,CAACyR,QAAQ,GAAGrC,SAAS,CAAC,IAAI,CAACvc,IAAI,CAAC8B,KAAK,CAACkO,OAAO,CAAC;IACpD;IAEA,OAAO5U,QAAQA,CAAA,EAAG;MAChB,OAAO,OAAO;IAChB;IACA;AACF;AACA;;IAGE,IAAIsN,KAAKA,CAAA,EAAG;MACV,IAAI,IAAI,CAACmW,UAAU,EAAE;QACnB,OAAO,2BAA2B;MACpC,CAAC,MAAM;QACL,OAAO,6BAA6B;MACtC;IACF;IACA;AACF;AACA;;IAGE,IAAItQ,IAAIA,CAAA,EAAG;MACT,IAAIA,IAAI,GAAG,I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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,MAAMuD,QAAQ,SAASnC,aAAa,CAAC;IACnC,OAAO5hB,QAAQA,CAAA,EAAG;MAChB,OAAO,UAAU;IACnB;IAEA,IAAIsN,KAAKA,CAAA,EAAG;MACV,OAAO,4BAA4B;IACrC,CAAC,CAAC;;IAGFoH,MAAMA,CAAC6E,KAAK,EAAE;MACZ,KAAK,CAAC7E,MAAM,CAAC6E,KAAK,CAAC;IACrB;IAEAyI,KAAKA,CAACzI,KAAK,EAAE;MACX,KAAK,CAACyI,KAAK,CAACzI,KAAK,CAAC;IACpB;IAEAsI,eAAeA,CAAA,EAAG;MAChB,OAAO,KAAK,CAACA,eAAe,CAAC,CAAC,IAAIjM,QAAQ,CAACxB,YAAY,KAAK,KAAK;IACnE;IAEA2I,mBAAmBA,CAAC1T,IAAI,EAAE;MACxB,IAAIsa,kBAAkB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,cAAc,CAAC;MACrF,OAAOA,kBAAkB,CAACjiB,OAAO,CAAC2H,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC0T,mBAAmB,CAAC1T,IAAI,CAAC;IACnF;EAEF;EAEAya,YA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EACf,CAAC;EACD,MAAMoX,uBAAuB,CAAC;IAC5BroB,WAAWA,CAACkC,SAAS,EAAE;MACrB;MACA,IAAI,CAACmlB,MAAM,GAAG,CAAC,CAAC;MAChB,IAAI,CAACI,YAAY,GAAG,YAAY;MAChC,IAAI,CAAC/C,YAAY,GAAG,IAAA4C,6BAAmB,EAACc,iBAAiB,CAAC;MAC1D,IAAI,CAACb,UAAU,GAAG,IAAI;MACtB,IAAI,CAACnW,OAAO,GAAG,IAAI6W,oBAAoB,CAAC/lB,SAAS,CAAC;MAClD,IAAI,CAACsK,KAAK,GAAG,IAAA8b,wBAAa,EAACpmB,SAAS,CAAC;IACvC;EAEF;;EAEA;AACA;AACA;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,MAAMqmB,aAAa,CAAC;IAClBvoB,WAAWA,CAACkD,KAAK,EAAE;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CAAC,EAAE,IAAAwhB,mBAAU,EAACloB,KAAK,CAAC,CAAC,CAAC;IACvD,CAAC,CAAC;EACJ,CAAC,CAAC;;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAImoB,QAAQ,GAAG3oB,cAAc,CAAC,CAAC;IAC7BS;EACF,CAAC,KAAK;IACJ,OAAO,IAAAmoB,4BAAiB,EAACnoB,UAAU,CAAC,CAAC,CAAC,CAAC;EACzC,CAAC,CAAC;;EAEF;AACA;AACA;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAIooB,OAAO,GAAG7oB,cAAc,CAAC,CAAC;IAC5BS,UAAU;IACVD;EACF,CAAC,KAAK;IAAA,WAC0EC,UAAU,CAACvF,MAAM,KAAK,CAAC,IAAI6H,MAAM,CAACyT,IAAI,CAAChW,KAAK,CAAC,CAACtF,MAAM,KAAK,CAAC,KAAxI,IAAAO,aAAM,EAAC,qEAAqE,EAAEgF,UAAU,CAACvF,MAAM,KAA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UACLC,OAAO,EAAE;QACX;MACF,CAAC,CAAC;MACF,OAAO,IAAAw7B,+BAAqB,EAACG,OAAO,EAAElT,OAAO,CAAC;IAChD,CAAC;IAED7sB,QAAA,CAAA8/B,oBAAA,GAAAD,sBAAsB,GAAGA,CAACE,OAAO,EAAElT,OAAO,KAAK;MAAA,WACwFkT,OAAO,KAAK,MAAM,KAAvJ,IAAAl8B,gBAAS,EAAC,yHAAyH,EAAEk8B,OAAO,KAAK,MAAM,EAAE;QACvJh8B,EAAE,EAAE,qCAAqC;QACzCE,GAAG,EAAE,+EAA+E;QACpFD,KAAK,EAAE,OAAO;QACdE,GAAG,EAAE,cAAc;QACnBC,KAAK,EAAE;UACLC,OAAO,EAAE;QACX;MACF,CAAC,CAAC;MACF,OAAO,IAAA07B,8BAAoB,EAACC,OAAO,EAAElT,OAAO,CAAC;IAC/C,CAAC;EACH;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA/EA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EE56QA,IAAMmT,eAAe,GAAGC,MAAM,CAACC,SAAS;EACxC,IAAIC,QAAQ;EAEZ,sBAAW;IACTC,QAAA,CAAAD,QAAA,GAAAA,QAAQ,GAAG;MACTE,SAAS,EAAE,CAAC;MACZC,kBAAkB,EAAE,CAAC;MACrBC,QAAQ,EAAE,CAAC;MACXC,WAAW,EAAE,CAA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAGA,MAAMC,gBAAgB,SAAS/F,kBAAkB,CAAC;IAChDC,WAAWA,CAACzL,IAAI,EAAE;MAChB,KAAK,CAAC,CAAC;MACP,IAAI,CAACwR,SAAS,GAAG,KAAK;MACtB,IAAI,CAACC,SAAS,GAAG,KAAK;MACtB,IAAI,CAACC,UAAU,GAAG,KAAK;MACvB,IAAI,CAACC,OAAO,GAAGtS,SAAS;MACxB,IAAI,CAACuS,OAAO,GAAGvS,SAAS;MACxB,IAAIwS,WAAW,GAAG7R,IAAI,CAACA,IAAI,CAACP,MAAM,GAAG,CAAC,C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,CAAC;MACFgF,sBAAsB,CAAC,IAAI,CAAC,CAACiE,SAAS,GAAG,IAAI;MAC7C,OAAO,IAAI;IACb;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGE3N,QAAQA,CAAC,GAAGqF,IAAI,EAAE;MAAA,WAC6S,KAAK,KAAlU,IAAAlB,gBAAS,EAAC,iTAAiT,EAAE,KAAK,EAAE;QAClUE,EAAE,EAAE,4BAA4B;QAChCE,KAAK,EAAE,OAAO;QACdD,GAAG,EAAE,sEAAsE;QAC3EE,GAAG,EAAE,cAAc;QACnBC,KAAK,EAAE;UACLC,OAAO,EAAE;QACX;MACF,CAAC,CAAC;MAEFgF,sBAAsB,CAAC,IAAI,CAAC,CAACyE,SAAS,CAAC,GAAG9I,IAAI,CAAC;MAE/C,OAAO,IAAI;IACb;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGExK,IAAIA,CAACY,OAAO,EAAE;MACZ,IAAIuU,IAAI,GAAGtG,sBAAsB,CAAC,IAAI,CAAC;MAEvC,IAAIpI,SAAS,CAAC1F,MAAM,KAAK,CAAC,EAAE;QAC1B,OAAOoU,IAAI,CAACzU,KAAK,IAAI,CAAC,CAAC;MACzB,CAAC,MAAM;QACLyU,IAAI,CAACzU,KAAK,GAAGE,OAAO;QACpB,OAAO,IAAI;MACb;IACF,CAAC,CAAC;IACF;;IAGA,IAAIqS,OAAOA,CAAA,EAAG;MACZ,OAAOpE,sBAAsB,CAAC,IAA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AC,EAAE,CAAC4U,SAAS,CAAC;MAC7E,CAAC,MAAM,IAAI5Q,IAAI,KAAKvN,SAAS,EAAE;QAC7BoP,eAAe,CAACvQ,GAAG,EAAE0K,GAAG,EAAEgE,IAAI,EAAEtN,OAAO,CAAC;MAC1C;IACF;IAEA,IAAI,CAACA,OAAO,CAAC6B,eAAe,CAACjD,GAAG,CAAC,EAAE;MACjC+E,mBAAmB,CAAC/E,GAAG,CAAC;IAC1B;IAEA,OAAOA,GAAG;EACZ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAASyf,KAAKA,CAACzf,GAAG,EAAE,GAAG8B,IAAI,EAAE;IAC3Bud,UAAU,CAACrf,GAAG,EAAE8B,IAAI,CAAC;IACrB,OAAO9B,GAAG;EACZ;EACA,IAAMke,MAAM,GAAG,IAAI1T,cAAQ,CAAC,CAAC;EAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,MAAMkV,KAAK,CAAC;IACVnS,WAAWA,CAACwQ,MAAM,EAAE1E,UAAU,EAAE;MAC9B6E,MAAM,CAAC7P,GAAG,CAAC,IAAI,CAAC;MAChB,IAAI,CAACgL,UAAU,GAAGyC,gBAAgB,CAACzC,UAAU,CAAC;MAC9C,IAAI,CAAC0E,MAAM,GAAG4B,gBAAgB,CAAC5B,MAAM,CAAC;MACtC,IAAI,CAAC6B,gBAAgB,GAAGze,SAAS;MACjC,IA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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EA7CApE,QAAA,CAAAuf,iBAAA,GAAAA,iBAAA;AAAA;;;;;;;;;ECzxHa,IAAIE,mBAAmB;EACvB,IAAIC,mBAAmB;EACvB,IAAIC,kBAAkB;EAG7B,SAASC,IAAIA,CAACC,QAAQ,EAAE;IACtB,IAAIC,MAAM,GAAG,KAAK;IAElB,OAAO,CAAC,GAAGC,IAAI,KAAK;MAClB,IAAID,MAAM,EAAE;QACV,OAAO,IAAI;MACb,CAAC,MAAM;QACLA,MAAM,GAAG,IAAI;QACb,OAAOD,QAAQ,CAAC,GAAGE,IAAI,CAAC;MAC1B;IACF,CAAC;EACH;EAGA,SAASC,WAAWA,CAACC,MAAM,EAAEC,SAAS,EAAEC,MAAM,EAAE;IAC9C,IAAIC,OAAO,GACT,SAAS,GAAGH,MAAM,GAAG,iEAAiE,GAAGE,MAAM,GAAG,OAAO,GACzG,aAAa,GAAGD,SAAS,GAAG,YAAY,GAAGC,MAAM,GAAG,SAAS,GAC7D,wEAAwE,GACxE,sFAAsF,GACtF,mCAAmC,GACnC,wIAAwI;IAE1I,IAAI,CAAC,KAAK,EAAE;MACVC,OAAO,IACL,yBAAyB,GACzB,sEAAsE,GACtE,6EAA6E,GAC7E,4DAA4D,GAC5D,oDAAoD,GACpD,8FAA8F,GAC9F,6EAA6E;IACjF;IAEAA,OAA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AQ,GAAGD,KAAK,CAACE,OAAO,CAAC,KAAK,CAAC;MAEnC,IAAIC,IAAI,GAAGF,QAAQ,KAAK,CAAC,CAAC,GAAGD,KAAK,GAAGA,KAAK,CAACI,KAAK,CAAC,CAAC,EAAEH,QAAQ,CAAC;MAC7D,IAAII,QAAQ,GAAGN,UAAU,CAACF,WAAW;MACrC,IAAIS,KAAK,GAAG,IAAAC,UAAG,EAACR,UAAU,EAAEI,IAAI,CAAC;MACjCE,QAAQ,CAACF,IAAI,EAAEG,KAAK,CAAC;IACvB,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEE,iBAAiBA,CAAC,GAAGC,IAAI,EAAE;MACzB,IAAAC,iCAA0B,EAAC,YAAY,EAAE,mBAAmB,CAAC,CAAC,CAAC;;MAE/D,IAAIf,MAAM,GAAG,IAAAY,UAAG,EAAC,IAAI,EAAE,QAAQ,CAAC;MAChC,IAAII,MAAM,GAAGhB,MAAM,CAACa,iBAAiB,IAAIb,MAAM,CAACiB,YAAY;MAC5D,OAAOD,MAAM,CAACE,KAAK,CAAClB,MAAM,EAAE,IAAAmB,yBAAkB,EAAC,IAAI,EAAEL,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,CAAC,CAAC,EAAE;QACzB;QACA;QACA,OAAO,IAAI,CAACT,OAAO,CAACW,gBAAgB,CAAC,cAAc,EAAEF,IAAI,CAAC,CAAC,CAAC,CAAC;MAC/D;MAEA,IAAI;QACFG,SAAS;QACTC,MAAM;QACNC;MACF,CAAC,GAAG,IAAAC,wBAAgB,EAACN,IAAI,CAAC;MAE1B,IAAIO,UAAU,GAAG,IAAI,CAAChB,OAAO,CAACiB,aAAa,CAACL,SAAS,EAAEC,MAAM,EAAEC,WAAW,EAAE,IAAI,CAAC;MAEjFE,UAAU,CAAC,8BAA8B,CAAC,GAAG,IAAI;MACjD,OAAOA,UAAU;IACnB;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEE,WAAWA,CAAA,EACX;IACA;MACE,OAAO,IAAI,CAACV,YAAY,CAAC,GAAGD,SAAS,CAAC,CAACY,MAAM,CAAC,SAAS,CAAC;IAC1D;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEC,MAAMA,CAACR,SAAS,EAAE,GAAGH,IAAI,EAAE;MACzB,IAAI,CAACT,OAAO,CAACqB,WAAW,CAAC,CAAC;MAE1B,OAAO,IAAI,CAACrB,OAAO,CAACsB,QAAQ,CAACV,SAAS,EAAE,GAAGH,IAAI,CAAC;IAClD;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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ECnDc,MAAMI,WAAW,CAAC;IAC/BC,WAAWA,CAACC,MAAM,GAAG,IAAI,EAAE;MACzB,IAAI,CAACC,aAAa,GAAG,IAAI;MACzB,IAAI,CAACD,MAAM,GAAGA,MAAM;IACtB;EAEF;EAACE,QAAA,CAAAC,OAAA,GAAAL,WAAA;AAAA;;;ECND,YAAY;;EACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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C,QAAQ,CAACpC,UAAU,CAAC;MACzB,IAAI,CAAC6B,OAAO,CAAC,UAAU,EAAE7B,UAAU,CAAC;IACtC;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;IAGE4B,UAAUA,CAACF,WAAW,EAAE,CAAC;IACzB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEU,QAAQA,CAACV,WAAW,EAAE,CAAC;IACvB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEW,YAAYA,CAAC,GAAGC,IAAI,EAAE;MACpB,IAAAC,kCAA0B,EAAC,OAAO,EAAE,cAAc,CAAC;MACnD,OAAO,IAAI,CAACpE,OAAO,CAACkE,YAAY,CAAC,GAAG,IAAAG,0BAAkB,EAAC,IAAI,EAAEF,IAAI,CAAC,CAAC;IACrE;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEG,wBAAwBA,CAAC,GAAGH,IAAI,EAAE;MAChC,IAAI,CAACtF,IAAI,EAAE,GAAG0F,YAAY,CAAC,GAAG,IAAAF,0BAAkB,EAAC,IAAI,EAAEF,IAAI,CAAC;MAE5D,IAAI,CAACnE,OAAO,CAACsE,wBAAwB,CAACzF,IAAI,EAAE,GAAG0F,YAAY,CAAC;IAC9D;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEC,OAAOA,CAAA,EAAG;MACR,OAAO,IAAI,CA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AAO7F,UAAU,CAACI,uBAAY,CAAC,CAACoD,UAAU,CAACxD,UAAU,CAAC6F,YAAY,GAAG,CAAC,CAAC,CAAChI,OAAO;QACjF;MACF;MAEA,OAAO,IAAI,CAACiI,SAAS,CAAC9I,IAAI,EAAE0C,KAAK,CAAC;IACpC;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEqG,WAAWA,CAACC,OAAO,EAAEhG,UAAU,EAAE;MAC/B,OAAO,IAAI,CAACpD,KAAK,CAAC,IAAI,CAACqJ,UAAU,CAAC,IAAI,CAACzH,SAAS,EAAEwH,OAAO,CAAC,EAAEhG,UAAU,CAAC;IACzE;IACA;AACF;AACA;AACA;AACA;AACA;;IAGE8F,SAASA,CAAC,GAAGxD,IAAI,EAAE;MACjB,OAAO,IAAArF,UAAG,EAAC,IAAI,EAAE,OAAO,CAAC,CAACiJ,IAAI,CAAC,GAAG5D,IAAI,CAAC;IACzC;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEgC,eAAeA,CAACrC,UAAU,EAAEpE,OAAO,EAAE6D,WAAW,EAAE;MAChD;MACA,IAAIO,UAAU,IAAIpE,OAAO,KAAKkC,SAAS,EAAE;QACvC,IAAAoC,UAAG,EAACF,UAAU,EAAE,OAAO,EAAEpE,OAAO,CAAC;MACnC;IACF;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEmF,aAAaA,CAAChG,IAAI,EAAEmJ,WAAW,EAAE;MAC/B,IAAIxI,KAAK,GAAG,IAAAgB,eAAQ,EAAC,IAAI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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEuK,MAAMA,CAAChK,IAAI,EAAEuH,OAAO,EAAE;MAAA,WACyD,KAAK,KAAlF,IAAAI,gBAAS,EAAE,+CAA8C,IAAI,CAACnG,SAAU,IAAG,EAAE,KAAK,EAAE;QAClFoG,EAAE,EAAE,uBAAuB;QAC3BC,KAAK,EAAE,OAAO;QACdC,GAAG,EAAE,kEAAkE;QACvEC,GAAG,EAAE,cAAc;QACnBC,KAAK,EAAE;UACLC,OAAO,EAAE;QACX;MACF,CAAC,CAAC;MACF,IAAI,CAACxI,MAAM,CAAC,CAACO,IAAI,EAAEuH,OAAO,CAAC;IAC7B;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGE0C,gBAAgBA,CAAC1C,OAAO,EAAE;MAAA,WACoC,KAAK,KAAjE,IAAAI,gBAAS,EAAC,gDAAgD,EAAE,KAAK,EAAE;QACjEC,EAAE,EAAE,yBAAyB;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S,IAAIC,MAAM,CAACC,IAAI,CAACJ,WAAW,CAAC,CAACK,MAAM,GAAG,CAAC,EAAE;QACpE,IAAIC,kBAAkB,GAAG,IAAAC,iBAAM,EAAC,CAAC,CAAC,EAAEP,WAAW,CAAC;QAEhD,IAAI,CAACN,WAAW,CAACc,mBAAmB,CAACV,SAAS,EAAEC,MAAM,EAAEO,kBAAkB,CAAC;QAE3E,OAAO,IAAAG,mBAAY,EAACH,kBAAkB,EAAEL,KAAK,CAACD,WAAW,CAAC;MAC5D;MAEA,OAAO,IAAI;IACb;EAEF;EAACU,QAAA,CAAAC,OAAA,GAAAnB,WAAA;AAAA;;;EC3BD,YAAY;;EACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;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AC,IAAI,CAAC;MAAC,WACkGE,OAAO,KAAxI,IAAAwC,aAAM,EAAE,wBAAuBnC,GAAI,MAAK8B,KAAM,+CAA8C,IAAK,+BAA8B,EAAEnC,OAAO,CAAC;MACzI,OAAO,IAAA6B,UAAG,EAAC7B,OAAO,EAAEK,GAAG,EAAE8B,KAAK,CAAC;IACjC;EAEF,CAAC,CAAC;AAAA;;;;;;;;;ECvGF;AACA;AACA;;EAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMM,aAAa,GAAGC,YAAK,CAACC,MAAM,CAAC;IACjCC,gBAAgB,EAAE,CAAC,SAAS,CAAC;IAE7B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,IAAIA,CAACC,UAAU,EAAE,GAAGC,IAAI,EAAE;MAAA,WAC+E,CAAC,IAAI,CAACC,YAAY,IAAI,CAAC,IAAI,CAACC,WAAW,K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AAG3C,OAAO,EAAE2C,GAAG,IAAI,CAAC,EAAEA,GAAG,EAAE,EAAE;QACvC,IAAI,IAAAxC,eAAQ,EAAC,IAAI,EAAEwC,GAAG,CAAC,KAAKQ,MAAM,EAAE;UAClC,OAAOR,GAAG;QACZ;MACF;MAEA,OAAO,CAAC,CAAC;IACX,CAAC;IAED;IACA;IACA;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEU,gBAAgBA,CAAC/C,MAAM,EAAEgD,IAAI,EAAE;MAC7B,OAAO,IAAAD,uBAAgB,EAAC,IAAI,EAAE/C,MAAM,EAAEgD,IAAI,CAAC;IAC7C,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,mBAAmBA,CAACjD,MAAM,EAAEgD,IAAI,EAAE;MAChC,OAAO,IAAAC,0BAAmB,EAAC,IAAI,EAAEjD,MAAM,EAAEgD,IAAI,CAAC;IAChD,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEE,iBAAiB,EAAE,IAAAC,0BAAU,EAAC;MAC5BC,YAAY,EAAE,IAAI;MAClB3B,UAAU,EAAE,KAAK;MAEjB7C,GAAGA,CAAA,EAAG;QACJ,OAAO,IAAAyE,mBAAY,EAAC,IAAI,EAAE,eAAe,CAAC,IAAI,IAAAA,mBAAY,EAAC,IAAI,EAAE,eAAe,CAAC;MACnF;IAEF,CAAC,CAAC;IAEF;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEgE,OAAO,EAAElC,KAAK;IAEd;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEmC,OAAOA,CAACzF,GAAG,EAAEe,KAAK,EAAE;MAClB,OAAO,IAAI,CAACN,OAAO,CAACZ,IAAI,IAAI,IAAAqE,UAAG,EAACrE,IAAI,EAAEG,GAAG,EAAEe,KAAK,CAAC,CAAC;IACpD,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEwC,GAAGA,CAAC5B,QAAQ,EAAEC,MAAM,GAAG,IAAI,EAAE;MAAA,WAC2B,OAAOD,QAAQ,KAAK,UAAU,KAApF,IAAAzB,aAAM,EAAC,6CAA6C,EAAE,OAAOyB,QAAQ,KAAK,UAAU,CAAC;MACrF,IAAIxB,GAAG,GAAGC,CAAC,CAAC,CAAC;MACb,IAAI,CAACK,OAAO,CAAC,CAACiF,CAAC,EAAEzB,GAAG,EAAE0B,CAAC,KAAKxF,GAAG,CAAC8D,GAAG,CAAC,GAAGtC,QAAQ,CAAC4D,IAAI,CAAC3D,MAAM,EAAE8D,CAAC,EAAEzB,GAAG,EAAE0B,CAAC,CAAC,CAAC;MACxE,OAAOxF,GAAG;IACZ,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEmD,KAAK;IAEL;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEsC,MAAMA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AACA;AACA;AACA;AACA;AACA;IACE+E,QAAQA,CAAA,EAAG;MACT,OAAO,IAAI,CAACH,MAAM,CAAC/E,IAAI,CAAC,GAAGG,SAAS,CAAC,CAAC;IACxC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACES,IAAIA,CAACC,QAAQ,EAAEC,MAAM,GAAG,IAAI,EAAE;MAAA,WAC2B,OAAOD,QAAQ,KAAK,UAAU,KAArF,IAAAzB,aAAM,EAAC,8CAA8C,EAAE,OAAOyB,QAAQ,KAAK,UAAU,CAAC;MACtF,OAAOD,IAAI,CAAC,IAAI,EAAEC,QAAQ,EAAEC,MAAM,CAAC;IACrC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEqE,MAAMA,CAAA,EAAG;MACP,OAAOvE,IAAI,CAAC,IAAI,EAAEZ,IAAI,CAAC,GAAGG,SAAS,CAAC,CAAC;IACvC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEe,KAAKA,CAACL,QAAQ,EAAEC,MAAM,GAAG,IAAI,EAAE;MAAA,WAC2B,OAAOD,QAAQ,KAAK,UAAU,KAAtF,IAAAzB,aAAM,EAAC,+CAA+C,EAAE,OAAOyB,QAAQ,KAAK,UAAU,CAAC;MACvF,OAAOK,KAAK,CAAC,IAAI,EAAEL,QAAQ,EAAEC,MAAM,CAAC;IACtC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEsE,OAAOA,CAAA,EAAG;MACR,OAAOlE,KAAK,CAAC,IAAI,EAAElB,IAAI,CAAC,GAAGG,SAAS,CAAC,CAAC;IACxC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEc,GAAGA,CAACJ,QAAQ,EAAEC,MAAM,GAAG,IAAI,EAAE;MAAA,WAC2B,OAAOD,QAAQ,KAAK,UAAU,KAApF,IAAAzB,aAAM,EAAC,6CAA6C,EAAE,OAAOyB,QAAQ,KAAK,UAAU,CAAC;MACrF,OAAOI,GAAG,CAAC,IAAI,EAAEJ,QAAQ,EAAEC,MAAM,CAAC;IACpC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEuE,KAAKA,CAAA,EAAG;MACN,OAAOpE,GAAG,CAAC,IAAI,EAAEjB,IAAI,CAAC,GAAGG,SAAS,CAAC,CAAC;IACtC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEmF,MAAMA,CAACzE,QAAQ,EAAE0E,YAAY,EAAE;MAAA,WAC4B,OAAO1E,QAAQ,KAAK,UAAU,KAAvF,IAAAzB,aAAM,EAAC,gDAAgD,EAAE,OAAOyB,QAAQ,KAAK,UAAU,CAAC;MACxF,IAAIxB,GAAG,GAAGkG,YAAY;MACtB,IAAI,CAAC5F,OAAO,CAA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,IAAI,KAAKkB,KAAK,GAAGlB,IAAI,IAAIA,IAAI,KAAKA,IAAI;MAChF,OAAO,IAAI,CAAC+F,MAAM,CAACvE,SAAS,CAAC;IAC/B;EAEF,CAAC,CAAC;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMkG,YAAY,GAAAC,QAAA,CAAAD,YAAA,GAAG9D,YAAK,CAACC,MAAM,CAACZ,UAAU,EAAE2E,2BAAiB,EAAE;IAC/D;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,KAAKA,CAAA,EAAG;MACN,IAAInG,GAAG,GAAG,IAAI,CAACL,MAAM;MAErB,IAAIK,GAAG,KAAK,CAAC,EAAE;QACb,OAAO,IAAI;MACb;MAEA,IAAI,CAACc,OAAO,CAAC,CAAC,EAAEd,GAAG,EAAE9B,WAAW,CAAC;MACjC,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACE6C,QAAQA,CAAC2B,GAAG,EAAEQ,MAAM,EAAE;MACpBnC,QAAQ,CAAC,IAAI,EAAE2B,GAAG,EAAEQ,MAAM,CAAC;MAC3B,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACErC,QAAQA,CAACuF,KAAK,EAAEpG,GAAG,EAAE;MACnB,OAAOa,QAAQ,CAAC,IAAI,EAAEuF,KAAK,EAAEpG,GAAG,CAAC;IACnC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEqG,UAAUA,CAACpF,GAAG,EAAE;MACd,OA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAvCA,IAAAC,QAAA,GAAAC,QAAA,CAAAC,OAAA,GAyCeC,YAAK,CAACC,MAAM,CAAC;IAC1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,EAAEA,CAACC,IAAI,EAAEC,MAAM,EAAEC,MAAM,EAAE;MACvB,IAAAC,kBAAW,EAAC,IAAI,EAAEH,IAAI,EAAEC,MAAM,EAAEC,MAAM,CAAC;MACvC,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEE,GAAGA,CAACJ,IAAI,EAAEC,MAAM,EAAEC,MAAM,EAAE;MACxB,IAAAC,kBAAW,EAAC,IAAI,EAAEH,IAAI,EAAEC,MAAM,EAAEC,MAAM,EAAE,IAAI,CAAC;MAC7C,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEG,OAAOA,CAACL,IAAI,EAAE,GAAGM,IAAI,EAAE;MACrB,IAAAC,gBAAS,EAAC,IAAI,EAAEP,IAAI,EAAEM,IAAI,CAAC;IAC7B,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEE,GAAGA,CAACR,IAAI,EAAEC,MAAM,EAAEC,MAAM,EAAE;MACxB,IAAAO,qBAAc,EAAC,IAAI,EAAET,IAAI,EAAEC,MAAM,EAAEC,MAAM,CAAC;MAC1C,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;IACEQ,GAAGA,CAACV,IAAI,EAAE;MACR,OAAO,IAAAW,mBAAY,EAAC,IAAI,EAAEX,IAAI,CAAC;IACjC;EAEF,CAAC,CAAC;AAAA;;;;;;;;;ECpIF;AACA;AACA;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EATA,IAAAY,QAAA,GAAAC,QAAA,CAAAC,OAAA,GAWeC,YAAK,CAACC,MAAM,CAACC,mBAAU,CAAC;AAAA;;;;;;;;;ECjBvC;AACA;AACA;EAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EArEA,IAAAC,QAAA,GAAAC,QAAA,CAAAC,OAAA,GAuEeC,YAAK,CAACC,MAAM,CAAC;IAC1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,GAAGA,CAACC,OAAO,EAAE;MACX,OAAO,IAAAD,UAAG,EAAC,IAAI,EAAEC,OAAO,CAAC;IAC3B,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,aAAaA,CAAC,GAAGC,IAAI,EAAE;MACrB,OAAO,IAAAD,oBAAa,EAAC,GAAG,CAAC,IAAI,CAAC,CAACE,MAAM,CAACD,IAAI,CAAC,CAAC;IAC9C,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEE,GAAGA,CAACJ,OAAO,EAAEK,KAAK,EAAE;MAClB,OAAO,IAAAD,UAAG,EAAC,IAAI,EAAEJ,OAAO,EAAEK,KAAK,CAAC;IAClC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,aAAaA,CAACC,IAAI,EAAE;MAClB,OAAO,IAAAD,oBAAa,EAAC,IAAI,EAAEC,IAAI,CAAC;IAClC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,oBAAoBA,CAAA,EAAG;MACrB,IAAAA,2BAAoB,EAAC,CAAC;MACtB,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,kBAAkBA,CAAA,EAAG;MACnB,IAAAA,yBAAkB,EAAC,CAAC;MACpB,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,oBAAoBA,CAACV,OAAO,EAAE;MAC5B,IAAAU,2BAAoB,EAAC,IAAI,EAAEV,OAAO,CAAC;MACnC,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEW,WAAWA,CAACC,GAAG,EAAEC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AACA;AACA;AACA;AACA;AACA;IACEC,mBAAmBA,CAACC,QAAQ,EAAEC,OAAO,EAAE;MAAA,WACS,IAAI,CAACH,YAAY,CAACI,eAAe,CAACF,QAAQ,CAAC,KAAzF,IAAAG,aAAM,EAAC,qCAAqC,EAAE,IAAI,CAACL,YAAY,CAACI,eAAe,CAACF,QAAQ,CAAC,CAAC;MAC1F,OAAO,IAAI,CAACF,YAAY,CAACM,OAAO,CAACJ,QAAQ,EAAEC,OAAO,CAAC;IACrD,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEI,QAAQ,EAAEC,aAAa,CAAC,UAAU,CAAC;IAEnC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,UAAU,EAAED,aAAa,CAAC,YAAY,CAAC;IAEvC;AACF;AACA;AACA;AACA;AACA;AACA;IACEE,eAAe,EAAEF,aAAa,CAAC,KAAK,CAAC;IAErC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACEG,gBAAgB,EAAEH,aAAa,CAAC,WAAW,CAAC;IAE5C;AACF;AACA;AACA;AACA;AACA;AACA;IACEI,eAAe,EAAEJ,aAAa,CAAC,SAAS,CAAC;IAEzC;AACF;AACA;AACA;AACA;AACA;AACA;IACEK,iBAAiB,EAAEL,aAAa,CAAC,YAAY,CAAC;IAE9C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEM,sBAAsB,EAAEN,aAAa,CAAC,gBAAgB,CAAC;IAEvD;AACF;AACA;AAC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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;IAGE,IAAIkC,WAAWA,CAAA,EAAG;MAChB,OAAO,IAAAA,wBAAW,EAAC,IAAI,CAAC;IAC1B;IAEA,IAAIA,WAAWA,CAAC/D,KAAK,EAAE;MAAA,WACiE,KAAK,KAA3F,IAAAjB,aAAM,EAAE,oBAAmB,IAAK,qDAAoD,EAAE,KAAK,CAAC;IAC9F;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;IAGE,IAAIiF,YAAYA,CAAA,EAAG;MACjB,OAAO,IAAAA,yBAAY,EAAC,IAAI,CAAC;IAC3B;IAEA,IAAIA,YAAYA,CAAChE,KAAK,EAAE;MAAA,WACiE,KAAK,KAA5F,IAAAjB,aAAM,EAAE,oBAAmB,IAAK,sDAAqD,EAAE,KAAK,CAAC;IAC/F;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEN,OAAOA,CAAA,EAAG;MACR;MACAL,aAAa,CAACwD,GAAG,CAAC,IAAI,CAAC;MAEvB,IAAI;QACF,IAAAnD,oBAAO,EAAC,IAAI,CAAC;MACf,CAAC,SAAS;QACRL,aAAa,CAAC6F,MAAM,CAAC,IAAI,CAAC;MAC5B;MAEA,OAAO,IAAI;IACb;IACA;AACF;AACA;AACA;AACA;;IAGEP,WAAWA,CAAA,EAAG,CAAC;IACf;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGExD,QAAQA,CAAA,EAAG;MACT,IAAIgE,oBAAoB,GAAG,OAAO,IAAI,CAACC,iBAAiB,KAAK,UAAU;MACvE,IAAIC,SAAS,GAAGF,oBAAoB,GAAI,IAAG,IAAI,CAACC,iBAAiB,CAAC,CAAE,EAAC,GAAG,EAAE;MAC1E,OAAQ,IAAG,IAAAjF,wBAAa,EAAC,IAAI,CAAC,IAAI,WAAY,IAAG,IAAAmF,cAAO,EAAC,IAAI,CAAE,GAAED,SAAU,GAAE;IAC/E;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGE,OAAOE,MAAMA,CAAA,EAAG;MACd,IAAIC,KAAK,GAAG,cAAc,IAAI,CAAC,EAAE;MACjC5G,MAAM,CAAC6G,KAAK,CAACD,KAAK,CAACE,cAAc,EAAEC,SAAS,CAAC;MAC7C,OAAOH,KAAK;IACd;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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AAI,EAAEI,sBAAsB,CAAC;EAC9E;AAAC;;;;;;;;;ECpDD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEe,MAAMM,WAAW,SAASC,eAAe,CAAC;EAAEC,QAAA,CAAAC,OAAA,GAAAH,WAAA;EAC3DA,WAAW,CAACI,cAAc,CAACC,MAAM,CAACC,cAAW,CAAC;AAAC;;;;;;;;;EChFA;EAC/C;EACA;EAEA,IAAMC,QAAQ,GAAG;IACf,kBAAkB,EAAE,SAAS;IAC7B,iBAAiB,EAAE,QAAQ;IAC3B,iBAAiB,EAAE,QAAQ;IAC3B,mBAAmB,EAAE,UAAU;IAC/B,wBAAwB,EAAE,UAAU;IACpC,gBAAgB,EAAE,OAAO;IACzB,eAAe,EAAE,MAAM;IACvB,iBAAiB,EAAE,QAAQ;IAC3B,iBAAiB,EAAE,QAAQ;IAC3B,mBAAmB,EAAE;EACvB,CAAC;EACD,IAAM;IACJC;EACF,CAAC,GAAGC,MAAM,CAACC,SAAS;EACpB;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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CAAC;EACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMC,WAAW,GAAGL,YAAK,CAACM,MAAM,CAAC;IAC/BC,KAAK,EAAE,EAAE;IACTC,iBAAiB,EAAE,CAAC,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,oBAAoB,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,CAAC;IAC/MC,WAAW,EAAE,IAAI;IACjBC,QAAQ,EAAE,KAAK;IACfC,SAAS,EAAE,IAAI;IAEfC,IAAIA,CAAA,EAAG;MACL,IAAI,CAACC,MAAM,CAAC,GAAGC,SAAS,CAAC;MAEzB,IAAI,CAACC,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAACC,sBAAsB,CAAC;MACnD,IAAI,CAACD,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAACC,sBAAsB,CAAC;MACjD,IAAI,CAACD,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAACC,sBAAsB,CAAC;IACrD,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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OAAOA,QAAQ,CAACU,WAAW,KAAK,UAAU,CAAC;MAC3I;MAEA,IAAI,CAACb,QAAQ,CAACE,QAAQ,CAAC,IAAI,EAAEE,MAAM,CAAC;MACpC,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEU,MAAMA,CAAA,EAAG;MACP,OAAO,IAAI,CAACZ,QAAQ,CAACI,QAAQ,CAACS,IAAI,CAAC;IACrC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,SAAS,EAAE,IAAI;IAEf;AACF;AACA;AACA;AACA;IACEC,iBAAiB,EAAErC,CAAC;IAEpB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEsC,gBAAgB,EAAEtC,CAAC;IAEnB;AACF;AACA;AACA;AACA;AACA;AACA;IACEuC,eAAe,EAAEvC,CAAC;IAElB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACEwC,OAAOA,CAAA,EAAG;MACR,IAAI,CAACC,MAAM,CAAC,GAAGC,SAAS,CAAC;MAEzB,IAAI,CAAC5B,aAAa,CAAC0B,OAAO,CAAC,IAAI,CAAC;IAClC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEG,kBAAkB,EAAE3C,CAAC;IAErB;AACF;AACA;AACA;AACA;IACE4C,iBAAiB,EAAE5C,CAAC;IAEpB;AACF;AACA;AACA;AACA;IACE6C,mBAAmB,EAAE7C,CAAC;IACtB;IACA;IACA;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACE;IACA;IACA8C,OAAO,EAAE,IAAI;IAEb;IACA;IACA;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,IAAIA,CAAA,EAAG;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CC,KAAK,EAAE,OAAO;MACdC,GAAG,EAAE,cAAc;MACnBC,KAAK,EAAE;QACLC,OAAO,EAAE;MACX;IACF,CAAC,CAAC;IAEF,IAAAG,oBAAc,EAACX,OAAO,EAAEE,OAAO,EAAEQ,IAAI,CAAC;EACxC;AAAC;;;;;;;;;ECxBD;AACA;AACA;;EAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAIE,eAAe;EAEnB,IAAIC,oCAAgB,EAAE;IACpBD,eAAe,GAAG,MAAMA,eAAe,SAASE,eAAW,CAAC;MAC1D,OAAOC,MAAMA,CAACC,KAAK,EAAE;QACnB;QACA;QACA;QACA,OAAO,KAAK,CAACD,MAAM,CAACC,KAAK,CAAC;MAC5B;MACA;AACJ;AACA;AACA;AACA;AACA;AACA;;MAGIC,IAAIA,CAAA,EAAG;QAAA,WACyK,KAAK,KAAnL,IAAAC,gBAAS,EAAC,kKAAkK,EAAE,KAAK,EAAE;UACnLC,KAAK,EAAE,OAAO;UACdC,EAAE,EAAE,kBAAkB;UACtBC,GAAG,EAAE,4EAA4E;UACjFC,GAAG,EAAE,cAAc;UACnBC,KAAK,EAAE;YACLC,OAAO,EAAE;UACX;QACF,CAAC,CAAC;QACF,IAAI,CAACC,eAAe,GAAG,IAAAC,iBAAU,EAAC,IAAI,CAAC;MACzC;MAEAC,SAASA,CAACC,QAAQ,EAAE;QAClB,IAAI,CAACC,IAAI,EAAEC,IAAI,CAAC,GAAGF,QAAQ,CAACG,KAAK,CAAC,GAAG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C,IAAI,CAACL,MAAM,GAAGlD,OAAO,CAACkD,MAAM;MAC9B;MAEA,IAAIlD,OAAO,CAACQ,aAAa,KAAK+C,SAAS,EAAE;QACvC,IAAI,CAAC/C,aAAa,GAAGgD,OAAO,CAACxD,OAAO,CAACQ,aAAa,CAAC;MACrD;IACF;IAEAwC,aAAaA,CAAA,EAAG;MACd;MACA,IAAIS,GAAG,GAAG,IAAA/B,iBAAM,EAAC,CAAC,CAAC,EAAEyB,WAAW,CAAC,CAAC,CAAC;;MAEnCM,GAAG,CAACL,MAAM,GAAG,IAAI,CAACE,SAAS;MAC3BG,GAAG,CAACjD,aAAa,GAAG,IAAI,CAACA,aAAa;MACtCiD,GAAG,CAACJ,WAAW,GAAG,IAAI,CAACA,WAAW;MAClCI,GAAG,CAACzD,OAAO,GAAG,IAAI;MAClB,OAAOyD,GAAG;IACZ;EAEF;EAAC,IAAAC,QAAA,GAAAC,QAAA,CAAAC,OAAA,GAEczE,mBAAmB;AAAA;;;;;;;;;ECxdlC;AACA;AACA;;EAkBA,IAAI0E,mBAAmB,GAAG,KAAK;EAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMC,WAAW,GAAGC,eAAM,CAACC,MAAM,CAAC;IAChC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,WAAW,EAAE,MAAM;IAEnB;AACF;AACA;AACA;AACA;AACA;IACEC,SAAS,EAAEC,0BAAM,GAAGC,MAAM,CAACC,QAAQ,GAAG,IAAI;IAE1C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,eAAe,EAAE,IAAI;IAErB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,YAAY,EAAE,IAAI;IAElB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,QAAQ,EAAE,IAAI;IAEd;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,YAAY,EAAE,IAAI;IAElB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,qBAAqB,EAAE,IAAI;IAE3BC,IAAIA,CAAA,EAAG;MACL;MACA,IAAI,CAACC,MAAM,CAAC,GAAGC,SAAS,CAAC;MAEzB,IAAI,CAAC,IAAI,CAACC,CAAC,EAAE;QACX,IAAI,CAACA,CAAC,GAAGC,aAAM;MACjB;MAEAC,iBAA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AAC,CAAC;QAEpD,IAAI,CAACtE,qBAAqB,CAACuE,KAAK,CAAC,CAAC;MACpC;IACF,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,KAAKA,CAACC,GAAG,EAAEvD,OAAO,EAAE;MAAA,WAC8D,CAAC,IAAI,CAACC,WAAW,KAAjG,IAAAC,aAAM,EAAC,uEAAuE,EAAE,CAAC,IAAI,CAACD,WAAW,CAAC;MAAA,WAC1B,CAAC,IAAI,CAACE,YAAY,KAA1F,IAAAD,aAAM,EAAC,+DAA+D,EAAE,CAAC,IAAI,CAACC,YAAY,CAAC;MAC3F,OAAO,IAAI,CAAC0B,IAAI,CAAC,CAAC,CAAC2B,IAAI,CAAC,MAAM;QAC5B,IAAI/C,QAAQ,GAAG,IAAI,CAACV,aAAa,CAAC,CAAC;QACnC,OAAOU,QAAQ,CAACo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B,GAAAX,QAAA,CAAAW,0BAAA,GAAG,CAAC,CAAC,eAAe;EACpD,IAAMC,QAAQ,GAAAZ,QAAA,CAAAY,QAAA,GAAG,CAAC,CAAC,eAAe;EAClC,IAAMC,gBAAgB,GAAAb,QAAA,CAAAa,gBAAA,GAAG,CAAC,CAAC,eAAe;AAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ECdlD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,kBAAkBA,CAACC,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,GAAG,IAAAC,UAAG,EAAC,IAAI,CAACb,WAAW,EAAEU,UAAU,CAAC;MAC1D,IAAII,YAAY,GAAGrC,KAAK,CAACmC,kBAAkB,CAAC;MAC5C,IAAIG,KAAK,GAAG,IAAIC,eAAG,CAAC,CAAC;MACrB,IAAIf,WAAW;MAEf,KAAK,IAAIgB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,YAAY,CAACI,MAAM,EAAED,CAAC,EAAE,EAAE;QAC5ChB,WAAW,GAAGW,kBAAkB,CAACE,YAAY,CAACG,CAAC,CAAC,CAAC;QACjDF,KAAK,CAACI,GAAG,CAAClB,WAAW,CAACG,IAAI,EAAEH,WAAW,EAAEA,WAAW,CAACmB,MAAM,EAAEnB,WAAW,CAACoB,KAAK,CAAC;MACjF;MAEAN,KAAK,CAACO,OAAO,CAACX,EAAE,CAAC;IACnB;EAEF,CAAC,CAAC;EACF7B,MAAM,CAACyC,WAAW,CAAC;IACjBT,YAAY,EAAEU,MAAM,CAAC3B,MAAM,CAAC,IAAI,CAAC;IACjC4B,oBAAoB,EAAED,MAAM,CAAC3B,MAAM,CAAC,IAAI,CAAC;IAEzC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEI,WAAW,EAAEyB,sBAAsB,CAAC,cAAc,EAAE,aAAa,CAAC;IAElE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACExB,mBAAmB,EAAEwB,sBAAsB,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAE3F;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACErC,aAAaA,CAACsC,SAAS,EAAE;MACvB,IAAI7B,QAAQ,GAAG,IAAI8B,mBAAQ,CAAC;QAC1BC,QAAQ,EAAEC,WAAW,CAACH,SAAS;MACjC,CAAC,CAAC;MACF7B,QAAQ,CAACiC,GAAG,GAAGA,UAAG;MAClBjC,QAAQ,CAACkC,QAAQ,CAAC,kBAAkB,EAAEL,SAAS,EAAE;QAC/CM,WAAW,EAAE;MACf,CAAC,CAAC;MACFC,mBAAmB,CAACpC,QAAQ,CAAC;MAC7B,IAAAqC,4BAAmB,EAACrC,QAAQ,CAAC;MAC7B,OAAOA,QAAQ;IACjB,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;IACE+B,QAAQ,EAAE,IAAI;IAEd;AACF;AACA;AACA;AACA;IACEO,QAAQ,EAAE;EACZ,CAAC,CAAC;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAASN,WAAWA,CAACH,SAAS,EAAE;IAC9B,IAAIU,aAAa,GAAG,IAAAxB,UAAG,EAACc,SAAS,EAAE,UAAU,CAAC,IAAIW,w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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAGA,IAAME,YAAY,GAAG,IAAIC,OAAO,CAAC,CAAC;EAElC,SAASC,WAAWA,CAACC,MAAM,EAAEhD,GAAG,EAAEiD,QAAQ,EAAE;IAC1C,IAAID,MAAM,CAACE,WAAW,KAAKC,SAAS,IAAI,OAAOH,MAAM,CAACE,WAAW,CAACE,KAAK,KAAK,UAAU,EAAE;MACtFJ,MAAM,CAACE,WAAW,CAACE,KAAK,CAAC,CAAC;IAC5B;IAEA,IAAI,CAAClD,MAAM,CAACmD,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,MAAM,EAAE,SAAS,CAAC,EAAE;MAC5D,IAAIQ,aAAa,GAAGR,MAAM,CAACS,OAAO,CAAC,CAAC;;MAEpCT,MAAM,CAACS,OAAO,GAAGD,aAAa,GAAG,IAAAE,iBAAM,EAAC,CAAC,CAAC,EAAEF,aAAa,CAAC,GAAG,CAAC,CAAC;IACjE;IAEAR,MAAM,CAACS,OAAO,CAACzD,GAAG,CAAC,GAAGiD,QAAQ;IAC9B,OAAO;MACL5C,GAAGA,CAAA,EAAG;QACJ,IAAIsD,QAAQ,GAAGd,YAAY,CAACxC,GAAG,CAA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASO,QAAQA,CAACP,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAAxK,IAAAlB,aAAM,EAAC,oGAAoG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACzK,OAAO,IAAAV,eAAQ,EAAE,GAAEK,YAAa,SAAQ,EAAE,YAAY;MACpD,OAAO,CAAC,IAAAM,cAAO,EAAC,IAAAR,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,CAAC;IAC1C,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASQ,IAAIA,CAACR,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAApK,IAAAlB,aAAM,EAAC,gGAAgG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACrK,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,OAAO,IAAAS,aAAM,EAAC,IAAAX,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASU,GAAGA,CAACV,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAAnK,IAAAlB,aAAM,EAAC,+FAA+F,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACpK,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,OAAO,CAAC,IAAAF,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC;IACjC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASW,IAAIA,CAACX,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAApK,IAAAlB,aAAM,EAAC,gGAAgG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACrK,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,OAAOY,OAAO,CAAC,IAAAd,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,CAAC;IACzC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASa,KAAKA,CAACb,YAAY,EAAEc,MAAM,EAAE;IAAA,WAC4E,CAAC,IAAAtB,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAAjL,IAAAlB,aAAM,EAAC,6GAA6G,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IAClL,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,IAAIH,KAAK,GAAG,IAAAC,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC;MACnC,OAAOc,MAAM,CAACC,IAAI,CAAClB,KAAK,CAAC;IAC3B,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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AK;IACxC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASqB,GAAGA,CAAClB,YAAY,EAAEH,KAAK,EAAE;IAAA,WAC4E,CAAC,IAAAL,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAA9K,IAAAlB,aAAM,EAAC,0GAA0G,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IAC/K,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,OAAO,IAAAF,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,IAAIH,KAAK;IACzC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASsB,EAAEA,CAACnB,YAAY,EAAEH,KAAK,EAAE;IAAA,WAC4E,CAAC,IAAAL,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAA7K,IAAAlB,aAAM,EAAC,yGAAyG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IAC9K,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,OAAO,IAAAF,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,GAAGH,KAAK;IACxC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASuB,GAAGA,CAACpB,YAAY,EAAEH,KAAK,EAAE;IAAA,WAC4E,CAAC,IAAAL,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAA9K,IAAAlB,aAAM,EAAC,0GAA0G,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IAC/K,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,OAAO,IAAAF,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,IAAIH,KAAK;IACzC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,IAAMwB,GAAG,GAAAC,QAAA,CAAAD,GAAA,GAAGhC,6BAA6B,CAAC,KAAK,EAAEQ,KAAK,IAAIA,KAAK,CAAC;EACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,IAAM0B,EAAE,GAAAD,QAAA,CAAAC,EAAA,GAAGlC,6BAA6B,CAAC,IAAI,EAAEQ,KAAK,IAAI,CAACA,KAAK,CAAC;EACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS2B,MAAMA,CAACxB,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAAtK,IAAAlB,aAAM,EAAC,kGAAkG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACvK,OAAO,IAAAoB,YAAK,EAACzB,YAAY,CAAC,CAACwB,MAAM,CAAC,CAAC;EACrC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASE,QAAQA,CAAC1B,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAAxK,IAAAlB,aAAM,EAAC,oGAAoG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACzK,OAAO,IAAAoB,YAAK,EAACzB,YAAY,CAAC,CAAC0B,QAAQ,CAAC,CAAC;EACvC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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uCAAsCF,IAAK,+CAA8C,EAAEiB,cAAc,CAACC,KAAK,CAACrB,YAAY,IAAI,CAAC,UAAU,CAACI,IAAI,CAACJ,YAAY,CAAC,CAAC,CAAC;IAExK,IAAIsB,aAAa,GAAGF,cAAc,CAACG,GAAG,CAACC,GAAG,IAAK,GAAEA,GAAI,KAAI,CAAC;IAE1D,OAAO,IAAAlB,eAAQ,EAAC,GAAGgB,aAAa,EAAE,YAAY;MAC5C,OAAO,IAAAL,UAAM,EAAChB,QAAQ,CAACiB,IAAI,CAAC,IAAI,EAAEE,cAAc,CAAC,CAAC;IACpD,CAAC,CAAC,CAACV,QAAQ,CAAC,CAAC;EACf;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAGO,SAASe,GAAGA,CAACzB,YAAY,EAAE;IAAA,WACwE,CAAC,IAAA0B,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAnK,IAAAzB,aAAM,EAAC,+FAA+F,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IACpK,OAAO/B,WAAW,CAACC,YAAY,EAAE,CAACyB,GAAG,EAAEM,IAAI,KAAKN,GAAG,GAAGM,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC;EACvE;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,GAAGA,CAAChC,YAAY,EAAE;IAAA,WACwE,CAAC,IAAA0B,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAnK,IAAAzB,aAAM,EAAC,+FAA+F,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IACpK,OAAO/B,WAAW,CAACC,YAAY,EAAE,CAACgC,GAAG,EAAED,IAAI,KAAKE,IAAI,CAACD,GAAG,CAACA,GAAG,EAAED,IAAI,CAAC,EAAE,CAACG,QAAQ,EAAE,KAAK,CAAC;EACxF;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,GAAGA,CAACnC,YAAY,EAAE;IAAA,WACwE,CAAC,IAAA0B,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAnK,IAAAzB,aAAM,EAAC,+FAA+F,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IACpK,OAAO/B,WAAW,CAACC,YAAY,EAAE,CAACmC,GAAG,EAAEJ,IAAI,KAAKE,IAAI,CAACE,GAAG,CAACA,GAAG,EAAEJ,IAAI,CAAC,EAAEG,QAAQ,EAAE,KAAK,CAAC;EACvF;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASX,GAAGA,CAACvB,YAAY,EAAEY,uBAAuB,EAAEX,QAAQ,EAAE;IAAA,WAC2D,CAAC,IAAAyB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAzL,IAAAzB,aAAM,EAAC,qHAAqH,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IAE1L,IAAI7B,QAAQ,KAAKmC,SAAS,IAAI,OAAOxB,uBAAuB,KAAK,UAAU,EAAE;MAC3EX,QAAQ,GAA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M,EAAC,sEAAsE,GAAG,gCAAgC,EAAE,OAAOiC,WAAW,KAAK,QAAQ,CAAC;IAAA,WAClD,CAAC,UAAU,CAAClC,IAAI,CAACJ,YAAY,CAAC,KAA9H,IAAAK,aAAM,EAAE,uFAAsF,EAAE,CAAC,UAAU,CAACD,IAAI,CAACJ,YAAY,CAAC,CAAC;IAC/H,OAAOuB,GAAG,CAAE,GAAEvB,YAAa,UAASsC,WAAY,EAAC,EAAEP,IAAI,IAAI,IAAAvB,UAAG,EAACuB,IAAI,EAAEO,WAAW,CAAC,CAAC;EACpF;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,MAAMA,CAACvC,YAAY,EAAEY,uBAAuB,EAAEX,QAAQ,EAAE;IAAA,WAC2D,CAAC,IAAAyB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAA5L,IAAAzB,aAAM,EAAC,wHAAwH,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAAC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,EAAE,GAAEN,YAAa,KAAI,EAAE,YAAY;MAChD,IAAImD,IAAI,GAAG,IAAA3C,UAAG,EAAC,IAAI,EAAER,YAAY,CAAC;MAClC,OAAO,IAAAgB,gBAAO,EAACmC,IAAI,CAAC,GAAG,IAAAC,eAAW,EAACD,IAAI,EAAEb,WAAW,CAAC,GAAG,IAAArB,UAAM,EAAC,CAAC;IAClE,CAAC,CAAC,CAACP,QAAQ,CAAC,CAAC;EACf;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,IAAI2C,KAAK,GAAAC,QAAA,CAAAD,KAAA,GAAGX,IAAI;EACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASa,SAASA,CAAC,GAAGZ,IAAI,EAAE;IAAA,WACsF,CAAC,IAAAjB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAlL,IAAAzB,aAAM,EAAC,8GAA8G,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,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AC,IAAID,IAAI,CAACE,OAAO,CAACD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC3D,QAAQ,CAAC,CAAC;EACf;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS6D,OAAOA,CAAC,GAAGjD,aAAa,EAAE;IAAA,WAC6E,CAAC,IAAAI,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAhL,IAAAzB,aAAM,EAAC,4GAA4G,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IACjL,OAAOX,eAAe,CAACG,aAAa,EAAE,YAAY;MAChD,IAAIkD,GAAG,GAAGlD,aAAa,CAACC,GAAG,CAACC,GAAG,IAAI;QACjC,IAAIiD,GAAG,GAAG,IAAAjE,UAAG,EAAC,IAAI,EAAEgB,GAAG,CAAC;QACxB,OAAOiD,GAAG,KAAKrC,SAAS,GAAG,IAAI,GAAGqC,GAAG;MACvC,CAAC,CAAC;MACF,OAAO,IAAAxD,UAAM,EAACuD,GAAG,CAAC;IACpB,CAAC,EAAE,SAAS,CAAC;EACf;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASE,IAAIA,CAACC,QAAQ,EAAE/D,uBAAuB,EAAEgE,cAAc,EAAE;IAAA,WACwC,CAAC,IAAAlD,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAzK,IAAAzB,aAAM,EAAC,qGAAqG,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IAE1K,sBAAW;MACT,IAAI+C,cAAc,GAAG,KAAK;MAE1B,IAAI/C,SAAS,CAACW,MAAM,KAAK,CAAC,EAAE;QAC1BoC,cAAc,GAAG,OAAOF,QAAQ,KAAK,QAAQ,KAAK,OAAO/D,uBAAuB,KAAK,QAAQ,IAAI,OAAOA,uBAAuB,KAAK,UAAU,CAAC;MACjJ;MAEA,IAAIkB,SAAS,CAACW,MAAM,KAAK,CAAC,EAAE;QAC1BoC,cAAc,GAAG,OAAOF,QAAQ,KAAK,QAAQ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AACA;;EAEO,IAAMC,OAAO,GAAAN,QAAA,CAAAM,OAAA,GAAG,CAAC,SAAS;EAAE;EACnC;EACA,mBAAmB,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS;EAAE;EACzD;EACAP,eAAe,CAAC;EACT,IAAMQ,WAAW,GAAAP,QAAA,CAAAO,WAAA,GAAG,IAAIC,oBAAU,CAACF,OAAO,EAAE;IACjDG,YAAY,EAAE,SAAS;IACvBjB,OAAO;IACPE,KAAK;IACLgB,aAAa,EAAbA,4BAAa;IACbC,aAAa,EAAE,SAAS;IACxBd;EACF,CAAC,CAAC;EACF;AACA;AACA;EACA;EACA;EACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASe,GAAGA,CAAA,EAAG;IACpB,OAAOL,WAAW,CAACK,GAAG,CAAC,GAAGC,SAAS,CAAC;EACtC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,IAAIA,CAAA,EAAG;IACrB,OAAOP,WAAW,CAACO,IAAI,CAAC,GAAGD,SAAS,CAAC;EACvC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAlBAtB,QAAA,CAAAe,IAAA,GAAAA,IAAA;EAoBO,SAASS,KAAKA,CAAA,EAAG;IACtBjB,WAAW,CAACiB,KAAK,CAAC,CAAC;EACrB;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,GAAGA,CAAA,EAAG;IACpBlB,WAAW,CAACkB,GAAG,CAAC,CAAC;EACnB;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,QAAQA,CAAA,EACxB;EACA;IACE,OAAOnB,WAAW,CAACmB,QAAQ,CAAC,GAAGb,SAAS,CAAC;EAC3C,CAAC,CAAC;;EAEK,SAASc,mBAAmBA,CAAA,EAAG;IACpC,OAAOpB,WAAW,CAACqB,SAAS,CAAC,CAAC;EAChC,CAAC,CAAC;;EAEK,SAASC,aAAaA,CAAA,EAAG;IAC9BtB,WAAW,CAACuB,YAAY,CAAC,CAAC;EAC5B;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,KAAKA,CAAA,EACrB;EACA;IACE,OAAOxB,WAAW,CAACwB,KAAK,CAAC,GAAGlB,SAAS,CAAC;EACxC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASmB,IAAIA,CAAC,GAAGV,IAAI,EAAE;IAC5BA,IAAI,CAACW,OAAO,CAAC,SAAS,CAAC;IACvB,OAAO1B,WAAW,CAAC2B,YAAY,CAAC,GAAGZ,IAAI,CAAC;EAC1C;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASY,YAAYA,CAAA,EAC5B;EACA;IACE,OAAO3B,WAAW,CAAC2B,YAAY,CAAC,GAAGrB,SAAS,CAAC;EAC/C;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASlB,IAAIA,CAAC,GAAG2B,IAAI,EAAE;IAC5BA,IAAI,CAACa,IAAI,CAAC,CAAC,CAAC;IACZ,OAAO5B,WAAW,CAACwB,KAAK,CAAC,GAAGT,IAAI,CAAC;EACnC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASc,MAAMA,CAACC,KAAK,EAAE;IAC5B,OAAO9B,WAAW,CAAC6B,MAAM,CAACC,KAAK,CAAC;EAClC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,QAAQA,CAAA,EAAG;IACzB,OAAO/B,WAAW,CAAC+B,QAAQ,CAAC,GAAGzB,SAAS,CAAC;EAC3C;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS0B,QAAQA,CAAA,EAAG;IACzB,OAAOhC,WAAW,CAACgC,QAAQ,CAAC,GAAG1B,SAAS,CAAC;EAC3C;EACO,IAAI2B,kCAAkC,CAAC,CAAC;;EAE/C,sBAAW;IACT,IAAIC,cAAc,GAAGA,CAACC,MAAM,EAAEC,SAAS,EAAEC,MAAM,KAAK;MAClD,OAAQ,WAAUF,MAAO,mEAAkEE,MAAO,mBAAkBD,SAAU,YAAWC,MAAO,IAAG;IACrJ,CAAC;IAED,IAAIC,OAAO,GAAGC,6BAAkB,IAAIL,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAGO,SAASG,GAAGA,CAACzB,GAAG,EAAEiB,OAAO,EAAE;IAAA,WACqJ,KAAK,KAA1L,IAAAS,gBAAS,EAAC,yKAAyK,EAAE,KAAK,EAAE;MAC1LC,EAAE,EAAE,kBAAkB;MACtBC,KAAK,EAAE,OAAO;MACdC,GAAG,EAAE,cAAc;MACnBC,GAAG,EAAE,4DAA4D;MACjEC,KAAK,EAAE;QACLC,OAAO,EAAE;MACX;IACF,CAAC,CAAC;IAEF,IAAI,CAACC,KAAK,CAACC,OAAO,CAACjB,OAAO,CAAC,IAAIkB,SAAS,CAAC5B,MAAM,GAAG,CAAC,EAAE;MACnDU,OAAO,GAAGgB,KAAK,CAACG,SAAS,CAACC,KAAK,CAACC,IAAI,CAACH,SAAS,EAAE,CAAC,CAAC;IACpD;IAEAnC,GAAG,GAAG,IAAAuC,0BAAS,EAACvC,GAAG,CAAC,IAAIA,GAAG;IAC3B,OAAOgB,IAAI,CAAChB,GAAG,EAAEiB,OAAO,CAAC;EAC3B;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASuB,CAACA,CAACxC,GAAG,EAAE;IACrB,OAAOA,GAAG,CAACK,KAAK,CAAC,KAAK,CAAC;EACzB;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASpB,UAAUA,CAACe,GAAG,EAAE;IAC9B,OAAOe,gBAAgB,CAAC0B,GAAG,CAACzC,GAAG,CAAC;EAClC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS0C,SAASA,CAAC1C,GAAG,EAAE;IAC7B,OAAOlB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GAAG,CAAC,CAAC;IAExB,KAAK,IAAI7pB,IAAI,IAAI0K,KAAK,EAAE;MACtBga,QAAQ,CAACrtB,GAAG,CAAC2I,IAAI,EAAE0K,KAAK,CAAC1K,IAAI,CAAC,CAAC;IACjC;IAEAqO,GAAG,CAACqW,QAAQ,GAAGA,QAAQ;IACvB,OAAOrW,GAAG;EACZ,CAAC,CAAC;;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAI/P,KAAK,GAAA9G,QAAA,CAAA8G,KAAA,GAAGg0B,cAAc,CAAC,CAAC;IAC1B7nB;EACF,CAAC,KAAK;IACJ,OAAO,IAAArB,2BAAgB,EAAC,MAAM,IAAAypB,wBAAe,EAACpoB,UAAU,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC;EAC3E,CAAC,CAAC;;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAItT,GAAG,GAAAK,QAAA,CAAAL,GAAA,GAAGm7B,cAAc,CAAC,CAAC;IACxB7nB;EACF,CAAC,KAAK;IACJ,IAAI1I,EAAE,EAAE4jB,EAAE;IAEV,IAAI0N,SAAS,GAAG,CAACtxB,EAAE,GAAG0I,UAAU,CAAC,CAAC,CAAC,MAAM,IAAI,IAAI1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v5B,OAAO,EAAEm6B,SAAS,EAAElY,QAAQ,EAAE8I,OAAO,EAAE;IAC/D0P,IAAI,EAAE;IAEN,IAAIpB,sBAAsB,EAAE;MAC1B;MACAr5B,OAAO,CAACu5B,gBAAgB,CAACY,SAAS,EAAElY,QAAQ,EAAE8I,OAAO,CAAC;IACxD,CAAC,MAAM,IAAIA,OAAO,KAAKvpB,SAAS,IAAIupB,OAAO,CAACnY,OAAO,EAAE;MACnD;MACA;MACA;MACA;MACA;MACA;MACA5S,OAAO,CAACu5B,gBAAgB,CAACY,SAAS,EAAElY,QAAQ,EAAE,IAAI,CAAC;IACrD,CAAC,MAAM;MACL;MACA;MACA;MACA;MACAjiB,OAAO,CAACu5B,gBAAgB,CAACY,SAAS,EAAElY,QAAQ,CAAC;IAC/C;EACF;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAGA,MAAM0Y,iBAAiB,CAAC;IACtBn+B,WAAWA,CAAA,EAAG;MACZ,IAAI,CAAC68B,sBAAsB,GAAGA,sBAAsB;IACtD;IAEA1a,YAAYA,CAAA,EAAG;MACb,OAAO,IAAI;IACb;IAEA,IAAIic,QAAQA,CAAA,EAAG;MACb,OAAO;QACLH,IAAI;QACJC;MACF,CAAC;IACH;IAEArlB,MAAMA,CAACwlB,MAAM,EAAE76B,OAAO,EAAEme,MAAM,EAAEvO,IAAI,EAAE;MACpC,O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,IAAI,OAAOA,KAAK,CAACC,SAAS,KAAK,UAAU,EAAE;MAClD,IAAAC,kCAAmB,EAACC,eAAe,CAAC;IACtC,CAAC,MAAM;MACL,IAAAD,kCAAmB,EAAC,IAAI,CAAC;IAC3B;EACF;EACO,SAASE,UAAUA,CAAA,EAAG;IAC3B,IAAIP,OAAO,EAAE;MACXA,OAAO,CAACO,UAAU,CAAC,CAAC;IACtB;EACF;EACO,SAASC,QAAQA,CAAA,EAAG;IACzB,IAAIR,OAAO,EAAE;MACXA,OAAO,CAACQ,QAAQ,CAAC,CAAC;IACpB;EACF;EAEA,SAASF,eAAeA,CAACG,KAAK,EAAE;IAC9BT,OAAO,CAACI,SAAS,CAACK,KAAK,CAAC;IACxBC,OAAO,CAACD,KAAK,CAACA,KAAK,CAACE,KAAK,CAAC,CAAC,CAAC;EAC9B;AAAC;;;;;;;;;;;;EC3BM,IAAMC,OAAO,GAAAC,QAAA,CAAAD,OAAA,GAAG,CAAC,CAAC;EACzB;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASE,cAAcA,CAACC,IAAI,EAAEC,YAAY,EAAE;IACjDJ,OAAO,CAACG,IAAI,CAAC,GAAG;MACdE,MAAM,EAAED,YAAY;MACpBE,IAAI,EAAE;QACJC,IAAI,EAAE;MACR;IACF,CAAC;EACH;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,mBAAmBA,CAACL,IAAI,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rB,MAAM,EAAEhD;MACV,CAAC;IACH;EACF;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAASiG,GAAGA,CAACC,OAAO,EAAEzG,KAAK,EAAE;IAC3B,IAAI,CAAC6F,KAAK,CAACa,OAAO,CAACD,OAAO,CAAC,EAAE;MAC3B,OAAO,IAAI,CAACjD,MAAM,CAAC,IAAI/D,SAAS,CAAC,0CAA0C,CAAC,EAAEO,KAAK,CAAC;IACtF;IACA,OAAO,IAAIkF,UAAU,CAAC,IAAI,EAAEuB,OAAO,EAAE,IAAI,CAAC,uBAAuBzG,KAAK,CAAC,CAACqB,OAAO;EACjF;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAASsF,IAAIA,CAACF,OAAO,EAAEzG,KAAK,EAAE;IAC5B;IACA,IAAIiC,WAAW,GAAG,IAAI;IAEtB,IAAIZ,OAAO,GAAG,IAAIY,WAAW,CAACE,IAAI,EAAEnC,KAAK,CAAC;IAE1C,IAAI,CAAC6F,KAAK,CAACa,OAAO,CAACD,OAAO,CAAC,EAAE;MAC3BjD,MAAM,CAACnC,OAAO,EAAE,IAA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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,MAAM+F,OAAO,CAAC;IACZtD,WAAWA,CAAC8C,QAAQ,EAAEhF,KAAK,EAAE;MAC3B,IAAI,CAACwB,GAAG,GAAGsF,OAAO,EAAE;MACpB,IAAI,CAACnF,MAAM,GAAG3B,KAAK;MACnB,IAAI,CAAC0D,MAAM,GAAGpE,SAAS;MACvB,IAAI,CAACoC,OAAO,GAAGpC,SAAS;MACxB,IAAI,CAAC8E,YAAY,GAAG,EAAE;MAEtBjE,MAAM,CAACC,UAAU,IAAIA,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC;MAEhD,IAAI+B,IAAI,KAAK6C,QAAQ,EAAE;QACrB,OAAOA,QAAQ,KAAK,UAAU,IAAI+B,aAAa,CAAC,CAAC;QACjD,IAAI,YAAYvB,OAAO,GAAGT,iBAAiB,CAAC,IAAI,EAAEC,QAAQ,CAAC,GAAGgC,QAAQ,CAAC,CAAC;MAC1E;IACF;IAEArD,QAAQA,CAACJ,MAAM,EAAE;MACfpD,MAAM,CAAC8G,KAAK,CAAC,MAAM;QACjB,IAAI,IAAI,CAACtD,QAAQ,EAAE;UACjBxD,MAAM,CAACd,OAAO,CAAC,OAAO,EAAEkE,MAAM,EAAE,IAAI,CAAC5B,MAAM,CAAC;QAC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nB,OAAO,CAACvB,OAAO,GAAGjC,UAAU;EAC5BwD,OAAO,CAAChC,MAAM,GAAGoD,QAAQ;EAEzBpB,OAAO,CAAC6B,SAAS,CAAC9F,QAAQ,GAAGsF,OAAO;;EAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACArB,OAAO,CAAC6B,SAAS,CAACrD,IAAI,GAAGA,IAAI;EAE7B,SAASsD,UAAUA,CAACC,CAAC,EAAEC,aAAa,EAAE;IACpC,IAAIC,GAAG,GAAG,CAAC,CAAC;IACZ,IAA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAASuD,SAASA,CAACC,QAAQ,EAAEhI,OAAO,EAAE;IACpC,IAAIiI,EAAE,GAAG,SAAAA,CAAA,EAAW;MAClB,IAAIC,CAAC,GAAGzH,SAAS,CAACN,MAAM;MACxB,IAAIwH,IAAI,GAAG,IAAI7B,KAAK,CAACoC,CAAC,GAAG,CAAC,CAAC;MAC3B,IAAIC,YAAY,GAAG,KAAK;MAExB,KAAK,IAAIjI,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGgI,CAAC,EAAE,EAAEhI,CAAC,EAAE;QAC1B,IAAIkI,GAAG,GAAG3H,SAAS,CAACP,CAAC,CAAC;;QAEtB;QACA,IAAI,CAACiI,YAAY,EAAE;UACjB,IAAIC,GAAG,KAAK,IAAI,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAE;YAC3C,IAAIA,GAAG,CAACjG,WAAW,KAAKsD,OAAO,EAAE;cAC/B0C,YAAY,GAAG,IAAI;YACrB,CAAC,MAAM;cACL,IAAI;gBACFA,YAAY,GAAGC,GAAG,CAACnE,IAAI;cACzB,CAAC,CAAC,OAAM7C,KAAK,EAAE;gBACb,IAAIiH,CAAC,GAAG,IAAI5C,OAAO,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,EAAE;QAC7Dc,GAAG,GAAGmI,IAAI,CAACjJ,CAAC,CAAC;QACbqI,GAAG,GAAGnD,KAAK,CAACpE,GAAG,CAAC;QAChB,IAAI,CAACgF,UAAU,CAACuC,GAAG,EAAEvH,GAAG,EAAE,IAAI,CAAC;MACjC;MAEA,IAAI,CAACiF,kBAAkB,CAAC,CAAC;IAC3B;EACF;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAASoD,IAAIA,CAACvK,MAAM,EAAEmB,KAAK,EAAE;IAC3B,OAAOwF,OAAO,CAACvB,OAAO,CAACpF,MAAM,EAAEmB,KAAK,CAAC,CAClCgE,IAAI,CAAC,UAASnF,MAAM,EAAE;MACrB,IAAIA,MAAM,KAAK,IAAI,IAAI,OAAOA,MAAM,KAAK,QAAQ,EAAE;QACjD,MAAM,IAAIY,SAAS,CAAC,4CAA4C,CAAC;MACnE;MACA,OAAO,IAAIwJ,WAAW,CAACzD,OAAO,EAAE3G,MAAM,EAAEmB,KAAK,CAAC,CAACqB,OAAO;IACxD,CAAC,CAAC;EACN;EAEA,MAAMgI,WAAW,SAASJ,WAAW,CAAC;IACpC/G,WAAWA,CAACD,WAAW,EAAEpD,MAAM,EAAEmB,KAAK,EAAE;MACtC,KAAK,CAACiC,WAAW,EAAEpD,MAAM,EAAE,KAAK,EAAEmB,KAAK,CAAC;IAC1C;EACF;EAEAqJ,WAAW,CAAChC,SAAS,CAACf,YAAY,GAAGC,gBAAgB;;EAErD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAAS+C,WAAWA,CAACzK,MAAM,EAAEmB,KAAK,EAAE;IAClC,OAAOwF,OAAO,CAACvB,OAAO,CAACpF,MAAM,EAAEmB,KAAK,CAAC,CAClCgE,IAAI,CAAC,UAASnF,MAAM,EAAE;MACrB,IAAIA,MAAM,KAAK,IAAI,IAAI,OAAOA,MAAM,KAAK,QAAQ,EAAE;QACjD,MAAM,IAAIY,SAAS,CAAC,2CAA2C,CAAC;MAClE;MAEA,OAAO,IAAI4J,WAAW,CAAC7D,OAAO,EAAE3G,MAAM,EAAE,KAAK,EAAEmB,KAAK,CAAC,CAACqB,OAAO;IAC/D,CAAC,CAAC;EACN;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAASkI,OAAO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G,IAAI,CAACuB,MAAM,CAACtJ,KAAK,EAAEN,CAAC,CAAC;QAC7B,CAAC,CAAC,OAAOkB,KAAK,EAAE;UACd2D,SAAS,GAAG,KAAK;UACjB,IAAI,CAACsB,UAAU,CAACzD,QAAQ,EAAE1C,CAAC,EAAEkB,KAAK,EAAE,KAAK,CAAC;QAC5C;QACA,IAAI2D,SAAS,EAAE;UACb,IAAI,CAACiB,UAAU,CAACuC,GAAG,EAAErI,CAAC,EAAE,KAAK,CAAC;QAChC;MACF,CAAC,MAAM;QACL,IAAI,CAAC2F,UAAU,EAAE;QACjB,IAAI,CAACrF,KAAK,EAAE;UACV,IAAI,CAACmB,OAAO,CAACzB,CAAC,CAAC,GAAGiK,YAAY;QAChC;MACF;IACF;EACF;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAASE,MAAMA,CAACL,QAAQ,EAAEM,QAAQ,EAAErK,KAAK,EAAE;IACzC,IAAI,OAAOqK,QAAQ,KAAK,UAAU,EAAE;MAClC,OAAO7E,OAAO,CAAChC,MAAM,CAAC,IAAI/D,SAAS,CAAC,8CAA8C,CAAC,EAAEO,KAAK,CAAC;IAC7F;IAEA,OAAOwF,OAAO,CAACvB,OAAO,CAAC8F,QAAQ,EAAE/J,KAAK,CAAC,CACpCgE,IAAI,CAAC,UAAS+F,QAAQ,EAAE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AAA,CAAAwO,OAAA,GAEaF,IAAI;AAAA;;;;;ACl5EnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7yfA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpyBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;CCllFA,SAA2CG,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAY,GAAID,IAEhBD,EAAS,GAAIC,IARf,CASGK,MAAM,WACT,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUP,QAGnC,IAAIC,EAASI,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHT,QAAS,IAUV,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AAIjL,KAAK4J,OAAQ,CACf,IAAIoU,EAAQhO,KAAKiO,SACbC,EAAYlO,KAAKC,MAAM+N,EAAOhe,KAAK4J,OAASiU,GAChDA,EAAoC,IAAN,EAAxB7N,KAAKC,MAAa,GAAP+N,IAAwBH,EAAKK,EAAYL,EAAKK,EAEjE,OAAgC,EAAzBlO,KAAKtG,IAAImU,EAAI7d,KAAK2J,MAS3BX,EAAQ3J,UAAUsN,MAAQ,WACxB3M,KAAKiL,SAAW,GASlBjC,EAAQ3J,UAAUqL,OAAS,SAAShB,GAClC1J,KAAK6d,GAAKnU,GASZV,EAAQ3J,UAAUyL,OAAS,SAASnB,GAClC3J,KAAK2J,IAAMA,GASbX,EAAQ3J,UAAUuL,UAAY,SAAShB,GACrC5J,KAAK4J,OAASA;;AClFhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1zCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACt7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC14BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/nBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/zCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACv+TA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9IA;AACA;AACA;AACA;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChUA;AACA;AACA;AACA;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtqFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7KA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACn4BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACliCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxsBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC92BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClEA;AACA;;ACDA;","file":"vendor.js"}